From 2f4f262cbdc4501e47ffa4390ef0aa88ec7d72c4 Mon Sep 17 00:00:00 2001 From: Nicholas Toole Date: Mon, 11 May 2020 10:16:21 -0700 Subject: [PATCH] Preparation for 2.1.0 release --- CHANGELOG.md | 17 ++++++++---- ait/gui/static/build/ait.bundle.js | 2 +- ait/gui/static/package-lock.json | 43 +++++++++++++++++++++--------- ait/gui/static/package.json | 2 +- doc/source/conf.py | 4 +-- setup.py | 2 +- 6 files changed, 48 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b38bc4d..4e6fec38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ 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.1.0](https://github.com/NASA-AMMOS/AIT-GUI/compare/2.0.0...2.1.0) - 2020-05-05 + +### Merged + +- Issue #167 - Post release cleanup [`#168`](https://github.com/NASA-AMMOS/AIT-GUI/pull/168) + ## [2.0.0](https://github.com/NASA-AMMOS/AIT-GUI/compare/1.4.0...2.0.0) - 2020-04-28 ### Merged @@ -36,6 +42,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - Issue #107 - Added available time ranges, querying, playback, playback controls, timeline animation [`fbf22ab`](https://github.com/NASA-AMMOS/AIT-GUI/commit/fbf22ab41714f039ccc12511be650500ce58d6c6) - Issue #107 - Improved time efficiency and added documentation [`6f17a7c`](https://github.com/NASA-AMMOS/AIT-GUI/commit/6f17a7c7d88c50075773a080724fe1d258d6203f) +- Prep for 2.0.0 [`c8bfd0d`](https://github.com/NASA-AMMOS/AIT-GUI/commit/c8bfd0d727482a0dbc6792b8cb25e4c68b4034c6) - Issue #107 - Implemented data sending with slider, created more accurate timer [`344cfbe`](https://github.com/NASA-AMMOS/AIT-GUI/commit/344cfbe60284b40057e525e71bb49e75a229a5f9) - Issue #107 - Condensed playback component and moved it to lower navigation bar [`3274cb3`](https://github.com/NASA-AMMOS/AIT-GUI/commit/3274cb35dc8fbc1ebe6e82af3b0545eaf75fc627) - Issue #107 - Changed playback to use existing socket instead of forcing connections to open and close [`f560e82`](https://github.com/NASA-AMMOS/AIT-GUI/commit/f560e828f51b5402554c0806db7e9b1ffda2b51c) @@ -57,17 +64,17 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - Issue #110 - Use getadder for GUI init port & host [`0d61967`](https://github.com/NASA-AMMOS/AIT-GUI/commit/0d61967f43f5dae8063f242825873496d44c4cff) - Issue #107 - Changed playback query to pack according to tlm dictionary [`dca83b5`](https://github.com/NASA-AMMOS/AIT-GUI/commit/dca83b506fd9c3f4b143529f9c8fbbb1d1dbed3c) - Update rounding of playback time to nearest second (#143) [`ee776a8`](https://github.com/NASA-AMMOS/AIT-GUI/commit/ee776a8e13652569b6db61e91cd82f6b4e42e8a1) -- Issue #110 - Moved gui port kwarg to plugin init [`39d0e4b`](https://github.com/NASA-AMMOS/AIT-GUI/commit/39d0e4bd6b81ff678813ce2ba4e2758ff7b5e9b5) - Always round playback end time up; update start time string split (#143) [`9e3c3a9`](https://github.com/NASA-AMMOS/AIT-GUI/commit/9e3c3a9372d88d364f6be7e672c43ede7f33cefc) -- Issue #75 - Update docs to reflect removal of ait-gui command [`6a71566`](https://github.com/NASA-AMMOS/AIT-GUI/commit/6a715660b34759d3e93c89e50eebfd48de8a4284) +- Issue #110 - Moved gui port kwarg to plugin init [`39d0e4b`](https://github.com/NASA-AMMOS/AIT-GUI/commit/39d0e4bd6b81ff678813ce2ba4e2758ff7b5e9b5) - Issue #156 - Update Python version in RTD config [`0bd531a`](https://github.com/NASA-AMMOS/AIT-GUI/commit/0bd531ae6a6a579ca86fb3684b30ab851d7eced8) -- Issue #162 - clean up [`61ba037`](https://github.com/NASA-AMMOS/AIT-GUI/commit/61ba037fd634180cfbc73b2040b40b5afbcc0a28) +- Issue #75 - Update docs to reflect removal of ait-gui command [`6a71566`](https://github.com/NASA-AMMOS/AIT-GUI/commit/6a715660b34759d3e93c89e50eebfd48de8a4284) - Decode command name bytes before running json dumps [`d424c8e`](https://github.com/NASA-AMMOS/AIT-GUI/commit/d424c8e6c61b7bc2036e4959d8eb1b2af38dd1fd) - change to variable [`9a74122`](https://github.com/NASA-AMMOS/AIT-GUI/commit/9a74122ac0efca472f5b3f4b871804d7aa92ff03) +- Issue #162 - clean up [`61ba037`](https://github.com/NASA-AMMOS/AIT-GUI/commit/61ba037fd634180cfbc73b2040b40b5afbcc0a28) - Update readthedocs build to pull latest core code for build [`689000c`](https://github.com/NASA-AMMOS/AIT-GUI/commit/689000c849717dacf548a059ccea0ee2dc612374) -- Issue #110 - Fixed typo in host and port [`a96cb98`](https://github.com/NASA-AMMOS/AIT-GUI/commit/a96cb98d7981423673a383bdd7e180145b7d8907) -- Updated urllib.unquote to urllib.parse.unquote [`c049679`](https://github.com/NASA-AMMOS/AIT-GUI/commit/c049679b031ba665dd563df252a8b7e85b1ebdaa) - Update reference to DataArchive plugin (#142) [`bff6cd7`](https://github.com/NASA-AMMOS/AIT-GUI/commit/bff6cd7b97c305a8f2efe401e0369aa8d1d6eef4) +- Updated urllib.unquote to urllib.parse.unquote [`c049679`](https://github.com/NASA-AMMOS/AIT-GUI/commit/c049679b031ba665dd563df252a8b7e85b1ebdaa) +- Issue #110 - Fixed typo in host and port [`a96cb98`](https://github.com/NASA-AMMOS/AIT-GUI/commit/a96cb98d7981423673a383bdd7e180145b7d8907) - Updated core version requirement for py3 support [`5b117f3`](https://github.com/NASA-AMMOS/AIT-GUI/commit/5b117f34436e8c49b22f9a42523ed0e310fe1243) - Added eval to transform incoming tlm msg from byte string to actual bytes [`ae9d351`](https://github.com/NASA-AMMOS/AIT-GUI/commit/ae9d351ce7dfdcc1c4e7f203ddd2d8b713de3c14) diff --git a/ait/gui/static/build/ait.bundle.js b/ait/gui/static/build/ait.bundle.js index 9f75d269..233ac593 100644 --- a/ait/gui/static/build/ait.bundle.js +++ b/ait/gui/static/build/ait.bundle.js @@ -35,7 +35,7 @@ t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeT * Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT */ !function(o,a){i=[n(18)],r=function(t){return o.Bloodhound=a(t)}.apply(e,i),!(void 0!==r&&(t.exports=r))}(this,function(t){var e=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return"undefined"==typeof t},isElement:function(t){return!(!t||1!==t.nodeType)},isJQuery:function(e){return e instanceof t},toStr:function(t){return e.isUndefined(t)||null===t?"":t+""},bind:t.proxy,each:function(e,n){function i(t,e){return n(e,t)}t.each(e,i)},map:t.map,filter:t.grep,every:function(e,n){var i=!0;return e?(t.each(e,function(t,r){if(!(i=n.call(null,r,t,e)))return!1}),!!i):i},some:function(e,n){var i=!1;return e?(t.each(e,function(t,r){if(i=n.call(null,r,t,e))return!1}),!!i):i},mixin:t.extend,identity:function(t){return t},clone:function(e){return t.extend(!0,{},e)},getIdGenerator:function(){var t=0;return function(){return t++}},templatify:function(e){function n(){return String(e)}return t.isFunction(e)?e:n},defer:function(t){setTimeout(t,0)},debounce:function(t,e,n){var i,r;return function(){var o,a,s=this,l=arguments;return o=function(){i=null,n||(r=t.apply(s,l))},a=n&&!i,clearTimeout(i),i=setTimeout(o,e),a&&(r=t.apply(s,l)),r}},throttle:function(t,e){var n,i,r,o,a,s;return a=0,s=function(){a=new Date,r=null,o=t.apply(n,i)},function(){var l=new Date,u=e-(l-a);return n=this,i=arguments,u<=0?(clearTimeout(r),r=null,a=l,o=t.apply(n,i)):r||(r=setTimeout(s,u)),o}},stringify:function(t){return e.isString(t)?t:JSON.stringify(t)},noop:function(){}}}(),n="0.11.1",i=function(){"use strict";function t(t){return t=e.toStr(t),t?t.split(/\s+/):[]}function n(t){return t=e.toStr(t),t?t.split(/\W+/):[]}function i(t){return function(n){return n=e.isArray(n)?n:[].slice.call(arguments,0),function(i){var r=[];return e.each(n,function(n){r=r.concat(t(e.toStr(i[n])))}),r}}}return{nonword:n,whitespace:t,obj:{nonword:i(n),whitespace:i(t)}}}(),r=function(){"use strict";function n(n){this.maxSize=e.isNumber(n)?n:100,this.reset(),this.maxSize<=0&&(this.set=this.get=t.noop)}function i(){this.head=this.tail=null}function r(t,e){this.key=t,this.val=e,this.prev=this.next=null}return e.mixin(n.prototype,{set:function(t,e){var n,i=this.list.tail;this.size>=this.maxSize&&(this.list.remove(i),delete this.hash[i.key],this.size--),(n=this.hash[t])?(n.val=e,this.list.moveToFront(n)):(n=new r(t,e),this.list.add(n),this.hash[t]=n,this.size++)},get:function(t){var e=this.hash[t];if(e)return this.list.moveToFront(e),e.val},reset:function(){this.size=0,this.hash={},this.list=new i}}),e.mixin(i.prototype,{add:function(t){this.head&&(t.next=this.head,this.head.prev=t),this.head=t,this.tail=this.tail||t},remove:function(t){t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev},moveToFront:function(t){this.remove(t),this.add(t)}}),n}(),o=function(){"use strict";function n(t,n){this.prefix=["__",t,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+e.escapeRegExChars(this.prefix)),this.ls=n||s,!this.ls&&this._noop()}function i(){return(new Date).getTime()}function r(t){return JSON.stringify(e.isUndefined(t)?null:t)}function o(e){return t.parseJSON(e)}function a(t){var e,n,i=[],r=s.length;for(e=0;en)}}),n}(),a=function(){"use strict";function n(t){t=t||{},this.cancelled=!1,this.lastReq=null,this._send=t.transport,this._get=t.limiter?t.limiter(this._get):this._get,this._cache=t.cache===!1?new r(0):s}var i=0,o={},a=6,s=new r(10);return n.setMaxPendingRequests=function(t){a=t},n.resetCache=function(){s.reset()},e.mixin(n.prototype,{_fingerprint:function(e){return e=e||{},e.url+e.type+t.param(e.data||{})},_get:function(t,e){function n(t){e(null,t),c._cache.set(l,t)}function r(){e(!0)}function s(){i--,delete o[l],c.onDeckRequestArgs&&(c._get.apply(c,c.onDeckRequestArgs),c.onDeckRequestArgs=null)}var l,u,c=this;l=this._fingerprint(t),this.cancelled||l!==this.lastReq||((u=o[l])?u.done(n).fail(r):ie[i]?i++:(r.push(t[n]),n++,i++);return r}var s="c",l="i";return e.mixin(n.prototype,{bootstrap:function(t){this.datums=t.datums,this.trie=t.trie},add:function(t){var n=this;t=e.isArray(t)?t:[t],e.each(t,function(t){var o,a;n.datums[o=n.identify(t)]=t,a=i(n.datumTokenizer(t)),e.each(a,function(t){var e,i,a;for(e=n.trie,i=t.split("");a=i.shift();)e=e[s][a]||(e[s][a]=r()),e[l].push(o)})})},get:function(t){var n=this;return e.map(t,function(t){return n.datums[t]})},search:function(t){var n,r,u=this;return n=i(this.queryTokenizer(t)),e.each(n,function(t){var e,n,i,o;if(r&&0===r.length)return!1;for(e=u.trie,n=t.split("");e&&(i=n.shift());)e=e[s][i];return e&&0===n.length?(o=e[l].slice(0),void(r=r?a(r,o):o)):(r=[],!1)}),r?e.map(o(r),function(t){return u.datums[t]}):[]},all:function(){var t=[];for(var e in this.datums)t.push(this.datums[e]);return t},reset:function(){this.datums={},this.trie=r()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),n}(),l=function(){"use strict";function t(t){this.url=t.url,this.ttl=t.ttl,this.cache=t.cache,this.prepare=t.prepare,this.transform=t.transform,this.transport=t.transport,this.thumbprint=t.thumbprint,this.storage=new o(t.cacheKey)}var n;return n={data:"data",protocol:"protocol",thumbprint:"thumbprint"},e.mixin(t.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(t){this.cache&&(this.storage.set(n.data,t,this.ttl),this.storage.set(n.protocol,location.protocol,this.ttl),this.storage.set(n.thumbprint,this.thumbprint,this.ttl))},fromCache:function(){var t,e={};return this.cache?(e.data=this.storage.get(n.data),e.protocol=this.storage.get(n.protocol),e.thumbprint=this.storage.get(n.thumbprint),t=e.thumbprint!==this.thumbprint||e.protocol!==location.protocol,e.data&&!t?e.data:null):null},fromNetwork:function(t){function e(){t(!0)}function n(e){t(null,r.transform(e))}var i,r=this;t&&(i=this.prepare(this._settings()),this.transport(i).fail(e).done(n))},clear:function(){return this.storage.clear(),this}}),t}(),u=function(){"use strict";function t(t){this.url=t.url,this.prepare=t.prepare,this.transform=t.transform,this.transport=new a({cache:t.cache,limiter:t.limiter,transport:t.transport})}return e.mixin(t.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(t,e){function n(t,n){e(t?[]:r.transform(n))}var i,r=this;if(e)return t=t||"",i=this.prepare(t,this._settings()),this.transport.get(i,n)},cancelLastRequest:function(){this.transport.cancel()}}),t}(),c=function(){"use strict";function i(i){var r;return i?(r={url:null,ttl:864e5,cache:!0,cacheKey:null,thumbprint:"",prepare:e.identity,transform:e.identity,transport:null},i=e.isString(i)?{url:i}:i,i=e.mixin(r,i),!i.url&&t.error("prefetch requires url to be set"),i.transform=i.filter||i.transform,i.cacheKey=i.cacheKey||i.url,i.thumbprint=n+i.thumbprint,i.transport=i.transport?s(i.transport):t.ajax,i):null}function r(n){var i;if(n)return i={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:e.identity,transport:null},n=e.isString(n)?{url:n}:n,n=e.mixin(i,n),!n.url&&t.error("remote requires url to be set"),n.transform=n.filter||n.transform,n.prepare=o(n),n.limiter=a(n),n.transport=n.transport?s(n.transport):t.ajax,delete n.replace,delete n.wildcard,delete n.rateLimitBy,delete n.rateLimitWait,n}function o(t){function e(t,e){return e.url=o(e.url,t),e}function n(t,e){return e.url=e.url.replace(a,encodeURIComponent(t)),e}function i(t,e){return e}var r,o,a;return r=t.prepare,o=t.replace,a=t.wildcard,r?r:r=o?e:t.wildcard?n:i}function a(t){function n(t){return function(n){return e.debounce(n,t)}}function i(t){return function(n){return e.throttle(n,t)}}var r,o,a;return r=t.limiter,o=t.rateLimitBy,a=t.rateLimitWait,r||(r=/^throttle$/i.test(o)?i(a):n(a)),r}function s(n){return function(i){function r(t){e.defer(function(){a.resolve(t)})}function o(t){e.defer(function(){a.reject(t)})}var a=t.Deferred();return n(i,r,o),a}}return function(n){var o,a;return o={initialize:!0,identify:e.stringify,datumTokenizer:null,queryTokenizer:null,sufficient:5,sorter:null,local:[],prefetch:null,remote:null},n=e.mixin(o,n||{}),!n.datumTokenizer&&t.error("datumTokenizer is required"),!n.queryTokenizer&&t.error("queryTokenizer is required"),a=n.sorter,n.sorter=a?function(t){return t.sort(a)}:e.identity,n.local=e.isFunction(n.local)?n.local():n.local,n.prefetch=i(n.prefetch),n.remote=r(n.remote),n}}(),d=function(){"use strict";function n(t){t=c(t),this.sorter=t.sorter,this.identify=t.identify,this.sufficient=t.sufficient,this.local=t.local,this.remote=t.remote?new u(t.remote):null,this.prefetch=t.prefetch?new l(t.prefetch):null,this.index=new s({identify:this.identify,datumTokenizer:t.datumTokenizer,queryTokenizer:t.queryTokenizer}),t.initialize!==!1&&this.initialize()}var r;return r=window&&window.Bloodhound,n.noConflict=function(){return window&&(window.Bloodhound=r),n},n.tokenizers=i,e.mixin(n.prototype,{__ttAdapter:function(){function t(t,e,i){return n.search(t,e,i)}function e(t,e){return n.search(t,e)}var n=this;return this.remote?t:e},_loadPrefetch:function(){function e(t,e){return t?n.reject():(r.add(e),r.prefetch.store(r.index.serialize()),void n.resolve())}var n,i,r=this;return n=t.Deferred(),this.prefetch?(i=this.prefetch.fromCache())?(this.index.bootstrap(i),n.resolve()):this.prefetch.fromNetwork(e):n.resolve(),n.promise()},_initialize:function(){function t(){e.add(e.local)}var e=this;return this.clear(),(this.initPromise=this._loadPrefetch()).done(t),this.initPromise},initialize:function(t){return!this.initPromise||t?this._initialize():this.initPromise},add:function(t){return this.index.add(t),this},get:function(t){return t=e.isArray(t)?t:[].slice.call(arguments),this.index.get(t)},search:function(t,n,i){function r(t){var n=[];e.each(t,function(t){!e.some(o,function(e){return a.identify(t)===a.identify(e)})&&n.push(t)}),i&&i(n)}var o,a=this;return o=this.sorter(this.index.search(t)),n(this.remote?o.slice():o),this.remote&&o.length1&&void 0!==arguments[1]&&arguments[1];return t&&t.__get__(this._fname,e)},hasChanged:function(){var t=this.getPacket();return this._cached.packet!==t&&this._cached.val!==this.getValue(t,this._raw)},hasLimitCheck:function(){if(null===this._limits){if("undefined"==typeof ait.limits)return!1;var t=this._pname+"."+this._fname;t in ait.limits.dict?this._limits=ait.limits.dict[this._pname+"."+this._fname]:this._limits=!1}return this._limits},valueIsInErrorRange:function(t){var e=!1;return"value"in this._limits&&"error"in this._limits.value?e="string"==typeof this._limits.value.error?t===this._limits.value.error:this._limits.value.error.includes(t):("upper"in this._limits&&"error"in this._limits.upper&&(e=t>this._limits.upper.error),"lower"in this._limits&&"error"in this._limits.lower&&(e=tthis._limits.upper.warn),"lower"in this._limits&&"warn"in this._limits.lower&&(e=t×',r=function(){t(e.dom).popover("hide")};!n._fieldDefn||"disable-tlm-popover"in e.attrs||t(e.dom).popover({content:function(){return n.createPopoverContent()},title:i,html:!0,placement:"auto right",container:"body"}).on("shown.bs.popover",function(n){var i=n.currentTarget.attributes["aria-describedby"].value,o=document.getElementById(i).getElementsByClassName("popover-title")[0],a=o.getElementsByTagName("span")[0];a.addEventListener("click",function(){t(e.dom).popover("hide")}),document.body.addEventListener("click",r),document.getElementById(i).addEventListener("click",function(t){t.stopPropagation()})}).on("hide.bs.popover",function(t){document.body.removeEventListener("click",r)}).on("hidden.bs.popover",function(e){t(e.target).data("bs.popover").inState.click=!1})})},createPopoverContent:function(){var t=this._fieldDefn.desc?this._fieldDefn.desc:"None",e=this._fieldDefn.type?this._fieldDefn.type._name:"Unknown",n="object"===o(this._fieldDefn.bytes)?this._fieldDefn.bytes[0]+" - "+this._fieldDefn.bytes[1]:this._fieldDefn.bytes,i=2;"object"===o(this._fieldDefn.bytes)&&(i=2*(this._fieldDefn.bytes[1]-this._fieldDefn.bytes[0]+1));var r=this._fieldDefn.mask?"0x"+(0,l.sprintf)("%0"+i+"X",this._fieldDefn.mask):"None",a="\n

Description: "+t+"

\n

Data Type: "+e+"

\n

Byte(s) in Packet: "+n+"

\n

Bit Mask: "+r+"

\n ";if(this._fieldDefn.enum){var s="",u=this._fieldDefn.enum;for(var c in u)s+="
"+c+"
"+u[c];a+="Enumerated Values:
"+s+"
"}if(this._fieldDefn.dntoeu){var d="",h=this._fieldDefn.dntoeu;for(var f in h)d+="
"+f+"
"+h[f];a+="DN-to-EU:
"+d+"
"}if(this._fieldDefn.aliases){var p="",g=this._fieldDefn.aliases;for(var v in g)p+="
"+v+"
"+g[v];a+="Aliases:
"+p+"
"}return""+a+""},onbeforeupdate:function(t,e){return this.hasChanged()},view:function(t){var e=this.getPacket(),n=this.getValue(e,this._raw);if(this.cache(e),void 0===n||null===n)n="N/A";else if(n instanceof d.CommandDefinition)n=n.name?n.name:n.opcode?n.opcode:"Unidentified Cmd";else if(n instanceof h.EVRDefinition)n=n.name?n.name:n.code?n.code:"Unidentified EVR";else if(Array.isArray(n)){var i=2*this._fieldDefn.type._nbytes/this._fieldDefn.type._num_elems,r="",o="0x%0"+i+"X ",a=!0,u=!1,f=void 0;try{for(var p,g=n[Symbol.iterator]();!(a=(p=g.next()).done);a=!0){var v=p.value;r+=(0,l.sprintf)(o,v)}}catch(t){u=!0,f=t}finally{try{!a&&g.return&&g.return()}finally{if(u)throw f}}n=r}else if(t.attrs.format){var m=e._defn.fields[this._fname],y=m&&m.type;n=y&&y.isTime?c.utc()(t.attrs.format,n):(0,l.sprintf)(t.attrs.format,n)}else isNaN(n)||Number.isInteger(n)||(n=Number(n).toFixed(5));if(this.hasLimitCheck()){var b=this._raw?this.getValue(e,!1):n;"class"in t.attrs||(t.attrs.class=""),this.valueIsInErrorRange(b)?(this._limitOut=!0,t.attrs.class+="alert-danger",ait.events.emit("field:limitOut",{field:this._pname+"_"+this._fname,type:"error"})):this.valueIsInWarnRange(b)?(this._limitOut=!0,t.attrs.class+="alert-warning",ait.events.emit("field:limitOut",{field:this._pname+"_"+this._fname,type:"warning"})):this._limitOut&&(this._limitOut=!1,ait.events.emit("field:limitIn",this._pname+"_"+this._fname))}var _="";return t.attrs.display_name&&(_=t.attrs.display_name+": "),(0,s.default)("ait-field",t.attrs,[(0,s.default)("name",_),(0,s.default)("value",n)])}},p=Object.assign(Object.create(f),{oninit:function(t){var e=this;this._fname=t.attrs.name,this._pname=t.attrs.packet,this._raw=t.attrs.raw===!0,this._cached={packet:null,val:null},this._data_fields=[],t.children.forEach(function(t){"ait-evrdata"===t.tag&&e._data_fields.push(t.attrs.name)})},createPopoverContent:function(){var t=this._fieldDefn.desc?this._fieldDefn.desc:"None",e=this._fieldDefn.type?this._fieldDefn.type._name:"Unknown",n="object"===o(this._fieldDefn.bytes)?this._fieldDefn.bytes[0]+" - "+this._fieldDefn.bytes[1]:this._fieldDefn.bytes,i=2;"object"===o(this._fieldDefn.bytes)&&(i=2*(this._fieldDefn.bytes[1]-this._fieldDefn.bytes[0]+1));var r=this._fieldDefn.mask?"0x"+(0,l.sprintf)("%0"+i+"X",this._fieldDefn.mask):"None",a="\n

Description: "+t+"

\n

Data Type: "+e+"

\n

Byte(s) in Packet: "+n+"

\n

Bit Mask: "+r+"

\n ";if(this._cached.val&&this._cached.val.msg){var s=[];if(this._cached.packet){var u=!0,c=!1,d=void 0;try{for(var h,f=this._data_fields[Symbol.iterator]();!(u=(h=f.next()).done);u=!0){var p=h.value;s.push(this._cached.packet.__get__(p,!0))}}catch(t){c=!0,d=t}finally{try{!u&&f.return&&f.return()}finally{if(c)throw d}}}var g=this._cached.val?this._cached.val.formatMessage(s):"";a+="

EVR Message: "+g+"

"}return""+a+""},view:function(t){var e=this.getPacket(),n=this.getValue(e,this._raw);return this.cache(e),n=void 0===n||null===n?"N/A":n.name?n.name:n.code?n.code:"Unidentified EVR",(0,s.default)("ait-field",t.attrs,n)}});e.default={Field:f,EVRField:p},e.Field=f,e.EVRField=p}).call(e,n(18))},function(t,e){!function(){function e(t,u,h){function f(t,e){var n;if(e){if(n=e.getTime(),y){var i=s(e);if(e=new Date(n+i+m),s(e)!==i){var r=s(e);e=new Date(n+r+m)}}}else{var o=Date.now();o>b?(b=o,g=new Date(b),n=b,y&&(g=new Date(b+s(g)+m))):n=b,e=g}return p(t,e,v,n)}function p(t,e,s,u){for(var c="",d=null,h=!1,f=t.length,g=!1,v=0;v9?t:(null==e&&(e="0"),e+t)}function i(t){return t>99?t:t>9?"0"+t:"00"+t}function r(t){return 0===t?12:t>12?t-12:t}function o(t,e){e=e||"sunday";var n=t.getDay();"monday"===e&&(0===n?n=6:n--);var i=Date.UTC(t.getFullYear(),0,1),r=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),o=Math.floor((r-i)/864e5),a=(o+7-n)/7;return Math.floor(a)}function a(t){var e=t%10,n=t%100;if(n>=11&&n<=13||0===e||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}}function s(t){return 6e4*(t.getTimezoneOffset()||0)}function l(t){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t)}var u,c={de_DE:{days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d.%m.%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},en_CA:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},en_US:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%m/%d/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},es_MX:{days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre"," diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},fr_FR:{days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},it_IT:{days:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],shortDays:["dom","lun","mar","mer","gio","ven","sab"],months:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],shortMonths:["pr","mag","giu","lug","ago","set","ott","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},nl_NL:{days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortDays:["zo","ma","di","wo","do","vr","za"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortMonths:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},pt_BR:{days:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},ru_RU:{days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],shortDays:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],shortMonths:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X",D:"%d.%m.%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},tr_TR:{days:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],shortDays:["Paz","Pzt","Sal","Çrş","Prş","Cum","Cts"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],shortMonths:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],AM:"ÖÖ",PM:"ÖS",am:"ÖÖ",pm:"ÖS",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},zh_CN:{days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],shortDays:["日","一","二","三","四","五","六"],months:["一月份","二月份","三月份","四月份","五月份","六月份","七月份","八月份","九月份","十月份","十一月份","十二月份"],shortMonths:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],AM:"上午",PM:"下午",am:"上午",pm:"下午",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}}},d=c.en_US,h=new e(d,0,!1),f="undefined"!=typeof t;f?u=t.exports=h:(u=function(){return this||(0,eval)("this")}(),u.strftime=h),"function"!=typeof Date.now&&(Date.now=function(){return+new Date})}()},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}}Object.defineProperty(e,"__esModule",{value:!0}),e.Messages=void 0;var o=n(1),a=r(o),s=n(13),l=i(s),u={_messages:[],_source:null,_scrollTop:0,_updateScroll:!0,add:function(t){this._messages.push(this.normalizeMessage(t)),a.default.redraw()},normalizeMessage:function(t){return{timestamp:Date.parse(t.timestamp),severity:t.msgid,message:t.msg}},oninit:function(t){var e=this;this._source=new EventSource("/messages"),this._source.onmessage=function(t){e.add(JSON.parse(t.data))}},onupdate:function(t){var e=t.dom.getElementsByClassName("entry_container")[0];this._updateScroll&&(this._scrollTop=e.scrollHeight),e.scrollTop=this._scrollTop},view:function(t){var e=this,n=this._messages.map(function(t){return(0,a.default)("div",{class:"entry entry--"+t.severity.toLowerCase()},[(0,a.default)("div",{class:"timestamp"},l.datetime(t.timestamp,{utc:!0,gps:!1})),(0,a.default)("div",{class:"severity"},t.severity),(0,a.default)("div",{class:"message"},t.message)])}),i=[(0,a.default)("div",{class:"timestamp"},"Timestamp"),(0,a.default)("div",{class:"severity"},"Severity"),(0,a.default)("div",{class:"message"},"Message")];this._updateScroll||i.push((0,a.default)("div",{class:"scroll-reset",onclick:function(t){e._updateScroll=!0}},(0,a.default)("span",{class:"glyphicon glyphicon-chevron-down"})));var r=(0,a.default)("div",{class:"entry entry--header"},i);return(0,a.default)("ait-messages",[r,(0,a.default)("div",{class:"entry_container",onscroll:function(n){var i=t.dom.getElementsByClassName("entry_container")[0];i.scrollTop==i.scrollHeight-i.clientHeight?e._updateScroll=!0:(e._updateScroll=!1,e._scrollTop=i.scrollTop)}},n)])}};e.default=u,e.Messages=u},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{ -value:!0}),e.Playback=void 0;var r=n(1),o=i(r),a=n(148),s=i(a),l=(n(164),{_range:[],_packet:null,_start_time:null,_end_time:null,_validation_errors:{},_slider:null,_current_time:null,_timer:null,_first_click:!0,oninit:function(t){var e=this;o.default.request({method:"GET",url:"/playback/range"}).then(function(t){e._range=t}),this._slider=(0,o.default)("input",{class:"slider",type:"range",min:"0",max:"1",value:"0",oninput:function(n){var i=t.dom.getElementsByClassName("slider")[0].value,r=new Date(100*i).toISOString().substring(0,21)+"Z";e._current_time=(0,o.default)("div",{class:"timeline-current"},"Current time: "+r)}})},view:function(t){var e=this;ait.events.on("ait:tlm:packet",function(){o.default.request({method:"GET",url:"/playback/range"}).then(function(t){e._range=t})});var n=(0,o.default)("div",{class:"form-group"},[(0,o.default)("label","Time ranges available"),(0,o.default)("div",{class:"alert alert-warning"},"No time ranges found. Is your database connection configured?")]);this._range.length>0&&(n=(0,o.default)("div",{class:"form-group"},[(0,o.default)("label","Time ranges available"),this._range.map(function(t){return(0,o.default)("div",t[0]+": "+t[1]+" to "+t[2])})]));var i=(0,o.default)("div",{class:"form-group col-xs-3"},[(0,o.default)("label","Telemetry packet:"),(0,o.default)("select",{class:"form-control",name:"packet"},[(0,o.default)("option",{disabled:"disabled",selected:"selected"},"Select an option")].concat((0,s.default)(this._range,function(t){return(0,o.default)("option",{value:t[0]},t[0])})))]);this._validation_errors.packet&&(i.attrs.className+=" has-error");var r=(0,o.default)("div",{class:"form-group col-xs-3"},[(0,o.default)("label","Start time:"),(0,o.default)("input",{class:"form-control",placeholder:"YYYY-MM-DDTHH:MM:SSZ",name:"startTime"})]);this._validation_errors.startTime&&(r.attrs.className+=" has-error");var a=(0,o.default)("div",{class:"form-group col-xs-3"},[(0,o.default)("label","End time:"),(0,o.default)("input",{class:"form-control",placeholder:"YYYY-MM-DDTHH:MM:SSZ",name:"endTime"})]);this._validation_errors.endTime&&(a.attrs.className+=" has-error");var l=(0,o.default)("div",{class:"form-group col-xs-3"},[(0,o.default)("div",{style:"height: 25px"}),(0,o.default)("button",{class:"btn btn-success query",type:"submit"},"Query")]),u=(0,o.default)("form",{class:"form-row",onsubmit:function(n){n.preventDefault();var i=n.currentTarget,r=new FormData;return!!e._validate_form(i)&&(e._packet=i.elements.packet.value,e._start_time=i.elements.startTime.value.substr(0,19)+".0Z",e._end_time=i.elements.endTime.value.substr(0,19)+".0Z",r.append("packet",e._packet),r.append("startTime",e._start_time),r.append("endTime",e._end_time),o.default.request({url:"/playback/query",method:"POST",data:r}),t.dom.getElementsByClassName("slider")[0].min=Date.parse(e._start_time)/100,t.dom.getElementsByClassName("slider")[0].max=Date.parse(e._end_time)/100,t.dom.getElementsByClassName("slider")[0].value=0,e._current_time=(0,o.default)("div",{class:"timeline-current"},"Current time: "+e._start_time),t.dom.getElementsByClassName("timeline")[0].style.display="block",t.dom.getElementsByClassName("controls")[0].style.display="block",t.dom.getElementsByClassName("play")[0].style.display="inline-block",t.dom.getElementsByClassName("pause")[0].style.display="none",t.dom.getElementsByClassName("query")[0].style.display="none",void(e._first_click=!0))}},[i,r,a,l]),c=(0,o.default)("div",{class:"timeline",style:"display:none"},[this._slider,(0,o.default)("div",{class:"timeline-start"},this._start_time),(0,o.default)("div",{class:"timeline-end"},this._end_time),this._current_time]),d=(0,o.default)("button",{class:"btn btn-success play",style:"display: none",onclick:function(n){e._first_click&&(ait.events.emit("ait:playback:on"),o.default.request({url:"/playback/on",method:"PUT"}),e._first_click=!1),e.start_slider(t,e._end_time),t.dom.getElementsByClassName("play")[0].style.display="none",t.dom.getElementsByClassName("pause")[0].style.display="inline-block"}},"Play"),h=(0,o.default)("button",{class:"btn btn-success pause",style:"display: none",onclick:function(n){e.stop_slider(),t.dom.getElementsByClassName("pause")[0].style.display="none",t.dom.getElementsByClassName("play")[0].style.display="inline-block"}},"Pause"),f=(0,o.default)("button",{class:"btn btn-danger",style:"display: inline-block",onclick:function(n){t.dom.getElementsByClassName("timeline")[0].style.display="none",t.dom.getElementsByClassName("controls")[0].style.display="none",t.dom.getElementsByClassName("query")[0].style.display="inline-block",0==e._first_click&&(ait.events.emit("ait:playback:off"),e.stop_slider(),o.default.request({url:"/playback/abort",method:"PUT"}))}},"Abort"),p=(0,o.default)("div",{class:"controls",style:"display: none"},[d,h,f]);return(0,o.default)("ait-playback",t.attrs,[n,u,c,p])},start_slider:function(t,e){if(!this._timer){var n=Date.now(),i=0;this._timer=setInterval(function(){var r=Math.floor((Date.now()-n)/100);if(r>i){i=r;var a=++t.dom.getElementsByClassName("slider")[0].value,s=new Date(100*a).toISOString().substring(0,21)+"Z";if(s<=e){t.dom.getElementsByClassName("timeline-current")[0].innerHTML="Current time: "+s;var l=new FormData;l.append("timestamp",s),o.default.request({url:"/playback/send",method:"POST",data:l})}}},10)}},stop_slider:function(){clearInterval(this._timer),this._timer=null},_validate_form:function(t){this._validation_errors={},0===t.elements.packet.selectedIndex&&(this._validation_errors.packet=!0);var e=/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12]\d|3[01])T([01]\d|2[0-3]):[0-5]\d:[0-5]\dZ$/;return e.test(t.elements.startTime.value)||(this._validation_errors.startTime=!0),e.test(t.elements.endTime.value)||(this._validation_errors.endTime=!0),0===Object.keys(this._validation_errors).length}});e.default=l,e.Playback=l},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,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetryStream=e.TelemetryDictionary=e.PacketScope=e.PacketDefinition=e.Packet=e.FieldDefinition=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n>=1}return a(t,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null;return this.type&&(n=this.type.decode(t,this.offset),void 0!==this.mask&&null!==this.mask&&(n&=this.mask),this.shift>0&&(n>>=this.shift),e||void 0===this.enum||(n=this.enum[n])),n}}]),t}(),c=function(){function t(){r(this,t)}return a(t,[{key:"__get__",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=void 0;if(this._data instanceof DataView){var i=this._defn.fields[t];i&&(e||this._raw||!i.dntoeu?n=i.decode(this._data,e):i.dntoeu&&i.dntoeu.equation&&(n=this._defn.scope.eval(this,i.dntoeu.equation)))}return n}},{key:"__clone__",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.create(this._defn,e,n)}}],[{key:"create",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.name,o=this[r];return void 0===o&&(o=t.createSubclass(e),this[r]=o),new o(n,i)}},{key:"createSubclass",value:function(e){var n=function(t,n){this._defn=e,this._data=t,this._raw=n};n.prototype=Object.create(t.prototype),n.prototype.constructor=n;var i=function(t){Object.defineProperty(n.prototype,t,{get:function(){return this.__get__(t)}})};for(var r in e.fields)i(r);return n}}]),t}(),d=function(){function t(e){r(this,t),this._constants=e.constants,this._desc=e.desc,this._fields={},this._functions=e.functions,this._history=e.history,this._name=e.name,this._scope=new h(this),this._uid=e.uid;for(var n in e.fields)this._fields[n]=new u(e.fields[n])}return a(t,[{key:"constants",get:function(){return this._constants}},{key:"fields",get:function(){return this._fields}},{key:"functions",get:function(){return this._functions}},{key:"name",get:function(){return this._name}},{key:"scope",get:function(){return this._scope}},{key:"uid",get:function(){return this._uid}}],[{key:"parse",value:function(e){return"string"==typeof e&&(e=JSON.parse(e)),new t(e)}}]),t}(),h=function(){function t(e){r(this,t),this._defn=e,this._scope=new Function("\n eval('"+this.toCode()+"')\n return {\n 'eval': function(packet, expr) {\n var raw = packet.__clone__(packet._data, true)\n try {\n return eval(expr)\n } catch (e) {\n return null\n }\n }\n }\n ").call()}return a(t,[{key:"_sanitize",value:function(t){return t.replace("≤","<=").replace("≥",">=")}},{key:"_toBinaryCond",value:function(t){var e=/==|!=|<=|>=|<|>/g,n=t.match(e),i=t.split(e);return 2===n.length&&3===i.length?"("+i[0]+" "+n[0]+" "+i[1]+") && ("+i[1]+" "+n[1]+" "+i[2]+")":t}},{key:"eval",value:function(t,e){return this._scope.eval(t,e)}},{key:"toCode",value:function(){var t="";for(var e in this._defn.constants)t+="var "+e+" = "+this._defn.constants[e]+"; ";for(var n in this._defn.functions){var i=this._defn.functions[n];if(t+="function "+n+" { ","string"==typeof i)t+="return ("+i+") ";else if("object"===("undefined"==typeof i?"undefined":o(i)))for(var r in i){var a=this._toBinaryCond(this._sanitize(r));t+="if ("+a+") { return ("+i[r]+") } "}t+="};"}return t}}]),t}(),f=function(){function t(){r(this,t)}return a(t,[{key:"add",value:function(t){t instanceof d&&(this[t.name]=t)}}],[{key:"parse",value:function(e){var n=new t;"string"==typeof e&&(e=JSON.parse(e));for(var i in e)n.add(new d(e[i]));return n}}]),t}(),p=function(){function t(e,n){var i=this;r(this,t),this._dict={},this._interval=0,this._socket=new WebSocket(e),this._stale=0,this._url=e;for(var o in n){var a=n[o];this._dict[a.uid]=a}this._socket.binaryType="arraybuffer",this._socket.onclose=function(t){return i.onClose(t)},this._socket.onmessage=function(t){return i.onMessage(t)},this._socket.onopen=function(t){return i.onOpen(t)}}return a(t,[{key:"_emit",value:function(t,e){ait.events.emit("ait:tlm:"+t,e)}},{key:"onClose",value:function(t){clearInterval(this._interval),this._emit("close",this)}},{key:"onMessage",value:function(t){if(t.data instanceof ArrayBuffer){var e=new DataView(t.data,1,4).getUint32(0),n=new DataView(t.data,5),i=this._dict[e];if((0!=e||0!=n.byteLength)&&i){var r=c.create(i,n);clearInterval(this._interval),this._stale=0,this._interval=setInterval(this.onStale.bind(this),5e3),ait.packets.insert(i.name,r),this._emit("packet",r)}}}},{key:"onOpen",value:function(t){this._interval=setInterval(this.onStale.bind(this),5e3),this._stale=0,this._emit("open",this)}},{key:"onStale",value:function(){this._stale++,this._emit("stale",this)}}]),t}();e.FieldDefinition=u,e.Packet=c,e.PacketDefinition=d,e.PacketScope=h,e.TelemetryDictionary=f,e.TelemetryStream=p},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Plot=void 0;var o=function(){function t(t,e){for(var n=0;nthis._plotrange&&this._plot._data.shift(),this._plot.shouldRedraw()&&this.redraw()}}},{key:"redraw",value:function(){this._plot._chart.updateOptions({file:this._plot._data})}}]),t}(),d=function(){function t(e){r(this,t),this._plot=e}return o(t,[{key:"addSeries",value:function(t,e){this._plot._options.series.push({id:t,name:e.caption||t,color:e.color,data:[],tooltip:{valueDecimals:2},type:e.type,showInNavigator:!0,boostThreshold:1,cropThreshold:1,turboThreshold:1})}},{key:"createChart",value:function(t,e){return new Highcharts.StockChart(t.dom,e)}},{key:"createOptions",value:function(t){return{credits:{enabled:!1},legend:{enabled:!0},boost:{seriesThreshold:1},rangeSelector:{buttons:[{count:1,text:"1m",type:"minute"},{count:10,text:"10m",type:"minute"},{count:30,text:"30m",type:"minute"},{count:1,text:"1h",type:"hour"},{count:6,text:"6h",type:"hour"},{count:12,text:"12h",type:"hour"},{count:1,text:"1d",type:"day"}],inputEnabled:!1},series:[],title:{text:t.title},xAxis:{title:{text:"Time (UTC)"}},yAxis:{title:{text:t["y-title"]}}}}},{key:"handleOptionsOverride",value:function(t,e){Object.assign(t,e)}},{key:"plot",value:function(t){var e=this,n=t._defn.name,i=this._plot._packets[n];i&&(i.forEach(function(i){var r=e._plot._chart.get(n+"."+i);if(r){var o=e._plot._time.get(t).getTime(),a=t.__get__(i);if(r.addPoint([o,a],!1),e._plot._initZoom===!1){var s=e._plot._chart.axes[0].getExtremes(),l=(s.max-s.min)/1e3;l>=60&&(e._plot._chart.rangeSelector.clickButton(0,!0),e._plot._initZoom=!0)}}}),this._plot.shouldRedraw()&&this.redraw())}},{key:"redraw",value:function(){this._plot._chart.redraw()}}]),t}(),h={plot:function(t){this._backend.plot(t)},processTag:function(t){if("ait-plotconfig"===t.tag)try{this._backend.handleOptionsOverride(this._options,JSON.parse(t.text))}catch(t){t instanceof SyntaxError&&console.error("Error parsing plot config. Printing trace back and reverting to default options."),console.error(t)}else"ait-plotseries"===t.tag?this.processTagSeries(t):"ait-plottime"===t.tag&&this.processTagTime(t)},processTagSeries:function(t){var e=t.attrs.name,n=t.attrs.packet,i=(t.attrs.type,n+"."+e);this._backend.addSeries(i,t.attrs),this._packets[n]=this._packets[n]||[],this._packets[n].push(e)},processTagTime:function(t){this._time=new f(t.attrs.packet,t.attrs.name)},shouldRedraw:function(){var t=Date.now(),e=(t-this._lastRedrawTime)/1e3;return e>this._redrawDelta&&(this._lastRedrawTime=t,!0)},oninit:function(t){var e=this;this._backend=window.Highcharts?new d(this):new c(this),this._data=[],this._options=this._backend.createOptions(t.attrs),this._packets={},this._time=null,this._initZoom=!1,this._redrawFrequency=parseInt(t.attrs["redraw-frequency"])||10;var n=parseInt(t.attrs["redraw-frequency-variation-min"])||-2,i=parseInt(t.attrs["redraw-frequency-variation-max"])||2,r="redraw-frequency-variation"in t.attrs&&t.attrs["redraw-frequency-variation"]===!0;this._redrawDelta=this._redrawFrequency+(r?Math.random()*(i-n)+n:0),this._lastRedrawTime=Date.now(),t.children.forEach(function(t){return e.processTag(t)}),null===this._time&&(this._time=new f),ait.events.on("ait:tlm:packet",function(t){return e.plot(t)}),ait.events.on("ait:playback:on",function(){return e.redraw()}),ait.events.on("ait:playback:off",function(){return e.redraw()})},oncreate:function(t){this._chart=this._backend.createChart(t,this._options)},view:function(t){if(window.Highcharts)return(0,s.default)("ait-plot",t.attrs);var e=[(0,s.default)("div")];return this._backend._user_specified_label||e.push((0,s.default)("div",{id:this._backend._plot_id,class:"dygraph-legend",style:"width: "+this._options.width+"px;"})),(0,s.default)("ait-plot",t.attrs,e)},redraw:function(){this._data=[],this._backend.redraw()}},f=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r(this,t),this._pname=e,this._fname=n}return o(t,[{key:"get",value:function(t){var e=this.hasTime(t)?t.__get__(this._fname):null;return e instanceof Date||(e="number"!=typeof e?new Date:new Date(e)),e}},{key:"hasTime",value:function(t){var e=t&&t._defn;return e&&this._pname===e.name&&this._fname in e.fields}}]),t}();e.default=h,e.Plot=h},function(t,e,n){t.exports=n(167)},function(t,e,n){(function(i){/** +value:!0}),e.Playback=void 0;var r=n(1),o=i(r),a=n(148),s=i(a),l=(n(164),{_range:[],_packet:null,_start_time:null,_end_time:null,_validation_errors:{},_slider:null,_current_time:null,_timer:null,_first_click:!0,oninit:function(t){var e=this;o.default.request({method:"GET",url:"/playback/range"}).then(function(t){e._range=t}),this._minute=this.getCurrentMinute(),this._slider=(0,o.default)("input",{class:"slider",type:"range",min:"0",max:"1",value:"0",oninput:function(n){var i=t.dom.getElementsByClassName("slider")[0].value,r=new Date(100*i).toISOString().substring(0,21)+"Z";e._current_time=(0,o.default)("div",{class:"timeline-current"},"Current time: "+r)}})},getCurrentMinute:function(){var t=new Date;return t.getMinutes()},onupdate:function(t){var e=this;this.getCurrentMinute()!=this._minute&&(this._minute=this.getCurrentMinute(),o.default.request({method:"GET",url:"/playback/range"}).then(function(t){e._range=t}))},view:function(t){var e=this,n=(0,o.default)("div",{class:"form-group"},[(0,o.default)("label","Time ranges available"),(0,o.default)("div",{class:"alert alert-warning"},"No time ranges found. Is your database connection configured?")]);this._range.length>0&&(n=(0,o.default)("div",{class:"form-group"},[(0,o.default)("label","Time ranges available"),this._range.map(function(t){return(0,o.default)("div",t[0]+": "+t[1]+" to "+t[2])})]));var i=(0,o.default)("div",{class:"form-group col-xs-3"},[(0,o.default)("label","Telemetry packet:"),(0,o.default)("select",{class:"form-control",name:"packet"},[(0,o.default)("option",{disabled:"disabled",selected:"selected"},"Select an option")].concat((0,s.default)(this._range,function(t){return(0,o.default)("option",{value:t[0]},t[0])})))]);this._validation_errors.packet&&(i.attrs.className+=" has-error");var r=(0,o.default)("div",{class:"form-group col-xs-3"},[(0,o.default)("label","Start time:"),(0,o.default)("input",{class:"form-control",placeholder:"YYYY-MM-DDTHH:MM:SSZ",name:"startTime"})]);this._validation_errors.startTime&&(r.attrs.className+=" has-error");var a=(0,o.default)("div",{class:"form-group col-xs-3"},[(0,o.default)("label","End time:"),(0,o.default)("input",{class:"form-control",placeholder:"YYYY-MM-DDTHH:MM:SSZ",name:"endTime"})]);this._validation_errors.endTime&&(a.attrs.className+=" has-error");var l=(0,o.default)("div",{class:"form-group col-xs-3"},[(0,o.default)("div",{style:"height: 25px"}),(0,o.default)("button",{class:"btn btn-success query",type:"submit"},"Query")]),u=(0,o.default)("form",{class:"form-row",onsubmit:function(n){n.preventDefault();var i=n.currentTarget,r=new FormData;return!!e._validate_form(i)&&(e._packet=i.elements.packet.value,e._start_time=i.elements.startTime.value.substr(0,19)+".0Z",e._end_time=i.elements.endTime.value.substr(0,19)+".0Z",r.append("packet",e._packet),r.append("startTime",e._start_time),r.append("endTime",e._end_time),o.default.request({url:"/playback/query",method:"POST",data:r}),t.dom.getElementsByClassName("slider")[0].min=Date.parse(e._start_time)/100,t.dom.getElementsByClassName("slider")[0].max=Date.parse(e._end_time)/100,t.dom.getElementsByClassName("slider")[0].value=0,e._current_time=(0,o.default)("div",{class:"timeline-current"},"Current time: "+e._start_time),t.dom.getElementsByClassName("timeline")[0].style.display="block",t.dom.getElementsByClassName("controls")[0].style.display="block",t.dom.getElementsByClassName("play")[0].style.display="inline-block",t.dom.getElementsByClassName("pause")[0].style.display="none",t.dom.getElementsByClassName("query")[0].style.display="none",void(e._first_click=!0))}},[i,r,a,l]),c=(0,o.default)("div",{class:"timeline",style:"display:none"},[this._slider,(0,o.default)("div",{class:"timeline-start"},this._start_time),(0,o.default)("div",{class:"timeline-end"},this._end_time),this._current_time]),d=(0,o.default)("button",{class:"btn btn-success play",style:"display: none",onclick:function(n){e._first_click&&(ait.events.emit("ait:playback:on"),o.default.request({url:"/playback/on",method:"PUT"}),e._first_click=!1),e.start_slider(t,e._end_time),t.dom.getElementsByClassName("play")[0].style.display="none",t.dom.getElementsByClassName("pause")[0].style.display="inline-block"}},"Play"),h=(0,o.default)("button",{class:"btn btn-success pause",style:"display: none",onclick:function(n){e.stop_slider(),t.dom.getElementsByClassName("pause")[0].style.display="none",t.dom.getElementsByClassName("play")[0].style.display="inline-block"}},"Pause"),f=(0,o.default)("button",{class:"btn btn-danger",style:"display: inline-block",onclick:function(n){t.dom.getElementsByClassName("timeline")[0].style.display="none",t.dom.getElementsByClassName("controls")[0].style.display="none",t.dom.getElementsByClassName("query")[0].style.display="inline-block",0==e._first_click&&(ait.events.emit("ait:playback:off"),e.stop_slider(),o.default.request({url:"/playback/abort",method:"PUT"}))}},"Abort"),p=(0,o.default)("div",{class:"controls",style:"display: none"},[d,h,f]);return(0,o.default)("ait-playback",t.attrs,[n,u,c,p])},start_slider:function(t,e){if(!this._timer){var n=Date.now(),i=0;this._timer=setInterval(function(){var r=Math.floor((Date.now()-n)/100);if(r>i){i=r;var a=++t.dom.getElementsByClassName("slider")[0].value,s=new Date(100*a).toISOString().substring(0,21)+"Z";if(s<=e){t.dom.getElementsByClassName("timeline-current")[0].innerHTML="Current time: "+s;var l=new FormData;l.append("timestamp",s),o.default.request({url:"/playback/send",method:"POST",data:l})}}},10)}},stop_slider:function(){clearInterval(this._timer),this._timer=null},_validate_form:function(t){this._validation_errors={},0===t.elements.packet.selectedIndex&&(this._validation_errors.packet=!0);var e=/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12]\d|3[01])T([01]\d|2[0-3]):[0-5]\d:[0-5]\dZ$/;return e.test(t.elements.startTime.value)||(this._validation_errors.startTime=!0),e.test(t.elements.endTime.value)||(this._validation_errors.endTime=!0),0===Object.keys(this._validation_errors).length}});e.default=l,e.Playback=l},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,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetryStream=e.TelemetryDictionary=e.PacketScope=e.PacketDefinition=e.Packet=e.FieldDefinition=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n>=1}return a(t,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null;return this.type&&(n=this.type.decode(t,this.offset),void 0!==this.mask&&null!==this.mask&&(n&=this.mask),this.shift>0&&(n>>=this.shift),e||void 0===this.enum||(n=this.enum[n])),n}}]),t}(),c=function(){function t(){r(this,t)}return a(t,[{key:"__get__",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=void 0;if(this._data instanceof DataView){var i=this._defn.fields[t];i&&(e||this._raw||!i.dntoeu?n=i.decode(this._data,e):i.dntoeu&&i.dntoeu.equation&&(n=this._defn.scope.eval(this,i.dntoeu.equation)))}return n}},{key:"__clone__",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.create(this._defn,e,n)}}],[{key:"create",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.name,o=this[r];return void 0===o&&(o=t.createSubclass(e),this[r]=o),new o(n,i)}},{key:"createSubclass",value:function(e){var n=function(t,n){this._defn=e,this._data=t,this._raw=n};n.prototype=Object.create(t.prototype),n.prototype.constructor=n;var i=function(t){Object.defineProperty(n.prototype,t,{get:function(){return this.__get__(t)}})};for(var r in e.fields)i(r);return n}}]),t}(),d=function(){function t(e){r(this,t),this._constants=e.constants,this._desc=e.desc,this._fields={},this._functions=e.functions,this._history=e.history,this._name=e.name,this._scope=new h(this),this._uid=e.uid;for(var n in e.fields)this._fields[n]=new u(e.fields[n])}return a(t,[{key:"constants",get:function(){return this._constants}},{key:"fields",get:function(){return this._fields}},{key:"functions",get:function(){return this._functions}},{key:"name",get:function(){return this._name}},{key:"scope",get:function(){return this._scope}},{key:"uid",get:function(){return this._uid}}],[{key:"parse",value:function(e){return"string"==typeof e&&(e=JSON.parse(e)),new t(e)}}]),t}(),h=function(){function t(e){r(this,t),this._defn=e,this._scope=new Function("\n eval('"+this.toCode()+"')\n return {\n 'eval': function(packet, expr) {\n var raw = packet.__clone__(packet._data, true)\n try {\n return eval(expr)\n } catch (e) {\n return null\n }\n }\n }\n ").call()}return a(t,[{key:"_sanitize",value:function(t){return t.replace("≤","<=").replace("≥",">=")}},{key:"_toBinaryCond",value:function(t){var e=/==|!=|<=|>=|<|>/g,n=t.match(e),i=t.split(e);return 2===n.length&&3===i.length?"("+i[0]+" "+n[0]+" "+i[1]+") && ("+i[1]+" "+n[1]+" "+i[2]+")":t}},{key:"eval",value:function(t,e){return this._scope.eval(t,e)}},{key:"toCode",value:function(){var t="";for(var e in this._defn.constants)t+="var "+e+" = "+this._defn.constants[e]+"; ";for(var n in this._defn.functions){var i=this._defn.functions[n];if(t+="function "+n+" { ","string"==typeof i)t+="return ("+i+") ";else if("object"===("undefined"==typeof i?"undefined":o(i)))for(var r in i){var a=this._toBinaryCond(this._sanitize(r));t+="if ("+a+") { return ("+i[r]+") } "}t+="};"}return t}}]),t}(),f=function(){function t(){r(this,t)}return a(t,[{key:"add",value:function(t){t instanceof d&&(this[t.name]=t)}}],[{key:"parse",value:function(e){var n=new t;"string"==typeof e&&(e=JSON.parse(e));for(var i in e)n.add(new d(e[i]));return n}}]),t}(),p=function(){function t(e,n){var i=this;r(this,t),this._dict={},this._interval=0,this._socket=new WebSocket(e),this._stale=0,this._url=e;for(var o in n){var a=n[o];this._dict[a.uid]=a}this._socket.binaryType="arraybuffer",this._socket.onclose=function(t){return i.onClose(t)},this._socket.onmessage=function(t){return i.onMessage(t)},this._socket.onopen=function(t){return i.onOpen(t)}}return a(t,[{key:"_emit",value:function(t,e){ait.events.emit("ait:tlm:"+t,e)}},{key:"onClose",value:function(t){clearInterval(this._interval),this._emit("close",this)}},{key:"onMessage",value:function(t){if(t.data instanceof ArrayBuffer){var e=new DataView(t.data,1,4).getUint32(0),n=new DataView(t.data,5),i=this._dict[e];if((0!=e||0!=n.byteLength)&&i){var r=c.create(i,n);clearInterval(this._interval),this._stale=0,this._interval=setInterval(this.onStale.bind(this),5e3),ait.packets.insert(i.name,r),this._emit("packet",r)}}}},{key:"onOpen",value:function(t){this._interval=setInterval(this.onStale.bind(this),5e3),this._stale=0,this._emit("open",this)}},{key:"onStale",value:function(){this._stale++,this._emit("stale",this)}}]),t}();e.FieldDefinition=u,e.Packet=c,e.PacketDefinition=d,e.PacketScope=h,e.TelemetryDictionary=f,e.TelemetryStream=p},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Plot=void 0;var o=function(){function t(t,e){for(var n=0;nthis._plotrange&&this._plot._data.shift(),this._plot.shouldRedraw()&&this.redraw()}}},{key:"redraw",value:function(){this._plot._chart.updateOptions({file:this._plot._data})}}]),t}(),d=function(){function t(e){r(this,t),this._plot=e}return o(t,[{key:"addSeries",value:function(t,e){this._plot._options.series.push({id:t,name:e.caption||t,color:e.color,data:[],tooltip:{valueDecimals:2},type:e.type,showInNavigator:!0,boostThreshold:1,cropThreshold:1,turboThreshold:1})}},{key:"createChart",value:function(t,e){return new Highcharts.StockChart(t.dom,e)}},{key:"createOptions",value:function(t){return{credits:{enabled:!1},legend:{enabled:!0},boost:{seriesThreshold:1},rangeSelector:{buttons:[{count:1,text:"1m",type:"minute"},{count:10,text:"10m",type:"minute"},{count:30,text:"30m",type:"minute"},{count:1,text:"1h",type:"hour"},{count:6,text:"6h",type:"hour"},{count:12,text:"12h",type:"hour"},{count:1,text:"1d",type:"day"}],inputEnabled:!1},series:[],title:{text:t.title},xAxis:{title:{text:"Time (UTC)"}},yAxis:{title:{text:t["y-title"]}}}}},{key:"handleOptionsOverride",value:function(t,e){Object.assign(t,e)}},{key:"plot",value:function(t){var e=this,n=t._defn.name,i=this._plot._packets[n];i&&(i.forEach(function(i){var r=e._plot._chart.get(n+"."+i);if(r){var o=e._plot._time.get(t).getTime(),a=t.__get__(i);if(r.addPoint([o,a],!1),e._plot._initZoom===!1){var s=e._plot._chart.axes[0].getExtremes(),l=(s.max-s.min)/1e3;l>=60&&(e._plot._chart.rangeSelector.clickButton(0,!0),e._plot._initZoom=!0)}}}),this._plot.shouldRedraw()&&this.redraw())}},{key:"redraw",value:function(){this._plot._chart.redraw()}}]),t}(),h={plot:function(t){this._backend.plot(t)},processTag:function(t){if("ait-plotconfig"===t.tag)try{this._backend.handleOptionsOverride(this._options,JSON.parse(t.text))}catch(t){t instanceof SyntaxError&&console.error("Error parsing plot config. Printing trace back and reverting to default options."),console.error(t)}else"ait-plotseries"===t.tag?this.processTagSeries(t):"ait-plottime"===t.tag&&this.processTagTime(t)},processTagSeries:function(t){var e=t.attrs.name,n=t.attrs.packet,i=(t.attrs.type,n+"."+e);this._backend.addSeries(i,t.attrs),this._packets[n]=this._packets[n]||[],this._packets[n].push(e)},processTagTime:function(t){this._time=new f(t.attrs.packet,t.attrs.name)},shouldRedraw:function(){var t=Date.now(),e=(t-this._lastRedrawTime)/1e3;return e>this._redrawDelta&&(this._lastRedrawTime=t,!0)},oninit:function(t){var e=this;this._backend=window.Highcharts?new d(this):new c(this),this._data=[],this._options=this._backend.createOptions(t.attrs),this._packets={},this._time=null,this._initZoom=!1,this._redrawFrequency=parseInt(t.attrs["redraw-frequency"])||10;var n=parseInt(t.attrs["redraw-frequency-variation-min"])||-2,i=parseInt(t.attrs["redraw-frequency-variation-max"])||2,r="redraw-frequency-variation"in t.attrs&&t.attrs["redraw-frequency-variation"]===!0;this._redrawDelta=this._redrawFrequency+(r?Math.random()*(i-n)+n:0),this._lastRedrawTime=Date.now(),t.children.forEach(function(t){return e.processTag(t)}),null===this._time&&(this._time=new f),ait.events.on("ait:tlm:packet",function(t){return e.plot(t)}),ait.events.on("ait:playback:on",function(){return e.redraw()}),ait.events.on("ait:playback:off",function(){return e.redraw()})},oncreate:function(t){this._chart=this._backend.createChart(t,this._options)},view:function(t){if(window.Highcharts)return(0,s.default)("ait-plot",t.attrs);var e=[(0,s.default)("div")];return this._backend._user_specified_label||e.push((0,s.default)("div",{id:this._backend._plot_id,class:"dygraph-legend",style:"width: "+this._options.width+"px;"})),(0,s.default)("ait-plot",t.attrs,e)},redraw:function(){this._data=[],this._backend.redraw()}},f=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r(this,t),this._pname=e,this._fname=n}return o(t,[{key:"get",value:function(t){var e=this.hasTime(t)?t.__get__(this._fname):null;return e instanceof Date||(e="number"!=typeof e?new Date:new Date(e)),e}},{key:"hasTime",value:function(t){var e=t&&t._defn;return e&&this._pname===e.name&&this._fname in e.fields}}]),t}();e.default=h,e.Plot=h},function(t,e,n){t.exports=n(167)},function(t,e,n){(function(i){/** * @license * Copyright 2006 Dan Vanderkam (danvdk@gmail.com) * MIT-licensed (http://opensource.org/licenses/MIT) diff --git a/ait/gui/static/package-lock.json b/ait/gui/static/package-lock.json index bffa161e..5130c143 100644 --- a/ait/gui/static/package-lock.json +++ b/ait/gui/static/package-lock.json @@ -1,6 +1,6 @@ { "name": "ait-gui", - "version": "2.0.0", + "version": "2.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -2001,7 +2001,8 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -2022,12 +2023,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2042,17 +2045,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -2169,7 +2175,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -2181,6 +2188,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -2195,6 +2203,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -2202,12 +2211,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -2226,6 +2237,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -2306,7 +2318,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -2318,6 +2331,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -2403,7 +2417,8 @@ "safe-buffer": { "version": "5.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -2439,6 +2454,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -2458,6 +2474,7 @@ "version": "3.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -2501,12 +2518,14 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true } } }, diff --git a/ait/gui/static/package.json b/ait/gui/static/package.json index 78eb5f50..726f734a 100644 --- a/ait/gui/static/package.json +++ b/ait/gui/static/package.json @@ -1,6 +1,6 @@ { "name": "ait-gui", - "version": "2.0.0", + "version": "2.1.0", "description": "AIT GUI", "main": "index.js", "scripts": { diff --git a/doc/source/conf.py b/doc/source/conf.py index 58b783c9..4f0dc035 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -72,9 +72,9 @@ # built documents. # # The short X.Y version. -version = u'2.0.0' +version = u'2.1.0' # The full version, including alpha/beta/rc tags. -release = u'2.0.0' +release = u'2.1.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index eee7509a..df12a801 100644 --- a/setup.py +++ b/setup.py @@ -85,7 +85,7 @@ def run(self): setup( name = 'ait-gui', - version = '2.0.0', + version = '2.1.0', description = description, long_description = long_description, long_description_content_type = 'text/x-rst',