openc3-cosmos-tool-limitsmonitor 6.0.2 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/limitsmonitor/ArrayWidget-DzHELdHv-f4de8ba71dea450713c4.js +2 -0
- data/tools/limitsmonitor/ArrayplotWidget-BDvziGSm-834bf1d47bc0e37c6739.js +1 -0
- data/tools/limitsmonitor/{BarColumn-B6tCmNJm-81299b2ec5265c815997.js → BarColumn-CNhS2KKq-3dc808075c1ad070de8d.js} +1 -1
- data/tools/limitsmonitor/BlockWidget-D0On4x3d-fe36780077d2c221a6fe.js +2 -0
- data/tools/limitsmonitor/{ButtonWidget-CHrHS_Bw-8f9b44ca04ad8627a544.js → ButtonWidget-BOYLHMt4-7a8a915485056215597b.js} +2 -2
- data/tools/limitsmonitor/CanvasWidget-CQIqiLEy-cc3fd1975422711f59b9.js +1 -0
- data/tools/limitsmonitor/CanvasdotWidget-BVWutPMF-93e60b9a4efae5292b4d.js +1 -0
- data/tools/limitsmonitor/{CanvasimageWidget-BrYlPQCf-7cb83fbc95a6694fcc75.js → CanvasimageWidget-ayu_ASKf-e992d034823782d4c3eb.js} +1 -1
- data/tools/limitsmonitor/{CanvasimagevalueWidget-HnEOXmZy-21ef90605f467870eda5.js → CanvasimagevalueWidget-mv319g5T-ec322bcb202a56fdc335.js} +1 -1
- data/tools/limitsmonitor/CanvaslabelWidget-BNjbXDb8-50b7f2235a3da85221c6.js +1 -0
- data/tools/limitsmonitor/{CanvaslabelvalueWidget-0zRDJav3-810a83bbb5c641f6e738.js → CanvaslabelvalueWidget-CrhPwTSP-8c300fee8bf589186bd5.js} +1 -1
- data/tools/limitsmonitor/CanvaslineWidget--HdKH6oO-c34a96a86136c451b222.js +1 -0
- data/tools/limitsmonitor/CanvaslinevalueWidget-CJsuF6RY-32a6c399a0dc7daf9cfb.js +1 -0
- data/tools/limitsmonitor/CheckbuttonWidget-CQ2HlgIk-ae9a767ebc459b3c3830.js +1 -0
- data/tools/limitsmonitor/ComboboxWidget-BxILACwz-d79d9969981f2563d12a.js +1 -0
- data/tools/limitsmonitor/{DateWidget-FtYD86xW-b6fff7655074d23f5e4b.js → DateWidget-CIkO0xqH-715dfc17df22713799c8.js} +1 -1
- data/tools/limitsmonitor/{DetailsDialog-DiVcC3Fg-436e3e3668382eb38258.js → DetailsDialog-DyGpm5TP-bc898679b9599f6143ca.js} +1 -1
- data/tools/limitsmonitor/{DynamicWidget-m9EliUR2-26b730c2ac78fdca149b.js → DynamicWidget-gFSYxzvT-6d0d24c2f1d46de8693a.js} +1 -1
- data/tools/limitsmonitor/{FormatvalueWidget-OykwwCrw-6d473f90cb2df8d6ad21.js → FormatvalueWidget-D8-EO_3E-cc2a47dec4477a964f73.js} +1 -1
- data/tools/limitsmonitor/Graph-EV7oK3qM-e8913b039617d63183dd.js +1 -0
- data/tools/limitsmonitor/GraphWidget-BTNYbd21-b283022420b6bbfd29e6.js +1 -0
- data/tools/limitsmonitor/{HorizontalWidget-B7YdcFVN-6d94bf4bb739925d7210.js → HorizontalWidget-Bp-qtqoh-e290b21cb0e16533c60f.js} +1 -1
- data/tools/limitsmonitor/HorizontalboxWidget-CrJuGY3s-c0746a4894c6ce683c02.js +1 -0
- data/tools/limitsmonitor/HorizontallineWidget-CbxREBYI-2e026b70e31107522c25.js +1 -0
- data/tools/limitsmonitor/{IframeWidget-0C7GYEVc-5f201c42f8a4a3f857a4.js → IframeWidget-DusiWNNj-5e3ce03bd0370e315124.js} +1 -1
- data/tools/limitsmonitor/ImageLoader-BapCB-Li-b90aacb6c54c52e0d01e.js +1 -0
- data/tools/limitsmonitor/{ImageviewerWidget-B4HbUIfR-7c52372f6088d994206d.js → ImageviewerWidget-c0gJ9VDC-20a7678fc4eb748d11d7.js} +1 -1
- data/tools/limitsmonitor/{LabelWidget-D1JhQAzR-4ddb456f983e6af7f082.js → LabelWidget-pPgc0ve3-da8a61e9db3edffc2c9e.js} +1 -1
- data/tools/limitsmonitor/{LabelledWidget-C2VGJ5OJ-99fc7922439a01702730.js → LabelledWidget-CkNjby55-d7b81b6d2ebbd74dfa9d.js} +1 -1
- data/tools/limitsmonitor/{LabelprogressbarWidget-DN0cAeLK-d7bbe2a3c515440e13f6.js → LabelprogressbarWidget-e2R2yQKw-a74b2caaf853cd118043.js} +1 -1
- data/tools/limitsmonitor/LabelsparklineWidget-D7MQ_oNw-cd0cf472b03f0ead8521.js +1 -0
- data/tools/limitsmonitor/LabelvalueWidget-4DShBBvr-4ce431ec1912d541d2d0.js +1 -0
- data/tools/limitsmonitor/{LabelvaluedescWidget-DtJwggDu-538ba5e2feb203768205.js → LabelvaluedescWidget-Z1m8Bi6N-d0b22816bdb5058786eb.js} +1 -1
- data/tools/limitsmonitor/LabelvaluelimitsbarWidget-DVa-oYxU-80b3840da99584cb025b.js +1 -0
- data/tools/limitsmonitor/LabelvaluelimitscolumnWidget-DduuX632-a7900ae74cd6009320d0.js +1 -0
- data/tools/limitsmonitor/{LabelvaluerangebarWidget-DCJ42bmf-9df0dd9b99ee393496b1.js → LabelvaluerangebarWidget-BR9vXOlt-6d0eb08558f38ec46a3b.js} +1 -1
- data/tools/limitsmonitor/{Layout-D4YBjuWs-be2d1878767310656ca5.js → Layout-Bk8EGxbP-6e0fedf871ce1d145fc8.js} +1 -1
- data/tools/limitsmonitor/LedWidget-f7bf8ls_-d8fcfa37e55bff92f723.js +1 -0
- data/tools/limitsmonitor/LimitsMonitor-dc384f8aecee9f067991.js +7 -0
- data/tools/limitsmonitor/{LimitsbarWidget-D-wfz_St-b5a4f1a6cb26c135996b.js → LimitsbarWidget-B7fHaDcJ-35e7d809a6b10c3d4cde.js} +1 -1
- data/tools/limitsmonitor/{LimitscolorWidget-B0AVGdkz-ec414c8f6560428f884f.js → LimitscolorWidget-CpC4D_TC-ba8bfca0dc01416ef9d7.js} +1 -1
- data/tools/limitsmonitor/{LimitscolumnWidget-Dt5ce4hN-3ab5f802493038f2b108.js → LimitscolumnWidget-C9FbNC-U-f06c25388edfbca2fb96.js} +1 -1
- data/tools/limitsmonitor/LinegraphWidget-DkWDQ_3K-10e8bb018d7f336ed845.js +1 -0
- data/tools/limitsmonitor/{MatrixbycolumnsWidget-wLx4NvXV-ec985fa9c917fbaa80b1.js → MatrixbycolumnsWidget-CHJDyYa3-78a8bcf2285556d00244.js} +1 -1
- data/tools/limitsmonitor/{ProgressbarWidget-B7l0BBiX-31ca29a976d6d563f87b.js → ProgressbarWidget-CRZDxClT-bf0e3805609604aa1ec1.js} +1 -1
- data/tools/limitsmonitor/RadiobuttonWidget-BW4yFweH-703675436d3916bcf1e2.js +1 -0
- data/tools/limitsmonitor/{RadiogroupWidget-Busjqikr-72666cd93cb5ef59d2f7.js → RadiogroupWidget-_0bVCHjr-d7c6f3d40eb7d39e94bf.js} +1 -1
- data/tools/limitsmonitor/{RangebarWidget-DbYrwEfC-8e4508c3ca65c32801e6.js → RangebarWidget-CEQFiG4l-9182f5decadf9fdc75b3.js} +1 -1
- data/tools/limitsmonitor/{RollupWidget-rKxLXuCv-f3860502dc41f764e4f4.js → RollupWidget-579c7y0R-87d22f7345751f073431.js} +1 -1
- data/tools/limitsmonitor/ScrollwindowWidget-Kcre9gM3-a658e7766c0aaa7b4b9a.js +1 -0
- data/tools/limitsmonitor/{SignalWidget-h-oivReC-53cabe897e49bb66409a.js → SignalWidget-D55Myd0q-7b081e83ca7ff57e9d2d.js} +1 -1
- data/tools/limitsmonitor/{SpacerWidget-BSy9eOlB-4d6410020e27b5c859d4.js → SpacerWidget-DBDv_w_s-d3b1b17f4caa7727d192.js} +1 -1
- data/tools/limitsmonitor/SparklineWidget-DJvIL24z-9a963b24279949eaf8fe.js +1 -0
- data/tools/limitsmonitor/TabbookWidget-DH9DHnp1-985222ccfe92dd678d70.js +1 -0
- data/tools/limitsmonitor/TextboxWidget-DCjIEzJn-661f7e5f2c8afe95752c.js +1 -0
- data/tools/limitsmonitor/{TextfieldWidget-aVRdXRsT-c2c9ec7e805ec1c751cd.js → TextfieldWidget-BRQ6oPzR-a987316940c9173463f8.js} +1 -1
- data/tools/limitsmonitor/{TimeWidget-BE2rtMxg-5af126a079a24c333049.js → TimeWidget-pXtrK5IC-a1ffa65d5d5d20f028de.js} +1 -1
- data/tools/limitsmonitor/TitleWidget-CfAa2SyT-f3bf91c5b20ec34b6fc0.js +1 -0
- data/tools/limitsmonitor/VWidget-CN_afCKJ-dede8aa776923bfd9948.js +1 -0
- data/tools/limitsmonitor/ValueWidget-DIFivXw_-f3fd4c4756402c0e15a1.js +1 -0
- data/tools/limitsmonitor/ValuelimitsbarWidget-Cb7_SIUF-b87158875519aef9fe61.js +1 -0
- data/tools/limitsmonitor/ValuelimitscolumnWidget-D8bgZ7YP-f41f2f1421eb59f20802.js +1 -0
- data/tools/limitsmonitor/ValuerangebarWidget-VKygtFwP-7e0050ccf284ae610ba2.js +1 -0
- data/tools/limitsmonitor/{VerticalWidget-DziyURNu-766271166fc05ccd6b08.js → VerticalWidget-BuvedA_b-b1ad75972605d6842285.js} +1 -1
- data/tools/limitsmonitor/VerticalboxWidget-D_LcL3GF-3c260388e16d3b7e0b03.js +1 -0
- data/tools/limitsmonitor/{Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js → Widget-CERFa1CU-4266fcf1f630786fe6e5.js} +1 -1
- data/tools/limitsmonitor/main-8e72d39621128aae1028.js +1420 -0
- data/tools/limitsmonitor/main.js +1 -1
- metadata +69 -67
- data/tools/limitsmonitor/ArrayWidget-DBpEoQ1y-10bc2aa62aefae635d7c.js +0 -2
- data/tools/limitsmonitor/BlockWidget-Bmi0UcUW-7352a46cab16efbe02f6.js +0 -2
- data/tools/limitsmonitor/CanvasWidget-BqdyLbQz-e40ae0173390c826e4bf.js +0 -1
- data/tools/limitsmonitor/CanvasdotWidget-YYwca104-5be5230fc4d7584a582d.js +0 -1
- data/tools/limitsmonitor/CanvaslabelWidget-BfMHNei--bbd9ce0f1cc42a44ce8c.js +0 -1
- data/tools/limitsmonitor/CanvaslineWidget-BmOwJP_G-d372e899711f53540ddb.js +0 -1
- data/tools/limitsmonitor/CanvaslinevalueWidget-H3L1aUKM-9243996b855c413926f1.js +0 -1
- data/tools/limitsmonitor/CheckbuttonWidget-BnT9X7wE-45077b8b75f6dfd39345.js +0 -1
- data/tools/limitsmonitor/ComboboxWidget-BykAAoxH-cd6992d4210826a4ce38.js +0 -1
- data/tools/limitsmonitor/GraphWidget-BohHW-97-1f95b047aac874dc24a5.js +0 -1
- data/tools/limitsmonitor/HorizontalboxWidget-D-kCNwI3-6f53b03a7da8c86162c1.js +0 -1
- data/tools/limitsmonitor/HorizontallineWidget-BdlNB951-79a8b83089855d6afd68.js +0 -1
- data/tools/limitsmonitor/ImageLoader-y6fAZe9P-a5c428a769ea49ef68da.js +0 -1
- data/tools/limitsmonitor/LabelsparklineWidget--sxBENxs-aec45c83ead6762e91de.js +0 -1
- data/tools/limitsmonitor/LabelvalueWidget-BWpP5KX6-32c57bd023d22b75fc9c.js +0 -1
- data/tools/limitsmonitor/LabelvaluelimitsbarWidget-Bj6UVK-5-cb4d7a45903189163f59.js +0 -1
- data/tools/limitsmonitor/LabelvaluelimitscolumnWidget-BVcEEcUx-236cf34508635cbd85a4.js +0 -1
- data/tools/limitsmonitor/LedWidget-hN9JHxjr-3e21201718a4a9b6c8ab.js +0 -1
- data/tools/limitsmonitor/LimitsMonitor-5ccbc6156ab09287f753.js +0 -7
- data/tools/limitsmonitor/LinegraphWidget-CTjtvtPd-c9a510735d8dc2d5bdc1.js +0 -1
- data/tools/limitsmonitor/RadiobuttonWidget-B032jKIw-947ce2fd5e364181b75a.js +0 -1
- data/tools/limitsmonitor/ScrollwindowWidget-D4NKIzQO-6bc311f581482a1ebc7b.js +0 -1
- data/tools/limitsmonitor/SparklineWidget-C9vdxar--1e1da872a40d23cb526a.js +0 -1
- data/tools/limitsmonitor/TabbookWidget-DTFTKURm-81c7569b723f2f6e87d9.js +0 -1
- data/tools/limitsmonitor/TextboxWidget-BZyYHmBq-c4b99f81463452c5e54a.js +0 -1
- data/tools/limitsmonitor/TitleWidget-BB29MZb2-7b4b10b0640c517ffda4.js +0 -1
- data/tools/limitsmonitor/VWidget-CGdM4sTw-4d6cf976c46dc49f7f0d.js +0 -1
- data/tools/limitsmonitor/ValueWidget-h3905woQ-fcbb9882c26bc56d3182.js +0 -1
- data/tools/limitsmonitor/ValuelimitsbarWidget-LMXYjWtS-76d5604fc1706981fa55.js +0 -1
- data/tools/limitsmonitor/ValuelimitscolumnWidget-gA3ZcfAT-ca8550256cf63611b931.js +0 -1
- data/tools/limitsmonitor/ValuerangebarWidget-DwZ9KQ0O-21dd7d03d82d6fdaa8a6.js +0 -1
- data/tools/limitsmonitor/VerticalboxWidget-OcoZBsFU-3fffa844edef8feb420c.js +0 -1
- data/tools/limitsmonitor/main-93c3aaf3971ea1334ca9.js +0 -1420
@@ -1,7 +0,0 @@
|
|
1
|
-
System.register(["./main-93c3aaf3971ea1334ca9.js","vue","single-spa","./VWidget-CGdM4sTw-4d6cf976c46dc49f7f0d.js","./IframeWidget-0C7GYEVc-5f201c42f8a4a3f857a4.js","./LabelvalueWidget-BWpP5KX6-32c57bd023d22b75fc9c.js","./LabelvaluelimitsbarWidget-Bj6UVK-5-cb4d7a45903189163f59.js","vue-router","vuex","vuetify","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","./LabelWidget-D1JhQAzR-4ddb456f983e6af7f082.js","./ValueWidget-h3905woQ-fcbb9882c26bc56d3182.js","./DetailsDialog-DiVcC3Fg-436e3e3668382eb38258.js","./LimitsbarWidget-D-wfz_St-b5a4f1a6cb26c135996b.js","./BarColumn-B6tCmNJm-81299b2ec5265c815997.js"],function(Ut,Mi){"use strict";var Me,re,we,ze,We,qe,y,E,A,He,g,p,R,M,U,W,$,Y,B,oe,Se,q,Ee,$e,Ke;return{setters:[x=>{Me=x.s,re=x._,we=x.P,ze=x.X,We=x.Y,qe=x.Z},x=>{y=x.resolveComponent,E=x.openBlock,A=x.createBlock,He=x.Teleport,g=x.createVNode,p=x.withCtx,R=x.createElementVNode,M=x.toDisplayString,U=x.createElementBlock,W=x.Fragment,$=x.renderList,Y=x.mergeProps,B=x.createTextVNode,oe=x.createSlots,Se=x.normalizeStyle,q=x.createCommentVNode,Ee=x.normalizeClass},null,null,null,x=>{$e=x.default},x=>{Ke=x.default},null,null,null,null,null,null,null,null,null],execute:function(){var x=document.createElement("style");x.textContent=`.footer[data-v-dd6c39b3]{padding-top:5px}.v-input[data-v-dd6c39b3]{background-color:var(--color-background-base-default)}.textfield-green[data-v-dd6c39b3]{color:#00c800}.textfield-yellow[data-v-dd6c39b3]{color:#ffdc00}.textfield-red[data-v-dd6c39b3]{color:#ff2d2d}.card-height[data-v-210db24e]{height:calc(100vh - 150px)}
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(x);const Ft={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}},Bt={class:"app-title mr-2"};function Vt(t,e,n,i,s,r){const o=y("v-col"),l=y("v-row"),u=y("v-icon"),c=y("v-btn"),d=y("v-divider"),f=y("v-list-item-title"),v=y("v-list-item"),_=y("v-list"),m=y("v-menu"),h=y("v-radio"),k=y("v-list-item-action"),C=y("v-radio-group"),O=y("v-checkbox");return E(),A(He,{to:"#openc3-menu"},[g(l,{"no-gutters":""},{default:p(()=>[g(o,{"align-self":"end"},{default:p(()=>[R("span",Bt,M(n.title),1)]),_:1})]),_:1}),g(l,{dense:"",class:"flex-nowrap"},{default:p(()=>[(E(!0),U(W,null,$(n.menus,(S,I)=>(E(),A(m,{ref_for:!0,ref:"topmenu",key:I},{activator:p(({props:b})=>[g(c,Y({ref_for:!0},b,{variant:"outlined",class:"mx-1 menu-button",text:S.label,"data-test":r.formatDT(`${n.title} ${S.label}`)}),{append:p(()=>[g(u,{class:"menu-button-icon"},{default:p(()=>e[0]||(e[0]=[B(" mdi-menu-down ")])),_:1})]),_:2},1040,["text","data-test"])]),default:p(()=>[g(_,null,{default:p(()=>[(E(!0),U(W,null,$(S.items,(b,D)=>(E(),U(W,null,[b.divider?(E(),A(d,{key:D+"-divider"})):b.subMenu&&b.subMenu.length>0?(E(),U("div",{key:D+"-submenu"},[(E(),A(m,{"open-on-hover":"",location:"right",key:D},{activator:p(({props:j})=>[(E(),A(v,Y({ref_for:!0},j,{disabled:b.disabled,key:D}),oe({append:p(()=>[g(u,null,{default:p(()=>e[1]||(e[1]=[B(" mdi-chevron-right ")])),_:1})]),default:p(()=>[!b.radio&&!b.checkbox?(E(),A(f,{key:0,style:Se("cursor: pointer;"+(b.disabled?"opacity: 0.2":""))},{default:p(()=>[B(M(b.label),1)]),_:2},1032,["style"])):q("",!0)]),_:2},[b.icon?{name:"prepend",fn:p(()=>[g(u,{disabled:b.disabled},{default:p(()=>[B(M(b.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:p(()=>[g(_,null,{default:p(()=>[(E(!0),U(W,null,$(b.subMenu,(j,H)=>(E(),A(v,{key:H,"prepend-icon":j.icon,onClick:Ve=>r.subMenuClick(j)},{default:p(()=>[g(f,null,{default:p(()=>[B(M(j.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):b.radioGroup?(E(),A(C,{"model-value":b.value,"onUpdate:modelValue":b.command,key:D+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:p(()=>[(E(!0),U(W,null,$(b.choices,(j,H)=>(E(),A(v,{key:H+"-choice"},{default:p(()=>[g(k,{class:"list-action"},{default:p(()=>[g(h,{color:"secondary",label:j.label,value:j.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(E(),A(v,{onClick:j=>b.command(b),disabled:b.disabled,"data-test":r.formatDT(`${n.title} ${S.label} ${b.label}`),key:D+"-list"},oe({default:p(()=>[b.checkbox?(E(),A(k,{key:0,class:"list-action"},{default:p(()=>[g(O,{modelValue:b.checked,"onUpdate:modelValue":j=>b.checked=j,label:b.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):q("",!0),!b.radio&&!b.checkbox?(E(),A(f,{key:1,style:Se("cursor: pointer;"+(b.disabled?"opacity: 0.2":""))},{default:p(()=>[B(M(b.label),1)]),_:2},1032,["style"])):q("",!0)]),_:2},[b.icon?{name:"prepend",fn:p(()=>[g(u,{icon:b.icon,disabled:b.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const Mt=Me(Ft,[["render",Vt],["__scopeId","data-v-4d454b93"]]);var zt=Object.defineProperty,Wt=(t,e,n)=>e in t?zt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,qt=(t,e,n)=>Wt(t,e+"",n);function Je(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ht}=Object.prototype,{getPrototypeOf:xe}=Object,ae=(t=>e=>{const n=Ht.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),V=t=>(t=t.toLowerCase(),e=>ae(e)===t),le=t=>e=>typeof e===t,{isArray:Z}=Array,Q=le("undefined");function $t(t){return t!==null&&!Q(t)&&t.constructor!==null&&!Q(t.constructor)&&F(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ge=V("ArrayBuffer");function Kt(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ge(t.buffer),e}const Jt=le("string"),F=le("function"),Ye=le("number"),ce=t=>t!==null&&typeof t=="object",Gt=t=>t===!0||t===!1,ue=t=>{if(ae(t)!=="object")return!1;const e=xe(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Yt=V("Date"),Zt=V("File"),Xt=V("Blob"),Qt=V("FileList"),en=t=>ce(t)&&F(t.pipe),tn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||F(t.append)&&((e=ae(t))==="formdata"||e==="object"&&F(t.toString)&&t.toString()==="[object FormData]"))},nn=V("URLSearchParams"),[sn,rn,on,an]=["ReadableStream","Request","Response","Headers"].map(V),ln=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ee(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),Z(t))for(i=0,s=t.length;i<s;i++)e.call(null,t[i],i,t);else{const r=n?Object.getOwnPropertyNames(t):Object.keys(t),o=r.length;let l;for(i=0;i<o;i++)l=r[i],e.call(null,t[l],l,t)}}function Ze(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,s;for(;i-- >0;)if(s=n[i],e===s.toLowerCase())return s;return null}const K=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xe=t=>!Q(t)&&t!==K;function Oe(){const{caseless:t}=Xe(this)&&this||{},e={},n=(i,s)=>{const r=t&&Ze(e,s)||s;ue(e[r])&&ue(i)?e[r]=Oe(e[r],i):ue(i)?e[r]=Oe({},i):Z(i)?e[r]=i.slice():e[r]=i};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&ee(arguments[i],n);return e}const cn=(t,e,n,{allOwnKeys:i}={})=>(ee(e,(s,r)=>{n&&F(s)?t[r]=Je(s,n):t[r]=s},{allOwnKeys:i}),t),un=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),dn=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},fn=(t,e,n,i)=>{let s,r,o;const l={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),r=s.length;r-- >0;)o=s[r],(!i||i(o,t,e))&&!l[o]&&(e[o]=t[o],l[o]=!0);t=n!==!1&&xe(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},hn=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},mn=t=>{if(!t)return null;if(Z(t))return t;let e=t.length;if(!Ye(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},pn=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&xe(Uint8Array)),gn=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},_n=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},bn=V("HTMLFormElement"),yn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,i){return n.toUpperCase()+i}),Qe=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),vn=V("RegExp"),et=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};ee(n,(s,r)=>{let o;(o=e(s,r,t))!==!1&&(i[r]=o||s)}),Object.defineProperties(t,i)},wn=t=>{et(t,(e,n)=>{if(F(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(F(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Sn=(t,e)=>{const n={},i=s=>{s.forEach(r=>{n[r]=!0})};return Z(t)?i(t):i(String(t).split(e)),n},En=()=>{},xn=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Ce="abcdefghijklmnopqrstuvwxyz",tt="0123456789",nt={DIGIT:tt,ALPHA:Ce,ALPHA_DIGIT:Ce+Ce.toUpperCase()+tt},On=(t=16,e=nt.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function Cn(t){return!!(t&&F(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Rn=t=>{const e=new Array(10),n=(i,s)=>{if(ce(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[s]=i;const r=Z(i)?[]:{};return ee(i,(o,l)=>{const u=n(o,s+1);!Q(u)&&(r[l]=u)}),e[s]=void 0,r}}return i};return n(t,0)},Tn=V("AsyncFunction"),kn=t=>t&&(ce(t)||F(t))&&F(t.then)&&F(t.catch),it=((t,e)=>t?setImmediate:e?((n,i)=>(K.addEventListener("message",({source:s,data:r})=>{s===K&&r===n&&i.length&&i.shift()()},!1),s=>{i.push(s),K.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",F(K.postMessage)),An=typeof queueMicrotask<"u"?queueMicrotask.bind(K):typeof process<"u"&&process.nextTick||it,a={isArray:Z,isArrayBuffer:Ge,isBuffer:$t,isFormData:tn,isArrayBufferView:Kt,isString:Jt,isNumber:Ye,isBoolean:Gt,isObject:ce,isPlainObject:ue,isReadableStream:sn,isRequest:rn,isResponse:on,isHeaders:an,isUndefined:Q,isDate:Yt,isFile:Zt,isBlob:Xt,isRegExp:vn,isFunction:F,isStream:en,isURLSearchParams:nn,isTypedArray:pn,isFileList:Qt,forEach:ee,merge:Oe,extend:cn,trim:ln,stripBOM:un,inherits:dn,toFlatObject:fn,kindOf:ae,kindOfTest:V,endsWith:hn,toArray:mn,forEachEntry:gn,matchAll:_n,isHTMLForm:bn,hasOwnProperty:Qe,hasOwnProp:Qe,reduceDescriptors:et,freezeMethods:wn,toObjectSet:Sn,toCamelCase:yn,noop:En,toFiniteNumber:xn,findKey:Ze,global:K,isContextDefined:Xe,ALPHABET:nt,generateString:On,isSpecCompliantForm:Cn,toJSONObject:Rn,isAsyncFn:Tn,isThenable:kn,setImmediate:it,asap:An};function w(t,e,n,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(w,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const st=w.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(w,rt),Object.defineProperty(st,"isAxiosError",{value:!0}),w.from=(t,e,n,i,s,r)=>{const o=Object.create(st);return a.toFlatObject(t,o,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),w.call(o,t.message,e,n,i,s),o.cause=t,o.name=t.name,r&&Object.assign(o,r),o};const Ln=null;function Re(t){return a.isPlainObject(t)||a.isArray(t)}function ot(t){return a.endsWith(t,"[]")?t.slice(0,-2):t}function at(t,e,n){return t?t.concat(e).map(function(i,s){return i=ot(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function Nn(t){return a.isArray(t)&&!t.some(Re)}const In=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function de(t,e,n){if(!a.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,m){return!a.isUndefined(m[_])});const i=n.metaTokens,s=n.visitor||c,r=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(e);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(_){if(_===null)return"";if(a.isDate(_))return _.toISOString();if(!l&&a.isBlob(_))throw new w("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(_)||a.isTypedArray(_)?l&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function c(_,m,h){let k=_;if(_&&!h&&typeof _=="object"){if(a.endsWith(m,"{}"))m=i?m:m.slice(0,-2),_=JSON.stringify(_);else if(a.isArray(_)&&Nn(_)||(a.isFileList(_)||a.endsWith(m,"[]"))&&(k=a.toArray(_)))return m=ot(m),k.forEach(function(C,O){!(a.isUndefined(C)||C===null)&&e.append(o===!0?at([m],O,r):o===null?m:m+"[]",u(C))}),!1}return Re(_)?!0:(e.append(at(h,m,r),u(_)),!1)}const d=[],f=Object.assign(In,{defaultVisitor:c,convertValue:u,isVisitable:Re});function v(_,m){if(!a.isUndefined(_)){if(d.indexOf(_)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(_),a.forEach(_,function(h,k){(!(a.isUndefined(h)||h===null)&&s.call(e,h,a.isString(k)?k.trim():k,m,f))===!0&&v(h,m?m.concat(k):[k])}),d.pop()}}if(!a.isObject(t))throw new TypeError("data must be an object");return v(t),e}function lt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Te(t,e){this._pairs=[],t&&de(t,this,e)}const ct=Te.prototype;ct.append=function(t,e){this._pairs.push([t,e])},ct.toString=function(t){const e=t?function(n){return t.call(this,n,lt)}:lt;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function Dn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ut(t,e,n){if(!e)return t;const i=n&&n.encode||Dn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let r;if(s?r=s(e,n):r=a.isURLSearchParams(e)?e.toString():new Te(e,n).toString(i),r){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}class dt{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(n){n!==null&&e(n)})}}const ft={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jn=typeof URLSearchParams<"u"?URLSearchParams:Te,Pn=typeof FormData<"u"?FormData:null,Un=typeof Blob<"u"?Blob:null,Fn={isBrowser:!0,classes:{URLSearchParams:jn,FormData:Pn,Blob:Un},protocols:["http","https","file","blob","url","data"]},ke=typeof window<"u"&&typeof document<"u",Ae=typeof navigator=="object"&&navigator||void 0,Bn=ke&&(!Ae||["ReactNative","NativeScript","NS"].indexOf(Ae.product)<0),Vn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mn=ke&&window.location.href||"http://localhost",zn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ke,hasStandardBrowserEnv:Bn,hasStandardBrowserWebWorkerEnv:Vn,navigator:Ae,origin:Mn},Symbol.toStringTag,{value:"Module"})),N={...zn,...Fn};function Wn(t,e){return de(t,new N.classes.URLSearchParams,Object.assign({visitor:function(n,i,s,r){return N.isNode&&a.isBuffer(n)?(this.append(i,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}function qn(t){return a.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Hn(t){const e={},n=Object.keys(t);let i;const s=n.length;let r;for(i=0;i<s;i++)r=n[i],e[r]=t[r];return e}function ht(t){function e(n,i,s,r){let o=n[r++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),u=r>=n.length;return o=!o&&a.isArray(s)?s.length:o,u?(a.hasOwnProp(s,o)?s[o]=[s[o],i]:s[o]=i,!l):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),e(n,i,s[o],r)&&a.isArray(s[o])&&(s[o]=Hn(s[o])),!l)}if(a.isFormData(t)&&a.isFunction(t.entries)){const n={};return a.forEachEntry(t,(i,s)=>{e(qn(i),s,n,0)}),n}return null}function $n(t,e,n){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(t)}const te={transitional:ft,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return i?JSON.stringify(ht(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Wn(t,this.formSerializer).toString();if((r=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return de(r?{"files[]":t}:t,o&&new o,this.formSerializer)}}return s||i?(e.setContentType("application/json",!1),$n(t)):t}],transformResponse:[function(t){const e=this.transitional||te.transitional,n=e&&e.forcedJSONParsing,i=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!this.responseType||i)){const s=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(r){if(s)throw r.name==="SyntaxError"?w.from(r,w.ERR_BAD_RESPONSE,this,null,this.response):r}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:N.classes.FormData,Blob:N.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],t=>{te.headers[t]={}});const Kn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Jn=t=>{const e={};let n,i,s;return t&&t.split(`
|
3
|
-
`).forEach(function(r){s=r.indexOf(":"),n=r.substring(0,s).trim().toLowerCase(),i=r.substring(s+1).trim(),!(!n||e[n]&&Kn[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},mt=Symbol("internals");function ne(t){return t&&String(t).trim().toLowerCase()}function fe(t){return t===!1||t==null?t:a.isArray(t)?t.map(fe):String(t)}function Gn(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const Yn=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Le(t,e,n,i,s){if(a.isFunction(i))return i.call(this,e,n);if(s&&(e=n),!!a.isString(e)){if(a.isString(i))return e.indexOf(i)!==-1;if(a.isRegExp(i))return i.test(e)}}function Zn(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function Xn(t,e){const n=a.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(s,r,o){return this[i].call(this,e,s,r,o)},configurable:!0})})}class P{constructor(e){e&&this.set(e)}set(e,n,i){const s=this;function r(l,u,c){const d=ne(u);if(!d)throw new Error("header name must be a non-empty string");const f=a.findKey(s,d);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||u]=fe(l))}const o=(l,u)=>a.forEach(l,(c,d)=>r(c,d,u));if(a.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(a.isString(e)&&(e=e.trim())&&!Yn(e))o(Jn(e),n);else if(a.isHeaders(e))for(const[l,u]of e.entries())r(u,l,i);else e!=null&&r(n,e,i);return this}get(e,n){if(e=ne(e),e){const i=a.findKey(this,e);if(i){const s=this[i];if(!n)return s;if(n===!0)return Gn(s);if(a.isFunction(n))return n.call(this,s,i);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ne(e),e){const i=a.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||Le(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let s=!1;function r(o){if(o=ne(o),o){const l=a.findKey(i,o);l&&(!n||Le(i,i[l],l,n))&&(delete i[l],s=!0)}}return a.isArray(e)?e.forEach(r):r(e),s}clear(e){const n=Object.keys(this);let i=n.length,s=!1;for(;i--;){const r=n[i];(!e||Le(this,this[r],r,e,!0))&&(delete this[r],s=!0)}return s}normalize(e){const n=this,i={};return a.forEach(this,(s,r)=>{const o=a.findKey(i,r);if(o){n[o]=fe(s),delete n[r];return}const l=e?Zn(r):String(r).trim();l!==r&&delete n[r],n[l]=fe(s),i[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return a.forEach(this,(i,s)=>{i!=null&&i!==!1&&(n[s]=e&&a.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
4
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(s=>i.set(s)),i}static accessor(e){const n=(this[mt]=this[mt]={accessors:{}}).accessors,i=this.prototype;function s(r){const o=ne(r);n[o]||(Xn(i,r),n[o]=!0)}return a.isArray(e)?e.forEach(s):s(e),this}}P.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(P.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}}),a.freezeMethods(P);function Ne(t,e){const n=this||te,i=e||n,s=P.from(i.headers);let r=i.data;return a.forEach(t,function(o){r=o.call(n,r,s.normalize(),e?e.status:void 0)}),s.normalize(),r}function pt(t){return!!(t&&t.__CANCEL__)}function X(t,e,n){w.call(this,t??"canceled",w.ERR_CANCELED,e,n),this.name="CanceledError"}a.inherits(X,w,{__CANCEL__:!0});function gt(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new w("Request failed with status code "+n.status,[w.ERR_BAD_REQUEST,w.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Qn(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ei(t,e){t=t||10;const n=new Array(t),i=new Array(t);let s=0,r=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=i[r];o||(o=u),n[s]=l,i[s]=u;let d=r,f=0;for(;d!==s;)f+=n[d++],d=d%t;if(s=(s+1)%t,s===r&&(r=(r+1)%t),u-o<e)return;const v=c&&u-c;return v?Math.round(f*1e3/v):void 0}}function ti(t,e){let n=0,i=1e3/e,s,r;const o=(l,u=Date.now())=>{n=u,s=null,r&&(clearTimeout(r),r=null),t.apply(null,l)};return[(...l)=>{const u=Date.now(),c=u-n;c>=i?o(l,u):(s=l,r||(r=setTimeout(()=>{r=null,o(s)},i-c)))},()=>s&&o(s)]}const he=(t,e,n=3)=>{let i=0;const s=ei(50,250);return ti(r=>{const o=r.loaded,l=r.lengthComputable?r.total:void 0,u=o-i,c=s(u),d=o<=l;i=o;const f={loaded:o,total:l,progress:l?o/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&d?(l-o)/c:void 0,event:r,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(f)},n)},_t=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},bt=t=>(...e)=>a.asap(()=>t(...e)),ni=N.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,N.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(N.origin),N.navigator&&/(msie|trident)/i.test(N.navigator.userAgent)):()=>!0,ii=N.hasStandardBrowserEnv?{write(t,e,n,i,s,r){const o=[t+"="+encodeURIComponent(e)];a.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),a.isString(i)&&o.push("path="+i),a.isString(s)&&o.push("domain="+s),r===!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 si(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ri(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function yt(t,e){return t&&!si(e)?ri(t,e):e}const vt=t=>t instanceof P?{...t}:t;function J(t,e){e=e||{};const n={};function i(c,d,f,v){return a.isPlainObject(c)&&a.isPlainObject(d)?a.merge.call({caseless:v},c,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function s(c,d,f,v){if(a.isUndefined(d)){if(!a.isUndefined(c))return i(void 0,c,f,v)}else return i(c,d,f,v)}function r(c,d){if(!a.isUndefined(d))return i(void 0,d)}function o(c,d){if(a.isUndefined(d)){if(!a.isUndefined(c))return i(void 0,c)}else return i(void 0,d)}function l(c,d,f){if(f in e)return i(c,d);if(f in t)return i(void 0,c)}const u={url:r,method:r,data:r,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:l,headers:(c,d,f)=>s(vt(c),vt(d),f,!0)};return a.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=u[c]||s,f=d(t[c],e[c],c);a.isUndefined(f)&&d!==l||(n[c]=f)}),n}const wt=t=>{const e=J({},t);let{data:n,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:r,headers:o,auth:l}=e;e.headers=o=P.from(o),e.url=ut(yt(e.baseURL,e.url),t.params,t.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(a.isFormData(n)){if(N.hasStandardBrowserEnv||N.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[c,...d]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...d].join("; "))}}if(N.hasStandardBrowserEnv&&(i&&a.isFunction(i)&&(i=i(e)),i||i!==!1&&ni(e.url))){const c=s&&r&&ii.read(r);c&&o.set(s,c)}return e},oi=typeof XMLHttpRequest<"u",ai=oi&&function(t){return new Promise(function(e,n){const i=wt(t);let s=i.data;const r=P.from(i.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=i,c,d,f,v,_;function m(){v&&v(),_&&_(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let h=new XMLHttpRequest;h.open(i.method.toUpperCase(),i.url,!0),h.timeout=i.timeout;function k(){if(!h)return;const O=P.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),S={data:!o||o==="text"||o==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:O,config:t,request:h};gt(function(I){e(I),m()},function(I){n(I),m()},S),h=null}"onloadend"in h?h.onloadend=k:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(k)},h.onabort=function(){h&&(n(new w("Request aborted",w.ECONNABORTED,t,h)),h=null)},h.onerror=function(){n(new w("Network Error",w.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let O=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const S=i.transitional||ft;i.timeoutErrorMessage&&(O=i.timeoutErrorMessage),n(new w(O,S.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,t,h)),h=null},s===void 0&&r.setContentType(null),"setRequestHeader"in h&&a.forEach(r.toJSON(),function(O,S){h.setRequestHeader(S,O)}),a.isUndefined(i.withCredentials)||(h.withCredentials=!!i.withCredentials),o&&o!=="json"&&(h.responseType=i.responseType),u&&([f,_]=he(u,!0),h.addEventListener("progress",f)),l&&h.upload&&([d,v]=he(l),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(c=O=>{h&&(n(!O||O.type?new X(null,t,h):O),h.abort(),h=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const C=Qn(i.url);if(C&&N.protocols.indexOf(C)===-1){n(new w("Unsupported protocol "+C+":",w.ERR_BAD_REQUEST,t));return}h.send(s||null)})},li=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let i=new AbortController,s;const r=function(c){if(!s){s=!0,l();const d=c instanceof Error?c:this.reason;i.abort(d instanceof w?d:new X(d instanceof Error?d.message:d))}};let o=e&&setTimeout(()=>{o=null,r(new w(`timeout ${e} of ms exceeded`,w.ETIMEDOUT))},e);const l=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(r):c.removeEventListener("abort",r)}),t=null)};t.forEach(c=>c.addEventListener("abort",r));const{signal:u}=i;return u.unsubscribe=()=>a.asap(l),u}},ci=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let i=0,s;for(;i<n;)s=i+e,yield t.slice(i,s),i=s},ui=async function*(t,e){for await(const n of di(t))yield*ci(n,e)},di=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:i}=await e.read();if(n)break;yield i}}finally{await e.cancel()}},St=(t,e,n,i)=>{const s=ui(t,e);let r=0,o,l=u=>{o||(o=!0,i&&i(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await s.next();if(c){l(),u.close();return}let f=d.byteLength;if(n){let v=r+=f;n(v)}u.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(u){return l(u),s.return()}},{highWaterMark:2})},me=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Et=me&&typeof ReadableStream=="function",fi=me&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),xt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},hi=Et&&xt(()=>{let t=!1;const e=new Request(N.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Ot=64*1024,Ie=Et&&xt(()=>a.isReadableStream(new Response("").body)),pe={stream:Ie&&(t=>t.body)};me&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!pe[e]&&(pe[e]=a.isFunction(t[e])?n=>n[e]():(n,i)=>{throw new w(`Response type '${e}' is not supported`,w.ERR_NOT_SUPPORT,i)})})})(new Response);const mi=async t=>{if(t==null)return 0;if(a.isBlob(t))return t.size;if(a.isSpecCompliantForm(t))return(await new Request(N.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(a.isArrayBufferView(t)||a.isArrayBuffer(t))return t.byteLength;if(a.isURLSearchParams(t)&&(t=t+""),a.isString(t))return(await fi(t)).byteLength},pi=async(t,e)=>a.toFiniteNumber(t.getContentLength())??mi(e),gi=me&&(async t=>{let{url:e,method:n,data:i,signal:s,cancelToken:r,timeout:o,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:v}=wt(t);c=c?(c+"").toLowerCase():"text";let _=li([s,r&&r.toAbortSignal()],o),m;const h=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let k;try{if(u&&hi&&n!=="get"&&n!=="head"&&(k=await pi(d,i))!==0){let b=new Request(e,{method:"POST",body:i,duplex:"half"}),D;if(a.isFormData(i)&&(D=b.headers.get("content-type"))&&d.setContentType(D),b.body){const[j,H]=_t(k,he(bt(u)));i=St(b.body,Ot,j,H)}}a.isString(f)||(f=f?"include":"omit");const C="credentials"in Request.prototype;m=new Request(e,{...v,signal:_,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:i,duplex:"half",credentials:C?f:void 0});let O=await fetch(m);const S=Ie&&(c==="stream"||c==="response");if(Ie&&(l||S&&h)){const b={};["status","statusText","headers"].forEach(Ve=>{b[Ve]=O[Ve]});const D=a.toFiniteNumber(O.headers.get("content-length")),[j,H]=l&&_t(D,he(bt(l),!0))||[];O=new Response(St(O.body,Ot,j,()=>{H&&H(),h&&h()}),b)}c=c||"text";let I=await pe[a.findKey(pe,c)||"text"](O,t);return!S&&h&&h(),await new Promise((b,D)=>{gt(b,D,{data:I,headers:P.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:m})})}catch(C){throw h&&h(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new w("Network Error",w.ERR_NETWORK,t,m),{cause:C.cause||C}):w.from(C,C&&C.code,t,m)}}),De={http:Ln,xhr:ai,fetch:gi};a.forEach(De,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Ct=t=>`- ${t}`,_i=t=>a.isFunction(t)||t===null||t===!1,Rt={getAdapter:t=>{t=a.isArray(t)?t:[t];const{length:e}=t;let n,i;const s={};for(let r=0;r<e;r++){n=t[r];let o;if(i=n,!_i(n)&&(i=De[(o=String(n)).toLowerCase()],i===void 0))throw new w(`Unknown adapter '${o}'`);if(i)break;s[o||"#"+r]=i}if(!i){const r=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=e?r.length>1?`since :
|
5
|
-
`+r.map(Ct).join(`
|
6
|
-
`):" "+Ct(r[0]):"as no adapter specified";throw new w("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:De};function je(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new X(null,t)}function Tt(t){return je(t),t.headers=P.from(t.headers),t.data=Ne.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Rt.getAdapter(t.adapter||te.adapter)(t).then(function(e){return je(t),e.data=Ne.call(t,t.transformResponse,e),e.headers=P.from(e.headers),e},function(e){return pt(e)||(je(t),e&&e.response&&(e.response.data=Ne.call(t,t.transformResponse,e.response),e.response.headers=P.from(e.response.headers))),Promise.reject(e)})}const kt="1.7.9",ge={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ge[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const At={};ge.transitional=function(t,e,n){function i(s,r){return"[Axios v"+kt+"] Transitional option '"+s+"'"+r+(n?". "+n:"")}return(s,r,o)=>{if(t===!1)throw new w(i(r," has been removed"+(e?" in "+e:"")),w.ERR_DEPRECATED);return e&&!At[r]&&(At[r]=!0,console.warn(i(r," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(s,r,o):!0}},ge.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function bi(t,e,n){if(typeof t!="object")throw new w("options must be an object",w.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let s=i.length;for(;s-- >0;){const r=i[s],o=e[r];if(o){const l=t[r],u=l===void 0||o(l,r,t);if(u!==!0)throw new w("option "+r+" must be "+u,w.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new w("Unknown option "+r,w.ERR_BAD_OPTION)}}const _e={assertOptions:bi,validators:ge},z=_e.validators;class G{constructor(e){this.defaults=e,this.interceptors={request:new dt,response:new dt}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const r=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?r&&!String(i.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
7
|
-
`+r):i.stack=r}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=J(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:r}=n;i!==void 0&&_e.assertOptions(i,{silentJSONParsing:z.transitional(z.boolean),forcedJSONParsing:z.transitional(z.boolean),clarifyTimeoutError:z.transitional(z.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:_e.assertOptions(s,{encode:z.function,serialize:z.function},!0)),_e.assertOptions(n,{baseUrl:z.spelling("baseURL"),withXsrfToken:z.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=r&&a.merge(r.common,r[n.method]);r&&a.forEach(["delete","get","head","post","put","patch","common"],m=>{delete r[m]}),n.headers=P.concat(o,r);const l=[];let u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(u=u&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let d,f=0,v;if(!u){const m=[Tt.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,c),v=m.length,d=Promise.resolve(n);f<v;)d=d.then(m[f++],m[f++]);return d}v=l.length;let _=n;for(f=0;f<v;){const m=l[f++],h=l[f++];try{_=m(_)}catch(k){h.call(this,k);break}}try{d=Tt.call(this,_)}catch(m){return Promise.reject(m)}for(f=0,v=c.length;f<v;)d=d.then(c[f++],c[f++]);return d}getUri(e){e=J(this.defaults,e);const n=yt(e.baseURL,e.url);return ut(n,e.params,e.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){G.prototype[t]=function(e,n){return this.request(J(n||{},{method:t,url:e,data:(n||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function e(n){return function(i,s,r){return this.request(J(r||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}G.prototype[t]=e(),G.prototype[t+"Form"]=e(!0)});class Pe{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const i=this;this.promise.then(s=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](s);i._listeners=null}),this.promise.then=s=>{let r;const o=new Promise(l=>{i.subscribe(l),r=l}).then(s);return o.cancel=function(){i.unsubscribe(r)},o},e(function(s,r,o){i.reason||(i.reason=new X(s,r,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=i=>{e.abort(i)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Pe(function(n){e=n}),cancel:e}}}function yi(t){return function(e){return t.apply(null,e)}}function vi(t){return a.isObject(t)&&t.isAxiosError===!0}const Ue={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(Ue).forEach(([t,e])=>{Ue[e]=t});function Lt(t){const e=new G(t),n=Je(G.prototype.request,e);return a.extend(n,G.prototype,e,{allOwnKeys:!0}),a.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Lt(J(t,i))},n}const L=Lt(te);L.Axios=G,L.CanceledError=X,L.CancelToken=Pe,L.isCancel=pt,L.VERSION=kt,L.toFormData=de,L.AxiosError=w,L.Cancel=L.CanceledError,L.all=function(t){return Promise.all(t)},L.spread=yi,L.isAxiosError=vi,L.mergeConfig=J,L.AxiosHeaders=P,L.formToJSON=t=>ht(a.isHTMLForm(t)?new FormData(t):t),L.getAdapter=Rt.getAdapter,L.HttpStatusCode=Ue,L.default=L;const Nt=L.create({baseURL:location.origin,timeout:6e4,params:{}});Nt.interceptors.response.use(t=>t,t=>{var e,n,i,s,r,o,l,u,c,d,f;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 v=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(v+=`${t.response.statusText} `),(i=(n=t.response)==null?void 0:n.config)!=null&&i.data&&(v+=`${t.response.config.data} `),(r=(s=t.response)==null?void 0:s.data)!=null&&r.message?v+=`${t.response.data.message}`:(l=(o=t.response)==null?void 0:o.data)!=null&&l.exception?v+=`${t.response.data.exception}`:(d=(c=(u=t.response)==null?void 0:u.data)==null?void 0:c.error)!=null&&d.message?(t.response.data.error.class&&(v+=`${t.response.data.error.class} `),v+=`${t.response.data.error.message}`):v+=`${(f=t.response)==null?void 0:f.data}`;const{$cosmosNotify:_}=window;throw _&&_.serious({title:"Network error",body:v}),t}else throw t});var be={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},T={log(...t){this.enabled&&(t.push(Date.now()),be.logger.log("[ActionCable]",...t))}};const ie=()=>new Date().getTime(),ye=t=>(ie()-t)/1e3;class ve{constructor(e){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=ie(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),T.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=ie(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),T.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=ie()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,T.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=ie(),T.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:e,reconnectionBackoffRate:n}=this.constructor,i=Math.pow(1+n,Math.min(this.reconnectAttempts,10)),s=(this.reconnectAttempts===0?1:n)*Math.random();return e*1e3*i*(1+s)}reconnectIfStale(){this.connectionIsStale()&&(T.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${ye(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?T.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${ye(this.disconnectedAt)} s`):(T.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return ye(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&ye(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(T.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}ve.staleThreshold=6,ve.reconnectionBackoffRate=.15;var It={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:se,protocols:Fe}=It,wi=Fe.slice(0,Fe.length-1),Dt=[].indexOf;class Be{constructor(e){this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new ve(this),this.disconnected=!0}send(e){return this.isOpen()?(this.webSocket.send(JSON.stringify(e)),!0):!1}open(){if(this.isActive())return T.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const e=[...Fe,...this.consumer.subprotocols||[]];return T.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${e}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new be.WebSocket(this.consumer.url,e),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:e}={allowReconnect:!0}){if(e||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(T.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(e){T.log("Failed to reopen WebSocket",e)}finally{T.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return Dt.call(wi,this.getProtocol())>=0}isState(...e){return Dt.call(e,this.getState())>=0}getState(){if(this.webSocket){for(let e in be.WebSocket)if(be.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase()}return null}installEventHandlers(){for(let e in this.events){const n=this.events[e].bind(this);this.webSocket[`on${e}`]=n}}uninstallEventHandlers(){for(let e in this.events)this.webSocket[`on${e}`]=function(){}}}Be.reopenDelay=500,Be.prototype.events={message(t){if(!this.isProtocolSupported())return;const{identifier:e,message:n,reason:i,reconnect:s,type:r}=JSON.parse(t.data);switch(r){case se.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case se.disconnect:return T.log(`Disconnecting. Reason: ${i}`),this.close({allowReconnect:s});case se.ping:return this.monitor.recordPing();case se.confirmation:return this.subscriptions.confirmSubscription(e),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(e,"connected",{reconnected:!0})):this.subscriptions.notify(e,"connected",{reconnected:!1});case se.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",n)}},open(){if(T.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return T.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(t){if(T.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){T.log("WebSocket onerror event")}};const Si=function(t,e){if(e!=null)for(let n in e){const i=e[n];t[n]=i}return t};class Ei{constructor(e,n={},i){this.consumer=e,this.identifier=JSON.stringify(n),Si(this,i)}perform(e,n={}){return n.action=e,this.send(n)}send(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class xi{constructor(e){this.subscriptions=e,this.pendingSubscriptions=[]}guarantee(e){this.pendingSubscriptions.indexOf(e)==-1?(T.log(`SubscriptionGuarantor guaranteeing ${e.identifier}`),this.pendingSubscriptions.push(e)):T.log(`SubscriptionGuarantor already guaranteeing ${e.identifier}`),this.startGuaranteeing()}forget(e){T.log(`SubscriptionGuarantor forgetting ${e.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(n=>n!==e)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(e=>{T.log(`SubscriptionGuarantor resubscribing ${e.identifier}`),this.subscriptions.subscribe(e)})},500)}}class Oi{constructor(e){this.consumer=e,this.guarantor=new xi(this),this.subscriptions=[]}create(e,n){const i=e,s=typeof i=="object"?i:{channel:i},r=new Ei(this.consumer,s,n);return this.add(r)}add(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e}remove(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e}reject(e){return this.findAll(e).map(n=>(this.forget(n),this.notify(n,"rejected"),n))}forget(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter(n=>n!==e),e}findAll(e){return this.subscriptions.filter(n=>n.identifier===e)}reload(){return this.subscriptions.map(e=>this.subscribe(e))}notifyAll(e,...n){return this.subscriptions.map(i=>this.notify(i,e,...n))}notify(e,n,...i){let s;return typeof e=="string"?s=this.findAll(e):s=[e],s.map(r=>typeof r[n]=="function"?r[n](...i):void 0)}subscribe(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)}confirmSubscription(e){T.log(`Subscription confirmed ${e}`),this.findAll(e).map(n=>this.guarantor.forget(n))}sendCommand(e,n){const{identifier:i}=e;return this.consumer.send({command:n,identifier:i})}}class Ci{constructor(e){this._url=e,this.subscriptions=new Oi(this),this.connection=new Be(this),this.subprotocols=[]}get url(){return Ri(this._url)}send(e){return this.connection.send(e)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(e){this.subprotocols=[...this.subprotocols,e]}}function Ri(t){if(typeof t=="function"&&(t=t()),t&&!/^wss?:/i.test(t)){const e=document.createElement("a");return e.href=t,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}else return t}function Ti(t=ki("url")||It.default_mount_path){return new Ci(t)}function ki(t){const e=document.head.querySelector(`meta[name='action-cable-${t}']`);if(e)return e.getAttribute("content")}ve.staleThreshold=10;class jt{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,n,i={},s={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(r=>{if(r&&OpenC3Auth.setTokens(),this._cable==null){let o=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=Ti(o)}return this._cable.subscriptions.create({channel:e,...s},i)})}recordPing(){this._cable.connection.monitor.recordPing()}}class Pt{constructor(){qt(this,"id",1)}async exec(e,n,i={},s={},r=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return i.scope=window.openc3Scope,s.manual=!0,(await Nt.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:i},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...s},timeout:r})).data.result}catch(o){let l=new Error;throw o.response?(l.name=o.response.data.error.data.class,l.message=o.response.data.error.data.message,l.object=o.response.data.error):o.request?(l.name="Request error",l.message="Request error, no response received"):l.name="Unknown error",l}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...i){return this.exec("interface_cmd",[e,n,...i])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,n,i){return this.exec("get_item",[e,n,i])}get_param(e,n,i){return this.exec("get_param",[e,n,i])}get_parameter(e,n,i){return this.exec("get_param",[e,n,i])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,n){return this.exec("get_tlm",[e,n])}get_telemetry(e,n){return this.exec("get_tlm",[e,n])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,n=!1){return this.exec("get_all_tlm_names",[e],{hidden:n})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}async get_tlm_packet(e,n,i,s=30){const r=await this.exec("get_tlm_packet",[e,n],{type:i,stale_time:s});if(r!=null){let o=r.length,l=null;for(let u=0;u<o;u++)l=this.decode_openc3_type(r[u][1]),l!==null&&(r[u][1]=l)}return r}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,i=null){let s={stale_time:n};i!==null&&(s.cache_timeout=i);const r=await this.exec("get_tlm_values",[e],s,{},1e4);let o=r[0].length,l=null;for(let u=0;u<o;u++)l=this.decode_openc3_type(r[0][u]),l!==null&&(r[0][u]=l);return r}get_limits(e,n,i){return this.exec("get_limits",[e,n,i])}async tlm(e,n,i,s="CONVERTED"){let r=null;if(n===void 0)r=await this.exec("tlm",[e]);else if(i===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n))r=await this.exec("tlm",[e],{type:n});else{let l=new Error;throw l.name="TypeError",l.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,l}else r=await this.exec("tlm",[e,n,i],{type:s});let o=this.decode_openc3_type(r);return o!==null&&(r=o),r}async inject_tlm(e,n,i=null,s="CONVERTED"){data=await this.exec("inject_tlm",[e,n,i],{type:s})}set_tlm(e,n,i,s){return this.exec("set_tlm",[e,n,i],{type:s})}override_tlm(e,n,i,s){return this.exec("override_tlm",[e,n,i],{type:s})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,i,s){return this.exec("normalize_tlm",[e,n,i],{type:s})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,n=!1){return this.exec("get_all_cmd_names",[e],{hidden:n})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,n){return this.exec("get_cmd",[e,n])}get_command(e,n){return this.exec("get_cmd",[e,n])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,n,i,s="CONVERTED"){return this.exec("get_cmd_value",[e,n,i,s])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,i,s,r){let o=null;for(let l in s)Object.prototype.hasOwnProperty.call(s,l)&&(o=this.encode_openc3_type(s[l]),o!==null&&(s[l]=o));return this.exec(e,[n,i,s],{},r)}get_cmd_hazardous(e,n,i,s={}){return n===void 0?this.exec("get_cmd_hazardous",e,{},s):this._cmd("get_cmd_hazardous",e,n,i,s)}cmd(e,n,i,s={}){return n===void 0?this.exec("cmd",e,{},s):this._cmd("cmd",e,n,i,s)}cmd_no_range_check(e,n,i,s={}){return n===void 0?this.exec("cmd_no_range_check",e,{},s):this._cmd("cmd_no_range_check",e,n,i,s)}cmd_raw(e,n,i,s={}){return n===void 0?this.exec("cmd_raw",e,{},s):this._cmd("cmd_raw",e,n,i,s)}cmd_raw_no_range_check(e,n,i,s={}){return n===void 0?this.exec("cmd_raw_no_range_check",e,{},s):this._cmd("cmd_raw_no_range_check",e,n,i,s)}cmd_no_hazardous_check(e,n,i,s={}){return n===void 0?this.exec("cmd_no_hazardous_check",e,{},s):this._cmd("cmd_no_hazardous_check",e,n,i,s)}cmd_no_checks(e,n,i,s={}){return n===void 0?this.exec("cmd_no_checks",e,{},s):this._cmd("cmd_no_checks",e,n,i,s)}cmd_raw_no_hazardous_check(e,n,i,s={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},s):this._cmd("cmd_raw_no_hazardous_check",e,n,i,s)}cmd_raw_no_checks(e,n,i,s={}){return n===void 0?this.exec("cmd_raw_no_checks",e,{},s):this._cmd("cmd_raw_no_checks",e,n,i,s)}build_cmd(e,n,i){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,i)}build_command(e,n,i){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,i)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,n){return this.exec("send_raw",[e,n])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,n){return this.exec("load_config",[e,n])}save_config(e,n,i){return this.exec("save_config",[e,n,i])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,i){return this.exec("enable_limits",[e,n,i])}disable_limits(e,n,i){return this.exec("disable_limits",[e,n,i])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,n){return this.exec("set_setting",[e,n])}save_setting(e,n){return this.exec("set_setting",[e,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const n=new TextEncoder().encode(e),i=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(i);return Array.from(s).map(r=>r.toString(16).padStart(2,"0")).join("")}}}const Ai={components:{LabelvalueWidget:$e,LabelvaluelimitsbarWidget:Ke},props:{modelValue:{type:Array,default:()=>[]},timeZone:{type:String,default:"local"}},mixins:[we],data(){return{api:null,cable:new jt,ignored:[],ignoredItemsDialog:!1,overallState:"GREEN",currentLimitsSet:"",items:[],itemList:[],screenItems:[],screenValues:{},updateCounter:0,widgetSettings:[["WIDTH","580px"],["0","WIDTH","200px"],["1","WIDTH","200px"],["2","WIDTH","180px"]]}},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 Pt;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 n=e.join("__");if(this.ignored.find(s=>n.includes(s)))continue;this.itemList.push(n);let i={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"?i.limits=!1:i.limits=!0,this.items.push(i)}this.calcOverallState()})},calcOverallState(){let t="GREEN";for(let e of this.itemList)if(!this.ignored.find(n=>e.includes(n))&&(e.includes("YELLOW")&&t!=="RED"&&(t="YELLOW"),e.includes("RED"))){t="RED";break}this.overallState=t},ignorePacket(t,e){let[n,i,s]=t.split("__"),r=`${n}__${i}`;for(this.ignored.push(r),e||this.updateIgnored();;){let o=this.itemList.findIndex(l=>l.includes(r));if(o===-1)break;{let l=this.itemList[o].lastIndexOf("__");this.removeItem(this.itemList[o].substring(0,l))}}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(n=>n.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){if(e=JSON.parse(e.event),e.type!="LIMITS_CHANGE")continue;let n=`${e.target_name}__${e.packet_name}__${e.item_name}`;const i=this.itemList.findIndex(r=>r.includes(n));if(i!==-1){this.itemList[i]=`${n}__${e.new_limits_state}`,this.calcOverallState();continue}if(this.ignored.find(r=>n.includes(r))||e.new_limits_state&&!(e.new_limits_state.includes("YELLOW")||e.new_limits_state.includes("RED")))continue;let s={key:n,timestamp:this.formatNanoseconds(e.time_nsec,this.timeZone),parameters:[e.target_name,e.packet_name,e.item_name]};e.new_limits_state=="YELLOW"||e.new_limits_state=="RED"?s.limits=!1:s.limits=!0,this.itemList.push(`${n}__${e.new_limits_state}`),this.items.push(s),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}}},Li=["status"],Ni={class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},Ii={class:"font-weight-black"};function Di(t,e,n,i,s,r){const o=y("v-text-field"),l=y("v-row"),u=y("labelvaluelimitsbar-widget"),c=y("labelvalue-widget"),d=y("v-btn"),f=y("v-tooltip"),v=y("v-divider"),_=y("v-card"),m=y("v-spacer"),h=y("v-toolbar"),k=y("v-card-text"),C=y("v-card-actions"),O=y("v-dialog");return E(),U("div",null,[g(_,{class:"pa-5"},{default:p(()=>[g(l,{class:"ma-1"},{default:p(()=>[g(o,{density:"compact",variant:"outlined",readonly:"","hide-details":"",label:"Overall Limits State","model-value":r.overallStateFormatted,class:Ee(r.textFieldClass),style:{"margin-right":"10px","max-width":"280px"},"data-test":"overall-state"},oe({_:2},[r.astroStatus?{name:"prepend-inner",fn:p(()=>[R("rux-status",{status:r.astroStatus},null,8,Li)]),key:"0"}:void 0]),1032,["model-value","class"]),g(o,{density:"compact",variant:"outlined",readonly:"","hide-details":"",label:"Current Limits Set","model-value":s.currentLimitsSet,style:{"max-width":"200px"},"data-test":"limits-set"},null,8,["model-value"])]),_:1}),g(l,{"data-test":"limits-row",class:"my-0 ml-1 mr-1"},{default:p(()=>e[2]||(e[2]=[R("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},"Timestamp",-1),R("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},"Item Name",-1),R("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},"Value",-1),R("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"180px"}},"Limits Bar",-1),R("div",{class:"pa-1 mt-1 mr-2 label"},"Controls",-1)])),_:1}),(E(!0),U(W,null,$(s.items,(S,I)=>(E(),U("div",{key:S.key},[g(l,{"data-test":"limits-row",class:"align-center my-0 mx-1"},{default:p(()=>[R("div",Ni,M(S.timestamp),1),S.limits?(E(),A(u,{key:0,parameters:S.parameters,settings:s.widgetSettings,"screen-values":s.screenValues,"screen-time-zone":n.timeZone,onAddItem:r.addItem,onDeleteItem:r.deleteItem},null,8,["parameters","settings","screen-values","screen-time-zone","onAddItem","onDeleteItem"])):(E(),A(c,{key:1,parameters:S.parameters,settings:s.widgetSettings,"screen-values":s.screenValues,"screen-time-zone":n.timeZone,onAddItem:r.addItem,onDeleteItem:r.deleteItem},null,8,["parameters","settings","screen-values","screen-time-zone","onAddItem","onDeleteItem"])),g(f,{location:"top"},{activator:p(({props:b})=>[g(d,Y({icon:"mdi-close-circle-multiple",variant:"text",density:"compact",class:"mr-2",onClick:D=>r.ignorePacket(S.key),ref_for:!0},b),null,16,["onClick"])]),default:p(()=>[e[3]||(e[3]=R("span",null,"Ignore Entire Packet",-1))]),_:2},1024),g(f,{location:"top"},{activator:p(({props:b})=>[g(d,Y({icon:"mdi-close-circle",variant:"text",density:"compact",class:"mr-2",onClick:D=>r.ignoreItem(S.key),ref_for:!0},b),null,16,["onClick"])]),default:p(()=>[e[4]||(e[4]=R("span",null,"Ignore Item",-1))]),_:2},1024),g(f,{location:"top"},{activator:p(({props:b})=>[g(d,Y({icon:"mdi-eye-off",variant:"text",density:"compact",class:"mr-2",onClick:D=>r.removeItem(S.key),ref_for:!0},b),null,16,["onClick"])]),default:p(()=>[e[5]||(e[5]=R("span",null,"Temporarily Hide Item",-1))]),_:2},1024)]),_:2},1024),I<s.items.length?(E(),A(v,{key:I})):q("",!0)]))),128)),e[6]||(e[6]=R("div",{class:"footer"},' Note: Timestamp is "now" for items currently out of limits when the page is loaded. ',-1))]),_:1}),g(O,{modelValue:s.ignoredItemsDialog,"onUpdate:modelValue":e[1]||(e[1]=S=>s.ignoredItemsDialog=S),"max-width":"600"},{default:p(()=>[g(_,null,{default:p(()=>[g(h,{height:"24"},{default:p(()=>[g(m),e[7]||(e[7]=R("span",null,"Ignored Items",-1)),g(m)]),_:1}),g(k,{class:"mt-2"},{default:p(()=>[R("div",null,[(E(!0),U(W,null,$(r.ignoredFormatted,(S,I)=>(E(),U("div",{key:I},[g(l,{class:"ma-1 align-center"},{default:p(()=>[R("span",Ii,M(S),1),g(m),g(d,{onClick:b=>r.restoreItem(I),icon:"mdi-delete",density:"compact",variant:"text","data-test":`remove-ignore-${I}`},null,8,["onClick","data-test"])]),_:2},1024),I<r.ignoredFormatted.length-1?(E(),A(v,{key:I})):q("",!0)]))),128))])]),_:1}),g(C,{class:"px-2"},{default:p(()=>[g(d,{variant:"outlined",onClick:r.clearAll},{default:p(()=>e[8]||(e[8]=[B(" Clear All ")])),_:1},8,["onClick"]),g(m),g(d,{variant:"flat",onClick:e[0]||(e[0]=S=>s.ignoredItemsDialog=!1)},{default:p(()=>e[9]||(e[9]=[B(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const ji=re(Ai,[["render",Di],["__scopeId","data-v-dd6c39b3"]]),Pi={props:{historyCount:{type:Number,default:1e3},timeZone:{type:String,default:"local"}},mixins:[we],data(){return{data:[],cable:new jt,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 n=JSON.parse(t[e].event);this.data.unshift(n)}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":this.$vuetify.theme.dark?"openc3-white":"openc3-black"},calcTableHeight(){return window.innerHeight-250}}},Ui=["status"];function Fi(t,e,n,i,s,r){const o=y("v-spacer"),l=y("v-text-field"),u=y("v-card-title"),c=y("v-data-table"),d=y("v-card");return E(),A(d,{class:"card-height"},{default:p(()=>[g(u,{class:"d-flex align-center"},{default:p(()=>[e[1]||(e[1]=B(" Limits Events ")),g(o),g(l,{modelValue:s.search,"onUpdate:modelValue":e[0]||(e[0]=f=>s.search=f),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),g(c,{headers:s.headers,items:s.data,search:s.search,"items-per-page":-1,"hide-default-footer":"","multi-sort":"",density:"compact",height:r.calcTableHeight(),hover:"","data-test":"limits-events"},{"item.time_nsec":p(({item:f})=>[R("span",null,M(t.formatNanoseconds(f.time_nsec,n.timeZone)),1)]),"item.level":p(({item:f})=>[R("rux-status",{status:r.getStatus(f.message)},null,8,Ui)]),"item.message":p(({item:f})=>[R("span",{class:Ee(r.getColorClass(f.message))},M(f.message),3)]),_:1},8,["headers","items","search","height"])]),_:1})}const Bi={components:{LimitsControl:ji,LimitsEvents:re(Pi,[["render",Fi],["__scopeId","data-v-210db24e"]]),TopBar:Mt,OpenConfigDialog:ze,SaveConfigDialog:We},mixins:[qe],data(){return{title:"Limits Monitor",configKey:"limits_monitor",api:new Pt,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,n=>{this.ignored=n,this.renderKey++})},saveConfiguration:function(t){this.saveConfigBase(t,this.ignored)}}};function Vi(t,e,n,i,s,r){const o=y("top-bar"),l=y("limits-control"),u=y("limits-events"),c=y("open-config-dialog"),d=y("save-config-dialog"),f=y("v-spacer"),v=y("v-toolbar"),_=y("v-select"),m=y("v-card-text"),h=y("v-btn"),k=y("v-card-actions"),C=y("v-card"),O=y("v-dialog");return E(),U("div",null,[g(o,{menus:s.menus,title:s.title},null,8,["menus","title"]),(E(),A(l,{ref:"control",modelValue:s.ignored,"onUpdate:modelValue":e[0]||(e[0]=S=>s.ignored=S),key:s.renderKey,"time-zone":s.timeZone},null,8,["modelValue","time-zone"])),e[11]||(e[11]=R("div",{style:{height:"15px"}},null,-1)),g(u,{"time-zone":s.timeZone},null,8,["time-zone"]),s.openConfig?(E(),A(c,{key:0,modelValue:s.openConfig,"onUpdate:modelValue":e[1]||(e[1]=S=>s.openConfig=S),configKey:s.configKey,onSuccess:r.openConfiguration},null,8,["modelValue","configKey","onSuccess"])):q("",!0),s.saveConfig?(E(),A(d,{key:1,modelValue:s.saveConfig,"onUpdate:modelValue":e[2]||(e[2]=S=>s.saveConfig=S),configKey:s.configKey,onSuccess:r.saveConfiguration},null,8,["modelValue","configKey","onSuccess"])):q("",!0),g(O,{modelValue:s.limitsSetDialog,"onUpdate:modelValue":e[5]||(e[5]=S=>s.limitsSetDialog=S),"max-width":"650"},{default:p(()=>[g(C,null,{default:p(()=>[g(v,{height:"24"},{default:p(()=>[g(f),e[6]||(e[6]=R("span",null,"Change Limits Set",-1)),g(f)]),_:1}),g(m,{class:"mt-6"},{default:p(()=>[e[7]||(e[7]=R("span",{style:{display:"block"}}," The Limits Set is a global option which changes the Limits Set across all tools. ",-1)),e[8]||(e[8]=R("span",{style:{display:"block"}}," NOTE: Changing this option clears the current list and recalculates based on the new set. ",-1)),g(_,{label:"Limits Set",items:s.limitsSets,modelValue:s.currentLimitsSet,"onUpdate:modelValue":e[3]||(e[3]=S=>s.currentLimitsSet=S),density:"compact",variant:"outlined","data-test":"limits-set","hide-details":"",class:"mt-3",style:{"max-width":"200px"}},null,8,["items","modelValue"])]),_:1}),g(k,{class:"px-2"},{default:p(()=>[g(f),g(h,{variant:"outlined",onClick:e[4]||(e[4]=S=>s.limitsSetDialog=!1)},{default:p(()=>e[9]||(e[9]=[B(" Cancel ")])),_:1}),g(h,{variant:"flat",onClick:r.setLimitsSet},{default:p(()=>e[10]||(e[10]=[B(" Ok ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Wi=Ut("default",re(Bi,[["render",Vi]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./GraphWidget-BohHW-97-1f95b047aac874dc24a5.js","./main-93c3aaf3971ea1334ca9.js","vue","single-spa","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue-router","vuex","vuetify"],function(h,u){"use strict";var i,n,r,o,a,l,d;return{setters:[t=>{i=t.S,n=t._},t=>{r=t.s},t=>{o=t.resolveComponent,a=t.openBlock,l=t.createBlock,d=t.normalizeStyle},null,null,null,null,null],execute:function(){const t={components:{Graph:i},mixins:[n]};function p(e,s,g,v,S,f){const c=o("graph");return a(),l(c,{ref:"graph"+e.id,id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:d(e.computedStyle),"time-zone":this.screenTimeZone,onPause:s[0]||(s[0]=()=>e.state="pause"),onStart:s[1]||(s[1]=()=>e.state="start"),"hide-toolbar":"","hide-overview":""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style","time-zone"])}const m=h("default",r(t,[["render",p]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue","./main-93c3aaf3971ea1334ca9.js","vue-router","single-spa","vuex","vuetify"],function(o,d){"use strict";var l,t,n,r,s,a;return{setters:[e=>{l=e.o},e=>{t=e.resolveComponent,n=e.openBlock,r=e.createBlock,s=e.normalizeStyle},e=>{a=e.s},null,null,null,null],execute:function(){const e={props:{value:{type:Number}},mixins:[l],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function u(i,y,c,b,v,f){const p=t("v-radio");return n(),r(p,{"hide-details":"",dense:"",label:v.label,style:s(i.computedStyle),value:c.value},null,8,["label","style","value"])}const m=o("default",a(e,[["render",u]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Layout-D4YBjuWs-be2d1878767310656ca5.js","./VerticalWidget-DziyURNu-766271166fc05ccd6b08.js","vue","./main-93c3aaf3971ea1334ca9.js","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue-router","single-spa","vuex","vuetify"],function(y,k){"use strict";var l,c,s,i,o,u,m,g,p,f,d;return{setters:[e=>{l=e.r},e=>{c=e.default},e=>{s=e.openBlock,i=e.createElementBlock,o=e.normalizeStyle,u=e.Fragment,m=e.renderList,g=e.createBlock,p=e.resolveDynamicComponent,f=e.mergeProps},e=>{d=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],components:{VerticalWidget:c},created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(a=>{a.settings.find(r=>r[0]==="MARGIN"||r[0]==="RAW"&&r[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function v(n,a,r,w,R,j){return s(),i("div",{ref:"container",style:o(n.computedStyle),class:"overflow-y-auto"},[(s(!0),i(u,null,m(n.widgets,(t,h)=>(s(),g(p(t.type),f({ref_for:!0},n.listeners,{key:h,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const B=y("default",d(e,[["render",v]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./GraphWidget-BohHW-97-1f95b047aac874dc24a5.js","./main-93c3aaf3971ea1334ca9.js","vue","single-spa","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue-router","vuex","vuetify"],function(l,c){"use strict";var s,i,n,r,a,o,d;return{setters:[t=>{s=t.S,i=t._},t=>{n=t.s},t=>{r=t.resolveComponent,a=t.openBlock,o=t.createBlock,d=t.normalizeStyle},null,null,null,null,null],execute:function(){const t={components:{Graph:s},mixins:[i],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(e,g,m,v,f,y){const h=r("graph");return a(),o(h,{ref:"graph"+e.id,id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:d(e.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",n(t,[["render",p]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Layout-D4YBjuWs-be2d1878767310656ca5.js","vue","./main-93c3aaf3971ea1334ca9.js","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue-router","single-spa","vuex","vuetify"],function(k,N){"use strict";var p,s,r,l,g,v,i,u,c,o,y,f,w,b,V;return{setters:[e=>{p=e.r},e=>{s=e.resolveComponent,r=e.openBlock,l=e.createElementBlock,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.s},null,null,null,null,null],execute:function(){const e={mixins:[p],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function x(t,m,z,h,j,L){const T=s("v-tab"),B=s("v-tabs"),C=s("v-window-item"),S=s("v-window");return r(),l("div",null,[g(B,{modelValue:t.curTab,"onUpdate:modelValue":m[0]||(m[0]=a=>t.curTab=a),style:v(t.computedStyle)},{default:i(()=>[(r(!0),l(u,null,c(t.widgets,(a,d)=>(r(),o(T,{key:d},{default:i(()=>[y(f(a.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(S,{modelValue:t.curTab,"onUpdate:modelValue":m[1]||(m[1]=a=>t.curTab=a)},{default:i(()=>[(r(!0),l(u,null,c(t.widgets,(a,d)=>(r(),o(C,{key:d},{default:i(()=>[(r(!0),l(u,null,c(a.widgets,(n,D)=>(r(),o(w(n.type),b({ref_for:!0},t.listeners,{key:`${d}-${D}`,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 _=k("default",V(e,[["render",x]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-93c3aaf3971ea1334ca9.js","vue","./DetailsDialog-DiVcC3Fg-436e3e3668382eb38258.js","single-spa","./VWidget-CGdM4sTw-4d6cf976c46dc49f7f0d.js","vue-router","vuex","vuetify","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js"],function(f,E){"use strict";var c,a,l,o,n,u,d,s,m,h,g,p,v,x,w,C;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,l=e.openBlock,o=e.createElementBlock,n=e.createVNode,u=e.normalizeClass,d=e.normalizeStyle,s=e.withCtx,m=e.Fragment,h=e.renderList,g=e.createBlock,p=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{w=e.P},null,e=>{C=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:w},data:function(){return{width:200,height:200}},mixins:[C],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},y={class:"textbox-widget-container"};function V(t,r,L,j,F,k){const D=a("v-textarea"),S=a("v-list-item-title"),_=a("v-list-item"),B=a("v-list"),M=a("v-menu"),T=a("details-dialog");return l(),o("div",y,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:u(t.valueClass),style:d([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(M,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:s(()=>[n(B,null,{default:s(()=>[(l(!0),o(m,null,h(t.contextMenuOptions,(i,z)=>(l(),g(_,{key:z,onClick:p(i.action,["stop"])},{default:s(()=>[n(S,null,{default:s(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(T,{"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 N=f("default",c(e,[["render",V],["__scopeId","data-v-10f560aa"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue","./main-93c3aaf3971ea1334ca9.js","vue-router","single-spa","vuex","vuetify"],function(o,m){"use strict";var t,r,n,l,s,a;return{setters:[e=>{t=e.o},e=>{r=e.openBlock,n=e.createElementBlock,l=e.normalizeStyle,s=e.toDisplayString},e=>{a=e.s},null,null,null,null],execute:function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function i(c,x,f,y,g,u){return r(),n("span",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},s(u.labelText),5)}const p=o("default",a(e,[["render",i]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-93c3aaf3971ea1334ca9.js","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js"],function(S,T){"use strict";var v,w;return{setters:[h=>{v=h.P},h=>{w=h.o}],execute:function(){var h={},b;function x(){return b||(b=1,function(t){(function(){var s={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function c(n){return E(V(n),arguments)}function I(n,u){return c.apply(null,[n].concat(u||[]))}function E(n,u){var i=1,p=n.length,e,o="",l,a,r,m,g,y,_,d;for(l=0;l<p;l++)if(typeof n[l]=="string")o+=n[l];else if(typeof n[l]=="object"){if(r=n[l],r.keys)for(e=u[i],a=0;a<r.keys.length;a++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[a],r.keys[a-1]));e=e[r.keys[a]]}else r.param_no?e=u[r.param_no]:e=u[i++];if(s.not_type.test(r.type)&&s.not_primitive.test(r.type)&&e instanceof Function&&(e=e()),s.numeric_arg.test(r.type)&&typeof e!="number"&&isNaN(e))throw new TypeError(c("[sprintf] expecting number but found %T",e));switch(s.number.test(r.type)&&(_=e>=0),r.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,r.width?parseInt(r.width):0);break;case"e":e=r.precision?parseFloat(e).toExponential(r.precision):parseFloat(e).toExponential();break;case"f":e=r.precision?parseFloat(e).toFixed(r.precision):parseFloat(e);break;case"g":e=r.precision?String(Number(e.toPrecision(r.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=r.precision?e.substring(0,r.precision):e;break;case"t":e=String(!!e),e=r.precision?e.substring(0,r.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=r.precision?e.substring(0,r.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=r.precision?e.substring(0,r.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase();break}s.json.test(r.type)?o+=e:(s.number.test(r.type)&&(!_||r.sign)?(d=_?"+":"-",e=e.toString().replace(s.sign,"")):d="",g=r.pad_char?r.pad_char==="0"?"0":r.pad_char.charAt(1):" ",y=r.width-(d+e).length,m=r.width&&y>0?g.repeat(y):"",o+=r.align?d+e+m:g==="0"?d+m+e:m+d+e)}return o}var f=Object.create(null);function V(n){if(f[n])return f[n];for(var u=n,i,p=[],e=0;u;){if((i=s.text.exec(u))!==null)p.push(i[0]);else if((i=s.modulo.exec(u))!==null)p.push("%");else if((i=s.placeholder.exec(u))!==null){if(i[2]){e|=1;var o=[],l=i[2],a=[];if((a=s.key.exec(l))!==null)for(o.push(a[1]);(l=l.substring(a[0].length))!=="";)if((a=s.key_access.exec(l))!==null)o.push(a[1]);else if((a=s.index_access.exec(l))!==null)o.push(a[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");i[2]=o}else e|=2;if(e===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:i[0],param_no:i[1],keys:i[2],sign:i[3],pad_char:i[4],align:i[5],width:i[6],precision:i[7],type:i[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(i[0].length)}return f[n]=p}t.sprintf=c,t.vsprintf=I,typeof window<"u"&&(window.sprintf=c,window.vsprintf=I)})()}(h)),h}x();const k={methods:{formatValueBase(t,s){return this.isJsonString(t)?this.formatJsonString(t):Array.isArray(t)?this.formatArray(t):this.isObject(t)?"":s&&t?sprintf(s,t):String(t)},isJsonString(t){return t&&t.json_class==="String"&&t.raw!==void 0},formatJsonString(t){let s=Array.from(t.raw.slice(0,32),c=>("0"+(c&255).toString(16)).slice(-2)).join(" ").toUpperCase();return t.raw.length>32&&(s+="..."),s},formatArray(t){return"["+t.map(s=>typeof s=="string"?`"${s}"`:s).join(", ")+"]"},isObject(t){return Object.prototype.toString.call(t).slice(8,-1)==="Object"}}},L=S("L",{mixins:[w,v,k],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]),"_blank")}}]}},watch:{_counter:function(t,s){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let t=this.limitsState;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][1]):t=null),t},_counter:function(){let t=this.counter;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][2]):t=null),t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let t=this._limitsState;if(t!=null)switch(t){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let t=this._limitsState;if(t!=null){let s=t.charAt(0);return t.endsWith("_LOW")&&(s=s.toLowerCase()),s}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let t=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),this.parameters[2]=this.parameters[2].replace(t[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let t="WITH_UNITS";return this.parameters[3]&&(t=this.parameters[3]),t},formatValue(t){return t&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED"))?(t=t.replaceAll("/","-"),this.formatUtcToLocal(new Date(t),this.appliedTimeZone)):this.formatValueBase(t,this.formatString)},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-93c3aaf3971ea1334ca9.js","vue","./DetailsDialog-DiVcC3Fg-436e3e3668382eb38258.js","single-spa","./VWidget-CGdM4sTw-4d6cf976c46dc49f7f0d.js","vue-router","vuex","vuetify","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js"],function(k,U){"use strict";var c,a,r,o,d,n,s,m,p,v,u,g,f,h,x,y,V,C;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,r=e.openBlock,o=e.createElementBlock,d=e.normalizeStyle,n=e.createVNode,s=e.withCtx,m=e.mergeProps,p=e.createSlots,v=e.createElementVNode,u=e.toDisplayString,g=e.Fragment,f=e.renderList,h=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},null,e=>{C=e.L},null,null,null,null],execute:function(){const S={components:{DetailsDialog:V},mixins:[C],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+4,"ch",this.width)}};function D(t,i,j,I,z,w){const E=a("rux-status"),_=a("v-text-field"),N=a("v-tooltip"),T=a("v-list-item-title"),L=a("v-list-item"),M=a("v-list"),B=a("v-menu"),P=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,w.aging])},[n(N,{location:"top"},{activator:s(({props:l})=>[n(_,m({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value",onContextmenu:t.showContextMenu},l),p({_:2},[t.astroStatus?{name:"prepend-inner",fn:s(()=>[n(E,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:s(()=>[v("span",null,u(w.fullName),1)]),_:1}),n(B,{modelValue:t.contextMenuShown,"onUpdate:modelValue":i[0]||(i[0]=l=>t.contextMenuShown=l),target:[t.x,t.y],style:{"z-index":"3000"}},{default:s(()=>[n(M,null,{default:s(()=>[(r(!0),o(g,null,f(t.contextMenuOptions,(l,A)=>(r(),h(L,{key:A,onClick:x(l.action,["stop"])},{default:s(()=>[n(T,null,{default:s(()=>[y(u(l.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(P,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":i[1]||(i[1]=l=>t.viewDetails=l)},null,8,["target-name","packet-name","item-name","modelValue"])],4)}const W=k("default",c(S,[["render",D],["__scopeId","data-v-c21e4dde"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./ValueWidget-h3905woQ-fcbb9882c26bc56d3182.js","./LimitsbarWidget-D-wfz_St-b5a4f1a6cb26c135996b.js","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue","./main-93c3aaf3971ea1334ca9.js","./DetailsDialog-DiVcC3Fg-436e3e3668382eb38258.js","single-spa","./VWidget-CGdM4sTw-4d6cf976c46dc49f7f0d.js","vue-router","vuex","vuetify","./BarColumn-B6tCmNJm-81299b2ec5265c815997.js"],function(g,f){"use strict";var l,i,a,s,o,u,c,n,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{s=e.resolveComponent,o=e.openBlock,u=e.createElementBlock,c=e.normalizeStyle,n=e.createVNode,r=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitsbarWidget:i}};function d(t,x,V,b,j,C){const p=s("value-widget"),v=s("limitsbar-widget");return o(),u("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[n(p,r(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),n(v,r(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const w=g("default",m(e,[["render",d]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./ValueWidget-h3905woQ-fcbb9882c26bc56d3182.js","./LimitscolumnWidget-Dt5ce4hN-3ab5f802493038f2b108.js","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue","./main-93c3aaf3971ea1334ca9.js","./DetailsDialog-DiVcC3Fg-436e3e3668382eb38258.js","single-spa","./VWidget-CGdM4sTw-4d6cf976c46dc49f7f0d.js","vue-router","vuex","vuetify","./BarColumn-B6tCmNJm-81299b2ec5265c815997.js"],function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitscolumnWidget:i}};function d(t,w,j,C,N,x){const p=n("limitscolumn-widget"),v=n("value-widget");return u(),o("div",{ref:"container",style:c(t.computedStyle)},[s(p,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const V=g("default",m(e,[["render",d]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./ValueWidget-h3905woQ-fcbb9882c26bc56d3182.js","./RangebarWidget-DbYrwEfC-8e4508c3ca65c32801e6.js","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue","./main-93c3aaf3971ea1334ca9.js","./DetailsDialog-DiVcC3Fg-436e3e3668382eb38258.js","single-spa","./VWidget-CGdM4sTw-4d6cf976c46dc49f7f0d.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,m,u,o,s,a,c;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,m=e.openBlock,u=e.createElementBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{c=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,x,V,S,j,p){const v=r("value-widget"),h=r("rangebar-widget");return m(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:p.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(h,a(t.$attrs,{parameters:p.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const w=g("default",c(e,[["render",d]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./VerticalWidget-DziyURNu-766271166fc05ccd6b08.js","./Layout-D4YBjuWs-be2d1878767310656ca5.js","vue","./main-93c3aaf3971ea1334ca9.js","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue-router","single-spa","vuex","vuetify"],function(v,f){"use strict";var r,i,s,l,a,n,c,o,u,g,p,m;return{setters:[e=>{r=e.default},e=>{i=e.r},e=>{s=e.resolveComponent,l=e.openBlock,a=e.createElementBlock,n=e.createVNode,c=e.normalizeStyle,o=e.withCtx,u=e.createTextVNode,g=e.toDisplayString,p=e.mergeProps},e=>{m=e.s},null,null,null,null,null],execute:function(){const e={mixins:[i],components:{VerticalWidget:r}};function d(t,w,S,j,k,z){const y=s("v-banner"),x=s("vertical-widget");return l(),a("div",null,[n(y,{class:"boxbanner",style:c(t.computedStyle),"single-line":""},{default:o(()=>[u(g(t.parameters[0]),1)]),_:1},8,["style"]),n(x,p(t.listeners,{parameters:t.parameters.slice(1),settings:t.settings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const V=v("default",m(e,[["render",d],["__scopeId","data-v-832aa5cd"]]))}}});
|