openc3-cosmos-tool-cmdtlmserver 6.2.1 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/cmdtlmserver/{ArrayWidget-BxEO5hEG-89ca0a2e546d77657dd9.js → ArrayWidget-BbsN1dzF-ee2cfc7dad123cfaccf5.js} +2 -2
- data/tools/cmdtlmserver/{ArrayplotWidget-B_VPoV4v-7b820a5e88bad1425d1c.js → ArrayplotWidget-CCKEyYIx-a00019e86008704efc46.js} +1 -1
- data/tools/cmdtlmserver/{BarColumn-C9dkpg2O-7723dc0faa77b237d7f9.js → BarColumn-C6p07yWK-a95a551de7a97b26a986.js} +1 -1
- data/tools/cmdtlmserver/BlockWidget-DlCHbqZX-c390667024b5d4780d6b.js +2 -0
- data/tools/cmdtlmserver/{ButtonWidget-B6HM0Doo-ce7e70aebc6509184e26.js → ButtonWidget-CtfJzCBR-9a325bb9d73eea161bde.js} +2 -2
- data/tools/cmdtlmserver/{CanvasWidget-DZQGG-yQ-6864bab874dccb2db67c.js → CanvasWidget-CqRlXc4r-fecb24efdf6f68a33ad2.js} +1 -1
- data/tools/cmdtlmserver/CanvasdotWidget--Xr_KsZs-840bf70c26d7888f4d66.js +1 -0
- data/tools/cmdtlmserver/{CanvasimageWidget-mhcPpAuN-441a8a40b76b47f0e9dd.js → CanvasimageWidget-BPlj5QYK-148404626d26f39ae7a4.js} +1 -1
- data/tools/cmdtlmserver/{CanvasimagevalueWidget-Cx-dH8Gc-c505d808df433d5fd979.js → CanvasimagevalueWidget-DVFGLt8f-228223ab8bc7ab0b61c6.js} +1 -1
- data/tools/cmdtlmserver/CanvaslabelWidget-CYNqmyP0-c9c9beb56e22552527cb.js +1 -0
- data/tools/cmdtlmserver/{CanvaslabelvalueWidget-CwmYDCjr-aca636f4d86f04fc6120.js → CanvaslabelvalueWidget-B7yIDmsn-725d0c4e2daf6bda08ec.js} +1 -1
- data/tools/cmdtlmserver/CanvaslineWidget-BICdxX0Q-7c180d081ca1a967d997.js +1 -0
- data/tools/cmdtlmserver/{CanvaslinevalueWidget-C3sJnjLQ-c20af62fc101f2e6d9e7.js → CanvaslinevalueWidget-Cq-Ddh0P-bdf272b782303e2bc8bb.js} +1 -1
- data/tools/cmdtlmserver/CheckbuttonWidget-B74AWeaW-de22da2f691ae5858bbf.js +1 -0
- data/tools/cmdtlmserver/{CmdPacketsTab-543bcdcded38905596c1.js → CmdPacketsTab-8938018b2c20935a31ff.js} +1 -1
- data/tools/cmdtlmserver/{CmdTlmServer-c5e0c27cd668cb4acdd2.js → CmdTlmServer-3100bab0f78a7952a5f1.js} +2 -2
- data/tools/cmdtlmserver/ComboboxWidget-CtyKbEWb-7925168021879bcae865.js +1 -0
- data/tools/cmdtlmserver/DateWidget-BEVSczU8-95d14f0b9ce5fc0b69a3.js +1 -0
- data/tools/cmdtlmserver/{DetailsDialog-BvbziA7Y-a6d191d4c24ae44227f5.js → DetailsDialog-DmEC5BTs-ae29c74b5a12a811ab58.js} +1 -1
- data/tools/cmdtlmserver/{DynamicWidget-gFSYxzvT-5b7c1448f53e03ca3e91.js → DynamicWidget-CfMtj7H8-dda9e71246a61119ef51.js} +1 -1
- data/tools/cmdtlmserver/{FormatvalueWidget-CGpnTqVH-5a4cac76beeee76398b5.js → FormatvalueWidget-DN12xymS-312eedcf339bb3a361e8.js} +1 -1
- data/tools/cmdtlmserver/Graph-Bgo0cjl3-34cca1d79d056287c70c.js +1 -0
- data/tools/cmdtlmserver/{GraphWidget-Dycey-mj-d4aa575ef98087670b47.js → GraphWidget-DurWDmpg-1d3f53de02fa1378a1c8.js} +1 -1
- data/tools/cmdtlmserver/{HorizontalWidget-D31NRWy5-567abe97366db941d1d0.js → HorizontalWidget-Cd_wl1b3-b4a1220511cbad208895.js} +1 -1
- data/tools/cmdtlmserver/HorizontalboxWidget-BcMTFBU--ebe35d30ef1038d848e8.js +1 -0
- data/tools/cmdtlmserver/HorizontallineWidget-CXFqHclf-fa0e898fc84d1495ab9f.js +1 -0
- data/tools/cmdtlmserver/{IframeWidget-Ctj8OIcG-8eb7274680df97862be9.js → IframeWidget-BPerHCCa-89189a6be7985eb8e47b.js} +1 -1
- data/tools/cmdtlmserver/{ImageLoader-BrNrCBvi-c56dfbfda95fe546284c.js → ImageLoader-4N-7Gj61-e6e724f54c4470cc6855.js} +1 -1
- data/tools/cmdtlmserver/ImageviewerWidget-Cw_H_HmZ-79d50f4df25f701d60c0.js +1 -0
- data/tools/cmdtlmserver/InterfacesTab-2d486c0457a95cc3e028.js +1 -0
- data/tools/cmdtlmserver/{LabelWidget-t7I87dp7-c8e7d564e904105dba56.js → LabelWidget-xrmcVeq8-870ee165781b2cf65c51.js} +1 -1
- data/tools/cmdtlmserver/LabelledWidget-D48QoyMk-8ef3423e6396375a66e4.js +1 -0
- data/tools/cmdtlmserver/LabelprogressbarWidget-C_950t6g-2936a8a5b4b14474e12e.js +1 -0
- data/tools/cmdtlmserver/LabelsparklineWidget-0KXQyPoU-da36e09f571b80924e16.js +1 -0
- data/tools/cmdtlmserver/{LabelvalueWidget-Zx_yHCtl-761beda3ba9005900e83.js → LabelvalueWidget-CQ06wWDK-1796e7cae5e984c98aaf.js} +1 -1
- data/tools/cmdtlmserver/{LabelvaluedescWidget-BBSBh4vI-7930a82f5e07d7ac49ee.js → LabelvaluedescWidget-Bo8zT01X-80efb25b4bedad034d9d.js} +1 -1
- data/tools/cmdtlmserver/{LabelvaluelimitsbarWidget-CZueHYWG-24b90c24e80fd1a209b0.js → LabelvaluelimitsbarWidget-BucTw8Yk-3294f1f5165c95dd609e.js} +1 -1
- data/tools/cmdtlmserver/LabelvaluelimitscolumnWidget-Dflb1hNd-a115105dee00eafa5323.js +1 -0
- data/tools/cmdtlmserver/{LabelvaluerangebarWidget-BhYTBgDq-f7d7ee8128f9058ef8c3.js → LabelvaluerangebarWidget-D8cbfXFM-ed365f14f0ddd33fc1ee.js} +1 -1
- data/tools/cmdtlmserver/{Layout-Bh7VzCZd-dcb9c3641454e6c67c47.js → Layout-Tf--nruw-77595e15c57a061b0dba.js} +1 -1
- data/tools/cmdtlmserver/LedWidget-qH_FthkK-1cfbae497162dcc3aefa.js +1 -0
- data/tools/cmdtlmserver/{LimitsbarWidget-Djui0IpK-c1dec25b5074f46c266b.js → LimitsbarWidget-B9lAB2RD-ba9cf8359583cfe6eeb1.js} +1 -1
- data/tools/cmdtlmserver/{LimitscolorWidget-DdmvKzmx-6cf2a6f3dc4493ea0ef5.js → LimitscolorWidget-c6Qa6su7-87921f3fb3e7afc5de79.js} +1 -1
- data/tools/cmdtlmserver/{LimitscolumnWidget-Cc19IEjq-bc58d443d9a79a05718e.js → LimitscolumnWidget-CcLs_443-604b2033bbe5db32cec6.js} +1 -1
- data/tools/cmdtlmserver/LinegraphWidget-BSVYLFo1-e8a98958fba9fb2e2fb9.js +1 -0
- data/tools/cmdtlmserver/MatrixbycolumnsWidget-DXFpZTre-67f734ae3f31f19eb2a0.js +1 -0
- data/tools/cmdtlmserver/{ProgressbarWidget-DIfqhHRE-aebd8d5a762deda63d9c.js → ProgressbarWidget-iYGw8-Dc-ebd0bd2f7dd1a5a808fc.js} +1 -1
- data/tools/cmdtlmserver/RadiobuttonWidget-ytmoVZ3u-3a28b6b2ee47bb71a55d.js +1 -0
- data/tools/cmdtlmserver/{RadiogroupWidget-Ci9sCX39-db829f94bee5140bb9cc.js → RadiogroupWidget-CusMBhKH-2ab564c7e2c5bd9ce708.js} +1 -1
- data/tools/cmdtlmserver/{RangebarWidget-CN0YuHqy-9b49a64ed4d1a23e9fa2.js → RangebarWidget-D_zGTtCa-8bfd7bef4ad63b9af243.js} +1 -1
- data/tools/cmdtlmserver/{RawDialog-2b725610c629b9879bac.js → RawDialog-9d64be002d16366306d0.js} +1 -1
- data/tools/cmdtlmserver/{RollupWidget-y4jBtJB2-2fa7012d1e3c1cc9a765.js → RollupWidget-Dolsixyt-64fd8c2e5990b362afb3.js} +1 -1
- data/tools/cmdtlmserver/{RoutersTab-97a4ce9897517bb6bde4.js → RoutersTab-12cdceede3476c777ebf.js} +1 -1
- data/tools/cmdtlmserver/ScrollwindowWidget-DV2nZuNi-622615ed3b3c3be199a7.js +1 -0
- data/tools/cmdtlmserver/{SignalWidget-DQ5Uc2uV-864549b10d055bc6c168.js → SignalWidget-d9-6h85k-6fb4be9567110de7f7f2.js} +1 -1
- data/tools/cmdtlmserver/SpacerWidget-BH0p2OLi-d2bd2a8e1f0b4014a44f.js +1 -0
- data/tools/cmdtlmserver/{SparklineWidget-CZtvu2ss-a652a442fd625a97a9b0.js → SparklineWidget-coxi9r2g-93d3a65c88c064975334.js} +1 -1
- data/tools/cmdtlmserver/{StatusTab-ebf6453fac33bf59a564.js → StatusTab-84eda227fff2c85ad6b1.js} +1 -1
- data/tools/cmdtlmserver/TabbookWidget-B1XKplGH-e22ec8d6a5c838c7c5fd.js +1 -0
- data/tools/cmdtlmserver/{TargetsTab-ae3381cde4d9b22a9272.js → TargetsTab-e4763d63ea20379aa310.js} +1 -1
- data/tools/cmdtlmserver/TextboxWidget-C-_M2M4l-e87fb9cd37972bf5d25b.js +1 -0
- data/tools/cmdtlmserver/{TextfieldWidget-Df0ANSiU-a45885e9c031fa702946.js → TextfieldWidget-C08N4JE8-1068f0ee1d4002e54079.js} +1 -1
- data/tools/cmdtlmserver/TimeWidget-DtwdEcFg-5a3bc19e8ab2a1804ae7.js +1 -0
- data/tools/cmdtlmserver/TitleWidget-CT-aLcNb-f05601921aa733b9911e.js +1 -0
- data/tools/cmdtlmserver/{TlmPacketsTab-60429ad30f45f45c7ac9.js → TlmPacketsTab-e5b98e3e4c15475a7a17.js} +1 -1
- data/tools/cmdtlmserver/{Updater-82fa1a354a9721098906.js → Updater-30365f17f9b4eb94ca1e.js} +1 -1
- data/tools/cmdtlmserver/{VWidget-C4spAawK-e7dee3c34a6d790327ec.js → VWidget-DQqb7NVW-4602918435743a49de41.js} +1 -1
- data/tools/cmdtlmserver/ValueWidget-C6RanBj3-1821aa6088bd82d581f4.js +1 -0
- data/tools/cmdtlmserver/ValuelimitsbarWidget-B3bvjfxc-4f2349bfcb30c31119c1.js +1 -0
- data/tools/cmdtlmserver/ValuelimitscolumnWidget-QvhI6EcE-b0440ffbb0b94727592e.js +1 -0
- data/tools/cmdtlmserver/ValuerangebarWidget-Dt3K9BnC-5a6ec326052278b4ed3d.js +1 -0
- data/tools/cmdtlmserver/{VerticalWidget-D8jUFxjS-dc1f1f22baae1b1bf9ee.js → VerticalWidget-BIIViZgI-3d41ce14c58d12499a92.js} +1 -1
- data/tools/cmdtlmserver/VerticalboxWidget-DY72fLHW-f459428e4aed8df3e9d9.js +1 -0
- data/tools/cmdtlmserver/{Widget-fRCERxGf-6cf6e886d2d5ee76cfc6.js → Widget-oyqWpFXJ-18d727bbb6fbb5d9c2da.js} +1 -1
- data/tools/cmdtlmserver/main-3edbee545cea57a5f76d.js +1499 -0
- data/tools/cmdtlmserver/main.js +1 -1
- data/tools/cmdtlmserver/services-61aec8b87d81fdbc4b64.js +7 -0
- metadata +79 -82
- data/tools/cmdtlmserver/BlockWidget-CuefOin6-edc80607b7a1d528f5e3.js +0 -2
- data/tools/cmdtlmserver/CanvasdotWidget-6wuCSnw_-e0f154be630a0c8394bc.js +0 -1
- data/tools/cmdtlmserver/CanvaslabelWidget-CQZCeohU-85c23c2118739625a3a1.js +0 -1
- data/tools/cmdtlmserver/CanvaslineWidget-nTP3fJB4-78e605105cd357f98670.js +0 -1
- data/tools/cmdtlmserver/CheckbuttonWidget-5-8YDsQL-e19c2b901eae43feeb7c.js +0 -1
- data/tools/cmdtlmserver/ComboboxWidget-DzBL8h9f-d1afd3d09dbb57142156.js +0 -1
- data/tools/cmdtlmserver/DateWidget-CW7Od7lB-14c75cebe909660c92a6.js +0 -1
- data/tools/cmdtlmserver/Graph-3rkhFP3G-b8db0cdb9ecf80ac5155.js +0 -1
- data/tools/cmdtlmserver/HorizontalboxWidget-Br8dSVHD-7c9a14b981c6d7631921.js +0 -1
- data/tools/cmdtlmserver/HorizontallineWidget-CbxREBYI-cd6486b6aeb6fbdd102b.js +0 -1
- data/tools/cmdtlmserver/ImageviewerWidget-XrsqxmLo-e5e72a6a85a49cb007ad.js +0 -1
- data/tools/cmdtlmserver/InterfacesTab-5fe4b0f137ffde75f928.js +0 -1
- data/tools/cmdtlmserver/LabelledWidget-C7TDf92M-e5c2e34c391a4721e565.js +0 -1
- data/tools/cmdtlmserver/LabelprogressbarWidget-wwLURt1u-c12f252a4577e90e8ba4.js +0 -1
- data/tools/cmdtlmserver/LabelsparklineWidget-B3awLUyP-dafc251f2886e5de7219.js +0 -1
- data/tools/cmdtlmserver/LabelvaluelimitscolumnWidget-BTvzyQMq-8ef478f7a9ed47139a9b.js +0 -1
- data/tools/cmdtlmserver/LedWidget-CxJjJBBS-71046e57b3786c5a7889.js +0 -1
- data/tools/cmdtlmserver/LinegraphWidget-BtieJxeL-be15f3c0e6a500ecc463.js +0 -1
- data/tools/cmdtlmserver/MatrixbycolumnsWidget-DnExVRF8-4a69d3f7ece972d3f5e2.js +0 -1
- data/tools/cmdtlmserver/RadiobuttonWidget-QzIkNP7m-300018a2418b2cbe7f09.js +0 -1
- data/tools/cmdtlmserver/ScrollwindowWidget-CBzYk4Y3-48abadd8da946b6c65a5.js +0 -1
- data/tools/cmdtlmserver/SpacerWidget-6rsc_dSM-4c67a06ee2036a93075a.js +0 -1
- data/tools/cmdtlmserver/TabbookWidget-DNALU0jl-ae79a3b9beef34b7efde.js +0 -1
- data/tools/cmdtlmserver/TextboxWidget-5hqPj74D-292f2786815b2027f6e6.js +0 -1
- data/tools/cmdtlmserver/TimeWidget-C6XQMUG2-fa62efc8fea7b7a08ccc.js +0 -1
- data/tools/cmdtlmserver/TitleWidget-B9SPUlbW-55092f64413a6ce5551d.js +0 -1
- data/tools/cmdtlmserver/ValueWidget-D4RrYVEK-c90078a7e58747e8aa55.js +0 -1
- data/tools/cmdtlmserver/ValuelimitsbarWidget-Bc9_Vj_f-b088c7ef6cd4bf20f55e.js +0 -1
- data/tools/cmdtlmserver/ValuelimitscolumnWidget-DHKIL7sf-72a766dafcef2f6c4767.js +0 -1
- data/tools/cmdtlmserver/ValuerangebarWidget-CecQRIok-5cef01f82763ccf9350a.js +0 -1
- data/tools/cmdtlmserver/VerticalboxWidget-B4eGUSYH-24dd29d0e54de2ba61eb.js +0 -1
- data/tools/cmdtlmserver/main-4bad43bda3e8a8483ba9.js +0 -1423
- data/tools/cmdtlmserver/services-6c036365da68dd4327ff.js +0 -7
data/tools/cmdtlmserver/main.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
System.register(["vue","./main-
|
1
|
+
System.register(["vue","./main-3edbee545cea57a5f76d.js","vue-router","single-spa","vuex","vuetify"],function(e,t){"use strict";return{setters:[null,u=>{e({bootstrap:u.e,mount:u.f,unmount:u.u})},null,null,null,null],execute:function(){}}});
|
@@ -0,0 +1,7 @@
|
|
1
|
+
System.register([],function(we,zs){"use strict";return{execute:function(){var Kt=Object.defineProperty,Xt=(t,e,n)=>e in t?Kt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,re=(t,e,n)=>Xt(t,typeof e!="symbol"?e+"":e,n);function He(t,e){return function(){return t.apply(e,arguments)}}const{toString:Gt}=Object.prototype,{getPrototypeOf:ve}=Object,se=(t=>e=>{const n=Gt.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),k=t=>(t=t.toLowerCase(),e=>se(e)===t),ie=t=>e=>typeof e===t,{isArray:W}=Array,X=ie("undefined");function Qt(t){return t!==null&&!X(t)&&t.constructor!==null&&!X(t.constructor)&&C(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ve=k("ArrayBuffer");function Yt(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ve(t.buffer),e}const Zt=ie("string"),C=ie("function"),Ke=ie("number"),oe=t=>t!==null&&typeof t=="object",en=t=>t===!0||t===!1,ce=t=>{if(se(t)!=="object")return!1;const e=ve(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},tn=k("Date"),nn=k("File"),rn=k("Blob"),sn=k("FileList"),on=t=>oe(t)&&C(t.pipe),cn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||C(t.append)&&((e=se(t))==="formdata"||e==="object"&&C(t.toString)&&t.toString()==="[object FormData]"))},an=k("URLSearchParams"),[ln,un,hn,dn]=["ReadableStream","Request","Response","Headers"].map(k),fn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function G(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),W(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let c;for(r=0;r<o;r++)c=i[r],e.call(null,t[c],c,t)}}function Xe(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const $=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ge=t=>!X(t)&&t!==$;function Se(){const{caseless:t}=Ge(this)&&this||{},e={},n=(r,s)=>{const i=t&&Xe(e,s)||s;ce(e[i])&&ce(r)?e[i]=Se(e[i],r):ce(r)?e[i]=Se({},r):W(r)?e[i]=r.slice():e[i]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&G(arguments[r],n);return e}const pn=(t,e,n,{allOwnKeys:r}={})=>(G(e,(s,i)=>{n&&C(s)?t[i]=He(s,n):t[i]=s},{allOwnKeys:r}),t),gn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),mn=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},bn=(t,e,n,r)=>{let s,i,o;const c={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),i=s.length;i-- >0;)o=s[i],(!r||r(o,t,e))&&!c[o]&&(e[o]=t[o],c[o]=!0);t=n!==!1&&ve(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},yn=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},_n=t=>{if(!t)return null;if(W(t))return t;let e=t.length;if(!Ke(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},wn=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ve(Uint8Array)),vn=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const s=r.value;e.call(t,s[0],s[1])}},Sn=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},En=k("HTMLFormElement"),xn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,r){return n.toUpperCase()+r}),Qe=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),On=k("RegExp"),Ye=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};G(n,(s,i)=>{let o;(o=e(s,i,t))!==!1&&(r[i]=o||s)}),Object.defineProperties(t,r)},Rn=t=>{Ye(t,(e,n)=>{if(C(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(C(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},An=(t,e)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return W(t)?r(t):r(String(t).split(e)),n},Cn=()=>{},Tn=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function kn(t){return!!(t&&C(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Pn=t=>{const e=new Array(10),n=(r,s)=>{if(oe(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const i=W(r)?[]:{};return G(r,(o,c)=>{const l=n(o,s+1);!X(l)&&(i[c]=l)}),e[s]=void 0,i}}return r};return n(t,0)},jn=k("AsyncFunction"),Nn=t=>t&&(oe(t)||C(t))&&C(t.then)&&C(t.catch),Ze=((t,e)=>t?setImmediate:e?((n,r)=>($.addEventListener("message",({source:s,data:i})=>{s===$&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),$.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",C($.postMessage)),In=typeof queueMicrotask<"u"?queueMicrotask.bind($):typeof process<"u"&&process.nextTick||Ze,a={isArray:W,isArrayBuffer:Ve,isBuffer:Qt,isFormData:cn,isArrayBufferView:Yt,isString:Zt,isNumber:Ke,isBoolean:en,isObject:oe,isPlainObject:ce,isReadableStream:ln,isRequest:un,isResponse:hn,isHeaders:dn,isUndefined:X,isDate:tn,isFile:nn,isBlob:rn,isRegExp:On,isFunction:C,isStream:on,isURLSearchParams:an,isTypedArray:wn,isFileList:sn,forEach:G,merge:Se,extend:pn,trim:fn,stripBOM:gn,inherits:mn,toFlatObject:bn,kindOf:se,kindOfTest:k,endsWith:yn,toArray:_n,forEachEntry:vn,matchAll:Sn,isHTMLForm:En,hasOwnProperty:Qe,hasOwnProp:Qe,reduceDescriptors:Ye,freezeMethods:Rn,toObjectSet:An,toCamelCase:xn,noop:Cn,toFiniteNumber:Tn,findKey:Xe,global:$,isContextDefined:Ge,isSpecCompliantForm:kn,toJSONObject:Pn,isAsyncFn:jn,isThenable:Nn,setImmediate:Ze,asap:In};function m(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const et=m.prototype,tt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{tt[t]={value:t}}),Object.defineProperties(m,tt),Object.defineProperty(et,"isAxiosError",{value:!0}),m.from=(t,e,n,r,s,i)=>{const o=Object.create(et);return a.toFlatObject(t,o,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),m.call(o,t.message,e,n,r,s),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const Ln=null;function Ee(t){return a.isPlainObject(t)||a.isArray(t)}function nt(t){return a.endsWith(t,"[]")?t.slice(0,-2):t}function rt(t,e,n){return t?t.concat(e).map(function(r,s){return r=nt(r),!n&&s?"["+r+"]":r}).join(n?".":""):e}function Un(t){return a.isArray(t)&&!t.some(Ee)}const Fn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ae(t,e,n){if(!a.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,y){return!a.isUndefined(y[d])});const r=n.metaTokens,s=n.visitor||u,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(e);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(a.isDate(d))return d.toISOString();if(!c&&a.isBlob(d))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?c&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function u(d,y,f){let S=d;if(d&&!f&&typeof d=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&Un(d)||(a.isFileList(d)||a.endsWith(y,"[]"))&&(S=a.toArray(d)))return y=nt(y),S.forEach(function(w,_){!(a.isUndefined(w)||w===null)&&e.append(o===!0?rt([y],_,i):o===null?y:y+"[]",l(w))}),!1}return Ee(d)?!0:(e.append(rt(f,y,i),l(d)),!1)}const h=[],p=Object.assign(Fn,{defaultVisitor:u,convertValue:l,isVisitable:Ee});function g(d,y){if(!a.isUndefined(d)){if(h.indexOf(d)!==-1)throw Error("Circular reference detected in "+y.join("."));h.push(d),a.forEach(d,function(f,S){(!(a.isUndefined(f)||f===null)&&s.call(e,f,a.isString(S)?S.trim():S,y,p))===!0&&g(f,y?y.concat(S):[S])}),h.pop()}}if(!a.isObject(t))throw new TypeError("data must be an object");return g(t),e}function st(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function xe(t,e){this._pairs=[],t&&ae(t,this,e)}const it=xe.prototype;it.append=function(t,e){this._pairs.push([t,e])},it.toString=function(t){const e=t?function(n){return t.call(this,n,st)}:st;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function $n(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ot(t,e,n){if(!e)return t;const r=n&&n.encode||$n;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(e,n):i=a.isURLSearchParams(e)?e.toString():new xe(e,n).toString(r),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class ct{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(n){n!==null&&e(n)})}}const at={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qn=typeof URLSearchParams<"u"?URLSearchParams:xe,Dn=typeof FormData<"u"?FormData:null,Bn=typeof Blob<"u"?Blob:null,Mn={isBrowser:!0,classes:{URLSearchParams:qn,FormData:Dn,Blob:Bn},protocols:["http","https","file","blob","url","data"]},Oe=typeof window<"u"&&typeof document<"u",Re=typeof navigator=="object"&&navigator||void 0,zn=Oe&&(!Re||["ReactNative","NativeScript","NS"].indexOf(Re.product)<0),Jn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Wn=Oe&&window.location.href||"http://localhost",Hn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Oe,hasStandardBrowserEnv:zn,hasStandardBrowserWebWorkerEnv:Jn,navigator:Re,origin:Wn},Symbol.toStringTag,{value:"Module"})),x={...Hn,...Mn};function Vn(t,e){return ae(t,new x.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return x.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Kn(t){return a.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Xn(t){const e={},n=Object.keys(t);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],e[i]=t[i];return e}function lt(t){function e(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),l=i>=n.length;return o=!o&&a.isArray(s)?s.length:o,l?(a.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!c):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),e(n,r,s[o],i)&&a.isArray(s[o])&&(s[o]=Xn(s[o])),!c)}if(a.isFormData(t)&&a.isFunction(t.entries)){const n={};return a.forEachEntry(t,(r,s)=>{e(Kn(r),s,n,0)}),n}return null}function Gn(t,e,n){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Q={transitional:at,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return r?JSON.stringify(lt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Vn(t,this.formSerializer).toString();if((i=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return ae(i?{"files[]":t}:t,o&&new o,this.formSerializer)}}return s||r?(e.setContentType("application/json",!1),Gn(t)):t}],transformResponse:[function(t){const e=this.transitional||Q.transitional,n=e&&e.forcedJSONParsing,r=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!this.responseType||r)){const s=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(i){if(s)throw i.name==="SyntaxError"?m.from(i,m.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:x.classes.FormData,Blob:x.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],t=>{Q.headers[t]={}});const Qn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Yn=t=>{const e={};let n,r,s;return t&&t.split(`
|
2
|
+
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||e[n]&&Qn[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},ut=Symbol("internals");function Y(t){return t&&String(t).trim().toLowerCase()}function le(t){return t===!1||t==null?t:a.isArray(t)?t.map(le):String(t)}function Zn(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const er=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ae(t,e,n,r,s){if(a.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!a.isString(e)){if(a.isString(r))return e.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(e)}}function tr(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function nr(t,e){const n=a.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,i,o){return this[r].call(this,e,s,i,o)},configurable:!0})})}let R=class{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function s(o,c,l){const u=Y(c);if(!u)throw new Error("header name must be a non-empty string");const h=a.findKey(r,u);(!h||r[h]===void 0||l===!0||l===void 0&&r[h]!==!1)&&(r[h||c]=le(o))}const i=(o,c)=>a.forEach(o,(l,u)=>s(l,u,c));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(a.isString(t)&&(t=t.trim())&&!er(t))i(Yn(t),e);else if(a.isHeaders(t))for(const[o,c]of t.entries())s(c,o,n);else t!=null&&s(e,t,n);return this}get(t,e){if(t=Y(t),t){const n=a.findKey(this,t);if(n){const r=this[n];if(!e)return r;if(e===!0)return Zn(r);if(a.isFunction(e))return e.call(this,r,n);if(a.isRegExp(e))return e.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Y(t),t){const n=a.findKey(this,t);return!!(n&&this[n]!==void 0&&(!e||Ae(this,this[n],n,e)))}return!1}delete(t,e){const n=this;let r=!1;function s(i){if(i=Y(i),i){const o=a.findKey(n,i);o&&(!e||Ae(n,n[o],o,e))&&(delete n[o],r=!0)}}return a.isArray(t)?t.forEach(s):s(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const s=e[n];(!t||Ae(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const e=this,n={};return a.forEach(this,(r,s)=>{const i=a.findKey(n,s);if(i){e[i]=le(r),delete e[s];return}const o=t?tr(s):String(s).trim();o!==s&&delete e[s],e[o]=le(r),n[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return a.forEach(this,(n,r)=>{n!=null&&n!==!1&&(e[r]=t&&a.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(r=>n.set(r)),n}static accessor(t){const e=(this[ut]=this[ut]={accessors:{}}).accessors,n=this.prototype;function r(s){const i=Y(s);e[i]||(nr(n,s),e[i]=!0)}return a.isArray(t)?t.forEach(r):r(t),this}};R.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(R.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),a.freezeMethods(R);function Ce(t,e){const n=this||Q,r=e||n,s=R.from(r.headers);let i=r.data;return a.forEach(t,function(o){i=o.call(n,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function ht(t){return!!(t&&t.__CANCEL__)}function H(t,e,n){m.call(this,t??"canceled",m.ERR_CANCELED,e,n),this.name="CanceledError"}a.inherits(H,m,{__CANCEL__:!0});function dt(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rr(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function sr(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,i=0,o;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),u=r[i];o||(o=l),n[s]=c,r[s]=l;let h=i,p=0;for(;h!==s;)p+=n[h++],h=h%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),l-o<e)return;const g=u&&l-u;return g?Math.round(p*1e3/g):void 0}}function ir(t,e){let n=0,r=1e3/e,s,i;const o=(c,l=Date.now())=>{n=l,s=null,i&&(clearTimeout(i),i=null),t.apply(null,c)};return[(...c)=>{const l=Date.now(),u=l-n;u>=r?o(c,l):(s=c,i||(i=setTimeout(()=>{i=null,o(s)},r-u)))},()=>s&&o(s)]}const ue=(t,e,n=3)=>{let r=0;const s=sr(50,250);return ir(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,l=o-r,u=s(l),h=o<=c;r=o;const p={loaded:o,total:c,progress:c?o/c:void 0,bytes:l,rate:u||void 0,estimated:u&&c&&h?(c-o)/u:void 0,event:i,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(p)},n)},ft=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},pt=t=>(...e)=>a.asap(()=>t(...e)),or=x.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,x.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(x.origin),x.navigator&&/(msie|trident)/i.test(x.navigator.userAgent)):()=>!0,cr=x.hasStandardBrowserEnv?{write(t,e,n,r,s,i){const o=[t+"="+encodeURIComponent(e)];a.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),a.isString(r)&&o.push("path="+r),a.isString(s)&&o.push("domain="+s),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ar(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function lr(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function gt(t,e,n){let r=!ar(e);return t&&(r||n==!1)?lr(t,e):e}const mt=t=>t instanceof R?{...t}:t;function q(t,e){e=e||{};const n={};function r(u,h,p,g){return a.isPlainObject(u)&&a.isPlainObject(h)?a.merge.call({caseless:g},u,h):a.isPlainObject(h)?a.merge({},h):a.isArray(h)?h.slice():h}function s(u,h,p,g){if(a.isUndefined(h)){if(!a.isUndefined(u))return r(void 0,u,p,g)}else return r(u,h,p,g)}function i(u,h){if(!a.isUndefined(h))return r(void 0,h)}function o(u,h){if(a.isUndefined(h)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function c(u,h,p){if(p in e)return r(u,h);if(p in t)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(u,h,p)=>s(mt(u),mt(h),p,!0)};return a.forEach(Object.keys(Object.assign({},t,e)),function(u){const h=l[u]||s,p=h(t[u],e[u],u);a.isUndefined(p)&&h!==c||(n[u]=p)}),n}const bt=t=>{const e=q({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:c}=e;e.headers=o=R.from(o),e.url=ot(gt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(a.isFormData(n)){if(x.hasStandardBrowserEnv||x.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...h]=l?l.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...h].join("; "))}}if(x.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(e)),r||r!==!1&&or(e.url))){const u=s&&i&&cr.read(i);u&&o.set(s,u)}return e},ur=typeof XMLHttpRequest<"u",hr=ur&&function(t){return new Promise(function(e,n){const r=bt(t);let s=r.data;const i=R.from(r.headers).normalize();let{responseType:o,onUploadProgress:c,onDownloadProgress:l}=r,u,h,p,g,d;function y(){g&&g(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let f=new XMLHttpRequest;f.open(r.method.toUpperCase(),r.url,!0),f.timeout=r.timeout;function S(){if(!f)return;const _=R.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),T={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:_,config:t,request:f};dt(function(L){e(L),y()},function(L){n(L),y()},T),f=null}"onloadend"in f?f.onloadend=S:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(S)},f.onabort=function(){f&&(n(new m("Request aborted",m.ECONNABORTED,t,f)),f=null)},f.onerror=function(){n(new m("Network Error",m.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const T=r.transitional||at;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),n(new m(_,T.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,t,f)),f=null},s===void 0&&i.setContentType(null),"setRequestHeader"in f&&a.forEach(i.toJSON(),function(_,T){f.setRequestHeader(T,_)}),a.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),o&&o!=="json"&&(f.responseType=r.responseType),l&&([p,d]=ue(l,!0),f.addEventListener("progress",p)),c&&f.upload&&([h,g]=ue(c),f.upload.addEventListener("progress",h),f.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(u=_=>{f&&(n(!_||_.type?new H(null,t,f):_),f.abort(),f=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const w=rr(r.url);if(w&&x.protocols.indexOf(w)===-1){n(new m("Unsupported protocol "+w+":",m.ERR_BAD_REQUEST,t));return}f.send(s||null)})},dr=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const i=function(u){if(!s){s=!0,c();const h=u instanceof Error?u:this.reason;r.abort(h instanceof m?h:new H(h instanceof Error?h.message:h))}};let o=e&&setTimeout(()=>{o=null,i(new m(`timeout ${e} of ms exceeded`,m.ETIMEDOUT))},e);const c=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),t=null)};t.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>a.asap(c),l}},fr=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},pr=async function*(t,e){for await(const n of gr(t))yield*fr(n,e)},gr=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},yt=(t,e,n,r)=>{const s=pr(t,e);let i=0,o,c=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:h}=await s.next();if(u){c(),l.close();return}let p=h.byteLength;if(n){let g=i+=p;n(g)}l.enqueue(new Uint8Array(h))}catch(u){throw c(u),u}},cancel(l){return c(l),s.return()}},{highWaterMark:2})},he=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_t=he&&typeof ReadableStream=="function",mr=he&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),wt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},br=_t&&wt(()=>{let t=!1;const e=new Request(x.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),vt=64*1024,Te=_t&&wt(()=>a.isReadableStream(new Response("").body)),de={stream:Te&&(t=>t.body)};he&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!de[e]&&(de[e]=a.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new m(`Response type '${e}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const yr=async t=>{if(t==null)return 0;if(a.isBlob(t))return t.size;if(a.isSpecCompliantForm(t))return(await new Request(x.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(a.isArrayBufferView(t)||a.isArrayBuffer(t))return t.byteLength;if(a.isURLSearchParams(t)&&(t=t+""),a.isString(t))return(await mr(t)).byteLength},_r=async(t,e)=>a.toFiniteNumber(t.getContentLength())??yr(e),wr=he&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:i,timeout:o,onDownloadProgress:c,onUploadProgress:l,responseType:u,headers:h,withCredentials:p="same-origin",fetchOptions:g}=bt(t);u=u?(u+"").toLowerCase():"text";let d=dr([s,i&&i.toAbortSignal()],o),y;const f=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let S;try{if(l&&br&&n!=="get"&&n!=="head"&&(S=await _r(h,r))!==0){let O=new Request(e,{method:"POST",body:r,duplex:"half"}),I;if(a.isFormData(r)&&(I=O.headers.get("content-type"))&&h.setContentType(I),O.body){const[z,F]=ft(S,ue(pt(l)));r=yt(O.body,vt,z,F)}}a.isString(p)||(p=p?"include":"omit");const w="credentials"in Request.prototype;y=new Request(e,{...g,signal:d,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:w?p:void 0});let _=await fetch(y);const T=Te&&(u==="stream"||u==="response");if(Te&&(c||T&&f)){const O={};["status","statusText","headers"].forEach(U=>{O[U]=_[U]});const I=a.toFiniteNumber(_.headers.get("content-length")),[z,F]=c&&ft(I,ue(pt(c),!0))||[];_=new Response(yt(_.body,vt,z,()=>{F&&F(),f&&f()}),O)}u=u||"text";let L=await de[a.findKey(de,u)||"text"](_,t);return!T&&f&&f(),await new Promise((O,I)=>{dt(O,I,{data:L,headers:R.from(_.headers),status:_.status,statusText:_.statusText,config:t,request:y})})}catch(w){throw f&&f(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,t,y),{cause:w.cause||w}):m.from(w,w&&w.code,t,y)}}),ke={http:Ln,xhr:hr,fetch:wr};a.forEach(ke,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const St=t=>`- ${t}`,vr=t=>a.isFunction(t)||t===null||t===!1,Et={getAdapter:t=>{t=a.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let i=0;i<e;i++){n=t[i];let o;if(r=n,!vr(n)&&(r=ke[(o=String(n)).toLowerCase()],r===void 0))throw new m(`Unknown adapter '${o}'`);if(r)break;s[o||"#"+i]=r}if(!r){const i=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?i.length>1?`since :
|
4
|
+
`+i.map(St).join(`
|
5
|
+
`):" "+St(i[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:ke};function Pe(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new H(null,t)}function xt(t){return Pe(t),t.headers=R.from(t.headers),t.data=Ce.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Et.getAdapter(t.adapter||Q.adapter)(t).then(function(e){return Pe(t),e.data=Ce.call(t,t.transformResponse,e),e.headers=R.from(e.headers),e},function(e){return ht(e)||(Pe(t),e&&e.response&&(e.response.data=Ce.call(t,t.transformResponse,e.response),e.response.headers=R.from(e.response.headers))),Promise.reject(e)})}const Ot="1.8.4",fe={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{fe[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Rt={};fe.transitional=function(t,e,n){function r(s,i){return"[Axios v"+Ot+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return(s,i,o)=>{if(t===!1)throw new m(r(i," has been removed"+(e?" in "+e:"")),m.ERR_DEPRECATED);return e&&!Rt[i]&&(Rt[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(s,i,o):!0}},fe.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Sr(t,e,n){if(typeof t!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const i=r[s],o=e[i];if(o){const c=t[i],l=c===void 0||o(c,i,t);if(l!==!0)throw new m("option "+i+" must be "+l,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+i,m.ERR_BAD_OPTION)}}const pe={assertOptions:Sr,validators:fe},N=pe.validators;let D=class{constructor(t){this.defaults=t,this.interceptors={request:new ct,response:new ct}}async request(t,e){try{return await this._request(t,e)}catch(n){if(n instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const s=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
6
|
+
`+s):n.stack=s}catch{}}throw n}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=q(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:s}=e;n!==void 0&&pe.assertOptions(n,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean)},!1),r!=null&&(a.isFunction(r)?e.paramsSerializer={serialize:r}:pe.assertOptions(r,{encode:N.function,serialize:N.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),pe.assertOptions(e,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=s&&a.merge(s.common,s[e.method]);s&&a.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),e.headers=R.concat(i,s);const o=[];let c=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(e)===!1||(c=c&&d.synchronous,o.unshift(d.fulfilled,d.rejected))});const l=[];this.interceptors.response.forEach(function(d){l.push(d.fulfilled,d.rejected)});let u,h=0,p;if(!c){const d=[xt.bind(this),void 0];for(d.unshift.apply(d,o),d.push.apply(d,l),p=d.length,u=Promise.resolve(e);h<p;)u=u.then(d[h++],d[h++]);return u}p=o.length;let g=e;for(h=0;h<p;){const d=o[h++],y=o[h++];try{g=d(g)}catch(f){y.call(this,f);break}}try{u=xt.call(this,g)}catch(d){return Promise.reject(d)}for(h=0,p=l.length;h<p;)u=u.then(l[h++],l[h++]);return u}getUri(t){t=q(this.defaults,t);const e=gt(t.baseURL,t.url,t.allowAbsoluteUrls);return ot(e,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){D.prototype[t]=function(e,n){return this.request(q(n||{},{method:t,url:e,data:(n||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function e(n){return function(r,s,i){return this.request(q(i||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}D.prototype[t]=e(),D.prototype[t+"Form"]=e(!0)});let Er=class Vt{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(c=>{r.subscribe(c),i=c}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},e(function(s,i,o){r.reason||(r.reason=new H(s,i,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Vt(function(n){e=n}),cancel:e}}};function xr(t){return function(e){return t.apply(null,e)}}function Or(t){return a.isObject(t)&&t.isAxiosError===!0}const je={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(je).forEach(([t,e])=>{je[e]=t});function At(t){const e=new D(t),n=He(D.prototype.request,e);return a.extend(n,D.prototype,e,{allOwnKeys:!0}),a.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return At(q(t,r))},n}const v=At(Q);v.Axios=D,v.CanceledError=H,v.CancelToken=Er,v.isCancel=ht,v.VERSION=Ot,v.toFormData=ae,v.AxiosError=m,v.Cancel=v.CanceledError,v.all=function(t){return Promise.all(t)},v.spread=xr,v.isAxiosError=Or,v.mergeConfig=q,v.AxiosHeaders=R,v.formToJSON=t=>lt(a.isHTMLForm(t)?new FormData(t):t),v.getAdapter=Et.getAdapter,v.HttpStatusCode=je,v.default=v;const{Axios:Js,AxiosError:Ws,CanceledError:Hs,isCancel:Vs,CancelToken:Ks,VERSION:Xs,all:Gs,Cancel:Qs,isAxiosError:Ys,spread:Zs,toFormData:ei,AxiosHeaders:ti,HttpStatusCode:ni,formToJSON:ri,getAdapter:si,mergeConfig:ii}=v,Ne=v.create({baseURL:location.origin,timeout:6e4,params:{}});Ne.interceptors.response.use(t=>t,t=>{var e,n,r,s,i,o,c,l,u,h,p;if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(y){y&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let g=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(g+=`${t.response.statusText} `),(r=(n=t.response)==null?void 0:n.config)!=null&&r.data&&(g+=`${t.response.config.data} `),(i=(s=t.response)==null?void 0:s.data)!=null&&i.message?g+=`${t.response.data.message}`:(c=(o=t.response)==null?void 0:o.data)!=null&&c.exception?g+=`${t.response.data.exception}`:(h=(u=(l=t.response)==null?void 0:l.data)==null?void 0:u.error)!=null&&h.message?(t.response.data.error.class&&(g+=`${t.response.data.error.class} `),g+=`${t.response.data.error.message}`):g+=`${(p=t.response)==null?void 0:p.data}`;const{$cosmosNotify:d}=window;throw d&&d.serious({title:"Network error",body:g}),t}else throw t});const ge=async function(t,e,{data:n,params:r={},headers:s,noAuth:i=!1,noScope:o=!1,onUploadProgress:c=!1}={}){if(!i){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}s.Authorization=localStorage.openc3Token}return s.manual=!0,!o&&!r.scope&&(r.scope=window.openc3Scope),Ne({method:t,url:e,data:n,params:r,headers:s,onUploadProgress:c})},Ie={Accept:"application/json"},Ct={...Ie,"Content-Type":"application/json"},oi=we("o",{get:function(t,{params:e,headers:n=Ie,noScope:r,noAuth:s,onUploadProgress:i}={}){return ge("get",t,{params:e,headers:n,noScope:r,noAuth:s,onUploadProgress:i})},put:function(t,{data:e,params:n,headers:r=Ct,noScope:s,noAuth:i,onUploadProgress:o}={}){return ge("put",t,{data:e,params:n,headers:r,noScope:s,noAuth:i,onUploadProgress:o})},post:function(t,{data:e,params:n,headers:r=Ct,noScope:s,noAuth:i,onUploadProgress:o}={}){return ge("post",t,{data:e,params:n,headers:r,noScope:s,noAuth:i,onUploadProgress:o})},delete:function(t,{params:e,headers:n=Ie,noScope:r,noAuth:s,onUploadProgress:i}={}){return ge("delete",t,{params:e,headers:n,noScope:r,noAuth:s,onUploadProgress:i})}});let me=()=>({emit(t,...e){for(let n=this.events[t]||[],r=0,s=n.length;r<s;r++)n[r](...e)},events:{},on(t,e){var n;return((n=this.events)[t]||(n[t]=[])).push(e),()=>{var r;this.events[t]=(r=this.events[t])==null?void 0:r.filter(s=>e!==s)}}});class Z extends Error{constructor(e,n){e instanceof Error?(super(e.message),this.cause=e):super(e),this.reason=n,this.name="ReasonError"}}class Le extends Z{constructor(e){super("Rejected",e),this.name="SubscriptionRejectedError"}}class Rr extends Z{constructor(e){super(e||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class P extends Z{constructor(e,n){n?super(e,n):super("Disconnected",e),this.name="DisconnectedError"}}class Ar extends P{constructor(e){super(e,"stale_connection"),this.name="StaleConnectionError"}}function Tt(t){return t?`{${Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>{let n=JSON.stringify(t[e]);return`${JSON.stringify(e)}:${n}`}).join(",")}}`:""}class Cr{constructor(e){this.channel=e,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",e=>{if(e.type==="info"){this._state||(this._state=this.stateFromInfo(e));return}this._state&&(e.type==="join"?this._state[e.id]=e.info:e.type==="leave"&&delete this._state[e.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(e=>e()),this.listeners.length=0}async join(e,n){if(!this._info)return this._info={id:e,info:n},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let e=await this.channel.perform("$presence:leave");return delete this._info,e}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let e=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(e),this._state}finally{delete this._promise}}stateFromInfo(e){return e.records.reduce((n,{id:r,info:s})=>(n[r]=s,n),{})}}const B=Symbol("state");class kt{constructor(e={}){this.emitter=me(),this.params=Object.freeze(e),this.presence=new Cr(this),this.initialConnect=!0,this[B]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=Tt({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[B]}attached(e){if(this.receiver){if(this.receiver!==e)throw Error("Already connected to a different receiver");return!1}return this.receiver=e,!0}connecting(){this[B]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[B]="connected";let e=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:e})):this.emit("connect",{reconnect:!0,restored:e})}restored(){if(this.state==="connected")throw Error("Already connected");this[B]="connected";let e=!0,n=!0;this.initialConnect=!1,this.emit("connect",{reconnect:n,restored:e})}disconnected(e){this.state==="disconnected"||this.state==="closed"||(this[B]="disconnected",this.presence.reset(),this.emit("disconnect",e))}closed(e){this.state!=="closed"&&(this[B]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",e))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(e,n){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,e,n)}async send(e){return this.perform(void 0,e)}async whisper(e){try{await this.perform("$whisper",e)}catch(n){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",n)}}receive(e,n){this.emit("message",e,n)}on(e,n){return this.emitter.on(e,n)}once(e,n){let r=this.emitter.on(e,(...s)=>{r(),n(...s)});return r}emit(e,...n){return this.emitter.emit(e,...n)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((e,n)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(s=>s()),e()})),r.push(this.on("close",s=>{r.forEach(i=>i()),n(s||new Z("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class Tr{constructor(e){this.id=e,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(e){this.channels.includes(e)||this.channels.push(e)}remove(e){let n=this.channels.indexOf(e);n>-1&&this.channels.splice(n,1)}notify(e,...n){this.state=e==="restored"?"connected":e,n.length===1?this.channels.forEach(r=>r[e](n[0])):this.channels.forEach(r=>r[e]())}pending(e){this._checkIntent(e);let n=this._pendings[0];return!n||n.intent!==e?Promise.resolve():n.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(e){this._checkIntent(e);let n,r={promise:new Promise(i=>{n=i}),intent:e,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),n(r)},canceled:!1,acquired:!1},s=this._pendingTop;return this._pendings.push(r),s&&await s.promise,this.gvl&&await this.gvl.acquire(r,e),r.acquired=!0,r}close(e){this.disposed=!0,this.intent=void 0,this.notify("closed",e)}_checkIntent(e){if(!(e==="unsubscribed"||e==="subscribed"))throw Error(`Unknown subscription intent: ${e}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(e){let n=this._pendingTop;return!n||n.acquired||n.intent!==e?!1:(this._pendings.pop(),n.canceled=!0,!0)}}class kr{constructor(){this.queue=[]}async acquire(e,n){n==="subscribed"&&(this.queue.push(e.promise.then(()=>{this.queue.splice(this.queue.indexOf(e),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class Pr{constructor(e){e.concurrentSubscribes===!1&&(this.glv=new kr),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(e){return this._subscriptions[e]}create(e,{subscribe:n,unsubscribe:r}){let s=this._subscriptions[e]=new Tr(e);return s.remoteId=this._localToRemote[e],s.subscriber=n,s.unsubscriber=r,s.gvl=this.glv,s}remove(e){delete this._subscriptions[e],delete this._localToRemote[e]}storeRemoteId(e,n){this._localToRemote[e]=n;let r=this.get(e);r&&(r.remoteId=n)}}class jr{constructor(e={}){this.subscriptions=new Pr(e),this._pendingMessages=[],this._remoteToLocal={}}subscribe(e,n){this._remoteToLocal[n]=e,this.subscriptions.storeRemoteId(e,n),this.flush(n)}unsubscribe(e){let n=this.subscriptions.get(e);if(!n)return;let r=n.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(e)}transmit(e,n,r){let s=this._remoteToLocal[e];if(!s){this._pendingMessages.push([e,n,r]);return}let i=this.subscriptions.get(s);i&&i.channels.forEach(o=>{o.receive(n,r)})}notify(e,n,r){let s=this._remoteToLocal[e];if(!s)return;let i=this.subscriptions.get(s);i&&i.channels.forEach(o=>o.emit(n,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(e=>e.channels)}flush(e){let n=[];for(let r of this._pendingMessages)r[0]===e?this.transmit(r[0],r[1],r[2]):n.push(r);this._pendingMessages=n}}const Pt={debug:0,info:1,warn:2,error:3};class jt{constructor(e){this.level=e||"warn"}log(e,n,r){Pt[e]<Pt[this.level]||this.writeLogEntry(e,n,r)}writeLogEntry(){throw Error("Not implemented")}debug(e,n){this.log("debug",e,n)}info(e,n){this.log("info",e,n)}warn(e,n){this.log("warn",e,n)}error(e,n){this.log("error",e,n)}}class ee extends jt{writeLogEntry(){}}class Nr{encode(e){return JSON.stringify(e)}decode(e){try{return JSON.parse(e)}catch{}}}let Ir=0;class Nt{constructor(e={}){let{logger:n}=e;this.logger=n||new ee,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=e.subscribeCooldownInterval||250,this.subscribeRetryInterval=e.subscribeRetryInterval||5e3}attached(e){this.cable=e}subscribe(e,n){let r={channel:e};n&&Object.assign(r,n);let s=Tt(r);if(this.pendingUnsubscriptions[s]){let o=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${o}`,s),new Promise(c=>{setTimeout(()=>{c(this.subscribe(e,n))},o)})}if(this.pendingSubscriptions[s])return this.logger.warn("subscription is already pending, skipping",s),Promise.reject(Error("Already subscribing"));let i=this.subscribeRetryInterval;return new Promise((o,c)=>{let l=++Ir;this.pendingSubscriptions[s]={resolve:o,reject:c,id:l},this.cable.send(this.buildSubscribeRequest(s)),this.maybeRetrySubscribe(l,s,i)})}buildSubscribeRequest(e){return{command:"subscribe",identifier:e}}maybeRetrySubscribe(e,n,r){setTimeout(()=>{let s=this.pendingSubscriptions[n];s&&s.id===e&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,n),this.cable.send(this.buildSubscribeRequest(n)),this.maybeExpireSubscribe(e,n,r))},r)}maybeExpireSubscribe(e,n,r){setTimeout(()=>{let s=this.pendingSubscriptions[n];s&&s.id===e&&(delete this.pendingSubscriptions[n],s.reject(new Rr(`Haven't received subscription ack in ${r*2}ms for ${n}`)))},r)}unsubscribe(e){return this.cable.send({command:"unsubscribe",identifier:e}),this.pendingUnsubscriptions[e]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[e]},this.subscribeCooldownInterval),Promise.resolve()}perform(e,n,r){return n==="$whisper"?this.whisper(e,r):(r||(r={}),r.action=n,this.cable.send({command:"message",identifier:e,data:JSON.stringify(r)}),Promise.resolve())}whisper(e,n){return this.cable.send({command:"whisper",identifier:e,data:n}),Promise.resolve()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:n,identifier:r,message:s,reason:i,reconnect:o}=e;if(n==="ping")return this.cable.keepalive(e.message);if(this.cable.keepalive(),n==="welcome"){let c=e.sid;return c&&this.cable.setSessionId(c),this.cable.connected()}if(n==="disconnect"){let c=new P(i);this.reset(c),o===!1?this.cable.closed(c):this.cable.disconnected(c);return}if(n==="confirm_subscription"){let c=this.pendingSubscriptions[r];if(!c){this.logger.error("subscription not found, unsubscribing",{type:n,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],c.resolve(r)}if(n==="reject_subscription"){let c=this.pendingSubscriptions[r];return c?(delete this.pendingSubscriptions[r],c.reject(new Le)):this.logger.error("subscription not found",{type:n,identifier:r})}if(s)return{identifier:r,message:s};this.logger.warn(`unknown message type: ${n}`,{message:e})}reset(e){for(let n in this.pendingSubscriptions)this.pendingSubscriptions[n].reject(e);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const It=()=>Date.now()/1e3|0;class Lr extends Nt{constructor(e={}){super(e),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=e.historyTimestamp,this.restoreSince===void 0&&(this.restoreSince=It()),this.sessionId=void 0,this.sendPongs=e.pongs}reset(e){for(let n in this.pendingPresence)this.pendingPresence[n].reject(e);return this.pendingPresence={},super.reset()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:n,identifier:r,message:s}=e;if(n==="disconnect"||n==="reject_subscription")return super.receive(e);if(n==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(e);if(n==="ping")return this.restoreSince&&(this.restoreSince=It()),this.sendPongs&&this.sendPong(),this.cable.keepalive(e.message);if(this.cable.keepalive(),n==="confirm_history"){this.logger.debug("history result received",e),this.cable.notify("history_received",r);return}if(n==="reject_history"){this.logger.warn("failed to retrieve history",e),this.cable.notify("history_not_found",r);return}if(n==="welcome"){if(this.sessionId=e.sid,this.sessionId&&this.cable.setSessionId(this.sessionId),e.restored){let i=e.restored_ids||Object.keys(this.subscriptionStreams);for(let o of i)this.cable.send({identifier:o,command:"history",history:this.historyRequestFor(o)}),this.presenceInfo[o]&&this.cable.send({identifier:o,command:"join",presence:this.presenceInfo[o]});return this.cable.restored(i)}return this.cable.connected(this.sessionId)}if(n==="presence"){let i=s.type;if(i==="info"){let o=this.pendingPresence[r];o&&(delete this.pendingPresence[r],o.resolve(s))}else if(i==="error"){let o=this.pendingPresence[r];o&&(delete this.pendingPresence[r],o.reject(new Error("failed to retrieve presence")))}return{type:n,identifier:r,message:s}}if(s){let i=this.trackStreamPosition(r,e.stream_id,e.epoch,e.offset);return{identifier:r,message:s,meta:i}}this.logger.warn(`unknown message type: ${n}`,{message:e})}perform(e,n,r){switch(n){case"$presence:join":return this.join(e,r);case"$presence:leave":return this.leave(e,r);case"$presence:info":return this.presence(e,r)}return super.perform(e,n,r)}unsubscribe(e){return delete this.presenceInfo[e],super.unsubscribe(e)}buildSubscribeRequest(e){let n=super.buildSubscribeRequest(e),r=this.historyRequestFor(e);r&&(n.history=r,this.pendingHistory[e]=!0);let s=this.presenceInfo[e];return s&&(n.presence=s),n}recoverableClosure(){return!!this.sessionId}historyRequestFor(e){let n={},r=!1;if(this.subscriptionStreams[e])for(let s of this.subscriptionStreams[e]){let i=this.streamsPositions[s];i&&(r=!0,n[s]=i)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:n}}trackStreamPosition(e,n,r,s){if(!(!n||!r))return this.subscriptionStreams[e]||(this.subscriptionStreams[e]=new Set),this.subscriptionStreams[e].add(n),this.streamsPositions[n]={epoch:r,offset:s},{stream:n,epoch:r,offset:s}}async sendPong(){await new Promise(e=>setTimeout(e,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(e,n){return this.presenceInfo[e]=n,this.cable.send({command:"join",identifier:e,presence:n}),Promise.resolve()}async leave(e,n){return delete this.presenceInfo[e],this.cable.send({command:"leave",identifier:e,presence:n}),Promise.resolve()}presence(e,n){return this.pendingPresence[e]?(this.logger.warn("presence is already pending, skipping",e),Promise.reject(Error("presence request is already pending"))):new Promise((r,s)=>{this.pendingPresence[e]={resolve:r,reject:s},this.cable.send({command:"presence",identifier:e,data:n})})}}class Ur extends Z{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class Ue extends kt{constructor(e,n){super(n),this.channelId=e}set channelId(e){this._channelId=e}get channelId(){return this._channelId}}re(Ue,"identifier","__ghost__");const Fr="$pubsub";class Fe extends kt{async perform(e,n){if(e.startsWith("$"))return super.perform(e,n);throw Error("not implemented")}}re(Fe,"identifier",Fr);const M=Symbol("state");let $r=class{constructor({transport:t,protocol:e,encoder:n,logger:r,lazy:s,hubOptions:i,performFailures:o,transportConfigurator:c}){this.emitter=me(),this.transport=t,this.encoder=n,this.logger=r||new ee,this.protocol=e,this.performFailures=o||"throw",this.protocol.attached(this),this.hub=new jr(i||{}),this[M]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=c,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,s===!1&&this.connect().catch(()=>{})}get state(){return this[M]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let t=this.state==="idle";this[M]="connecting";let e=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:t}),await this.transport.open()}catch(n){this.handleClose(n)}return e}setSessionId(t){this.sessionId=t,this.transport.setParam("sid",t)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[M]="connected",this.recovering&&this.hub.subscriptions.all().forEach(e=>e.notify("disconnected",new P("recovery_failed"))),this.hub.subscriptions.all().forEach(e=>this._resubscribe(e));let t=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(t){this.logger.info("connection recovered",{remoteIds:t}),this[M]="connected",this.hub.subscriptions.all().forEach(r=>{t&&r.remoteId&&t.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new P("recovery_failed")),this._resubscribe(r))});let e=!this.initialConnect,n=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:n})}notify(t,e,n){e&&typeof e!="string"&&(n=e,e=void 0),e?this.hub.notify(e,"info",{type:t,data:n}):this.emit("info",{type:t,data:n})}handleClose(t){this.logger.debug("transport closed",{error:t}),this.disconnected(new P(t,"transport_closed"))}disconnected(t){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:t}),this[M]="disconnected",this.recovering=this.protocol.recoverableClosure(t),this.recovering?this.hub.subscriptions.all().forEach(e=>e.notify("connecting")):this.hub.subscriptions.all().forEach(e=>{e.notify("disconnected",t)}),this.protocol.reset(t),this.hub.close(),this.transport.close(),this.emit("disconnect",t))}closed(t){if(this.state==="closed"||this.state==="idle")return;let e;t&&(e=t instanceof P?t:new P(t,void 0)),this.logger.info("closed",{reason:t||"user"}),this[M]="closed";let n=e||new P("cable_closed");this.hub.subscriptions.all().forEach(r=>r.notify("disconnected",n)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",e)}disconnect(){this.closed()}handleIncoming(t){if(this.state==="closed"||this.state==="idle")return;let e=this.encoder.decode(t);if(e===void 0){this.logger.error("failed to decode message",{message:t});return}this.logger.debug("incoming data",e);let n=this.protocol.receive(e);if(n){this.logger.debug("processed incoming message",n);let{type:r,identifier:s,message:i,meta:o}=n;r?this.hub.notify(s,r,i):this.hub.transmit(s,i,o)}}send(t){if(this.state==="closed")throw Error("Cable is closed");let e=this.encoder.encode(t);if(e===void 0){this.logger.error("failed to encode message",{message:t});return}this.logger.debug("outgoing message",t),this.transport.send(e)}keepalive(t){this.emit("keepalive",t)}streamFrom(t){let e=new Fe({stream_name:t});return this.subscribe(e)}streamFromSigned(t){let e=new Fe({signed_stream_name:t});return this.subscribe(e)}subscribeTo(t,e){let n,r;return typeof t=="string"&&(r=t,t=Ue),n=r?new t(r,e):new t(e),this.subscribe(n)}subscribe(t){if(!t.attached(this))return t;let e=t.identifier;t.connecting();let n=this.hub.subscriptions.get(e)||this.hub.subscriptions.create(e,{subscribe:r=>this._subscribe(r,t.channelId,t.params),unsubscribe:r=>this._unsubscribe(r)});return n.add(t),n.intent==="subscribed"&&n.state==="connected"&&t.connected(),n.ensureSubscribed(),t}async _resubscribe(t){t.intent!=="subscribed"||!t.channels[0]||(t.notify("connecting"),t.ensureResubscribed())}async _subscribe(t,e,n){let r=t.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r});return}this.logger.debug("acquiring subscribe lock",{identifier:r});let s=await t.acquire("subscribed");if(s.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),s.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),t.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),s.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),s.release();return}if(t.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),t.notify("connected"),s.release();return}let i={identifier:e,params:n};this.logger.debug("subscribing",i);try{let o=await this.protocol.subscribe(e,n);this.hub.subscribe(r,o),this.logger.debug("subscribed",{...i,remoteId:o}),t.notify("connected")}catch(o){if(o){if(o instanceof Le&&this.logger.warn("rejected",i),o instanceof P){this.logger.debug("disconnected during subscription; will retry on connect",i),s.release();return}this.logger.error("failed to subscribe",{error:o,...i})}t.close(o),this.hub.unsubscribe(r)}s.release()}unsubscribe(t){let e=t.identifier,n=this.hub.subscriptions.get(e);if(!n)throw Error(`Subscription not found: ${e}`);n.remove(t),t.closed(),n.maybeUnsubscribe()}async _unsubscribe(t){let e=t.id;this.logger.debug("acquiring unsubscribe lock",{identifier:e});let n=await t.acquire("unsubscribed");if(n.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:e}),n.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:e}),t.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:e,intent:t.intent}),n.release();return}if(t.state==="disconnected"||t.state==="closed"){this.logger.debug(`already ${t.state} connected, skip unsubscribe command`,{identifier:e}),n.release();return}let r=t.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:e}),t.close(),this.hub.unsubscribe(e),n.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:e})}catch(s){s&&(s instanceof P?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:e,error:s}):this.logger.error("unsubscribe failed",{id:e,error:s}))}t.intent==="unsubscribed"?(t.close(),this.hub.unsubscribe(e)):t.state="closed",n.release()}async perform(t,e,n){if(this.performFailures==="throw")return this._perform(t,e,n);try{return await this._perform(t,e,n)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(t,e,n){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new Ur;let r=this.hub.subscriptions.get(t);if(!r)throw Error(`Subscription not found: ${t}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${t}`);let s=r.remoteId,i={id:s,action:e,payload:n};this.logger.debug("perform",i);try{let o=await this.protocol.perform(s,e,n);return o&&this.logger.debug("perform result",{message:o,request:i}),o}catch(o){throw this.logger.error("perform failed",{error:o,request:i}),o}}on(t,e){return this.emitter.on(t,e)}once(t,e){let n=this.emitter.on(t,(...r)=>{n(),e(...r)});return n}emit(t,...e){return this.emitter.emit(t,...e)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((t,e)=>{let n=[()=>delete this._pendingConnect];n.push(this.on("connect",()=>{n.forEach(r=>r()),t()})),n.push(this.on("close",r=>{n.forEach(s=>s()),e(r)})),n.push(this.on("disconnect",r=>{n.forEach(s=>s()),e(r)}))}),this._pendingConnect)}};const qr={maxMissingPings:2,maxReconnectAttempts:1/0},V=()=>Date.now(),Lt=(t,e)=>{e=e||{};let{backoffRate:n,jitterRatio:r,maxInterval:s}=e;return n=n||2,r===void 0&&(r=.5),i=>{let o=t*n**i,c=o*n,l=o+(c-o)*Math.random(),u=2*(Math.random()-.5)*r;return l=l*(1+u),s&&s<l&&(l=s),l}};let Ut=class{constructor({pingInterval:t,...e}){if(this.pingInterval=t,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${t}`);if(e=Object.assign({},qr,e),this.strategy=e.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=e.maxMissingPings,this.maxReconnectAttempts=e.maxReconnectAttempts,this.logger=e.logger||new ee,this.state="pending_connect",this.attempts=0,this.disconnectedAt=V()}watch(t){this.target=t,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(t=>{this.logger.info("Failed at reconnecting: "+t)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=V(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=V(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=V(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=V()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(t=>t()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let t=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},t)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let t=V()-this.pingedAt;t>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${t}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new Ar))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let t=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${t}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),t)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class Dr{constructor(e,n={}){this.transports=e,this.transport=null,this.emitter=me(),this.unbind=[],this.logger=n.logger||new ee}displayName(){return"fallbacked transport"}async open(){for(let e=0;e<this.transports.length;e++){let n=this.transports[e];try{this.transport=n,this.resetListeners(),this.logger.debug(`Trying to connect via ${n.displayName()}`),await n.open(),this.logger.debug(`Connected via ${n.displayName()}`);return}catch(r){this.logger.debug(`Failed to connect via ${n.displayName()}: ${r.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(e){if(!this.transport)throw new Error("No transport is open");this.transport.send(e)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(e,n){this.transports.forEach(r=>{r.setParam(e,n)})}setToken(e,n){this.transports.forEach(r=>{r.setToken(e,n)})}on(e,n){return this.emitter.on(e,n)}once(e,n){let r=this.emitter.on(e,(...s)=>{r(),n(...s)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(e=>e()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",e=>{this.emitter.emit("data",e)}),this.transport.on("close",e=>{this.emitter.emit("close",e)}),this.transport.on("error",e=>{this.emitter.emit("error",e)}))}}class Br{constructor(e,n={}){this.url=e;let r=n.websocketImplementation;if(r)this.Impl=r;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=me();let{format:s,subprotocol:i,authStrategy:o}=n;this.format=s||"text",this.connectionOptions=n.websocketOptions,this.authStrategy=o||"param",this.authProtocol="",this.subprotocol=i}displayName(){return"WebSocket("+this.url+")"}open(){let e=this.subprotocol;return this.authStrategy==="sub-protocol"&&(e=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,e,this.connectionOptions):this.ws=new this.Impl(this.url,e),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((n,r)=>{let s=[];s.push(this.once("open",()=>{s.forEach(i=>i()),n()})),s.push(this.once("close",()=>{s.forEach(i=>i()),r(Error("WS connection closed"))}))})}setURL(e){this.url=e}setParam(e,n){let r=new URL(this.url);r.searchParams.set(e,n);let s=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(s)}setToken(e,n="jid"){if(this.authStrategy==="param")this.setParam(n,e);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let r=`x-${n}`.toLowerCase();r=Object.keys(this.connectionOptions.headers).find(s=>s.toLowerCase()===r)||r,this.connectionOptions.headers[r]=e}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${e}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(e){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(e)}close(){this.ws?this.onclose():this.connected=!1}on(e,n){return this.emitter.on(e,n)}once(e,n){let r=this.emitter.on(e,(...s)=>{r(),n(...s)});return r}initListeners(){this.ws.onerror=e=>{this.connected&&this.emitter.emit("error",e.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=e=>{let n=e.data;this.format==="binary"&&(n=new Uint8Array(n)),this.emitter.emit("data",n)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}const Ft={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function Mr(t,e){if(typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),e=e||{},!t&&!e.transport)throw Error("URL or transport must be specified");e=Object.assign({},Ft,e);let{protocol:n,websocketImplementation:r,websocketFormat:s,websocketOptions:i,websocketAuthStrategy:o,fallbacks:c,logLevel:l,logger:u,transport:h,encoder:p,lazy:g,monitor:d,pingInterval:y,reconnectStrategy:f,maxMissingPings:S,maxReconnectAttempts:w,subprotocol:_,tokenRefresher:T,historyTimestamp:L,protocolOptions:O,concurrentSubscribes:I,performFailures:z,transportConfigurator:F,auth:U}=e;if(u=u||new ee(l),typeof n=="string"){_=_||n;let K=n.substring(0,n.lastIndexOf("-")),A=n.substring(n.lastIndexOf("-")+1);if(O=O||{},K==="actioncable-v1")n=new Nt({logger:u,...O});else if(K==="actioncable-v1-ext")n=new Lr({logger:u,historyTimestamp:L,...O});else throw Error(`Protocol is not supported yet: ${n}`);if(A==="json")p=p||new Nr,s=s||"text";else if(A==="msgpack"){if(s="binary",!p)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(A==="protobuf"){if(s=s||"binary",!p)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${n}`)}if(!n)throw Error("Protocol must be specified");h=h||new Br(t,{websocketImplementation:r,websocketOptions:i,subprotocol:_,authStrategy:o,format:s}),c&&(h=new Dr([h,...c],{logger:u})),U&&U.token&&h.setToken(U.token,U.param||"jid"),f=f||Lt(y),d!==!1&&(d=d||new Ut({pingInterval:y,reconnectStrategy:f,maxMissingPings:S,maxReconnectAttempts:w,logger:u}));let Je={concurrentSubscribes:I},j=new $r({protocol:n,transport:h,encoder:p,logger:u,lazy:g,hubOptions:Je,performFailures:z,transportConfigurator:F});return d&&(d.watch(j),j.monitor=d),T&&zr(j,async()=>{try{await T(h)}catch(K){return u.error("Failed to refresh authentication token: "+K),!1}return j.connect().catch(()=>{}),!0}),j}function zr(t,e){let n=!1;t.on("connect",()=>n=!1),t.on("close",async r=>{if(r){if(n){t.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(n=!0,await e())}})}class Jr{constructor(e){this.channel=e}notify(e,...n){typeof this[e]=="function"&&this[e](...n)}perform(e,n={}){this.channel.perform(e,n)}send(e){this.channel.send(e)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class Wr extends Ue{constructor(e,n,r){super(e,n),this.subscription=new Jr(this),Object.assign(this.subscription,r),this.on("connect",({reconnect:s})=>this.subscription.notify("connected",{reconnected:s})),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",s=>this.subscription.notify("received",s)),this.on("close",s=>{s&&s instanceof Le?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class Hr{constructor(e){this.cable=e}create(e,n){let r,s;typeof e=="object"?(r=e.channel,delete e.channel,s=e):(r=e,s={});let i=new Wr(r,s,n);return i.subscription.notify("initialized"),this.cable.subscribe(i),i.subscription}findAll(e){return this.cable.hub.channels.filter(n=>n.identifier===e).map(n=>n.subscription)}}class Vr{constructor(e){this.cable=e,this.subscriptions=new Hr(e)}}class Kr extends jt{writeLogEntry(e,n,r){r?console[e](n,r):console[e](n)}}class Xr extends Ut{watch(e){super.watch(e),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let e=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},n=s=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:s})},r=()=>this.disconnect(new P("page_frozen"));document.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",n,!1),window.addEventListener("online",n,!1),window.addEventListener("resume",n,!1),window.addEventListener("freeze",r,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",e,!1),window.removeEventListener("focus",n,!1),window.removeEventListener("online",n,!1),window.removeEventListener("resume",n,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(e){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:e.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(e))}}const Gr=["cable","action-cable"],Qr="/cable",be=(t,e)=>{for(let n of Gr){let r=t.head.querySelector(`meta[name='${n}-${e}']`);if(r)return r.getAttribute("content")}},$t=t=>t.match(/wss?:\/\//)?t:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${t}`:t,Yr=()=>{if(typeof document<"u"&&document.head){let t=be(document,"url");if(t)return $t(t)}return $t(Qr)},Zr=()=>{if(typeof document<"u"&&document.head){let t=be(document,"history-timestamp");if(t)return t|0}},es=()=>{if(typeof document<"u"&&document.head)return be(document,"token")},ts=()=>{if(typeof document<"u"&&document.head)return be(document,"token-param")};function ns(t,e){typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),t=t||Yr(),e=e||{},e.historyTimestamp||(e.historyTimestamp=Zr());let n=es();if(n){let u=ts();e.auth=Object.assign({token:n,param:u},e.auth||{})}e=Object.assign({},Ft,e);let{logLevel:r,logger:s,pingInterval:i,reconnectStrategy:o,maxMissingPings:c,maxReconnectAttempts:l}=e;return s=e.logger=e.logger||new Kr(r),o=e.reconnectStrategy=e.reconnectStrategy||Lt(i),e.monitor!==!1&&(e.monitor=e.monitor||new Xr({pingInterval:i,reconnectStrategy:o,maxMissingPings:c,maxReconnectAttempts:l,logger:s})),Mr(t,e)}function rs(t,e){let n=ns(t,e);return new Vr(n)}class ss{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(e,n,r={},s={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(i=>{if(i&&OpenC3Auth.setTokens(),this._cable==null){let o=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);o=new URL(o,document.baseURI).href,this._cable=rs(o)}return this._cable.subscriptions.create({channel:e,...s},r)})}recordPing(){}}we("l",ss);function $e(t){return is.test(t)}const is=/^-?[0-9]+$/;function qt(t){return os.test(t)}const os=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Dt(t,e){const n=Number.parseFloat(t),r=String(n),s=Bt(t),i=Bt(r);return!!(s===i||(e==null?void 0:e.approx)===!0&&!$e(t)&&i.length>=14&&s.startsWith(i.substring(0,14)))}let te=function(t){return t.underflow="underflow",t.overflow="overflow",t.truncate_integer="truncate_integer",t.truncate_float="truncate_float",t}({});function cs(t){if(Dt(t,{approx:!1}))return;if($e(t))return te.truncate_integer;const e=Number.parseFloat(t);return Number.isFinite(e)?e===0?te.underflow:te.truncate_float:te.overflow}function Bt(t){return t.replace(as,"").replace(us,"").replace(hs,"").replace(ls,"")}const as=/[eE][+-]?\d+$/,ls=/^-?(0*)?/,us=/\./,hs=/0+$/;class ds{constructor(e){if(re(this,"isLosslessNumber",!0),!qt(e))throw new Error(`Invalid number (value: "${e}")`);this.value=e}valueOf(){const e=cs(this.value);if(e===void 0||e===te.truncate_float)return Number.parseFloat(this.value);if($e(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${e} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function fs(t){return t&&typeof t=="object"&&t.isLosslessNumber===!0||!1}function ps(t){return new ds(t)}function gs(t,e){return qe({"":t},"",t,e)}function qe(t,e,n,r){return Array.isArray(n)?r.call(t,e,bs(n,r)):n&&typeof n=="object"&&!fs(n)?r.call(t,e,ms(n,r)):r.call(t,e,n)}function ms(t,e){for(const n of Object.keys(t)){const r=qe(t,n,t[n],e);r!==void 0?t[n]=r:delete t[n]}return t}function bs(t,e){for(let n=0;n<t.length;n++)t[n]=qe(t,String(n),t[n],e);return t}function ys(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ps,r=0;const s=c();return y(s),S(),e?gs(s,e):s;function i(){if(t.charCodeAt(r)===xs){r++,u();const b={};let E=!0;for(;r<t.length&&t.charCodeAt(r)!==zt;){E?E=!1:(g(),u());const J=r,ne=h();if(ne===void 0){T();return}u(),d();const We=c();if(We===void 0){U();return}Object.prototype.hasOwnProperty.call(b,ne)&&!De(We,b[ne])&&L(ne,J+1),b[ne]=We}return t.charCodeAt(r)!==zt&&O(),r++,b}}function o(){if(t.charCodeAt(r)===Os){r++,u();const b=[];let E=!0;for(;r<t.length&&t.charCodeAt(r)!==Jt;){E?E=!1:g();const J=c();f(J),b.push(J)}return t.charCodeAt(r)!==Jt&&I(),r++,b}}function c(){u();const b=h()??p()??i()??o()??l("true",!0)??l("false",!1)??l("null",null);return u(),b}function l(b,E){if(t.slice(r,r+b.length)===b)return r+=b.length,E}function u(){for(;_s(t.charCodeAt(r));)r++}function h(){if(t.charCodeAt(r)===Be){r++;let b="";for(;r<t.length&&t.charCodeAt(r)!==Be;){if(t.charCodeAt(r)===Es){const E=t[r+1],J=Ss[E];J!==void 0?(b+=J,r++):E==="u"?ye(t.charCodeAt(r+2))&&ye(t.charCodeAt(r+3))&&ye(t.charCodeAt(r+4))&&ye(t.charCodeAt(r+5))?(b+=String.fromCharCode(Number.parseInt(t.slice(r+2,r+6),16)),r+=5):Je(r):F(r)}else vs(t.charCodeAt(r))?b+=t[r]:z(t[r]);r++}return _(),r++,b}}function p(){const b=r;if(t.charCodeAt(r)===Wt&&(r++,w(b)),t.charCodeAt(r)===Me)r++;else if(ws(t.charCodeAt(r)))for(r++;_e(t.charCodeAt(r));)r++;if(t.charCodeAt(r)===Ns)for(r++,w(b);_e(t.charCodeAt(r));)r++;if(t.charCodeAt(r)===$s||t.charCodeAt(r)===Fs)for(r++,(t.charCodeAt(r)===Wt||t.charCodeAt(r)===ks)&&r++,w(b);_e(t.charCodeAt(r));)r++;if(r>b)return n(t.slice(b,r))}function g(){if(t.charCodeAt(r)!==js)throw new SyntaxError(`Comma ',' expected after value ${A()}`);r++}function d(){if(t.charCodeAt(r)!==Is)throw new SyntaxError(`Colon ':' expected after property name ${A()}`);r++}function y(b){if(b===void 0)throw new SyntaxError(`JSON value expected ${A()}`)}function f(b){if(b===void 0)throw new SyntaxError(`Array item expected ${A()}`)}function S(){if(r<t.length)throw new SyntaxError(`Expected end of input ${A()}`)}function w(b){if(!_e(t.charCodeAt(r))){const E=t.slice(b,r);throw new SyntaxError(`Invalid number '${E}', expecting a digit ${A()}`)}}function _(){if(t.charCodeAt(r)!==Be)throw new SyntaxError(`End of string '"' expected ${A()}`)}function T(){throw new SyntaxError(`Quoted object key expected ${A()}`)}function L(b,E){throw new SyntaxError(`Duplicate key '${b}' encountered at position ${E}`)}function O(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${A()}`)}function I(){throw new SyntaxError(`Array item or end of array ']' expected ${A()}`)}function z(b){throw new SyntaxError(`Invalid character '${b}' ${j()}`)}function F(b){const E=t.slice(b,b+2);throw new SyntaxError(`Invalid escape character '${E}' ${j()}`)}function U(){throw new SyntaxError(`Object value expected after ':' ${j()}`)}function Je(b){const E=t.slice(b,b+6);throw new SyntaxError(`Invalid unicode character '${E}' ${j()}`)}function j(){return`at position ${r}`}function K(){return r<t.length?`but got '${t[r]}'`:"but reached end of input"}function A(){return`${K()} ${j()}`}}function _s(t){return t===Rs||t===As||t===Cs||t===Ts}function ye(t){return t>=Me&&t<=ze||t>=Ls&&t<=qs||t>=Us&&t<=Ds}function _e(t){return t>=Me&&t<=ze}function ws(t){return t>=Ps&&t<=ze}function vs(t){return t>=32&&t<=1114111}function De(t,e){return t===e?!0:Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((n,r)=>De(n,e[r])):Mt(t)&&Mt(e)?[...new Set([...Object.keys(t),...Object.keys(e)])].every(n=>De(t[n],e[n])):!1}function Mt(t){return typeof t=="object"&&t!==null}const Ss={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
7
|
+
`,r:"\r",t:" "},Es=92,xs=123,zt=125,Os=91,Jt=93,Rs=32,As=10,Cs=9,Ts=13,Be=34,ks=43,Wt=45,Me=48,Ps=49,ze=57,js=44,Ns=46,Is=58,Ls=65,Us=97,Fs=69,$s=101,qs=70,Ds=102;function Ht(t,e,n,r){return s(t);function s(l,u){if(Array.isArray(r)){const h=r.find(p=>p.test(l));if(h){const p=h.stringify(l);if(typeof p!="string"||!qt(p))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${p})`);return p}}if(typeof l=="boolean"||typeof l=="number"||typeof l=="string"||l===null||l instanceof Date||l instanceof Boolean||l instanceof Number||l instanceof String)return JSON.stringify(l);if(l!=null&&l.isLosslessNumber||typeof l=="bigint")return l.toString();if(Array.isArray(l))return i(l);if(l&&typeof l=="object")return o(l)}function i(l,u){if(l.length===0)return"[]";let h="[";for(let p=0;p<l.length;p++){const g=l[p];typeof g<"u"&&typeof g!="function"?h+=s(g):h+="null",p<l.length-1&&(h+=",")}return h+="]",h}function o(l,u){if(typeof l.toJSON=="function")return Ht(l.toJSON(),e,n,void 0);const h=Array.isArray(e)?e.map(String):Object.keys(l);if(h.length===0)return"{}";let p=!0,g="{";for(const d of h){const y=l[d];if(c(d,y)){p?p=!1:g+=",";const f=JSON.stringify(d);g+=`${f}:`,g+=s(y)}}return g+="}",g}function c(l,u){return typeof u<"u"&&typeof u!="function"&&typeof u!="symbol"}}function Bs(t){return Dt(t)?parseFloat(t):BigInt(t)}class Ms{constructor(){re(this,"id",1)}async exec(e,n,r={},s={},i=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,s.manual=!0,(await Ne.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...s},timeout:i,transformRequest:[(o,c)=>Ht(o)],transformResponse:[o=>ys(o,void 0,Bs)]})).data.result}catch(o){let c=new Error;throw o.response?(c.name=o.response.data.error.data.class,c.message=o.response.data.error.data.message,c.object=o.response.data.error):o.request?(c.name="Request error",c.message="Request error, no response received"):c.name="Unknown error",c}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...r){return this.exec("interface_cmd",[e,n,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,n,r){return this.exec("get_item",[e,n,r])}get_param(e,n,r){return this.exec("get_param",[e,n,r])}get_parameter(e,n,r){return this.exec("get_param",[e,n,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,n){return this.exec("get_tlm",[e,n])}get_telemetry(e,n){return this.exec("get_tlm",[e,n])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,n=!1){return this.exec("get_all_tlm_names",[e],{hidden:n})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}get_all_tlm_item_names(e){return this.exec("get_all_tlm_item_names",[e])}async get_tlm_packet(e,n,r,s=30){const i=await this.exec("get_tlm_packet",[e,n],{type:r,stale_time:s});if(i!=null){let o=i.length,c=null;for(let l=0;l<o;l++)c=this.decode_openc3_type(i[l][1]),c!==null&&(i[l][1]=c)}return i}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,r=null){let s={stale_time:n};r!==null&&(s.cache_timeout=r);const i=await this.exec("get_tlm_values",[e],s,{},1e4);let o=i[0].length,c=null;for(let l=0;l<o;l++)c=this.decode_openc3_type(i[0][l]),c!==null&&(i[0][l]=c);return i}get_limits(e,n,r){return this.exec("get_limits",[e,n,r])}async tlm(e,n,r,s="CONVERTED"){let i=null;if(n===void 0)i=await this.exec("tlm",[e]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n))i=await this.exec("tlm",[e],{type:n});else{let c=new Error;throw c.name="TypeError",c.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,c}else i=await this.exec("tlm",[e,n,r],{type:s});let o=this.decode_openc3_type(i);return o!==null&&(i=o),i}async inject_tlm(e,n,r=null,s="CONVERTED"){await this.exec("inject_tlm",[e,n,r],{type:s})}set_tlm(e,n,r,s){return this.exec("set_tlm",[e,n,r],{type:s})}override_tlm(e,n,r,s){return this.exec("override_tlm",[e,n,r],{type:s})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,r,s){return this.exec("normalize_tlm",[e,n,r],{type:s})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,n=!1){return this.exec("get_all_cmd_names",[e],{hidden:n})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,n){return this.exec("get_cmd",[e,n])}get_command(e,n){return this.exec("get_cmd",[e,n])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,n,r,s="CONVERTED"){return this.exec("get_cmd_value",[e,n,r,s])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,r,s,i){let o=null;for(let c in s)Object.prototype.hasOwnProperty.call(s,c)&&(o=this.encode_openc3_type(s[c]),o!==null&&(s[c]=o));return this.exec(e,[n,r,s],{},i)}get_cmd_hazardous(e,n,r,s={}){return n===void 0?this.exec("get_cmd_hazardous",e,{},s):this._cmd("get_cmd_hazardous",e,n,r,s)}cmd(e,n,r,s={}){return n===void 0?this.exec("cmd",e,{},s):this._cmd("cmd",e,n,r,s)}cmd_no_range_check(e,n,r,s={}){return n===void 0?this.exec("cmd_no_range_check",e,{},s):this._cmd("cmd_no_range_check",e,n,r,s)}cmd_raw(e,n,r,s={}){return n===void 0?this.exec("cmd_raw",e,{},s):this._cmd("cmd_raw",e,n,r,s)}cmd_raw_no_range_check(e,n,r,s={}){return n===void 0?this.exec("cmd_raw_no_range_check",e,{},s):this._cmd("cmd_raw_no_range_check",e,n,r,s)}cmd_no_hazardous_check(e,n,r,s={}){return n===void 0?this.exec("cmd_no_hazardous_check",e,{},s):this._cmd("cmd_no_hazardous_check",e,n,r,s)}cmd_no_checks(e,n,r,s={}){return n===void 0?this.exec("cmd_no_checks",e,{},s):this._cmd("cmd_no_checks",e,n,r,s)}cmd_raw_no_hazardous_check(e,n,r,s={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},s):this._cmd("cmd_raw_no_hazardous_check",e,n,r,s)}cmd_raw_no_checks(e,n,r,s={}){return n===void 0?this.exec("cmd_raw_no_checks",e,{},s):this._cmd("cmd_raw_no_checks",e,n,r,s)}build_cmd(e,n,r){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,r)}build_command(e,n,r){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,r)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,n){return this.exec("send_raw",[e,n])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,n){return this.exec("load_config",[e,n])}save_config(e,n,r){return this.exec("save_config",[e,n,r])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,r){return this.exec("enable_limits",[e,n,r])}disable_limits(e,n,r){return this.exec("disable_limits",[e,n,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,n){return this.exec("set_setting",[e,n])}update_news(){return this.exec("update_news",[])}save_setting(e,n){return this.exec("set_setting",[e,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>i.toString(16).padStart(2,"0")).join("")}}}we("h",Ms)}}});
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openc3-cosmos-tool-cmdtlmserver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Melton
|
8
8
|
- Jason Thomas
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: " This plugin adds the OpenC3 COSMOS CmdTlmServer Tool\n"
|
15
14
|
email:
|
@@ -23,89 +22,88 @@ files:
|
|
23
22
|
- README.md
|
24
23
|
- Rakefile
|
25
24
|
- plugin.txt
|
26
|
-
- tools/cmdtlmserver/ArrayWidget-
|
27
|
-
- tools/cmdtlmserver/ArrayplotWidget-
|
28
|
-
- tools/cmdtlmserver/BarColumn-
|
29
|
-
- tools/cmdtlmserver/BlockWidget-
|
30
|
-
- tools/cmdtlmserver/ButtonWidget-
|
31
|
-
- tools/cmdtlmserver/CanvasWidget-
|
32
|
-
- tools/cmdtlmserver/CanvasdotWidget-
|
33
|
-
- tools/cmdtlmserver/CanvasimageWidget-
|
34
|
-
- tools/cmdtlmserver/CanvasimagevalueWidget-
|
35
|
-
- tools/cmdtlmserver/CanvaslabelWidget-
|
36
|
-
- tools/cmdtlmserver/CanvaslabelvalueWidget-
|
37
|
-
- tools/cmdtlmserver/CanvaslineWidget-
|
38
|
-
- tools/cmdtlmserver/CanvaslinevalueWidget-
|
39
|
-
- tools/cmdtlmserver/CheckbuttonWidget-
|
40
|
-
- tools/cmdtlmserver/CmdPacketsTab-
|
41
|
-
- tools/cmdtlmserver/CmdTlmServer-
|
42
|
-
- tools/cmdtlmserver/ComboboxWidget-
|
43
|
-
- tools/cmdtlmserver/DateWidget-
|
44
|
-
- tools/cmdtlmserver/DetailsDialog-
|
45
|
-
- tools/cmdtlmserver/DynamicWidget-
|
46
|
-
- tools/cmdtlmserver/FormatvalueWidget-
|
47
|
-
- tools/cmdtlmserver/Graph-
|
48
|
-
- tools/cmdtlmserver/GraphWidget-
|
49
|
-
- tools/cmdtlmserver/HorizontalWidget-
|
50
|
-
- tools/cmdtlmserver/HorizontalboxWidget-
|
51
|
-
- tools/cmdtlmserver/HorizontallineWidget-
|
52
|
-
- tools/cmdtlmserver/IframeWidget-
|
53
|
-
- tools/cmdtlmserver/ImageLoader-
|
54
|
-
- tools/cmdtlmserver/ImageviewerWidget-
|
55
|
-
- tools/cmdtlmserver/InterfacesTab-
|
56
|
-
- tools/cmdtlmserver/LabelWidget-
|
57
|
-
- tools/cmdtlmserver/LabelledWidget-
|
58
|
-
- tools/cmdtlmserver/LabelprogressbarWidget-
|
59
|
-
- tools/cmdtlmserver/LabelsparklineWidget-
|
60
|
-
- tools/cmdtlmserver/LabelvalueWidget-
|
61
|
-
- tools/cmdtlmserver/LabelvaluedescWidget-
|
62
|
-
- tools/cmdtlmserver/LabelvaluelimitsbarWidget-
|
63
|
-
- tools/cmdtlmserver/LabelvaluelimitscolumnWidget-
|
64
|
-
- tools/cmdtlmserver/LabelvaluerangebarWidget-
|
65
|
-
- tools/cmdtlmserver/Layout-
|
66
|
-
- tools/cmdtlmserver/LedWidget-
|
67
|
-
- tools/cmdtlmserver/LimitsbarWidget-
|
68
|
-
- tools/cmdtlmserver/LimitscolorWidget-
|
69
|
-
- tools/cmdtlmserver/LimitscolumnWidget-
|
70
|
-
- tools/cmdtlmserver/LinegraphWidget-
|
71
|
-
- tools/cmdtlmserver/MatrixbycolumnsWidget-
|
72
|
-
- tools/cmdtlmserver/ProgressbarWidget-
|
73
|
-
- tools/cmdtlmserver/RadiobuttonWidget-
|
74
|
-
- tools/cmdtlmserver/RadiogroupWidget-
|
75
|
-
- tools/cmdtlmserver/RangebarWidget-
|
76
|
-
- tools/cmdtlmserver/RawDialog-
|
77
|
-
- tools/cmdtlmserver/RollupWidget-
|
78
|
-
- tools/cmdtlmserver/RoutersTab-
|
79
|
-
- tools/cmdtlmserver/ScrollwindowWidget-
|
80
|
-
- tools/cmdtlmserver/SignalWidget-
|
81
|
-
- tools/cmdtlmserver/SpacerWidget-
|
82
|
-
- tools/cmdtlmserver/SparklineWidget-
|
83
|
-
- tools/cmdtlmserver/StatusTab-
|
84
|
-
- tools/cmdtlmserver/TabbookWidget-
|
85
|
-
- tools/cmdtlmserver/TargetsTab-
|
86
|
-
- tools/cmdtlmserver/TextboxWidget-
|
87
|
-
- tools/cmdtlmserver/TextfieldWidget-
|
88
|
-
- tools/cmdtlmserver/TimeWidget-
|
89
|
-
- tools/cmdtlmserver/TitleWidget-
|
90
|
-
- tools/cmdtlmserver/TlmPacketsTab-
|
91
|
-
- tools/cmdtlmserver/Updater-
|
92
|
-
- tools/cmdtlmserver/VWidget-
|
93
|
-
- tools/cmdtlmserver/ValueWidget-
|
94
|
-
- tools/cmdtlmserver/ValuelimitsbarWidget-
|
95
|
-
- tools/cmdtlmserver/ValuelimitscolumnWidget-
|
96
|
-
- tools/cmdtlmserver/ValuerangebarWidget-
|
97
|
-
- tools/cmdtlmserver/VerticalWidget-
|
98
|
-
- tools/cmdtlmserver/VerticalboxWidget-
|
99
|
-
- tools/cmdtlmserver/Widget-
|
100
|
-
- tools/cmdtlmserver/main-
|
25
|
+
- tools/cmdtlmserver/ArrayWidget-BbsN1dzF-ee2cfc7dad123cfaccf5.js
|
26
|
+
- tools/cmdtlmserver/ArrayplotWidget-CCKEyYIx-a00019e86008704efc46.js
|
27
|
+
- tools/cmdtlmserver/BarColumn-C6p07yWK-a95a551de7a97b26a986.js
|
28
|
+
- tools/cmdtlmserver/BlockWidget-DlCHbqZX-c390667024b5d4780d6b.js
|
29
|
+
- tools/cmdtlmserver/ButtonWidget-CtfJzCBR-9a325bb9d73eea161bde.js
|
30
|
+
- tools/cmdtlmserver/CanvasWidget-CqRlXc4r-fecb24efdf6f68a33ad2.js
|
31
|
+
- tools/cmdtlmserver/CanvasdotWidget--Xr_KsZs-840bf70c26d7888f4d66.js
|
32
|
+
- tools/cmdtlmserver/CanvasimageWidget-BPlj5QYK-148404626d26f39ae7a4.js
|
33
|
+
- tools/cmdtlmserver/CanvasimagevalueWidget-DVFGLt8f-228223ab8bc7ab0b61c6.js
|
34
|
+
- tools/cmdtlmserver/CanvaslabelWidget-CYNqmyP0-c9c9beb56e22552527cb.js
|
35
|
+
- tools/cmdtlmserver/CanvaslabelvalueWidget-B7yIDmsn-725d0c4e2daf6bda08ec.js
|
36
|
+
- tools/cmdtlmserver/CanvaslineWidget-BICdxX0Q-7c180d081ca1a967d997.js
|
37
|
+
- tools/cmdtlmserver/CanvaslinevalueWidget-Cq-Ddh0P-bdf272b782303e2bc8bb.js
|
38
|
+
- tools/cmdtlmserver/CheckbuttonWidget-B74AWeaW-de22da2f691ae5858bbf.js
|
39
|
+
- tools/cmdtlmserver/CmdPacketsTab-8938018b2c20935a31ff.js
|
40
|
+
- tools/cmdtlmserver/CmdTlmServer-3100bab0f78a7952a5f1.js
|
41
|
+
- tools/cmdtlmserver/ComboboxWidget-CtyKbEWb-7925168021879bcae865.js
|
42
|
+
- tools/cmdtlmserver/DateWidget-BEVSczU8-95d14f0b9ce5fc0b69a3.js
|
43
|
+
- tools/cmdtlmserver/DetailsDialog-DmEC5BTs-ae29c74b5a12a811ab58.js
|
44
|
+
- tools/cmdtlmserver/DynamicWidget-CfMtj7H8-dda9e71246a61119ef51.js
|
45
|
+
- tools/cmdtlmserver/FormatvalueWidget-DN12xymS-312eedcf339bb3a361e8.js
|
46
|
+
- tools/cmdtlmserver/Graph-Bgo0cjl3-34cca1d79d056287c70c.js
|
47
|
+
- tools/cmdtlmserver/GraphWidget-DurWDmpg-1d3f53de02fa1378a1c8.js
|
48
|
+
- tools/cmdtlmserver/HorizontalWidget-Cd_wl1b3-b4a1220511cbad208895.js
|
49
|
+
- tools/cmdtlmserver/HorizontalboxWidget-BcMTFBU--ebe35d30ef1038d848e8.js
|
50
|
+
- tools/cmdtlmserver/HorizontallineWidget-CXFqHclf-fa0e898fc84d1495ab9f.js
|
51
|
+
- tools/cmdtlmserver/IframeWidget-BPerHCCa-89189a6be7985eb8e47b.js
|
52
|
+
- tools/cmdtlmserver/ImageLoader-4N-7Gj61-e6e724f54c4470cc6855.js
|
53
|
+
- tools/cmdtlmserver/ImageviewerWidget-Cw_H_HmZ-79d50f4df25f701d60c0.js
|
54
|
+
- tools/cmdtlmserver/InterfacesTab-2d486c0457a95cc3e028.js
|
55
|
+
- tools/cmdtlmserver/LabelWidget-xrmcVeq8-870ee165781b2cf65c51.js
|
56
|
+
- tools/cmdtlmserver/LabelledWidget-D48QoyMk-8ef3423e6396375a66e4.js
|
57
|
+
- tools/cmdtlmserver/LabelprogressbarWidget-C_950t6g-2936a8a5b4b14474e12e.js
|
58
|
+
- tools/cmdtlmserver/LabelsparklineWidget-0KXQyPoU-da36e09f571b80924e16.js
|
59
|
+
- tools/cmdtlmserver/LabelvalueWidget-CQ06wWDK-1796e7cae5e984c98aaf.js
|
60
|
+
- tools/cmdtlmserver/LabelvaluedescWidget-Bo8zT01X-80efb25b4bedad034d9d.js
|
61
|
+
- tools/cmdtlmserver/LabelvaluelimitsbarWidget-BucTw8Yk-3294f1f5165c95dd609e.js
|
62
|
+
- tools/cmdtlmserver/LabelvaluelimitscolumnWidget-Dflb1hNd-a115105dee00eafa5323.js
|
63
|
+
- tools/cmdtlmserver/LabelvaluerangebarWidget-D8cbfXFM-ed365f14f0ddd33fc1ee.js
|
64
|
+
- tools/cmdtlmserver/Layout-Tf--nruw-77595e15c57a061b0dba.js
|
65
|
+
- tools/cmdtlmserver/LedWidget-qH_FthkK-1cfbae497162dcc3aefa.js
|
66
|
+
- tools/cmdtlmserver/LimitsbarWidget-B9lAB2RD-ba9cf8359583cfe6eeb1.js
|
67
|
+
- tools/cmdtlmserver/LimitscolorWidget-c6Qa6su7-87921f3fb3e7afc5de79.js
|
68
|
+
- tools/cmdtlmserver/LimitscolumnWidget-CcLs_443-604b2033bbe5db32cec6.js
|
69
|
+
- tools/cmdtlmserver/LinegraphWidget-BSVYLFo1-e8a98958fba9fb2e2fb9.js
|
70
|
+
- tools/cmdtlmserver/MatrixbycolumnsWidget-DXFpZTre-67f734ae3f31f19eb2a0.js
|
71
|
+
- tools/cmdtlmserver/ProgressbarWidget-iYGw8-Dc-ebd0bd2f7dd1a5a808fc.js
|
72
|
+
- tools/cmdtlmserver/RadiobuttonWidget-ytmoVZ3u-3a28b6b2ee47bb71a55d.js
|
73
|
+
- tools/cmdtlmserver/RadiogroupWidget-CusMBhKH-2ab564c7e2c5bd9ce708.js
|
74
|
+
- tools/cmdtlmserver/RangebarWidget-D_zGTtCa-8bfd7bef4ad63b9af243.js
|
75
|
+
- tools/cmdtlmserver/RawDialog-9d64be002d16366306d0.js
|
76
|
+
- tools/cmdtlmserver/RollupWidget-Dolsixyt-64fd8c2e5990b362afb3.js
|
77
|
+
- tools/cmdtlmserver/RoutersTab-12cdceede3476c777ebf.js
|
78
|
+
- tools/cmdtlmserver/ScrollwindowWidget-DV2nZuNi-622615ed3b3c3be199a7.js
|
79
|
+
- tools/cmdtlmserver/SignalWidget-d9-6h85k-6fb4be9567110de7f7f2.js
|
80
|
+
- tools/cmdtlmserver/SpacerWidget-BH0p2OLi-d2bd2a8e1f0b4014a44f.js
|
81
|
+
- tools/cmdtlmserver/SparklineWidget-coxi9r2g-93d3a65c88c064975334.js
|
82
|
+
- tools/cmdtlmserver/StatusTab-84eda227fff2c85ad6b1.js
|
83
|
+
- tools/cmdtlmserver/TabbookWidget-B1XKplGH-e22ec8d6a5c838c7c5fd.js
|
84
|
+
- tools/cmdtlmserver/TargetsTab-e4763d63ea20379aa310.js
|
85
|
+
- tools/cmdtlmserver/TextboxWidget-C-_M2M4l-e87fb9cd37972bf5d25b.js
|
86
|
+
- tools/cmdtlmserver/TextfieldWidget-C08N4JE8-1068f0ee1d4002e54079.js
|
87
|
+
- tools/cmdtlmserver/TimeWidget-DtwdEcFg-5a3bc19e8ab2a1804ae7.js
|
88
|
+
- tools/cmdtlmserver/TitleWidget-CT-aLcNb-f05601921aa733b9911e.js
|
89
|
+
- tools/cmdtlmserver/TlmPacketsTab-e5b98e3e4c15475a7a17.js
|
90
|
+
- tools/cmdtlmserver/Updater-30365f17f9b4eb94ca1e.js
|
91
|
+
- tools/cmdtlmserver/VWidget-DQqb7NVW-4602918435743a49de41.js
|
92
|
+
- tools/cmdtlmserver/ValueWidget-C6RanBj3-1821aa6088bd82d581f4.js
|
93
|
+
- tools/cmdtlmserver/ValuelimitsbarWidget-B3bvjfxc-4f2349bfcb30c31119c1.js
|
94
|
+
- tools/cmdtlmserver/ValuelimitscolumnWidget-QvhI6EcE-b0440ffbb0b94727592e.js
|
95
|
+
- tools/cmdtlmserver/ValuerangebarWidget-Dt3K9BnC-5a6ec326052278b4ed3d.js
|
96
|
+
- tools/cmdtlmserver/VerticalWidget-BIIViZgI-3d41ce14c58d12499a92.js
|
97
|
+
- tools/cmdtlmserver/VerticalboxWidget-DY72fLHW-f459428e4aed8df3e9d9.js
|
98
|
+
- tools/cmdtlmserver/Widget-oyqWpFXJ-18d727bbb6fbb5d9c2da.js
|
99
|
+
- tools/cmdtlmserver/main-3edbee545cea57a5f76d.js
|
101
100
|
- tools/cmdtlmserver/main.js
|
102
|
-
- tools/cmdtlmserver/services-
|
101
|
+
- tools/cmdtlmserver/services-61aec8b87d81fdbc4b64.js
|
103
102
|
homepage: https://github.com/OpenC3/cosmos
|
104
103
|
licenses:
|
105
104
|
- AGPL-3.0-only
|
106
105
|
- Nonstandard
|
107
106
|
metadata: {}
|
108
|
-
post_install_message:
|
109
107
|
rdoc_options: []
|
110
108
|
require_paths:
|
111
109
|
- lib
|
@@ -120,8 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
118
|
- !ruby/object:Gem::Version
|
121
119
|
version: '0'
|
122
120
|
requirements: []
|
123
|
-
rubygems_version: 3.
|
124
|
-
signing_key:
|
121
|
+
rubygems_version: 3.6.7
|
125
122
|
specification_version: 4
|
126
123
|
summary: OpenC3 COSMOS CmdTlmServer Tool
|
127
124
|
test_files: []
|
@@ -1,2 +0,0 @@
|
|
1
|
-
System.register(["./main-4bad43bda3e8a8483ba9.js","vue","./DetailsDialog-BvbziA7Y-a6d191d4c24ae44227f5.js","single-spa","./VWidget-C4spAawK-e7dee3c34a6d790327ec.js","vue-router","vuex","vuetify","./Widget-fRCERxGf-6cf6e886d2d5ee76cfc6.js"],function(D,F){"use strict";var u,r,m,h,s,p,g,o,w,f,v,x,y,C,k,V;return{setters:[e=>{u=e.s},e=>{r=e.resolveComponent,m=e.createElementBlock,h=e.openBlock,s=e.createVNode,p=e.normalizeStyle,g=e.normalizeClass,o=e.withCtx,w=e.Fragment,f=e.renderList,v=e.createBlock,x=e.withModifiers,y=e.createTextVNode,C=e.toDisplayString},e=>{k=e.P},null,e=>{V=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:k},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[V],computed:{aging(){return{"--aging":this.grayLevel}},rows:function(){return(this.height-16)/24}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){let t="RAW";return this.parameters[9]&&(t=this.parameters[9]),t},formatValue:function(t){let a="";if(t&&t.raw){let P=" ",S=`
|
2
|
-
`,i=0,l=0;const d=this.bytesPerWord*this.wordsPerRow;for(const c of t.raw)this.addrFormat&&i===0&&(a+=sprintf(this.addrFormat,l),l+=d),a+=sprintf(this.formatter,c),i+=1,i%d===0?(i=0,a+=S):i%this.bytesPerWord===0&&(a+=P)}else a=t;return a}}},W={class:"block-widget-container"};function B(t,a,P,S,i,l){const d=r("v-textarea"),c=r("v-list-item-title"),M=r("v-list-item"),R=r("v-list"),_=r("v-menu"),b=r("details-dialog");return h(),m("div",W,[s(d,{variant:"solo",density:"compact",readonly:"","no-resize":"","hide-details":"",rows:l.rows,width:t.width,"model-value":t._value,class:g(t.valueClass),style:p([t.computedStyle,l.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["rows","width","model-value","class","style","onContextmenu"]),s(_,{modelValue:t.contextMenuShown,"onUpdate:modelValue":a[0]||(a[0]=n=>t.contextMenuShown=n),target:[t.x,t.y]},{default:o(()=>[s(R,null,{default:o(()=>[(h(!0),m(w,null,f(t.contextMenuOptions,(n,z)=>(h(),v(M,{key:z,onClick:x(n.action,["stop"])},{default:o(()=>[s(c,null,{default:o(()=>[y(C(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),s(b,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":a[1]||(a[1]=n=>t.viewDetails=n)},null,8,["target-name","packet-name","item-name","modelValue"])])}const L=D("default",u(e,[["render",B],["__scopeId","data-v-4d4589c2"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-fRCERxGf-6cf6e886d2d5ee76cfc6.js","vue","./main-4bad43bda3e8a8483ba9.js","vue-router","single-spa","vuex","vuetify"],function(s,a){"use strict";var t,l,n,c;return{setters:[e=>{t=e.o},e=>{l=e.createElementBlock,n=e.openBlock},e=>{c=e.s},null,null,null,null],execute:function(){const e={mixins:[t]},u=["cx","cy","r","fill"];function i(r,f,m,p,x,v){return n(),l("circle",{cx:r.parameters[0],cy:r.parameters[1],r:r.parameters[3],fill:r.parameters[2]},null,8,u)}const o=s("default",c(e,[["render",i]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-fRCERxGf-6cf6e886d2d5ee76cfc6.js","vue","./main-4bad43bda3e8a8483ba9.js","vue-router","single-spa","vuex","vuetify"],function(o,f){"use strict";var r,l,n,s,i;return{setters:[e=>{r=e.o},e=>{l=e.createElementBlock,n=e.openBlock,s=e.toDisplayString},e=>{i=e.s},null,null,null,null],execute:function(){const e={mixins:[r],computed:{fillColor(){return this.parameters[3]?this.parameters[3]:"black"}}},a=["x","y","fill"];function u(t,m,x,y,g,c){return n(),l("text",{x:t.parameters[0],y:t.parameters[1],fill:c.fillColor},s(t.parameters[2]),9,a)}const p=o("default",i(e,[["render",u]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-fRCERxGf-6cf6e886d2d5ee76cfc6.js","vue","./main-4bad43bda3e8a8483ba9.js","vue-router","single-spa","vuex","vuetify"],function(i,p){"use strict";var l,s,n,a,c;return{setters:[e=>{l=e.o},e=>{s=e.createElementBlock,n=e.openBlock,a=e.normalizeStyle},e=>{c=e.s},null,null,null,null],execute:function(){const e={mixins:[l],computed:{calcStyle(){let t="black";this.parameters[4]&&(t=this.parameters[4]);let r=1;return this.parameters[5]&&(r=this.parameters[5]),"stroke:"+t+";stroke-width:"+r}}},u=["x1","y1","x2","y2"];function o(t,r,f,x,k,m){return n(),s("line",{x1:t.parameters[0],y1:t.parameters[1],x2:t.parameters[2],y2:t.parameters[3],style:a(m.calcStyle)},null,12,u)}const y=i("default",c(e,[["render",o]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-fRCERxGf-6cf6e886d2d5ee76cfc6.js","vue","./main-4bad43bda3e8a8483ba9.js","vue-router","single-spa","vuex","vuetify"],function(c,h){"use strict";var t,a,n,s,o,r;return{setters:[e=>{t=e.o},e=>{a=e.resolveComponent,n=e.createBlock,s=e.openBlock,o=e.normalizeStyle},e=>{r=e.s},null,null,null,null],execute:function(){const e={mixins:[t],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.label=this.parameters[0],this.parameters[1]&&(this.value=!0)},methods:{checked(){return this.value}}};function i(d,u,f,k,l,y){const m=a("v-checkbox");return s(),n(m,{"hide-details":"",density:"compact",label:l.label,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=v=>l.value=v),style:o(d.computedStyle)},null,8,["label","modelValue","style"])}const p=c("default",r(e,[["render",i]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-fRCERxGf-6cf6e886d2d5ee76cfc6.js","vue","./main-4bad43bda3e8a8483ba9.js","vue-router","single-spa","vuex","vuetify"],function(i,p){"use strict";var l,s,n,o,r,u;return{setters:[e=>{l=e.o},e=>{s=e.resolveComponent,n=e.createBlock,o=e.openBlock,r=e.normalizeStyle},e=>{u=e.s},null,null,null,null],execute:function(){const e={mixins:[l],data(){return{items:[],value:null}},created(){this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}};function c(m,a,f,h,t,x){const v=s("v-select");return o(),n(v,{"hide-details":"",density:"compact",variant:"outlined",items:t.items,modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=d=>t.value=d),style:r(m.computedStyle)},null,8,["items","modelValue","style"])}const y=i("default",u(e,[["render",c]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-fRCERxGf-6cf6e886d2d5ee76cfc6.js","./main-4bad43bda3e8a8483ba9.js","vue","vue-router","single-spa","vuex","vuetify"],function(d,p){"use strict";var l,a,n,s,r,u,o;return{setters:[e=>{l=e.o},e=>{a=e.s,n=e.P},e=>{s=e.resolveComponent,r=e.createBlock,u=e.openBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Date",dateValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.dateValue=this.formatDate(new Date,this.screenTimeZone)},methods:{text(){return this.dateValue},date(){return this.dateValue}}};function c(m,i,v,y,t,x){const h=s("v-text-field");return u(),r(h,{modelValue:t.dateValue,"onUpdate:modelValue":i[0]||(i[0]=f=>t.dateValue=f),label:t.label,style:o(m.computedStyle),type:"date","hide-details":""},null,8,["modelValue","label","style"])}const V=d("default",a(e,[["render",c]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-4bad43bda3e8a8483ba9.js","vue"],function(le,De){"use strict";var $,A,j,M,F,J,H,W,B,h,Y,w,Q,i,b,I,s,S,ee,x,T,m,N,E,te,ie,q,ae,se;return{setters:[p=>{$=p.s,A=p.P,j=p.N,M=p.A,F=p.R,J=p.O,H=p.l,W=p.$,B=p.c},p=>{h=p.resolveComponent,Y=p.createElementBlock,w=p.openBlock,Q=p.withModifiers,i=p.createVNode,b=p.createBlock,I=p.createCommentVNode,s=p.withCtx,S=p.withDirectives,ee=p.normalizeClass,x=p.createElementVNode,T=p.mergeProps,m=p.createTextVNode,N=p.vShow,E=p.toDisplayString,te=p.normalizeProps,ie=p.guardReactiveProps,q=p.withKeys,ae=p.Fragment,se=p.renderList}],execute:function(){const p={props:{modelValue:Boolean,title:{type:String,required:!0},legendPosition:{type:String,required:!0},items:{type:Array,required:!0},graphMinY:{type:Number},graphMaxY:{type:Number},lines:{type:Array,required:!0},colors:{type:Array,required:!0},startDateTime:{type:Number},endDateTime:{type:Number},timeZone:{type:String,required:!0}},mixins:[A],data:function(){return{tab:0,graph:{},legendPositions:["top","bottom","left","right"],startDate:null,startTime:null,endDate:null,endTime:null,lineHeaders:[{title:"Y Value",value:"yValue"},{title:"Color",value:"color"},{title:"Actions",value:"actions",sortable:!1}],itemHeaders:[{title:"Target Name",value:"targetName"},{title:"Packet Name",value:"packetName"},{title:"Item Name",value:"itemName"},{title:"Actions",value:"actions",sortable:!1}],rules:{date:t=>{if(!t)return!0;try{return W(B(t,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch{return"Invalid date (YYYY-MM-DD)"}},time:t=>{if(!t)return!0;try{return W(B(t,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch{return"Invalid time (HH:MM:SS)"}}}}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},editItems:function(){if(!this.items)return[];let t=0;return this.items.map(e=>(t+=1,{...e,itemId:t}))}},created(){if(this.graph={title:this.title,legendPosition:this.legendPosition,items:this.items,graphMinY:this.graphMinY,graphMaxY:this.graphMaxY,lines:[...this.lines]},this.startDateTime){let t=H(this.startDateTime/1e6);this.startDate=this.formatDate(t,this.timeZone),this.startTime=this.formatTimeHMS(t,this.timeZone)}else{let t=new Date-36e5;this.startDate=this.formatDate(t,this.timeZone),this.startTime=this.formatTimeHMS(t,this.timeZone)}if(this.endDateTime){let t=H(this.endDateTime/1e6);this.endDate=this.formatDate(t,this.timeZone),this.endTime=this.formatTimeHMS(t,this.timeZone)}},methods:{closeOk(){this.startDate&&this.startTime?this.graph.startDateTime=this.startDate+" "+this.startTime:this.graph.startDateTime=null,this.endDate&&this.endTime?this.graph.endDateTime=this.endDate+" "+this.endTime:this.graph.endDateTime=null,this.$emit("ok",this.graph)},addLine(){this.graph.lines.push({yValue:0,color:"white"})},removeLine(t){let e=this.graph.lines.indexOf(t);this.graph.lines.splice(e,1)}}},re={class:"edit-box"},oe={class:"edit-box"},ne={class:"edit-box"},de={class:"edit-box"};function he(t,e,a,u,l,r){const n=h("v-spacer"),o=h("v-toolbar"),v=h("v-tab"),g=h("v-tabs"),y=h("v-text-field"),D=h("v-card-text"),_=h("v-col"),V=h("v-select"),f=h("v-row"),z=h("v-tabs-window-item"),U=h("v-btn"),R=h("v-list-item"),k=h("v-icon"),C=h("v-tooltip"),G=h("v-list"),L=h("v-data-table"),Z=h("v-tabs-window"),K=h("v-card-actions"),d=h("v-card"),P=h("v-dialog");return w(),b(P,{modelValue:r.show,"onUpdate:modelValue":e[12]||(e[12]=c=>r.show=c),onKeydown:e[13]||(e[13]=q(c=>t.$emit("cancel"),["esc"])),"max-width":"700"},{default:s(()=>[i(o,{height:"24"},{default:s(()=>[i(n),e[14]||(e[14]=x("span",null," Edit Graph ",-1)),i(n)]),_:1}),i(d,{class:"pa-3"},{default:s(()=>[i(g,{modelValue:t.tab,"onUpdate:modelValue":e[0]||(e[0]=c=>t.tab=c),class:"ml-3"},{default:s(()=>[i(v,{value:"0"},{default:s(()=>e[15]||(e[15]=[m(" Settings ")])),_:1}),i(v,{value:"1"},{default:s(()=>e[16]||(e[16]=[m(" Scale / Lines ")])),_:1}),i(v,{value:"2"},{default:s(()=>e[17]||(e[17]=[m(" Items ")])),_:1})]),_:1},8,["modelValue"]),i(Z,{modelValue:t.tab,"onUpdate:modelValue":e[10]||(e[10]=c=>t.tab=c)},{default:s(()=>[i(z,{value:"0",eager:""},{default:s(()=>[x("div",re,[i(f,null,{default:s(()=>[i(_,null,{default:s(()=>[i(D,{class:"pa-0"},{default:s(()=>[i(y,{class:"pb-2",label:"Title",modelValue:t.graph.title,"onUpdate:modelValue":e[1]||(e[1]=c=>t.graph.title=c),"hide-details":""},null,8,["modelValue"])]),_:1})]),_:1}),i(_,null,{default:s(()=>[i(V,{label:"Legend Position","hide-details":"",items:t.legendPositions,modelValue:t.graph.legendPosition,"onUpdate:modelValue":e[2]||(e[2]=c=>t.graph.legendPosition=c),style:{"max-width":"280px"}},null,8,["items","modelValue"])]),_:1})]),_:1})]),x("div",oe,[i(D,{class:"pa-0"},{default:s(()=>e[18]||(e[18]=[m(" Select a start date/time for the graph. Leave blank for start now. ")])),_:1}),i(f,null,{default:s(()=>[i(_,null,{default:s(()=>[i(y,{label:"Start Date",name:`date${Date.now()}`,rules:[t.rules.date],modelValue:t.startDate,"onUpdate:modelValue":e[3]||(e[3]=c=>t.startDate=c),type:"date"},null,8,["name","rules","modelValue"])]),_:1}),i(_,null,{default:s(()=>[i(y,{label:"Start Time",name:`time${Date.now()}`,rules:[t.rules.time],modelValue:t.startTime,"onUpdate:modelValue":e[4]||(e[4]=c=>t.startTime=c),type:"time",step:"1"},null,8,["name","rules","modelValue"])]),_:1})]),_:1}),i(D,{class:"pa-0"},{default:s(()=>e[19]||(e[19]=[m(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")])),_:1}),i(f,null,{default:s(()=>[i(_,null,{default:s(()=>[i(y,{label:"End Date",name:`date${Date.now()}`,rules:[t.rules.date],modelValue:t.endDate,"onUpdate:modelValue":e[5]||(e[5]=c=>t.endDate=c),type:"date"},null,8,["name","rules","modelValue"])]),_:1}),i(_,null,{default:s(()=>[i(y,{label:"End Time",name:`time${Date.now()}`,rules:[t.rules.time],modelValue:t.endTime,"onUpdate:modelValue":e[6]||(e[6]=c=>t.endTime=c),type:"time",step:"1"},null,8,["name","rules","modelValue"])]),_:1})]),_:1})])]),_:1}),i(z,{value:"1",eager:""},{default:s(()=>[x("div",ne,[i(D,{class:"pa-0"},{default:s(()=>e[20]||(e[20]=[m(" Set a min or max Y value to override automatic scaling ")])),_:1}),i(f,{dense:""},{default:s(()=>[i(_,{class:"px-2"},{default:s(()=>[i(y,{"hide-details":"",label:"Min Y Axis (Optional)",modelValue:t.graph.graphMinY,"onUpdate:modelValue":e[7]||(e[7]=c=>t.graph.graphMinY=c),type:"number"},null,8,["modelValue"])]),_:1}),i(_,{class:"px-2"},{default:s(()=>[i(y,{"hide-details":"",label:"Max Y Axis (Optional)",modelValue:t.graph.graphMaxY,"onUpdate:modelValue":e[8]||(e[8]=c=>t.graph.graphMaxY=c),type:"number"},null,8,["modelValue"])]),_:1})]),_:1})]),x("div",de,[i(G,{density:"compact",class:"horizontal-lines"},{default:s(()=>[i(R,null,{default:s(()=>[e[22]||(e[22]=x("span",{style:{"padding-top":"5px"}}," Add horizontal lines to the graph ",-1)),i(n),i(U,{onClick:e[9]||(e[9]=c=>r.addLine())},{default:s(()=>e[21]||(e[21]=[m(" New Line ")])),_:1})]),_:1}),(w(!0),Y(ae,null,se(t.graph.lines,(c,X)=>(w(),b(R,{key:X,value:c,color:"primary"},{default:s(()=>[i(f,null,{default:s(()=>[i(_,null,{default:s(()=>[i(y,{label:"Y Value",modelValue:c.yValue,"onUpdate:modelValue":O=>c.yValue=O},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),i(_,null,{default:s(()=>[i(V,{label:"Color","hide-details":"",items:a.colors,modelValue:c.color,"onUpdate:modelValue":O=>c.color=O},null,8,["items","modelValue","onUpdate:modelValue"])]),_:2},1024),i(_,null,{default:s(()=>[i(C,{text:"Remove",location:"top"},{activator:s(({props:O})=>[i(k,T({ref_for:!0},O,{style:{padding:"30px"},onClick:ke=>r.removeLine(c)}),{default:s(()=>e[23]||(e[23]=[m("mdi-delete")])),_:2},1040,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})])]),_:1}),i(z,{value:"2",eager:""},{default:s(()=>[i(L,{"item-key":"itemId",class:"elevation-1 my-2","data-test":"edit-graph-items",headers:t.itemHeaders,items:r.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},{"item.actions":s(({item:c})=>[i(C,{text:"Remove",location:"top"},{activator:s(({props:X})=>[i(k,T(X,{onClick:O=>t.$emit("remove",c)}),{default:s(()=>e[24]||(e[24]=[m(" mdi-delete ")])),_:2},1040,["onClick"])]),_:2},1024)]),"no-data":s(()=>e[25]||(e[25]=[x("span",null," Currently no items on this graph ",-1)])),_:1},8,["headers","items"])]),_:1})]),_:1},8,["modelValue"]),i(K,{class:"px-2"},{default:s(()=>[i(n),i(U,{variant:"outlined",onClick:e[11]||(e[11]=c=>t.$emit("cancel"))},{default:s(()=>e[26]||(e[26]=[m(" Cancel ")])),_:1}),i(U,{variant:"flat",onClick:r.closeOk},{default:s(()=>e[27]||(e[27]=[m(" Ok ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ue=$(p,[["render",he]]),me={props:{modelValue:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{title:"NONE",value:"DECOM"},{title:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{title:"REDUCED_HOUR",value:"REDUCED_HOUR"},{title:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},limitsNames(){return Object.keys(this.limits)}},async created(){this.editItem={...this.item},new J().get_item(this.item.targetName,this.item.packetName,this.item.itemName).then(t=>{for(const[e,a]of Object.entries(t.limits))Object.keys(a).includes("red_low")&&(this.limits[e]=Object.values(a));this.limitsName=Object.keys(this.limits).find(e=>this.limits[e]+""==this.editItem.limits+"")})}},ce={key:0},pe={class:"pa-3"};function ge(t,e,a,u,l,r){const n=h("v-card-title"),o=h("v-select"),v=h("v-card-text"),g=h("v-spacer"),y=h("v-btn"),D=h("v-card-actions"),_=h("v-card"),V=h("v-dialog");return w(),b(V,{modelValue:r.show,"onUpdate:modelValue":e[9]||(e[9]=f=>r.show=f),width:"400",onKeydown:e[10]||(e[10]=q(f=>t.success(),["enter"]))},{default:s(()=>[i(_,null,{default:s(()=>[i(n,{class:"mb-2"},{default:s(()=>e[11]||(e[11]=[m("Edit Item")])),_:1}),i(v,null,{default:s(()=>[i(o,{variant:"outlined","hide-details":"",label:"Value Type",items:t.valueTypes,modelValue:t.editItem.valueType,"onUpdate:modelValue":e[0]||(e[0]=f=>t.editItem.valueType=f),class:"mb-2"},null,8,["items","modelValue"]),i(o,{variant:"outlined","hide-details":"",label:"Reduction",items:t.reduction,modelValue:t.editItem.reduced,"onUpdate:modelValue":e[1]||(e[1]=f=>t.editItem.reduced=f),class:"mb-2"},null,8,["items","modelValue"]),i(o,{variant:"outlined","hide-details":"",label:"Reduced Type",items:t.reducedTypes,disabled:t.editItem.reduced==="DECOM",modelValue:t.editItem.reducedType,"onUpdate:modelValue":e[2]||(e[2]=f=>t.editItem.reducedType=f),class:"mb-2"},null,8,["items","disabled","modelValue"]),i(o,{variant:"outlined","hide-details":"",label:"Color",items:a.colors,modelValue:t.editItem.color,"onUpdate:modelValue":[e[3]||(e[3]=f=>t.editItem.color=f),e[4]||(e[4]=f=>t.$emit("changeColor",f))],class:"mb-2"},null,8,["items","modelValue"]),r.limitsNames.length>1?(w(),Y("div",ce,[i(o,{variant:"outlined","hide-details":"",label:"Display Limits",items:r.limitsNames,modelValue:t.limitsName,"onUpdate:modelValue":[e[5]||(e[5]=f=>t.limitsName=f),e[6]||(e[6]=f=>t.$emit("changeLimits",t.limits[t.limitsName]))]},null,8,["items","modelValue"]),x("div",pe,E(t.limitsName)+": "+E(t.limits[t.limitsName]),1)])):I("",!0)]),_:1}),i(D,{class:"px-2"},{default:s(()=>[i(g),i(y,{variant:"outlined",onClick:e[7]||(e[7]=f=>t.$emit("cancel"))},{default:s(()=>e[12]||(e[12]=[m(" Cancel ")])),_:1}),i(y,{variant:"flat",onClick:e[8]||(e[8]=f=>t.$emit("close",t.editItem))},{default:s(()=>e[13]||(e[13]=[m(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const fe=$(me,[["render",ge]]),ve={components:{GraphEditDialog:ue,GraphEditItemDialog:fe},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideToolbar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number},timeZone:{type:String,default:"local"}},mixins:[A],data(){return{lines:[],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",selectedItem:null,hideToolbarData:this.hideToolbar,showOverview:!this.hideOverview,hideOverviewData:this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:null,graphMaxY:null,graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new F,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created(){this.title=`Graph ${this.id}`;for(const[t,e]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(e)]=t+1,e.color===void 0&&(e.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)},mounted(){const{chartSeries:t,overviewSeries:e}=this.items.reduce((u,l)=>{const r={spanGaps:!0};return u.chartSeries.push({...r,item:l,label:this.formatLabel(l),stroke:(n,o)=>this.items[o-1].color,width:2,value:(n,o)=>typeof o=="string"||isNaN(o)?"NaN":o==null?"--":o.toFixed(3)}),u.overviewSeries.push({...r}),u},{chartSeries:[],overviewSeries:[]});let a={};if(this.sparkline)this.hideToolbarData=!0,this.hideOverviewData=!0,this.showOverview=!1,a={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new M(a,this.data,document.getElementById(`chart${this.id}`));else{let u=Intl.DateTimeFormat().resolvedOptions().timeZone;this.timeZone&&this.timeZone!=="local"&&(u=this.timeZone),a={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],tzDate:r=>M.tzDate(new Date(r*1e3),u),series:[{label:"Time",value:(r,n)=>n==null?"--":this.formatSeconds(n,this.timeZone)},...t],cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:(r,n,o)=>v=>{this.state==="pause"&&r.select.width===0&&this.$emit("start"),o(v)}}},hooks:{setScale:[(r,n)=>{if(n==="x"&&!this.zoomOverview&&this.overview){this.zoomChart=!0;let o=Math.round(this.overview.valToPos(r.scales.x.min,"x")),v=Math.round(this.overview.valToPos(r.scales.x.max,"x"));this.overview.setSelect({left:o,width:v-o}),this.zoomChart=!1}}],setSelect:[r=>{this.state==="start"&&r.select.width>0&&this.$emit("pause")}],ready:[r=>{r.root.querySelector(".u-over").addEventListener("contextmenu",o=>{o.preventDefault(),this.itemMenu=!1,this.legendMenu=!1,this.editGraphMenuX=o.clientX,this.editGraphMenuY=o.clientY,this.editGraphMenu=!0});let n=r.root.querySelector(".u-legend");n.addEventListener("contextmenu",o=>{o.preventDefault(),this.editGraphMenu=!1,this.legendMenu=!1,this.itemMenuX=o.clientX,this.itemMenuY=o.clientY;let v=o.target.closest(".u-series"),g=Array.prototype.slice.call(n.childNodes[0].childNodes).indexOf(v),y=r.series[g];y.item?(this.selectedItem=y.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=o.clientX,this.legendMenuY=o.clientY,this.legendMenu=!0)}),n.querySelector("tbody").appendChild(this.$refs.info)}]}},this.graph=new M(a,this.data,document.getElementById(`chart${this.id}`));const l={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),tzDate:r=>M.tzDate(new Date(r*1e3),u),series:[...e],cursor:{y:!1,drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[r=>{if(!this.zoomChart){this.state==="start"&&r.select.width>0&&this.$emit("pause"),this.zoomOverview=!0;let n=r.posToVal(r.select.left,"x"),o=r.posToVal(r.select.left+r.select.width,"x");this.graph.setScale("x",{min:n,max:o}),this.zoomOverview=!1}}]}};this.overview=new M(l,this.data,document.getElementById(`overview${this.id}`)),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.resize)}this.state!=="stop"&&this.startGraph()},beforeUnmount:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.resize)},watch:{state:function(t,e){switch(t){case"start":e==="stop"&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(t,e){this.dataChanged=!0},graphMinY:function(t,e){let a=parseFloat(t);isNaN(a)||(this.graphMinY=a),this.setGraphRange()},graphMaxY:function(t,e){let a=parseFloat(t);isNaN(a)||(this.graphMaxY=a),this.setGraphRange()},graphStartDateTime:function(t,e){t&&typeof t=="string"?(this.graphStartDateTime=this.parseDateTime(this.graphStartDateTime,this.timeZone)*1e6,this.graphStartDateTime!==e&&(this.needToUpdate=!0)):t===null&&e&&(this.graphStartDateTime=null,this.needToUpdate=!0)},graphEndDateTime:function(t,e){t&&typeof t=="string"?(this.graphEndDateTime=this.parseDateTime(this.graphEndDateTime,this.timeZone)*1e6,this.graphEndDateTime!==e&&(this.needToUpdate=!0)):t===null&&e&&(this.graphEndDateTime=null,this.needToUpdate=!0)}},methods:{startGraph:function(){this.subscribe(),this.timeout=setTimeout(()=>{this.updateTimeout()},this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){this.updateGraphData(),this.timeout=setTimeout(()=>{this.updateTimeout()},this.refreshIntervalMs)},updateGraphData:function(){if(this.state==="pause"||!this.dataChanged)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);let t=this.data[0][this.data[0].length-1],e=this.data[0][this.data[0].length-this.pointsGraphed],a=this.data[0][0];a<t-this.secondsGraphed&&(a=t-this.secondsGraphed),e>a&&(a=e),this.graph.setScale("x",{min:a,max:t}),this.dataChanged=!1},formatLabel(t){if(t.valueType==="CONVERTED"&&t.reduced==="DECOM")return t.itemName;{let e="";return t.valueType!=="CONVERTED"&&(e+=t.valueType),t.reduced!=="DECOM"&&(e!==""&&(e+=" "),e+=`${t.reduced.split("_")[1]} ${t.reducedType}`),`${t.itemName} (${e})`}},moveLegend:function(t){switch(t){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=t,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(t){this.editGraph=!1,this.title=t.title,this.legendPosition=t.legendPosition,this.graphMinY=t.graphMinY,this.graphMaxY=t.graphMaxY,this.lines=[...t.lines],this.graphStartDateTime=t.startDateTime,this.graphEndDateTime=t.endDateTime,this.$nextTick(()=>{if(this.needToUpdate){if(this.subscription==null)this.startGraph();else{let e=JSON.parse(JSON.stringify(this.items));this.removeItems(e),setTimeout(()=>{this.addItems(e)},0)}this.needToUpdate=!1}}),this.moveLegend(this.legendPosition),this.$emit("edit")},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){let t=.1;(this.graphMinY||this.graphMinY===0||this.graphMaxY||this.graphMaxY===0)&&(t=0),this.graph.scales.y.range=(e,a,u)=>{let l=a;(this.graphMinY||this.graphMinY===0)&&(l=this.graphMinY);let r=u;return(this.graphMaxY||this.graphMaxY===0)&&(r=this.graphMaxY),M.rangeNum(l,r,t,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:t=>this.received(t),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:t=>{t.allowReconnect&&this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:new Date().getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:new Date().getTime()})}}).then(t=>{this.subscription=t})},getSize:function(t){let e=0;const a=document.getElementById("openc3-nav-drawer");a&&(e=a.classList.contains("v-navigation-drawer--active")?a.clientWidth:0);let u=0;(this.legendPosition==="right"||this.legendPosition==="left")&&(u=document.getElementsByClassName("u-legend")[0].clientWidth);const l=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-e-u,r=Math.max(document.documentElement.clientHeight,window.innerHeight||0),n=document.getElementsByClassName("v-expansion-panel")[0];let o=100;t==="overview"?this.fullHeight&&!this.hideOverviewData?this.showOverview=!0:this.showOverview=!1:(o=r-n.clientHeight-o-250,this.fullHeight||(o=o/2+10));let v=l-70;return this.fullWidth||(v=v/2-12),{width:this.width||v,height:this.height||o}},getScales:function(){return{scales:{x:{range(t,e,a){return e==null?[1566453600,1566497660]:[e,a]}},y:{range(t,e,a){return e==null?[-100,100]:M.rangeNum(e,a,.1,!0)}}}}},getAxes:function(t){let e="rgba(255, 255, 255, .1)",a="white";return{axes:[{stroke:a,grid:{show:!0,stroke:e,width:2}},{size:80,stroke:a,grid:{show:t!=="overview",stroke:e,width:2},values(u,l){return(l.some(r=>r>=1e7)||l.every(r=>r<.01))&&(l=l.map(r=>r.toExponential(3))),l}}]}},closeEditItem:function(t){this.editItem=!1,(this.graphEndDateTime!==null&&this.selectedItem!==t||this.selectedItem.valueType!==t.valueType||this.selectedItem.reduced!==t.reduced||this.selectedItem.reducedType!==t.reducedType)&&this.changeItem(t)},changeColor:function(t){let e=this.subscriptionKey(this.selectedItem),a=this.indexes[e];this.items[a-1].color=t,this.selectedItem.color=t,this.graph.root.querySelectorAll(".u-marker")[a].style.borderColor=t},changeLimits:function(t){let e=this.subscriptionKey(this.selectedItem),a=this.indexes[e];this.items[a-1].limits=t,this.selectedItem.limits=t,this.limitsValues=t},linesPlugin:function(){return{hooks:{draw:t=>{const{ctx:e,bbox:a}=t,u=t.valToPos(t.scales.y.min,"y",!0),l=t.valToPos(t.scales.y.max,"y",!0),r=t.valToPos(this.limitsValues[0],"y",!0),n=t.valToPos(this.limitsValues[1],"y",!0),o=t.valToPos(this.limitsValues[2],"y",!0),v=t.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach(g=>{t.scales.y.min<=g.yValue&&g.yValue<=t.scales.y.max&&(e.save(),e.beginPath(),e.strokeStyle=g.color,e.lineWidth=2,e.moveTo(a.left,t.valToPos(g.yValue,"y",!0)),e.lineTo(a.left+a.width,t.valToPos(g.yValue,"y",!0)),e.stroke(),e.restore())}),e.save(),e.beginPath(),e.fillStyle="rgba(255,0,0,0.15)",t.scales.y.min<this.limitsValues[0]){let g=r<l?l:r;e.fillRect(a.left,r,a.width,u-g)}if(t.scales.y.max>this.limitsValues[3]){let g=u<v?u:v;e.fillRect(a.left,l,a.width,g-l)}if(e.fillStyle="rgba(255,255,0,0.15)",t.scales.y.min<this.limitsValues[1]&&t.scales.y.max>this.limitsValues[0]){let g=n<l?l:n;e.fillRect(a.left,g,a.width,r-g)}if(t.scales.y.max>this.limitsValues[2]&&t.scales.y.min<this.limitsValues[3]){let g=u<v?u:v,y=u<o?u:o;e.fillRect(a.left,g,a.width,y-g)}if(e.fillStyle="rgba(0,255,0,0.15)",this.limitsValues.length===4){if(t.scales.y.min<this.limitsValues[2]&&t.scales.y.max>this.limitsValues[1]){let g=o<l?l:o,y=u<n?u:n;e.fillRect(a.left,g,a.width,y-g)}}else{const g=t.valToPos(this.limitsValues[4],"y",!0),y=t.valToPos(this.limitsValues[5],"y",!0);if(t.scales.y.min<this.limitsValues[4]&&t.scales.y.max>this.limitsValues[1]){let V=g<l?l:g;e.fillRect(a.left,V,a.width,n-V)}if(t.scales.y.max>this.limitsValues[5]&&t.scales.y.min<this.limitsValues[2]){let V=u<o?u:o,f=u<y?u:y;e.fillRect(a.left,V,a.width,f-V)}e.fillStyle="rgba(0,0,255,0.15)";let D=y<l?l:y,_=u<g?u:g;e.fillRect(a.left,D,a.width,_-D)}e.stroke(),e.restore()}}}},changeItem:function(t){this.removeItems([this.selectedItem]),this.selectedItem.valueType=t.valueType,this.selectedItem.reduced=t.reduced,this.selectedItem.reducedType=t.reducedType,setTimeout(()=>{this.addItems([this.selectedItem])},0)},addItems:function(t,e="CONVERTED"){t.forEach(a=>{a.valueType||(a.valueType=e),a.color||(a.color=this.colors[this.colorIndex]),a.limits||(a.limits=[]),a.limits.length>0&&(this.limitsValues=a.limits),this.colorIndex=(this.colorIndex+1)%this.colors.length,this.items.push(a);const u=this.data.length;this.graph.addSeries(this.createSeriesConfig(a),u),this.overview&&this.overview.addSeries(this.createOverviewSeriesConfig(),u),this.data.splice(u,0,Array(this.data[0].length)),this.indexes[this.subscriptionKey(a)]=u}),this.updateColorIndex(t),this.addItemsToSubscription(t),this.$emit("resize"),this.$emit("edit")},createSeriesConfig:function(t){return{spanGaps:!0,item:t,label:this.formatLabel(t),stroke:(e,a)=>this.items[a-1].color,width:2,value:(e,a)=>typeof a=="string"||isNaN(a)?"NaN":a==null?"--":Math.abs(a)<.01&&a!==0||Math.abs(a)>=1e7?a.toExponential(6):a.toFixed(6)}},createOverviewSeriesConfig:function(){return{spanGaps:!0,stroke:(t,e)=>this.items[e-1].color}},updateColorIndex:function(t){const e=t[t.length-1];if(e){const a=this.colors.indexOf(e.color);a!==-1&&(this.colorIndex=(a+1)%this.colors.length)}},addItemsToSubscription:function(t=this.items){let e=this.startTime;this.graphStartDateTime&&(e=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(a=>{a&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:t.map(this.subscriptionKey),start_time:e,end_time:this.graphEndDateTime})})},clearAllData:function(){this.data[0]=[],this.clearData(this.items)},clearData:function(t){for(const e of t.map(this.subscriptionKey)){let a=this.indexes[e];this.data[a]=Array(this.data[0].length).fill(null),this.graph.setData(this.data),this.overview&&this.overview.setData(this.data)}this.data.length===2&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data))},removeItems:function(t){this.removeItemsFromSubscription(t);for(const e of t.map(this.subscriptionKey)){const a=this.reorderIndexes(e);this.items.splice(a-1,1),this.data.splice(a,1),this.graph.delSeries(a),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(a),this.overview.setData(this.data))}this.data.length===1&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data)),this.$emit("resize"),this.$emit("edit")},removeItemsFromSubscription:function(t=this.items){this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:t.map(this.subscriptionKey)})},reorderIndexes:function(t){let e=this.indexes[t];delete this.indexes[t];for(let a in this.indexes)this.indexes[a]>e&&(this.indexes[a]-=1);return e},received:function(t){this.cable.recordPing();for(let e=0;e<t.length;e++){let a=t[e].__time/1e9,u=t[0].length;if(u===0||a>t[0][u-1]){for(let l=0;l<this.data.length;l++)this.data[l].push(null);this.set_data_at_index(this.data[0].length-1,a,t[e])}else{let l=j(this.data[0],a,this.bs_comparator);if(l>=0)this.set_data_at_index(l,a,t[e]);else{let r=-l-1;for(let n=0;n<this.data.length;n++)this.data[n].splice(r,0,null);this.set_data_at_index(r,a,t[e])}}}if(this.startTime==null&&this.data[0][0]){let e=this.data[0][0]*1e9;this.$emit("started",e)}this.dataChanged=!0},bs_comparator:function(t,e){return t-e},set_data_at_index:function(t,e,a){this.data[0][t]=e;for(const[u,l]of Object.entries(a)){if(u==="time")continue;let r=this.indexes[u];if(r){let n=this.data[r];if(l!=null&&l.raw)n[t]=null;else if(typeof l=="string"){if(n[t]=null,!u.includes("__RAW")){for(let o of this.items)if(this.subscriptionKey(o)===u){this.selectedItem=o;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else n[t]=l}}},subscriptionKey:function(t){let e=`${t.reduced}__TLM__${t.targetName}__${t.packetName}__${t.itemName}__${t.valueType}`;return(t.reduced==="REDUCED_MINUTE"||t.reduced==="REDUCED_HOUR"||t.reduced==="REDUCED_DAY")&&(e+=`__${t.reducedType}`),e}}},ye={class:"mx-2"},we={class:"pa-1",id:"chart",ref:"chart"},xe=["id"],be=["id"],_e={key:5,class:"u-series",ref:"info"};function Te(t,e,a,u,l,r){const n=h("v-icon"),o=h("v-tooltip"),v=h("v-spacer"),g=h("v-toolbar"),y=h("v-expand-transition"),D=h("v-card"),_=h("graph-edit-dialog"),V=h("v-text-field"),f=h("v-row"),z=h("v-textarea"),U=h("v-btn"),R=h("v-dialog"),k=h("v-list-item-title"),C=h("v-list-item"),G=h("v-list"),L=h("v-menu"),Z=h("graph-edit-item-dialog"),K=h("v-list-subheader");return w(),Y("div",{onClick:e[21]||(e[21]=Q(d=>t.$emit("click"),["prevent"]))},[i(D,null,{default:s(()=>[S(i(g,{height:"24",class:ee(["pl-2 pr-2",a.selectedGraphId===a.id?"active":""])},{default:s(()=>[S(x("div",ye,[i(o,{text:"Errors",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:e[0]||(e[0]=P=>l.errorDialog=!0)}),{default:s(()=>e[22]||(e[22]=[m(" mdi-alert ")])),_:2},1040)]),_:1})],512),[[N,l.errors.length!==0]]),i(o,{text:"Edit",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:e[1]||(e[1]=P=>l.editGraph=!0),"data-test":"edit-graph-icon"}),{default:s(()=>e[23]||(e[23]=[m(" mdi-pencil ")])),_:2},1040)]),_:1}),i(v),x("span",null,E(l.title),1),i(v),S(x("div",null,[r.calcFullSize?(w(),b(o,{key:0,text:"Collapse",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.collapseAll,"data-test":"collapse-all"}),{default:s(()=>e[24]||(e[24]=[m(" mdi-arrow-collapse ")])),_:2},1040,["onClick"])]),_:1})):(w(),b(o,{key:1,text:"Expand",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.expandAll,"data-test":"expand-all"}),{default:s(()=>e[25]||(e[25]=[m(" mdi-arrow-expand ")])),_:2},1040,["onClick"])]),_:1}))],512),[[N,l.expand]]),S(x("div",null,[l.fullWidth?(w(),b(o,{key:0,text:"Collapse Width",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.collapseWidth,"data-test":"collapse-width"}),{default:s(()=>e[26]||(e[26]=[m(" mdi-arrow-collapse-horizontal ")])),_:2},1040,["onClick"])]),_:1})):(w(),b(o,{key:1,text:"Expand Width",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.expandWidth,"data-test":"expand-width"}),{default:s(()=>e[27]||(e[27]=[m(" mdi-arrow-expand-horizontal ")])),_:2},1040,["onClick"])]),_:1}))],512),[[N,l.expand]]),S(x("div",null,[l.fullHeight?(w(),b(o,{key:0,text:"Collapse Height",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.collapseHeight,"data-test":"collapse-height"}),{default:s(()=>e[28]||(e[28]=[m(" mdi-arrow-collapse-vertical ")])),_:2},1040,["onClick"])]),_:1})):(w(),b(o,{key:1,text:"Expand Height",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.expandHeight,"data-test":"expand-height"}),{default:s(()=>e[29]||(e[29]=[m(" mdi-arrow-expand-vertical ")])),_:2},1040,["onClick"])]),_:1}))],512),[[N,l.expand]]),l.expand?(w(),b(o,{key:0,text:"Minimize",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.minMaxTransition,"data-test":"minimize-screen-icon"}),{default:s(()=>e[30]||(e[30]=[m(" mdi-window-minimize ")])),_:2},1040,["onClick"])]),_:1})):(w(),b(o,{key:1,text:"Maximize",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.minMaxTransition,"data-test":"maximize-screen-icon"}),{default:s(()=>e[31]||(e[31]=[m(" mdi-window-maximize ")])),_:2},1040,["onClick"])]),_:1})),i(o,{text:"Close",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:e[2]||(e[2]=P=>t.$emit("close-graph")),"data-test":"close-graph-icon"}),{default:s(()=>e[32]||(e[32]=[m(" mdi-close-box ")])),_:2},1040)]),_:1})]),_:1},8,["class"]),[[N,!l.hideToolbarData]]),i(y,null,{default:s(()=>[S(x("div",we,[x("div",{id:`chart${a.id}`},null,8,xe),e[33]||(e[33]=x("div",{id:"betweenCharts"},null,-1)),S(x("div",{id:`overview${a.id}`},null,8,be),[[N,l.showOverview]])],512),[[N,l.expand]])]),_:1})]),_:1}),l.editGraph?(w(),b(_,{key:0,modelValue:l.editGraph,"onUpdate:modelValue":e[3]||(e[3]=d=>l.editGraph=d),title:l.title,"legend-position":l.legendPosition,items:l.items,"graph-min-y":l.graphMinY,"graph-max-y":l.graphMaxY,lines:l.lines,colors:l.colors,"start-date-time":l.graphStartDateTime,"end-date-time":l.graphEndDateTime,"time-zone":a.timeZone,onRemove:e[4]||(e[4]=d=>r.removeItems([d])),onOk:r.editGraphClose,onCancel:e[5]||(e[5]=d=>l.editGraph=!1)},null,8,["modelValue","title","legend-position","items","graph-min-y","graph-max-y","lines","colors","start-date-time","end-date-time","time-zone","onOk"])):I("",!0),i(R,{modelValue:l.errorDialog,"onUpdate:modelValue":e[7]||(e[7]=d=>l.errorDialog=d),"max-width":"600"},{default:s(()=>[i(g,{height:"24"},{default:s(()=>[i(v),e[34]||(e[34]=x("span",null," Errors ",-1)),i(v)]),_:1}),i(D,{class:"pa-3"},{default:s(()=>[i(f,{dense:""},{default:s(()=>[i(V,{readonly:"","hide-details":"",modelValue:l.title,"onUpdate:modelValue":e[6]||(e[6]=d=>l.title=d),class:"pb-2",label:"Graph Title"},null,8,["modelValue"])]),_:1}),i(f,{class:"my-3"},{default:s(()=>[i(z,{readonly:"",rows:"8",value:r.error},null,8,["value"])]),_:1}),i(f,null,{default:s(()=>[i(U,{block:"",onClick:r.clearErrors},{default:s(()=>e[35]||(e[35]=[m(" Clear ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),l.editGraphMenu?(w(),b(L,{key:1,modelValue:l.editGraphMenu,"onUpdate:modelValue":e[9]||(e[9]=d=>l.editGraphMenu=d),target:[l.editGraphMenuX,l.editGraphMenuY],absolute:"","offset-y":""},{default:s(()=>[i(G,null,{default:s(()=>[i(C,{onClick:e[8]||(e[8]=d=>l.editGraph=!0)},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>[m(" Edit "+E(l.title),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):I("",!0),l.editItem?(w(),b(Z,{key:2,modelValue:l.editItem,"onUpdate:modelValue":e[10]||(e[10]=d=>l.editItem=d),colors:l.colors,item:l.selectedItem,onChangeColor:r.changeColor,onChangeLimits:r.changeLimits,onCancel:e[11]||(e[11]=d=>l.editItem=!1),onClose:r.closeEditItem},null,8,["modelValue","colors","item","onChangeColor","onChangeLimits","onClose"])):I("",!0),l.itemMenu?(w(),b(L,{key:3,modelValue:l.itemMenu,"onUpdate:modelValue":e[15]||(e[15]=d=>l.itemMenu=d),target:[l.itemMenuX,l.itemMenuY],absolute:"","offset-y":""},{default:s(()=>[i(G,{nav:"",density:"compact"},{default:s(()=>[i(K,null,{default:s(()=>[m(E(l.selectedItem.targetName)+" "+E(l.selectedItem.packetName)+" "+E(l.selectedItem.itemName),1)]),_:1}),i(C,{onClick:e[12]||(e[12]=d=>l.editItem=!0)},{prepend:s(()=>[i(n,{icon:"mdi-pencil"})]),default:s(()=>[i(k,null,{default:s(()=>e[36]||(e[36]=[m(" Edit ")])),_:1})]),_:1}),i(C,{onClick:e[13]||(e[13]=d=>r.clearData([l.selectedItem]))},{prepend:s(()=>[i(n,{icon:"mdi-eraser"})]),default:s(()=>[i(k,null,{default:s(()=>e[37]||(e[37]=[m(" Clear ")])),_:1})]),_:1}),i(C,{onClick:e[14]||(e[14]=d=>r.removeItems([l.selectedItem]))},{prepend:s(()=>[i(n,{icon:"mdi-delete"})]),default:s(()=>[i(k,null,{default:s(()=>e[38]||(e[38]=[m(" Delete ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):I("",!0),l.legendMenu?(w(),b(L,{key:4,modelValue:l.legendMenu,"onUpdate:modelValue":e[20]||(e[20]=d=>l.legendMenu=d),target:[l.legendMenuX,l.legendMenuY],absolute:"","offset-y":""},{default:s(()=>[i(G,null,{default:s(()=>[i(C,{onClick:e[16]||(e[16]=d=>r.moveLegend("top"))},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>e[39]||(e[39]=[m(" Legend Top ")])),_:1})]),_:1}),i(C,{onClick:e[17]||(e[17]=d=>r.moveLegend("bottom"))},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>e[40]||(e[40]=[m(" Legend Bottom ")])),_:1})]),_:1}),i(C,{onClick:e[18]||(e[18]=d=>r.moveLegend("left"))},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>e[41]||(e[41]=[m(" Legend Left ")])),_:1})]),_:1}),i(C,{onClick:e[19]||(e[19]=d=>r.moveLegend("right"))},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>e[42]||(e[42]=[m(" Legend RIght ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):I("",!0),a.sparkline?I("",!0):(w(),Y("div",_e,[i(o,{text:"Click item to toggle, Right click to edit",location:"top"},{activator:s(({props:d})=>[i(n,te(ie(d)),{default:s(()=>e[43]||(e[43]=[m(" mdi-information-variant-circle ")])),_:2},1040)]),_:1})],512))])}const Ve=le("S",$(ve,[["render",Te],["__scopeId","data-v-c22a9887"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./HorizontalWidget-D31NRWy5-567abe97366db941d1d0.js","./Layout-Bh7VzCZd-dcb9c3641454e6c67c47.js","vue","./main-4bad43bda3e8a8483ba9.js","./Widget-fRCERxGf-6cf6e886d2d5ee76cfc6.js","vue-router","single-spa","vuex","vuetify"],function(m,x){"use strict";var r,i,n,l,o,s,a,c,u,p,d,g;return{setters:[e=>{r=e.default},e=>{i=e.r},e=>{n=e.resolveComponent,l=e.createElementBlock,o=e.openBlock,s=e.createVNode,a=e.normalizeStyle,c=e.withCtx,u=e.createTextVNode,p=e.toDisplayString,d=e.mergeProps},e=>{g=e.s},null,null,null,null,null],execute:function(){const e={mixins:[i],components:{HorizontalWidget:r}};function v(t,w,S,C,N,V){const y=n("v-banner"),f=n("horizontal-widget");return o(),l("div",null,[s(y,{class:"boxbanner",style:a(t.computedStyle),"single-line":""},{default:c(()=>[u(p(t.parameters[0]),1)]),_:1},8,["style"]),s(f,d(t.listeners,{parameters:t.parameters.slice(1),settings:t.appliedSettings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"screen-id":t.screenId}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone","screen-id"])])}const z=m("default",g(e,[["render",v],["__scopeId","data-v-e9e6c14b"]]))}}});
|