openc3-cosmos-tool-tablemanager 6.4.0 → 6.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/tablemanager/{ArrayWidget-DAZApfkV-e3efc15ed08cbde8c1f5.js → ArrayWidget-CeyoPOhk-85a01331d999eb2cda83.js} +2 -2
- data/tools/tablemanager/{ArrayplotWidget-BfsxDplv-abd378174a8f8cb89051.js → ArrayplotWidget-BEw4fJPY-4005302a0a990dbb4196.js} +1 -1
- data/tools/tablemanager/{BarColumn-q0nAsvrd-c0fc6ef10d8b2bff90c6.js → BarColumn-CIWppEH6-e6f26043e53323e7e587.js} +1 -1
- data/tools/tablemanager/{BlockWidget-SDCUWcMQ-23aecba12cd8374f0793.js → BlockWidget-DRtBkPat-9d22724c0119fa75d4a1.js} +2 -2
- data/tools/tablemanager/{ButtonWidget-BVMjwC19-346a728168562841bca5.js → ButtonWidget-4GORf9BG-035ff588271ad29e5b7f.js} +1 -1
- data/tools/tablemanager/CanvasWidget-VW1uHIU0-ac83c0f699cae5f572ad.js +1 -0
- data/tools/tablemanager/CanvasdotWidget-unc83V9l-df4264e0cf036e385221.js +1 -0
- data/tools/tablemanager/{CanvasimageWidget-DHOSz-dJ-552be2cf9b041e482de6.js → CanvasimageWidget-CNPV5Ale-b41d34154d51bbdbe60a.js} +1 -1
- data/tools/tablemanager/{CanvasimagevalueWidget-zrURWWUL-379f26309d03118e0c48.js → CanvasimagevalueWidget-DsQbSZt_-8902ffc1cca56f62391f.js} +1 -1
- data/tools/tablemanager/{CanvaslabelWidget-D-XAMifp-a26dd40d64b622949c22.js → CanvaslabelWidget-B-5KAkZr-1e9504c10fbcd05a580b.js} +1 -1
- data/tools/tablemanager/{CanvaslabelvalueWidget-BsIdBtEb-9a4fc49fd3e5a01a9813.js → CanvaslabelvalueWidget-DX-b_55r-69f5d43a7027a804f70d.js} +1 -1
- data/tools/tablemanager/{CanvaslineWidget-CA2aPGRg-2cba8c98f4988f3298ec.js → CanvaslineWidget-DiNWzbpu-5f810c1f0f405f91e842.js} +1 -1
- data/tools/tablemanager/{CanvaslinevalueWidget-J7epKRlo-c8bb487177ce40b9ad16.js → CanvaslinevalueWidget-Du9pwAN7-82605079fd16e517fbc0.js} +1 -1
- data/tools/tablemanager/CheckbuttonWidget--QM-segm-effb19c70040255ac9cf.js +1 -0
- data/tools/tablemanager/{ComboboxWidget-Bdm_fMzW-ad3e7638675617f4d3e6.js → ComboboxWidget-BDpHIcCo-caa8fc65eb3894f098d1.js} +1 -1
- data/tools/tablemanager/{DateWidget-BaQqthC7-5a9e6dde58ec510e535c.js → DateWidget-BCmQNavZ-329642c9d1906d5f9da3.js} +1 -1
- data/tools/tablemanager/{DetailsDialog-C5jf8o0K-a5b789e02900cc6f5f3c.js → DetailsDialog-OMd7LWdZ-6793bb09f52fa1e341d0.js} +1 -1
- data/tools/tablemanager/{DynamicWidget-CfMtj7H8-efaadcc6110a9b0d4f15.js → DynamicWidget-CfMtj7H8-cb3ca7bba385666c7380.js} +1 -1
- data/tools/tablemanager/{FormatvalueWidget--H5B9i_Y-d889d7686cc83aef4291.js → FormatvalueWidget-CPn5mDHY-f8245b087a2f10772b0d.js} +1 -1
- data/tools/tablemanager/{Graph-M382Zo8o-fbf7f2ce84f4bf7e8aa2.js → Graph-vUcIyyTp-e7a127b8b918bc154292.js} +1 -1
- data/tools/tablemanager/{GraphWidget-_YOGDD1U-1196fb22da2e922d5ad2.js → GraphWidget-Cl97QQYm-3bb0492c8ce478201b83.js} +1 -1
- data/tools/tablemanager/{HorizontalWidget-D_gzrOWs-16dc4350021ef62f8569.js → HorizontalWidget-CtTkQHl--a0fc6945501f2ba4a834.js} +1 -1
- data/tools/tablemanager/HorizontalboxWidget-Dn9zVn4r-d9e57f37d041e72a568d.js +1 -0
- data/tools/tablemanager/HorizontallineWidget-BBvYWaP7-899296a1544348831680.js +1 -0
- data/tools/tablemanager/{IframeWidget-CuUav9b3-35e41a062890a46a1897.js → IframeWidget-BmZOip3U-79fed6344603323d7139.js} +1 -1
- data/tools/tablemanager/{ImageLoader-3KLKJ5mV-8cb7d62c6dddd6b7b0bb.js → ImageLoader-wYNaGuuz-d45fb331c8babd48b2b6.js} +1 -1
- data/tools/tablemanager/{ImageviewerWidget-BMZ6REN4-8432817ffbf9ed230bea.js → ImageviewerWidget-ByuTqBHq-ec140df9eec58224f474.js} +1 -1
- data/tools/tablemanager/{LabelWidget-oh6FIG6s-996a0d32a8f6607be6f1.js → LabelWidget-Dmb5F5j--6153198fb3e90b6875d8.js} +1 -1
- data/tools/tablemanager/LabelledWidget-DV1IbbPS-b8b88200657fc3bb8d76.js +1 -0
- data/tools/tablemanager/LabelprogressbarWidget-BHBDYVZp-866618d45edd9596d854.js +1 -0
- data/tools/tablemanager/LabelsparklineWidget-BaoIdd7s-4622aa32ca2a0a0ee9c5.js +1 -0
- data/tools/tablemanager/LabelvalueWidget-wuW55zQP-fa1b34b92084a59f3cd2.js +1 -0
- data/tools/tablemanager/{LabelvaluedescWidget-NxrCzznm-e3c1bb5341669f00af70.js → LabelvaluedescWidget-BBHwqvj4-35b964d808f98f0a0ad0.js} +1 -1
- data/tools/tablemanager/LabelvaluelimitsbarWidget-77Rc3lCf-e1f29fef2fcf3ff1df69.js +1 -0
- data/tools/tablemanager/{LabelvaluelimitscolumnWidget-edkpogsl-8454d8fd34bca91dffa6.js → LabelvaluelimitscolumnWidget-nounrACl-fa14ad052201f8273d39.js} +1 -1
- data/tools/tablemanager/LabelvaluerangebarWidget-B83Jj5Q1-1c52254ae55b8efb8cd7.js +1 -0
- data/tools/tablemanager/{Layout-B0hvhBQO-8364d67608e0a77c3312.js → Layout-ByQC7nQ3-482e96e9c0af644986ba.js} +1 -1
- data/tools/tablemanager/{LedWidget--4eSxBnn-9377ebc3db8c6cd24f15.js → LedWidget-Cccb8YTk-b8e456f78919402349f2.js} +1 -1
- data/tools/tablemanager/{LimitsbarWidget-BQaumgRt-457271072d3857ccb338.js → LimitsbarWidget-D1EBBwX1-2204bfc88fa51c06a3f5.js} +1 -1
- data/tools/tablemanager/{LimitscolorWidget-BBF9sRtF-578fc5a397e71de936ff.js → LimitscolorWidget--1aPSNVB-935fcf0dcd559a0f0fef.js} +1 -1
- data/tools/tablemanager/{LimitscolumnWidget-DZZtSoXw-3ed492e1ba776a18a67a.js → LimitscolumnWidget-swnMNApm-35a6efe214e29cc596a1.js} +1 -1
- data/tools/tablemanager/LinegraphWidget-BbI-wOnq-9c427ff3616d4f46e2f4.js +1 -0
- data/tools/tablemanager/MatrixbycolumnsWidget-Bx2qMr8P-51098aceaae88349e5b1.js +1 -0
- data/tools/tablemanager/{ProgressbarWidget-7cYr8136-da5bcf81d5221ce4bd98.js → ProgressbarWidget-7rJeuX6H-1a53a760baa82f2ead86.js} +1 -1
- data/tools/tablemanager/{RadiobuttonWidget-DTfn-7F2-b3c4a9bdee8e1d6342ac.js → RadiobuttonWidget-DsEw3JiU-6d702e3e8478176c3138.js} +1 -1
- data/tools/tablemanager/{RadiogroupWidget-DWvTpw94-39ec13176988d00b6736.js → RadiogroupWidget-DhfbTvQ8-d97a1631645f8ed21ad3.js} +1 -1
- data/tools/tablemanager/{RangebarWidget-CG2Y7eYp-d0a73306bb8d798f9382.js → RangebarWidget-BEGvSL_K-65795e86d4c36ef2c4a9.js} +1 -1
- data/tools/tablemanager/{RollupWidget-C6HKTfCR-abe2d3552eab0c3e39f3.js → RollupWidget-BZhspgWd-84ddc172323553506e1b.js} +1 -1
- data/tools/tablemanager/{ScrollwindowWidget-DvhBCYd2-671d376948ff5a0bfb43.js → ScrollwindowWidget-qZ3nhhVU-c17886b36ffe9415219b.js} +1 -1
- data/tools/tablemanager/{SignalWidget-BZIoGjam-53ec72f63ec5c0199ff5.js → SignalWidget-Bh14Zrch-71a4c5e3c3f2897ebeec.js} +1 -1
- data/tools/tablemanager/{SpacerWidget-YBS8RZIE-fe3a92411987ee75c939.js → SpacerWidget-D_NE46jZ-26040ff5a55e8aeee34c.js} +1 -1
- data/tools/tablemanager/SparklineWidget-CJEEJdZ--5d940ce9bde3b0274ba4.js +1 -0
- data/tools/tablemanager/{TabbookWidget-RfET19pq-c085ba118ab3fdeedcb7.js → TabbookWidget-C-SU65IF-bbe73b862cd931b609f1.js} +1 -1
- data/tools/tablemanager/{TableManager-c249cd75cceb04aeb95a.js → TableManager-b5dd84e6906f2aaf5425.js} +10 -10
- data/tools/tablemanager/{TextboxWidget-M8vFBSxS-77d03fbf305c8d2d922c.js → TextboxWidget-Dn1Ds-b0-7c751019cb10192ae2a8.js} +1 -1
- data/tools/tablemanager/{TextfieldWidget-Dev7lCsT-7d2148ff9aaa3323294b.js → TextfieldWidget-C0C7NL53-3ca3aacfff972f5a5a23.js} +1 -1
- data/tools/tablemanager/{TimeWidget-CQzn13rQ-30fef4f204dd1ce2fd29.js → TimeWidget-AFOTVB4w-88231a9410500b356495.js} +1 -1
- data/tools/tablemanager/TitleWidget-CbS_wrQw-d40c25bda1d58d513ff7.js +1 -0
- data/tools/tablemanager/{VWidget-iASFPjdx-90b62c8a0428e069af21.js → VWidget-BlF_o-7Z-a2e44594f387cb0ae535.js} +1 -1
- data/tools/tablemanager/ValueWidget-DFUfM5tw-c5c390649749404432d8.js +1 -0
- data/tools/tablemanager/ValuelimitsbarWidget-CALgABsT-6b521a57d1bf93a00e3c.js +1 -0
- data/tools/tablemanager/{ValuelimitscolumnWidget-BiRI8GbI-cd3b620d6d55f5d380bd.js → ValuelimitscolumnWidget-Bs91VFLz-3b91fb495414a19baa90.js} +1 -1
- data/tools/tablemanager/ValuerangebarWidget-C7WHyR2h-3d36752f74688a0276e9.js +1 -0
- data/tools/tablemanager/{VerticalWidget-CRmcpQBn-1074ce4f4e246e5699ce.js → VerticalWidget-COP5oVCK-262cf86cacc4513d02bd.js} +1 -1
- data/tools/tablemanager/{VerticalboxWidget-C-qChjug-468f070a006f0db47fb3.js → VerticalboxWidget-CDPoOx4C-e5b3c073a5a882d63c2f.js} +1 -1
- data/tools/tablemanager/{Widget-CFEnOKms-566e0af79193c1e8308c.js → Widget-cmJ76_g1-4f3fd88274b624631d35.js} +1 -1
- data/tools/tablemanager/{main-61252fd94b23058b6f41.js → main-279653f46b53f343c047.js} +18 -18
- data/tools/tablemanager/main.js +1 -1
- metadata +69 -69
- data/tools/tablemanager/CanvasWidget-bVkufjRQ-e8f96c071dba70eecdaa.js +0 -1
- data/tools/tablemanager/CanvasdotWidget-DpniFfca-86b103a0b8ebd12fb95e.js +0 -1
- data/tools/tablemanager/CheckbuttonWidget-ByH-PDRG-b4ab6d3afeee6a3a0c42.js +0 -1
- data/tools/tablemanager/HorizontalboxWidget-GDcjO-UB-8515c13419eeca6c3ae6.js +0 -1
- data/tools/tablemanager/HorizontallineWidget-DZvOYFxf-21cebfa4d2da9d92c50b.js +0 -1
- data/tools/tablemanager/LabelledWidget-Bic36les-a1a0d2a44fb75f00d7b6.js +0 -1
- data/tools/tablemanager/LabelprogressbarWidget-CqIiGoDb-6855de7f42ce9f974c20.js +0 -1
- data/tools/tablemanager/LabelsparklineWidget-DLhmqO02-24d0dc5b6c8d73f2deca.js +0 -1
- data/tools/tablemanager/LabelvalueWidget-BefwSSVq-5c3a525d9fa4ca67f2d1.js +0 -1
- data/tools/tablemanager/LabelvaluelimitsbarWidget-pq7qoolL-ca5816d95cec09e8551e.js +0 -1
- data/tools/tablemanager/LabelvaluerangebarWidget-DpJNv9dh-5a01d6b7d6cbe6b999be.js +0 -1
- data/tools/tablemanager/LinegraphWidget-DTLZmyWs-41721c2d644f6b085d23.js +0 -1
- data/tools/tablemanager/MatrixbycolumnsWidget-dpgZz4wR-c48c9babc3fd75f9dc2b.js +0 -1
- data/tools/tablemanager/SparklineWidget-BMhY9vYe-9e92fb236ceb01a12191.js +0 -1
- data/tools/tablemanager/TitleWidget-C4zbSian-6869f98386710459a60c.js +0 -1
- data/tools/tablemanager/ValueWidget-BVI6uUVX-e578fcee8bb2e33d753b.js +0 -1
- data/tools/tablemanager/ValuelimitsbarWidget-BiIcery0-12b2a5409e471356c45e.js +0 -1
- data/tools/tablemanager/ValuerangebarWidget-CtMFQu9--3834a633c7b7749804a5.js +0 -1
@@ -1,13 +1,13 @@
|
|
1
|
-
System.register(["./main-
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(C);const cn={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},un={class:"app-title mr-2"};function dn(e,t,n,r,i,
|
1
|
+
System.register(["./main-279653f46b53f343c047.js","vue","single-spa","./VWidget-BlF_o-7Z-a2e44594f387cb0ae535.js","./IframeWidget-BmZOip3U-79fed6344603323d7139.js","vue-router","vuex","vuetify","./Widget-cmJ76_g1-4f3fd88274b624631d35.js"],function(ln,us){"use strict";var oe,ae,me,_,O,y,st,m,h,U,F,j,J,K,A,Ue,ge,G,De,Ie,le,ot,at,lt,ct,$e,ut,dt,ft;return{setters:[C=>{oe=C.d,ae=C.F,me=C._},C=>{_=C.resolveComponent,O=C.createBlock,y=C.openBlock,st=C.Teleport,m=C.createVNode,h=C.withCtx,U=C.createElementVNode,F=C.toDisplayString,j=C.createElementBlock,J=C.Fragment,K=C.renderList,A=C.createTextVNode,Ue=C.mergeProps,ge=C.createSlots,G=C.createCommentVNode,De=C.normalizeStyle,Ie=C.withKeys,le=C.withModifiers,ot=C.withDirectives,at=C.vShow,lt=C.ref,ct=C.computed,$e=C.watch,ut=C.normalizeProps,dt=C.guardReactiveProps},null,C=>{ft=C.k},null,null,null,null,null],execute:function(){var C=document.createElement("style");C.textContent=`.filename[data-v-2eb6d698]{background-color:var(--color-background-base-default)}
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(C);const cn={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},un={class:"app-title mr-2"};function dn(e,t,n,r,i,s){const o=_("v-col"),a=_("v-row"),c=_("v-icon"),u=_("v-btn"),d=_("v-divider"),f=_("v-list-item-title"),b=_("v-list-item"),p=_("v-list"),x=_("v-menu"),g=_("v-radio"),R=_("v-list-item-action"),k=_("v-radio-group"),T=_("v-checkbox");return y(),O(st,{to:"#openc3-menu"},[m(a,{"no-gutters":""},{default:h(()=>[m(o,{"align-self":"end"},{default:h(()=>[U("span",un,F(n.title),1)]),_:1})]),_:1}),m(a,{dense:"",class:"flex-nowrap"},{default:h(()=>[(y(!0),j(J,null,K(n.menus,($,W)=>(y(),O(x,{ref_for:!0,ref:"topmenu",key:W},{activator:h(({props:v})=>[m(u,Ue({ref_for:!0},v,{variant:"outlined",class:"mx-1 menu-button",text:$.label,"data-test":s.formatDT(`${n.title} ${$.label}`)}),{append:h(()=>[m(c,{class:"menu-button-icon"},{default:h(()=>t[0]||(t[0]=[A(" mdi-menu-down ")])),_:1})]),_:2},1040,["text","data-test"])]),default:h(()=>[m(p,null,{default:h(()=>[(y(!0),j(J,null,K($.items,(v,P)=>(y(),j(J,null,[v.divider?(y(),O(d,{key:P+"-divider"})):v.subMenu&&v.subMenu.length>0?(y(),j("div",{key:P+"-submenu"},[(y(),O(x,{"open-on-hover":"",location:"right",key:P},{activator:h(({props:D})=>[(y(),O(b,Ue({ref_for:!0},D,{disabled:v.disabled,key:P}),ge({append:h(()=>[m(c,null,{default:h(()=>t[1]||(t[1]=[A(" mdi-chevron-right ")])),_:1})]),default:h(()=>[!v.radio&&!v.checkbox?(y(),O(f,{key:0,style:De("cursor: pointer;"+(v.disabled?"opacity: 0.2":""))},{default:h(()=>[A(F(v.label),1)]),_:2},1032,["style"])):G("",!0)]),_:2},[v.icon?{name:"prepend",fn:h(()=>[m(c,{disabled:v.disabled},{default:h(()=>[A(F(v.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:h(()=>[m(p,null,{default:h(()=>[(y(!0),j(J,null,K(v.subMenu,(D,z)=>(y(),O(b,{key:z,"prepend-icon":D.icon,onClick:Y=>s.subMenuClick(D)},{default:h(()=>[m(f,null,{default:h(()=>[A(F(D.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):v.radioGroup?(y(),O(k,{"model-value":v.value,"onUpdate:modelValue":v.command,key:P+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:h(()=>[(y(!0),j(J,null,K(v.choices,(D,z)=>(y(),O(b,{key:z+"-choice"},{default:h(()=>[m(R,{class:"list-action"},{default:h(()=>[m(g,{color:"secondary",label:D.label,value:D.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(y(),O(b,{onClick:D=>v.command(v),disabled:v.disabled,"data-test":s.formatDT(`${n.title} ${$.label} ${v.label}`),key:P+"-list"},ge({default:h(()=>[v.checkbox?(y(),O(R,{key:0,class:"list-action"},{default:h(()=>[m(T,{modelValue:v.checked,"onUpdate:modelValue":D=>v.checked=D,label:v.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):G("",!0),!v.radio&&!v.checkbox?(y(),O(f,{key:1,style:De("cursor: pointer;"+(v.disabled?"opacity: 0.2":""))},{default:h(()=>[A(F(v.label),1)]),_:2},1032,["style"])):G("",!0)]),_:2},[v.icon?{name:"prepend",fn:h(()=>[m(c,{icon:v.icon,disabled:v.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const fn=oe(cn,[["render",dn],["__scopeId","data-v-4d454b93"]]),hn=function(e){if(e&&e.includes(".")){let t=e.split(".").pop();if(t==="py")return"mdi-language-python";if(t==="rb")return"mdi-language-ruby";if(t==="js")return"mdi-language-javascript";if(t==="csv")return"mdi-file-delimited";if(t==="txt")return"mdi-file-document";if(t==="png"||t==="gif"||t==="jpg")return"mdi-file-image"}return"mdi-file"},pn={class:"tree-node"},mn={class:"content-wrapper"},gn=["tabindex"],bn={key:1},_n={key:2,class:"children"},yn={__name:"TreeNode",props:{node:{type:Object,required:!0},search:{type:String,default:""},type:{type:String,default:"open"}},emits:["nodeToggled","request"],setup(e,{emit:t}){const n=e,r=lt(n.node.isOpen||!1),i=ct(()=>{const d=f=>{var b;return!n.search||f.path.toLowerCase().includes(n.search.toLowerCase())?!0:!!((b=f.children)!=null&&b.some(d))};return d(n.node)});$e(()=>n.node.isOpen,d=>{r.value=d}),$e(()=>n.search,d=>{d?n.node.isOpen||a():n.node.isOpen&&a()});const s=t,o=d=>{d.children?(a(),n.type==="save"&&s("request",d)):s("request",d)},a=()=>{n.node.children&&(r.value=!r.value,n.node.isOpen=r.value,s("nodeToggled",n.node.id,r.value))},c=(d,f)=>{s("nodeToggled",d,f)},u=d=>{s("request",d)};return(d,f)=>{const b=_("v-icon"),p=_("v-btn"),x=_("tree-node",!0);return y(),j("div",pn,[i.value?(y(),j("div",{key:0,class:"node-content",onClick:f[2]||(f[2]=g=>o(e.node))},[U("div",mn,[e.node.children?(y(),O(b,{key:0,class:"toggle-icon",style:{"padding-right":"10px"}},{default:h(()=>[A(F(e.node.isOpen?"mdi-menu-down":"mdi-menu-right"),1)]),_:1})):G("",!0),e.node.children?(y(),O(b,{key:1,size:"small",style:{"padding-right":"10px"}},{default:h(()=>f[3]||(f[3]=[A(F("mdi-folder"))])),_:1})):e.node.title.includes(".rb")?(y(),O(b,{key:2,size:"small",style:{"padding-right":"10px"}},{default:h(()=>f[4]||(f[4]=[A(F("mdi-language-ruby"))])),_:1})):e.node.title.includes(".py")?(y(),O(b,{key:3,size:"small",style:{"padding-right":"10px"}},{default:h(()=>f[5]||(f[5]=[A(F("mdi-language-python"))])),_:1})):(y(),O(b,{key:4,size:"small",style:{"padding-right":"10px"}},{default:h(()=>f[6]||(f[6]=[A(F("mdi-file-document"))])),_:1})),U("span",{class:"title",tabindex:e.node.children?-1:0,onKeyup:f[0]||(f[0]=Ie(g=>o(e.node),["enter"]))},F(e.node.title),41,gn),e.node.title==="__TEMP__"?(y(),O(p,{key:5,icon:"mdi-delete",variant:"text",style:{"margin-left":"auto"},"aria-label":"Delete",onClick:f[1]||(f[1]=g=>s("delete"))})):G("",!0)])])):(y(),j("div",bn)),e.node.children&&e.node.isOpen?(y(),j("div",_n,[(y(!0),j(J,null,K(e.node.children,g=>(y(),O(x,{key:g.id,node:g,search:e.search,type:e.type,onNodeToggled:c,onRequest:u},null,8,["node","search","type"]))),128))])):G("",!0)])}}},wn=oe(yn,[["__scopeId","data-v-74233c4c"]]),vn={components:{TreeNode:wn},props:{type:{type:String,required:!0,validator:function(e){return["open","save"].indexOf(e)!==-1}},apiUrl:String,requireTargetParentDir:Boolean,inputFilename:String,modelValue:Boolean},data(){return{tree:[],items:[],search:null,selectedFile:null,disableButtons:!1,targets:[],targetsRetrieved:[],loading:!0}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},title:function(){return this.type==="open"?"File Open":"File Save As..."},submit:function(){return this.type==="open"?"OPEN":"SAVE"},helpText:function(){return this.type==="open"?"Click on folders to open them and then click a file to select it before clicking Open. Use the search box to filter the results. You can also Tab to the files and Enter to select.":"Click on the folder to save into. Then complete the filename path with the desired name. Use the search box to filter the results."},error:function(){if(this.selectedFile===""||this.selectedFile===null)return"No file selected must select a file";if(!this.selectedFile.match(this.validFilenameRegex)||this.selectedFile.match(/\.\.|\/\/|\.\/|\/\./)){let e=`${this.selectedFile} is not a valid filename. Must `;return this.requireTargetParentDir&&(e+="be in a target directory and "),e+=`only contain alphanumeric characters (including !-_.*) and a valid extension.
|
3
3
|
|
4
|
-
For example: TGT1/procedures/test.py or TGT2/lib/inst.rb`,e}return this.type==="save"&&this.selectedFile.match(/\*$/)?`${this.selectedFile} is not a valid filename. Must not end in '*'.`:null},validFilenameRegex:function(){const e="0-9a-zA-Z";let t=`[${`${e}\\/\\!\\-\\_\\.\\*\\'\\(\\)`}]+\\.[${e}]+`;return this.requireTargetParentDir&&(t=`\\/?${`(${this.targets.join("|")})`}\\/${t}`),new RegExp(t)}},created(){ae.get("/openc3-api/targets").then(e=>{this.targets=e.data,this.targets.push("__TEMP__"),this.targets.forEach(t=>{this.items.push({id:t,disabled:!0,title:t,children:[],path:t}),this.loadFiles(t)}),this.loading=!1})},methods:{calcIcon:function(e){return hn(e)},loadFiles:function(e){ae.get(this.apiUrl,{params:{target:e}}).then(t=>{if(t.data.length===0){this.items=this.items.filter(r=>r.id!==e);return}for(let r of t.data.sort())this.filepath=r,this.insertFile(this.items,2,r);this.inputFilename&&(this.selectedFile=this.inputFilename);const n=this.items.findIndex(r=>r.id===e);n!==-1&&(this.items[n].disabled=!1)}).catch(t=>{this.$emit("error",`Failed to connect to OpenC3. ${t}`)})},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},activeFile:function(e){e.length===0?this.selectedFile=null:(this.selectedFile=this.findItem(this.items,e.id),setTimeout(()=>{this.$refs.submitBtn.$el.focus()},100))},findItem:function(e,t){for(let n of e){if(n.id===t)return n.path;if(n.children){const r=this.findItem(n.children,t);if(r)return r}}return null},exists:function(e,t){let n=!1;for(let r of e){if(r.path===t||r.path.length>1&&r.path[r.path.length-1]==="*"&&r.path.slice(0,r.path.length-1)===t)return!0;r.children&&(n=n||this.exists(r.children,t))}return n},success:function(){this.selectedFile!==null&&this.error===null&&(this.type==="open"?this.openSuccess():this.saveSuccess())},deleteTemp:function(){this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then(e=>ae.delete("/script-api/scripts/temp_files")).then(e=>{this.$emit("clear-temp"),this.loadFiles("__TEMP__")}).catch(e=>{this.$notify.serious({title:"Error",body:`Failed to remove script temporary files due to ${e}`})})},openSuccess:function(){this.disableButtons=!0,ae.get(`${this.apiUrl}/${this.selectedFile}`).then(e=>{const t={name:this.selectedFile,contents:e.data.contents};e.data.suites&&(t.suites=JSON.parse(e.data.suites)),e.data.error&&(t.error=e.data.error),e.data.success&&(t.success=e.data.success);const n=e.data.locked,r=e.data.breakpoints;this.$emit("file",{file:t,locked:n,breakpoints:r}),this.clear()}).catch(e=>{this.$emit("error",`Failed to open ${this.selectedFile}. ${e}`),this.clear()})},saveSuccess:function(){this.exists(this.items,this.selectedFile)?this.$dialog.confirm(`Are you sure you want to overwrite: ${this.selectedFile}`,{okText:"Overwrite",cancelText:"Cancel"}).then(e=>{this.$emit("filename",this.selectedFile),this.clear()}).catch(e=>{}):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(e,t,n){let r=n.split("/");if(r.length===1){e.push({id:this.filepath,title:r[0],file:"ruby",path:this.filepath});return}const i=e.findIndex(o=>o.title===r[0]);i===-1?(e.push({id:this.filepath.split("/").slice(0,t-1).join("/"),title:r[0],children:[],path:this.filepath.split("/").slice(0,t-1).join("/")}),this.insertFile(e[e.length-1].children,t+1,r.slice(1).join("/"))):this.insertFile(e[i].children,t+1,r.slice(1).join("/"))}}},xn={class:"pa-3"},En={class:"overflow-y-auto tree-container"};function Sn(e,t,n,r,i,o){const s=_("v-progress-circular"),a=_("v-overlay"),c=_("v-spacer"),u=_("v-toolbar"),d=_("v-row"),f=_("v-text-field"),b=_("tree-node"),p=_("v-btn"),x=_("v-card-text"),g=_("v-card"),R=_("v-dialog");return y(),O(R,{modelValue:o.show,"onUpdate:modelValue":t[4]||(t[4]=k=>o.show=k),width:"600",onKeydown:t[5]||(t[5]=De(k=>o.success(),["enter"]))},{default:h(()=>[m(g,null,{default:h(()=>[m(a,{"model-value":i.loading},{default:h(()=>[m(s,{indeterminate:"",absolute:"",size:"64"})]),_:1},8,["model-value"]),U("form",{onSubmit:t[3]||(t[3]=le((...k)=>o.success&&o.success(...k),["prevent"]))},[m(u,{height:"24"},{default:h(()=>[m(c),U("span",null,F(o.title),1),m(c)]),_:1}),m(x,null,{default:h(()=>[U("div",xn,[m(d,null,{default:h(()=>[A(F(o.helpText),1)]),_:1}),m(d,{dense:"",class:"mt-5"},{default:h(()=>[m(f,{modelValue:i.search,"onUpdate:modelValue":t[0]||(t[0]=k=>i.search=k),flat:"",autofocus:"","hide-details":"",clearable:"",label:"Search","prepend-inner-icon":"mdi-magnify",density:"compact","data-test":"file-open-save-search"},null,8,["modelValue"])]),_:1}),U("div",En,[(y(!0),j(J,null,K(i.items,k=>(y(),O(b,{key:`${k.id}`,node:k,search:i.search,type:n.type,onRequest:o.activeFile,onDelete:o.deleteTemp},null,8,["node","search","type","onRequest","onDelete"]))),128))]),m(d,{class:"my-2"},{default:h(()=>[m(f,{modelValue:i.selectedFile,"onUpdate:modelValue":t[1]||(t[1]=k=>i.selectedFile=k),"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:n.type==="open"},null,8,["modelValue","disabled"])]),_:1}),m(d,{dense:""},{default:h(()=>[st(U("div",{class:"my-2 text-red",style:{"white-space":"pre-line"}},F(o.error),513),[[at,o.error]])]),_:1}),m(d,{class:"mt-2"},{default:h(()=>[m(c),m(p,{variant:"outlined",class:"mx-2","data-test":"file-open-save-cancel-btn",disabled:i.disableButtons,onClick:t[2]||(t[2]=k=>o.show=!1)},{default:h(()=>t[6]||(t[6]=[A(" Cancel ")])),_:1},8,["disabled"]),m(p,{ref:"submitBtn",type:"submit",color:"primary",class:"mx-2","data-test":"file-open-save-submit-btn",disabled:i.disableButtons||!!o.error,onClick:le(o.success,["prevent"])},{default:h(()=>[A(F(o.submit),1)]),_:1},8,["disabled","onClick"])]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue"])}const kn=se(vn,[["render",Sn]]),On={props:{modelValue:Boolean,text:String,title:String,width:{type:Number,default:800}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{download:function(){const e=new Blob([this.text],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.title}.txt`),t.click()}}},An={class:"mx-2"},Cn={class:"pa-3"},Tn={class:"text"};function Rn(e,t,n,r,i,o){const s=_("v-spacer"),a=_("v-btn"),c=_("v-toolbar"),u=_("v-card-text"),d=_("v-card-actions"),f=_("v-card"),b=_("v-dialog");return y(),O(b,{modelValue:o.show,"onUpdate:modelValue":t[1]||(t[1]=p=>o.show=p),width:n.width,scrollable:""},{default:h(()=>[m(f,null,{default:h(()=>[m(c,{height:"24"},{default:h(()=>[m(s),U("span",null,F(n.title),1),m(s),U("div",An,[m(a,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon","aria-label":"Download Content",onClick:o.download},null,8,["onClick"])])]),_:1}),m(u,{style:{"max-height":"80vh"}},{default:h(()=>[U("div",Cn,[U("span",Tn,F(n.text),1)])]),_:1}),m(d,{class:"px-2"},{default:h(()=>[m(s),m(a,{variant:"flat",onClick:t[0]||(t[0]=p=>o.show=!o.show)},{default:h(()=>t[2]||(t[2]=[A(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const Fn=se(On,[["render",Rn],["__scopeId","data-v-7a4e629d"]]);var Nn=Object.defineProperty,jn=(e,t,n)=>t in e?Nn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,be=(e,t,n)=>jn(e,typeof t!="symbol"?t+"":t,n);function ht(e,t){return function(){return e.apply(t,arguments)}}const{toString:Un}=Object.prototype,{getPrototypeOf:Pe}=Object,{iterator:_e,toStringTag:pt}=Symbol,ye=(e=>t=>{const n=Un.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),H=e=>(e=e.toLowerCase(),t=>ye(t)===e),we=e=>t=>typeof t===e,{isArray:ie}=Array,ce=we("undefined");function Dn(e){return e!==null&&!ce(e)&&e.constructor!==null&&!ce(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mt=H("ArrayBuffer");function In(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&mt(e.buffer),t}const Pn=we("string"),q=we("function"),gt=we("number"),ve=e=>e!==null&&typeof e=="object",$n=e=>e===!0||e===!1,xe=e=>{if(ye(e)!=="object")return!1;const t=Pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(pt in e)&&!(_e in e)},Bn=H("Date"),Vn=H("File"),Ln=H("Blob"),qn=H("FileList"),Mn=e=>ve(e)&&q(e.pipe),zn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||q(e.append)&&((t=ye(e))==="formdata"||t==="object"&&q(e.toString)&&e.toString()==="[object FormData]"))},Jn=H("URLSearchParams"),[Hn,Wn,Kn,Gn]=["ReadableStream","Request","Response","Headers"].map(H),Xn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ue(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ie(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function bt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Q=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_t=e=>!ce(e)&&e!==Q;function $e(){const{caseless:e}=_t(this)&&this||{},t={},n=(r,i)=>{const o=e&&bt(t,i)||i;xe(t[o])&&xe(r)?t[o]=$e(t[o],r):xe(r)?t[o]=$e({},r):ie(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&ue(arguments[r],n);return t}const Yn=(e,t,n,{allOwnKeys:r}={})=>(ue(t,(i,o)=>{n&&q(i)?e[o]=ht(i,n):e[o]=i},{allOwnKeys:r}),e),Qn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},er=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},nr=e=>{if(!e)return null;if(ie(e))return e;let t=e.length;if(!gt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pe(Uint8Array)),ir=(e,t)=>{const n=(e&&e[_e]).call(e);let r;for(;(r=n.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},or=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},sr=H("HTMLFormElement"),ar=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),yt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lr=H("RegExp"),wt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ue(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},cr=e=>{wt(e,(t,n)=>{if(q(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(q(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ur=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return ie(e)?r(e):r(String(e).split(t)),n},dr=()=>{},fr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function hr(e){return!!(e&&q(e.append)&&e[pt]==="FormData"&&e[_e])}const pr=e=>{const t=new Array(10),n=(r,i)=>{if(ve(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=ie(r)?[]:{};return ue(r,(s,a)=>{const c=n(s,i+1);!ce(c)&&(o[a]=c)}),t[i]=void 0,o}}return r};return n(e,0)},mr=H("AsyncFunction"),gr=e=>e&&(ve(e)||q(e))&&q(e.then)&&q(e.catch),vt=((e,t)=>e?setImmediate:t?((n,r)=>(Q.addEventListener("message",({source:i,data:o})=>{i===Q&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Q.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",q(Q.postMessage)),br=typeof queueMicrotask<"u"?queueMicrotask.bind(Q):typeof process<"u"&&process.nextTick||vt,_r=e=>e!=null&&q(e[_e]),l={isArray:ie,isArrayBuffer:mt,isBuffer:Dn,isFormData:zn,isArrayBufferView:In,isString:Pn,isNumber:gt,isBoolean:$n,isObject:ve,isPlainObject:xe,isReadableStream:Hn,isRequest:Wn,isResponse:Kn,isHeaders:Gn,isUndefined:ce,isDate:Bn,isFile:Vn,isBlob:Ln,isRegExp:lr,isFunction:q,isStream:Mn,isURLSearchParams:Jn,isTypedArray:rr,isFileList:qn,forEach:ue,merge:$e,extend:Yn,trim:Xn,stripBOM:Qn,inherits:Zn,toFlatObject:er,kindOf:ye,kindOfTest:H,endsWith:tr,toArray:nr,forEachEntry:ir,matchAll:or,isHTMLForm:sr,hasOwnProperty:yt,hasOwnProp:yt,reduceDescriptors:wt,freezeMethods:cr,toObjectSet:ur,toCamelCase:ar,noop:dr,toFiniteNumber:fr,findKey:bt,global:Q,isContextDefined:_t,isSpecCompliantForm:hr,toJSONObject:pr,isAsyncFn:mr,isThenable:gr,setImmediate:vt,asap:br,isIterable:_r};function E(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}l.inherits(E,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l.toJSONObject(this.config),code:this.code,status:this.status}}});const xt=E.prototype,Et={};["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(e=>{Et[e]={value:e}}),Object.defineProperties(E,Et),Object.defineProperty(xt,"isAxiosError",{value:!0}),E.from=(e,t,n,r,i,o)=>{const s=Object.create(xt);return l.toFlatObject(e,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),E.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const yr=null;function Be(e){return l.isPlainObject(e)||l.isArray(e)}function St(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function kt(e,t,n){return e?e.concat(t).map(function(r,i){return r=St(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function wr(e){return l.isArray(e)&&!e.some(Be)}const vr=l.toFlatObject(l,{},null,function(e){return/^is[A-Z]/.test(e)});function Ee(e,t,n){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=l.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,x){return!l.isUndefined(x[p])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(t);if(!l.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(l.isDate(p))return p.toISOString();if(!a&&l.isBlob(p))throw new E("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(p)||l.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,x,g){let R=p;if(p&&!g&&typeof p=="object"){if(l.endsWith(x,"{}"))x=r?x:x.slice(0,-2),p=JSON.stringify(p);else if(l.isArray(p)&&wr(p)||(l.isFileList(p)||l.endsWith(x,"[]"))&&(R=l.toArray(p)))return x=St(x),R.forEach(function(k,T){!(l.isUndefined(k)||k===null)&&t.append(s===!0?kt([x],T,o):s===null?x:x+"[]",c(k))}),!1}return Be(p)?!0:(t.append(kt(g,x,o),c(p)),!1)}const d=[],f=Object.assign(vr,{defaultVisitor:u,convertValue:c,isVisitable:Be});function b(p,x){if(!l.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+x.join("."));d.push(p),l.forEach(p,function(g,R){(!(l.isUndefined(g)||g===null)&&i.call(t,g,l.isString(R)?R.trim():R,x,f))===!0&&b(g,x?x.concat(R):[R])}),d.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Ot(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ve(e,t){this._pairs=[],e&&Ee(e,this,t)}const At=Ve.prototype;At.append=function(e,t){this._pairs.push([e,t])},At.toString=function(e){const t=e?function(n){return e.call(this,n,Ot)}:Ot;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function xr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ct(e,t,n){if(!t)return e;const r=n&&n.encode||xr;l.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=l.isURLSearchParams(t)?t.toString():new Ve(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Tt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){l.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Rt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Er=typeof URLSearchParams<"u"?URLSearchParams:Ve,Sr=typeof FormData<"u"?FormData:null,kr=typeof Blob<"u"?Blob:null,Or={isBrowser:!0,classes:{URLSearchParams:Er,FormData:Sr,Blob:kr},protocols:["http","https","file","blob","url","data"]},Le=typeof window<"u"&&typeof document<"u",qe=typeof navigator=="object"&&navigator||void 0,Ar=Le&&(!qe||["ReactNative","NativeScript","NS"].indexOf(qe.product)<0),Cr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Tr=Le&&window.location.href||"http://localhost",Rr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Le,hasStandardBrowserEnv:Ar,hasStandardBrowserWebWorkerEnv:Cr,navigator:qe,origin:Tr},Symbol.toStringTag,{value:"Module"})),V={...Rr,...Or};function Fr(e,t){return Ee(e,new V.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return V.isNode&&l.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Nr(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function jr(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function Ft(e){function t(n,r,i,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=o>=n.length;return s=!s&&l.isArray(i)?i.length:s,c?(l.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!l.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&l.isArray(i[s])&&(i[s]=jr(i[s])),!a)}if(l.isFormData(e)&&l.isFunction(e.entries)){const n={};return l.forEachEntry(e,(r,i)=>{t(Nr(r),i,n,0)}),n}return null}function Ur(e,t,n){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const de={transitional:Rt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=l.isObject(e);if(i&&l.isHTMLForm(e)&&(e=new FormData(e)),l.isFormData(e))return r?JSON.stringify(Ft(e)):e;if(l.isArrayBuffer(e)||l.isBuffer(e)||l.isStream(e)||l.isFile(e)||l.isBlob(e)||l.isReadableStream(e))return e;if(l.isArrayBufferView(e))return e.buffer;if(l.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Fr(e,this.formSerializer).toString();if((o=l.isFileList(e))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Ee(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),Ur(e)):e}],transformResponse:[function(e){const t=this.transitional||de.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(l.isResponse(e)||l.isReadableStream(e))return e;if(e&&l.isString(e)&&(n&&!this.responseType||r)){const i=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?E.from(o,E.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:V.classes.FormData,Blob:V.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],e=>{de.headers[e]={}});const Dr=l.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ir=e=>{const t={};let n,r,i;return e&&e.split(`
|
5
|
-
`).forEach(function(
|
6
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(r=>n.set(r)),n}static accessor(e){const t=(this[Nt]=this[Nt]={accessors:{}}).accessors,n=this.prototype;function r(i){const o=fe(i);t[o]||(Vr(n,i),t[o]=!0)}return l.isArray(e)?e.forEach(r):r(e),this}};M.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l.reduceDescriptors(M.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),l.freezeMethods(M);function ze(e,t){const n=this||de,r=t||n,i=M.from(r.headers);let o=r.data;return l.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function jt(e){return!!(e&&e.__CANCEL__)}function oe(e,t,n){E.call(this,e??"canceled",E.ERR_CANCELED,t,n),this.name="CanceledError"}l.inherits(oe,E,{__CANCEL__:!0});function Ut(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new E("Request failed with status code "+n.status,[E.ERR_BAD_REQUEST,E.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Lr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function qr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=r[o];s||(s=c),n[i]=a,r[i]=c;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const b=u&&c-u;return b?Math.round(f*1e3/b):void 0}}function Mr(e,t){let n=0,r=1e3/t,i,o;const s=(a,c=Date.now())=>{n=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,a)};return[(...a)=>{const c=Date.now(),u=c-n;u>=r?s(a,c):(i=a,o||(o=setTimeout(()=>{o=null,s(i)},r-u)))},()=>i&&s(i)]}const ke=(e,t,n=3)=>{let r=0;const i=qr(50,250);return Mr(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,c=s-r,u=i(c),d=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-s)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},Dt=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},It=e=>(...t)=>l.asap(()=>e(...t)),zr=V.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,V.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(V.origin),V.navigator&&/(msie|trident)/i.test(V.navigator.userAgent)):()=>!0,Jr=V.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];l.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),l.isString(r)&&s.push("path="+r),l.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Hr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Wr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Pt(e,t,n){let r=!Hr(t);return e&&(r||n==!1)?Wr(e,t):t}const $t=e=>e instanceof M?{...e}:e;function Z(e,t){t=t||{};const n={};function r(u,d,f,b){return l.isPlainObject(u)&&l.isPlainObject(d)?l.merge.call({caseless:b},u,d):l.isPlainObject(d)?l.merge({},d):l.isArray(d)?d.slice():d}function i(u,d,f,b){if(l.isUndefined(d)){if(!l.isUndefined(u))return r(void 0,u,f,b)}else return r(u,d,f,b)}function o(u,d){if(!l.isUndefined(d))return r(void 0,d)}function s(u,d){if(l.isUndefined(d)){if(!l.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const c={url:o,method:o,data:o,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:a,headers:(u,d,f)=>i($t(u),$t(d),f,!0)};return l.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||i,f=d(e[u],t[u],u);l.isUndefined(f)&&d!==a||(n[u]=f)}),n}const Bt=e=>{const t=Z({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;t.headers=s=M.from(s),t.url=Ct(Pt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(l.isFormData(n)){if(V.hasStandardBrowserEnv||V.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...d]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(V.hasStandardBrowserEnv&&(r&&l.isFunction(r)&&(r=r(t)),r||r!==!1&&zr(t.url))){const u=i&&o&&Jr.read(o);u&&s.set(i,u)}return t},Kr=typeof XMLHttpRequest<"u",Gr=Kr&&function(e){return new Promise(function(t,n){const r=Bt(e);let i=r.data;const o=M.from(r.headers).normalize();let{responseType:s,onUploadProgress:a,onDownloadProgress:c}=r,u,d,f,b,p;function x(){b&&b(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function R(){if(!g)return;const T=M.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),P={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:T,config:e,request:g};Ut(function(W){t(W),x()},function(W){n(W),x()},P),g=null}"onloadend"in g?g.onloadend=R:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(R)},g.onabort=function(){g&&(n(new E("Request aborted",E.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new E("Network Error",E.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let T=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const P=r.transitional||Rt;r.timeoutErrorMessage&&(T=r.timeoutErrorMessage),n(new E(T,P.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,e,g)),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&l.forEach(o.toJSON(),function(T,P){g.setRequestHeader(P,T)}),l.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),s&&s!=="json"&&(g.responseType=r.responseType),c&&([f,p]=ke(c,!0),g.addEventListener("progress",f)),a&&g.upload&&([d,b]=ke(a),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",b)),(r.cancelToken||r.signal)&&(u=T=>{g&&(n(!T||T.type?new oe(null,e,g):T),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const k=Lr(r.url);if(k&&V.protocols.indexOf(k)===-1){n(new E("Unsupported protocol "+k+":",E.ERR_BAD_REQUEST,e));return}g.send(i||null)})},Xr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(u){if(!i){i=!0,a();const d=u instanceof Error?u:this.reason;r.abort(d instanceof E?d:new oe(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,o(new E(`timeout ${t} of ms exceeded`,E.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>l.asap(a),c}},Yr=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Qr=async function*(e,t){for await(const n of Zr(e))yield*Yr(n,t)},Zr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Vt=(e,t,n,r)=>{const i=Qr(e,t);let o=0,s,a=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){a(),c.close();return}let f=d.byteLength;if(n){let b=o+=f;n(b)}c.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(c){return a(c),i.return()}},{highWaterMark:2})},Oe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Lt=Oe&&typeof ReadableStream=="function",ei=Oe&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),qt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ti=Lt&&qt(()=>{let e=!1;const t=new Request(V.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Mt=64*1024,Je=Lt&&qt(()=>l.isReadableStream(new Response("").body)),Ae={stream:Je&&(e=>e.body)};Oe&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ae[t]&&(Ae[t]=l.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new E(`Response type '${t}' is not supported`,E.ERR_NOT_SUPPORT,r)})})})(new Response);const ni=async e=>{if(e==null)return 0;if(l.isBlob(e))return e.size;if(l.isSpecCompliantForm(e))return(await new Request(V.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(l.isArrayBufferView(e)||l.isArrayBuffer(e))return e.byteLength;if(l.isURLSearchParams(e)&&(e=e+""),l.isString(e))return(await ei(e)).byteLength},ri=async(e,t)=>l.toFiniteNumber(e.getContentLength())??ni(t),ii=Oe&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:b}=Bt(e);u=u?(u+"").toLowerCase():"text";let p=Xr([i,o&&o.toAbortSignal()],s),x;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let R;try{if(c&&ti&&n!=="get"&&n!=="head"&&(R=await ri(d,r))!==0){let v=new Request(t,{method:"POST",body:r,duplex:"half"}),$;if(l.isFormData(r)&&($=v.headers.get("content-type"))&&d.setContentType($),v.body){const[D,z]=Dt(R,ke(It(c)));r=Vt(v.body,Mt,D,z)}}l.isString(f)||(f=f?"include":"omit");const k="credentials"in Request.prototype;x=new Request(t,{...b,signal:p,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:k?f:void 0});let T=await fetch(x);const P=Je&&(u==="stream"||u==="response");if(Je&&(a||P&&g)){const v={};["status","statusText","headers"].forEach(Y=>{v[Y]=T[Y]});const $=l.toFiniteNumber(T.headers.get("content-length")),[D,z]=a&&Dt($,ke(It(a),!0))||[];T=new Response(Vt(T.body,Mt,D,()=>{z&&z(),g&&g()}),v)}u=u||"text";let W=await Ae[l.findKey(Ae,u)||"text"](T,e);return!P&&g&&g(),await new Promise((v,$)=>{Ut(v,$,{data:W,headers:M.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:x})})}catch(k){throw g&&g(),k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,e,x),{cause:k.cause||k}):E.from(k,k&&k.code,e,x)}}),He={http:yr,xhr:Gr,fetch:ii};l.forEach(He,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const zt=e=>`- ${e}`,oi=e=>l.isFunction(e)||e===null||e===!1,Jt={getAdapter:e=>{e=l.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let s;if(r=n,!oi(n)&&(r=He[(s=String(n)).toLowerCase()],r===void 0))throw new E(`Unknown adapter '${s}'`);if(r)break;i[s||"#"+o]=r}if(!r){const o=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
|
7
|
-
`+
|
8
|
-
`):" "+zt(
|
9
|
-
`+i):n.stack=i}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Z(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Te.assertOptions(n,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean)},!1),r!=null&&(l.isFunction(r)?t.paramsSerializer={serialize:r}:Te.assertOptions(r,{encode:X.function,serialize:X.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Te.assertOptions(t,{baseUrl:X.spelling("baseURL"),withXsrfToken:X.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&l.merge(i.common,i[t.method]);i&&l.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=M.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(a=a&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!a){const p=[Ht.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),f=p.length,u=Promise.resolve(t);d<f;)u=u.then(p[d++],p[d++]);return u}f=s.length;let b=t;for(d=0;d<f;){const p=s[d++],x=s[d++];try{b=p(b)}catch(g){x.call(this,g);break}}try{u=Ht.call(this,b)}catch(p){return Promise.reject(p)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=Z(this.defaults,e);const t=Pt(e.baseURL,e.url,e.allowAbsoluteUrls);return Ct(t,e.params,e.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(e){ee.prototype[e]=function(t,n){return this.request(Z(n||{},{method:e,url:t,data:(n||{}).data}))}}),l.forEach(["post","put","patch"],function(e){function t(n){return function(r,i,o){return this.request(Z(o||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}ee.prototype[e]=t(),ee.prototype[e+"Form"]=t(!0)});let ai=class an{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(i,o,s){r.reason||(r.reason=new oe(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new an(function(n){t=n}),cancel:t}}};function li(e){return function(t){return e.apply(null,t)}}function ci(e){return l.isObject(e)&&e.isAxiosError===!0}const Ke={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(Ke).forEach(([e,t])=>{Ke[t]=e});function Gt(e){const t=new ee(e),n=ht(ee.prototype.request,t);return l.extend(n,ee.prototype,t,{allOwnKeys:!0}),l.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Gt(Z(e,r))},n}const N=Gt(de);N.Axios=ee,N.CanceledError=oe,N.CancelToken=ai,N.isCancel=jt,N.VERSION=Wt,N.toFormData=Ee,N.AxiosError=E,N.Cancel=N.CanceledError,N.all=function(e){return Promise.all(e)},N.spread=li,N.isAxiosError=ci,N.mergeConfig=Z,N.AxiosHeaders=M,N.formToJSON=e=>Ft(l.isHTMLForm(e)?new FormData(e):e),N.getAdapter=Jt.getAdapter,N.HttpStatusCode=Ke,N.default=N;const{Axios:fo,AxiosError:ho,CanceledError:po,isCancel:mo,CancelToken:go,VERSION:bo,all:_o,Cancel:yo,isAxiosError:wo,spread:vo,toFormData:xo,AxiosHeaders:Eo,HttpStatusCode:So,formToJSON:ko,getAdapter:Oo,mergeConfig:Ao}=N,Ge=N.create({baseURL:location.origin,timeout:6e4,params:{}});Ge.interceptors.response.use(e=>e,e=>{var t,n,r,i,o,s,a,c,u,d,f;if(e.response){if(e.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(x){x&&OpenC3Auth.setTokens()}),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let b=`HTTP ${e.response.status} - `;(t=e.response)!=null&&t.statusText&&(b+=`${e.response.statusText} `),(r=(n=e.response)==null?void 0:n.config)!=null&&r.data&&(b+=`${e.response.config.data} `),(o=(i=e.response)==null?void 0:i.data)!=null&&o.message?b+=`${e.response.data.message}`:(a=(s=e.response)==null?void 0:s.data)!=null&&a.exception?b+=`${e.response.data.exception}`:(d=(u=(c=e.response)==null?void 0:c.data)==null?void 0:u.error)!=null&&d.message?(e.response.data.error.class&&(b+=`${e.response.data.error.class} `),b+=`${e.response.data.error.message}`):b+=`${(f=e.response)==null?void 0:f.data}`;const{$cosmosNotify:p}=window;throw p&&p.serious({title:"Network error",body:b}),e}else throw e});const Re=async function(e,t,{data:n,params:r={},headers:i,noAuth:o=!1,noScope:s=!1,onUploadProgress:a=!1}={}){if(!o){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}i.Authorization=localStorage.openc3Token}return i.manual=!0,!s&&!r.scope&&(r.scope=window.openc3Scope),Ge({method:e,url:t,data:n,params:r,headers:i,onUploadProgress:a})},Xe={Accept:"application/json"},Xt={...Xe,"Content-Type":"application/json"},L={get:function(e,{params:t,headers:n=Xe,noScope:r,noAuth:i,onUploadProgress:o}={}){return Re("get",e,{params:t,headers:n,noScope:r,noAuth:i,onUploadProgress:o})},put:function(e,{data:t,params:n,headers:r=Xt,noScope:i,noAuth:o,onUploadProgress:s}={}){return Re("put",e,{data:t,params:n,headers:r,noScope:i,noAuth:o,onUploadProgress:s})},post:function(e,{data:t,params:n,headers:r=Xt,noScope:i,noAuth:o,onUploadProgress:s}={}){return Re("post",e,{data:t,params:n,headers:r,noScope:i,noAuth:o,onUploadProgress:s})},delete:function(e,{params:t,headers:n=Xe,noScope:r,noAuth:i,onUploadProgress:o}={}){return Re("delete",e,{params:t,headers:n,noScope:r,noAuth:i,onUploadProgress:o})}};let ui=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,i=n.length;r<i;r++)n[r](...t)},events:{},on(e,t){var n;return((n=this.events)[e]||(n[e]=[])).push(t),()=>{var r;this.events[e]=(r=this.events[e])==null?void 0:r.filter(i=>t!==i)}}});class di extends Error{constructor(t,n){t instanceof Error?(super(t.message),this.cause=t):super(t),this.reason=n,this.name="ReasonError"}}function fi(e){return e?`{${Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>{let n=JSON.stringify(e[t]);return`${JSON.stringify(t)}:${n}`}).join(",")}}`:""}class hi{constructor(t){this.channel=t,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",t=>{if(t.type==="info"){this._state||(this._state=this.stateFromInfo(t));return}this._state&&(t.type==="join"?this._state[t.id]=t.info:t.type==="leave"&&delete this._state[t.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(t=>t()),this.listeners.length=0}async join(t,n){if(!this._info)return this._info={id:t,info:n},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let t=await this.channel.perform("$presence:leave");return delete this._info,t}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let t=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(t),this._state}finally{delete this._promise}}stateFromInfo(t){return t.records.reduce((n,{id:r,info:i})=>(n[r]=i,n),{})}}const te=Symbol("state");class Yt{constructor(t={}){this.emitter=ui(),this.params=Object.freeze(t),this.presence=new hi(this),this.initialConnect=!0,this[te]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=fi({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[te]}attached(t){if(this.receiver){if(this.receiver!==t)throw Error("Already connected to a different receiver");return!1}return this.receiver=t,!0}connecting(){this[te]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[te]="connected";let t=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(){if(this.state==="connected")throw Error("Already connected");this[te]="connected";let t=!0,n=!0;this.initialConnect=!1,this.emit("connect",{reconnect:n,restored:t})}disconnected(t){this.state==="disconnected"||this.state==="closed"||(this[te]="disconnected",this.presence.reset(),this.emit("disconnect",t))}closed(t){this.state!=="closed"&&(this[te]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",t))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(t,n){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,t,n)}async send(t){return this.perform(void 0,t)}async whisper(t){try{await this.perform("$whisper",t)}catch(n){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",n)}}receive(t,n){this.emit("message",t,n)}on(t,n){return this.emitter.on(t,n)}once(t,n){let r=this.emitter.on(t,(...i)=>{r(),n(...i)});return r}emit(t,...n){return this.emitter.emit(t,...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((t,n)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(i=>i()),t()})),r.push(this.on("close",i=>{r.forEach(o=>o()),n(i||new di("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class pi extends Yt{constructor(t,n){super(n),this.channelId=t}set channelId(t){this._channelId=t}get channelId(){return this._channelId}}be(pi,"identifier","__ghost__");const mi="$pubsub";class gi extends Yt{async perform(t,n){if(t.startsWith("$"))return super.perform(t,n);throw Error("not implemented")}}be(gi,"identifier",mi);function Ye(e){return bi.test(e)}const bi=/^-?[0-9]+$/;function Qt(e){return _i.test(e)}const _i=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Zt(e,t){const n=Number.parseFloat(e),r=String(n),i=en(e),o=en(r);return!!(i===o||(t==null?void 0:t.approx)===!0&&!Ye(e)&&o.length>=14&&i.startsWith(o.substring(0,14)))}let he=function(e){return e.underflow="underflow",e.overflow="overflow",e.truncate_integer="truncate_integer",e.truncate_float="truncate_float",e}({});function yi(e){if(Zt(e,{approx:!1}))return;if(Ye(e))return he.truncate_integer;const t=Number.parseFloat(e);return Number.isFinite(t)?t===0?he.underflow:he.truncate_float:he.overflow}function en(e){return e.replace(wi,"").replace(xi,"").replace(Ei,"").replace(vi,"")}const wi=/[eE][+-]?\d+$/,vi=/^-?(0*)?/,xi=/\./,Ei=/0+$/;class Si{constructor(t){if(be(this,"isLosslessNumber",!0),!Qt(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=yi(this.value);if(t===void 0||t===he.truncate_float)return Number.parseFloat(this.value);if(Ye(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function ki(e){return e&&typeof e=="object"&&e.isLosslessNumber===!0||!1}function Oi(e){return new Si(e)}function Ai(e,t){return Qe({"":e},"",e,t)}function Qe(e,t,n,r){return Array.isArray(n)?r.call(e,t,Ti(n,r)):n&&typeof n=="object"&&!ki(n)?r.call(e,t,Ci(n,r)):r.call(e,t,n)}function Ci(e,t){for(const n of Object.keys(e)){const r=Qe(e,n,e[n],t);r!==void 0?e[n]=r:delete e[n]}return e}function Ti(e,t){for(let n=0;n<e.length;n++)e[n]=Qe(e,String(n),e[n],t);return e}function Ri(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Oi,r=0;const i=a();return x(i),R(),t?Ai(i,t):i;function o(){if(e.charCodeAt(r)===Ii){r++,u();const S={};let I=!0;for(;r<e.length&&e.charCodeAt(r)!==nn;){I?I=!1:(b(),u());const re=r,pe=d();if(pe===void 0){P();return}u(),p();const it=a();if(it===void 0){Y();return}Object.prototype.hasOwnProperty.call(S,pe)&&!Ze(it,S[pe])&&W(pe,re+1),S[pe]=it}return e.charCodeAt(r)!==nn&&v(),r++,S}}function s(){if(e.charCodeAt(r)===Pi){r++,u();const S=[];let I=!0;for(;r<e.length&&e.charCodeAt(r)!==rn;){I?I=!1:b();const re=a();g(re),S.push(re)}return e.charCodeAt(r)!==rn&&$(),r++,S}}function a(){u();const S=d()??f()??o()??s()??c("true",!0)??c("false",!1)??c("null",null);return u(),S}function c(S,I){if(e.slice(r,r+S.length)===S)return r+=S.length,I}function u(){for(;Fi(e.charCodeAt(r));)r++}function d(){if(e.charCodeAt(r)===et){r++;let S="";for(;r<e.length&&e.charCodeAt(r)!==et;){if(e.charCodeAt(r)===Di){const I=e[r+1],re=Ui[I];re!==void 0?(S+=re,r++):I==="u"?Fe(e.charCodeAt(r+2))&&Fe(e.charCodeAt(r+3))&&Fe(e.charCodeAt(r+4))&&Fe(e.charCodeAt(r+5))?(S+=String.fromCharCode(Number.parseInt(e.slice(r+2,r+6),16)),r+=5):rt(r):z(r)}else ji(e.charCodeAt(r))?S+=e[r]:D(e[r]);r++}return T(),r++,S}}function f(){const S=r;if(e.charCodeAt(r)===on&&(r++,k(S)),e.charCodeAt(r)===tt)r++;else if(Ni(e.charCodeAt(r)))for(r++;Ne(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===Ji)for(r++,k(S);Ne(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===Xi||e.charCodeAt(r)===Gi)for(r++,(e.charCodeAt(r)===on||e.charCodeAt(r)===qi)&&r++,k(S);Ne(e.charCodeAt(r));)r++;if(r>S)return n(e.slice(S,r))}function b(){if(e.charCodeAt(r)!==zi)throw new SyntaxError(`Comma ',' expected after value ${B()}`);r++}function p(){if(e.charCodeAt(r)!==Hi)throw new SyntaxError(`Colon ':' expected after property name ${B()}`);r++}function x(S){if(S===void 0)throw new SyntaxError(`JSON value expected ${B()}`)}function g(S){if(S===void 0)throw new SyntaxError(`Array item expected ${B()}`)}function R(){if(r<e.length)throw new SyntaxError(`Expected end of input ${B()}`)}function k(S){if(!Ne(e.charCodeAt(r))){const I=e.slice(S,r);throw new SyntaxError(`Invalid number '${I}', expecting a digit ${B()}`)}}function T(){if(e.charCodeAt(r)!==et)throw new SyntaxError(`End of string '"' expected ${B()}`)}function P(){throw new SyntaxError(`Quoted object key expected ${B()}`)}function W(S,I){throw new SyntaxError(`Duplicate key '${S}' encountered at position ${I}`)}function v(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${B()}`)}function $(){throw new SyntaxError(`Array item or end of array ']' expected ${B()}`)}function D(S){throw new SyntaxError(`Invalid character '${S}' ${w()}`)}function z(S){const I=e.slice(S,S+2);throw new SyntaxError(`Invalid escape character '${I}' ${w()}`)}function Y(){throw new SyntaxError(`Object value expected after ':' ${w()}`)}function rt(S){const I=e.slice(S,S+6);throw new SyntaxError(`Invalid unicode character '${I}' ${w()}`)}function w(){return`at position ${r}`}function ne(){return r<e.length?`but got '${e[r]}'`:"but reached end of input"}function B(){return`${ne()} ${w()}`}}function Fi(e){return e===$i||e===Bi||e===Vi||e===Li}function Fe(e){return e>=tt&&e<=nt||e>=Wi&&e<=Yi||e>=Ki&&e<=Qi}function Ne(e){return e>=tt&&e<=nt}function Ni(e){return e>=Mi&&e<=nt}function ji(e){return e>=32&&e<=1114111}function Ze(e,t){return e===t?!0:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>Ze(n,t[r])):tn(e)&&tn(t)?[...new Set([...Object.keys(e),...Object.keys(t)])].every(n=>Ze(e[n],t[n])):!1}function tn(e){return typeof e=="object"&&e!==null}const Ui={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
10
|
-
`,r:"\r",t:" "},Di=92,Ii=123,nn=125,Pi=91,rn=93,$i=32,Bi=10,Vi=9,Li=13,et=34,qi=43,on=45,tt=48,Mi=49,nt=57,zi=44,Ji=46,Hi=58,Wi=65,Ki=97,Gi=69,Xi=101,Yi=70,Qi=102;function sn(e,t,n,r){return i(e);function i(c,u){if(Array.isArray(r)){const d=r.find(f=>f.test(c));if(d){const f=d.stringify(c);if(typeof f!="string"||!Qt(f))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${f})`);return f}}if(typeof c=="boolean"||typeof c=="number"||typeof c=="string"||c===null||c instanceof Date||c instanceof Boolean||c instanceof Number||c instanceof String)return JSON.stringify(c);if(c!=null&&c.isLosslessNumber||typeof c=="bigint")return c.toString();if(Array.isArray(c))return o(c);if(c&&typeof c=="object")return s(c)}function o(c,u){if(c.length===0)return"[]";let d="[";for(let f=0;f<c.length;f++){const b=c[f];typeof b<"u"&&typeof b!="function"?d+=i(b):d+="null",f<c.length-1&&(d+=",")}return d+="]",d}function s(c,u){if(typeof c.toJSON=="function")return sn(c.toJSON(),t,n,void 0);const d=Array.isArray(t)?t.map(String):Object.keys(c);if(d.length===0)return"{}";let f=!0,b="{";for(const p of d){const x=c[p];if(a(p,x)){f?f=!1:b+=",";const g=JSON.stringify(p);b+=`${g}:`,b+=i(x)}}return b+="}",b}function a(c,u){return typeof u<"u"&&typeof u!="function"&&typeof u!="symbol"}}function Zi(e){return Zt(e)?parseFloat(e):BigInt(e)}class eo{constructor(){be(this,"id",1)}async exec(t,n,r={},i={},o=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,i.manual=!0,(await Ge.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:n,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...i},timeout:o,transformRequest:[(s,a)=>sn(s)],transformResponse:[s=>Ri(s,void 0,Zi)]})).data.result}catch(s){let a=new Error;throw s.response?(a.name=s.response.data.error.data.class,a.message=s.response.data.error.data.message,a.object=s.response.data.error):s.request?(a.name="Request error",a.message="Request error, no response received"):a.name="Unknown error",a}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,n){return this.exec("map_target_to_interface",[t,n])}connect_interface(t,...n){return n.length>0?this.exec("connect_interface",[t,...n]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,n,...r){return this.exec("interface_cmd",[t,n,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,n,r){return this.exec("get_item",[t,n,r])}get_param(t,n,r){return this.exec("get_param",[t,n,r])}get_parameter(t,n,r){return this.exec("get_param",[t,n,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(t,n){return this.exec("get_tlm",[t,n])}get_telemetry(t,n){return this.exec("get_tlm",[t,n])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_tlm",[t])}get_all_tlm_names(t,n=!1){return this.exec("get_all_tlm_names",[t],{hidden:n})}get_all_telemetry_names(t){return this.exec("get_all_tlm_names",[t])}get_all_tlm_item_names(t){return this.exec("get_all_tlm_item_names",[t])}async get_tlm_packet(t,n,r,i=30){const o=await this.exec("get_tlm_packet",[t,n],{type:r,stale_time:i});if(o!=null){let s=o.length,a=null;for(let c=0;c<s;c++)a=this.decode_openc3_type(o[c][1]),a!==null&&(o[c][1]=a)}return o}get_packet_derived_items(t,n){return this.exec("get_packet_derived_items",[t,n])}get_tlm_buffer(t,n){return this.exec("get_tlm_buffer",[t,n])}async get_tlm_values(t,n=30,r=null){let i={stale_time:n};r!==null&&(i.cache_timeout=r);const o=await this.exec("get_tlm_values",[t],i,{},1e4);let s=o[0].length,a=null;for(let c=0;c<s;c++)a=this.decode_openc3_type(o[0][c]),a!==null&&(o[0][c]=a);return o}get_limits(t,n,r){return this.exec("get_limits",[t,n,r])}async tlm(t,n,r,i="CONVERTED"){let o=null;if(n===void 0)o=await this.exec("tlm",[t]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n))o=await this.exec("tlm",[t],{type:n});else{let a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,a}else o=await this.exec("tlm",[t,n,r],{type:i});let s=this.decode_openc3_type(o);return s!==null&&(o=s),o}async inject_tlm(t,n,r=null,i="CONVERTED"){await this.exec("inject_tlm",[t,n,r],{type:i})}set_tlm(t,n,r,i){return this.exec("set_tlm",[t,n,r],{type:i})}override_tlm(t,n,r,i){return this.exec("override_tlm",[t,n,r],{type:i})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,n,r,i){return this.exec("normalize_tlm",[t,n,r],{type:i})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_cmds",[t])}get_all_cmd_names(t,n=!1){return this.exec("get_all_cmd_names",[t],{hidden:n})}get_all_command_names(t){return this.exec("get_all_cmd_names",[t])}get_cmd(t,n){return this.exec("get_cmd",[t,n])}get_command(t,n){return this.exec("get_cmd",[t,n])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,n,r,i="CONVERTED"){return this.exec("get_cmd_value",[t,n,r,i])}get_cmd_buffer(t,n){return this.exec("get_cmd_buffer",[t,n])}_cmd(t,n,r,i,o){let s=null;for(let a in i)Object.prototype.hasOwnProperty.call(i,a)&&(s=this.encode_openc3_type(i[a]),s!==null&&(i[a]=s));return this.exec(t,[n,r,i],{},o)}get_cmd_hazardous(t,n,r,i={}){return n===void 0?this.exec("get_cmd_hazardous",t,{},i):this._cmd("get_cmd_hazardous",t,n,r,i)}cmd(t,n,r,i={}){return n===void 0?this.exec("cmd",t,{},i):this._cmd("cmd",t,n,r,i)}cmd_no_range_check(t,n,r,i={}){return n===void 0?this.exec("cmd_no_range_check",t,{},i):this._cmd("cmd_no_range_check",t,n,r,i)}cmd_raw(t,n,r,i={}){return n===void 0?this.exec("cmd_raw",t,{},i):this._cmd("cmd_raw",t,n,r,i)}cmd_raw_no_range_check(t,n,r,i={}){return n===void 0?this.exec("cmd_raw_no_range_check",t,{},i):this._cmd("cmd_raw_no_range_check",t,n,r,i)}cmd_no_hazardous_check(t,n,r,i={}){return n===void 0?this.exec("cmd_no_hazardous_check",t,{},i):this._cmd("cmd_no_hazardous_check",t,n,r,i)}cmd_no_checks(t,n,r,i={}){return n===void 0?this.exec("cmd_no_checks",t,{},i):this._cmd("cmd_no_checks",t,n,r,i)}cmd_raw_no_hazardous_check(t,n,r,i={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",t,{},i):this._cmd("cmd_raw_no_hazardous_check",t,n,r,i)}cmd_raw_no_checks(t,n,r,i={}){return n===void 0?this.exec("cmd_raw_no_checks",t,{},i):this._cmd("cmd_raw_no_checks",t,n,r,i)}build_cmd(t,n,r){return n===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,n,r)}build_command(t,n,r){return n===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,n,r)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(t,n){return this.exec("send_raw",[t,n])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,n){return this.exec("load_config",[t,n])}save_config(t,n,r){return this.exec("save_config",[t,n,r])}delete_config(t,n){return this.exec("delete_config",[t,n])}enable_limits(t,n,r){return this.exec("enable_limits",[t,n,r])}disable_limits(t,n,r){return this.exec("disable_limits",[t,n,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t){return this.exec("get_setting",[t])}get_settings(t){return this.exec("get_settings",t)}set_setting(t,n){return this.exec("set_setting",[t,n])}update_news(){return this.exec("update_news",[])}save_setting(t,n){return this.exec("set_setting",[t,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(t){if(window.isSecureContext){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(o=>o.toString(16).padStart(2,"0")).join("")}}}const to={mixins:[ft],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 e=!0;if(this.dataItem.states)for(const t of Object.keys(this.dataItem.states))t!=="CHECKED"&&t!=="UNCHECKED"&&(e=!1);else e=!1;return e},itemStates:function(){let e=[];for(const[t,n]of Object.entries(this.dataItem.states))e.push({title:t,value:n});return e}},watch:{checkValue:function(){this.checkValue?this.$emit("change","CHECKED"):this.$emit("change","UNCHECKED")},stateValue:function(){let e=Object.keys(this.dataItem.states).find(t=>this.dataItem.states[t]===this.stateValue);this.$emit("change",e)}},methods:{textChange:function(e){this.dataItem.value=e,this.$emit("change",this.dataItem.value)},format:function(e){return e&&e.json_class==="String"&&e.raw!==void 0&&(this.dataItem.editable=!1),this.formatValueBase(e)}}};function no(e,t,n,r,i,o){const s=_("v-checkbox"),a=_("v-select"),c=_("v-text-field");return y(),j("td",null,[o.isCheckbox?(y(),O(s,{key:0,density:"compact","hide-details":"",modelValue:i.checkValue,"onUpdate:modelValue":t[0]||(t[0]=u=>i.checkValue=u),disabled:!i.dataItem.editable,"data-test":"table-item-checkbox"},null,8,["modelValue","disabled"])):i.dataItem.states?(y(),O(a,{key:1,density:"compact","hide-details":"",modelValue:i.stateValue,"onUpdate:modelValue":t[1]||(t[1]=u=>i.stateValue=u),items:o.itemStates,disabled:!i.dataItem.editable,"data-test":"table-item-select"},null,8,["modelValue","items","disabled"])):(y(),O(c,{key:2,variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"","onUpdate:modelValue":o.textChange,"model-value":o.format(i.dataItem.value),disabled:!i.dataItem.editable,"data-test":"table-item-text-field"},null,8,["onUpdate:modelValue","model-value","disabled"]))])}const ro={components:{TableItem:me(to,[["render",no]])},props:{items:{type:Object,required:!0}},data(){return{dataItems:this.items}},computed:{oneDimensional(){return this.dataItems.length===1}},methods:{onChange:function(e,t,n){this.$emit("change",{index:t,event:n})}}},io={class:"text-start"},oo={key:0,class:"text-start"};function so(e,t,n,r,i,o){const s=_("table-item");return y(),j("tr",null,[U("td",io,F(i.dataItems[0].index),1),o.oneDimensional?(y(),j("td",oo,F(i.dataItems[0].name),1)):G("",!0),(y(!0),j(J,null,K(i.dataItems,(a,c)=>(y(),O(s,{key:a.name,item:a,onChange:le(u=>o.onChange(a,c,u),["self"])},null,8,["item","onChange"]))),128))])}const ao={components:{TopBar:fn,TableRow:me(ro,[["render",so]]),FileOpenSaveDialog:kn,SimpleTextDialog:Fn},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(e){let t=this.filename.split("/").slice(0,2).join("/")+"/procedures/upload",n=this.filename.split("/").slice(0,2).join("/")+"/procedures/download";L.get(`/openc3-api/tables/${t}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.uploadScript=`${t}.rb`}).catch(r=>{L.get(`/openc3-api/tables/${t}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(i=>{this.uploadScript=`${t}.py`}).catch(i=>{this.uploadScript=null})}),L.get(`/openc3-api/tables/${n}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.downloadScript=`${n}.rb`}).catch(r=>{L.get(`/openc3-api/tables/${n}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(i=>{this.downloadScript=`${n}.py`}).catch(i=>{this.downloadScript=null})})}},created(){this.api=new eo,this.api.ensure_offline_access()},methods:{newFile:function(){this.fileModified="",this.fileNew=!0,this.fileOpen=!0},openFile:function(){this.fileOpen=!0},setFile:function({file:e,locked:t}){e.name.includes(".txt")?this.fileNew?(this.buildNewBinary(e.name),this.fileNew=!1):this.getDefinition(e.name):(this.unlockFile(),this.filename=e.name.split("*")[0],this.fileModified="",this.lockedBy=t,this.getDefinition())},setError(e){this.errorTitle="Error",this.errorText=`Error: ${e}`,this.errorText=response.data.message,this.showError=!0},saveFile:function(){this.showSave=!0;const e=new FormData;e.append("binary",this.filename),e.append("definition",this.definitionFilename),e.append("tables",JSON.stringify(this.tables)),L.post(`/openc3-api/tables/${this.filename}`,{data:e,headers:{"Content-Type":"multipart/form-data"}}).then(t=>{this.fileModified="",setTimeout(()=>{this.showSave=!1},2e3)}).catch(({response:t})=>{this.showSave=!1,this.errorTitle="Save Error",this.errorText=t.data.message,this.showError=!0}),this.lockFile()},saveAs:function(){this.showSaveAs=!0},saveAsFilename:function(e){L.put(`/openc3-api/tables/${this.filename}/save-as/${e}`).then(t=>{this.filename=e,this.getDefinition(this.definitionFilename)})},delete:function(){this.filename!==""&&this.$dialog.confirm(`Permanently delete file: ${this.filename}`,{okText:"Delete",cancelText:"Cancel"}).then(e=>L.delete(`/openc3-api/tables/${this.filename}`,{data:{}})).then(e=>{this.tables=[],this.filename="",this.definitionFilename=""}).catch(e=>{})},downloadBinary:function(e=null){const t=new FormData;t.append("binary",this.filename),t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),L.post("/openc3-api/tables/binary",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=window.atob(n.data.contents),i=new Uint8Array(r.length);for(let a=0;a<r.length;++a)i[a]=r.charCodeAt(a);const o=new Blob([i],{type:"application/octet-stream"}),s=document.createElement("a");s.href=URL.createObjectURL(o),s.setAttribute("download",n.data.filename),s.click()})},downloadDefinition:function(e=null){const t=new FormData;t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),L.post("/openc3-api/tables/definition",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=new Blob([n.data.contents],{type:"text/plain"}),i=document.createElement("a");i.href=URL.createObjectURL(r),i.setAttribute("download",n.data.filename),i.click()})},downloadReport:function(e=null){const t=new FormData;t.append("binary",this.filename),t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),L.post("/openc3-api/tables/report",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=`Binary: ${this.filename}
|
4
|
+
For example: TGT1/procedures/test.py or TGT2/lib/inst.rb`,e}return this.type==="save"&&this.selectedFile.match(/\*$/)?`${this.selectedFile} is not a valid filename. Must not end in '*'.`:null},validFilenameRegex:function(){const e="0-9a-zA-Z";let t=`[${`${e}\\/\\!\\-\\_\\.\\*\\'\\(\\)`}]+\\.[${e}]+`;return this.requireTargetParentDir&&(t=`\\/?${`(${this.targets.join("|")})`}\\/${t}`),new RegExp(t)}},created(){ae.get("/openc3-api/targets").then(e=>{this.targets=e.data,this.targets.push("__TEMP__"),this.targets.forEach(t=>{this.items.push({id:t,disabled:!0,title:t,children:[],path:t}),this.loadFiles(t)}),this.loading=!1})},methods:{calcIcon:function(e){return hn(e)},loadFiles:function(e){ae.get(this.apiUrl,{params:{target:e}}).then(t=>{if(t.data.length===0){this.items=this.items.filter(r=>r.id!==e);return}for(let r of t.data.sort())this.filepath=r,this.insertFile(this.items,2,r);this.inputFilename&&(this.selectedFile=this.inputFilename);const n=this.items.findIndex(r=>r.id===e);n!==-1&&(this.items[n].disabled=!1)}).catch(t=>{this.$emit("error",`Failed to connect to OpenC3. ${t}`)})},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},activeFile:function(e){e.length===0?this.selectedFile=null:(this.selectedFile=this.findItem(this.items,e.id),setTimeout(()=>{this.$refs.submitBtn.$el.focus()},100))},findItem:function(e,t){for(let n of e){if(n.id===t)return n.path;if(n.children){const r=this.findItem(n.children,t);if(r)return r}}return null},exists:function(e,t){let n=!1;for(let r of e){if(r.path===t||r.path.length>1&&r.path[r.path.length-1]==="*"&&r.path.slice(0,r.path.length-1)===t)return!0;r.children&&(n=n||this.exists(r.children,t))}return n},success:function(){this.selectedFile!==null&&this.error===null&&(this.type==="open"?this.openSuccess():this.saveSuccess())},deleteTemp:function(){this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then(e=>ae.delete("/script-api/scripts/temp_files")).then(e=>{this.$emit("clear-temp"),this.loadFiles("__TEMP__")}).catch(e=>{this.$notify.serious({title:"Error",body:`Failed to remove script temporary files due to ${e}`})})},openSuccess:function(){this.disableButtons=!0,ae.get(`${this.apiUrl}/${this.selectedFile}`).then(e=>{const t={name:this.selectedFile,contents:e.data.contents};e.data.suites&&(t.suites=JSON.parse(e.data.suites)),e.data.error&&(t.error=e.data.error),e.data.success&&(t.success=e.data.success);const n=e.data.locked,r=e.data.breakpoints;this.$emit("file",{file:t,locked:n,breakpoints:r}),this.clear()}).catch(e=>{this.$emit("error",`Failed to open ${this.selectedFile}. ${e}`),this.clear()})},saveSuccess:function(){this.exists(this.items,this.selectedFile)?this.$dialog.confirm(`Are you sure you want to overwrite: ${this.selectedFile}`,{okText:"Overwrite",cancelText:"Cancel"}).then(e=>{this.$emit("filename",this.selectedFile),this.clear()}).catch(e=>{}):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(e,t,n){let r=n.split("/");if(r.length===1){e.push({id:this.filepath,title:r[0],file:"ruby",path:this.filepath});return}const i=e.findIndex(s=>s.title===r[0]);i===-1?(e.push({id:this.filepath.split("/").slice(0,t-1).join("/"),title:r[0],children:[],path:this.filepath.split("/").slice(0,t-1).join("/")}),this.insertFile(e[e.length-1].children,t+1,r.slice(1).join("/"))):this.insertFile(e[i].children,t+1,r.slice(1).join("/"))}}},xn={class:"pa-3"},En={class:"overflow-y-auto tree-container"};function Sn(e,t,n,r,i,s){const o=_("v-progress-circular"),a=_("v-overlay"),c=_("v-spacer"),u=_("v-toolbar"),d=_("v-row"),f=_("v-text-field"),b=_("tree-node"),p=_("v-btn"),x=_("v-card-text"),g=_("v-card"),R=_("v-dialog");return y(),O(R,{modelValue:s.show,"onUpdate:modelValue":t[4]||(t[4]=k=>s.show=k),width:"600",onKeydown:t[5]||(t[5]=Ie(k=>s.success(),["enter"]))},{default:h(()=>[m(g,null,{default:h(()=>[m(a,{"model-value":i.loading},{default:h(()=>[m(o,{indeterminate:"",absolute:"",size:"64"})]),_:1},8,["model-value"]),U("form",{onSubmit:t[3]||(t[3]=le((...k)=>s.success&&s.success(...k),["prevent"]))},[m(u,{height:"24"},{default:h(()=>[m(c),U("span",null,F(s.title),1),m(c)]),_:1}),m(x,null,{default:h(()=>[U("div",xn,[m(d,null,{default:h(()=>[A(F(s.helpText),1)]),_:1}),m(d,{dense:"",class:"mt-5"},{default:h(()=>[m(f,{modelValue:i.search,"onUpdate:modelValue":t[0]||(t[0]=k=>i.search=k),flat:"",autofocus:"","hide-details":"",clearable:"",label:"Search","prepend-inner-icon":"mdi-magnify",density:"compact","data-test":"file-open-save-search"},null,8,["modelValue"])]),_:1}),U("div",En,[(y(!0),j(J,null,K(i.items,k=>(y(),O(b,{key:`${k.id}`,node:k,search:i.search,type:n.type,onRequest:s.activeFile,onDelete:s.deleteTemp},null,8,["node","search","type","onRequest","onDelete"]))),128))]),m(d,{class:"my-2"},{default:h(()=>[m(f,{modelValue:i.selectedFile,"onUpdate:modelValue":t[1]||(t[1]=k=>i.selectedFile=k),"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:n.type==="open"},null,8,["modelValue","disabled"])]),_:1}),m(d,{dense:""},{default:h(()=>[ot(U("div",{class:"my-2 text-red",style:{"white-space":"pre-line"}},F(s.error),513),[[at,s.error]])]),_:1}),m(d,{class:"mt-2"},{default:h(()=>[m(c),m(p,{variant:"outlined",class:"mx-2","data-test":"file-open-save-cancel-btn",disabled:i.disableButtons,onClick:t[2]||(t[2]=k=>s.show=!1)},{default:h(()=>t[6]||(t[6]=[A(" Cancel ")])),_:1},8,["disabled"]),m(p,{ref:"submitBtn",type:"submit",color:"primary",class:"mx-2","data-test":"file-open-save-submit-btn",disabled:i.disableButtons||!!s.error,onClick:le(s.success,["prevent"])},{default:h(()=>[A(F(s.submit),1)]),_:1},8,["disabled","onClick"])]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue"])}const kn=oe(vn,[["render",Sn]]),On={props:{modelValue:Boolean,text:String,title:String,width:{type:Number,default:800}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{download:function(){const e=new Blob([this.text],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.title}.txt`),t.click()}}},An={class:"mx-2"},Cn={class:"pa-3"},Tn={class:"text"};function Rn(e,t,n,r,i,s){const o=_("v-spacer"),a=_("v-btn"),c=_("v-toolbar"),u=_("v-card-text"),d=_("v-card-actions"),f=_("v-card"),b=_("v-dialog");return y(),O(b,{modelValue:s.show,"onUpdate:modelValue":t[1]||(t[1]=p=>s.show=p),width:n.width,scrollable:""},{default:h(()=>[m(f,null,{default:h(()=>[m(c,{height:"24"},{default:h(()=>[m(o),U("span",null,F(n.title),1),m(o),U("div",An,[m(a,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon","aria-label":"Download Content",onClick:s.download},null,8,["onClick"])])]),_:1}),m(u,{style:{"max-height":"80vh"}},{default:h(()=>[U("div",Cn,[U("span",Tn,F(n.text),1)])]),_:1}),m(d,{class:"px-2"},{default:h(()=>[m(o),m(a,{variant:"flat",onClick:t[0]||(t[0]=p=>s.show=!s.show)},{default:h(()=>t[2]||(t[2]=[A(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const Fn=oe(On,[["render",Rn],["__scopeId","data-v-7a4e629d"]]);var Nn=Object.defineProperty,jn=(e,t,n)=>t in e?Nn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,be=(e,t,n)=>jn(e,typeof t!="symbol"?t+"":t,n);function ht(e,t){return function(){return e.apply(t,arguments)}}const{toString:Un}=Object.prototype,{getPrototypeOf:Pe}=Object,{iterator:_e,toStringTag:pt}=Symbol,ye=(e=>t=>{const n=Un.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),H=e=>(e=e.toLowerCase(),t=>ye(t)===e),we=e=>t=>typeof t===e,{isArray:ie}=Array,ce=we("undefined");function Dn(e){return e!==null&&!ce(e)&&e.constructor!==null&&!ce(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mt=H("ArrayBuffer");function In(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&mt(e.buffer),t}const $n=we("string"),q=we("function"),gt=we("number"),ve=e=>e!==null&&typeof e=="object",Pn=e=>e===!0||e===!1,xe=e=>{if(ye(e)!=="object")return!1;const t=Pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(pt in e)&&!(_e in e)},Bn=H("Date"),Vn=H("File"),Ln=H("Blob"),qn=H("FileList"),Mn=e=>ve(e)&&q(e.pipe),zn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||q(e.append)&&((t=ye(e))==="formdata"||t==="object"&&q(e.toString)&&e.toString()==="[object FormData]"))},Jn=H("URLSearchParams"),[Hn,Wn,Kn,Gn]=["ReadableStream","Request","Response","Headers"].map(H),Xn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ue(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ie(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(r=0;r<o;r++)a=s[r],t.call(null,e[a],a,e)}}function bt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Z=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_t=e=>!ce(e)&&e!==Z;function Be(){const{caseless:e}=_t(this)&&this||{},t={},n=(r,i)=>{const s=e&&bt(t,i)||i;xe(t[s])&&xe(r)?t[s]=Be(t[s],r):xe(r)?t[s]=Be({},r):ie(r)?t[s]=r.slice():t[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&ue(arguments[r],n);return t}const Yn=(e,t,n,{allOwnKeys:r}={})=>(ue(t,(i,s)=>{n&&q(i)?e[s]=ht(i,n):e[s]=i},{allOwnKeys:r}),e),Zn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Qn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},er=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},nr=e=>{if(!e)return null;if(ie(e))return e;let t=e.length;if(!gt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pe(Uint8Array)),ir=(e,t)=>{const n=(e&&e[_e]).call(e);let r;for(;(r=n.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},sr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},or=H("HTMLFormElement"),ar=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),yt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lr=H("RegExp"),wt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ue(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},cr=e=>{wt(e,(t,n)=>{if(q(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(q(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ur=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return ie(e)?r(e):r(String(e).split(t)),n},dr=()=>{},fr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function hr(e){return!!(e&&q(e.append)&&e[pt]==="FormData"&&e[_e])}const pr=e=>{const t=new Array(10),n=(r,i)=>{if(ve(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const s=ie(r)?[]:{};return ue(r,(o,a)=>{const c=n(o,i+1);!ce(c)&&(s[a]=c)}),t[i]=void 0,s}}return r};return n(e,0)},mr=H("AsyncFunction"),gr=e=>e&&(ve(e)||q(e))&&q(e.then)&&q(e.catch),vt=((e,t)=>e?setImmediate:t?((n,r)=>(Z.addEventListener("message",({source:i,data:s})=>{i===Z&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Z.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",q(Z.postMessage)),br=typeof queueMicrotask<"u"?queueMicrotask.bind(Z):typeof process<"u"&&process.nextTick||vt,_r=e=>e!=null&&q(e[_e]),l={isArray:ie,isArrayBuffer:mt,isBuffer:Dn,isFormData:zn,isArrayBufferView:In,isString:$n,isNumber:gt,isBoolean:Pn,isObject:ve,isPlainObject:xe,isReadableStream:Hn,isRequest:Wn,isResponse:Kn,isHeaders:Gn,isUndefined:ce,isDate:Bn,isFile:Vn,isBlob:Ln,isRegExp:lr,isFunction:q,isStream:Mn,isURLSearchParams:Jn,isTypedArray:rr,isFileList:qn,forEach:ue,merge:Be,extend:Yn,trim:Xn,stripBOM:Zn,inherits:Qn,toFlatObject:er,kindOf:ye,kindOfTest:H,endsWith:tr,toArray:nr,forEachEntry:ir,matchAll:sr,isHTMLForm:or,hasOwnProperty:yt,hasOwnProp:yt,reduceDescriptors:wt,freezeMethods:cr,toObjectSet:ur,toCamelCase:ar,noop:dr,toFiniteNumber:fr,findKey:bt,global:Z,isContextDefined:_t,isSpecCompliantForm:hr,toJSONObject:pr,isAsyncFn:mr,isThenable:gr,setImmediate:vt,asap:br,isIterable:_r};function E(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}l.inherits(E,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l.toJSONObject(this.config),code:this.code,status:this.status}}});const xt=E.prototype,Et={};["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(e=>{Et[e]={value:e}}),Object.defineProperties(E,Et),Object.defineProperty(xt,"isAxiosError",{value:!0}),E.from=(e,t,n,r,i,s)=>{const o=Object.create(xt);return l.toFlatObject(e,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),E.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const yr=null;function Ve(e){return l.isPlainObject(e)||l.isArray(e)}function St(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function kt(e,t,n){return e?e.concat(t).map(function(r,i){return r=St(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function wr(e){return l.isArray(e)&&!e.some(Ve)}const vr=l.toFlatObject(l,{},null,function(e){return/^is[A-Z]/.test(e)});function Ee(e,t,n){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=l.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,x){return!l.isUndefined(x[p])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,o=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(t);if(!l.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(l.isDate(p))return p.toISOString();if(!a&&l.isBlob(p))throw new E("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(p)||l.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,x,g){let R=p;if(p&&!g&&typeof p=="object"){if(l.endsWith(x,"{}"))x=r?x:x.slice(0,-2),p=JSON.stringify(p);else if(l.isArray(p)&&wr(p)||(l.isFileList(p)||l.endsWith(x,"[]"))&&(R=l.toArray(p)))return x=St(x),R.forEach(function(k,T){!(l.isUndefined(k)||k===null)&&t.append(o===!0?kt([x],T,s):o===null?x:x+"[]",c(k))}),!1}return Ve(p)?!0:(t.append(kt(g,x,s),c(p)),!1)}const d=[],f=Object.assign(vr,{defaultVisitor:u,convertValue:c,isVisitable:Ve});function b(p,x){if(!l.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+x.join("."));d.push(p),l.forEach(p,function(g,R){(!(l.isUndefined(g)||g===null)&&i.call(t,g,l.isString(R)?R.trim():R,x,f))===!0&&b(g,x?x.concat(R):[R])}),d.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Ot(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Le(e,t){this._pairs=[],e&&Ee(e,this,t)}const At=Le.prototype;At.append=function(e,t){this._pairs.push([e,t])},At.toString=function(e){const t=e?function(n){return e.call(this,n,Ot)}:Ot;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function xr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ct(e,t,n){if(!t)return e;const r=n&&n.encode||xr;l.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=l.isURLSearchParams(t)?t.toString():new Le(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Tt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){l.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Rt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Er=typeof URLSearchParams<"u"?URLSearchParams:Le,Sr=typeof FormData<"u"?FormData:null,kr=typeof Blob<"u"?Blob:null,Or={isBrowser:!0,classes:{URLSearchParams:Er,FormData:Sr,Blob:kr},protocols:["http","https","file","blob","url","data"]},qe=typeof window<"u"&&typeof document<"u",Me=typeof navigator=="object"&&navigator||void 0,Ar=qe&&(!Me||["ReactNative","NativeScript","NS"].indexOf(Me.product)<0),Cr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Tr=qe&&window.location.href||"http://localhost",Rr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qe,hasStandardBrowserEnv:Ar,hasStandardBrowserWebWorkerEnv:Cr,navigator:Me,origin:Tr},Symbol.toStringTag,{value:"Module"})),V={...Rr,...Or};function Fr(e,t){return Ee(e,new V.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return V.isNode&&l.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Nr(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function jr(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function Ft(e){function t(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=s>=n.length;return o=!o&&l.isArray(i)?i.length:o,c?(l.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!l.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&l.isArray(i[o])&&(i[o]=jr(i[o])),!a)}if(l.isFormData(e)&&l.isFunction(e.entries)){const n={};return l.forEachEntry(e,(r,i)=>{t(Nr(r),i,n,0)}),n}return null}function Ur(e,t,n){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const de={transitional:Rt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=l.isObject(e);if(i&&l.isHTMLForm(e)&&(e=new FormData(e)),l.isFormData(e))return r?JSON.stringify(Ft(e)):e;if(l.isArrayBuffer(e)||l.isBuffer(e)||l.isStream(e)||l.isFile(e)||l.isBlob(e)||l.isReadableStream(e))return e;if(l.isArrayBufferView(e))return e.buffer;if(l.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Fr(e,this.formSerializer).toString();if((s=l.isFileList(e))||n.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return Ee(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),Ur(e)):e}],transformResponse:[function(e){const t=this.transitional||de.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(l.isResponse(e)||l.isReadableStream(e))return e;if(e&&l.isString(e)&&(n&&!this.responseType||r)){const i=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?E.from(s,E.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:V.classes.FormData,Blob:V.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],e=>{de.headers[e]={}});const Dr=l.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ir=e=>{const t={};let n,r,i;return e&&e.split(`
|
5
|
+
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&Dr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Nt=Symbol("internals");function fe(e){return e&&String(e).trim().toLowerCase()}function Se(e){return e===!1||e==null?e:l.isArray(e)?e.map(Se):String(e)}function $r(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Pr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ze(e,t,n,r,i){if(l.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!l.isString(t)){if(l.isString(r))return t.indexOf(r)!==-1;if(l.isRegExp(r))return r.test(t)}}function Br(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Vr(e,t){const n=l.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}let M=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(o,a,c){const u=fe(a);if(!u)throw new Error("header name must be a non-empty string");const d=l.findKey(r,u);(!d||r[d]===void 0||c===!0||c===void 0&&r[d]!==!1)&&(r[d||a]=Se(o))}const s=(o,a)=>l.forEach(o,(c,u)=>i(c,u,a));if(l.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(l.isString(e)&&(e=e.trim())&&!Pr(e))s(Ir(e),t);else if(l.isObject(e)&&l.isIterable(e)){let o={},a,c;for(const u of e){if(!l.isArray(u))throw TypeError("Object iterator must return a key-value pair");o[c=u[0]]=(a=o[c])?l.isArray(a)?[...a,u[1]]:[a,u[1]]:u[1]}s(o,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=fe(e),e){const n=l.findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return $r(r);if(l.isFunction(t))return t.call(this,r,n);if(l.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=fe(e),e){const n=l.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||ze(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let r=!1;function i(s){if(s=fe(s),s){const o=l.findKey(n,s);o&&(!t||ze(n,n[o],o,t))&&(delete n[o],r=!0)}}return l.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];(!e||ze(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return l.forEach(this,(r,i)=>{const s=l.findKey(n,i);if(s){t[s]=Se(r),delete t[i];return}const o=e?Br(i):String(i).trim();o!==i&&delete t[i],t[o]=Se(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return l.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&l.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
6
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(r=>n.set(r)),n}static accessor(e){const t=(this[Nt]=this[Nt]={accessors:{}}).accessors,n=this.prototype;function r(i){const s=fe(i);t[s]||(Vr(n,i),t[s]=!0)}return l.isArray(e)?e.forEach(r):r(e),this}};M.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l.reduceDescriptors(M.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),l.freezeMethods(M);function Je(e,t){const n=this||de,r=t||n,i=M.from(r.headers);let s=r.data;return l.forEach(e,function(o){s=o.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function jt(e){return!!(e&&e.__CANCEL__)}function se(e,t,n){E.call(this,e??"canceled",E.ERR_CANCELED,t,n),this.name="CanceledError"}l.inherits(se,E,{__CANCEL__:!0});function Ut(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new E("Request failed with status code "+n.status,[E.ERR_BAD_REQUEST,E.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Lr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function qr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=r[s];o||(o=c),n[i]=a,r[i]=c;let d=s,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const b=u&&c-u;return b?Math.round(f*1e3/b):void 0}}function Mr(e,t){let n=0,r=1e3/t,i,s;const o=(a,c=Date.now())=>{n=c,i=null,s&&(clearTimeout(s),s=null),e.apply(null,a)};return[(...a)=>{const c=Date.now(),u=c-n;u>=r?o(a,c):(i=a,s||(s=setTimeout(()=>{s=null,o(i)},r-u)))},()=>i&&o(i)]}const ke=(e,t,n=3)=>{let r=0;const i=qr(50,250);return Mr(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,c=o-r,u=i(c),d=o<=a;r=o;const f={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-o)/u:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},Dt=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},It=e=>(...t)=>l.asap(()=>e(...t)),zr=V.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,V.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(V.origin),V.navigator&&/(msie|trident)/i.test(V.navigator.userAgent)):()=>!0,Jr=V.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const o=[e+"="+encodeURIComponent(t)];l.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),l.isString(r)&&o.push("path="+r),l.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Hr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Wr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $t(e,t,n){let r=!Hr(t);return e&&(r||n==!1)?Wr(e,t):t}const Pt=e=>e instanceof M?{...e}:e;function Q(e,t){t=t||{};const n={};function r(u,d,f,b){return l.isPlainObject(u)&&l.isPlainObject(d)?l.merge.call({caseless:b},u,d):l.isPlainObject(d)?l.merge({},d):l.isArray(d)?d.slice():d}function i(u,d,f,b){if(l.isUndefined(d)){if(!l.isUndefined(u))return r(void 0,u,f,b)}else return r(u,d,f,b)}function s(u,d){if(!l.isUndefined(d))return r(void 0,d)}function o(u,d){if(l.isUndefined(d)){if(!l.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,d,f)=>i(Pt(u),Pt(d),f,!0)};return l.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||i,f=d(e[u],t[u],u);l.isUndefined(f)&&d!==a||(n[u]=f)}),n}const Bt=e=>{const t=Q({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;t.headers=o=M.from(o),t.url=Ct($t(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(l.isFormData(n)){if(V.hasStandardBrowserEnv||V.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[u,...d]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...d].join("; "))}}if(V.hasStandardBrowserEnv&&(r&&l.isFunction(r)&&(r=r(t)),r||r!==!1&&zr(t.url))){const u=i&&s&&Jr.read(s);u&&o.set(i,u)}return t},Kr=typeof XMLHttpRequest<"u",Gr=Kr&&function(e){return new Promise(function(t,n){const r=Bt(e);let i=r.data;const s=M.from(r.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:c}=r,u,d,f,b,p;function x(){b&&b(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function R(){if(!g)return;const T=M.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),$={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:T,config:e,request:g};Ut(function(W){t(W),x()},function(W){n(W),x()},$),g=null}"onloadend"in g?g.onloadend=R:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(R)},g.onabort=function(){g&&(n(new E("Request aborted",E.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new E("Network Error",E.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let T=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const $=r.transitional||Rt;r.timeoutErrorMessage&&(T=r.timeoutErrorMessage),n(new E(T,$.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,e,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&l.forEach(s.toJSON(),function(T,$){g.setRequestHeader($,T)}),l.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),o&&o!=="json"&&(g.responseType=r.responseType),c&&([f,p]=ke(c,!0),g.addEventListener("progress",f)),a&&g.upload&&([d,b]=ke(a),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",b)),(r.cancelToken||r.signal)&&(u=T=>{g&&(n(!T||T.type?new se(null,e,g):T),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const k=Lr(r.url);if(k&&V.protocols.indexOf(k)===-1){n(new E("Unsupported protocol "+k+":",E.ERR_BAD_REQUEST,e));return}g.send(i||null)})},Xr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(u){if(!i){i=!0,a();const d=u instanceof Error?u:this.reason;r.abort(d instanceof E?d:new se(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,s(new E(`timeout ${t} of ms exceeded`,E.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>l.asap(a),c}},Yr=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Zr=async function*(e,t){for await(const n of Qr(e))yield*Yr(n,t)},Qr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Vt=(e,t,n,r)=>{const i=Zr(e,t);let s=0,o,a=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){a(),c.close();return}let f=d.byteLength;if(n){let b=s+=f;n(b)}c.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(c){return a(c),i.return()}},{highWaterMark:2})},Oe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Lt=Oe&&typeof ReadableStream=="function",ei=Oe&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),qt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ti=Lt&&qt(()=>{let e=!1;const t=new Request(V.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Mt=64*1024,He=Lt&&qt(()=>l.isReadableStream(new Response("").body)),Ae={stream:He&&(e=>e.body)};Oe&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ae[t]&&(Ae[t]=l.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new E(`Response type '${t}' is not supported`,E.ERR_NOT_SUPPORT,r)})})})(new Response);const ni=async e=>{if(e==null)return 0;if(l.isBlob(e))return e.size;if(l.isSpecCompliantForm(e))return(await new Request(V.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(l.isArrayBufferView(e)||l.isArrayBuffer(e))return e.byteLength;if(l.isURLSearchParams(e)&&(e=e+""),l.isString(e))return(await ei(e)).byteLength},ri=async(e,t)=>l.toFiniteNumber(e.getContentLength())??ni(t),ii=Oe&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:b}=Bt(e);u=u?(u+"").toLowerCase():"text";let p=Xr([i,s&&s.toAbortSignal()],o),x;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let R;try{if(c&&ti&&n!=="get"&&n!=="head"&&(R=await ri(d,r))!==0){let v=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(l.isFormData(r)&&(P=v.headers.get("content-type"))&&d.setContentType(P),v.body){const[D,z]=Dt(R,ke(It(c)));r=Vt(v.body,Mt,D,z)}}l.isString(f)||(f=f?"include":"omit");const k="credentials"in Request.prototype;x=new Request(t,{...b,signal:p,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:k?f:void 0});let T=await fetch(x);const $=He&&(u==="stream"||u==="response");if(He&&(a||$&&g)){const v={};["status","statusText","headers"].forEach(Y=>{v[Y]=T[Y]});const P=l.toFiniteNumber(T.headers.get("content-length")),[D,z]=a&&Dt(P,ke(It(a),!0))||[];T=new Response(Vt(T.body,Mt,D,()=>{z&&z(),g&&g()}),v)}u=u||"text";let W=await Ae[l.findKey(Ae,u)||"text"](T,e);return!$&&g&&g(),await new Promise((v,P)=>{Ut(v,P,{data:W,headers:M.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:x})})}catch(k){throw g&&g(),k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,e,x),{cause:k.cause||k}):E.from(k,k&&k.code,e,x)}}),We={http:yr,xhr:Gr,fetch:ii};l.forEach(We,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const zt=e=>`- ${e}`,si=e=>l.isFunction(e)||e===null||e===!1,Jt={getAdapter:e=>{e=l.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let s=0;s<t;s++){n=e[s];let o;if(r=n,!si(n)&&(r=We[(o=String(n)).toLowerCase()],r===void 0))throw new E(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+s]=r}if(!r){const s=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
|
7
|
+
`+s.map(zt).join(`
|
8
|
+
`):" "+zt(s[0]):"as no adapter specified";throw new E("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:We};function Ke(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new se(null,e)}function Ht(e){return Ke(e),e.headers=M.from(e.headers),e.data=Je.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Jt.getAdapter(e.adapter||de.adapter)(e).then(function(t){return Ke(e),t.data=Je.call(e,e.transformResponse,t),t.headers=M.from(t.headers),t},function(t){return jt(t)||(Ke(e),t&&t.response&&(t.response.data=Je.call(e,e.transformResponse,t.response),t.response.headers=M.from(t.response.headers))),Promise.reject(t)})}const Wt="1.9.0",Ce={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ce[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Kt={};Ce.transitional=function(e,t,n){function r(i,s){return"[Axios v"+Wt+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,o)=>{if(e===!1)throw new E(r(s," has been removed"+(t?" in "+t:"")),E.ERR_DEPRECATED);return t&&!Kt[s]&&(Kt[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}},Ce.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function oi(e,t,n){if(typeof e!="object")throw new E("options must be an object",E.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const a=e[s],c=a===void 0||o(a,s,e);if(c!==!0)throw new E("option "+s+" must be "+c,E.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new E("Unknown option "+s,E.ERR_BAD_OPTION)}}const Te={assertOptions:oi,validators:Ce},X=Te.validators;let ee=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Tt,response:new Tt}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
9
|
+
`+i):n.stack=i}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Q(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Te.assertOptions(n,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean)},!1),r!=null&&(l.isFunction(r)?t.paramsSerializer={serialize:r}:Te.assertOptions(r,{encode:X.function,serialize:X.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Te.assertOptions(t,{baseUrl:X.spelling("baseURL"),withXsrfToken:X.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=i&&l.merge(i.common,i[t.method]);i&&l.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=M.concat(s,i);const o=[];let a=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(a=a&&p.synchronous,o.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!a){const p=[Ht.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,c),f=p.length,u=Promise.resolve(t);d<f;)u=u.then(p[d++],p[d++]);return u}f=o.length;let b=t;for(d=0;d<f;){const p=o[d++],x=o[d++];try{b=p(b)}catch(g){x.call(this,g);break}}try{u=Ht.call(this,b)}catch(p){return Promise.reject(p)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=Q(this.defaults,e);const t=$t(e.baseURL,e.url,e.allowAbsoluteUrls);return Ct(t,e.params,e.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(e){ee.prototype[e]=function(t,n){return this.request(Q(n||{},{method:e,url:t,data:(n||{}).data}))}}),l.forEach(["post","put","patch"],function(e){function t(n){return function(r,i,s){return this.request(Q(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}ee.prototype[e]=t(),ee.prototype[e+"Form"]=t(!0)});let ai=class an{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(i,s,o){r.reason||(r.reason=new se(i,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new an(function(n){t=n}),cancel:t}}};function li(e){return function(t){return e.apply(null,t)}}function ci(e){return l.isObject(e)&&e.isAxiosError===!0}const Ge={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(Ge).forEach(([e,t])=>{Ge[t]=e});function Gt(e){const t=new ee(e),n=ht(ee.prototype.request,t);return l.extend(n,ee.prototype,t,{allOwnKeys:!0}),l.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Gt(Q(e,r))},n}const N=Gt(de);N.Axios=ee,N.CanceledError=se,N.CancelToken=ai,N.isCancel=jt,N.VERSION=Wt,N.toFormData=Ee,N.AxiosError=E,N.Cancel=N.CanceledError,N.all=function(e){return Promise.all(e)},N.spread=li,N.isAxiosError=ci,N.mergeConfig=Q,N.AxiosHeaders=M,N.formToJSON=e=>Ft(l.isHTMLForm(e)?new FormData(e):e),N.getAdapter=Jt.getAdapter,N.HttpStatusCode=Ge,N.default=N;const{Axios:ds,AxiosError:fs,CanceledError:hs,isCancel:ps,CancelToken:ms,VERSION:gs,all:bs,Cancel:_s,isAxiosError:ys,spread:ws,toFormData:vs,AxiosHeaders:xs,HttpStatusCode:Es,formToJSON:Ss,getAdapter:ks,mergeConfig:Os}=N,Xe=N.create({baseURL:location.origin,timeout:6e4,params:{}});Xe.interceptors.response.use(e=>e,e=>{var t,n,r,i,s,o,a,c,u,d,f;if(e.response){if(e.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(x){x&&OpenC3Auth.setTokens()}),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let b=`HTTP ${e.response.status} - `;(t=e.response)!=null&&t.statusText&&(b+=`${e.response.statusText} `),(r=(n=e.response)==null?void 0:n.config)!=null&&r.data&&(b+=`${e.response.config.data} `),(s=(i=e.response)==null?void 0:i.data)!=null&&s.message?b+=`${e.response.data.message}`:(a=(o=e.response)==null?void 0:o.data)!=null&&a.exception?b+=`${e.response.data.exception}`:(d=(u=(c=e.response)==null?void 0:c.data)==null?void 0:u.error)!=null&&d.message?(e.response.data.error.class&&(b+=`${e.response.data.error.class} `),b+=`${e.response.data.error.message}`):b+=`${(f=e.response)==null?void 0:f.data}`;const{$cosmosNotify:p}=window;throw p&&p.serious({title:"Network error",body:b}),e}else throw e});const Re=async function(e,t,{data:n,params:r={},headers:i,noAuth:s=!1,noScope:o=!1,onUploadProgress:a=!1}={}){if(!s){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}i.Authorization=localStorage.openc3Token}return i.manual=!0,!o&&!r.scope&&(r.scope=window.openc3Scope),Xe({method:e,url:t,data:n,params:r,headers:i,onUploadProgress:a})},Ye={Accept:"application/json"},Xt={...Ye,"Content-Type":"application/json"},L={get:function(e,{params:t,headers:n=Ye,noScope:r,noAuth:i,onUploadProgress:s}={}){return Re("get",e,{params:t,headers:n,noScope:r,noAuth:i,onUploadProgress:s})},put:function(e,{data:t,params:n,headers:r=Xt,noScope:i,noAuth:s,onUploadProgress:o}={}){return Re("put",e,{data:t,params:n,headers:r,noScope:i,noAuth:s,onUploadProgress:o})},post:function(e,{data:t,params:n,headers:r=Xt,noScope:i,noAuth:s,onUploadProgress:o}={}){return Re("post",e,{data:t,params:n,headers:r,noScope:i,noAuth:s,onUploadProgress:o})},delete:function(e,{params:t,headers:n=Ye,noScope:r,noAuth:i,onUploadProgress:s}={}){return Re("delete",e,{params:t,headers:n,noScope:r,noAuth:i,onUploadProgress:s})}};let ui=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,i=n.length;r<i;r++)n[r](...t)},events:{},on(e,t){var n;return((n=this.events)[e]||(n[e]=[])).push(t),()=>{var r;this.events[e]=(r=this.events[e])==null?void 0:r.filter(i=>t!==i)}}});class di extends Error{constructor(t,n){t instanceof Error?(super(t.message),this.cause=t):super(t),this.reason=n,this.name="ReasonError"}}function fi(e){return e?`{${Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>{let n=JSON.stringify(e[t]);return`${JSON.stringify(t)}:${n}`}).join(",")}}`:""}class hi{constructor(t){this.channel=t,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",t=>{if(t.type==="info"){this._state||(this._state=this.stateFromInfo(t));return}this._state&&(t.type==="join"?this._state[t.id]=t.info:t.type==="leave"&&delete this._state[t.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(t=>t()),this.listeners.length=0}async join(t,n){if(!this._info)return this._info={id:t,info:n},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let t=await this.channel.perform("$presence:leave");return delete this._info,t}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let t=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(t),this._state}finally{delete this._promise}}stateFromInfo(t){return t.records.reduce((n,{id:r,info:i})=>(n[r]=i,n),{})}}const te=Symbol("state");class Yt{constructor(t={}){this.emitter=ui(),this.params=Object.freeze(t),this.presence=new hi(this),this.initialConnect=!0,this[te]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=fi({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[te]}attached(t){if(this.receiver){if(this.receiver!==t)throw Error("Already connected to a different receiver");return!1}return this.receiver=t,!0}connecting(){this[te]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[te]="connected";let t=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(){if(this.state==="connected")throw Error("Already connected");this[te]="connected";let t=!0,n=!0;this.initialConnect=!1,this.emit("connect",{reconnect:n,restored:t})}disconnected(t){this.state==="disconnected"||this.state==="closed"||(this[te]="disconnected",this.presence.reset(),this.emit("disconnect",t))}closed(t){this.state!=="closed"&&(this[te]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",t))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(t,n){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,t,n)}async send(t){return this.perform(void 0,t)}async whisper(t){try{await this.perform("$whisper",t)}catch(n){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",n)}}receive(t,n){this.emit("message",t,n)}on(t,n){return this.emitter.on(t,n)}once(t,n){let r=this.emitter.on(t,(...i)=>{r(),n(...i)});return r}emit(t,...n){return this.emitter.emit(t,...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((t,n)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(i=>i()),t()})),r.push(this.on("close",i=>{r.forEach(s=>s()),n(i||new di("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class pi extends Yt{constructor(t,n){super(n),this.channelId=t}set channelId(t){this._channelId=t}get channelId(){return this._channelId}}be(pi,"identifier","__ghost__");const mi="$pubsub";class gi extends Yt{async perform(t,n){if(t.startsWith("$"))return super.perform(t,n);throw Error("not implemented")}}be(gi,"identifier",mi);function Fe(e){return bi.test(e)}const bi=/^-?[0-9]+$/;function Zt(e){return _i.test(e)}const _i=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Qt(e,t){const n=Number.parseFloat(e),r=String(n),i=en(e),s=en(r);return!!(i===s||(t==null?void 0:t.approx)===!0&&!Fe(e)&&s.length>=14&&i.startsWith(s.substring(0,14)))}let he=function(e){return e.underflow="underflow",e.overflow="overflow",e.truncate_integer="truncate_integer",e.truncate_float="truncate_float",e}({});function yi(e){if(Qt(e,{approx:!1}))return;if(Fe(e))return he.truncate_integer;const t=Number.parseFloat(e);return Number.isFinite(t)?t===0?he.underflow:he.truncate_float:he.overflow}function en(e){return e.replace(wi,"").replace(xi,"").replace(Ei,"").replace(vi,"")}const wi=/[eE][+-]?\d+$/,vi=/^-?(0*)?/,xi=/\./,Ei=/0+$/;class Si{constructor(t){if(be(this,"isLosslessNumber",!0),!Zt(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=yi(this.value);if(t===void 0||t===he.truncate_float)return Number.parseFloat(this.value);if(Fe(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function ki(e){return e&&typeof e=="object"&&e.isLosslessNumber===!0||!1}function Oi(e){return new Si(e)}function Ai(e,t){return Ze({"":e},"",e,t)}function Ze(e,t,n,r){return Array.isArray(n)?r.call(e,t,Ti(n,r)):n&&typeof n=="object"&&!ki(n)?r.call(e,t,Ci(n,r)):r.call(e,t,n)}function Ci(e,t){for(const n of Object.keys(e)){const r=Ze(e,n,e[n],t);r!==void 0?e[n]=r:delete e[n]}return e}function Ti(e,t){for(let n=0;n<e.length;n++)e[n]=Ze(e,String(n),e[n],t);return e}function Ri(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Oi,r=0;const i=a();return x(i),R(),t?Ai(i,t):i;function s(){if(e.charCodeAt(r)===Ii){r++,u();const S={};let I=!0;for(;r<e.length&&e.charCodeAt(r)!==nn;){I?I=!1:(b(),u());const re=r,pe=d();if(pe===void 0){$();return}u(),p();const it=a();if(it===void 0){Y();return}Object.prototype.hasOwnProperty.call(S,pe)&&!Qe(it,S[pe])&&W(pe,re+1),S[pe]=it}return e.charCodeAt(r)!==nn&&v(),r++,S}}function o(){if(e.charCodeAt(r)===$i){r++,u();const S=[];let I=!0;for(;r<e.length&&e.charCodeAt(r)!==rn;){I?I=!1:b();const re=a();g(re),S.push(re)}return e.charCodeAt(r)!==rn&&P(),r++,S}}function a(){u();const S=d()??f()??s()??o()??c("true",!0)??c("false",!1)??c("null",null);return u(),S}function c(S,I){if(e.slice(r,r+S.length)===S)return r+=S.length,I}function u(){for(;Fi(e.charCodeAt(r));)r++}function d(){if(e.charCodeAt(r)===et){r++;let S="";for(;r<e.length&&e.charCodeAt(r)!==et;){if(e.charCodeAt(r)===Di){const I=e[r+1],re=Ui[I];re!==void 0?(S+=re,r++):I==="u"?Ne(e.charCodeAt(r+2))&&Ne(e.charCodeAt(r+3))&&Ne(e.charCodeAt(r+4))&&Ne(e.charCodeAt(r+5))?(S+=String.fromCharCode(Number.parseInt(e.slice(r+2,r+6),16)),r+=5):rt(r):z(r)}else ji(e.charCodeAt(r))?S+=e[r]:D(e[r]);r++}return T(),r++,S}}function f(){const S=r;if(e.charCodeAt(r)===sn&&(r++,k(S)),e.charCodeAt(r)===tt)r++;else if(Ni(e.charCodeAt(r)))for(r++;je(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===Ji)for(r++,k(S);je(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===Xi||e.charCodeAt(r)===Gi)for(r++,(e.charCodeAt(r)===sn||e.charCodeAt(r)===qi)&&r++,k(S);je(e.charCodeAt(r));)r++;if(r>S)return n(e.slice(S,r))}function b(){if(e.charCodeAt(r)!==zi)throw new SyntaxError(`Comma ',' expected after value ${B()}`);r++}function p(){if(e.charCodeAt(r)!==Hi)throw new SyntaxError(`Colon ':' expected after property name ${B()}`);r++}function x(S){if(S===void 0)throw new SyntaxError(`JSON value expected ${B()}`)}function g(S){if(S===void 0)throw new SyntaxError(`Array item expected ${B()}`)}function R(){if(r<e.length)throw new SyntaxError(`Expected end of input ${B()}`)}function k(S){if(!je(e.charCodeAt(r))){const I=e.slice(S,r);throw new SyntaxError(`Invalid number '${I}', expecting a digit ${B()}`)}}function T(){if(e.charCodeAt(r)!==et)throw new SyntaxError(`End of string '"' expected ${B()}`)}function $(){throw new SyntaxError(`Quoted object key expected ${B()}`)}function W(S,I){throw new SyntaxError(`Duplicate key '${S}' encountered at position ${I}`)}function v(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${B()}`)}function P(){throw new SyntaxError(`Array item or end of array ']' expected ${B()}`)}function D(S){throw new SyntaxError(`Invalid character '${S}' ${w()}`)}function z(S){const I=e.slice(S,S+2);throw new SyntaxError(`Invalid escape character '${I}' ${w()}`)}function Y(){throw new SyntaxError(`Object value expected after ':' ${w()}`)}function rt(S){const I=e.slice(S,S+6);throw new SyntaxError(`Invalid unicode character '${I}' ${w()}`)}function w(){return`at position ${r}`}function ne(){return r<e.length?`but got '${e[r]}'`:"but reached end of input"}function B(){return`${ne()} ${w()}`}}function Fi(e){return e===Pi||e===Bi||e===Vi||e===Li}function Ne(e){return e>=tt&&e<=nt||e>=Wi&&e<=Yi||e>=Ki&&e<=Zi}function je(e){return e>=tt&&e<=nt}function Ni(e){return e>=Mi&&e<=nt}function ji(e){return e>=32&&e<=1114111}function Qe(e,t){return e===t?!0:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>Qe(n,t[r])):tn(e)&&tn(t)?[...new Set([...Object.keys(e),...Object.keys(t)])].every(n=>Qe(e[n],t[n])):!1}function tn(e){return typeof e=="object"&&e!==null}const Ui={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
10
|
+
`,r:"\r",t:" "},Di=92,Ii=123,nn=125,$i=91,rn=93,Pi=32,Bi=10,Vi=9,Li=13,et=34,qi=43,sn=45,tt=48,Mi=49,nt=57,zi=44,Ji=46,Hi=58,Wi=65,Ki=97,Gi=69,Xi=101,Yi=70,Zi=102;function on(e,t,n,r){return i(e);function i(c,u){if(Array.isArray(r)){const d=r.find(f=>f.test(c));if(d){const f=d.stringify(c);if(typeof f!="string"||!Zt(f))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${f})`);return f}}if(typeof c=="boolean"||typeof c=="number"||typeof c=="string"||c===null||c instanceof Date||c instanceof Boolean||c instanceof Number||c instanceof String)return JSON.stringify(c);if(c!=null&&c.isLosslessNumber||typeof c=="bigint")return c.toString();if(Array.isArray(c))return s(c);if(c&&typeof c=="object")return o(c)}function s(c,u){if(c.length===0)return"[]";let d="[";for(let f=0;f<c.length;f++){const b=c[f];typeof b<"u"&&typeof b!="function"?d+=i(b):d+="null",f<c.length-1&&(d+=",")}return d+="]",d}function o(c,u){if(typeof c.toJSON=="function")return on(c.toJSON(),t,n,void 0);const d=Array.isArray(t)?t.map(String):Object.keys(c);if(d.length===0)return"{}";let f=!0,b="{";for(const p of d){const x=c[p];if(a(p,x)){f?f=!1:b+=",";const g=JSON.stringify(p);b+=`${g}:`,b+=i(x)}}return b+="}",b}function a(c,u){return typeof u<"u"&&typeof u!="function"&&typeof u!="symbol"}}function Qi(e){return Fe(e)&&!Qt(e)?BigInt(e):parseFloat(e)}class es{constructor(){be(this,"id",1)}async exec(t,n,r={},i={},s=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,i.manual=!0,(await Xe.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:n,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...i},timeout:s,transformRequest:[(o,a)=>on(o)],transformResponse:[o=>Ri(o,void 0,Qi)]})).data.result}catch(o){let a=new Error;throw o.response?(a.name=o.response.data.error.data.class,a.message=o.response.data.error.data.message,a.object=o.response.data.error):o.request?(a.name="Request error",a.message="Request error, no response received"):a=o,a}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,n){return this.exec("map_target_to_interface",[t,n])}connect_interface(t,...n){return n.length>0?this.exec("connect_interface",[t,...n]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,n,...r){return this.exec("interface_cmd",[t,n,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,n,r){return this.exec("get_item",[t,n,r])}get_param(t,n,r){return this.exec("get_param",[t,n,r])}get_parameter(t,n,r){return this.exec("get_param",[t,n,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(t,n){return this.exec("get_tlm",[t,n])}get_telemetry(t,n){return this.exec("get_tlm",[t,n])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_tlm",[t])}get_all_tlm_names(t,n=!1){return this.exec("get_all_tlm_names",[t],{hidden:n})}get_all_telemetry_names(t){return this.exec("get_all_tlm_names",[t])}get_all_tlm_item_names(t){return this.exec("get_all_tlm_item_names",[t])}async get_tlm_packet(t,n,r,i=30){const s=await this.exec("get_tlm_packet",[t,n],{type:r,stale_time:i});if(s!=null){let o=s.length,a=null;for(let c=0;c<o;c++)a=this.decode_openc3_type(s[c][1]),a!==null&&(s[c][1]=a)}return s}get_packet_derived_items(t,n){return this.exec("get_packet_derived_items",[t,n])}get_tlm_buffer(t,n){return this.exec("get_tlm_buffer",[t,n])}async get_tlm_values(t,n=30,r=null){let i={stale_time:n};r!==null&&(i.cache_timeout=r);const s=await this.exec("get_tlm_values",[t],i,{},1e4);let o=s[0].length,a=null;for(let c=0;c<o;c++)a=this.decode_openc3_type(s[0][c]),a!==null&&(s[0][c]=a);return s}get_limits(t,n,r){return this.exec("get_limits",[t,n,r])}async tlm(t,n,r,i="CONVERTED"){let s=null;if(n===void 0)s=await this.exec("tlm",[t]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n))s=await this.exec("tlm",[t],{type:n});else{let a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,a}else s=await this.exec("tlm",[t,n,r],{type:i});let o=this.decode_openc3_type(s);return o!==null&&(s=o),s}async inject_tlm(t,n,r=null,i="CONVERTED"){await this.exec("inject_tlm",[t,n,r],{type:i})}set_tlm(t,n,r,i){return this.exec("set_tlm",[t,n,r],{type:i})}override_tlm(t,n,r,i){return this.exec("override_tlm",[t,n,r],{type:i})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,n,r,i){return this.exec("normalize_tlm",[t,n,r],{type:i})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_cmds",[t])}get_all_cmd_names(t,n=!1){return this.exec("get_all_cmd_names",[t],{hidden:n})}get_all_command_names(t){return this.exec("get_all_cmd_names",[t])}get_cmd(t,n){return this.exec("get_cmd",[t,n])}get_command(t,n){return this.exec("get_cmd",[t,n])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,n,r,i="CONVERTED"){return this.exec("get_cmd_value",[t,n,r,i])}get_cmd_buffer(t,n){return this.exec("get_cmd_buffer",[t,n])}_cmd(t,n,r,i,s){let o=null;for(let a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o=this.encode_openc3_type(i[a]),o!==null&&(i[a]=o));return this.exec(t,[n,r,i],{},s)}get_cmd_hazardous(t,n,r,i={}){return n===void 0?this.exec("get_cmd_hazardous",t,{},i):this._cmd("get_cmd_hazardous",t,n,r,i)}cmd(t,n,r,i={}){return n===void 0?this.exec("cmd",t,{},i):this._cmd("cmd",t,n,r,i)}cmd_no_range_check(t,n,r,i={}){return n===void 0?this.exec("cmd_no_range_check",t,{},i):this._cmd("cmd_no_range_check",t,n,r,i)}cmd_raw(t,n,r,i={}){return n===void 0?this.exec("cmd_raw",t,{},i):this._cmd("cmd_raw",t,n,r,i)}cmd_raw_no_range_check(t,n,r,i={}){return n===void 0?this.exec("cmd_raw_no_range_check",t,{},i):this._cmd("cmd_raw_no_range_check",t,n,r,i)}cmd_no_hazardous_check(t,n,r,i={}){return n===void 0?this.exec("cmd_no_hazardous_check",t,{},i):this._cmd("cmd_no_hazardous_check",t,n,r,i)}cmd_no_checks(t,n,r,i={}){return n===void 0?this.exec("cmd_no_checks",t,{},i):this._cmd("cmd_no_checks",t,n,r,i)}cmd_raw_no_hazardous_check(t,n,r,i={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",t,{},i):this._cmd("cmd_raw_no_hazardous_check",t,n,r,i)}cmd_raw_no_checks(t,n,r,i={}){return n===void 0?this.exec("cmd_raw_no_checks",t,{},i):this._cmd("cmd_raw_no_checks",t,n,r,i)}build_cmd(t,n,r){return n===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,n,r)}build_command(t,n,r){return n===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,n,r)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(t,n){return this.exec("send_raw",[t,n])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,n){return this.exec("load_config",[t,n])}save_config(t,n,r){return this.exec("save_config",[t,n,r])}delete_config(t,n){return this.exec("delete_config",[t,n])}enable_limits(t,n,r){return this.exec("enable_limits",[t,n,r])}disable_limits(t,n,r){return this.exec("disable_limits",[t,n,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t){return this.exec("get_setting",[t])}get_settings(t){return this.exec("get_settings",t)}set_setting(t,n){return this.exec("set_setting",[t,n])}update_news(){return this.exec("update_news",[])}save_setting(t,n){return this.exec("set_setting",[t,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(t){if(window.isSecureContext){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(s=>s.toString(16).padStart(2,"0")).join("")}}}const ts={mixins:[ft],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 e=!0;if(this.dataItem.states)for(const t of Object.keys(this.dataItem.states))t!=="CHECKED"&&t!=="UNCHECKED"&&(e=!1);else e=!1;return e},itemStates:function(){let e=[];for(const[t,n]of Object.entries(this.dataItem.states))e.push({title:t,value:n});return e}},watch:{checkValue:function(){this.checkValue?this.$emit("change","CHECKED"):this.$emit("change","UNCHECKED")},stateValue:function(){let e=Object.keys(this.dataItem.states).find(t=>this.dataItem.states[t]===this.stateValue);this.$emit("change",e)}},methods:{textChange:function(e){this.dataItem.value=e,this.$emit("change",this.dataItem.value)},format:function(e){return e&&e.json_class==="String"&&e.raw!==void 0&&(this.dataItem.editable=!1),this.formatValueBase(e)}}};function ns(e,t,n,r,i,s){const o=_("v-checkbox"),a=_("v-select"),c=_("v-text-field");return y(),j("td",null,[s.isCheckbox?(y(),O(o,{key:0,density:"compact","hide-details":"",modelValue:i.checkValue,"onUpdate:modelValue":t[0]||(t[0]=u=>i.checkValue=u),disabled:!i.dataItem.editable,"data-test":"table-item-checkbox"},null,8,["modelValue","disabled"])):i.dataItem.states?(y(),O(a,{key:1,density:"compact","hide-details":"",modelValue:i.stateValue,"onUpdate:modelValue":t[1]||(t[1]=u=>i.stateValue=u),items:s.itemStates,disabled:!i.dataItem.editable,"data-test":"table-item-select"},null,8,["modelValue","items","disabled"])):(y(),O(c,{key:2,variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"","onUpdate:modelValue":s.textChange,"model-value":s.format(i.dataItem.value),disabled:!i.dataItem.editable,"data-test":"table-item-text-field"},null,8,["onUpdate:modelValue","model-value","disabled"]))])}const rs={components:{TableItem:me(ts,[["render",ns]])},props:{items:{type:Object,required:!0}},data(){return{dataItems:this.items}},computed:{oneDimensional(){return this.dataItems.length===1}},methods:{onChange:function(e,t,n){this.$emit("change",{index:t,event:n})}}},is={class:"text-start"},ss={key:0,class:"text-start"};function os(e,t,n,r,i,s){const o=_("table-item");return y(),j("tr",null,[U("td",is,F(i.dataItems[0].index),1),s.oneDimensional?(y(),j("td",ss,F(i.dataItems[0].name),1)):G("",!0),(y(!0),j(J,null,K(i.dataItems,(a,c)=>(y(),O(o,{key:a.name,item:a,onChange:le(u=>s.onChange(a,c,u),["self"])},null,8,["item","onChange"]))),128))])}const as={components:{TopBar:fn,TableRow:me(rs,[["render",os]]),FileOpenSaveDialog:kn,SimpleTextDialog:Fn},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(e){let t=this.filename.split("/").slice(0,2).join("/")+"/procedures/upload",n=this.filename.split("/").slice(0,2).join("/")+"/procedures/download";L.get(`/openc3-api/tables/${t}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.uploadScript=`${t}.rb`}).catch(r=>{L.get(`/openc3-api/tables/${t}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(i=>{this.uploadScript=`${t}.py`}).catch(i=>{this.uploadScript=null})}),L.get(`/openc3-api/tables/${n}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.downloadScript=`${n}.rb`}).catch(r=>{L.get(`/openc3-api/tables/${n}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(i=>{this.downloadScript=`${n}.py`}).catch(i=>{this.downloadScript=null})})}},created(){this.api=new es,this.api.ensure_offline_access()},methods:{newFile:function(){this.fileModified="",this.fileNew=!0,this.fileOpen=!0},openFile:function(){this.fileOpen=!0},setFile:function({file:e,locked:t}){e.name.includes(".txt")?this.fileNew?(this.buildNewBinary(e.name),this.fileNew=!1):this.getDefinition(e.name):(this.unlockFile(),this.filename=e.name.split("*")[0],this.fileModified="",this.lockedBy=t,this.getDefinition())},setError(e){this.errorTitle="Error",this.errorText=`Error: ${e}`,this.errorText=response.data.message,this.showError=!0},saveFile:function(){this.showSave=!0;const e=new FormData;e.append("binary",this.filename),e.append("definition",this.definitionFilename),e.append("tables",JSON.stringify(this.tables)),L.post(`/openc3-api/tables/${this.filename}`,{data:e,headers:{"Content-Type":"multipart/form-data"}}).then(t=>{this.fileModified="",setTimeout(()=>{this.showSave=!1},2e3)}).catch(({response:t})=>{this.showSave=!1,this.errorTitle="Save Error",this.errorText=t.data.message,this.showError=!0}),this.lockFile()},saveAs:function(){this.showSaveAs=!0},saveAsFilename:function(e){L.put(`/openc3-api/tables/${this.filename}/save-as/${e}`).then(t=>{this.filename=e,this.getDefinition(this.definitionFilename)})},delete:function(){this.filename!==""&&this.$dialog.confirm(`Permanently delete file: ${this.filename}`,{okText:"Delete",cancelText:"Cancel"}).then(e=>L.delete(`/openc3-api/tables/${this.filename}`,{data:{}})).then(e=>{this.tables=[],this.filename="",this.definitionFilename=""}).catch(e=>{})},downloadBinary:function(e=null){const t=new FormData;t.append("binary",this.filename),t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),L.post("/openc3-api/tables/binary",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=window.atob(n.data.contents),i=new Uint8Array(r.length);for(let a=0;a<r.length;++a)i[a]=r.charCodeAt(a);const s=new Blob([i],{type:"application/octet-stream"}),o=document.createElement("a");o.href=URL.createObjectURL(s),o.setAttribute("download",n.data.filename),o.click()})},downloadDefinition:function(e=null){const t=new FormData;t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),L.post("/openc3-api/tables/definition",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=new Blob([n.data.contents],{type:"text/plain"}),i=document.createElement("a");i.href=URL.createObjectURL(r),i.setAttribute("download",n.data.filename),i.click()})},downloadReport:function(e=null){const t=new FormData;t.append("binary",this.filename),t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),L.post("/openc3-api/tables/report",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=`Binary: ${this.filename}
|
11
11
|
Definition: ${this.definitionFilename}
|
12
12
|
|
13
|
-
`,i=new Blob([r,n.data.contents],{type:"text/plain"}),
|
13
|
+
`,i=new Blob([r,n.data.contents],{type:"text/plain"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",n.data.filename),s.click()})},upload(){L.post(`/script-api/scripts/${this.uploadScript}/run`,{data:{environment:[{key:"TBL_FILENAME",value:this.filename}]}}).then(e=>{this.scriptBackground!==!0&&window.open(`/tools/scriptrunner/${e.data}`,"_blank")})},download(){this.$dialog.confirm(`Are you sure you want to overwrite ${this.filename}? You can Save As to create a new file and then Download to preserve the existing file. Note: Once the download completes you will need to re-open the file to see changes.`,{okText:"Download (Overwrite!)",cancelText:"Cancel"}).then(()=>{L.post(`/script-api/scripts/${this.downloadScript}/run`,{data:{environment:[{key:"TBL_FILENAME",value:this.filename}]}}).then(e=>{this.scriptBackground!==!0&&window.open(`/tools/scriptrunner/${e.data}`,"_blank")})}).catch(e=>{})},confirmLocalUnlock:function(){this.$dialog.confirm("Are you sure you want to unlock this file for editing? If another user is editing this file, your changes might conflict with each other.",{okText:"Force Unlock",cancelText:"Cancel"}).then(()=>(this.lockedBy=null,this.lockFile()))},lockFile:function(){return L.post(`/openc3-api/tables/${this.filename}/lock`)},unlockFile:function(){this.filename!==""&&!this.readOnly&&L.post(`/openc3-api/tables/${this.filename}/unlock`)},getDefinition:function(e=null){e||(e=this.filename.replace("/bin/","/config/").replace(".bin","_def.txt")),this.tables=[];const t=new FormData;t.append("binary",this.filename),t.append("definition",e),L.post("/openc3-api/tables/load",{data:t,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((i,s)=>{const o={title:i,filterable:i!=="INDEX"};return r.numColumns===1?{...o,value:`[0].${i.toLowerCase()}`}:{...o,value:`[${s}].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 ${e} 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(e){const t=new FormData;t.append("definition",e),L.post("/openc3-api/tables/generate",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{this.filename=n.data.filename,this.getDefinition(e)})},onChange:function(e,{index:t,event:n}){this.fileModified="*",e[t].value=n}}},ls={style:{position:"absolute"},class:"ma-3"};function cs(e,t,n,r,i,s){const o=_("top-bar"),a=_("v-file-input"),c=_("v-text-field"),u=_("v-col"),d=_("v-row"),f=_("v-icon"),b=_("v-btn"),p=_("v-checkbox-btn"),x=_("v-tooltip"),g=_("v-card-text"),R=_("v-spacer"),k=_("v-card-title"),T=_("v-tab"),$=_("v-tabs"),W=_("table-row"),v=_("v-data-table"),P=_("v-tabs-window-item"),D=_("v-tabs-window"),z=_("v-card"),Y=_("file-open-save-dialog"),rt=_("simple-text-dialog");return y(),j("div",null,[m(o,{menus:s.menus,title:i.title},null,8,["menus","title"]),m(a,{ref:"fileInput",modelValue:i.fileInput,"onUpdate:modelValue":t[0]||(t[0]=w=>i.fileInput=w),"show-size":"",accept:".bin","data-test":"file-input",style:{position:"fixed",top:"-100%"}},null,8,["modelValue"]),m(z,null,{default:h(()=>[m(g,null,{default:h(()=>[m(d,{dense:""},{default:h(()=>[m(u,{cols:"6"},{default:h(()=>[m(c,{id:"filename",modelValue:s.fullFilename,"onUpdate:modelValue":t[1]||(t[1]=w=>s.fullFilename=w),variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Filename",class:"filename","data-test":"filename"},null,8,["modelValue"])]),_:1}),m(u,{cols:"6"},{default:h(()=>[m(c,{id:"definition-filename",modelValue:i.definitionFilename,"onUpdate:modelValue":t[2]||(t[2]=w=>i.definitionFilename=w),variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Definition",class:"filename","data-test":"definition-filename"},null,8,["modelValue"])]),_:1})]),_:1}),m(d,{dense:""},{default:h(()=>[m(u,{cols:"auto",class:"mr-auto"},{default:h(()=>[t[25]||(t[25]=U("span",{class:"text-body-1 ma-2"},"File Download:",-1)),m(b,{dense:"",color:"primary",class:"mr-3",disabled:i.filename=="","data-test":"download-file-binary",onClick:t[3]||(t[3]=w=>s.downloadBinary(null))},{default:h(()=>[t[20]||(t[20]=A(" Binary ")),m(f,{end:"",theme:"dark"},{default:h(()=>t[19]||(t[19]=[A(" mdi-file-code ")])),_:1})]),_:1},8,["disabled"]),m(b,{dense:"",color:"primary",class:"mr-3",disabled:i.filename=="","data-test":"download-file-definition",onClick:t[4]||(t[4]=w=>s.downloadDefinition(null))},{default:h(()=>[t[22]||(t[22]=A(" Definition ")),m(f,{end:"",theme:"dark"},{default:h(()=>t[21]||(t[21]=[A(" mdi-file-document-edit ")])),_:1})]),_:1},8,["disabled"]),m(b,{dense:"",color:"primary",disabled:i.filename=="","data-test":"download-file-report",onClick:t[5]||(t[5]=w=>s.downloadReport(null))},{default:h(()=>[t[24]||(t[24]=A(" Report ")),m(f,{end:"",theme:"dark"},{default:h(()=>t[23]||(t[23]=[A(" mdi-file-document ")])),_:1})]),_:1},8,["disabled"])]),_:1}),m(u,{cols:"auto"},{default:h(()=>[m(b,{dense:"",color:"primary",disabled:!i.uploadScript,"data-test":"upload-file",onClick:t[6]||(t[6]=w=>s.upload())},{default:h(()=>[t[27]||(t[27]=A(" Upload ")),m(f,{end:"",theme:"dark"},{default:h(()=>t[26]||(t[26]=[A(" mdi-file-upload ")])),_:1})]),_:1},8,["disabled"])]),_:1}),m(u,{cols:"auto"},{default:h(()=>[m(b,{dense:"",color:"primary",disabled:!i.downloadScript,"data-test":"download-file",onClick:t[7]||(t[7]=w=>s.download())},{default:h(()=>[t[29]||(t[29]=A(" Download ")),m(f,{end:"",theme:"dark"},{default:h(()=>t[28]||(t[28]=[A(" mdi-file-download ")])),_:1})]),_:1},8,["disabled"])]),_:1}),m(u,{cols:"auto"},{default:h(()=>[m(x,{"open-delay":600,location:"top"},{activator:h(({props:w})=>[U("span",ut(dt(w)),[m(p,{modelValue:i.scriptBackground,"onUpdate:modelValue":t[8]||(t[8]=ne=>i.scriptBackground=ne),label:"B/G",class:"shrink mt-0","data-test":"upload-background"},null,8,["modelValue"])],16)]),default:h(()=>[t[30]||(t[30]=U("span",null,"Run upload download scripts in the background",-1))]),_:1})]),_:1})]),_:1})]),_:1}),m(k,{class:"d-flex align-center"},{default:h(()=>[t[31]||(t[31]=A(" Items ")),m(R),m(c,{modelValue:i.search,"onUpdate:modelValue":t[9]||(t[9]=w=>i.search=w),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),(y(),O($,{key:`v-tabs_${i.tables.length}`,modelValue:i.curTab,"onUpdate:modelValue":t[10]||(t[10]=w=>i.curTab=w)},{default:h(()=>[(y(!0),j(J,null,K(i.tables,(w,ne)=>(y(),O(T,{key:ne},{default:h(()=>[A(F(w.name),1)]),_:2},1024))),128))]),_:1},8,["modelValue"])),(y(),O(D,{key:`v-tabs-window_${i.tables.length}`,modelValue:i.curTab,"onUpdate:modelValue":t[11]||(t[11]=w=>i.curTab=w)},{default:h(()=>[(y(!0),j(J,null,K(i.tables,(w,ne)=>(y(),O(P,{key:`${i.filename}${ne}`},{default:h(()=>[m(v,{headers:w.headers,items:w.rows,search:i.search,"items-per-page":20,"items-per-page-options":[10,20,50,100,-1],"multi-sort":"",density:"compact","data-test":w.name},ge({item:h(({item:B})=>[(y(),O(W,{key:B[0].name,items:B,onChange:le(S=>s.onChange(B,S),["self"])},null,8,["items","onChange"]))]),_:2},[i.tables.length>1?{name:"tfoot",fn:h(()=>[U("div",ls,[t[38]||(t[38]=U("span",{class:"text-body-1 mr-3"},"Table Download:",-1)),m(b,{dense:"",color:"primary",class:"mr-3",disabled:i.filename=="","data-test":"download-table-binary",onClick:B=>s.downloadBinary(w.name)},{default:h(()=>[t[33]||(t[33]=A(" Binary ")),m(f,{end:"",theme:"dark"},{default:h(()=>t[32]||(t[32]=[A(" mdi-file-code ")])),_:1})]),_:2},1032,["disabled","onClick"]),m(b,{dense:"",color:"primary",class:"mr-3",disabled:i.filename=="","data-test":"download-table-definition",onClick:B=>s.downloadDefinition(w.name)},{default:h(()=>[t[35]||(t[35]=A(" Definition ")),m(f,{end:"",theme:"dark"},{default:h(()=>t[34]||(t[34]=[A(" mdi-file-document-edit ")])),_:1})]),_:2},1032,["disabled","onClick"]),m(b,{dense:"",color:"primary",disabled:i.filename=="","data-test":"download-table-report",onClick:B=>s.downloadReport(w.name)},{default:h(()=>[t[37]||(t[37]=A(" Report ")),m(f,{end:"",theme:"dark"},{default:h(()=>t[36]||(t[36]=[A(" mdi-file-document ")])),_:1})]),_:2},1032,["disabled","onClick"])])]),key:"0"}:void 0]),1032,["headers","items","search","data-test"])]),_:2},1024))),128))]),_:1},8,["modelValue"]))]),_:1}),i.fileOpen?(y(),O(Y,{key:0,modelValue:i.fileOpen,"onUpdate:modelValue":t[12]||(t[12]=w=>i.fileOpen=w),type:"open","api-url":"/openc3-api/tables",onFile:t[13]||(t[13]=w=>s.setFile(w)),onError:t[14]||(t[14]=w=>s.setError(w))},null,8,["modelValue"])):G("",!0),i.showSaveAs?(y(),O(Y,{key:1,modelValue:i.showSaveAs,"onUpdate:modelValue":t[15]||(t[15]=w=>i.showSaveAs=w),type:"save","require-target-parent-dir":"","api-url":"/openc3-api/tables","input-filename":i.filename,onFilename:t[16]||(t[16]=w=>s.saveAsFilename(w)),onError:t[17]||(t[17]=w=>s.setError(w))},null,8,["modelValue","input-filename"])):G("",!0),m(rt,{modelValue:i.showError,"onUpdate:modelValue":t[18]||(t[18]=w=>i.showError=w),title:i.errorTitle,text:i.errorText},null,8,["modelValue","title","text"])])}const Ts=ln("default",me(as,[["render",cs],["__scopeId","data-v-2eb6d698"]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-279653f46b53f343c047.js","vue","./DetailsDialog-OMd7LWdZ-6793bb09f52fa1e341d0.js","single-spa","./VWidget-BlF_o-7Z-a2e44594f387cb0ae535.js","vue-router","vuex","vuetify","./Widget-cmJ76_g1-4f3fd88274b624631d35.js"],function(y,N){"use strict";var c,a,r,s,n,u,d,l,m,h,g,p,v,x,f,w;return{setters:[e=>{c=e.d},e=>{a=e.resolveComponent,r=e.createElementBlock,s=e.openBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,h=e.renderList,g=e.createBlock,p=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{f=e.P},null,e=>{w=e.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,o,E,j,F,k){const _=a("v-textarea"),D=a("v-list-item-title"),S=a("v-list-item"),B=a("v-list"),M=a("v-menu"),z=a("details-dialog");return s(),r("div",C,[n(_,{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(M,{modelValue:t.contextMenuShown,"onUpdate:modelValue":o[0]||(o[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(B,null,{default:l(()=>[(s(!0),r(m,null,h(t.contextMenuOptions,(i,L)=>(s(),g(S,{key:L,onClick:p(i.action,["stop"])},{default:l(()=>[n(D,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(z,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":o[1]||(o[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 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-cmJ76_g1-4f3fd88274b624631d35.js","vue","./main-279653f46b53f343c047.js","vue-router","single-spa","vuex","vuetify"],function(i,h){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.createBlock,s=e.openBlock,a=e.normalizeStyle},e=>{o=e.d},null,null,null,null],execute:function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,r,y,f,u,g){const m=l("v-text-field");return s(),n(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",o(e,[["render",c]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-cmJ76_g1-4f3fd88274b624631d35.js","./main-279653f46b53f343c047.js","vue","vue-router","single-spa","vuex","vuetify"],function(m,y){"use strict";var l,i,n,a,r,s,o;return{setters:[e=>{l=e.o},e=>{i=e.d,n=e.R},e=>{a=e.resolveComponent,r=e.createBlock,s=e.openBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function c(d,u,f,v,t,b){const h=a("v-text-field");return s(),r(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=p=>t.timeValue=p),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const V=m("default",i(e,[["render",c]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-cmJ76_g1-4f3fd88274b624631d35.js","vue","./main-279653f46b53f343c047.js","vue-router","single-spa","vuex","vuetify"],function(a,m){"use strict";var t,r,n,l,o,s;return{setters:[e=>{t=e.o},e=>{r=e.createElementBlock,n=e.openBlock,l=e.normalizeStyle,o=e.toDisplayString},e=>{s=e.d},null,null,null,null],execute:function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function i(c,d,f,g,x,u){return n(),r("div",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},o(u.labelText),5)}const p=a("default",s(e,[["render",i]]))}}});
|