openc3-cosmos-tool-admin 5.5.1 → 5.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce28d9e29207a2da87c3b57ee32344829c12fb298e0a7414b3cc1b42258c2a2c
4
- data.tar.gz: ddb788f1bdf7590dc03d2f7ae2e043c15393b2f677b0b51bd55b24eed597dd44
3
+ metadata.gz: 1028debab40898b7c1afe209d1f63412ebf57ed289fa2722829c3ebd274f9f56
4
+ data.tar.gz: 914aa2013b79d6e1bdd6272bbfd2db1cbd303a82c70e1f92c2a070719aa8d5df
5
5
  SHA512:
6
- metadata.gz: 1cdbc8da96af25d9a66dc50e96a63c4d8daef62a7298b197a2db8304bcd927cd7a066d6a154d0fe89bb11b69c58685855d465139684a3299de564267a107dc27
7
- data.tar.gz: 782d7edcea79aada1d4308a2c767e4ed51c17a3b70efb9eeca0e845b6de2e310b74f19349b90b39468f4fe93669e1330a988a7a7d16c8b5155c32b4660a468fa
6
+ metadata.gz: b33ecf335be0c942fb28aa8a441e93168c91239212113515d590ee94e4a70b524cfecbf20c9199b739ecc5c8979c642728206ef579eac41585160a2b0254176c
7
+ data.tar.gz: 89e3b24af3281a149b553d142d0b79a78749a41264afda73b9396a5c6506b3ae840c8b359db13659b7d18b08225975359fc74594b8eb1be536e57844f7be5196
@@ -0,0 +1,2 @@
1
+ "use strict";(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[13],{6129:function(e,t,n){var a=n(6964),s=n(5789),o=n(9502),r=n(9373),c=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t,n){var a,o,c,i,l,u,d,p,v,f,h=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=h.length>2&&void 0!==h[2]?h[2]:{},o=a.data,c=a.params,i=void 0===c?{}:c,l=a.headers,u=a.noAuth,d=void 0!==u&&u,p=a.noScope,v=void 0!==p&&p,d){e.next=13;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:f=e.sent,f&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:l["Authorization"]=localStorage.openc3Token;case 13:return v||i["scope"]||(i["scope"]=window.openc3Scope),e.abrupt("return",(0,r.Z)({method:t,url:n,data:o,params:i,headers:l}));case 15:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t,n){return e.apply(this,arguments)}}(),i={Accept:"application/json"},l=(0,a.Z)((0,a.Z)({},i),{},{"Content-Type":"application/json"});t["Z"]={get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,a=t.headers,s=void 0===a?i:a,o=t.noScope,r=t.noAuth;return c("get",e,{params:n,headers:s,noScope:o,noAuth:r})},put:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,a=t.params,s=t.headers,o=void 0===s?l:s,r=t.noScope,i=t.noAuth;return c("put",e,{data:n,params:a,headers:o,noScope:r,noAuth:i})},post:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,a=t.params,s=t.headers,o=void 0===s?l:s,r=t.noScope,i=t.noAuth;return c("post",e,{data:n,params:a,headers:o,noScope:r,noAuth:i})},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,a=t.headers,s=void 0===a?i:a,o=t.noScope,r=t.noAuth;return c("delete",e,{params:n,headers:s,noScope:o,noAuth:r})}}},9373:function(e,t,n){n(9529),n(1235),n(8188),n(8233);var a=n(9644),s=n.n(a),o=n(4091),r=new o["default"],c=s().create({baseURL:location.origin,timeout:6e4,params:{}});c.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,n,a,s,o,c,i,l,u,d;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var p="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(p+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(a=n.config)&&void 0!==a&&a.data&&(p+="".concat(e.response.config.data," ")),null!==(s=e.response)&&void 0!==s&&null!==(o=s.data)&&void 0!==o&&o.message)p+="".concat(e.response.data.message);else if(null!==(c=e.response)&&void 0!==c&&null!==(i=c.data)&&void 0!==i&&i.exception)p+="".concat(e.response.data.exception);else if(null!==(l=e.response)&&void 0!==l&&null!==(u=l.data)&&void 0!==u&&null!==(d=u.error)&&void 0!==d&&d.message)e.response.data.error.class&&(p+="".concat(e.response.data.error.class," ")),p+="".concat(e.response.data.error.message);else{var v;p+="".concat(null===(v=e.response)||void 0===v?void 0:v.data)}throw r.$notify&&r.$notify.serious({title:"Network error",body:p}),e}throw e})),t["Z"]=c},5013:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var a=function(){var e=this,t=e._self._c;return t("div",[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",[t("v-file-input",{ref:"fileInput",staticClass:"mx-2",attrs:{"show-size":"",accept:"*",label:"Click to select a file to create a secret from or enter a secret value"},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}})],1)],1),t("v-row",{staticStyle:{"padding-left":"10px"},attrs:{"no-gutters":"",align:"center"}},[t("v-col",{attrs:{cols:"3"}},[t("v-text-field",{staticClass:"px-2",attrs:{label:"Secret Name"},model:{value:e.secretName,callback:function(t){e.secretName=t},expression:"secretName"}})],1),t("v-col",{staticClass:"px-2",attrs:{cols:"3"}},[t("v-text-field",{attrs:{disabled:e.file,label:"Secret Value"},model:{value:e.secretValue,callback:function(t){e.secretValue=t},expression:"secretValue"}})],1),t("v-col",{staticClass:"px-2",attrs:{cols:"3"}},[t("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"secretUpload",disabled:""===e.secretName||null==e.file&&""===e.secretValue,loading:e.loadingSecret},on:{click:function(t){return e.upload()}},scopedSlots:e._u([{key:"loader",fn:function(){return[t("span",[e._v("Loading...")])]},proxy:!0}])},[t("v-icon",{attrs:{left:"",dark:""}},[e._v("mdi-cloud-upload")]),t("span",[e._v(" Set ")])],1)],1)],1),t("v-alert",{attrs:{dismissible:"",transition:"scale-transition",type:e.alertType},model:{value:e.showAlert,callback:function(t){e.showAlert=t},expression:"showAlert"}},[e._v(e._s(e.alert))]),t("v-list",{attrs:{"data-test":"secretList"}},e._l(e.secrets,(function(n,a){return t("div",{key:a},[t("v-list-item",[t("v-list-item-content",[t("v-list-item-title",[e._v(e._s(n))])],1),t("v-list-item-icon",[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(a){var s=a.on,o=a.attrs;return[t("v-icon",e._g(e._b({on:{click:function(t){return e.deleteSecret(n)}}},"v-icon",o,!1),s),[e._v(" mdi-delete ")])]}}],null,!0)},[t("span",[e._v("Delete Secret")])])],1)],1),a<e.secrets.length-1?t("v-divider",{key:a}):e._e()],1)})),0)],1)},s=[],o=n(6129),r={data:function(){return{file:null,loadingSecret:!1,secrets:[],secretName:"",secretValue:"",alert:"",alertType:"success",showAlert:!1}},mounted:function(){this.update()},methods:{update:function(){var e=this;o.Z.get("/openc3-api/secrets").then((function(t){e.secrets=t.data}))},upload:function(){var e=this;this.loadingSecret=!0;var t=null;if(this.file){var n=new FormData;n.append("file",this.file,this.file.name),t=o.Z.post("/openc3-api/secrets/".concat(this.secretName),{data:n})}else t=o.Z.post("/openc3-api/secrets/".concat(this.secretName),{data:{value:this.secretValue}});t.then((function(t){e.loadingSecret=!1,e.file=null,e.secretName="",e.secretValue="",e.update()})).catch((function(t){e.loadingSecret=!1}))},deleteSecret:function(e){var t=this;this.$dialog.confirm("Are you sure you want to remove: ".concat(e),{okText:"Delete",cancelText:"Cancel"}).then((function(t){return o.Z["delete"]("/openc3-api/secrets/".concat(e))})).then((function(n){t.alert="Removed secret ".concat(e),t.alertType="success",t.showAlert=!0,setTimeout((function(){t.showAlert=!1}),5e3),t.update()}))}}},c=r,i=n(3287),l=(0,i.Z)(c,a,s,!1,null,null,null),u=l.exports}}]);
2
+ //# sourceMappingURL=13.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"js/13.js","mappings":"4LAwBMA,EAAO,eAAAC,GAAAC,EAAAA,EAAAA,IAAAC,EAAAA,EAAAA,KAAAC,MAAG,SAAAC,EACdC,EACAC,GAAG,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,UAAA,OAAAhB,EAAAA,EAAAA,KAAAiB,MAAA,SAAAC,GAAA,eAAAA,EAAAC,KAAAD,EAAAE,MAAA,OAC0D,GAD1Df,EAAAU,EAAAM,OAAA,QAAAC,IAAAP,EAAA,GAAAA,EAAA,GAC+D,CAAC,EAAjET,EAAID,EAAJC,KAAIC,EAAAF,EAAEG,OAAAA,OAAM,IAAAD,EAAG,CAAC,EAACA,EAAEE,EAAOJ,EAAPI,QAAOC,EAAAL,EAAEM,OAAAA,OAAM,IAAAD,GAAQA,EAAAE,EAAAP,EAAEQ,QAAAA,OAAO,IAAAD,GAAQA,EAExDD,EAAQ,CAAFO,EAAAE,KAAA,gBAAAF,EAAAC,KAAA,EAAAD,EAAAE,KAAA,EAEeG,WAAWC,YAC/BD,WAAWE,oBACZ,OAFGX,EAASI,EAAAQ,KAGTZ,GACFS,WAAWI,YACZT,EAAAE,KAAA,gBAAAF,EAAAC,KAAA,EAAAD,EAAAU,GAAAV,EAAA,YAEDK,WAAWM,QAAO,QAEpBpB,EAAQ,iBAAmBqB,aAAaC,YAAW,QAIpD,OAFIlB,GAAYL,EAAO,WACtBA,EAAO,SAAWwB,OAAOC,aAC1Bf,EAAAgB,OAAA,UACMC,EAAAA,EAAAA,GAAM,CACXhC,OAAAA,EACAC,IAAAA,EACAE,KAAAA,EACAE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AC,QACA,EACAC,QAAA,CACAD,OAAA,eAAAE,EAAA,KACAC,EAAAA,EAAAA,IAAA,uBAAA5D,MAAA,SAAAd,GACAyE,EAAAX,QAAA9D,EAAA3D,IACA,GACA,EACA6G,OAAA,eAAAyB,EAAA,KACA,KAAA5B,eAAA,EACA,IAAA6B,EAAA,KACA,QAAApC,KAAA,CACA,IAAAqC,EAAA,IAAAC,SACAD,EAAAE,OAAA,YAAAvC,KAAA,KAAAA,KAAAwC,MACAJ,EAAAF,EAAAA,EAAAA,KAAA,uBAAAtD,OAAA,KAAAyB,YAAA,CACAxG,KAAAwI,GAEA,MACAD,EAAAF,EAAAA,EAAAA,KAAA,uBAAAtD,OAAA,KAAAyB,YAAA,CACAxG,KAAA,CAAAkG,MAAA,KAAAO,eAGA8B,EACA9D,MAAA,SAAAd,GACA2E,EAAA5B,eAAA,EACA4B,EAAAnC,KAAA,KACAmC,EAAA9B,WAAA,GACA8B,EAAA7B,YAAA,GACA6B,EAAAJ,QACA,IACAU,OAAA,SAAA/E,GACAyE,EAAA5B,eAAA,CACA,GACA,EACAoB,aAAA,SAAAJ,GAAA,IAAAmB,EAAA,KACA,KAAAC,QACAC,QAAA,oCAAAhE,OAAA2C,GAAA,CACAsB,OAAA,SACAC,WAAA,WAEAxE,MAAA,SAAAyE,GACA,OAAAb,EAAAA,EAAAA,UAAA,uBAAAtD,OAAA2C,GACA,IACAjD,MAAA,SAAAd,GACAkF,EAAAtB,MAAA,kBAAAxC,OAAA2C,GACAmB,EAAAzB,UAAA,UACAyB,EAAAxB,WAAA,EACA8B,YAAA,WACAN,EAAAxB,WAAA,CACA,QACAwB,EAAAX,QACA,GACA,ICjKkY,I,UCO9XkB,GAAY,OACd,EACA3D,EACAuC,GACA,EACA,KACA,KACA,MAIF,EAAeoB,EAAiB,O","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/api.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue?8ad7","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue?2850"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nconst request = async function (\n method,\n url,\n { data, params = {}, headers, noAuth = false, noScope = false } = {}\n) {\n if (!noAuth) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n headers['Authorization'] = localStorage.openc3Token\n }\n if (!noScope && !params['scope']) {\n params['scope'] = window.openc3Scope\n }\n return axios({\n method,\n url,\n data,\n params,\n headers,\n })\n}\n\nconst acceptOnlyDefaultHeaders = {\n Accept: 'application/json',\n}\n\nconst fullDefaultHeaders = {\n ...acceptOnlyDefaultHeaders,\n 'Content-Type': 'application/json',\n}\n\nexport default {\n get: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('get', path, { params, headers, noScope, noAuth })\n },\n\n put: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('put', path, { data, params, headers, noScope, noAuth })\n },\n\n post: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('post', path, { data, params, headers, noScope, noAuth })\n },\n\n delete: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('delete', path, { params, headers, noScope, noAuth })\n },\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n }\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // 'Ignore-Errors': '500',\n // })\n if (\n error.response.headers['ignore-errors'] &&\n error.response.headers['ignore-errors'].includes(\n error.response.status.toString()\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n }\n)\n\nexport default axiosInstance\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',[_c('v-file-input',{ref:\"fileInput\",staticClass:\"mx-2\",attrs:{\"show-size\":\"\",\"accept\":\"*\",\"label\":\"Click to select a file to create a secret from or enter a secret value\"},model:{value:(_vm.file),callback:function ($$v) {_vm.file=$$v},expression:\"file\"}})],1)],1),_c('v-row',{staticStyle:{\"padding-left\":\"10px\"},attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-text-field',{staticClass:\"px-2\",attrs:{\"label\":\"Secret Name\"},model:{value:(_vm.secretName),callback:function ($$v) {_vm.secretName=$$v},expression:\"secretName\"}})],1),_c('v-col',{staticClass:\"px-2\",attrs:{\"cols\":\"3\"}},[_c('v-text-field',{attrs:{\"disabled\":_vm.file,\"label\":\"Secret Value\"},model:{value:(_vm.secretValue),callback:function ($$v) {_vm.secretValue=$$v},expression:\"secretValue\"}})],1),_c('v-col',{staticClass:\"px-2\",attrs:{\"cols\":\"3\"}},[_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"data-test\":\"secretUpload\",\"disabled\":_vm.secretName === '' || (_vm.file == null && _vm.secretValue === ''),\"loading\":_vm.loadingSecret},on:{\"click\":function($event){return _vm.upload()}},scopedSlots:_vm._u([{key:\"loader\",fn:function(){return [_c('span',[_vm._v(\"Loading...\")])]},proxy:true}])},[_c('v-icon',{attrs:{\"left\":\"\",\"dark\":\"\"}},[_vm._v(\"mdi-cloud-upload\")]),_c('span',[_vm._v(\" Set \")])],1)],1)],1),_c('v-alert',{attrs:{\"dismissible\":\"\",\"transition\":\"scale-transition\",\"type\":_vm.alertType},model:{value:(_vm.showAlert),callback:function ($$v) {_vm.showAlert=$$v},expression:\"showAlert\"}},[_vm._v(_vm._s(_vm.alert))]),_c('v-list',{attrs:{\"data-test\":\"secretList\"}},_vm._l((_vm.secrets),function(secret,index){return _c('div',{key:index},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(secret))])],1),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.deleteSecret(secret)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-delete \")])]}}],null,true)},[_c('span',[_vm._v(\"Delete Secret\")])])],1)],1),(index < _vm.secrets.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SecretsTab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SecretsTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SecretsTab.vue?vue&type=template&id=4e4a65e7&\"\nimport script from \"./SecretsTab.vue?vue&type=script&lang=js&\"\nexport * from \"./SecretsTab.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["request","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","method","url","_ref2","data","_ref2$params","params","headers","_ref2$noAuth","noAuth","_ref2$noScope","noScope","refreshed","_args","arguments","wrap","_context","prev","next","length","undefined","OpenC3Auth","updateToken","defaultMinValidity","sent","setTokens","t0","login","localStorage","openc3Token","window","openc3Scope","abrupt","axios","stop","_x","_x2","apply","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","_objectSpread","get","path","_ref3","_ref3$headers","put","_ref4","_ref4$headers","post","_ref5","_ref5$headers","delete","_ref6","_ref6$headers","vueInstance","Vue","axiosInstance","baseURL","location","origin","timeout","interceptors","response","use","error","_error$response","_error$response2","_error$response2$conf","_error$response3","_error$response3$data","_error$response4","_error$response4$data","_error$response5","_error$response5$data","_error$response5$data2","status","then","includes","toString","Promise","reject","body","concat","statusText","config","message","exception","class","_error$response6","$notify","serious","title","render","_vm","this","_c","_self","attrs","ref","staticClass","model","value","file","callback","$$v","expression","staticStyle","secretName","secretValue","loadingSecret","on","$event","upload","scopedSlots","_u","key","fn","_v","proxy","alertType","showAlert","_s","alert","_l","secrets","secret","index","_g","_b","deleteSecret","_e","staticRenderFns","mounted","update","methods","_this","Api","_this2","promise","formData","FormData","append","name","catch","_this3","$dialog","confirm","okText","cancelText","dialog","setTimeout","component"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[535],{6129:function(t,e,n){"use strict";var o=n(6964),a=n(5789),s=n(9502),r=n(9373),i=function(){var t=(0,s.Z)((0,a.Z)().mark((function t(e,n){var o,s,i,l,c,d,u,p,v,f,h=arguments;return(0,a.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(o=h.length>2&&void 0!==h[2]?h[2]:{},s=o.data,i=o.params,l=void 0===i?{}:i,c=o.headers,d=o.noAuth,u=void 0!==d&&d,p=o.noScope,v=void 0!==p&&p,u){t.next=13;break}return t.prev=2,t.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:f=t.sent,f&&OpenC3Auth.setTokens(),t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](2),OpenC3Auth.login();case 12:c["Authorization"]=localStorage.openc3Token;case 13:return v||l["scope"]||(l["scope"]=window.openc3Scope),t.abrupt("return",(0,r.Z)({method:e,url:n,data:s,params:l,headers:c}));case 15:case"end":return t.stop()}}),t,null,[[2,9]])})));return function(e,n){return t.apply(this,arguments)}}(),l={Accept:"application/json"},c=(0,o.Z)((0,o.Z)({},l),{},{"Content-Type":"application/json"});e["Z"]={get:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.params,o=e.headers,a=void 0===o?l:o,s=e.noScope,r=e.noAuth;return i("get",t,{params:n,headers:a,noScope:s,noAuth:r})},put:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.data,o=e.params,a=e.headers,s=void 0===a?c:a,r=e.noScope,l=e.noAuth;return i("put",t,{data:n,params:o,headers:s,noScope:r,noAuth:l})},post:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.data,o=e.params,a=e.headers,s=void 0===a?c:a,r=e.noScope,l=e.noAuth;return i("post",t,{data:n,params:o,headers:s,noScope:r,noAuth:l})},delete:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.params,o=e.headers,a=void 0===o?l:o,s=e.noScope,r=e.noAuth;return i("delete",t,{params:n,headers:a,noScope:s,noAuth:r})}}},9373:function(t,e,n){"use strict";n(9529),n(1235),n(8188),n(8233);var o=n(9644),a=n.n(o),s=n(4091),r=new s["default"],i=a().create({baseURL:location.origin,timeout:6e4,params:{}});i.interceptors.response.use((function(t){return t}),(function(t){if(t.response){var e,n,o,a,s,i,l,c,d,u;if(401===t.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(t){t&&OpenC3Auth.setTokens()})),t.response.headers["ignore-errors"]&&t.response.headers["ignore-errors"].includes(t.response.status.toString()))return Promise.reject(t);var p="HTTP ".concat(t.response.status," - ");if(null!==(e=t.response)&&void 0!==e&&e.statusText&&(p+="".concat(t.response.statusText," ")),null!==(n=t.response)&&void 0!==n&&null!==(o=n.config)&&void 0!==o&&o.data&&(p+="".concat(t.response.config.data," ")),null!==(a=t.response)&&void 0!==a&&null!==(s=a.data)&&void 0!==s&&s.message)p+="".concat(t.response.data.message);else if(null!==(i=t.response)&&void 0!==i&&null!==(l=i.data)&&void 0!==l&&l.exception)p+="".concat(t.response.data.exception);else if(null!==(c=t.response)&&void 0!==c&&null!==(d=c.data)&&void 0!==d&&null!==(u=d.error)&&void 0!==u&&u.message)t.response.data.error.class&&(p+="".concat(t.response.data.error.class," ")),p+="".concat(t.response.data.error.message);else{var v;p+="".concat(null===(v=t.response)||void 0===v?void 0:v.data)}throw r.$notify&&r.$notify.serious({title:"Network error",body:p}),t}throw t})),e["Z"]=i},2211:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var o=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{persistent:!t.readonly,width:"600"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("v-card",[e("form",{on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[e("v-system-bar",[e("v-spacer"),e("span",{domProps:{textContent:t._s(t.title)}}),e("v-spacer"),e("div",{staticClass:"mx-2"},[e("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,a=n.attrs;return[e("div",t._g(t._b({},"div",a,!1),o),[e("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:t.download}},[t._v(" mdi-download ")])],1)]}}])},[e("span",[t._v(" Download ")])])],1)],1),e("v-card-text",[e("div",{staticClass:"pa-3"},[t.readonly?t._e():e("div",[e("v-row",{staticClass:"mt-3"},[t._v(" Upload a file. ")]),e("v-row",{attrs:{"no-gutters":"",align:"center"}},[e("v-col",{attrs:{cols:"3"}},[e("v-btn",{attrs:{block:"",color:"success",disabled:!t.file||t.loadingFile||t.readonly,loading:t.loadingFile,"data-test":"editScreenLoadBtn"},on:{click:t.loadFile},scopedSlots:t._u([{key:"loader",fn:function(){return[e("span",[t._v("Loading...")])]},proxy:!0}],null,!1,2673048543)},[t._v(" Load ")])],1),e("v-col",{attrs:{cols:"9"}},[e("v-file-input",{attrs:{accept:".json",label:"Click to select .json file.",disabled:t.readonly},model:{value:t.file,callback:function(e){t.file=e},expression:"file"}})],1)],1)],1),e("v-row",{attrs:{"no-gutters":""}},[e("v-textarea",{attrs:{rows:"15",readonly:t.readonly,"data-test":"editTextInput"},model:{value:t.json_content,callback:function(e){t.json_content=e},expression:"json_content"}})],1),e("v-row",{staticClass:"my-3"},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.error,expression:"error"}],staticClass:"red--text",domProps:{textContent:t._s(t.error)}})]),e("v-row",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"editCancelBtn"},on:{click:function(e){return e.preventDefault(),t.close.apply(null,arguments)}}},[t._v(" Cancel ")]),t.readonly?t._e():e("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!t.error||t.readonly}},[t._v(" Save ")])],1)],1)])],1)])],1)},a=[],s=(n(8188),n(8673),n(6886),n(4121),n(523),{props:{content:{type:String,required:!0},title:String,value:Boolean,readonly:Boolean},data:function(){return{json_content:this.content}},computed:{show:{get:function(){return this.value},set:function(t){this.$emit("input",t)}},error:function(){return""!==this.json_content||this.file?null:"Input can not be blank."}},methods:{submit:function(){this.$emit("submit",this.json_content),this.json_content=null,this.show=!this.show},close:function(){this.json_content=null,this.show=!this.show},download:function(){var t=new Blob([this.json_content],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download","".concat(this.title,".json")),e.click()}}}),r=s,i=(n(8714),n(3483)),l=(0,i.Z)(r,o,a,!1,null,"5f5542bd",null),c=l.exports},2535:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return u}});var o=function(){var t=this,e=t._self._c;return e("div",[e("v-list",{attrs:{"data-test":"interfaceList"}},t._l(t.interfaces,(function(n,o){return e("div",{key:n},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[t._v(t._s(n))])],1),e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(o){var a=o.on,s=o.attrs;return[e("v-icon",t._g(t._b({on:{click:function(e){return t.showInterface(n)}}},"v-icon",s,!1),a),[t._v(" mdi-eye ")])]}}],null,!0)},[e("span",[t._v("Show Interface Details")])])],1)],1),o<t.interfaces.length-1?e("v-divider",{key:o}):t._e()],1)})),0),t.showDialog?e("edit-dialog",{attrs:{content:t.jsonContent,title:"Interface: ".concat(t.dialogTitle),readonly:""},on:{submit:t.dialogCallback},model:{value:t.showDialog,callback:function(e){t.showDialog=e},expression:"showDialog"}}):t._e()],1)},a=[],s=(n(6710),n(6129)),r=n(2211),i={components:{EditDialog:r.Z},data:function(){return{interfaces:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted:function(){this.update()},methods:{update:function(){var t=this;s.Z.get("/openc3-api/interfaces").then((function(e){t.interfaces=e.data}))},showInterface:function(t){var e=this;s.Z.get("/openc3-api/interfaces/".concat(t)).then((function(n){e.jsonContent=JSON.stringify(n.data,null,"\t"),e.dialogTitle=t,e.showDialog=!0}))},dialogCallback:function(t){this.showDialog=!1}}},l=i,c=n(3483),d=(0,c.Z)(l,o,a,!1,null,null,null),u=d.exports},7303:function(t,e,n){"use strict";n.r(e);var o=n(9601),a=n.n(o),s=n(2609),r=n.n(s),i=r()(a());i.push([t.id,".v-card[data-v-5f5542bd]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-5f5542bd] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),e["default"]=i},8714:function(t,e,n){var o=n(7303);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals);var a=n(3514).Z;a("eb715e8c",o,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
- //# sourceMappingURL=535.js.map
1
+ (self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[193],{6129:function(t,e,n){"use strict";var o=n(6964),a=n(5789),s=n(9502),r=n(9373),i=function(){var t=(0,s.Z)((0,a.Z)().mark((function t(e,n){var o,s,i,l,c,d,u,p,v,f,h=arguments;return(0,a.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(o=h.length>2&&void 0!==h[2]?h[2]:{},s=o.data,i=o.params,l=void 0===i?{}:i,c=o.headers,d=o.noAuth,u=void 0!==d&&d,p=o.noScope,v=void 0!==p&&p,u){t.next=13;break}return t.prev=2,t.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:f=t.sent,f&&OpenC3Auth.setTokens(),t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](2),OpenC3Auth.login();case 12:c["Authorization"]=localStorage.openc3Token;case 13:return v||l["scope"]||(l["scope"]=window.openc3Scope),t.abrupt("return",(0,r.Z)({method:e,url:n,data:s,params:l,headers:c}));case 15:case"end":return t.stop()}}),t,null,[[2,9]])})));return function(e,n){return t.apply(this,arguments)}}(),l={Accept:"application/json"},c=(0,o.Z)((0,o.Z)({},l),{},{"Content-Type":"application/json"});e["Z"]={get:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.params,o=e.headers,a=void 0===o?l:o,s=e.noScope,r=e.noAuth;return i("get",t,{params:n,headers:a,noScope:s,noAuth:r})},put:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.data,o=e.params,a=e.headers,s=void 0===a?c:a,r=e.noScope,l=e.noAuth;return i("put",t,{data:n,params:o,headers:s,noScope:r,noAuth:l})},post:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.data,o=e.params,a=e.headers,s=void 0===a?c:a,r=e.noScope,l=e.noAuth;return i("post",t,{data:n,params:o,headers:s,noScope:r,noAuth:l})},delete:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.params,o=e.headers,a=void 0===o?l:o,s=e.noScope,r=e.noAuth;return i("delete",t,{params:n,headers:a,noScope:s,noAuth:r})}}},9373:function(t,e,n){"use strict";n(9529),n(1235),n(8188),n(8233);var o=n(9644),a=n.n(o),s=n(4091),r=new s["default"],i=a().create({baseURL:location.origin,timeout:6e4,params:{}});i.interceptors.response.use((function(t){return t}),(function(t){if(t.response){var e,n,o,a,s,i,l,c,d,u;if(401===t.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(t){t&&OpenC3Auth.setTokens()})),t.response.headers["ignore-errors"]&&t.response.headers["ignore-errors"].includes(t.response.status.toString()))return Promise.reject(t);var p="HTTP ".concat(t.response.status," - ");if(null!==(e=t.response)&&void 0!==e&&e.statusText&&(p+="".concat(t.response.statusText," ")),null!==(n=t.response)&&void 0!==n&&null!==(o=n.config)&&void 0!==o&&o.data&&(p+="".concat(t.response.config.data," ")),null!==(a=t.response)&&void 0!==a&&null!==(s=a.data)&&void 0!==s&&s.message)p+="".concat(t.response.data.message);else if(null!==(i=t.response)&&void 0!==i&&null!==(l=i.data)&&void 0!==l&&l.exception)p+="".concat(t.response.data.exception);else if(null!==(c=t.response)&&void 0!==c&&null!==(d=c.data)&&void 0!==d&&null!==(u=d.error)&&void 0!==u&&u.message)t.response.data.error.class&&(p+="".concat(t.response.data.error.class," ")),p+="".concat(t.response.data.error.message);else{var v;p+="".concat(null===(v=t.response)||void 0===v?void 0:v.data)}throw r.$notify&&r.$notify.serious({title:"Network error",body:p}),t}throw t})),e["Z"]=i},4150:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var o=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{persistent:!t.readonly,width:"600"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("v-card",[e("form",{on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[e("v-system-bar",[e("v-spacer"),e("span",{domProps:{textContent:t._s(t.title)}}),e("v-spacer"),e("div",{staticClass:"mx-2"},[e("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,a=n.attrs;return[e("div",t._g(t._b({},"div",a,!1),o),[e("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:t.download}},[t._v(" mdi-download ")])],1)]}}])},[e("span",[t._v(" Download ")])])],1)],1),e("v-card-text",[e("div",{staticClass:"pa-3"},[t.readonly?t._e():e("div",[e("v-row",{staticClass:"mt-3"},[t._v(" Upload a file. ")]),e("v-row",{attrs:{"no-gutters":"",align:"center"}},[e("v-col",{attrs:{cols:"3"}},[e("v-btn",{attrs:{block:"",color:"success",disabled:!t.file||t.loadingFile||t.readonly,loading:t.loadingFile,"data-test":"editScreenLoadBtn"},on:{click:t.loadFile},scopedSlots:t._u([{key:"loader",fn:function(){return[e("span",[t._v("Loading...")])]},proxy:!0}],null,!1,2673048543)},[t._v(" Load ")])],1),e("v-col",{attrs:{cols:"9"}},[e("v-file-input",{attrs:{accept:".json",label:"Click to select .json file.",disabled:t.readonly},model:{value:t.file,callback:function(e){t.file=e},expression:"file"}})],1)],1)],1),e("v-row",{attrs:{"no-gutters":""}},[e("v-textarea",{attrs:{rows:"15",readonly:t.readonly,"data-test":"editTextInput"},model:{value:t.json_content,callback:function(e){t.json_content=e},expression:"json_content"}})],1),e("v-row",{staticClass:"my-3"},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.error,expression:"error"}],staticClass:"red--text",domProps:{textContent:t._s(t.error)}})]),e("v-row",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"editCancelBtn"},on:{click:function(e){return e.preventDefault(),t.close.apply(null,arguments)}}},[t._v(" Cancel ")]),t.readonly?t._e():e("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!t.error||t.readonly}},[t._v(" Save ")])],1)],1)])],1)])],1)},a=[],s=(n(8188),n(8673),n(6886),n(4121),n(523),{props:{content:{type:String,required:!0},title:String,value:Boolean,readonly:Boolean},data:function(){return{json_content:this.content}},computed:{show:{get:function(){return this.value},set:function(t){this.$emit("input",t)}},error:function(){return""!==this.json_content||this.file?null:"Input can not be blank."}},methods:{submit:function(){this.$emit("submit",this.json_content),this.json_content=null,this.show=!this.show},close:function(){this.json_content=null,this.show=!this.show},download:function(){var t=new Blob([this.json_content],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download","".concat(this.title,".json")),e.click()}}}),r=s,i=(n(8837),n(3287)),l=(0,i.Z)(r,o,a,!1,null,"5f5542bd",null),c=l.exports},3193:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return u}});var o=function(){var t=this,e=t._self._c;return e("div",[e("v-list",{attrs:{"data-test":"interfaceList"}},t._l(t.interfaces,(function(n,o){return e("div",{key:n},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[t._v(t._s(n))])],1),e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(o){var a=o.on,s=o.attrs;return[e("v-icon",t._g(t._b({on:{click:function(e){return t.showInterface(n)}}},"v-icon",s,!1),a),[t._v(" mdi-eye ")])]}}],null,!0)},[e("span",[t._v("Show Interface Details")])])],1)],1),o<t.interfaces.length-1?e("v-divider",{key:o}):t._e()],1)})),0),t.showDialog?e("edit-dialog",{attrs:{content:t.jsonContent,title:"Interface: ".concat(t.dialogTitle),readonly:""},on:{submit:t.dialogCallback},model:{value:t.showDialog,callback:function(e){t.showDialog=e},expression:"showDialog"}}):t._e()],1)},a=[],s=(n(6710),n(6129)),r=n(4150),i={components:{EditDialog:r.Z},data:function(){return{interfaces:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted:function(){this.update()},methods:{update:function(){var t=this;s.Z.get("/openc3-api/interfaces").then((function(e){t.interfaces=e.data}))},showInterface:function(t){var e=this;s.Z.get("/openc3-api/interfaces/".concat(t)).then((function(n){e.jsonContent=JSON.stringify(n.data,null,"\t"),e.dialogTitle=t,e.showDialog=!0}))},dialogCallback:function(t){this.showDialog=!1}}},l=i,c=n(3287),d=(0,c.Z)(l,o,a,!1,null,null,null),u=d.exports},9580:function(t,e,n){"use strict";n.r(e);var o=n(3467),a=n.n(o),s=n(8715),r=n.n(s),i=r()(a());i.push([t.id,".v-card[data-v-5f5542bd]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-5f5542bd] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),e["default"]=i},8837:function(t,e,n){var o=n(9580);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals);var a=n(3514).Z;a("18c3bb4f",o,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
+ //# sourceMappingURL=193.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"js/535.js","mappings":"6LAwBMA,EAAO,eAAAC,GAAAC,EAAAA,EAAAA,IAAAC,EAAAA,EAAAA,KAAAC,MAAG,SAAAC,EACdC,EACAC,GAAG,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,UAAA,OAAAhB,EAAAA,EAAAA,KAAAiB,MAAA,SAAAC,GAAA,eAAAA,EAAAC,KAAAD,EAAAE,MAAA,OAC0D,GAD1Df,EAAAU,EAAAM,OAAA,QAA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EAAOK,QAAU7C,EAAQ4C,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAY9C,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/api.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?1ea8","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?e087","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/InterfacesTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/InterfacesTab.vue?59b7","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/InterfacesTab.vue?289f","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?b44f","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?1cd3"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nconst request = async function (\n method,\n url,\n { data, params = {}, headers, noAuth = false, noScope = false } = {}\n) {\n if (!noAuth) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n headers['Authorization'] = localStorage.openc3Token\n }\n if (!noScope && !params['scope']) {\n params['scope'] = window.openc3Scope\n }\n return axios({\n method,\n url,\n data,\n params,\n headers,\n })\n}\n\nconst acceptOnlyDefaultHeaders = {\n Accept: 'application/json',\n}\n\nconst fullDefaultHeaders = {\n ...acceptOnlyDefaultHeaders,\n 'Content-Type': 'application/json',\n}\n\nexport default {\n get: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('get', path, { params, headers, noScope, noAuth })\n },\n\n put: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('put', path, { data, params, headers, noScope, noAuth })\n },\n\n post: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('post', path, { data, params, headers, noScope, noAuth })\n },\n\n delete: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('delete', path, { params, headers, noScope, noAuth })\n },\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n }\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // 'Ignore-Errors': '500',\n // })\n if (\n error.response.headers['ignore-errors'] &&\n error.response.headers['ignore-errors'].includes(\n error.response.status.toString()\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n }\n)\n\nexport default axiosInstance\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"persistent\":!_vm.readonly,\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.submit.apply(null, arguments)}}},[_c('v-system-bar',[_c('v-spacer'),_c('span',{domProps:{\"textContent\":_vm._s(_vm.title)}}),_c('v-spacer'),_c('div',{staticClass:\"mx-2\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"downloadIcon\"},on:{\"click\":_vm.download}},[_vm._v(\" mdi-download \")])],1)]}}])},[_c('span',[_vm._v(\" Download \")])])],1)],1),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[(!_vm.readonly)?_c('div',[_c('v-row',{staticClass:\"mt-3\"},[_vm._v(\" Upload a file. \")]),_c('v-row',{attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-btn',{attrs:{\"block\":\"\",\"color\":\"success\",\"disabled\":!_vm.file || _vm.loadingFile || _vm.readonly,\"loading\":_vm.loadingFile,\"data-test\":\"editScreenLoadBtn\"},on:{\"click\":_vm.loadFile},scopedSlots:_vm._u([{key:\"loader\",fn:function(){return [_c('span',[_vm._v(\"Loading...\")])]},proxy:true}],null,false,2673048543)},[_vm._v(\" Load \")])],1),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('v-file-input',{attrs:{\"accept\":\".json\",\"label\":\"Click to select .json file.\",\"disabled\":_vm.readonly},model:{value:(_vm.file),callback:function ($$v) {_vm.file=$$v},expression:\"file\"}})],1)],1)],1):_vm._e(),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-textarea',{attrs:{\"rows\":\"15\",\"readonly\":_vm.readonly,\"data-test\":\"editTextInput\"},model:{value:(_vm.json_content),callback:function ($$v) {_vm.json_content=$$v},expression:\"json_content\"}})],1),_c('v-row',{staticClass:\"my-3\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.error),expression:\"error\"}],staticClass:\"red--text\",domProps:{\"textContent\":_vm._s(_vm.error)}})]),_c('v-row',[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"editCancelBtn\"},on:{\"click\":function($event){$event.preventDefault();return _vm.close.apply(null, arguments)}}},[_vm._v(\" Cancel \")]),(!_vm.readonly)?_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"type\":\"submit\",\"data-test\":\"editSubmitBtn\",\"disabled\":!!_vm.error || _vm.readonly}},[_vm._v(\" Save \")]):_vm._e()],1)],1)])],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditDialog.vue?vue&type=template&id=5f5542bd&scoped=true&\"\nimport script from \"./EditDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./EditDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./EditDialog.vue?vue&type=style&index=0&id=5f5542bd&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5f5542bd\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-list',{attrs:{\"data-test\":\"interfaceList\"}},_vm._l((_vm.interfaces),function(openc3_interface,index){return _c('div',{key:openc3_interface},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(openc3_interface))])],1),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.showInterface(openc3_interface)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-eye \")])]}}],null,true)},[_c('span',[_vm._v(\"Show Interface Details\")])])],1)],1),(index < _vm.interfaces.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0),(_vm.showDialog)?_c('edit-dialog',{attrs:{\"content\":_vm.jsonContent,\"title\":`Interface: ${_vm.dialogTitle}`,\"readonly\":\"\"},on:{\"submit\":_vm.dialogCallback},model:{value:(_vm.showDialog),callback:function ($$v) {_vm.showDialog=$$v},expression:\"showDialog\"}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./InterfacesTab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./InterfacesTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./InterfacesTab.vue?vue&type=template&id=8c72585c&\"\nimport script from \"./InterfacesTab.vue?vue&type=script&lang=js&\"\nexport * from \"./InterfacesTab.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".v-card[data-v-5f5542bd]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-5f5542bd] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditDialog.vue?vue&type=style&index=0&id=5f5542bd&prod&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"eb715e8c\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["request","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","method","url","_ref2","data","_ref2$params","params","headers","_ref2$noAuth","noAuth","_ref2$noScope","noScope","refreshed","_args","arguments","wrap","_context","prev","next","length","undefined","OpenC3Auth","updateToken","defaultMinValidity","sent","setTokens","t0","login","localStorage","openc3Token","window","openc3Scope","abrupt","axios","stop","_x","_x2","apply","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","_objectSpread","get","path","_ref3","_ref3$headers","put","_ref4","_ref4$headers","post","_ref5","_ref5$headers","delete","_ref6","_ref6$headers","vueInstance","Vue","axiosInstance","baseURL","location","origin","timeout","interceptors","response","use","error","_error$response","_error$response2","_error$response2$conf","_error$response3","_error$response3$data","_error$response4","_error$response4$data","_error$response5","_error$response5$data","_error$response5$data2","status","then","includes","toString","Promise","reject","body","concat","statusText","config","message","exception","class","_error$response6","$notify","serious","title","render","_vm","this","_c","_self","attrs","readonly","model","value","show","callback","$$v","expression","on","$event","preventDefault","submit","domProps","_s","staticClass","scopedSlots","_u","key","fn","_g","_b","download","_v","_e","file","loadingFile","loadFile","proxy","json_content","directives","name","rawName","close","staticRenderFns","props","content","type","String","required","Boolean","computed","set","$emit","methods","blob","Blob","link","document","createElement","href","URL","createObjectURL","setAttribute","click","component","_l","interfaces","openc3_interface","index","showInterface","showDialog","jsonContent","dialogTitle","dialogCallback","components","EditDialog","mounted","update","_this","Api","_this2","JSON","stringify","___CSS_LOADER_EXPORT___","push","module","id","__esModule","default","locals","exports","add"],"sourceRoot":""}
1
+ {"version":3,"file":"js/193.js","mappings":"6LAwBMA,EAAO,eAAAC,GAAAC,EAAAA,EAAAA,IAAAC,EAAAA,EAAAA,KAAAC,MAAG,SAAAC,EACdC,EACAC,GAAG,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,UAAA,OAAAhB,EAAAA,EAAAA,KAAAiB,MAAA,SAAAC,GAAA,eAAAA,EAAAC,KAAAD,EAAAE,MAAA,OAC0D,GAD1Df,EAAAU,EAAAM,OAAA,QAAAC,IAAAP,EAAA,GAAAA,EAAA,GAC+D,CAAC,EAAjET,EAAID,EAAJC,KAAIC,EAAAF,EAAEG,OAAAA,OAAM,IAAAD,EAAG,CAAC,EAACA,EAAEE,EAAOJ,EAAPI,QAAOC,EAAAL,EAAEM,OAAAA,OAAM,IAAAD,GAAQA,EAAAE,EAAAP,EAAEQ,QAAAA,OAAO,IAAAD,GAAQA,EAExDD,EAAQ,CAAFO,EAAAE,KAAA,gBAAAF,EAAAC,KAAA,EAAAD,EAAAE,KAAA,EAEeG,WAAWC,YAC/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,EACIU,EAAkB,G,8BA+DtB,GACA+B,WAAA,CAAAC,WAAAA,EAAAA,GACA/J,KAAA,WACA,OACAsJ,WAAA,GACAK,YAAA,GACAC,YAAA,GACAF,YAAA,EAEA,EACAM,QAAA,WACA,KAAAC,QACA,EACAxB,QAAA,CACAwB,OAAA,eAAAC,EAAA,KACAC,EAAAA,EAAAA,IAAA,0BAAA1F,MAAA,SAAAd,GACAuG,EAAAZ,WAAA3F,EAAA3D,IACA,GACA,EACAyJ,cAAA,SAAA7B,GAAA,IAAAwC,EAAA,KACAD,EAAAA,EAAAA,IAAA,0BAAApF,OAAA6C,IAAAnD,MAAA,SAAAd,GACAyG,EAAAT,YAAAU,KAAAC,UAAA3G,EAAA3D,KAAA,WACAoK,EAAAR,YAAAhC,EACAwC,EAAAV,YAAA,CACA,GACA,EACAG,eAAA,SAAA5B,GACA,KAAAyB,YAAA,CACA,IC7FqY,I,UCOjYN,GAAY,OACd,EACA3D,EACAsC,GACA,EACA,KACA,KACA,MAIF,EAAeqB,EAAiB,O,qFCf5BmB,EAA0B,IAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,8KAA+K,KAExN,c,uBCJA,IAAIzC,EAAU,EAAQ,MACnBA,EAAQ0C,aAAY1C,EAAUA,EAAQ2C,SACnB,kBAAZ3C,IAAsBA,EAAU,CAAC,CAACwC,EAAOC,GAAIzC,EAAS,MAC7DA,EAAQ4C,SAAQJ,EAAOK,QAAU7C,EAAQ4C,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAY9C,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/api.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?67e8","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?28d1","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/InterfacesTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/InterfacesTab.vue?464b","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/InterfacesTab.vue?b5de","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?1a8c","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?3069"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nconst request = async function (\n method,\n url,\n { data, params = {}, headers, noAuth = false, noScope = false } = {}\n) {\n if (!noAuth) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n headers['Authorization'] = localStorage.openc3Token\n }\n if (!noScope && !params['scope']) {\n params['scope'] = window.openc3Scope\n }\n return axios({\n method,\n url,\n data,\n params,\n headers,\n })\n}\n\nconst acceptOnlyDefaultHeaders = {\n Accept: 'application/json',\n}\n\nconst fullDefaultHeaders = {\n ...acceptOnlyDefaultHeaders,\n 'Content-Type': 'application/json',\n}\n\nexport default {\n get: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('get', path, { params, headers, noScope, noAuth })\n },\n\n put: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('put', path, { data, params, headers, noScope, noAuth })\n },\n\n post: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('post', path, { data, params, headers, noScope, noAuth })\n },\n\n delete: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('delete', path, { params, headers, noScope, noAuth })\n },\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n }\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // 'Ignore-Errors': '500',\n // })\n if (\n error.response.headers['ignore-errors'] &&\n error.response.headers['ignore-errors'].includes(\n error.response.status.toString()\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n }\n)\n\nexport default axiosInstance\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"persistent\":!_vm.readonly,\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.submit.apply(null, arguments)}}},[_c('v-system-bar',[_c('v-spacer'),_c('span',{domProps:{\"textContent\":_vm._s(_vm.title)}}),_c('v-spacer'),_c('div',{staticClass:\"mx-2\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"downloadIcon\"},on:{\"click\":_vm.download}},[_vm._v(\" mdi-download \")])],1)]}}])},[_c('span',[_vm._v(\" Download \")])])],1)],1),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[(!_vm.readonly)?_c('div',[_c('v-row',{staticClass:\"mt-3\"},[_vm._v(\" Upload a file. \")]),_c('v-row',{attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-btn',{attrs:{\"block\":\"\",\"color\":\"success\",\"disabled\":!_vm.file || _vm.loadingFile || _vm.readonly,\"loading\":_vm.loadingFile,\"data-test\":\"editScreenLoadBtn\"},on:{\"click\":_vm.loadFile},scopedSlots:_vm._u([{key:\"loader\",fn:function(){return [_c('span',[_vm._v(\"Loading...\")])]},proxy:true}],null,false,2673048543)},[_vm._v(\" Load \")])],1),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('v-file-input',{attrs:{\"accept\":\".json\",\"label\":\"Click to select .json file.\",\"disabled\":_vm.readonly},model:{value:(_vm.file),callback:function ($$v) {_vm.file=$$v},expression:\"file\"}})],1)],1)],1):_vm._e(),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-textarea',{attrs:{\"rows\":\"15\",\"readonly\":_vm.readonly,\"data-test\":\"editTextInput\"},model:{value:(_vm.json_content),callback:function ($$v) {_vm.json_content=$$v},expression:\"json_content\"}})],1),_c('v-row',{staticClass:\"my-3\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.error),expression:\"error\"}],staticClass:\"red--text\",domProps:{\"textContent\":_vm._s(_vm.error)}})]),_c('v-row',[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"editCancelBtn\"},on:{\"click\":function($event){$event.preventDefault();return _vm.close.apply(null, arguments)}}},[_vm._v(\" Cancel \")]),(!_vm.readonly)?_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"type\":\"submit\",\"data-test\":\"editSubmitBtn\",\"disabled\":!!_vm.error || _vm.readonly}},[_vm._v(\" Save \")]):_vm._e()],1)],1)])],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditDialog.vue?vue&type=template&id=5f5542bd&scoped=true&\"\nimport script from \"./EditDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./EditDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./EditDialog.vue?vue&type=style&index=0&id=5f5542bd&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5f5542bd\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-list',{attrs:{\"data-test\":\"interfaceList\"}},_vm._l((_vm.interfaces),function(openc3_interface,index){return _c('div',{key:openc3_interface},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(openc3_interface))])],1),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.showInterface(openc3_interface)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-eye \")])]}}],null,true)},[_c('span',[_vm._v(\"Show Interface Details\")])])],1)],1),(index < _vm.interfaces.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0),(_vm.showDialog)?_c('edit-dialog',{attrs:{\"content\":_vm.jsonContent,\"title\":`Interface: ${_vm.dialogTitle}`,\"readonly\":\"\"},on:{\"submit\":_vm.dialogCallback},model:{value:(_vm.showDialog),callback:function ($$v) {_vm.showDialog=$$v},expression:\"showDialog\"}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./InterfacesTab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./InterfacesTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./InterfacesTab.vue?vue&type=template&id=8c72585c&\"\nimport script from \"./InterfacesTab.vue?vue&type=script&lang=js&\"\nexport * from \"./InterfacesTab.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".v-card[data-v-5f5542bd]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-5f5542bd] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditDialog.vue?vue&type=style&index=0&id=5f5542bd&prod&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"18c3bb4f\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["request","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","method","url","_ref2","data","_ref2$params","params","headers","_ref2$noAuth","noAuth","_ref2$noScope","noScope","refreshed","_args","arguments","wrap","_context","prev","next","length","undefined","OpenC3Auth","updateToken","defaultMinValidity","sent","setTokens","t0","login","localStorage","openc3Token","window","openc3Scope","abrupt","axios","stop","_x","_x2","apply","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","_objectSpread","get","path","_ref3","_ref3$headers","put","_ref4","_ref4$headers","post","_ref5","_ref5$headers","delete","_ref6","_ref6$headers","vueInstance","Vue","axiosInstance","baseURL","location","origin","timeout","interceptors","response","use","error","_error$response","_error$response2","_error$response2$conf","_error$response3","_error$response3$data","_error$response4","_error$response4$data","_error$response5","_error$response5$data","_error$response5$data2","status","then","includes","toString","Promise","reject","body","concat","statusText","config","message","exception","class","_error$response6","$notify","serious","title","render","_vm","this","_c","_self","attrs","readonly","model","value","show","callback","$$v","expression","on","$event","preventDefault","submit","domProps","_s","staticClass","scopedSlots","_u","key","fn","_g","_b","download","_v","_e","file","loadingFile","loadFile","proxy","json_content","directives","name","rawName","close","staticRenderFns","props","content","type","String","required","Boolean","computed","set","$emit","methods","blob","Blob","link","document","createElement","href","URL","createObjectURL","setAttribute","click","component","_l","interfaces","openc3_interface","index","showInterface","showDialog","jsonContent","dialogTitle","dialogCallback","components","EditDialog","mounted","update","_this","Api","_this2","JSON","stringify","___CSS_LOADER_EXPORT___","push","module","id","__esModule","default","locals","exports","add"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[262],{8312:function(e,t,r){var n=r(4768);e.exports=function(e,t,r){for(var s in t)n(e,s,t[s],r);return e}},7321:function(e,t,r){var n=r(5968),s=2147483647,a=36,i=1,o=26,u=38,h=700,l=72,c=128,f="-",p=/[^\0-\u007E]/,g=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",v=a-i,d=RangeError,w=n(g.exec),y=Math.floor,b=String.fromCharCode,U=n("".charCodeAt),P=n([].join),k=n([].push),R=n("".replace),S=n("".split),L=n("".toLowerCase),q=function(e){var t=[],r=0,n=e.length;while(r<n){var s=U(e,r++);if(s>=55296&&s<=56319&&r<n){var a=U(e,r++);56320==(64512&a)?k(t,((1023&s)<<10)+(1023&a)+65536):(k(t,s),r--)}else k(t,s)}return t},H=function(e){return e+22+75*(e<26)},B=function(e,t,r){var n=0;e=r?y(e/h):e>>1,e+=y(e/t);while(e>v*o>>1)e=y(e/v),n+=a;return y(n+(v+1)*e/(e+u))},x=function(e){var t=[];e=q(e);var r,n,u=e.length,h=c,p=0,g=l;for(r=0;r<e.length;r++)n=e[r],n<128&&k(t,b(n));var v=t.length,w=v;v&&k(t,f);while(w<u){var U=s;for(r=0;r<e.length;r++)n=e[r],n>=h&&n<U&&(U=n);var R=w+1;if(U-h>y((s-p)/R))throw d(m);for(p+=(U-h)*R,h=U,r=0;r<e.length;r++){if(n=e[r],n<h&&++p>s)throw d(m);if(n==h){var S=p,L=a;while(1){var x=L<=g?i:L>=g+o?o:L-g;if(S<x)break;var A=S-x,C=a-x;k(t,b(H(x+A%C))),S=y(A/C),L+=a}k(t,b(H(S))),g=B(p,R,w==v),p=0,w++}}p++,h++}return P(t,"")};e.exports=function(e){var t,r,n=[],s=S(R(L(e),g,"."),".");for(t=0;t<s.length;t++)r=s[t],k(n,w(p,r)?"xn--"+x(r):r);return P(n,".")}},4144:function(e,t,r){var n=r(4229),s=r(95),a=r(4231),i=s("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},2653:function(e,t,r){"use strict";r(5735);var n=r(3103),s=r(9859),a=r(266),i=r(5968),o=r(7400),u=r(4144),h=r(4768),l=r(8312),c=r(4555),f=r(2247),p=r(6407),g=r(7728),m=r(6733),v=r(8270),d=r(7636),w=r(1589),y=r(1176),b=r(5052),U=r(3326),P=r(2391),k=r(5358),R=r(8403),S=r(8830),L=r(7579),q=r(95),H=r(3867),B=q("iterator"),x="URLSearchParams",A=x+"Iterator",C=p.set,O=p.getterFor(x),j=p.getterFor(A),z=Object.getOwnPropertyDescriptor,E=function(e){if(!o)return s[e];var t=z(s,e);return t&&t.value},I=E("fetch"),F=E("Request"),_=E("Headers"),$=F&&F.prototype,M=_&&_.prototype,Q=s.RegExp,T=s.TypeError,D=s.decodeURIComponent,G=s.encodeURIComponent,J=i("".charAt),N=i([].join),K=i([].push),V=i("".replace),W=i([].shift),X=i([].splice),Y=i("".split),Z=i("".slice),ee=/\+/g,te=Array(4),re=function(e){return te[e-1]||(te[e-1]=Q("((?:%[\\da-f]{2}){"+e+"})","gi"))},ne=function(e){try{return D(e)}catch(t){return e}},se=function(e){var t=V(e,ee," "),r=4;try{return D(t)}catch(n){while(r)t=V(t,re(r--),ne);return t}},ae=/[!'()~]|%20/g,ie={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},oe=function(e){return ie[e]},ue=function(e){return V(G(e),ae,oe)},he=f((function(e,t){C(this,{type:A,iterator:R(O(e).entries),kind:t})}),"Iterator",(function(){var e=j(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),le=function(e){this.entries=[],this.url=null,void 0!==e&&(b(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===J(e,0)?Z(e,1):e:U(e)))};le.prototype={type:x,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,s,i,o,u,h=S(e);if(h){t=R(e,h),r=t.next;while(!(n=a(r,t)).done){if(s=R(y(n.value)),i=s.next,(o=a(i,s)).done||(u=a(i,s)).done||!a(i,s).done)throw T("Expected sequence with length 2");K(this.entries,{key:U(o.value),value:U(u.value)})}}else for(var l in e)v(e,l)&&K(this.entries,{key:l,value:U(e[l])})},parseQuery:function(e){if(e){var t,r,n=Y(e,"&"),s=0;while(s<n.length)t=n[s++],t.length&&(r=Y(t,"="),K(this.entries,{key:se(W(r)),value:se(N(r,"="))}))}},serialize:function(){var e,t=this.entries,r=[],n=0;while(n<t.length)e=t[n++],K(r,ue(e.key)+"="+ue(e.value));return N(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ce=function(){g(this,fe);var e=arguments.length>0?arguments[0]:void 0;C(this,new le(e))},fe=ce.prototype;if(l(fe,{append:function(e,t){L(arguments.length,2);var r=O(this);K(r.entries,{key:U(e),value:U(t)}),r.updateURL()},delete:function(e){L(arguments.length,1);var t=O(this),r=t.entries,n=U(e),s=0;while(s<r.length)r[s].key===n?X(r,s,1):s++;t.updateURL()},get:function(e){L(arguments.length,1);for(var t=O(this).entries,r=U(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){L(arguments.length,1);for(var t=O(this).entries,r=U(e),n=[],s=0;s<t.length;s++)t[s].key===r&&K(n,t[s].value);return n},has:function(e){L(arguments.length,1);var t=O(this).entries,r=U(e),n=0;while(n<t.length)if(t[n++].key===r)return!0;return!1},set:function(e,t){L(arguments.length,1);for(var r,n=O(this),s=n.entries,a=!1,i=U(e),o=U(t),u=0;u<s.length;u++)r=s[u],r.key===i&&(a?X(s,u--,1):(a=!0,r.value=o));a||K(s,{key:i,value:o}),n.updateURL()},sort:function(){var e=O(this);H(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,r=O(this).entries,n=d(e,arguments.length>1?arguments[1]:void 0),s=0;while(s<r.length)t=r[s++],n(t.value,t.key,this)},keys:function(){return new he(this,"keys")},values:function(){return new he(this,"values")},entries:function(){return new he(this,"entries")}},{enumerable:!0}),h(fe,B,fe.entries,{name:"entries"}),h(fe,"toString",(function(){return O(this).serialize()}),{enumerable:!0}),c(ce,x),n({global:!0,constructor:!0,forced:!u},{URLSearchParams:ce}),!u&&m(_)){var pe=i(M.has),ge=i(M.set),me=function(e){if(b(e)){var t,r=e.body;if(w(r)===x)return t=e.headers?new _(e.headers):new _,pe(t,"content-type")||ge(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),P(e,{body:k(0,U(r)),headers:k(0,t)})}return e};if(m(I)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return I(e,arguments.length>1?me(arguments[1]):{})}}),m(F)){var ve=function(e){return g(this,$),new F(e,arguments.length>1?me(arguments[1]):{})};$.constructor=ve,ve.prototype=$,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:ce,getState:O}},523:function(e,t,r){r(2653)},5340:function(e,t,r){"use strict";r(8673);var n,s=r(3103),a=r(7400),i=r(4144),o=r(9859),u=r(7636),h=r(5968),l=r(4768),c=r(6616),f=r(7728),p=r(8270),g=r(47),m=r(507),v=r(9794),d=r(966).codeAt,w=r(7321),y=r(3326),b=r(4555),U=r(7579),P=r(2653),k=r(6407),R=k.set,S=k.getterFor("URL"),L=P.URLSearchParams,q=P.getState,H=o.URL,B=o.TypeError,x=o.parseInt,A=Math.floor,C=Math.pow,O=h("".charAt),j=h(/./.exec),z=h([].join),E=h(1..toString),I=h([].pop),F=h([].push),_=h("".replace),$=h([].shift),M=h("".split),Q=h("".slice),T=h("".toLowerCase),D=h([].unshift),G="Invalid authority",J="Invalid scheme",N="Invalid host",K="Invalid port",V=/[a-z]/i,W=/[\d+-.a-z]/i,X=/\d/,Y=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,se=/^[\u0000-\u0020]+/,ae=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ie=/[\t\n\r]/g,oe=function(e){var t,r,n,s,a,i,o,u=M(e,".");if(u.length&&""==u[u.length-1]&&u.length--,t=u.length,t>4)return e;for(r=[],n=0;n<t;n++){if(s=u[n],""==s)return e;if(a=10,s.length>1&&"0"==O(s,0)&&(a=j(Y,s)?16:8,s=Q(s,8==a?1:2)),""===s)i=0;else{if(!j(10==a?ee:8==a?Z:te,s))return e;i=x(s,a)}F(r,i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=C(256,5-t))return null}else if(i>255)return null;for(o=I(r),n=0;n<r.length;n++)o+=r[n]*C(256,3-n);return o},ue=function(e){var t,r,n,s,a,i,o,u=[0,0,0,0,0,0,0,0],h=0,l=null,c=0,f=function(){return O(e,c)};if(":"==f()){if(":"!=O(e,1))return;c+=2,h++,l=h}while(f()){if(8==h)return;if(":"!=f()){t=r=0;while(r<4&&j(te,f()))t=16*t+x(f(),16),c++,r++;if("."==f()){if(0==r)return;if(c-=r,h>6)return;n=0;while(f()){if(s=null,n>0){if(!("."==f()&&n<4))return;c++}if(!j(X,f()))return;while(j(X,f())){if(a=x(f(),10),null===s)s=a;else{if(0==s)return;s=10*s+a}if(s>255)return;c++}u[h]=256*u[h]+s,n++,2!=n&&4!=n||h++}if(4!=n)return;break}if(":"==f()){if(c++,!f())return}else if(f())return;u[h++]=t}else{if(null!==l)return;c++,h++,l=h}}if(null!==l){i=h-l,h=7;while(0!=h&&i>0)o=u[h],u[h--]=u[l+i-1],u[l+--i]=o}else if(8!=h)return;return u},he=function(e){for(var t=null,r=1,n=null,s=0,a=0;a<8;a++)0!==e[a]?(s>r&&(t=n,r=s),n=null,s=0):(null===n&&(n=a),++s);return s>r&&(t=n,r=s),t},le=function(e){var t,r,n,s;if("number"==typeof e){for(t=[],r=0;r<4;r++)D(t,e%256),e=A(e/256);return z(t,".")}if("object"==typeof e){for(t="",n=he(e),r=0;r<8;r++)s&&0===e[r]||(s&&(s=!1),n===r?(t+=r?":":"::",s=!0):(t+=E(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ce={},fe=g({},ce,{" ":1,'"':1,"<":1,">":1,"`":1}),pe=g({},fe,{"#":1,"?":1,"{":1,"}":1}),ge=g({},pe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),me=function(e,t){var r=d(e,0);return r>32&&r<127&&!p(t,e)?e:encodeURIComponent(e)},ve={ftp:21,file:null,http:80,https:443,ws:80,wss:443},de=function(e,t){var r;return 2==e.length&&j(V,O(e,0))&&(":"==(r=O(e,1))||!t&&"|"==r)},we=function(e){var t;return e.length>1&&de(Q(e,0,2))&&(2==e.length||"/"===(t=O(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===T(e)},be=function(e){return e=T(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},Ue={},Pe={},ke={},Re={},Se={},Le={},qe={},He={},Be={},xe={},Ae={},Ce={},Oe={},je={},ze={},Ee={},Ie={},Fe={},_e={},$e={},Me={},Qe=function(e,t,r){var n,s,a,i=y(e);if(t){if(s=this.parse(i),s)throw B(s);this.searchParams=null}else{if(void 0!==r&&(n=new Qe(r,!0)),s=this.parse(i,null,n),s)throw B(s);a=q(new L),a.bindURL(this),this.searchParams=a}};Qe.prototype={type:"URL",parse:function(e,t,r){var s,a,i,o,u=this,h=t||Ue,l=0,c="",f=!1,g=!1,d=!1;e=y(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=_(e,se,""),e=_(e,ae,"$1")),e=_(e,ie,""),s=m(e);while(l<=s.length){switch(a=s[l],h){case Ue:if(!a||!j(V,a)){if(t)return J;h=ke;continue}c+=T(a),h=Pe;break;case Pe:if(a&&(j(W,a)||"+"==a||"-"==a||"."==a))c+=T(a);else{if(":"!=a){if(t)return J;c="",h=ke,l=0;continue}if(t&&(u.isSpecial()!=p(ve,c)||"file"==c&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=c,t)return void(u.isSpecial()&&ve[u.scheme]==u.port&&(u.port=null));c="","file"==u.scheme?h=je:u.isSpecial()&&r&&r.scheme==u.scheme?h=Re:u.isSpecial()?h=He:"/"==s[l+1]?(h=Se,l++):(u.cannotBeABaseURL=!0,F(u.path,""),h=_e)}break;case ke:if(!r||r.cannotBeABaseURL&&"#"!=a)return J;if(r.cannotBeABaseURL&&"#"==a){u.scheme=r.scheme,u.path=v(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,h=Me;break}h="file"==r.scheme?je:Le;continue;case Re:if("/"!=a||"/"!=s[l+1]){h=Le;continue}h=Be,l++;break;case Se:if("/"==a){h=xe;break}h=Fe;continue;case Le:if(u.scheme=r.scheme,a==n)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query=r.query;else if("/"==a||"\\"==a&&u.isSpecial())h=qe;else if("?"==a)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query="",h=$e;else{if("#"!=a){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.path.length--,h=Fe;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query=r.query,u.fragment="",h=Me}break;case qe:if(!u.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,h=Fe;continue}h=xe}else h=Be;break;case He:if(h=Be,"/"!=a||"/"!=O(c,l+1))continue;l++;break;case Be:if("/"!=a&&"\\"!=a){h=xe;continue}break;case xe:if("@"==a){f&&(c="%40"+c),f=!0,i=m(c);for(var w=0;w<i.length;w++){var b=i[w];if(":"!=b||d){var U=me(b,ge);d?u.password+=U:u.username+=U}else d=!0}c=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()){if(f&&""==c)return G;l-=m(c).length+1,c="",h=Ae}else c+=a;break;case Ae:case Ce:if(t&&"file"==u.scheme){h=Ee;continue}if(":"!=a||g){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()){if(u.isSpecial()&&""==c)return N;if(t&&""==c&&(u.includesCredentials()||null!==u.port))return;if(o=u.parseHost(c),o)return o;if(c="",h=Ie,t)return;continue}"["==a?g=!0:"]"==a&&(g=!1),c+=a}else{if(""==c)return N;if(o=u.parseHost(c),o)return o;if(c="",h=Oe,t==Ce)return}break;case Oe:if(!j(X,a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()||t){if(""!=c){var P=x(c,10);if(P>65535)return K;u.port=u.isSpecial()&&P===ve[u.scheme]?null:P,c=""}if(t)return;h=Ie;continue}return K}c+=a;break;case je:if(u.scheme="file","/"==a||"\\"==a)h=ze;else{if(!r||"file"!=r.scheme){h=Fe;continue}if(a==n)u.host=r.host,u.path=v(r.path),u.query=r.query;else if("?"==a)u.host=r.host,u.path=v(r.path),u.query="",h=$e;else{if("#"!=a){we(z(v(s,l),""))||(u.host=r.host,u.path=v(r.path),u.shortenPath()),h=Fe;continue}u.host=r.host,u.path=v(r.path),u.query=r.query,u.fragment="",h=Me}}break;case ze:if("/"==a||"\\"==a){h=Ee;break}r&&"file"==r.scheme&&!we(z(v(s,l),""))&&(de(r.path[0],!0)?F(u.path,r.path[0]):u.host=r.host),h=Fe;continue;case Ee:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&de(c))h=Fe;else if(""==c){if(u.host="",t)return;h=Ie}else{if(o=u.parseHost(c),o)return o;if("localhost"==u.host&&(u.host=""),t)return;c="",h=Ie}continue}c+=a;break;case Ie:if(u.isSpecial()){if(h=Fe,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=n&&(h=Fe,"/"!=a))continue}else u.fragment="",h=Me;else u.query="",h=$e;break;case Fe:if(a==n||"/"==a||"\\"==a&&u.isSpecial()||!t&&("?"==a||"#"==a)){if(be(c)?(u.shortenPath(),"/"==a||"\\"==a&&u.isSpecial()||F(u.path,"")):ye(c)?"/"==a||"\\"==a&&u.isSpecial()||F(u.path,""):("file"==u.scheme&&!u.path.length&&de(c)&&(u.host&&(u.host=""),c=O(c,0)+":"),F(u.path,c)),c="","file"==u.scheme&&(a==n||"?"==a||"#"==a))while(u.path.length>1&&""===u.path[0])$(u.path);"?"==a?(u.query="",h=$e):"#"==a&&(u.fragment="",h=Me)}else c+=me(a,pe);break;case _e:"?"==a?(u.query="",h=$e):"#"==a?(u.fragment="",h=Me):a!=n&&(u.path[0]+=me(a,ce));break;case $e:t||"#"!=a?a!=n&&("'"==a&&u.isSpecial()?u.query+="%27":u.query+="#"==a?"%23":me(a,ce)):(u.fragment="",h=Me);break;case Me:a!=n&&(u.fragment+=me(a,fe));break}l++}},parseHost:function(e){var t,r,n;if("["==O(e,0)){if("]"!=O(e,e.length-1))return N;if(t=ue(Q(e,1,-1)),!t)return N;this.host=t}else if(this.isSpecial()){if(e=w(e),j(re,e))return N;if(t=oe(e),null===t)return N;this.host=t}else{if(j(ne,e))return N;for(t="",r=m(e),n=0;n<r.length;n++)t+=me(r[n],ce);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(ve,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&de(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,s=e.host,a=e.port,i=e.path,o=e.query,u=e.fragment,h=t+":";return null!==s?(h+="//",e.includesCredentials()&&(h+=r+(n?":"+n:"")+"@"),h+=le(s),null!==a&&(h+=":"+a)):"file"==t&&(h+="//"),h+=e.cannotBeABaseURL?i[0]:i.length?"/"+z(i,"/"):"",null!==o&&(h+="?"+o),null!==u&&(h+="#"+u),h},setHref:function(e){var t=this.parse(e);if(t)throw B(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Te(e.path[0]).origin}catch(r){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+le(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(y(e)+":",Ue)},getUsername:function(){return this.username},setUsername:function(e){var t=m(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=me(t[r],ge)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=me(t[r],ge)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?le(e):le(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ae)},getHostname:function(){var e=this.host;return null===e?"":le(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ce)},getPort:function(){var e=this.port;return null===e?"":y(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=y(e),""==e?this.port=null:this.parse(e,Oe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+z(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=y(e),""==e?this.query=null:("?"==O(e,0)&&(e=Q(e,1)),this.query="",this.parse(e,$e)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=y(e),""!=e?("#"==O(e,0)&&(e=Q(e,1)),this.fragment="",this.parse(e,Me)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Te=function(e){var t=f(this,De),r=U(arguments.length,1)>1?arguments[1]:void 0,n=R(t,new Qe(e,!1,r));a||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},De=Te.prototype,Ge=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&(c(De,"href",Ge("serialize","setHref")),c(De,"origin",Ge("getOrigin")),c(De,"protocol",Ge("getProtocol","setProtocol")),c(De,"username",Ge("getUsername","setUsername")),c(De,"password",Ge("getPassword","setPassword")),c(De,"host",Ge("getHost","setHost")),c(De,"hostname",Ge("getHostname","setHostname")),c(De,"port",Ge("getPort","setPort")),c(De,"pathname",Ge("getPathname","setPathname")),c(De,"search",Ge("getSearch","setSearch")),c(De,"searchParams",Ge("getSearchParams")),c(De,"hash",Ge("getHash","setHash"))),l(De,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),l(De,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),H){var Je=H.createObjectURL,Ne=H.revokeObjectURL;Je&&l(Te,"createObjectURL",u(Je,H)),Ne&&l(Te,"revokeObjectURL",u(Ne,H))}b(Te,"URL"),s({global:!0,constructor:!0,forced:!i,sham:!a},{URL:Te})},4121:function(e,t,r){r(5340)}}]);
1
+ (self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[262],{8312:function(e,t,r){var n=r(4768);e.exports=function(e,t,r){for(var s in t)n(e,s,t[s],r);return e}},7321:function(e,t,r){var n=r(5968),s=2147483647,i=36,a=1,o=26,h=38,u=700,l=72,c=128,f="-",p=/[^\0-\u007E]/,g=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",v=i-a,d=RangeError,w=n(g.exec),y=Math.floor,b=String.fromCharCode,U=n("".charCodeAt),P=n([].join),k=n([].push),R=n("".replace),S=n("".split),L=n("".toLowerCase),q=function(e){var t=[],r=0,n=e.length;while(r<n){var s=U(e,r++);if(s>=55296&&s<=56319&&r<n){var i=U(e,r++);56320==(64512&i)?k(t,((1023&s)<<10)+(1023&i)+65536):(k(t,s),r--)}else k(t,s)}return t},H=function(e){return e+22+75*(e<26)},B=function(e,t,r){var n=0;e=r?y(e/u):e>>1,e+=y(e/t);while(e>v*o>>1)e=y(e/v),n+=i;return y(n+(v+1)*e/(e+h))},x=function(e){var t=[];e=q(e);var r,n,h=e.length,u=c,p=0,g=l;for(r=0;r<e.length;r++)n=e[r],n<128&&k(t,b(n));var v=t.length,w=v;v&&k(t,f);while(w<h){var U=s;for(r=0;r<e.length;r++)n=e[r],n>=u&&n<U&&(U=n);var R=w+1;if(U-u>y((s-p)/R))throw d(m);for(p+=(U-u)*R,u=U,r=0;r<e.length;r++){if(n=e[r],n<u&&++p>s)throw d(m);if(n==u){var S=p,L=i;while(1){var x=L<=g?a:L>=g+o?o:L-g;if(S<x)break;var A=S-x,C=i-x;k(t,b(H(x+A%C))),S=y(A/C),L+=i}k(t,b(H(S))),g=B(p,R,w==v),p=0,w++}}p++,u++}return P(t,"")};e.exports=function(e){var t,r,n=[],s=S(R(L(e),g,"."),".");for(t=0;t<s.length;t++)r=s[t],k(n,w(p,r)?"xn--"+x(r):r);return P(n,".")}},4144:function(e,t,r){var n=r(4229),s=r(95),i=r(7400),a=r(4231),o=s("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),a&&!e.toJSON||!t.size&&(a||!i)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},2653:function(e,t,r){"use strict";r(5735);var n=r(3103),s=r(9859),i=r(266),a=r(5968),o=r(7400),h=r(4144),u=r(4768),l=r(6616),c=r(8312),f=r(4555),p=r(2247),g=r(6407),m=r(7728),v=r(6733),d=r(8270),w=r(7636),y=r(1589),b=r(1176),U=r(5052),P=r(3326),k=r(2391),R=r(5358),S=r(8403),L=r(8830),q=r(7579),H=r(95),B=r(3867),x=H("iterator"),A="URLSearchParams",C=A+"Iterator",O=g.set,z=g.getterFor(A),j=g.getterFor(C),E=Object.getOwnPropertyDescriptor,I=function(e){if(!o)return s[e];var t=E(s,e);return t&&t.value},F=I("fetch"),_=I("Request"),$=I("Headers"),M=_&&_.prototype,Q=$&&$.prototype,T=s.RegExp,D=s.TypeError,G=s.decodeURIComponent,J=s.encodeURIComponent,N=a("".charAt),K=a([].join),V=a([].push),W=a("".replace),X=a([].shift),Y=a([].splice),Z=a("".split),ee=a("".slice),te=/\+/g,re=Array(4),ne=function(e){return re[e-1]||(re[e-1]=T("((?:%[\\da-f]{2}){"+e+"})","gi"))},se=function(e){try{return G(e)}catch(t){return e}},ie=function(e){var t=W(e,te," "),r=4;try{return G(t)}catch(n){while(r)t=W(t,ne(r--),se);return t}},ae=/[!'()~]|%20/g,oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},he=function(e){return oe[e]},ue=function(e){return W(J(e),ae,he)},le=p((function(e,t){O(this,{type:C,iterator:S(z(e).entries),kind:t})}),"Iterator",(function(){var e=j(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),ce=function(e){this.entries=[],this.url=null,void 0!==e&&(U(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===N(e,0)?ee(e,1):e:P(e)))};ce.prototype={type:A,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,s,a,o,h,u=L(e);if(u){t=S(e,u),r=t.next;while(!(n=i(r,t)).done){if(s=S(b(n.value)),a=s.next,(o=i(a,s)).done||(h=i(a,s)).done||!i(a,s).done)throw D("Expected sequence with length 2");V(this.entries,{key:P(o.value),value:P(h.value)})}}else for(var l in e)d(e,l)&&V(this.entries,{key:l,value:P(e[l])})},parseQuery:function(e){if(e){var t,r,n=Z(e,"&"),s=0;while(s<n.length)t=n[s++],t.length&&(r=Z(t,"="),V(this.entries,{key:ie(X(r)),value:ie(K(r,"="))}))}},serialize:function(){var e,t=this.entries,r=[],n=0;while(n<t.length)e=t[n++],V(r,ue(e.key)+"="+ue(e.value));return K(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fe=function(){m(this,pe);var e=arguments.length>0?arguments[0]:void 0,t=O(this,new ce(e));o||(this.length=t.entries.length)},pe=fe.prototype;if(c(pe,{append:function(e,t){q(arguments.length,2);var r=z(this);V(r.entries,{key:P(e),value:P(t)}),o||this.length++,r.updateURL()},delete:function(e){q(arguments.length,1);var t=z(this),r=t.entries,n=P(e),s=0;while(s<r.length)r[s].key===n?Y(r,s,1):s++;o||(this.length=r.length),t.updateURL()},get:function(e){q(arguments.length,1);for(var t=z(this).entries,r=P(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){q(arguments.length,1);for(var t=z(this).entries,r=P(e),n=[],s=0;s<t.length;s++)t[s].key===r&&V(n,t[s].value);return n},has:function(e){q(arguments.length,1);var t=z(this).entries,r=P(e),n=0;while(n<t.length)if(t[n++].key===r)return!0;return!1},set:function(e,t){q(arguments.length,1);for(var r,n=z(this),s=n.entries,i=!1,a=P(e),h=P(t),u=0;u<s.length;u++)r=s[u],r.key===a&&(i?Y(s,u--,1):(i=!0,r.value=h));i||V(s,{key:a,value:h}),o||(this.length=s.length),n.updateURL()},sort:function(){var e=z(this);B(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,r=z(this).entries,n=w(e,arguments.length>1?arguments[1]:void 0),s=0;while(s<r.length)t=r[s++],n(t.value,t.key,this)},keys:function(){return new le(this,"keys")},values:function(){return new le(this,"values")},entries:function(){return new le(this,"entries")}},{enumerable:!0}),u(pe,x,pe.entries,{name:"entries"}),u(pe,"toString",(function(){return z(this).serialize()}),{enumerable:!0}),o&&l(pe,"size",{get:function(){return z(this).entries.length},configurable:!0,enumerable:!0}),f(fe,A),n({global:!0,constructor:!0,forced:!h},{URLSearchParams:fe}),!h&&v($)){var ge=a(Q.has),me=a(Q.set),ve=function(e){if(U(e)){var t,r=e.body;if(y(r)===A)return t=e.headers?new $(e.headers):new $,ge(t,"content-type")||me(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(e,{body:R(0,P(r)),headers:R(0,t)})}return e};if(v(F)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return F(e,arguments.length>1?ve(arguments[1]):{})}}),v(_)){var de=function(e){return m(this,M),new _(e,arguments.length>1?ve(arguments[1]):{})};M.constructor=de,de.prototype=M,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:de})}}e.exports={URLSearchParams:fe,getState:z}},523:function(e,t,r){r(2653)},5340:function(e,t,r){"use strict";r(8673);var n,s=r(3103),i=r(7400),a=r(4144),o=r(9859),h=r(7636),u=r(5968),l=r(4768),c=r(6616),f=r(7728),p=r(8270),g=r(47),m=r(507),v=r(9794),d=r(966).codeAt,w=r(7321),y=r(3326),b=r(4555),U=r(7579),P=r(2653),k=r(6407),R=k.set,S=k.getterFor("URL"),L=P.URLSearchParams,q=P.getState,H=o.URL,B=o.TypeError,x=o.parseInt,A=Math.floor,C=Math.pow,O=u("".charAt),z=u(/./.exec),j=u([].join),E=u(1..toString),I=u([].pop),F=u([].push),_=u("".replace),$=u([].shift),M=u("".split),Q=u("".slice),T=u("".toLowerCase),D=u([].unshift),G="Invalid authority",J="Invalid scheme",N="Invalid host",K="Invalid port",V=/[a-z]/i,W=/[\d+-.a-z]/i,X=/\d/,Y=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,se=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ae=/[\t\n\r]/g,oe=function(e){var t,r,n,s,i,a,o,h=M(e,".");if(h.length&&""==h[h.length-1]&&h.length--,t=h.length,t>4)return e;for(r=[],n=0;n<t;n++){if(s=h[n],""==s)return e;if(i=10,s.length>1&&"0"==O(s,0)&&(i=z(Y,s)?16:8,s=Q(s,8==i?1:2)),""===s)a=0;else{if(!z(10==i?ee:8==i?Z:te,s))return e;a=x(s,i)}F(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=C(256,5-t))return null}else if(a>255)return null;for(o=I(r),n=0;n<r.length;n++)o+=r[n]*C(256,3-n);return o},he=function(e){var t,r,n,s,i,a,o,h=[0,0,0,0,0,0,0,0],u=0,l=null,c=0,f=function(){return O(e,c)};if(":"==f()){if(":"!=O(e,1))return;c+=2,u++,l=u}while(f()){if(8==u)return;if(":"!=f()){t=r=0;while(r<4&&z(te,f()))t=16*t+x(f(),16),c++,r++;if("."==f()){if(0==r)return;if(c-=r,u>6)return;n=0;while(f()){if(s=null,n>0){if(!("."==f()&&n<4))return;c++}if(!z(X,f()))return;while(z(X,f())){if(i=x(f(),10),null===s)s=i;else{if(0==s)return;s=10*s+i}if(s>255)return;c++}h[u]=256*h[u]+s,n++,2!=n&&4!=n||u++}if(4!=n)return;break}if(":"==f()){if(c++,!f())return}else if(f())return;h[u++]=t}else{if(null!==l)return;c++,u++,l=u}}if(null!==l){a=u-l,u=7;while(0!=u&&a>0)o=h[u],h[u--]=h[l+a-1],h[l+--a]=o}else if(8!=u)return;return h},ue=function(e){for(var t=null,r=1,n=null,s=0,i=0;i<8;i++)0!==e[i]?(s>r&&(t=n,r=s),n=null,s=0):(null===n&&(n=i),++s);return s>r&&(t=n,r=s),t},le=function(e){var t,r,n,s;if("number"==typeof e){for(t=[],r=0;r<4;r++)D(t,e%256),e=A(e/256);return j(t,".")}if("object"==typeof e){for(t="",n=ue(e),r=0;r<8;r++)s&&0===e[r]||(s&&(s=!1),n===r?(t+=r?":":"::",s=!0):(t+=E(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ce={},fe=g({},ce,{" ":1,'"':1,"<":1,">":1,"`":1}),pe=g({},fe,{"#":1,"?":1,"{":1,"}":1}),ge=g({},pe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),me=function(e,t){var r=d(e,0);return r>32&&r<127&&!p(t,e)?e:encodeURIComponent(e)},ve={ftp:21,file:null,http:80,https:443,ws:80,wss:443},de=function(e,t){var r;return 2==e.length&&z(V,O(e,0))&&(":"==(r=O(e,1))||!t&&"|"==r)},we=function(e){var t;return e.length>1&&de(Q(e,0,2))&&(2==e.length||"/"===(t=O(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===T(e)},be=function(e){return e=T(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},Ue={},Pe={},ke={},Re={},Se={},Le={},qe={},He={},Be={},xe={},Ae={},Ce={},Oe={},ze={},je={},Ee={},Ie={},Fe={},_e={},$e={},Me={},Qe=function(e,t,r){var n,s,i,a=y(e);if(t){if(s=this.parse(a),s)throw B(s);this.searchParams=null}else{if(void 0!==r&&(n=new Qe(r,!0)),s=this.parse(a,null,n),s)throw B(s);i=q(new L),i.bindURL(this),this.searchParams=i}};Qe.prototype={type:"URL",parse:function(e,t,r){var s,i,a,o,h=this,u=t||Ue,l=0,c="",f=!1,g=!1,d=!1;e=y(e),t||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,e=_(e,se,""),e=_(e,ie,"$1")),e=_(e,ae,""),s=m(e);while(l<=s.length){switch(i=s[l],u){case Ue:if(!i||!z(V,i)){if(t)return J;u=ke;continue}c+=T(i),u=Pe;break;case Pe:if(i&&(z(W,i)||"+"==i||"-"==i||"."==i))c+=T(i);else{if(":"!=i){if(t)return J;c="",u=ke,l=0;continue}if(t&&(h.isSpecial()!=p(ve,c)||"file"==c&&(h.includesCredentials()||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=c,t)return void(h.isSpecial()&&ve[h.scheme]==h.port&&(h.port=null));c="","file"==h.scheme?u=ze:h.isSpecial()&&r&&r.scheme==h.scheme?u=Re:h.isSpecial()?u=He:"/"==s[l+1]?(u=Se,l++):(h.cannotBeABaseURL=!0,F(h.path,""),u=_e)}break;case ke:if(!r||r.cannotBeABaseURL&&"#"!=i)return J;if(r.cannotBeABaseURL&&"#"==i){h.scheme=r.scheme,h.path=v(r.path),h.query=r.query,h.fragment="",h.cannotBeABaseURL=!0,u=Me;break}u="file"==r.scheme?ze:Le;continue;case Re:if("/"!=i||"/"!=s[l+1]){u=Le;continue}u=Be,l++;break;case Se:if("/"==i){u=xe;break}u=Fe;continue;case Le:if(h.scheme=r.scheme,i==n)h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=v(r.path),h.query=r.query;else if("/"==i||"\\"==i&&h.isSpecial())u=qe;else if("?"==i)h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=v(r.path),h.query="",u=$e;else{if("#"!=i){h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=v(r.path),h.path.length--,u=Fe;continue}h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=v(r.path),h.query=r.query,h.fragment="",u=Me}break;case qe:if(!h.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,u=Fe;continue}u=xe}else u=Be;break;case He:if(u=Be,"/"!=i||"/"!=O(c,l+1))continue;l++;break;case Be:if("/"!=i&&"\\"!=i){u=xe;continue}break;case xe:if("@"==i){f&&(c="%40"+c),f=!0,a=m(c);for(var w=0;w<a.length;w++){var b=a[w];if(":"!=b||d){var U=me(b,ge);d?h.password+=U:h.username+=U}else d=!0}c=""}else if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&h.isSpecial()){if(f&&""==c)return G;l-=m(c).length+1,c="",u=Ae}else c+=i;break;case Ae:case Ce:if(t&&"file"==h.scheme){u=Ee;continue}if(":"!=i||g){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&h.isSpecial()){if(h.isSpecial()&&""==c)return N;if(t&&""==c&&(h.includesCredentials()||null!==h.port))return;if(o=h.parseHost(c),o)return o;if(c="",u=Ie,t)return;continue}"["==i?g=!0:"]"==i&&(g=!1),c+=i}else{if(""==c)return N;if(o=h.parseHost(c),o)return o;if(c="",u=Oe,t==Ce)return}break;case Oe:if(!z(X,i)){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&h.isSpecial()||t){if(""!=c){var P=x(c,10);if(P>65535)return K;h.port=h.isSpecial()&&P===ve[h.scheme]?null:P,c=""}if(t)return;u=Ie;continue}return K}c+=i;break;case ze:if(h.scheme="file","/"==i||"\\"==i)u=je;else{if(!r||"file"!=r.scheme){u=Fe;continue}if(i==n)h.host=r.host,h.path=v(r.path),h.query=r.query;else if("?"==i)h.host=r.host,h.path=v(r.path),h.query="",u=$e;else{if("#"!=i){we(j(v(s,l),""))||(h.host=r.host,h.path=v(r.path),h.shortenPath()),u=Fe;continue}h.host=r.host,h.path=v(r.path),h.query=r.query,h.fragment="",u=Me}}break;case je:if("/"==i||"\\"==i){u=Ee;break}r&&"file"==r.scheme&&!we(j(v(s,l),""))&&(de(r.path[0],!0)?F(h.path,r.path[0]):h.host=r.host),u=Fe;continue;case Ee:if(i==n||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&de(c))u=Fe;else if(""==c){if(h.host="",t)return;u=Ie}else{if(o=h.parseHost(c),o)return o;if("localhost"==h.host&&(h.host=""),t)return;c="",u=Ie}continue}c+=i;break;case Ie:if(h.isSpecial()){if(u=Fe,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=n&&(u=Fe,"/"!=i))continue}else h.fragment="",u=Me;else h.query="",u=$e;break;case Fe:if(i==n||"/"==i||"\\"==i&&h.isSpecial()||!t&&("?"==i||"#"==i)){if(be(c)?(h.shortenPath(),"/"==i||"\\"==i&&h.isSpecial()||F(h.path,"")):ye(c)?"/"==i||"\\"==i&&h.isSpecial()||F(h.path,""):("file"==h.scheme&&!h.path.length&&de(c)&&(h.host&&(h.host=""),c=O(c,0)+":"),F(h.path,c)),c="","file"==h.scheme&&(i==n||"?"==i||"#"==i))while(h.path.length>1&&""===h.path[0])$(h.path);"?"==i?(h.query="",u=$e):"#"==i&&(h.fragment="",u=Me)}else c+=me(i,pe);break;case _e:"?"==i?(h.query="",u=$e):"#"==i?(h.fragment="",u=Me):i!=n&&(h.path[0]+=me(i,ce));break;case $e:t||"#"!=i?i!=n&&("'"==i&&h.isSpecial()?h.query+="%27":h.query+="#"==i?"%23":me(i,ce)):(h.fragment="",u=Me);break;case Me:i!=n&&(h.fragment+=me(i,fe));break}l++}},parseHost:function(e){var t,r,n;if("["==O(e,0)){if("]"!=O(e,e.length-1))return N;if(t=he(Q(e,1,-1)),!t)return N;this.host=t}else if(this.isSpecial()){if(e=w(e),z(re,e))return N;if(t=oe(e),null===t)return N;this.host=t}else{if(z(ne,e))return N;for(t="",r=m(e),n=0;n<r.length;n++)t+=me(r[n],ce);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(ve,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&de(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,s=e.host,i=e.port,a=e.path,o=e.query,h=e.fragment,u=t+":";return null!==s?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=le(s),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+j(a,"/"):"",null!==o&&(u+="?"+o),null!==h&&(u+="#"+h),u},setHref:function(e){var t=this.parse(e);if(t)throw B(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Te(e.path[0]).origin}catch(r){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+le(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(y(e)+":",Ue)},getUsername:function(){return this.username},setUsername:function(e){var t=m(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=me(t[r],ge)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=me(t[r],ge)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?le(e):le(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ae)},getHostname:function(){var e=this.host;return null===e?"":le(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ce)},getPort:function(){var e=this.port;return null===e?"":y(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=y(e),""==e?this.port=null:this.parse(e,Oe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+j(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=y(e),""==e?this.query=null:("?"==O(e,0)&&(e=Q(e,1)),this.query="",this.parse(e,$e)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=y(e),""!=e?("#"==O(e,0)&&(e=Q(e,1)),this.fragment="",this.parse(e,Me)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Te=function(e){var t=f(this,De),r=U(arguments.length,1)>1?arguments[1]:void 0,n=R(t,new Qe(e,!1,r));i||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},De=Te.prototype,Ge=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(c(De,"href",Ge("serialize","setHref")),c(De,"origin",Ge("getOrigin")),c(De,"protocol",Ge("getProtocol","setProtocol")),c(De,"username",Ge("getUsername","setUsername")),c(De,"password",Ge("getPassword","setPassword")),c(De,"host",Ge("getHost","setHost")),c(De,"hostname",Ge("getHostname","setHostname")),c(De,"port",Ge("getPort","setPort")),c(De,"pathname",Ge("getPathname","setPathname")),c(De,"search",Ge("getSearch","setSearch")),c(De,"searchParams",Ge("getSearchParams")),c(De,"hash",Ge("getHash","setHash"))),l(De,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),l(De,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),H){var Je=H.createObjectURL,Ne=H.revokeObjectURL;Je&&l(Te,"createObjectURL",h(Je,H)),Ne&&l(Te,"revokeObjectURL",h(Ne,H))}b(Te,"URL"),s({global:!0,constructor:!0,forced:!a,sham:!i},{URL:Te})},4121:function(e,t,r){r(5340)}}]);
2
2
  //# sourceMappingURL=262.js.map