diff --git a/CHANGELOG.md b/CHANGELOG.md index f80ec93..98c39a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -## [2.2.2](https://github.com/NASA-AMMOS/AIT-GUI/compare/2.2.1...2.2.2) +## [2.3.0](https://github.com/NASA-AMMOS/AIT-GUI/compare/2.2.2...2.3.0) + +### Merged + +- Issue #198 - Address stagnant DN to EU value issue [`#199`](https://github.com/NASA-AMMOS/AIT-GUI/pull/199) +- Issue #194 - Fix improperly initialized 'dntoeu' packet states [`#195`](https://github.com/NASA-AMMOS/AIT-GUI/pull/195) +- Issue #192 - Update Plugin data handling to match Core changes [`#193`](https://github.com/NASA-AMMOS/AIT-GUI/pull/193) +- Issue #196 - Fix UI Time64 decode handling of 0 value [`#197`](https://github.com/NASA-AMMOS/AIT-GUI/pull/197) + +### Fixed + +- Issue #198 - Address stagnant DN to EU value issue [`#198`](https://github.com/NASA-AMMOS/AIT-GUI/issues/198) +- Issue #194 - Fix improperly initialized 'dntoeu' packet states [`#194`](https://github.com/NASA-AMMOS/AIT-GUI/issues/194) +- Issue #196 - Fix UI Time64 decode handling of 0 value [`#196`](https://github.com/NASA-AMMOS/AIT-GUI/issues/196) + +## [2.2.2](https://github.com/NASA-AMMOS/AIT-GUI/compare/2.2.1...2.2.2) - 2021-02-01 ### Merged @@ -17,6 +32,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - Issue #189 and #190 - Fix data formatting with new data diffing [`138ccec`](https://github.com/NASA-AMMOS/AIT-GUI/commit/138ccecd152cd8214535690dedeaa408522f6d92) - Issue #189 - Update backend handling of Complex types when diffing [`2d2f36c`](https://github.com/NASA-AMMOS/AIT-GUI/commit/2d2f36ce090d222ad00427220c7cf4dd01b14995) +- Prep for 2.2.2 release [`6a71964`](https://github.com/NASA-AMMOS/AIT-GUI/commit/6a71964ad0bcafcbb9629ad9cdda94f3ab4e4819) ## [2.2.1](https://github.com/NASA-AMMOS/AIT-GUI/compare/2.2.0...2.2.1) - 2021-01-20 diff --git a/ait/gui/static/build/ait.bundle.js b/ait/gui/static/build/ait.bundle.js index ba2f7b3..302a9c5 100644 --- a/ait/gui/static/build/ait.bundle.js +++ b/ait/gui/static/build/ait.bundle.js @@ -1,5 +1,5 @@ !function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}var o=n(1),a=r(o),s=n(6),l=i(s),u=n(237);r(u);n(263),window.ait=l,window.m=a.default,l.gui.init()},function(t,e,n){(function(t,e,n){!function(){"use strict";function i(t,e,n,i,r,o){return{tag:t,key:e,attrs:n,children:i,text:r,dom:o,domSize:void 0,state:void 0,_state:void 0,events:void 0,instance:void 0,skip:!1}}function r(t){for(var e in t)if(d.call(t,e))return!1;return!0}function o(t){for(var e,n="div",i=[],r={};e=u.exec(t);){var o=e[1],a=e[2];if(""===o&&""!==a)n=a;else if("#"===o)r.id=a;else if("."===o)i.push(a);else if("["===e[3][0]){var s=e[6];s&&(s=s.replace(/\\(["'])/g,"$1").replace(/\\\\/g,"\\")),"class"===e[4]?i.push(s):r[e[4]]=""===s?s:s||!0}}return i.length>0&&(r.className=i.join(" ")),c[t]={tag:n,attrs:r}}function a(t,e,n){var o,a,s=!1,l=e.className||e.class;if(!r(t.attrs)&&!r(e)){var u={};for(var c in e)d.call(e,c)&&(u[c]=e[c]);e=u}for(var c in t.attrs)d.call(t.attrs,c)&&(e[c]=t.attrs[c]);void 0!==l&&(void 0!==e.class&&(e.class=void 0,e.className=l),null!=t.attrs.className&&(e.className=t.attrs.className+" "+l));for(var c in e)if(d.call(e,c)&&"key"!==c){s=!0;break}return Array.isArray(n)&&1===n.length&&null!=n[0]&&"#"===n[0].tag?a=n[0].children:o=n,i(t.tag,e.key,s?e:void 0,o,a)}function s(t){var e,n=arguments[1],r=2;if(null==t||"string"!=typeof t&&"function"!=typeof t&&"function"!=typeof t.view)throw Error("The selector must be either a string or a component.");if("string"==typeof t)var s=c[t]||o(t);if(null==n?n={}:("object"!=typeof n||null!=n.tag||Array.isArray(n))&&(n={},r=1),arguments.length===r+1)e=arguments[r],Array.isArray(e)||(e=[e]);else for(e=[];r=e?(n=o,t()):null===i&&(i=r(function(){i=null,t(),n=Date.now()},e-(o-n)))}}i.normalize=function(t){return Array.isArray(t)?i("[",void 0,void 0,i.normalizeChildren(t),void 0,void 0):null!=t&&"object"!=typeof t?i("#",void 0,void 0,t===!1?"":t,void 0,void 0):t},i.normalizeChildren=function(t){for(var e=0;e0||t(e)}}var n=0,i=e(l);try{t(e(s),i)}catch(t){i(t)}}if(!(this instanceof f))throw new Error("Promise must be called with `new`");if("function"!=typeof e)throw new TypeError("executor must be a function");var r=this,o=[],a=[],s=n(o,!0),l=n(a,!1),u=r._instance={resolvers:o,rejectors:a},c="function"==typeof t?t:setTimeout;i(e)};if(f.prototype.then=function(t,e){function n(t,e,n,o){e.push(function(e){if("function"!=typeof t)n(e);else try{i(t(e))}catch(t){r&&r(t)}}),"function"==typeof a.retry&&o===a.state&&a.retry()}var i,r,o=this,a=o._instance,s=new f(function(t,e){i=t,r=e});return n(t,a.resolvers,i,!0),n(e,a.rejectors,r,!1),s},f.prototype.catch=function(t){return this.then(null,t)},f.resolve=function(t){return t instanceof f?t:new f(function(e){e(t)})},f.reject=function(t){return new f(function(e,n){n(t)})},f.all=function(t){return new f(function(e,n){var i=t.length,r=0,o=[];if(0===t.length)e([]);else for(var a=0;a=200&&o.status<300||304===o.status||g.test(n.url))e(d(n.type,t));else{var r=new Error(o.responseText);for(var s in t)r[s]=t[s];i(r)}}catch(t){i(t)}},r&&null!=n.data?o.send(n.data):o.send()});return n.background===!0?h:a(h)}function a(n,o){var a=i();n=r(n,o);var u=new e(function(e,i){var r=n.callbackName||"_mithril_"+Math.round(1e16*Math.random())+"_"+f++,o=t.document.createElement("script");t[r]=function(i){o.parentNode.removeChild(o),e(d(n.type,i)),delete t[r]},o.onerror=function(){o.parentNode.removeChild(o),i(new Error("JSONP request failed")),delete t[r]},null==n.data&&(n.data={}),n.url=s(n.url,n.data),n.data[n.callbackKey||"callback"]=r,o.src=l(n.url,n.data),t.document.documentElement.appendChild(o)});return n.background===!0?u:a(u)}function s(t,e){if(null==e)return t;for(var n=t.match(/:[^\/]+/gi)||[],i=0;i=p&&m>=g;){var y=e[p],C=n[g];if(y!==C||i)if(null==y)p++;else if(null==C)g++;else if(y.key===C.key){var k=null!=d&&p>=e.length-d.length||null==d&&i;p++,g++,f(t,y,C,a,w(e,p,s),k,l),i&&y.tag===C.tag&&S(t,x(y),s)}else{var y=e[v];if(y!==C||i)if(null==y)v--;else if(null==C)g++;else{if(y.key!==C.key)break;var k=null!=d&&v>=e.length-d.length||null==d&&i;f(t,y,C,a,w(e,v+1,s),k,l),(i||g=p&&m>=g;){var y=e[v],C=n[m];if(y!==C||i)if(null==y)v--;else if(null==C)m--;else if(y.key===C.key){var k=null!=d&&v>=e.length-d.length||null==d&&i;f(t,y,C,a,w(e,v+1,s),k,l),i&&y.tag===C.tag&&S(t,x(y),s),null!=y.dom&&(s=y.dom),v--,m--}else{if(h||(h=_(e,v)),null!=C){var A=h[C.key];if(null!=A){var D=e[A],k=null!=d&&A>=e.length-d.length||null==d&&i;f(t,D,C,a,w(e,v+1,s),i,l),S(t,x(D),s),e[A].skip=!0,null!=D.dom&&(s=D.dom)}else{var O=o(t,C,a,l,s);s=O}}m--}else v--,m--;if(m0){for(var i=t.dom;--e;)n.appendChild(i.nextSibling);n.insertBefore(i,n.firstChild)}return n}return t.dom}function w(t,e,n){for(;e1)for(var o=t.dom;--n;)A(o.nextSibling);A(t.dom),null==e||null!=t.domSize||R(t.attrs)||"string"!=typeof t.tag||(e.pool?e.pool.push(t):e.pool=[t])}}var i=1,r=0;if(t.attrs&&"function"==typeof t.attrs.onbeforeremove){var o=t.attrs.onbeforeremove.call(t.state,t);null!=o&&"function"==typeof o.then&&(i++,o.then(n,n))}if("string"!=typeof t.tag&&"function"==typeof t._state.onbeforeremove){var o=t._state.onbeforeremove.call(t.state,t);null!=o&&"function"==typeof o.then&&(i++,o.then(n,n))}n()}function A(t){var e=t.parentNode;null!=e&&e.removeChild(t)}function D(t){if(t.attrs&&"function"==typeof t.attrs.onremove&&t.attrs.onremove.call(t.state,t),"string"!=typeof t.tag)"function"==typeof t._state.onremove&&t._state.onremove.call(t.state,t),null!=t.instance&&D(t.instance);else{var e=t.children;if(Array.isArray(e))for(var n=0;n-1&&"xlink"===e.substr(0,a))o.setAttributeNS("http://www.w3.org/1999/xlink",e.slice(a+1),i);else if("o"===e[0]&&"n"===e[1]&&"function"==typeof i)j(t,e,i);else if("style"===e)H(o,n,i);else if(e in o&&!I(e)&&void 0===r&&!F(t)){if("value"===e){var s=""+i;if(("input"===t.tag||"textarea"===t.tag)&&t.dom.value===s&&t.dom===q.activeElement)return;if("select"===t.tag)if(null===i){if(t.dom.selectedIndex===-1&&t.dom===q.activeElement)return}else if(null!==n&&t.dom.value===s&&t.dom===q.activeElement)return;if("option"===t.tag&&null!=n&&t.dom.value===s)return}if("input"===t.tag&&"type"===e)return void o.setAttribute(e,i);o[e]=i}else"boolean"==typeof i?i?o.setAttribute(e,""):o.removeAttribute(e):o.setAttribute("className"===e?"class":e,i)}}function E(t){var e=t.attrs;"select"===t.tag&&null!=e&&("value"in e&&L(t,"value",null,e.value,void 0),"selectedIndex"in e&&L(t,"selectedIndex",null,e.selectedIndex,void 0))}function M(t,e,n,i){if(null!=n)for(var r in n)L(t,r,e&&e[r],n[r],i);if(null!=e)for(var r in e)null!=n&&r in n||("className"===r&&(r="class"),"o"!==r[0]||"n"!==r[1]||P(r)?"key"!==r&&t.dom.removeAttribute(r):j(t,r,void 0))}function N(t,e){return"value"===e||"checked"===e||"selectedIndex"===e||"selected"===e&&t.dom===q.activeElement}function P(t){return"oninit"===t||"oncreate"===t||"onupdate"===t||"onremove"===t||"onbeforeremove"===t||"onbeforeupdate"===t}function I(t){return"href"===t||"list"===t||"form"===t||"width"===t||"height"===t}function F(t){return t.attrs.is||t.tag.indexOf("-")>-1}function R(t){return null!=t&&(t.oncreate||t.onupdate||t.onbeforeremove||t.onremove)}function H(t,e,n){if(e===n&&(t.style.cssText="",e=null),null==n)t.style.cssText="";else if("string"==typeof n)t.style.cssText=n;else{"string"==typeof e&&(t.style.cssText="");for(var i in n)t.style[i]=n[i];if(null!=e&&"string"!=typeof e)for(var i in e)i in n||(t.style[i]="")}}function j(t,e,n){var i=t.dom,r="function"!=typeof Y?n:function(t){var e=n.call(i,t);return Y.call(i,t),e};if(e in i)i[e]="function"==typeof n?r:null;else{var o=e.slice(2);if(void 0===t.events&&(t.events={}),t.events[e]===r)return;null!=t.events[e]&&i.removeEventListener(o,t.events[e],!1),"function"==typeof n&&(t.events[e]=r,i.addEventListener(o,t.events[e],!1))}}function W(t,e,n){"function"==typeof t.oninit&&t.oninit.call(e.state,e),"function"==typeof t.oncreate&&n.push(t.oncreate.bind(e.state,e))}function B(t,e,n){"function"==typeof t.onupdate&&n.push(t.onupdate.bind(e.state,e))}function z(t,e){var n,i;return null!=t.attrs&&"function"==typeof t.attrs.onbeforeupdate&&(n=t.attrs.onbeforeupdate.call(t.state,t,e)),"string"!=typeof t.tag&&"function"==typeof t._state.onbeforeupdate&&(i=t._state.onbeforeupdate.call(t.state,t,e)),!(void 0===n&&void 0===i||n||i)&&(t.dom=e.dom,t.domSize=e.domSize,t.instance=e.instance,!0)}function $(t,e){if(!t)throw new Error("Ensure the DOM element being passed to m.route/m.mount/m.render is not undefined.");var n=[],r=q.activeElement,o=t.namespaceURI;null==t.vnodes&&(t.textContent=""),Array.isArray(e)||(e=[e]),h(t,t.vnodes,i.normalizeChildren(e),!1,n,null,"http://www.w3.org/1999/xhtml"===o?void 0:o),t.vnodes=e,null!=r&&q.activeElement!==r&&r.focus();for(var a=0;a-1&&o.splice(e,2)}function i(){for(var t=1;t-1&&l.pop();for(var c=0;c-1?i:r>-1?r:t.length;if(i>-1){var a=r>-1?r:t.length,s=S(t.slice(i+1,a));for(var l in s)e[l]=s[l]}if(r>-1){var u=S(t.slice(r+1));for(var l in u)n[l]=u[l]}return t.slice(0,o)}var o,a="function"==typeof e.history.pushState,s="function"==typeof t?t:setTimeout,l={prefix:"#!"};return l.getPath=function(){var t=l.prefix.charAt(0);switch(t){case"#":return n("hash").slice(l.prefix.length);case"?":return n("search").slice(l.prefix.length)+n("hash");default:return n("pathname").slice(l.prefix.length)+n("search")+n("hash")}},l.setPath=function(t,n,i){var o={},s={};if(t=r(t,o,s),null!=n){for(var u in n)o[u]=n[u];t=t.replace(/:([^\/]+)/g,function(t,e){return delete o[e],n[e]})}var c=p(o);c&&(t+="?"+c);var d=p(s);if(d&&(t+="#"+d),a){var h=i?i.state:null,f=i?i.title:null;e.onpopstate(),i&&i.replace?e.history.replaceState(h,f,l.prefix+t):e.history.pushState(h,f,l.prefix+t)}else e.location.href=l.prefix+t},l.defineRoutes=function(t,n,o){function s(){var i=l.getPath(),a={},s=r(i,a,a),u=e.history.state;if(null!=u)for(var c in u)a[c]=u[c];for(var d in t){var h=new RegExp("^"+d.replace(/:[^\/]+?\.{3}/g,"(.*?)").replace(/:[^\/]+/g,"([^\\/]+)")+"/?$");if(h.test(s))return void s.replace(h,function(){for(var e=d.match(/:[^\/]+/g)||[],r=[].slice.call(arguments,1,-2),o=0;o=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(3),e.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof t&&t.clearImmediate||this&&this.clearImmediate}).call(e,function(){return this}())},function(t,e,n){(function(t,e){!function(t,n){"use strict";function i(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1)for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:600;n(this,t),this._buffer=new Array(e),this.flush()}return i(t,[{key:"_index",value:function(t){return(this._start+this._length+t)%this._buffer.length}},{key:"flush",value:function(){this._length=0,this._start=0,this._buffer.fill(void 0)}},{key:"get",value:function(t){var e=this._start+this._length-1,n=(e-t)%this._buffer.length;return this._buffer[n]}},{key:"insert",value:function(t){this._length+1>this._buffer.length&&this.remove();var e=this._start+this._length,n=e%this._buffer.length;this._buffer[n]=t,this._length+=1}},{key:"remove",value:function(){var t=this._buffer[this._start];return this._start=(this._start+1)%this._buffer.length,this._length-=1,t}},{key:"capacity",get:function(){return this._capacity}},{key:"length",get:function(){return this._length}}]),t}(),o=function(){function t(){n(this,t)}return i(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:600,n=!1;return void 0===this[t]&&(this[t]=new r(e),n=!0),n}},{key:"insert",value:function(t,e){void 0===this[t]&&this.create(t),this[t].insert(e)}}]),t}();e.default=new o},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n1&&(f=h.slice(0,h.length-1));var g=i[f.toLowerCase()],v=void 0,m=u;if("s"!==p){m=u+g;var y=(0,a.sprintf)(r[p.toLowerCase()],8*g);1===g&&y.indexOf("MSB_")!==-1&&(y=y.slice(4,y.length)),v=new l.PrimitiveType(y).decode(n,u)}else m=e.indexOf(0,u),v=t.slice(u,m).map(function(t){return String.fromCharCode(t)}).join("");c.push(v),u=m,"s"===h&&(u+=1),h.length>1&&(d=d.replace("%"+h,"%"+p))}return c.length>0&&(d=(0,a.vsprintf)(d,c)),d}},{key:"desc",get:function(){return this._desc}},{key:"name",get:function(){return this._name}},{key:"code",get:function(){return this._code}},{key:"msg",get:function(){return this._msg}}],[{key:"parse",value:function(e){return"string"==typeof e&&(e=JSON.parse(e)),new t(e)}}]),t}();e.EVRDictionary=u,e.EVRDefinition=c},function(t,e,n){!function(t){function n(){var t=arguments[0],e=n.cache;return e[t]&&e.hasOwnProperty(t)||(e[t]=n.parse(t)),n.format.call(null,e[t],arguments)}function i(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function r(t,e){return Array(e+1).join(t)}var o={not_string:/[^s]/,number:/[diefg]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijosuxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[\+\-]/};n.format=function(t,e){var a,s,l,u,c,d,h,f=1,p=t.length,g="",v=[],m=!0,y="";for(s=0;s=0),u[8]){case"b":a=a.toString(2);break;case"c":a=String.fromCharCode(a);break;case"d":case"i":a=parseInt(a,10);break;case"j":a=JSON.stringify(a,null,u[6]?parseInt(u[6]):0);break;case"e":a=u[7]?a.toExponential(u[7]):a.toExponential();break;case"f":a=u[7]?parseFloat(a).toFixed(u[7]):parseFloat(a);break;case"g":a=u[7]?parseFloat(a).toPrecision(u[7]):parseFloat(a);break;case"o":a=a.toString(8);break;case"s":a=(a=String(a))&&u[7]?a.substring(0,u[7]):a;break;case"u":a>>>=0;break;case"x":a=a.toString(16);break;case"X":a=a.toString(16).toUpperCase()}o.json.test(u[8])?v[v.length]=a:(!o.number.test(u[8])||m&&!u[3]?y="":(y=m?"+":"-",a=a.toString().replace(o.sign,"")),d=u[4]?"0"===u[4]?"0":u[4].charAt(1):" ",h=u[6]-(y+a).length,c=u[6]&&h>0?r(d,h):"",v[v.length]=u[5]?y+a+c:"0"===d?y+c+a:c+y+a)}return v.join("")},n.cache={},n.parse=function(t){for(var e=t,n=[],i=[],r=0;e;){if(null!==(n=o.text.exec(e)))i[i.length]=n[0];else if(null!==(n=o.modulo.exec(e)))i[i.length]="%";else{if(null===(n=o.placeholder.exec(e)))throw new SyntaxError("[sprintf] unexpected placeholder");if(n[2]){r|=1;var a=[],s=n[2],l=[];if(null===(l=o.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a[a.length]=l[1];""!==(s=s.substring(l[0].length));)if(null!==(l=o.key_access.exec(s)))a[a.length]=l[1];else{if(null===(l=o.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");a[a.length]=l[1]}n[2]=a}else r|=2;if(3===r)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");i[i.length]=n}e=e.substring(n[0].length)}return i};var a=function(t,e,i){return i=(e||[]).slice(0),i.splice(0,0,t),n.apply(null,i)};e.sprintf=n,e.vsprintf=a}("undefined"==typeof window?this:window)},function(t,e){"use strict";function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,n){return n+e<=t.byteLength}function a(t){var e=void 0;return t in b?e=b[t]:t.startsWith("ArrayType")&&(e=new h(t)),e}function s(t){return"CMD16"===t||"EVR16"===t||"TIME8"===t||"TIME32"===t||"TIME64"===t}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;if(!o(t,2,e))return null;var n=ait.cmd.dict,i=t.getUint16(e,!1);return n?n.getByOpcode(i):i}},{key:"isTime",get:function(){return!1}}]),t}(),d=function(){function t(e){r(this,t),this._name=e}return l(t,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!o(t,2,e))return null;var n=ait.evr.dict,i=t.getUint16(e,!1);return n?n.getByCode(i):i}},{key:"isTime",get:function(){return!1}}]),t}(),h=function(){function t(e){r(this,t),this._elem_type=e.slice(11,e.indexOf("[")),this._prim_type=b[this._elem_type],this._num_elems=parseInt(e.slice(e.indexOf("[")+1,e.indexOf("]"))),this._name=e.slice(11,e.length-2),this._nbytes=this._num_elems*this._prim_type._nbytes}return l(t,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!o(t,this._nbytes,e))return null;for(var n=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return this._decode&&o(t,this._nbytes,e)?this._decode(t,e):null}},{key:"isTime",get:function(){return!1}}]),t}(),p=function(){function t(e){r(this,t),this._name=e}return l(t,[{key:"isTime",get:function(){return!0}}]),t}(),g=function(t){function e(){return r(this,e),n(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(t,1,e)?t.getUint8(e,!1)/256:null}}]),e}(p),v=function(t){function e(){return r(this,e),n(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"decode",value:function(t){return new Date(u+1e3*t)}}]),e}(p),m=function(t){function e(){return r(this,e),n(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"decode",value:function(t){var e=String(t).split(".").map(function(t){return parseInt(t)});return new Date(u+1e3*e[0]+e[1]/1e6)}}]),e}(p),y={I8:function(t,e){return t.getUint8(e)},U8:function(t,e){return t.getUint8(e)},LSB_I16:function(t,e){return t.getInt16(e,!0)},MSB_I16:function(t,e){return t.getInt16(e,!1)},LSB_U16:function(t,e){return t.getUint16(e,!0)},MSB_U16:function(t,e){return t.getUint16(e,!1)},LSB_I32:function(t,e){return t.getInt32(e,!0)},MSB_I32:function(t,e){return t.getInt32(e,!1)},LSB_U32:function(t,e){return t.getUint32(e,!0)},MSB_U32:function(t,e){return t.getUint32(e,!1)},LSB_F32:function(t,e){return t.getFloat32(e,!0)},MSB_F32:function(t,e){return t.getFloat32(e,!1)},LSB_D64:function(t,e){return t.getFloat64(e,!0)},MSB_D64:function(t,e){return t.getFloat64(e,!1)}},b={};Object.keys(y).map(function(t){b[t]=new f(t)}),b.CMD16=new c("CMD16"),b.EVR16=new d("EVR16"),b.TIME8=new g("TIME8"),b.TIME32=new v("TIME32"),b.TIME64=new m("TIME64"),e.PrimitiveType=f,e.get=a,e.isComplexType=s},function(t,e,n){"use strict";function i(t,e){var n=e.gps,i=void 0===n||n,r=(e.utc,e.utc_gps_offset),o=void 0===r?0:r;if(i){var s=a(t);s.setSeconds(s.getSeconds()+o)}}function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.doy,i=void 0!==n&&n,r=e.gps,o=void 0===r||r,u=e.utc,c=void 0!==u&&u,h=void 0,f=void 0,p=void 0,g=void 0,v=a(t);return o||c?(h=v.getUTCFullYear(),f=v.getUTCMonth(),p=v.getUTCDate()):(h=v.getFullYear(),f=v.getMonth(),p=v.getDate()),g=i?h+"-"+l((0,d.DOY)(h,f,p)):h+"-"+s(f+1)+"-"+s(p)}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(t,e)+" "+u(t,e)+" "+c(t,e)}function a(t){var e=t;return"string"==typeof t?e=Date.parse(t):"number"==typeof t&&(e=new Date(t)),e}function s(t){return t<10?"0"+t:t}function l(t){return t<100?"0"+s(t):t}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.h24,i=void 0===n||n,r=e.gps,o=void 0===r||r,l=e.utc,u=void 0!==l&&l,c=void 0,d=void 0,h=void 0,f=void 0,p=" AM",g=a(t);return o||u?(c=g.getUTCHours(),d=g.getUTCMinutes(),h=g.getUTCSeconds()):(c=g.getHours(),d=g.getMinutes(),h=g.getSeconds()),!i&&c>12&&(c-=12,p=" PM"),f=s(c)+":"+s(d)+":"+s(h),i||(f+=p),f}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.utc,i=void 0!==n&&n,r=e.gps,o=void 0===r||r,a=e.local,s=void 0!==a&&a;return o?"GPS":i?"UTC":s?"Local Time":(0,d.timezone)(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.adjustUTCtoGPS=e.tz=e.time=e.datetime=e.date=void 0;var d=n(14);e.date=r,e.datetime=o,e.time=u,e.tz=c,e.adjustUTCtoGPS=i},function(t,e){"use strict";function n(t,e,n){var r=[0,31,59,90,120,151,181,212,243,273,304,334],o=r[e]+n;return i(t)&&e>=2&&(o+=1),o}function i(t){return t%4===0&&t%100!==0||t%400===0}function r(t){var e=/\((\w+)\)$/.exec(t.toString());return Array.isArray(e)&&e.length>1?e[1]:""}Object.defineProperty(e,"__esModule",{value:!0}),e.DOY=n,e.isLeap=i,e.timezone=r},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t){for(var e={},n=0;nHistory'}},{name:"cmd-dict",limit:10,source:ait.cmd.typeahead.dict,templates:{header:'

