openc3-cosmos-tool-tablemanager 6.2.1 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/tablemanager/{ArrayWidget-BxEO5hEG-3a73fe422564c0429019.js → ArrayWidget-BbsN1dzF-959f895dd277057383c1.js} +2 -2
- data/tools/tablemanager/{ArrayplotWidget-B_VPoV4v-614b214bbb69773602e6.js → ArrayplotWidget-CCKEyYIx-346527d8ce418723987f.js} +1 -1
- data/tools/tablemanager/{BarColumn-C9dkpg2O-afaaf4c015a17f51205d.js → BarColumn-C6p07yWK-b792c9c7d152d8e7eac0.js} +1 -1
- data/tools/tablemanager/BlockWidget-DlCHbqZX-931e540736560d3298ad.js +2 -0
- data/tools/tablemanager/{ButtonWidget-B6HM0Doo-ab11ef0f26b360b37c5f.js → ButtonWidget-CtfJzCBR-21a7269786cac7b63ed2.js} +2 -2
- data/tools/tablemanager/{CanvasWidget-DZQGG-yQ-450fa6b1ddd932d29d98.js → CanvasWidget-CqRlXc4r-7ea98cc5aa658273d3ab.js} +1 -1
- data/tools/tablemanager/CanvasdotWidget--Xr_KsZs-fd37759adf5ff324502c.js +1 -0
- data/tools/tablemanager/{CanvasimageWidget-mhcPpAuN-3a4572ba31e277b16cbd.js → CanvasimageWidget-BPlj5QYK-4f3fc8e5b175b2af118a.js} +1 -1
- data/tools/tablemanager/{CanvasimagevalueWidget-Cx-dH8Gc-6a5ad086319cf0d016eb.js → CanvasimagevalueWidget-DVFGLt8f-5d90c4a6f82cfaeea904.js} +1 -1
- data/tools/tablemanager/CanvaslabelWidget-CYNqmyP0-ee5f201f9b9a94ef6529.js +1 -0
- data/tools/tablemanager/{CanvaslabelvalueWidget-CwmYDCjr-95d9dc3d6675b6cd6e95.js → CanvaslabelvalueWidget-B7yIDmsn-a62a21cc67b2555f10ed.js} +1 -1
- data/tools/tablemanager/CanvaslineWidget-BICdxX0Q-c00d646b5ebac0888f19.js +1 -0
- data/tools/tablemanager/{CanvaslinevalueWidget-C3sJnjLQ-411d1f87490e88f39075.js → CanvaslinevalueWidget-Cq-Ddh0P-7cd0e41fbdea71aaf9d7.js} +1 -1
- data/tools/tablemanager/CheckbuttonWidget-B74AWeaW-b3c0cfbdc0a8149a68ca.js +1 -0
- data/tools/tablemanager/ComboboxWidget-CtyKbEWb-dc447488fe813641c5c0.js +1 -0
- data/tools/tablemanager/DateWidget-BEVSczU8-1f01bd84bcb9e186cab1.js +1 -0
- data/tools/tablemanager/{DetailsDialog-BvbziA7Y-8ff3365fb0330e67e92d.js → DetailsDialog-DmEC5BTs-1d5b2d4cb4d94c28fb08.js} +1 -1
- data/tools/tablemanager/{DynamicWidget-gFSYxzvT-80de147600fb5278d2fa.js → DynamicWidget-CfMtj7H8-7310a45e174b3e0e1f4d.js} +1 -1
- data/tools/tablemanager/{FormatvalueWidget-CGpnTqVH-a388e9c67416044cd56a.js → FormatvalueWidget-DN12xymS-5d92462ee8b18046d1f4.js} +1 -1
- data/tools/tablemanager/Graph-Bgo0cjl3-52421e0307d7ca0fbe50.js +1 -0
- data/tools/tablemanager/{GraphWidget-Dycey-mj-84f812318e1113f14c38.js → GraphWidget-DurWDmpg-c9b122c94c912d0741ba.js} +1 -1
- data/tools/tablemanager/{HorizontalWidget-D31NRWy5-958adfe5f70cc49258e5.js → HorizontalWidget-Cd_wl1b3-1c2997802975048e709f.js} +1 -1
- data/tools/tablemanager/HorizontalboxWidget-BcMTFBU--8ad91cd7bc665ab4766a.js +1 -0
- data/tools/tablemanager/HorizontallineWidget-CXFqHclf-de6750f9b87d7529cbf5.js +1 -0
- data/tools/tablemanager/{IframeWidget-Ctj8OIcG-b610a31a59161ba750cf.js → IframeWidget-BPerHCCa-cdb2815ceb98ee81983f.js} +1 -1
- data/tools/tablemanager/{ImageLoader-BrNrCBvi-4a283664736dbaae848c.js → ImageLoader-4N-7Gj61-a07bd29ee9cfe36f21d7.js} +1 -1
- data/tools/tablemanager/ImageviewerWidget-Cw_H_HmZ-dc0a5ab97b39f8b02ffd.js +1 -0
- data/tools/tablemanager/{LabelWidget-t7I87dp7-23d565a7a3e595de5a3a.js → LabelWidget-xrmcVeq8-d217d37c2a6475bb6a9d.js} +1 -1
- data/tools/tablemanager/LabelledWidget-D48QoyMk-24bd01061fc3c283bb8e.js +1 -0
- data/tools/tablemanager/LabelprogressbarWidget-C_950t6g-42d1ee457a76977a9926.js +1 -0
- data/tools/tablemanager/LabelsparklineWidget-0KXQyPoU-4fefa82bdaecf6d9a3d0.js +1 -0
- data/tools/tablemanager/{LabelvalueWidget-Zx_yHCtl-e5c665527952e66cb7bd.js → LabelvalueWidget-CQ06wWDK-ac37a8b84574824ad5b7.js} +1 -1
- data/tools/tablemanager/{LabelvaluedescWidget-BBSBh4vI-efaa36da0688d2643586.js → LabelvaluedescWidget-Bo8zT01X-9c0bf9f4cf055d8313f8.js} +1 -1
- data/tools/tablemanager/{LabelvaluelimitsbarWidget-CZueHYWG-17bead7bb9d109e43b93.js → LabelvaluelimitsbarWidget-BucTw8Yk-e8fa86e345960718befd.js} +1 -1
- data/tools/tablemanager/LabelvaluelimitscolumnWidget-Dflb1hNd-a33ca9d0e9a93745c199.js +1 -0
- data/tools/tablemanager/{LabelvaluerangebarWidget-BhYTBgDq-2bdd722a647658c589bd.js → LabelvaluerangebarWidget-D8cbfXFM-ef9ea25e0833526e661c.js} +1 -1
- data/tools/tablemanager/{Layout-Bh7VzCZd-8c7800d758c191052a54.js → Layout-Tf--nruw-7e1c88bcb2d1e9c2cc9c.js} +1 -1
- data/tools/tablemanager/LedWidget-qH_FthkK-8c5e19d8ac9c7a6f321d.js +1 -0
- data/tools/tablemanager/{LimitsbarWidget-Djui0IpK-9c16f9767089dad25ed6.js → LimitsbarWidget-B9lAB2RD-46ce18c4a5dd690481e6.js} +1 -1
- data/tools/tablemanager/{LimitscolorWidget-DdmvKzmx-81f0bbf494d5c0a3fa28.js → LimitscolorWidget-c6Qa6su7-1ac01b8834b586d34820.js} +1 -1
- data/tools/tablemanager/{LimitscolumnWidget-Cc19IEjq-5e1e31809753a837e695.js → LimitscolumnWidget-CcLs_443-f29417bf8f4f674783bd.js} +1 -1
- data/tools/tablemanager/LinegraphWidget-BSVYLFo1-2acb1a88e7e56ce79a5a.js +1 -0
- data/tools/tablemanager/MatrixbycolumnsWidget-DXFpZTre-8918bddf56b2e85dce07.js +1 -0
- data/tools/tablemanager/{ProgressbarWidget-DIfqhHRE-57a1a49f10e1f8c4fe88.js → ProgressbarWidget-iYGw8-Dc-224838ec829e2d0aaaa2.js} +1 -1
- data/tools/tablemanager/RadiobuttonWidget-ytmoVZ3u-203d8cf62a1dbf9d4a07.js +1 -0
- data/tools/tablemanager/{RadiogroupWidget-Ci9sCX39-a9368165055b6fb98bec.js → RadiogroupWidget-CusMBhKH-b3330247ae7a777565fa.js} +1 -1
- data/tools/tablemanager/{RangebarWidget-CN0YuHqy-55884175e54d1bf0242c.js → RangebarWidget-D_zGTtCa-3b37862085afd896c860.js} +1 -1
- data/tools/tablemanager/{RollupWidget-y4jBtJB2-3212cb134c1c60f94d02.js → RollupWidget-Dolsixyt-215ca55830b76e505c94.js} +1 -1
- data/tools/tablemanager/ScrollwindowWidget-DV2nZuNi-688f314da002c3dea6fb.js +1 -0
- data/tools/tablemanager/{SignalWidget-DQ5Uc2uV-216dbd95901481c86c15.js → SignalWidget-d9-6h85k-5806e363f98a90f36b92.js} +1 -1
- data/tools/tablemanager/SpacerWidget-BH0p2OLi-3e44b9fc8ff9cdb8e47e.js +1 -0
- data/tools/tablemanager/{SparklineWidget-CZtvu2ss-df7d74a972238c4b44b5.js → SparklineWidget-coxi9r2g-e8dd44a94f090ab553c2.js} +1 -1
- data/tools/tablemanager/TabbookWidget-B1XKplGH-21be3775bb05a42b4489.js +1 -0
- data/tools/tablemanager/TableManager-57dfe866c6d08795123c.js +13 -0
- data/tools/tablemanager/TextboxWidget-C-_M2M4l-1be0ab781fe0200895fd.js +1 -0
- data/tools/tablemanager/{TextfieldWidget-Df0ANSiU-a28e82fd9d48be8f8681.js → TextfieldWidget-C08N4JE8-1d9f7537a0fa53d0113c.js} +1 -1
- data/tools/tablemanager/TimeWidget-DtwdEcFg-afe7ad8fa99dd194ca59.js +1 -0
- data/tools/tablemanager/TitleWidget-CT-aLcNb-458d3c419a64e978301d.js +1 -0
- data/tools/tablemanager/{VWidget-C4spAawK-8c01507f7f06c5187684.js → VWidget-DQqb7NVW-d11f448dc9b15447843f.js} +1 -1
- data/tools/tablemanager/ValueWidget-C6RanBj3-2f0a0c754e68ac6c14a2.js +1 -0
- data/tools/tablemanager/ValuelimitsbarWidget-B3bvjfxc-25ed16c2313234a49832.js +1 -0
- data/tools/tablemanager/ValuelimitscolumnWidget-QvhI6EcE-e110f67cadf8ca55f828.js +1 -0
- data/tools/tablemanager/ValuerangebarWidget-Dt3K9BnC-75e9d7e093a62f7c3249.js +1 -0
- data/tools/tablemanager/{VerticalWidget-D8jUFxjS-cf44fa81ee676059ad9a.js → VerticalWidget-BIIViZgI-9b15e72a48b5a570cf2a.js} +1 -1
- data/tools/tablemanager/VerticalboxWidget-DY72fLHW-66bb7cf651d4ee151f1f.js +1 -0
- data/tools/tablemanager/{Widget-fRCERxGf-cfb11a01a4e0819f0115.js → Widget-oyqWpFXJ-c03892ad37a5994a2368.js} +1 -1
- data/tools/tablemanager/main-1bc219fcc4bfc28dfaea.js +1497 -0
- data/tools/tablemanager/main.js +1 -1
- metadata +70 -73
- data/tools/tablemanager/BlockWidget-CuefOin6-2ce5f8e02729dff1191a.js +0 -2
- data/tools/tablemanager/CanvasdotWidget-6wuCSnw_-3e9a58f6ec929696a27d.js +0 -1
- data/tools/tablemanager/CanvaslabelWidget-CQZCeohU-2a4272c49b592e4ddf45.js +0 -1
- data/tools/tablemanager/CanvaslineWidget-nTP3fJB4-aea34db4c2864fce9a30.js +0 -1
- data/tools/tablemanager/CheckbuttonWidget-5-8YDsQL-c0409ca47123c3f97f46.js +0 -1
- data/tools/tablemanager/ComboboxWidget-DzBL8h9f-5954ab30bd7b7426b22c.js +0 -1
- data/tools/tablemanager/DateWidget-CW7Od7lB-1d0b15f0e4330f7e065f.js +0 -1
- data/tools/tablemanager/Graph-3rkhFP3G-1b4e0490f8d49eee571f.js +0 -1
- data/tools/tablemanager/HorizontalboxWidget-Br8dSVHD-5039ded5a283caa87aac.js +0 -1
- data/tools/tablemanager/HorizontallineWidget-CbxREBYI-37095b3ec5bbd179e346.js +0 -1
- data/tools/tablemanager/ImageviewerWidget-XrsqxmLo-9c12d72a58d8807ae1d6.js +0 -1
- data/tools/tablemanager/LabelledWidget-C7TDf92M-1c3bd9b94afe1875582f.js +0 -1
- data/tools/tablemanager/LabelprogressbarWidget-wwLURt1u-3c35046cdccb5a71641b.js +0 -1
- data/tools/tablemanager/LabelsparklineWidget-B3awLUyP-2931c20a0ea5be337cfa.js +0 -1
- data/tools/tablemanager/LabelvaluelimitscolumnWidget-BTvzyQMq-b6ffd102e2b4d8350578.js +0 -1
- data/tools/tablemanager/LedWidget-CxJjJBBS-26ce1b6e69c9598eb5b0.js +0 -1
- data/tools/tablemanager/LinegraphWidget-BtieJxeL-5bcb3fef06b23b91f5f2.js +0 -1
- data/tools/tablemanager/MatrixbycolumnsWidget-DnExVRF8-7f673688a46bf30cf39a.js +0 -1
- data/tools/tablemanager/RadiobuttonWidget-QzIkNP7m-c961855d53dedce26894.js +0 -1
- data/tools/tablemanager/ScrollwindowWidget-CBzYk4Y3-647d2a92619222daf4b8.js +0 -1
- data/tools/tablemanager/SpacerWidget-6rsc_dSM-fa85148918d47c63fca8.js +0 -1
- data/tools/tablemanager/TabbookWidget-DNALU0jl-51a0e5ec34cf2a336675.js +0 -1
- data/tools/tablemanager/TableManager-4489278ed163678dc1b3.js +0 -11
- data/tools/tablemanager/TextboxWidget-5hqPj74D-f302a608328b0b1967db.js +0 -1
- data/tools/tablemanager/TimeWidget-C6XQMUG2-dd29c7ddc2d565ba7979.js +0 -1
- data/tools/tablemanager/TitleWidget-B9SPUlbW-4ff0c087c1a143f4def0.js +0 -1
- data/tools/tablemanager/ValueWidget-D4RrYVEK-1772418f3c2af2fafe2f.js +0 -1
- data/tools/tablemanager/ValuelimitsbarWidget-Bc9_Vj_f-6789a20f577eb37c438b.js +0 -1
- data/tools/tablemanager/ValuelimitscolumnWidget-DHKIL7sf-24c5ee3bba096f057c3d.js +0 -1
- data/tools/tablemanager/ValuerangebarWidget-CecQRIok-95791525460c7348f42a.js +0 -1
- data/tools/tablemanager/VerticalboxWidget-B4eGUSYH-fe49e2388548a6c9c51d.js +0 -1
- data/tools/tablemanager/main-2fe9a0af25d48afd561f.js +0 -1423
@@ -1,11 +0,0 @@
|
|
1
|
-
System.register(["./main-2fe9a0af25d48afd561f.js","vue","single-spa","./VWidget-C4spAawK-8c01507f7f06c5187684.js","./IframeWidget-Ctj8OIcG-b610a31a59161ba750cf.js","vue-router","vuex","vuetify","./Widget-fRCERxGf-cfb11a01a4e0819f0115.js"],function(nn,Wo){"use strict";var Te,fe,ot,b,T,S,m,g,V,z,Re,Ne,k,it,L,K,G,je,he,Q,Fe,De,st;return{setters:[A=>{Te=A.s,fe=A._,ot=A.J},A=>{b=A.resolveComponent,T=A.createBlock,S=A.openBlock,m=A.withCtx,g=A.createVNode,V=A.createElementVNode,z=A.toDisplayString,Re=A.normalizeProps,Ne=A.guardReactiveProps,k=A.createTextVNode,it=A.Teleport,L=A.createElementBlock,K=A.Fragment,G=A.renderList,je=A.mergeProps,he=A.createSlots,Q=A.createCommentVNode,Fe=A.normalizeStyle,De=A.withModifiers},null,A=>{st=A.k},null,null,null,null,null],execute:function(){var A=document.createElement("style");A.textContent=`.filename[data-v-581bcfd1]{background-color:var(--color-background-base-default)}
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(A);const rn={props:{modelValue:Boolean,text:String,title:String,width:{type:Number,default:800}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},methods:{download:function(){const t=new Blob([this.text],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download",`${this.title}.txt`),e.click()}}},on={class:"mx-2"},sn={class:"pa-3"},an={class:"text"};function ln(t,e,n,r,o,i){const s=b("v-spacer"),l=b("v-icon"),c=b("v-tooltip"),u=b("v-toolbar"),d=b("v-card-text"),p=b("v-btn"),_=b("v-card-actions"),f=b("v-card"),v=b("v-dialog");return S(),T(v,{modelValue:i.show,"onUpdate:modelValue":e[1]||(e[1]=h=>i.show=h),width:n.width,scrollable:""},{default:m(()=>[g(f,null,{default:m(()=>[g(u,{height:"24"},{default:m(()=>[g(s),V("span",null,z(n.title),1),g(s),V("div",on,[g(c,{location:"top"},{activator:m(({props:h})=>[V("div",Re(Ne(h)),[g(l,{"data-test":"downloadIcon",onClick:i.download},{default:m(()=>e[2]||(e[2]=[k(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:m(()=>[e[3]||(e[3]=V("span",null," Download ",-1))]),_:1})])]),_:1}),g(d,{style:{"max-height":"80vh"}},{default:m(()=>[V("div",sn,[V("span",an,z(n.text),1)])]),_:1}),g(_,{class:"px-2"},{default:m(()=>[g(s),g(p,{variant:"flat",onClick:e[0]||(e[0]=h=>i.show=!i.show)},{default:m(()=>e[4]||(e[4]=[k(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const cn=Te(rn,[["render",ln],["__scopeId","data-v-a60ace75"]]),un={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}},dn={class:"app-title mr-2"};function fn(t,e,n,r,o,i){const s=b("v-col"),l=b("v-row"),c=b("v-icon"),u=b("v-btn"),d=b("v-divider"),p=b("v-list-item-title"),_=b("v-list-item"),f=b("v-list"),v=b("v-menu"),h=b("v-radio"),N=b("v-list-item-action"),C=b("v-radio-group"),O=b("v-checkbox");return S(),T(it,{to:"#openc3-menu"},[g(l,{"no-gutters":""},{default:m(()=>[g(s,{"align-self":"end"},{default:m(()=>[V("span",dn,z(n.title),1)]),_:1})]),_:1}),g(l,{dense:"",class:"flex-nowrap"},{default:m(()=>[(S(!0),L(K,null,G(n.menus,(D,J)=>(S(),T(v,{ref_for:!0,ref:"topmenu",key:J},{activator:m(({props:w})=>[g(u,je({ref_for:!0},w,{variant:"outlined",class:"mx-1 menu-button",text:D.label,"data-test":i.formatDT(`${n.title} ${D.label}`)}),{append:m(()=>[g(c,{class:"menu-button-icon"},{default:m(()=>e[0]||(e[0]=[k(" mdi-menu-down ")])),_:1})]),_:2},1040,["text","data-test"])]),default:m(()=>[g(f,null,{default:m(()=>[(S(!0),L(K,null,G(D.items,(w,U)=>(S(),L(K,null,[w.divider?(S(),T(d,{key:U+"-divider"})):w.subMenu&&w.subMenu.length>0?(S(),L("div",{key:U+"-submenu"},[(S(),T(v,{"open-on-hover":"",location:"right",key:U},{activator:m(({props:j})=>[(S(),T(_,je({ref_for:!0},j,{disabled:w.disabled,key:U}),he({append:m(()=>[g(c,null,{default:m(()=>e[1]||(e[1]=[k(" mdi-chevron-right ")])),_:1})]),default:m(()=>[!w.radio&&!w.checkbox?(S(),T(p,{key:0,style:Fe("cursor: pointer;"+(w.disabled?"opacity: 0.2":""))},{default:m(()=>[k(z(w.label),1)]),_:2},1032,["style"])):Q("",!0)]),_:2},[w.icon?{name:"prepend",fn:m(()=>[g(c,{disabled:w.disabled},{default:m(()=>[k(z(w.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:m(()=>[g(f,null,{default:m(()=>[(S(!0),L(K,null,G(w.subMenu,(j,M)=>(S(),T(_,{key:M,"prepend-icon":j.icon,onClick:X=>i.subMenuClick(j)},{default:m(()=>[g(p,null,{default:m(()=>[k(z(j.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):w.radioGroup?(S(),T(C,{"model-value":w.value,"onUpdate:modelValue":w.command,key:U+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:m(()=>[(S(!0),L(K,null,G(w.choices,(j,M)=>(S(),T(_,{key:M+"-choice"},{default:m(()=>[g(N,{class:"list-action"},{default:m(()=>[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"])):(S(),T(_,{onClick:j=>w.command(w),disabled:w.disabled,"data-test":i.formatDT(`${n.title} ${D.label} ${w.label}`),key:U+"-list"},he({default:m(()=>[w.checkbox?(S(),T(N,{key:0,class:"list-action"},{default:m(()=>[g(O,{modelValue:w.checked,"onUpdate:modelValue":j=>w.checked=j,label:w.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):Q("",!0),!w.radio&&!w.checkbox?(S(),T(p,{key:1,style:Fe("cursor: pointer;"+(w.disabled?"opacity: 0.2":""))},{default:m(()=>[k(z(w.label),1)]),_:2},1032,["style"])):Q("",!0)]),_:2},[w.icon?{name:"prepend",fn:m(()=>[g(c,{icon:w.icon,disabled:w.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const hn=Te(un,[["render",fn],["__scopeId","data-v-4d454b93"]]);var pn=Object.defineProperty,mn=(t,e,n)=>e in t?pn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,pe=(t,e,n)=>mn(t,typeof e!="symbol"?e+"":e,n);function at(t,e){return function(){return t.apply(e,arguments)}}const{toString:gn}=Object.prototype,{getPrototypeOf:Ue}=Object,me=(t=>e=>{const n=gn.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),H=t=>(t=t.toLowerCase(),e=>me(e)===t),ge=t=>e=>typeof e===t,{isArray:oe}=Array,se=ge("undefined");function _n(t){return t!==null&&!se(t)&&t.constructor!==null&&!se(t.constructor)&&q(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const lt=H("ArrayBuffer");function bn(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&<(t.buffer),e}const yn=ge("string"),q=ge("function"),ct=ge("number"),_e=t=>t!==null&&typeof t=="object",wn=t=>t===!0||t===!1,be=t=>{if(me(t)!=="object")return!1;const e=Ue(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},vn=H("Date"),xn=H("File"),En=H("Blob"),Sn=H("FileList"),An=t=>_e(t)&&q(t.pipe),kn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||q(t.append)&&((e=me(t))==="formdata"||e==="object"&&q(t.toString)&&t.toString()==="[object FormData]"))},On=H("URLSearchParams"),[Cn,Tn,Rn,Nn]=["ReadableStream","Request","Response","Headers"].map(H),jn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ae(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),oe(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let l;for(r=0;r<s;r++)l=i[r],e.call(null,t[l],l,t)}}function ut(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const Y=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dt=t=>!se(t)&&t!==Y;function Ie(){const{caseless:t}=dt(this)&&this||{},e={},n=(r,o)=>{const i=t&&ut(e,o)||o;be(e[i])&&be(r)?e[i]=Ie(e[i],r):be(r)?e[i]=Ie({},r):oe(r)?e[i]=r.slice():e[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&ae(arguments[r],n);return e}const Fn=(t,e,n,{allOwnKeys:r}={})=>(ae(e,(o,i)=>{n&&q(o)?t[i]=at(o,n):t[i]=o},{allOwnKeys:r}),t),Dn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Un=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},In=(t,e,n,r)=>{let o,i,s;const l={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!r||r(s,t,e))&&!l[s]&&(e[s]=t[s],l[s]=!0);t=n!==!1&&Ue(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Pn=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Bn=t=>{if(!t)return null;if(oe(t))return t;let e=t.length;if(!ct(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Vn=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ue(Uint8Array)),Ln=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const o=r.value;e.call(t,o[0],o[1])}},$n=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},qn=H("HTMLFormElement"),Mn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,r){return n.toUpperCase()+r}),ft=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),zn=H("RegExp"),ht=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ae(n,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(r[i]=s||o)}),Object.defineProperties(t,r)},Hn=t=>{ht(t,(e,n)=>{if(q(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(q(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jn=(t,e)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return oe(t)?r(t):r(String(t).split(e)),n},Wn=()=>{},Kn=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Pe="abcdefghijklmnopqrstuvwxyz",pt="0123456789",mt={DIGIT:pt,ALPHA:Pe,ALPHA_DIGIT:Pe+Pe.toUpperCase()+pt},Gn=(t=16,e=mt.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Xn(t){return!!(t&&q(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Qn=t=>{const e=new Array(10),n=(r,o)=>{if(_e(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const i=oe(r)?[]:{};return ae(r,(s,l)=>{const c=n(s,o+1);!se(c)&&(i[l]=c)}),e[o]=void 0,i}}return r};return n(t,0)},Yn=H("AsyncFunction"),Zn=t=>t&&(_e(t)||q(t))&&q(t.then)&&q(t.catch),gt=((t,e)=>t?setImmediate:e?((n,r)=>(Y.addEventListener("message",({source:o,data:i})=>{o===Y&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Y.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",q(Y.postMessage)),er=typeof queueMicrotask<"u"?queueMicrotask.bind(Y):typeof process<"u"&&process.nextTick||gt,a={isArray:oe,isArrayBuffer:lt,isBuffer:_n,isFormData:kn,isArrayBufferView:bn,isString:yn,isNumber:ct,isBoolean:wn,isObject:_e,isPlainObject:be,isReadableStream:Cn,isRequest:Tn,isResponse:Rn,isHeaders:Nn,isUndefined:se,isDate:vn,isFile:xn,isBlob:En,isRegExp:zn,isFunction:q,isStream:An,isURLSearchParams:On,isTypedArray:Vn,isFileList:Sn,forEach:ae,merge:Ie,extend:Fn,trim:jn,stripBOM:Dn,inherits:Un,toFlatObject:In,kindOf:me,kindOfTest:H,endsWith:Pn,toArray:Bn,forEachEntry:Ln,matchAll:$n,isHTMLForm:qn,hasOwnProperty:ft,hasOwnProp:ft,reduceDescriptors:ht,freezeMethods:Hn,toObjectSet:Jn,toCamelCase:Mn,noop:Wn,toFiniteNumber:Kn,findKey:ut,global:Y,isContextDefined:dt,ALPHABET:mt,generateString:Gn,isSpecCompliantForm:Xn,toJSONObject:Qn,isAsyncFn:Yn,isThenable:Zn,setImmediate:gt,asap:er};function x(t,e,n,r,o){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),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}a.inherits(x,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 _t=x.prototype,bt={};["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=>{bt[t]={value:t}}),Object.defineProperties(x,bt),Object.defineProperty(_t,"isAxiosError",{value:!0}),x.from=(t,e,n,r,o,i)=>{const s=Object.create(_t);return a.toFlatObject(t,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),x.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const tr=null;function Be(t){return a.isPlainObject(t)||a.isArray(t)}function yt(t){return a.endsWith(t,"[]")?t.slice(0,-2):t}function wt(t,e,n){return t?t.concat(e).map(function(r,o){return r=yt(r),!n&&o?"["+r+"]":r}).join(n?".":""):e}function nr(t){return a.isArray(t)&&!t.some(Be)}const rr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ye(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(f,v){return!a.isUndefined(v[f])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(e);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(a.isDate(f))return f.toISOString();if(!l&&a.isBlob(f))throw new x("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(f)||a.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,v,h){let N=f;if(f&&!h&&typeof f=="object"){if(a.endsWith(v,"{}"))v=r?v:v.slice(0,-2),f=JSON.stringify(f);else if(a.isArray(f)&&nr(f)||(a.isFileList(f)||a.endsWith(v,"[]"))&&(N=a.toArray(f)))return v=yt(v),N.forEach(function(C,O){!(a.isUndefined(C)||C===null)&&e.append(s===!0?wt([v],O,i):s===null?v:v+"[]",c(C))}),!1}return Be(f)?!0:(e.append(wt(h,v,i),c(f)),!1)}const d=[],p=Object.assign(rr,{defaultVisitor:u,convertValue:c,isVisitable:Be});function _(f,v){if(!a.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(f),a.forEach(f,function(h,N){(!(a.isUndefined(h)||h===null)&&o.call(e,h,a.isString(N)?N.trim():N,v,p))===!0&&_(h,v?v.concat(N):[N])}),d.pop()}}if(!a.isObject(t))throw new TypeError("data must be an object");return _(t),e}function vt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Ve(t,e){this._pairs=[],t&&ye(t,this,e)}const xt=Ve.prototype;xt.append=function(t,e){this._pairs.push([t,e])},xt.toString=function(t){const e=t?function(n){return t.call(this,n,vt)}:vt;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function or(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Et(t,e,n){if(!e)return t;const r=n&&n.encode||or;a.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(e,n):i=a.isURLSearchParams(e)?e.toString():new Ve(e,n).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class St{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(n){n!==null&&e(n)})}}const At={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ir=typeof URLSearchParams<"u"?URLSearchParams:Ve,sr=typeof FormData<"u"?FormData:null,ar=typeof Blob<"u"?Blob:null,lr={isBrowser:!0,classes:{URLSearchParams:ir,FormData:sr,Blob:ar},protocols:["http","https","file","blob","url","data"]},Le=typeof window<"u"&&typeof document<"u",$e=typeof navigator=="object"&&navigator||void 0,cr=Le&&(!$e||["ReactNative","NativeScript","NS"].indexOf($e.product)<0),ur=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dr=Le&&window.location.href||"http://localhost",fr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Le,hasStandardBrowserEnv:cr,hasStandardBrowserWebWorkerEnv:ur,navigator:$e,origin:dr},Symbol.toStringTag,{value:"Module"})),P={...fr,...lr};function hr(t,e){return ye(t,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return P.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function pr(t){return a.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function mr(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}function kt(t){function e(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=i>=n.length;return s=!s&&a.isArray(o)?o.length:s,c?(a.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!a.isObject(o[s]))&&(o[s]=[]),e(n,r,o[s],i)&&a.isArray(o[s])&&(o[s]=mr(o[s])),!l)}if(a.isFormData(t)&&a.isFunction(t.entries)){const n={};return a.forEachEntry(t,(r,o)=>{e(pr(r),o,n,0)}),n}return null}function gr(t,e,n){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const le={transitional:At,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return r?JSON.stringify(kt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return hr(t,this.formSerializer).toString();if((i=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return ye(i?{"files[]":t}:t,s&&new s,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),gr(t)):t}],transformResponse:[function(t){const e=this.transitional||le.transitional,n=e&&e.forcedJSONParsing,r=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!this.responseType||r)){const o=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(i){if(o)throw i.name==="SyntaxError"?x.from(i,x.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.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=>{le.headers[t]={}});const _r=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"]),br=t=>{const e={};let n,r,o;return t&&t.split(`
|
3
|
-
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||e[n]&&_r[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Ot=Symbol("internals");function ce(t){return t&&String(t).trim().toLowerCase()}function we(t){return t===!1||t==null?t:a.isArray(t)?t.map(we):String(t)}function yr(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const wr=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function qe(t,e,n,r,o){if(a.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!a.isString(e)){if(a.isString(r))return e.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(e)}}function vr(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function xr(t,e){const n=a.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,i,s){return this[r].call(this,e,o,i,s)},configurable:!0})})}let $=class{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(s,l,c){const u=ce(l);if(!u)throw new Error("header name must be a non-empty string");const d=a.findKey(r,u);(!d||r[d]===void 0||c===!0||c===void 0&&r[d]!==!1)&&(r[d||l]=we(s))}const i=(s,l)=>a.forEach(s,(c,u)=>o(c,u,l));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(a.isString(t)&&(t=t.trim())&&!wr(t))i(br(t),e);else if(a.isHeaders(t))for(const[s,l]of t.entries())o(l,s,n);else t!=null&&o(e,t,n);return this}get(t,e){if(t=ce(t),t){const n=a.findKey(this,t);if(n){const r=this[n];if(!e)return r;if(e===!0)return yr(r);if(a.isFunction(e))return e.call(this,r,n);if(a.isRegExp(e))return e.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=ce(t),t){const n=a.findKey(this,t);return!!(n&&this[n]!==void 0&&(!e||qe(this,this[n],n,e)))}return!1}delete(t,e){const n=this;let r=!1;function o(i){if(i=ce(i),i){const s=a.findKey(n,i);s&&(!e||qe(n,n[s],s,e))&&(delete n[s],r=!0)}}return a.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];(!t||qe(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return a.forEach(this,(r,o)=>{const i=a.findKey(n,o);if(i){e[i]=we(r),delete e[o];return}const s=t?vr(o):String(o).trim();s!==o&&delete e[o],e[s]=we(r),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return a.forEach(this,(n,r)=>{n!=null&&n!==!1&&(e[r]=t&&a.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
|
4
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(r=>n.set(r)),n}static accessor(t){const e=(this[Ot]=this[Ot]={accessors:{}}).accessors,n=this.prototype;function r(o){const i=ce(o);e[i]||(xr(n,o),e[i]=!0)}return a.isArray(t)?t.forEach(r):r(t),this}};$.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors($.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),a.freezeMethods($);function Me(t,e){const n=this||le,r=e||n,o=$.from(r.headers);let i=r.data;return a.forEach(t,function(s){i=s.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Ct(t){return!!(t&&t.__CANCEL__)}function ie(t,e,n){x.call(this,t??"canceled",x.ERR_CANCELED,e,n),this.name="CanceledError"}a.inherits(ie,x,{__CANCEL__:!0});function Tt(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new x("Request failed with status code "+n.status,[x.ERR_BAD_REQUEST,x.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Er(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Sr(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let d=i,p=0;for(;d!==o;)p+=n[d++],d=d%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),c-s<e)return;const _=u&&c-u;return _?Math.round(p*1e3/_):void 0}}function Ar(t,e){let n=0,r=1e3/e,o,i;const s=(l,c=Date.now())=>{n=c,o=null,i&&(clearTimeout(i),i=null),t.apply(null,l)};return[(...l)=>{const c=Date.now(),u=c-n;u>=r?s(l,c):(o=l,i||(i=setTimeout(()=>{i=null,s(o)},r-u)))},()=>o&&s(o)]}const ve=(t,e,n=3)=>{let r=0;const o=Sr(50,250);return Ar(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-r,u=o(c),d=s<=l;r=s;const p={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-s)/u:void 0,event:i,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(p)},n)},Rt=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Nt=t=>(...e)=>a.asap(()=>t(...e)),kr=P.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,P.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(P.origin),P.navigator&&/(msie|trident)/i.test(P.navigator.userAgent)):()=>!0,Or=P.hasStandardBrowserEnv?{write(t,e,n,r,o,i){const s=[t+"="+encodeURIComponent(e)];a.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),a.isString(r)&&s.push("path="+r),a.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Cr(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Tr(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function jt(t,e){return t&&!Cr(e)?Tr(t,e):e}const Ft=t=>t instanceof $?{...t}:t;function Z(t,e){e=e||{};const n={};function r(u,d,p,_){return a.isPlainObject(u)&&a.isPlainObject(d)?a.merge.call({caseless:_},u,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function o(u,d,p,_){if(a.isUndefined(d)){if(!a.isUndefined(u))return r(void 0,u,p,_)}else return r(u,d,p,_)}function i(u,d){if(!a.isUndefined(d))return r(void 0,d)}function s(u,d){if(a.isUndefined(d)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function l(u,d,p){if(p in e)return r(u,d);if(p in t)return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d,p)=>o(Ft(u),Ft(d),p,!0)};return a.forEach(Object.keys(Object.assign({},t,e)),function(u){const d=c[u]||o,p=d(t[u],e[u],u);a.isUndefined(p)&&d!==l||(n[u]=p)}),n}const Dt=t=>{const e=Z({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:l}=e;e.headers=s=$.from(s),e.url=Et(jt(e.baseURL,e.url),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(a.isFormData(n)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...d]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(P.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(e)),r||r!==!1&&kr(e.url))){const u=o&&i&&Or.read(i);u&&s.set(o,u)}return e},Rr=typeof XMLHttpRequest<"u",Nr=Rr&&function(t){return new Promise(function(e,n){const r=Dt(t);let o=r.data;const i=$.from(r.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=r,u,d,p,_,f;function v(){_&&_(),f&&f(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function N(){if(!h)return;const O=$.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),D={data:!s||s==="text"||s==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:O,config:t,request:h};Tt(function(J){e(J),v()},function(J){n(J),v()},D),h=null}"onloadend"in h?h.onloadend=N:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(N)},h.onabort=function(){h&&(n(new x("Request aborted",x.ECONNABORTED,t,h)),h=null)},h.onerror=function(){n(new x("Network Error",x.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let O=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const D=r.transitional||At;r.timeoutErrorMessage&&(O=r.timeoutErrorMessage),n(new x(O,D.clarifyTimeoutError?x.ETIMEDOUT:x.ECONNABORTED,t,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(O,D){h.setRequestHeader(D,O)}),a.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),s&&s!=="json"&&(h.responseType=r.responseType),c&&([p,f]=ve(c,!0),h.addEventListener("progress",p)),l&&h.upload&&([d,_]=ve(l),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",_)),(r.cancelToken||r.signal)&&(u=O=>{h&&(n(!O||O.type?new ie(null,t,h):O),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const C=Er(r.url);if(C&&P.protocols.indexOf(C)===-1){n(new x("Unsupported protocol "+C+":",x.ERR_BAD_REQUEST,t));return}h.send(o||null)})},jr=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,l();const d=u instanceof Error?u:this.reason;r.abort(d instanceof x?d:new ie(d instanceof Error?d.message:d))}};let s=e&&setTimeout(()=>{s=null,i(new x(`timeout ${e} of ms exceeded`,x.ETIMEDOUT))},e);const l=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),t=null)};t.forEach(u=>u.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>a.asap(l),c}},Fr=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},Dr=async function*(t,e){for await(const n of Ur(t))yield*Fr(n,e)},Ur=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Ut=(t,e,n,r)=>{const o=Dr(t,e);let i=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await o.next();if(u){l(),c.close();return}let p=d.byteLength;if(n){let _=i+=p;n(_)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},xe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",It=xe&&typeof ReadableStream=="function",Ir=xe&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Pt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Pr=It&&Pt(()=>{let t=!1;const e=new Request(P.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Bt=64*1024,ze=It&&Pt(()=>a.isReadableStream(new Response("").body)),Ee={stream:ze&&(t=>t.body)};xe&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Ee[e]&&(Ee[e]=a.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new x(`Response type '${e}' is not supported`,x.ERR_NOT_SUPPORT,r)})})})(new Response);const Br=async t=>{if(t==null)return 0;if(a.isBlob(t))return t.size;if(a.isSpecCompliantForm(t))return(await new Request(P.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 Ir(t)).byteLength},Vr=async(t,e)=>a.toFiniteNumber(t.getContentLength())??Br(e),Lr=xe&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:_}=Dt(t);u=u?(u+"").toLowerCase():"text";let f=jr([o,i&&i.toAbortSignal()],s),v;const h=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let N;try{if(c&&Pr&&n!=="get"&&n!=="head"&&(N=await Vr(d,r))!==0){let w=new Request(e,{method:"POST",body:r,duplex:"half"}),U;if(a.isFormData(r)&&(U=w.headers.get("content-type"))&&d.setContentType(U),w.body){const[j,M]=Rt(N,ve(Nt(c)));r=Ut(w.body,Bt,j,M)}}a.isString(p)||(p=p?"include":"omit");const C="credentials"in Request.prototype;v=new Request(e,{..._,signal:f,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:C?p:void 0});let O=await fetch(v);const D=ze&&(u==="stream"||u==="response");if(ze&&(l||D&&h)){const w={};["status","statusText","headers"].forEach(X=>{w[X]=O[X]});const U=a.toFiniteNumber(O.headers.get("content-length")),[j,M]=l&&Rt(U,ve(Nt(l),!0))||[];O=new Response(Ut(O.body,Bt,j,()=>{M&&M(),h&&h()}),w)}u=u||"text";let J=await Ee[a.findKey(Ee,u)||"text"](O,t);return!D&&h&&h(),await new Promise((w,U)=>{Tt(w,U,{data:J,headers:$.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:v})})}catch(C){throw h&&h(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new x("Network Error",x.ERR_NETWORK,t,v),{cause:C.cause||C}):x.from(C,C&&C.code,t,v)}}),He={http:tr,xhr:Nr,fetch:Lr};a.forEach(He,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Vt=t=>`- ${t}`,$r=t=>a.isFunction(t)||t===null||t===!1,Lt={getAdapter:t=>{t=a.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i<e;i++){n=t[i];let s;if(r=n,!$r(n)&&(r=He[(s=String(n)).toLowerCase()],r===void 0))throw new x(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since :
|
5
|
-
`+i.map(Vt).join(`
|
6
|
-
`):" "+Vt(i[0]):"as no adapter specified";throw new x("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:He};function Je(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ie(null,t)}function $t(t){return Je(t),t.headers=$.from(t.headers),t.data=Me.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Lt.getAdapter(t.adapter||le.adapter)(t).then(function(e){return Je(t),e.data=Me.call(t,t.transformResponse,e),e.headers=$.from(e.headers),e},function(e){return Ct(e)||(Je(t),e&&e.response&&(e.response.data=Me.call(t,t.transformResponse,e.response),e.response.headers=$.from(e.response.headers))),Promise.reject(e)})}const qt="1.7.9",Se={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Se[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Mt={};Se.transitional=function(t,e,n){function r(o,i){return"[Axios v"+qt+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,s)=>{if(t===!1)throw new x(r(i," has been removed"+(e?" in "+e:"")),x.ERR_DEPRECATED);return e&&!Mt[i]&&(Mt[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(o,i,s):!0}},Se.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function qr(t,e,n){if(typeof t!="object")throw new x("options must be an object",x.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const l=t[i],c=l===void 0||s(l,i,t);if(c!==!0)throw new x("option "+i+" must be "+c,x.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new x("Unknown option "+i,x.ERR_BAD_OPTION)}}const Ae={assertOptions:qr,validators:Se},W=Ae.validators;let ee=class{constructor(t){this.defaults=t,this.interceptors={request:new St,response:new St}}async request(t,e){try{return await this._request(t,e)}catch(n){if(n instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
7
|
-
`+o):n.stack=o}catch{}}throw n}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Z(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;n!==void 0&&Ae.assertOptions(n,{silentJSONParsing:W.transitional(W.boolean),forcedJSONParsing:W.transitional(W.boolean),clarifyTimeoutError:W.transitional(W.boolean)},!1),r!=null&&(a.isFunction(r)?e.paramsSerializer={serialize:r}:Ae.assertOptions(r,{encode:W.function,serialize:W.function},!0)),Ae.assertOptions(e,{baseUrl:W.spelling("baseURL"),withXsrfToken:W.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[e.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),e.headers=$.concat(i,o);const s=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(e)===!1||(l=l&&f.synchronous,s.unshift(f.fulfilled,f.rejected))});const c=[];this.interceptors.response.forEach(function(f){c.push(f.fulfilled,f.rejected)});let u,d=0,p;if(!l){const f=[$t.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,c),p=f.length,u=Promise.resolve(e);d<p;)u=u.then(f[d++],f[d++]);return u}p=s.length;let _=e;for(d=0;d<p;){const f=s[d++],v=s[d++];try{_=f(_)}catch(h){v.call(this,h);break}}try{u=$t.call(this,_)}catch(f){return Promise.reject(f)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Z(this.defaults,t);const e=jt(t.baseURL,t.url);return Et(e,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){ee.prototype[t]=function(e,n){return this.request(Z(n||{},{method:t,url:e,data:(n||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function e(n){return function(r,o,i){return this.request(Z(i||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}ee.prototype[t]=e(),ee.prototype[t+"Form"]=e(!0)});let Mr=class tn{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},e(function(o,i,s){r.reason||(r.reason=new ie(o,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new tn(function(n){e=n}),cancel:e}}};function zr(t){return function(e){return t.apply(null,e)}}function Hr(t){return a.isObject(t)&&t.isAxiosError===!0}const We={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(We).forEach(([t,e])=>{We[e]=t});function zt(t){const e=new ee(t),n=at(ee.prototype.request,e);return a.extend(n,ee.prototype,e,{allOwnKeys:!0}),a.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return zt(Z(t,r))},n}const R=zt(le);R.Axios=ee,R.CanceledError=ie,R.CancelToken=Mr,R.isCancel=Ct,R.VERSION=qt,R.toFormData=ye,R.AxiosError=x,R.Cancel=R.CanceledError,R.all=function(t){return Promise.all(t)},R.spread=zr,R.isAxiosError=Hr,R.mergeConfig=Z,R.AxiosHeaders=$,R.formToJSON=t=>kt(a.isHTMLForm(t)?new FormData(t):t),R.getAdapter=Lt.getAdapter,R.HttpStatusCode=We,R.default=R;const{Axios:Ko,AxiosError:Go,CanceledError:Xo,isCancel:Qo,CancelToken:Yo,VERSION:Zo,all:ei,Cancel:ti,isAxiosError:ni,spread:ri,toFormData:oi,AxiosHeaders:ii,HttpStatusCode:si,formToJSON:ai,getAdapter:li,mergeConfig:ci}=R,Ke=R.create({baseURL:location.origin,timeout:6e4,params:{}});Ke.interceptors.response.use(t=>t,t=>{var e,n,r,o,i,s,l,c,u,d,p;if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(v){v&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let _=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(_+=`${t.response.statusText} `),(r=(n=t.response)==null?void 0:n.config)!=null&&r.data&&(_+=`${t.response.config.data} `),(i=(o=t.response)==null?void 0:o.data)!=null&&i.message?_+=`${t.response.data.message}`:(l=(s=t.response)==null?void 0:s.data)!=null&&l.exception?_+=`${t.response.data.exception}`:(d=(u=(c=t.response)==null?void 0:c.data)==null?void 0:u.error)!=null&&d.message?(t.response.data.error.class&&(_+=`${t.response.data.error.class} `),_+=`${t.response.data.error.message}`):_+=`${(p=t.response)==null?void 0:p.data}`;const{$cosmosNotify:f}=window;throw f&&f.serious({title:"Network error",body:_}),t}else throw t});const ke=async function(t,e,{data:n,params:r={},headers:o,noAuth:i=!1,noScope:s=!1,onUploadProgress:l=!1}={}){if(!i){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}o.Authorization=localStorage.openc3Token}return o.manual=!0,!s&&!r.scope&&(r.scope=window.openc3Scope),Ke({method:t,url:e,data:n,params:r,headers:o,onUploadProgress:l})},Ge={Accept:"application/json"},Ht={...Ge,"Content-Type":"application/json"},B={get:function(t,{params:e,headers:n=Ge,noScope:r,noAuth:o,onUploadProgress:i}={}){return ke("get",t,{params:e,headers:n,noScope:r,noAuth:o,onUploadProgress:i})},put:function(t,{data:e,params:n,headers:r=Ht,noScope:o,noAuth:i,onUploadProgress:s}={}){return ke("put",t,{data:e,params:n,headers:r,noScope:o,noAuth:i,onUploadProgress:s})},post:function(t,{data:e,params:n,headers:r=Ht,noScope:o,noAuth:i,onUploadProgress:s}={}){return ke("post",t,{data:e,params:n,headers:r,noScope:o,noAuth:i,onUploadProgress:s})},delete:function(t,{params:e,headers:n=Ge,noScope:r,noAuth:o,onUploadProgress:i}={}){return ke("delete",t,{params:e,headers:n,noScope:r,noAuth:o,onUploadProgress:i})}};let Jr=()=>({emit(t,...e){for(let n=this.events[t]||[],r=0,o=n.length;r<o;r++)n[r](...e)},events:{},on(t,e){var n;return((n=this.events)[t]||(n[t]=[])).push(e),()=>{var r;this.events[t]=(r=this.events[t])==null?void 0:r.filter(o=>e!==o)}}});class Wr extends Error{constructor(e,n){e instanceof Error?(super(e.message),this.cause=e):super(e),this.reason=n,this.name="ReasonError"}}function Kr(t){return t?`{${Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>{let n=JSON.stringify(t[e]);return`${JSON.stringify(e)}:${n}`}).join(",")}}`:""}class Gr{constructor(e){this.channel=e,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",e=>{if(e.type==="info"){this._state||(this._state=this.stateFromInfo(e));return}this._state&&(e.type==="join"?this._state[e.id]=e.info:e.type==="leave"&&delete this._state[e.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(e=>e()),this.listeners.length=0}async join(e,n){if(!this._info)return this._info={id:e,info:n},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let e=await this.channel.perform("$presence:leave");return delete this._info,e}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let e=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(e),this._state}finally{delete this._promise}}stateFromInfo(e){return e.records.reduce((n,{id:r,info:o})=>(n[r]=o,n),{})}}const te=Symbol("state");class Jt{constructor(e={}){this.emitter=Jr(),this.params=Object.freeze(e),this.presence=new Gr(this),this.initialConnect=!0,this[te]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=Kr({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[te]}attached(e){if(this.receiver){if(this.receiver!==e)throw Error("Already connected to a different receiver");return!1}return this.receiver=e,!0}connecting(){this[te]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[te]="connected";let e=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:e})):this.emit("connect",{reconnect:!0,restored:e})}restored(){if(this.state==="connected")throw Error("Already connected");this[te]="connected";let e=!0,n=!0;this.initialConnect=!1,this.emit("connect",{reconnect:n,restored:e})}disconnected(e){this.state==="disconnected"||this.state==="closed"||(this[te]="disconnected",this.presence.reset(),this.emit("disconnect",e))}closed(e){this.state!=="closed"&&(this[te]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",e))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(e,n){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,e,n)}async send(e){return this.perform(void 0,e)}async whisper(e){try{await this.perform("$whisper",e)}catch(n){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",n)}}receive(e,n){this.emit("message",e,n)}on(e,n){return this.emitter.on(e,n)}once(e,n){let r=this.emitter.on(e,(...o)=>{r(),n(...o)});return r}emit(e,...n){return this.emitter.emit(e,...n)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((e,n)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(o=>o()),e()})),r.push(this.on("close",o=>{r.forEach(i=>i()),n(o||new Wr("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class Xr extends Jt{constructor(e,n){super(n),this.channelId=e}set channelId(e){this._channelId=e}get channelId(){return this._channelId}}pe(Xr,"identifier","__ghost__");const Qr="$pubsub";class Yr extends Jt{async perform(e,n){if(e.startsWith("$"))return super.perform(e,n);throw Error("not implemented")}}pe(Yr,"identifier",Qr);function Xe(t){return Zr.test(t)}const Zr=/^-?[0-9]+$/;function Wt(t){return eo.test(t)}const eo=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Kt(t,e){const n=Number.parseFloat(t),r=String(n),o=Gt(t),i=Gt(r);return!!(o===i||(e==null?void 0:e.approx)===!0&&!Xe(t)&&i.length>=14&&o.startsWith(i.substring(0,14)))}let ue=function(t){return t.underflow="underflow",t.overflow="overflow",t.truncate_integer="truncate_integer",t.truncate_float="truncate_float",t}({});function to(t){if(Kt(t,{approx:!1}))return;if(Xe(t))return ue.truncate_integer;const e=Number.parseFloat(t);return Number.isFinite(e)?e===0?ue.underflow:ue.truncate_float:ue.overflow}function Gt(t){return t.replace(no,"").replace(oo,"").replace(io,"").replace(ro,"")}const no=/[eE][+-]?\d+$/,ro=/^-?(0*)?/,oo=/\./,io=/0+$/;class so{constructor(e){if(pe(this,"isLosslessNumber",!0),!Wt(e))throw new Error(`Invalid number (value: "${e}")`);this.value=e}valueOf(){const e=to(this.value);if(e===void 0||e===ue.truncate_float)return Number.parseFloat(this.value);if(Xe(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${e} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function ao(t){return t&&typeof t=="object"&&t.isLosslessNumber===!0||!1}function lo(t){return new so(t)}function co(t,e){return Qe({"":t},"",t,e)}function Qe(t,e,n,r){return Array.isArray(n)?r.call(t,e,fo(n,r)):n&&typeof n=="object"&&!ao(n)?r.call(t,e,uo(n,r)):r.call(t,e,n)}function uo(t,e){for(const n of Object.keys(t)){const r=Qe(t,n,t[n],e);r!==void 0?t[n]=r:delete t[n]}return t}function fo(t,e){for(let n=0;n<t.length;n++)t[n]=Qe(t,String(n),t[n],e);return t}function ho(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lo,r=0;const o=l();return v(o),N(),e?co(o,e):o;function i(){if(t.charCodeAt(r)===yo){r++,u();const E={};let F=!0;for(;r<t.length&&t.charCodeAt(r)!==Qt;){F?F=!1:(_(),u());const re=r,de=d();if(de===void 0){D();return}u(),f();const rt=l();if(rt===void 0){X();return}Object.prototype.hasOwnProperty.call(E,de)&&!Ye(rt,E[de])&&J(de,re+1),E[de]=rt}return t.charCodeAt(r)!==Qt&&w(),r++,E}}function s(){if(t.charCodeAt(r)===wo){r++,u();const E=[];let F=!0;for(;r<t.length&&t.charCodeAt(r)!==Yt;){F?F=!1:_();const re=l();h(re),E.push(re)}return t.charCodeAt(r)!==Yt&&U(),r++,E}}function l(){u();const E=d()??p()??i()??s()??c("true",!0)??c("false",!1)??c("null",null);return u(),E}function c(E,F){if(t.slice(r,r+E.length)===E)return r+=E.length,F}function u(){for(;po(t.charCodeAt(r));)r++}function d(){if(t.charCodeAt(r)===Ze){r++;let E="";for(;r<t.length&&t.charCodeAt(r)!==Ze;){if(t.charCodeAt(r)===bo){const F=t[r+1],re=_o[F];re!==void 0?(E+=re,r++):F==="u"?Oe(t.charCodeAt(r+2))&&Oe(t.charCodeAt(r+3))&&Oe(t.charCodeAt(r+4))&&Oe(t.charCodeAt(r+5))?(E+=String.fromCharCode(Number.parseInt(t.slice(r+2,r+6),16)),r+=5):nt(r):M(r)}else go(t.charCodeAt(r))?E+=t[r]:j(t[r]);r++}return O(),r++,E}}function p(){const E=r;if(t.charCodeAt(r)===Zt&&(r++,C(E)),t.charCodeAt(r)===et)r++;else if(mo(t.charCodeAt(r)))for(r++;Ce(t.charCodeAt(r));)r++;if(t.charCodeAt(r)===Co)for(r++,C(E);Ce(t.charCodeAt(r));)r++;if(t.charCodeAt(r)===Fo||t.charCodeAt(r)===jo)for(r++,(t.charCodeAt(r)===Zt||t.charCodeAt(r)===Ao)&&r++,C(E);Ce(t.charCodeAt(r));)r++;if(r>E)return n(t.slice(E,r))}function _(){if(t.charCodeAt(r)!==Oo)throw new SyntaxError(`Comma ',' expected after value ${I()}`);r++}function f(){if(t.charCodeAt(r)!==To)throw new SyntaxError(`Colon ':' expected after property name ${I()}`);r++}function v(E){if(E===void 0)throw new SyntaxError(`JSON value expected ${I()}`)}function h(E){if(E===void 0)throw new SyntaxError(`Array item expected ${I()}`)}function N(){if(r<t.length)throw new SyntaxError(`Expected end of input ${I()}`)}function C(E){if(!Ce(t.charCodeAt(r))){const F=t.slice(E,r);throw new SyntaxError(`Invalid number '${F}', expecting a digit ${I()}`)}}function O(){if(t.charCodeAt(r)!==Ze)throw new SyntaxError(`End of string '"' expected ${I()}`)}function D(){throw new SyntaxError(`Quoted object key expected ${I()}`)}function J(E,F){throw new SyntaxError(`Duplicate key '${E}' encountered at position ${F}`)}function w(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${I()}`)}function U(){throw new SyntaxError(`Array item or end of array ']' expected ${I()}`)}function j(E){throw new SyntaxError(`Invalid character '${E}' ${y()}`)}function M(E){const F=t.slice(E,E+2);throw new SyntaxError(`Invalid escape character '${F}' ${y()}`)}function X(){throw new SyntaxError(`Object value expected after ':' ${y()}`)}function nt(E){const F=t.slice(E,E+6);throw new SyntaxError(`Invalid unicode character '${F}' ${y()}`)}function y(){return`at position ${r}`}function ne(){return r<t.length?`but got '${t[r]}'`:"but reached end of input"}function I(){return`${ne()} ${y()}`}}function po(t){return t===vo||t===xo||t===Eo||t===So}function Oe(t){return t>=et&&t<=tt||t>=Ro&&t<=Do||t>=No&&t<=Uo}function Ce(t){return t>=et&&t<=tt}function mo(t){return t>=ko&&t<=tt}function go(t){return t>=32&&t<=1114111}function Ye(t,e){return t===e?!0:Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((n,r)=>Ye(n,e[r])):Xt(t)&&Xt(e)?[...new Set([...Object.keys(t),...Object.keys(e)])].every(n=>Ye(t[n],e[n])):!1}function Xt(t){return typeof t=="object"&&t!==null}const _o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
8
|
-
`,r:"\r",t:" "},bo=92,yo=123,Qt=125,wo=91,Yt=93,vo=32,xo=10,Eo=9,So=13,Ze=34,Ao=43,Zt=45,et=48,ko=49,tt=57,Oo=44,Co=46,To=58,Ro=65,No=97,jo=69,Fo=101,Do=70,Uo=102;function en(t,e,n,r){return o(t);function o(c,u){if(Array.isArray(r)){const d=r.find(p=>p.test(c));if(d){const p=d.stringify(c);if(typeof p!="string"||!Wt(p))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${p})`);return p}}if(typeof c=="boolean"||typeof c=="number"||typeof c=="string"||c===null||c instanceof Date||c instanceof Boolean||c instanceof Number||c instanceof String)return JSON.stringify(c);if(c!=null&&c.isLosslessNumber||typeof c=="bigint")return c.toString();if(Array.isArray(c))return i(c);if(c&&typeof c=="object")return s(c)}function i(c,u){if(c.length===0)return"[]";let d="[";for(let p=0;p<c.length;p++){const _=c[p];typeof _<"u"&&typeof _!="function"?d+=o(_):d+="null",p<c.length-1&&(d+=",")}return d+="]",d}function s(c,u){if(typeof c.toJSON=="function")return en(c.toJSON(),e,n,void 0);const d=Array.isArray(e)?e.map(String):Object.keys(c);if(d.length===0)return"{}";let p=!0,_="{";for(const f of d){const v=c[f];if(l(f,v)){p?p=!1:_+=",";const h=JSON.stringify(f);_+=`${h}:`,_+=o(v)}}return _+="}",_}function l(c,u){return typeof u<"u"&&typeof u!="function"&&typeof u!="symbol"}}function Io(t){return Kt(t)?parseFloat(t):BigInt(t)}class Po{constructor(){pe(this,"id",1)}async exec(e,n,r={},o={},i=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,o.manual=!0,(await Ke.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...o},timeout:i,transformRequest:[(s,l)=>en(s)],transformResponse:[s=>ho(s,void 0,Io)]})).data.result}catch(s){let l=new Error;throw s.response?(l.name=s.response.data.error.data.class,l.message=s.response.data.error.data.message,l.object=s.response.data.error):s.request?(l.name="Request error",l.message="Request error, no response received"):l.name="Unknown error",l}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...r){return this.exec("interface_cmd",[e,n,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,n,r){return this.exec("get_item",[e,n,r])}get_param(e,n,r){return this.exec("get_param",[e,n,r])}get_parameter(e,n,r){return this.exec("get_param",[e,n,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,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,r,o=30){const i=await this.exec("get_tlm_packet",[e,n],{type:r,stale_time:o});if(i!=null){let s=i.length,l=null;for(let c=0;c<s;c++)l=this.decode_openc3_type(i[c][1]),l!==null&&(i[c][1]=l)}return i}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,r=null){let o={stale_time:n};r!==null&&(o.cache_timeout=r);const i=await this.exec("get_tlm_values",[e],o,{},1e4);let s=i[0].length,l=null;for(let c=0;c<s;c++)l=this.decode_openc3_type(i[0][c]),l!==null&&(i[0][c]=l);return i}get_limits(e,n,r){return this.exec("get_limits",[e,n,r])}async tlm(e,n,r,o="CONVERTED"){let i=null;if(n===void 0)i=await this.exec("tlm",[e]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n))i=await this.exec("tlm",[e],{type:n});else{let l=new Error;throw l.name="TypeError",l.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,l}else i=await this.exec("tlm",[e,n,r],{type:o});let s=this.decode_openc3_type(i);return s!==null&&(i=s),i}async inject_tlm(e,n,r=null,o="CONVERTED"){await this.exec("inject_tlm",[e,n,r],{type:o})}set_tlm(e,n,r,o){return this.exec("set_tlm",[e,n,r],{type:o})}override_tlm(e,n,r,o){return this.exec("override_tlm",[e,n,r],{type:o})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,r,o){return this.exec("normalize_tlm",[e,n,r],{type:o})}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,r,o="CONVERTED"){return this.exec("get_cmd_value",[e,n,r,o])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,r,o,i){let s=null;for(let l in o)Object.prototype.hasOwnProperty.call(o,l)&&(s=this.encode_openc3_type(o[l]),s!==null&&(o[l]=s));return this.exec(e,[n,r,o],{},i)}get_cmd_hazardous(e,n,r,o={}){return n===void 0?this.exec("get_cmd_hazardous",e,{},o):this._cmd("get_cmd_hazardous",e,n,r,o)}cmd(e,n,r,o={}){return n===void 0?this.exec("cmd",e,{},o):this._cmd("cmd",e,n,r,o)}cmd_no_range_check(e,n,r,o={}){return n===void 0?this.exec("cmd_no_range_check",e,{},o):this._cmd("cmd_no_range_check",e,n,r,o)}cmd_raw(e,n,r,o={}){return n===void 0?this.exec("cmd_raw",e,{},o):this._cmd("cmd_raw",e,n,r,o)}cmd_raw_no_range_check(e,n,r,o={}){return n===void 0?this.exec("cmd_raw_no_range_check",e,{},o):this._cmd("cmd_raw_no_range_check",e,n,r,o)}cmd_no_hazardous_check(e,n,r,o={}){return n===void 0?this.exec("cmd_no_hazardous_check",e,{},o):this._cmd("cmd_no_hazardous_check",e,n,r,o)}cmd_no_checks(e,n,r,o={}){return n===void 0?this.exec("cmd_no_checks",e,{},o):this._cmd("cmd_no_checks",e,n,r,o)}cmd_raw_no_hazardous_check(e,n,r,o={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},o):this._cmd("cmd_raw_no_hazardous_check",e,n,r,o)}cmd_raw_no_checks(e,n,r,o={}){return n===void 0?this.exec("cmd_raw_no_checks",e,{},o):this._cmd("cmd_raw_no_checks",e,n,r,o)}build_cmd(e,n,r){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,r)}build_command(e,n,r){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,r)}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,r){return this.exec("save_config",[e,n,r])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,r){return this.exec("enable_limits",[e,n,r])}disable_limits(e,n,r){return this.exec("disable_limits",[e,n,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){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])}update_news(){return this.exec("update_news",[])}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),r=await crypto.subtle.digest("SHA-256",n),o=new Uint8Array(r);return Array.from(o).map(i=>i.toString(16).padStart(2,"0")).join("")}}}const Bo={mixins:[st],props:{item:{type:Object,required:!0}},data(){return{dataItem:this.item,stateValue:null,checkValue:!1}},created(){this.dataItem.states&&(this.stateValue=this.dataItem.states[this.dataItem.value]),this.isCheckbox&&(this.checkValue=this.stateValue===1)},computed:{isCheckbox:function(){let t=!0;if(this.dataItem.states)for(const e of Object.keys(this.dataItem.states))e!=="CHECKED"&&e!=="UNCHECKED"&&(t=!1);else t=!1;return t},itemStates:function(){let t=[];for(const[e,n]of Object.entries(this.dataItem.states))t.push({title:e,value:n});return t}},watch:{checkValue:function(){this.checkValue?this.$emit("change","CHECKED"):this.$emit("change","UNCHECKED")},stateValue:function(){let t=Object.keys(this.dataItem.states).find(e=>this.dataItem.states[e]===this.stateValue);this.$emit("change",t)}},methods:{textChange:function(t){this.dataItem.value=t,this.$emit("change",this.dataItem.value)},format:function(t){return t&&t.json_class==="String"&&t.raw!==void 0&&(this.dataItem.editable=!1),this.formatValueBase(t)}}};function Vo(t,e,n,r,o,i){const s=b("v-checkbox"),l=b("v-select"),c=b("v-text-field");return S(),L("td",null,[i.isCheckbox?(S(),T(s,{key:0,density:"compact","hide-details":"",modelValue:o.checkValue,"onUpdate:modelValue":e[0]||(e[0]=u=>o.checkValue=u),disabled:!o.dataItem.editable,"data-test":"table-item-checkbox"},null,8,["modelValue","disabled"])):o.dataItem.states?(S(),T(l,{key:1,density:"compact","hide-details":"",modelValue:o.stateValue,"onUpdate:modelValue":e[1]||(e[1]=u=>o.stateValue=u),items:i.itemStates,disabled:!o.dataItem.editable,"data-test":"table-item-select"},null,8,["modelValue","items","disabled"])):(S(),T(c,{key:2,variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"","onUpdate:modelValue":i.textChange,"model-value":i.format(o.dataItem.value),disabled:!o.dataItem.editable,"data-test":"table-item-text-field"},null,8,["onUpdate:modelValue","model-value","disabled"]))])}const Lo={components:{TableItem:fe(Bo,[["render",Vo]])},props:{items:{type:Object,required:!0}},data(){return{dataItems:this.items}},computed:{oneDimensional(){return this.dataItems.length===1}},methods:{onChange:function(t,e,n){this.$emit("change",{index:e,event:n})}}},$o={class:"text-start"},qo={key:0,class:"text-start"};function Mo(t,e,n,r,o,i){const s=b("table-item");return S(),L("tr",null,[V("td",$o,z(o.dataItems[0].index),1),i.oneDimensional?(S(),L("td",qo,z(o.dataItems[0].name),1)):Q("",!0),(S(!0),L(K,null,G(o.dataItems,(l,c)=>(S(),T(s,{key:l.name,item:l,onChange:De(u=>i.onChange(l,c,u),["self"])},null,8,["item","onChange"]))),128))])}const zo={components:{TopBar:hn,TableRow:fe(Lo,[["render",Mo]]),FileOpenSaveDialog:ot,SimpleTextDialog:cn},data(){return{title:"Table Manager",search:"",curTab:null,tables:[],api:null,definition:null,fileInput:null,definitionFilename:"",fileNew:!1,filename:"",fileModified:"",lockedBy:null,fileOpen:!1,showSave:!1,showSaveAs:!1,showError:!1,errorTitle:"",errorText:"",uploadScript:null,downloadScript:null,scriptBackground:!0}},computed:{readOnly:function(){return!!this.lockedBy},fullFilename(){return`${this.filename} ${this.fileModified}`.trim()},menus:function(){return[{label:"File",items:[{label:"New File",icon:"mdi-file-plus",command:()=>{this.newFile()}},{label:"Open File",icon:"mdi-folder-open",command:()=>{this.openFile()}},{divider:!0},{label:"Save File",icon:"mdi-content-save",command:()=>{this.saveFile()}},{label:"Save As...",icon:"mdi-content-save",command:()=>{this.saveAs()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",command:()=>{this.delete()}}]}]}},watch:{filename:function(t){let e=this.filename.split("/").slice(0,2).join("/")+"/procedures/upload",n=this.filename.split("/").slice(0,2).join("/")+"/procedures/download";B.get(`/openc3-api/tables/${e}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.uploadScript=`${e}.rb`}).catch(r=>{B.get(`/openc3-api/tables/${e}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(o=>{this.uploadScript=`${e}.py`}).catch(o=>{this.uploadScript=null})}),B.get(`/openc3-api/tables/${n}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.downloadScript=`${n}.rb`}).catch(r=>{B.get(`/openc3-api/tables/${n}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(o=>{this.downloadScript=`${n}.py`}).catch(o=>{this.downloadScript=null})})}},created(){this.api=new Po,this.api.ensure_offline_access()},methods:{newFile:function(){this.fileModified="",this.fileNew=!0,this.fileOpen=!0},openFile:function(){this.fileOpen=!0},setFile:function({file:t,locked:e}){t.name.includes(".txt")?this.fileNew?(this.buildNewBinary(t.name),this.fileNew=!1):this.getDefinition(t.name):(this.unlockFile(),this.filename=t.name.split("*")[0],this.fileModified="",this.lockedBy=e,this.getDefinition())},setError(t){this.errorTitle="Error",this.errorText=`Error: ${t}`,this.errorText=response.data.message,this.showError=!0},saveFile:function(){this.showSave=!0;const t=new FormData;t.append("binary",this.filename),t.append("definition",this.definitionFilename),t.append("tables",JSON.stringify(this.tables)),B.post(`/openc3-api/tables/${this.filename}`,{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(e=>{this.fileModified="",setTimeout(()=>{this.showSave=!1},2e3)}).catch(({response:e})=>{this.showSave=!1,this.errorTitle="Save Error",this.errorText=e.data.message,this.showError=!0}),this.lockFile()},saveAs:function(){this.showSaveAs=!0},saveAsFilename:function(t){B.put(`/openc3-api/tables/${this.filename}/save-as/${t}`).then(e=>{this.filename=t,this.getDefinition(this.definitionFilename)})},delete:function(){this.filename!==""&&this.$dialog.confirm(`Permanently delete file: ${this.filename}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>B.delete(`/openc3-api/tables/${this.filename}`,{data:{}})).then(t=>{this.tables=[],this.filename="",this.definitionFilename=""}).catch(t=>{})},downloadBinary:function(t=null){const e=new FormData;e.append("binary",this.filename),e.append("definition",this.definitionFilename),t!==null&&e.append("table_name",t),B.post("/openc3-api/tables/binary",{data:e,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=window.atob(n.data.contents),o=new Uint8Array(r.length);for(let l=0;l<r.length;++l)o[l]=r.charCodeAt(l);const i=new Blob([o],{type:"application/octet-stream"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",n.data.filename),s.click()})},downloadDefinition:function(t=null){const e=new FormData;e.append("definition",this.definitionFilename),t!==null&&e.append("table_name",t),B.post("/openc3-api/tables/definition",{data:e,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=new Blob([n.data.contents],{type:"text/plain"}),o=document.createElement("a");o.href=URL.createObjectURL(r),o.setAttribute("download",n.data.filename),o.click()})},downloadReport:function(t=null){const e=new FormData;e.append("binary",this.filename),e.append("definition",this.definitionFilename),t!==null&&e.append("table_name",t),B.post("/openc3-api/tables/report",{data:e,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=`Binary: ${this.filename}
|
9
|
-
Definition: ${this.definitionFilename}
|
10
|
-
|
11
|
-
`,o=new Blob([r,n.data.contents],{type:"text/plain"}),i=document.createElement("a");i.href=URL.createObjectURL(o),i.setAttribute("download",n.data.filename),i.click()})},upload(){B.post(`/script-api/scripts/${this.uploadScript}/run`,{data:{environment:[{key:"TBL_FILENAME",value:this.filename}]}}).then(t=>{this.scriptBackground!==!0&&window.open(`/tools/scriptrunner/${t.data}`,"_blank")})},download(){this.$dialog.confirm(`Are you sure you want to overwrite ${this.filename}? You can Save As to create a new file and then Download to preserve the existing file. Note: Once the download completes you will need to re-open the file to see changes.`,{okText:"Download (Overwrite!)",cancelText:"Cancel"}).then(()=>{B.post(`/script-api/scripts/${this.downloadScript}/run`,{data:{environment:[{key:"TBL_FILENAME",value:this.filename}]}}).then(t=>{this.scriptBackground!==!0&&window.open(`/tools/scriptrunner/${t.data}`,"_blank")})}).catch(t=>{})},confirmLocalUnlock:function(){this.$dialog.confirm("Are you sure you want to unlock this file for editing? If another user is editing this file, your changes might conflict with each other.",{okText:"Force Unlock",cancelText:"Cancel"}).then(()=>(this.lockedBy=null,this.lockFile()))},lockFile:function(){return B.post(`/openc3-api/tables/${this.filename}/lock`)},unlockFile:function(){this.filename!==""&&!this.readOnly&&B.post(`/openc3-api/tables/${this.filename}/unlock`)},getDefinition:function(t=null){t||(t=this.filename.replace("/bin/","/config/").replace(".bin","_def.txt")),this.tables=[];const e=new FormData;e.append("binary",this.filename),e.append("definition",t),B.post("/openc3-api/tables/load",{data:e,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{this.definitionFilename=n.data.definition,this.tables=n.data.tables.map(r=>({...r,headers:r.headers.map((o,i)=>{const s={title:o,filterable:o!=="INDEX"};return r.numColumns===1?{...s,value:`[0].${o.toLowerCase()}`}:{...s,value:`[${i}].value`}})})),n.data.errors&&this.$notify.caution({title:"Warning",body:n.data.errors})}).catch(n=>{n.response.status==404?(this.$notify.normal({title:"Definition File Not Found",body:`Definition file ${t} not found. Please select definition file.`}),this.fileOpen=!0):this.$notify.serious({title:"Error",body:`Error loading due to ${n.response.statusText}. Status: ${n.response.status}`})})},buildNewBinary:function(t){const e=new FormData;e.append("definition",t),B.post("/openc3-api/tables/generate",{data:e,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{this.filename=n.data.filename,this.getDefinition(t)})},onChange:function(t,{index:e,event:n}){this.fileModified="*",t[e].value=n}}},Ho={style:{position:"absolute"},class:"ma-3"};function Jo(t,e,n,r,o,i){const s=b("top-bar"),l=b("v-file-input"),c=b("v-text-field"),u=b("v-col"),d=b("v-row"),p=b("v-icon"),_=b("v-btn"),f=b("v-checkbox"),v=b("v-tooltip"),h=b("v-card-text"),N=b("v-spacer"),C=b("v-card-title"),O=b("v-tab"),D=b("v-tabs"),J=b("table-row"),w=b("v-data-table"),U=b("v-tabs-window-item"),j=b("v-tabs-window"),M=b("v-card"),X=b("file-open-save-dialog"),nt=b("simple-text-dialog");return S(),L("div",null,[g(s,{menus:i.menus,title:o.title},null,8,["menus","title"]),g(l,{"show-size":"",modelValue:o.fileInput,"onUpdate:modelValue":e[0]||(e[0]=y=>o.fileInput=y),ref:"fileInput",accept:".bin","data-test":"file-input",style:{position:"fixed",top:"-100%"}},null,8,["modelValue"]),g(M,null,{default:m(()=>[g(h,null,{default:m(()=>[g(d,{dense:""},{default:m(()=>[g(u,{cols:"6"},{default:m(()=>[g(c,{variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Filename",modelValue:i.fullFilename,"onUpdate:modelValue":e[1]||(e[1]=y=>i.fullFilename=y),id:"filename",class:"filename","data-test":"filename"},null,8,["modelValue"])]),_:1}),g(u,{cols:"6"},{default:m(()=>[g(c,{variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Definition",modelValue:o.definitionFilename,"onUpdate:modelValue":e[2]||(e[2]=y=>o.definitionFilename=y),id:"definition-filename",class:"filename","data-test":"definition-filename"},null,8,["modelValue"])]),_:1})]),_:1}),g(d,{dense:""},{default:m(()=>[g(u,{cols:"auto",class:"mr-auto"},{default:m(()=>[e[25]||(e[25]=V("span",{class:"text-body-1 ma-2"},"File Download:",-1)),g(_,{dense:"",color:"primary",class:"mr-3",onClick:e[3]||(e[3]=y=>i.downloadBinary(null)),disabled:o.filename=="","data-test":"download-file-binary"},{default:m(()=>[e[20]||(e[20]=k(" Binary ")),g(p,{end:"",theme:"dark"},{default:m(()=>e[19]||(e[19]=[k(" mdi-file-code ")])),_:1})]),_:1},8,["disabled"]),g(_,{dense:"",color:"primary",class:"mr-3",onClick:e[4]||(e[4]=y=>i.downloadDefinition(null)),disabled:o.filename=="","data-test":"download-file-definition"},{default:m(()=>[e[22]||(e[22]=k(" Definition ")),g(p,{end:"",theme:"dark"},{default:m(()=>e[21]||(e[21]=[k(" mdi-file-document-edit ")])),_:1})]),_:1},8,["disabled"]),g(_,{dense:"",color:"primary",onClick:e[5]||(e[5]=y=>i.downloadReport(null)),disabled:o.filename=="","data-test":"download-file-report"},{default:m(()=>[e[24]||(e[24]=k(" Report ")),g(p,{end:"",theme:"dark"},{default:m(()=>e[23]||(e[23]=[k(" mdi-file-document ")])),_:1})]),_:1},8,["disabled"])]),_:1}),g(u,{cols:"auto"},{default:m(()=>[g(_,{dense:"",color:"primary",onClick:e[6]||(e[6]=y=>i.upload()),disabled:!o.uploadScript,"data-test":"upload-file"},{default:m(()=>[e[27]||(e[27]=k(" Upload ")),g(p,{end:"",theme:"dark"},{default:m(()=>e[26]||(e[26]=[k(" mdi-file-upload ")])),_:1})]),_:1},8,["disabled"])]),_:1}),g(u,{cols:"auto"},{default:m(()=>[g(_,{dense:"",color:"primary",onClick:e[7]||(e[7]=y=>i.download()),disabled:!o.downloadScript,"data-test":"download-file"},{default:m(()=>[e[29]||(e[29]=k(" Download ")),g(p,{end:"",theme:"dark"},{default:m(()=>e[28]||(e[28]=[k(" mdi-file-download ")])),_:1})]),_:1},8,["disabled"])]),_:1}),g(u,{cols:"auto"},{default:m(()=>[g(v,{location:"top"},{activator:m(({props:y})=>[V("span",Re(Ne(y)),[g(f,{modelValue:o.scriptBackground,"onUpdate:modelValue":e[8]||(e[8]=ne=>o.scriptBackground=ne),label:"B/G",class:"shrink mt-0","data-test":"upload-background"},null,8,["modelValue"])],16)]),default:m(()=>[e[30]||(e[30]=V("span",null,"Run upload download scripts in the background",-1))]),_:1})]),_:1})]),_:1})]),_:1}),g(C,{class:"d-flex align-center"},{default:m(()=>[e[31]||(e[31]=k(" Items ")),g(N),g(c,{modelValue:o.search,"onUpdate:modelValue":e[9]||(e[9]=y=>o.search=y),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),(S(),T(D,{modelValue:o.curTab,"onUpdate:modelValue":e[10]||(e[10]=y=>o.curTab=y),key:`v-tabs_${o.tables.length}`},{default:m(()=>[(S(!0),L(K,null,G(o.tables,(y,ne)=>(S(),T(O,{key:ne},{default:m(()=>[k(z(y.name),1)]),_:2},1024))),128))]),_:1},8,["modelValue"])),(S(),T(j,{modelValue:o.curTab,"onUpdate:modelValue":e[11]||(e[11]=y=>o.curTab=y),key:`v-tabs-window_${o.tables.length}`},{default:m(()=>[(S(!0),L(K,null,G(o.tables,(y,ne)=>(S(),T(U,{key:`${o.filename}${ne}`},{default:m(()=>[g(w,{headers:y.headers,items:y.rows,search:o.search,"items-per-page":20,"items-per-page-options":[10,20,50,100,-1],"multi-sort":"",density:"compact","data-test":y.name},he({item:m(({item:I})=>[(S(),T(J,{items:I,key:I[0].name,onChange:De(E=>i.onChange(I,E),["self"])},null,8,["items","onChange"]))]),_:2},[o.tables.length>1?{name:"tfoot",fn:m(()=>[V("div",Ho,[e[38]||(e[38]=V("span",{class:"text-body-1 mr-3"},"Table Download:",-1)),g(_,{dense:"",color:"primary",class:"mr-3",onClick:I=>i.downloadBinary(y.name),disabled:o.filename=="","data-test":"download-table-binary"},{default:m(()=>[e[33]||(e[33]=k(" Binary ")),g(p,{end:"",theme:"dark"},{default:m(()=>e[32]||(e[32]=[k(" mdi-file-code ")])),_:1})]),_:2},1032,["onClick","disabled"]),g(_,{dense:"",color:"primary",class:"mr-3",onClick:I=>i.downloadDefinition(y.name),disabled:o.filename=="","data-test":"download-table-definition"},{default:m(()=>[e[35]||(e[35]=k(" Definition ")),g(p,{end:"",theme:"dark"},{default:m(()=>e[34]||(e[34]=[k(" mdi-file-document-edit ")])),_:1})]),_:2},1032,["onClick","disabled"]),g(_,{dense:"",color:"primary",onClick:I=>i.downloadReport(y.name),disabled:o.filename=="","data-test":"download-table-report"},{default:m(()=>[e[37]||(e[37]=k(" Report ")),g(p,{end:"",theme:"dark"},{default:m(()=>e[36]||(e[36]=[k(" mdi-file-document ")])),_:1})]),_:2},1032,["onClick","disabled"])])]),key:"0"}:void 0]),1032,["headers","items","search","data-test"])]),_:2},1024))),128))]),_:1},8,["modelValue"]))]),_:1}),o.fileOpen?(S(),T(X,{key:0,modelValue:o.fileOpen,"onUpdate:modelValue":e[12]||(e[12]=y=>o.fileOpen=y),type:"open","api-url":"/openc3-api/tables",onFile:e[13]||(e[13]=y=>i.setFile(y)),onError:e[14]||(e[14]=y=>i.setError(y))},null,8,["modelValue"])):Q("",!0),o.showSaveAs?(S(),T(X,{key:1,modelValue:o.showSaveAs,"onUpdate:modelValue":e[15]||(e[15]=y=>o.showSaveAs=y),type:"save","require-target-parent-dir":"","api-url":"/openc3-api/tables","input-filename":o.filename,onFilename:e[16]||(e[16]=y=>i.saveAsFilename(y)),onError:e[17]||(e[17]=y=>i.setError(y))},null,8,["modelValue","input-filename"])):Q("",!0),g(nt,{modelValue:o.showError,"onUpdate:modelValue":e[18]||(e[18]=y=>o.showError=y),title:o.errorTitle,text:o.errorText},null,8,["modelValue","title","text"])])}const fi=nn("default",fe(zo,[["render",Jo],["__scopeId","data-v-581bcfd1"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-2fe9a0af25d48afd561f.js","vue","./DetailsDialog-BvbziA7Y-8ff3365fb0330e67e92d.js","single-spa","./VWidget-C4spAawK-8c01507f7f06c5187684.js","vue-router","vuex","vuetify","./Widget-fRCERxGf-cfb11a01a4e0819f0115.js"],function(y,N){"use strict";var c,a,o,s,n,u,d,l,m,h,p,g,v,x,f,w;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,o=e.createElementBlock,s=e.openBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,h=e.renderList,p=e.createBlock,g=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{f=e.P},null,e=>{w=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:f},data:function(){return{width:200,height:200}},mixins:[w],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},C={class:"textbox-widget-container"};function V(t,r,L,j,F,k){const D=a("v-textarea"),S=a("v-list-item-title"),B=a("v-list-item"),_=a("v-list"),z=a("v-menu"),E=a("details-dialog");return s(),o("div",C,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:d(t.valueClass),style:u([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(z,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(_,null,{default:l(()=>[(s(!0),o(m,null,h(t.contextMenuOptions,(i,M)=>(s(),p(B,{key:M,onClick:g(i.action,["stop"])},{default:l(()=>[n(S,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(E,{"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 T=y("default",c(e,[["render",V],["__scopeId","data-v-10f560aa"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-fRCERxGf-cfb11a01a4e0819f0115.js","./main-2fe9a0af25d48afd561f.js","vue","vue-router","single-spa","vuex","vuetify"],function(m,p){"use strict";var l,i,n,a,s,r,o;return{setters:[e=>{l=e.o},e=>{i=e.s,n=e.P},e=>{a=e.resolveComponent,s=e.createBlock,r=e.openBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function c(d,u,V,v,t,x){const h=a("v-text-field");return r(),s(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=f=>t.timeValue=f),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const y=m("default",i(e,[["render",c]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-fRCERxGf-cfb11a01a4e0819f0115.js","vue","./main-2fe9a0af25d48afd561f.js","vue-router","single-spa","vuex","vuetify"],function(a,m){"use strict";var t,r,n,l,s,o;return{setters:[e=>{t=e.o},e=>{r=e.createElementBlock,n=e.openBlock,l=e.normalizeStyle,s=e.toDisplayString},e=>{o=e.s},null,null,null,null],execute:function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function i(c,f,x,y,g,u){return n(),r("div",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},s(u.labelText),5)}const p=a("default",o(e,[["render",i]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-2fe9a0af25d48afd561f.js","vue","./DetailsDialog-BvbziA7Y-8ff3365fb0330e67e92d.js","single-spa","./VWidget-C4spAawK-8c01507f7f06c5187684.js","vue-router","vuex","vuetify","./Widget-fRCERxGf-cfb11a01a4e0819f0115.js"],function(k,U){"use strict";var c,a,o,r,d,n,s,m,u,p,v,g,f,h,x,y,V,w;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,o=e.createElementBlock,r=e.openBlock,d=e.normalizeStyle,n=e.createVNode,s=e.withCtx,m=e.createElementVNode,u=e.toDisplayString,p=e.mergeProps,v=e.createSlots,g=e.Fragment,f=e.renderList,h=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},null,e=>{w=e.L},null,null,null,null],execute:function(){const S={components:{DetailsDialog:V},mixins:[w],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+4,"ch",this.width)}};function E(t,i,j,z,I,C){const _=a("rux-status"),D=a("v-text-field"),N=a("v-tooltip"),B=a("v-list-item-title"),L=a("v-list-item"),T=a("v-list"),A=a("v-menu"),M=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,C.aging])},[n(N,{location:"top"},{activator:s(({props:l})=>[n(D,p({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value",onContextmenu:t.showContextMenu},l),v({_:2},[t.astroStatus?{name:"prepend-inner",fn:s(()=>[n(_,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:s(()=>[m("span",null,u(C.fullName),1)]),_:1}),n(A,{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(T,null,{default:s(()=>[(r(!0),o(g,null,f(t.contextMenuOptions,(l,P)=>(r(),h(L,{key:P,onClick:x(l.action,["stop"])},{default:s(()=>[n(B,null,{default:s(()=>[y(u(l.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(M,{"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",E],["__scopeId","data-v-c21e4dde"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./ValueWidget-D4RrYVEK-1772418f3c2af2fafe2f.js","./LimitsbarWidget-Djui0IpK-9c16f9767089dad25ed6.js","./Widget-fRCERxGf-cfb11a01a4e0819f0115.js","vue","./main-2fe9a0af25d48afd561f.js","./DetailsDialog-BvbziA7Y-8ff3365fb0330e67e92d.js","single-spa","./VWidget-C4spAawK-8c01507f7f06c5187684.js","vue-router","vuex","vuetify","./BarColumn-C9dkpg2O-afaaf4c015a17f51205d.js"],function(g,f){"use strict";var l,i,a,s,u,o,c,n,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{s=e.resolveComponent,u=e.createElementBlock,o=e.openBlock,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 p(t,j,x,V,w,y){const d=s("value-widget"),v=s("limitsbar-widget");return o(),u("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[n(d,r(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),n(v,r(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const b=g("default",m(e,[["render",p]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./ValueWidget-D4RrYVEK-1772418f3c2af2fafe2f.js","./LimitscolumnWidget-Cc19IEjq-5e1e31809753a837e695.js","./Widget-fRCERxGf-cfb11a01a4e0819f0115.js","vue","./main-2fe9a0af25d48afd561f.js","./DetailsDialog-BvbziA7Y-8ff3365fb0330e67e92d.js","single-spa","./VWidget-C4spAawK-8c01507f7f06c5187684.js","vue-router","vuex","vuetify","./BarColumn-C9dkpg2O-afaaf4c015a17f51205d.js"],function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.createElementBlock,o=e.openBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitscolumnWidget:i}};function p(t,j,w,C,x,y){const d=n("limitscolumn-widget"),v=n("value-widget");return o(),u("div",{ref:"container",style:c(t.computedStyle)},[s(d,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,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",p]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./ValueWidget-D4RrYVEK-1772418f3c2af2fafe2f.js","./RangebarWidget-CN0YuHqy-55884175e54d1bf0242c.js","./Widget-fRCERxGf-cfb11a01a4e0819f0115.js","vue","./main-2fe9a0af25d48afd561f.js","./DetailsDialog-BvbziA7Y-8ff3365fb0330e67e92d.js","single-spa","./VWidget-C4spAawK-8c01507f7f06c5187684.js","vue-router","vuex","vuetify"],function(g,h){"use strict";var n,i,l,r,u,m,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,u=e.createElementBlock,m=e.openBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,V,w,y,B,c){const v=r("value-widget"),f=r("rangebar-widget");return m(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:c.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(f,a(t.$attrs,{parameters:c.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const x=g("default",p(e,[["render",d]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./VerticalWidget-D8jUFxjS-cf44fa81ee676059ad9a.js","./Layout-Bh7VzCZd-8c7800d758c191052a54.js","vue","./main-2fe9a0af25d48afd561f.js","./Widget-fRCERxGf-cfb11a01a4e0819f0115.js","vue-router","single-spa","vuex","vuetify"],function(v,x){"use strict";var r,i,n,l,a,s,c,o,u,g,p,d;return{setters:[e=>{r=e.default},e=>{i=e.r},e=>{n=e.resolveComponent,l=e.createElementBlock,a=e.openBlock,s=e.createVNode,c=e.normalizeStyle,o=e.withCtx,u=e.createTextVNode,g=e.toDisplayString,p=e.mergeProps},e=>{d=e.s},null,null,null,null,null],execute:function(){const e={mixins:[i],components:{VerticalWidget:r}};function m(t,w,S,j,C,k){const y=n("v-banner"),f=n("vertical-widget");return a(),l("div",null,[s(y,{class:"boxbanner",style:c(t.computedStyle),"single-line":""},{default:o(()=>[u(g(t.parameters[0]),1)]),_:1},8,["style"]),s(f,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",d(e,[["render",m],["__scopeId","data-v-832aa5cd"]]))}}});
|