Dictionary

'}}).bind("typeahead:select",function(t,e){n._typeaheadEventHandler(t,e)}).bind("typeahead:autocomplete",function(t,e){n._typeaheadEventHandler(t,e)}).bind("typeahead:close",function(t,e){n._typeaheadEventHandler(t,e)}).bind("typeahead:cursorchange",function(t,e){clearTimeout(n._user_input_timer),n._validating=!1,n._validation_msgs=[],n._cmd_valid=!1})})},view:function(e){var n=this,i="Send",r={class:"btn btn-success",type:"submit"};this._cmding_disabled&&(r.disabled="disabled"),!this._validating&&this._cmd_valid||(r.class="btn btn-danger",r.disabled="disabled",this._validating&&(i=m("span",{class:"glyphicon glyphicon-refresh right-spin"})));var o="";if(0!==this._validation_msgs.length){var a={class:"alert alert-danger alert-dismissible error_display"};o=m("div",a,[m("div",[m("button",{type:"button",class:"close","data-dimiss":"alert",onclick:function(){n._validation_msgs=[]}},m("span","×")),m("span",{class:"glyphicon glyphicon-info-sign"}),m("strong"," Command Validation Errors")]),(0,f.default)(this._validation_msgs,function(t){return m("p",t)})])}return m("ait-commandinput",[m("form",{class:"form-horizontal",role:"form",method:"POST",action:"/cmd",onsubmit:function(e){e.preventDefault();var n=e.currentTarget.getAttribute("action"),i=new FormData;i.append("command",e.currentTarget.elements.command.value),m.request({method:"POST",url:n,data:i}),t(e.currentTarget.elements.command).typeahead("val","").focus()}},[m("label","Send Command:"),m("div",{class:"input-group"},[m("input",{class:"typeahead form-control",type:"text",name:"command",placeholder:"Select Command ...",oninput:function(t){n._cmd_valid=!1,n._validating=!0,n._validation_msgs=[],clearTimeout(n._user_input_timer);var e=t.target.closest("form");""!==e.elements.command.value?n._user_input_timer=setTimeout(function(){n._validateCommand(e)},1e3):n._validating=!1},onkeyup:function(t){17==t.keyCode&&(n._cntrl_toggled=!1)},onkeydown:function(t){return 17==t.keyCode&&(n._cntrl_toggled=!0),!(13==t.keyCode&&!n._cntrl_toggled||13==t.keyCode&&!n._cmd_valid||n.cmding_disabled)||(t.preventDefault(),!1)}}),m("span",{class:"input-group-btn"},m("button",r,i))]),m("span",{class:"help-block"},"Ctrl + Enter to send command")]),o])},_typeaheadEventHandler:function(t,e){var n=this;if(""!==e&&void 0!==e){var i=t.target.closest("form");this._cmd_valid=!1,this._validating=!0,this._validation_msgs=[],clearTimeout(this._user_input_timer),this._user_input_timer=setTimeout(function(){n._validateCommand(i)},1e3),m.redraw()}},_validateCommand:function(t){var e=this,n=t.elements.command.value,i=new FormData;i.append("command",n),m.request({method:"POST",url:"/cmd/validate",data:i}).then(function(){e._cmd_valid=!0,e._validating=!1}).catch(function(t){e._cmd_valid=!1,e._validating=!1,e._validation_msgs=t.msgs})}},b={activeCommand:null},_={groupedCommands:{},commandFilter:"",oninit:function(t){var e=this;ait.cmd.promise.then(function(){e.groupedCommands=ait.cmd.dict.bySubsystem})},oncreate:function(e){t(function(){t('[data-toggle="popover"]').popover()})},view:function(e){var n=this,i="";if(Object.keys(this.groupedCommands).length>0){var r=this.groupedCommands;if(0!==this.commandFilter.length){var a={};(0,o.default)(r,function(t,e){a[e]=(0,s.default)(t,function(t){return t.name.toLowerCase().includes(n.commandFilter.toLowerCase())})}),r=a}var l=Object.keys(r).sort();i=(0,f.default)(l,function(t){var e=r[t];if(0===e.length)return[];e=e.sort(function(t,e){return t.name"))))),m("div",{class:"row"},m("div",{class:"col-lg-10 col-lg-offset-1"},m("div",this.generateCommandArgumentsForm(b.activeCommand))))]):m("div",{class:"row"},m("div",{class:"col-lg-6 col-lg-offset-3 alert alert-info command_selection_help",role:"alert"},[m("span",{class:"glyphicon glyphicon-info-sign"})," Please select a command to configure"])),m("ait-commandconfigure",e)},generateCommandArgumentsForm:function(t){var e=this,n=Object.keys(t.arguments).map(function(e){return t.arguments[e]}).filter(function(t){return t.fixed!==!0});n.sort(function(t,e){var n=void 0,i=null;return n=Array.isArray(t.bytes)?t.bytes[0]:t.bytes,i=Array.isArray(e.bytes)?e.bytes[0]:e.bytes,n1&&(f=h.slice(0,h.length-1));var g=i[f.toLowerCase()],v=void 0,m=u;if("s"!==p){m=u+g;var y=(0,a.sprintf)(r[p.toLowerCase()],8*g);1===g&&y.indexOf("MSB_")!==-1&&(y=y.slice(4,y.length)),v=new l.PrimitiveType(y).decode(n,u)}else m=e.indexOf(0,u),v=t.slice(u,m).map(function(t){return String.fromCharCode(t)}).join("");c.push(v),u=m,"s"===h&&(u+=1),h.length>1&&(d=d.replace("%"+h,"%"+p))}return c.length>0&&(d=(0,a.vsprintf)(d,c)),d}},{key:"desc",get:function(){return this._desc}},{key:"name",get:function(){return this._name}},{key:"code",get:function(){return this._code}},{key:"msg",get:function(){return this._msg}}],[{key:"parse",value:function(e){return"string"==typeof e&&(e=JSON.parse(e)),new t(e)}}]),t}();e.EVRDictionary=u,e.EVRDefinition=c},function(t,e,n){!function(t){function n(){var t=arguments[0],e=n.cache;return e[t]&&e.hasOwnProperty(t)||(e[t]=n.parse(t)),n.format.call(null,e[t],arguments)}function i(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function r(t,e){return Array(e+1).join(t)}var o={not_string:/[^s]/,number:/[diefg]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijosuxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[\+\-]/};n.format=function(t,e){var a,s,l,u,c,d,h,f=1,p=t.length,g="",v=[],m=!0,y="";for(s=0;s=0),u[8]){case"b":a=a.toString(2);break;case"c":a=String.fromCharCode(a);break;case"d":case"i":a=parseInt(a,10);break;case"j":a=JSON.stringify(a,null,u[6]?parseInt(u[6]):0);break;case"e":a=u[7]?a.toExponential(u[7]):a.toExponential();break;case"f":a=u[7]?parseFloat(a).toFixed(u[7]):parseFloat(a);break;case"g":a=u[7]?parseFloat(a).toPrecision(u[7]):parseFloat(a);break;case"o":a=a.toString(8);break;case"s":a=(a=String(a))&&u[7]?a.substring(0,u[7]):a;break;case"u":a>>>=0;break;case"x":a=a.toString(16);break;case"X":a=a.toString(16).toUpperCase()}o.json.test(u[8])?v[v.length]=a:(!o.number.test(u[8])||m&&!u[3]?y="":(y=m?"+":"-",a=a.toString().replace(o.sign,"")),d=u[4]?"0"===u[4]?"0":u[4].charAt(1):" ",h=u[6]-(y+a).length,c=u[6]&&h>0?r(d,h):"",v[v.length]=u[5]?y+a+c:"0"===d?y+c+a:c+y+a)}return v.join("")},n.cache={},n.parse=function(t){for(var e=t,n=[],i=[],r=0;e;){if(null!==(n=o.text.exec(e)))i[i.length]=n[0];else if(null!==(n=o.modulo.exec(e)))i[i.length]="%";else{if(null===(n=o.placeholder.exec(e)))throw new SyntaxError("[sprintf] unexpected placeholder");if(n[2]){r|=1;var a=[],s=n[2],l=[];if(null===(l=o.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a[a.length]=l[1];""!==(s=s.substring(l[0].length));)if(null!==(l=o.key_access.exec(s)))a[a.length]=l[1];else{if(null===(l=o.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");a[a.length]=l[1]}n[2]=a}else r|=2;if(3===r)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");i[i.length]=n}e=e.substring(n[0].length)}return i};var a=function(t,e,i){return i=(e||[]).slice(0),i.splice(0,0,t),n.apply(null,i)};e.sprintf=n,e.vsprintf=a}("undefined"==typeof window?this:window)},function(t,e){"use strict";function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,n){return n+e<=t.byteLength}function a(t){var e=void 0;return t in b?e=b[t]:t.startsWith("ArrayType")&&(e=new h(t)),e}function s(t){return"CMD16"===t||"EVR16"===t||"TIME8"===t||"TIME32"===t||"TIME64"===t}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;if(!o(t,2,e))return null;var n=ait.cmd.dict,i=t.getUint16(e,!1);return n?n.getByOpcode(i):i}},{key:"isTime",get:function(){return!1}}]),t}(),d=function(){function t(e){r(this,t),this._name=e}return l(t,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!o(t,2,e))return null;var n=ait.evr.dict,i=t.getUint16(e,!1);return n?n.getByCode(i):i}},{key:"isTime",get:function(){return!1}}]),t}(),h=function(){function t(e){r(this,t),this._elem_type=e.slice(11,e.indexOf("[")),this._prim_type=b[this._elem_type],this._num_elems=parseInt(e.slice(e.indexOf("[")+1,e.indexOf("]"))),this._name=e.slice(11,e.length-2),this._nbytes=this._num_elems*this._prim_type._nbytes}return l(t,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!o(t,this._nbytes,e))return null;for(var n=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return this._decode&&o(t,this._nbytes,e)?this._decode(t,e):null}},{key:"isTime",get:function(){return!1}}]),t}(),p=function(){function t(e){r(this,t),this._name=e}return l(t,[{key:"isTime",get:function(){return!0}}]),t}(),g=function(t){function e(){return r(this,e),n(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(t,1,e)?t.getUint8(e,!1)/256:null}}]),e}(p),v=function(t){function e(){return r(this,e),n(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"decode",value:function(t){return new Date(u+1e3*t)}}]),e}(p),m=function(t){function e(){return r(this,e),n(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"decode",value:function(t){var e=[0,0];return e=t%1===0?[parseInt(t),0]:String(t).split(".").map(function(t){return parseInt(t)}),new Date(u+1e3*e[0]+e[1]/1e6)}}]),e}(p),y={I8:function(t,e){return t.getUint8(e)},U8:function(t,e){return t.getUint8(e)},LSB_I16:function(t,e){return t.getInt16(e,!0)},MSB_I16:function(t,e){return t.getInt16(e,!1)},LSB_U16:function(t,e){return t.getUint16(e,!0)},MSB_U16:function(t,e){return t.getUint16(e,!1)},LSB_I32:function(t,e){return t.getInt32(e,!0)},MSB_I32:function(t,e){return t.getInt32(e,!1)},LSB_U32:function(t,e){return t.getUint32(e,!0)},MSB_U32:function(t,e){return t.getUint32(e,!1)},LSB_F32:function(t,e){return t.getFloat32(e,!0)},MSB_F32:function(t,e){return t.getFloat32(e,!1)},LSB_D64:function(t,e){return t.getFloat64(e,!0)},MSB_D64:function(t,e){return t.getFloat64(e,!1)}},b={};Object.keys(y).map(function(t){b[t]=new f(t)}),b.CMD16=new c("CMD16"),b.EVR16=new d("EVR16"),b.TIME8=new g("TIME8"),b.TIME32=new v("TIME32"),b.TIME64=new m("TIME64"),e.PrimitiveType=f,e.get=a,e.isComplexType=s},function(t,e,n){"use strict";function i(t,e){var n=e.gps,i=void 0===n||n,r=(e.utc,e.utc_gps_offset),o=void 0===r?0:r;if(i){var s=a(t);s.setSeconds(s.getSeconds()+o)}}function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.doy,i=void 0!==n&&n,r=e.gps,o=void 0===r||r,u=e.utc,c=void 0!==u&&u,h=void 0,f=void 0,p=void 0,g=void 0,v=a(t);return o||c?(h=v.getUTCFullYear(),f=v.getUTCMonth(),p=v.getUTCDate()):(h=v.getFullYear(),f=v.getMonth(),p=v.getDate()),g=i?h+"-"+l((0,d.DOY)(h,f,p)):h+"-"+s(f+1)+"-"+s(p)}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(t,e)+" "+u(t,e)+" "+c(t,e)}function a(t){var e=t;return"string"==typeof t?e=Date.parse(t):"number"==typeof t&&(e=new Date(t)),e}function s(t){return t<10?"0"+t:t}function l(t){return t<100?"0"+s(t):t}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.h24,i=void 0===n||n,r=e.gps,o=void 0===r||r,l=e.utc,u=void 0!==l&&l,c=void 0,d=void 0,h=void 0,f=void 0,p=" AM",g=a(t);return o||u?(c=g.getUTCHours(),d=g.getUTCMinutes(),h=g.getUTCSeconds()):(c=g.getHours(),d=g.getMinutes(),h=g.getSeconds()),!i&&c>12&&(c-=12,p=" PM"),f=s(c)+":"+s(d)+":"+s(h),i||(f+=p),f}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.utc,i=void 0!==n&&n,r=e.gps,o=void 0===r||r,a=e.local,s=void 0!==a&&a;return o?"GPS":i?"UTC":s?"Local Time":(0,d.timezone)(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.adjustUTCtoGPS=e.tz=e.time=e.datetime=e.date=void 0;var d=n(14);e.date=r,e.datetime=o,e.time=u,e.tz=c,e.adjustUTCtoGPS=i},function(t,e){"use strict";function n(t,e,n){var r=[0,31,59,90,120,151,181,212,243,273,304,334],o=r[e]+n;return i(t)&&e>=2&&(o+=1),o}function i(t){return t%4===0&&t%100!==0||t%400===0}function r(t){var e=/\((\w+)\)$/.exec(t.toString());return Array.isArray(e)&&e.length>1?e[1]:""}Object.defineProperty(e,"__esModule",{value:!0}),e.DOY=n,e.isLeap=i,e.timezone=r},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t){for(var e={},n=0;nHistory'}},{name:"cmd-dict",limit:10,source:ait.cmd.typeahead.dict,templates:{header:'

Dictionary

'}}).bind("typeahead:select",function(t,e){n._typeaheadEventHandler(t,e)}).bind("typeahead:autocomplete",function(t,e){n._typeaheadEventHandler(t,e)}).bind("typeahead:close",function(t,e){n._typeaheadEventHandler(t,e)}).bind("typeahead:cursorchange",function(t,e){clearTimeout(n._user_input_timer),n._validating=!1,n._validation_msgs=[],n._cmd_valid=!1})})},view:function(e){var n=this,i="Send",r={class:"btn btn-success",type:"submit"};this._cmding_disabled&&(r.disabled="disabled"),!this._validating&&this._cmd_valid||(r.class="btn btn-danger",r.disabled="disabled",this._validating&&(i=m("span",{class:"glyphicon glyphicon-refresh right-spin"})));var o="";if(0!==this._validation_msgs.length){var a={class:"alert alert-danger alert-dismissible error_display"};o=m("div",a,[m("div",[m("button",{type:"button",class:"close","data-dimiss":"alert",onclick:function(){n._validation_msgs=[]}},m("span","×")),m("span",{class:"glyphicon glyphicon-info-sign"}),m("strong"," Command Validation Errors")]),(0,f.default)(this._validation_msgs,function(t){return m("p",t)})])}return m("ait-commandinput",[m("form",{class:"form-horizontal",role:"form",method:"POST",action:"/cmd",onsubmit:function(e){e.preventDefault();var n=e.currentTarget.getAttribute("action"),i=new FormData;i.append("command",e.currentTarget.elements.command.value),m.request({method:"POST",url:n,data:i}),t(e.currentTarget.elements.command).typeahead("val","").focus()}},[m("label","Send Command:"),m("div",{class:"input-group"},[m("input",{class:"typeahead form-control",type:"text",name:"command",placeholder:"Select Command ...",oninput:function(t){n._cmd_valid=!1,n._validating=!0,n._validation_msgs=[],clearTimeout(n._user_input_timer);var e=t.target.closest("form");""!==e.elements.command.value?n._user_input_timer=setTimeout(function(){n._validateCommand(e)},1e3):n._validating=!1},onkeyup:function(t){17==t.keyCode&&(n._cntrl_toggled=!1)},onkeydown:function(t){return 17==t.keyCode&&(n._cntrl_toggled=!0),!(13==t.keyCode&&!n._cntrl_toggled||13==t.keyCode&&!n._cmd_valid||n.cmding_disabled)||(t.preventDefault(),!1)}}),m("span",{class:"input-group-btn"},m("button",r,i))]),m("span",{class:"help-block"},"Ctrl + Enter to send command")]),o])},_typeaheadEventHandler:function(t,e){var n=this;if(""!==e&&void 0!==e){var i=t.target.closest("form");this._cmd_valid=!1,this._validating=!0,this._validation_msgs=[],clearTimeout(this._user_input_timer),this._user_input_timer=setTimeout(function(){n._validateCommand(i)},1e3),m.redraw()}},_validateCommand:function(t){var e=this,n=t.elements.command.value,i=new FormData;i.append("command",n),m.request({method:"POST",url:"/cmd/validate",data:i}).then(function(){e._cmd_valid=!0,e._validating=!1}).catch(function(t){e._cmd_valid=!1,e._validating=!1,e._validation_msgs=t.msgs})}},b={activeCommand:null},_={groupedCommands:{},commandFilter:"",oninit:function(t){var e=this;ait.cmd.promise.then(function(){e.groupedCommands=ait.cmd.dict.bySubsystem})},oncreate:function(e){t(function(){t('[data-toggle="popover"]').popover()})},view:function(e){var n=this,i="";if(Object.keys(this.groupedCommands).length>0){var r=this.groupedCommands;if(0!==this.commandFilter.length){var a={};(0,o.default)(r,function(t,e){a[e]=(0,s.default)(t,function(t){return t.name.toLowerCase().includes(n.commandFilter.toLowerCase())})}),r=a}var l=Object.keys(r).sort();i=(0,f.default)(l,function(t){var e=r[t];if(0===e.length)return[];e=e.sort(function(t,e){return t.name"))))),m("div",{class:"row"},m("div",{class:"col-lg-10 col-lg-offset-1"},m("div",this.generateCommandArgumentsForm(b.activeCommand))))]):m("div",{class:"row"},m("div",{class:"col-lg-6 col-lg-offset-3 alert alert-info command_selection_help",role:"alert"},[m("span",{class:"glyphicon glyphicon-info-sign"})," Please select a command to configure"])),m("ait-commandconfigure",e)},generateCommandArgumentsForm:function(t){var e=this,n=Object.keys(t.arguments).map(function(e){return t.arguments[e]}).filter(function(t){return t.fixed!==!0});n.sort(function(t,e){var n=void 0,i=null;return n=Array.isArray(t.bytes)?t.bytes[0]:t.bytes,i=Array.isArray(e.bytes)?e.bytes[0]:e.bytes,n=2.1.0'], + install_requires = ['ait-core>=2.3.0'], extras_require = { 'docs': [ 'Sphinx==2.2.2',