From 1f2039a474cacb8fa001ac8b5feeef9ea24b6a0f Mon Sep 17 00:00:00 2001 From: JR Date: Thu, 5 Dec 2019 23:48:29 +0100 Subject: [PATCH] Add features - restructure code --- dist/main.js | 6 +- src/ModelObjects/XtrData.js | 45 +++++++ src/ModelObjects/XtrServer.js | 50 ++++++++ src/StatusBox.vue | 216 ++++++++++++++++++++++++++-------- src/StatusBoxContainer.vue | 48 ++++++-- 5 files changed, 304 insertions(+), 61 deletions(-) create mode 100644 src/ModelObjects/XtrData.js create mode 100644 src/ModelObjects/XtrServer.js diff --git a/dist/main.js b/dist/main.js index 8cc55f5..1d4da9c 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1,14 +1,14 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=39)}([function(e,t,n){"use strict";var r=n(5),o=n(18),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(i)})),e.exports=c}).call(this,n(9))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f1)for(var n=1;nn.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;o=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){c.headers[t]=r.merge(i)})),t.exports=c}).call(this,n(9))},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var t=s(d);l=!0;for(var e=u.length;e;){for(c=u,u=[];++f1)for(var n=1;nn.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;o=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(e,t){return _.call(e,t)}function x(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var w=/-(\w)/g,C=x((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),S=x((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),A=/\B([A-Z])/g,O=x((function(e){return e.replace(A,"-$1").toLowerCase()}));var k=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function $(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function T(e,t){for(var n in t)e[n]=t[n];return e}function E(e){for(var t={},n=0;n0,Q=K&&K.indexOf("edge/")>0,Y=(K&&K.indexOf("android"),K&&/iphone|ipad|ipod|ios/.test(K)||"ios"===W),ee=(K&&/chrome\/\d+/.test(K),K&&/phantomjs/.test(K),K&&K.match(/firefox\/(\d+)/)),te={}.watch,ne=!1;if(J)try{var re={};Object.defineProperty(re,"passive",{get:function(){ne=!0}}),window.addEventListener("test-passive",null,re)}catch(e){}var oe=function(){return void 0===z&&(z=!J&&!X&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),z},ie=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"==typeof e&&/native code/.test(e.toString())}var se,ce="undefined"!=typeof Symbol&&ae(Symbol)&&"undefined"!=typeof Reflect&&ae(Reflect.ownKeys);se="undefined"!=typeof Set&&ae(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ue=I,le=0,fe=function(){this.id=le++,this.subs=[]};fe.prototype.addSub=function(e){this.subs.push(e)},fe.prototype.removeSub=function(e){g(this.subs,e)},fe.prototype.depend=function(){fe.target&&fe.target.addDep(this)},fe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(i&&!b(o,"default"))a=!1;else if(""===a||a===O(e)){var c=Ue(String,o.type);(c<0||s0&&(lt((u=e(u,(n||"")+"_"+c))[0])&<(f)&&(r[l]=ge(f.text+u[0].text),u.shift()),r.push.apply(r,u)):s(u)?lt(f)?r[l]=ge(f.text+u):""!==u&&r.push(ge(u)):lt(u)&<(f)?r[l]=ge(f.text+u.text):(a(t._isVList)&&i(u.tag)&&o(u.key)&&i(n)&&(u.key="__vlist"+n+"_"+c+"__"),r.push(u)));return r}(e):void 0}function lt(e){return i(e)&&i(e.text)&&!1===e.isComment}function ft(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),o=0;o0,a=e?!!e.$stable:!i,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!i&&!n.$hasNormal)return n;for(var c in o={},e)e[c]&&"$"!==c[0]&&(o[c]=ht(t,c,e[c]))}else o={};for(var u in t)u in o||(o[u]=mt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=o),q(o,"$stable",a),q(o,"$key",s),q(o,"$hasNormal",i),o}function ht(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ut(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function mt(e,t){return function(){return e[t]}}function yt(e,t){var n,r,o,a,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,o=e.length;rdocument.createEvent("Event").timeStamp&&(ln=function(){return fn.now()})}function dn(){var e,t;for(un=ln(),sn=!0,nn.sort((function(e,t){return e.id-t.id})),cn=0;cncn&&nn[n].id>e.id;)n--;nn.splice(n+1,0,e)}else nn.push(e);an||(an=!0,tt(dn))}}(this)},vn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){qe(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},vn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},vn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var hn={enumerable:!0,configurable:!0,get:I,set:I};function mn(e,t,n){hn.get=function(){return this[t][n]},hn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,hn)}function yn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[];e.$parent&&Se(!1);var i=function(i){o.push(i);var a=Pe(i,t,n,e);ke(r,i,a),i in e||mn(e,"_props",i)};for(var a in t)i(a);Se(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?I:k(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){pe();try{return e.call(t,t)}catch(e){return qe(e,t,"data()"),{}}finally{ve()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);for(;o--;){var i=n[o];0,r&&b(r,i)||(a=void 0,36!==(a=(i+"").charCodeAt(0))&&95!==a&&mn(e,"_data",i))}var a;Oe(t,!0)}(e):Oe(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=oe();for(var o in t){var i=t[o],a="function"==typeof i?i:i.get;0,r||(n[o]=new vn(e,a||I,I,gn)),o in e||_n(e,o,i)}}(e,t.computed),t.watch&&t.watch!==te&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function Tn(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=kn(a.componentOptions);s&&!t(s)&&En(n,i,r,o)}}}function En(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,g(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Cn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Le(Sn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Gt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=dt(t._renderChildren,o),e.$scopedSlots=r,e._c=function(t,n,r,o){return Ut(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return Ut(e,t,n,r,o,!0)};var i=n&&n.data;ke(e,"$attrs",i&&i.attrs||r,null,!0),ke(e,"$listeners",t._parentListeners||r,null,!0)}(t),tn(t,"beforeCreate"),function(e){var t=ft(e.$options.inject,e);t&&(Se(!1),Object.keys(t).forEach((function(n){ke(e,n,t[n])})),Se(!0))}(t),yn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),tn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(An),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=$e,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,n){if(l(t))return wn(this,e,t,n);(n=n||{}).user=!0;var r=new vn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){qe(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(An),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var o=0,i=e.length;o1?$(n):n;for(var r=$(arguments,1),o='event handler for "'+e+'"',i=0,a=n.length;iparseInt(this.max)&&En(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return F}};Object.defineProperty(e,"config",t),e.util={warn:ue,extend:T,mergeOptions:Le,defineReactive:ke},e.set=$e,e.delete=Te,e.nextTick=tt,e.observable=function(e){return Oe(e),e},e.options=Object.create(null),P.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,Nn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=$(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Le(this.options,e),this}}(e),On(e),function(e){P.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(An),Object.defineProperty(An.prototype,"$isServer",{get:oe}),Object.defineProperty(An.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(An,"FunctionalRenderContext",{value:Nt}),An.version="2.6.10";var jn=m("style,class"),Dn=m("input,textarea,option,select,progress"),Bn=m("contenteditable,draggable,spellcheck"),Ln=m("events,caret,typing,plaintext-only"),Rn=function(e,t){return qn(t)||"false"===t?"false":"contenteditable"===e&&Ln(t)?t:"true"},Pn=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Mn="http://www.w3.org/1999/xlink",Fn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Un=function(e){return Fn(e)?e.slice(6,e.length):""},qn=function(e){return null==e||!1===e};function Hn(e){for(var t=e.data,n=e,r=e;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=zn(r.data,t));for(;i(n=n.parent);)n&&n.data&&(t=zn(t,n.data));return function(e,t){if(i(e)||i(t))return Vn(e,Jn(t));return""}(t.staticClass,t.class)}function zn(e,t){return{staticClass:Vn(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Vn(e,t){return e?t?e+" "+t:e:t||""}function Jn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,o=e.length;r-1?hr(e,t,n):Pn(t)?qn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Bn(t)?e.setAttribute(t,Rn(t,n)):Fn(t)?qn(n)?e.removeAttributeNS(Mn,Un(t)):e.setAttributeNS(Mn,t,n):hr(e,t,n)}function hr(e,t,n){if(qn(n))e.removeAttribute(t);else{if(G&&!Z&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var mr={create:pr,update:pr};function yr(e,t){var n=t.elm,r=t.data,a=e.data;if(!(o(r.staticClass)&&o(r.class)&&(o(a)||o(a.staticClass)&&o(a.class)))){var s=Hn(t),c=n._transitionClasses;i(c)&&(s=Vn(s,Jn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var gr,_r={create:yr,update:yr},br="__r",xr="__c";function wr(e,t,n){var r=gr;return function o(){var i=t.apply(null,arguments);null!==i&&Ar(e,o,n,r)}}var Cr=Xe&&!(ee&&Number(ee[1])<=53);function Sr(e,t,n,r){if(Cr){var o=un,i=t;t=i._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=o||e.timeStamp<=0||e.target.ownerDocument!==document)return i.apply(this,arguments)}}gr.addEventListener(e,t,ne?{capture:n,passive:r}:n)}function Ar(e,t,n,r){(r||gr).removeEventListener(e,t._wrapper||t,n)}function Or(e,t){if(!o(e.data.on)||!o(t.data.on)){var n=t.data.on||{},r=e.data.on||{};gr=t.elm,function(e){if(i(e[br])){var t=G?"change":"input";e[t]=[].concat(e[br],e[t]||[]),delete e[br]}i(e[xr])&&(e.change=[].concat(e[xr],e.change||[]),delete e[xr])}(n),at(n,r,Sr,Ar,wr,t.context),gr=void 0}}var kr,$r={create:Or,update:Or};function Tr(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var n,r,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in i(c.__ob__)&&(c=t.data.domProps=T({},c)),s)n in c||(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var u=o(r)?"":String(r);Er(a,u)&&(a.value=u)}else if("innerHTML"===n&&Kn(a.tagName)&&o(a.innerHTML)){(kr=kr||document.createElement("div")).innerHTML=""+r+"";for(var l=kr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(r!==s[n])try{a[n]=r}catch(e){}}}}function Er(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return h(n)!==h(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Ir={create:Tr,update:Tr},Nr=x((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function jr(e){var t=Dr(e.style);return e.staticStyle?T(e.staticStyle,t):t}function Dr(e){return Array.isArray(e)?E(e):"string"==typeof e?Nr(e):e}var Br,Lr=/^--/,Rr=/\s*!important$/,Pr=function(e,t,n){if(Lr.test(t))e.style.setProperty(t,n);else if(Rr.test(n))e.style.setProperty(O(t),n.replace(Rr,""),"important");else{var r=Fr(t);if(Array.isArray(n))for(var o=0,i=n.length;o-1?t.split(Hr).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Vr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Hr).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Jr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,Xr(e.name||"v")),T(t,e),t}return"string"==typeof e?Xr(e):void 0}}var Xr=x((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Wr=J&&!Z,Kr="transition",Gr="animation",Zr="transition",Qr="transitionend",Yr="animation",eo="animationend";Wr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Zr="WebkitTransition",Qr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Yr="WebkitAnimation",eo="webkitAnimationEnd"));var to=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function no(e){to((function(){to(e)}))}function ro(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),zr(e,t))}function oo(e,t){e._transitionClasses&&g(e._transitionClasses,t),Vr(e,t)}function io(e,t,n){var r=so(e,t),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===Kr?Qr:eo,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout((function(){c0&&(n=Kr,l=a,f=i.length):t===Gr?u>0&&(n=Gr,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Kr:Gr:null)?n===Kr?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Kr&&ao.test(r[Zr+"Property"])}}function co(e,t){for(;e.length1}function ho(e,t){!0!==t.data.show&&lo(t)}var mo=function(e){var t,n,r={},c=e.modules,u=e.nodeOps;for(t=0;tv?_(e,o(n[y+1])?null:n[y+1].elm,n,p,y,r):p>y&&x(0,t,d,v)}(d,m,y,n,l):i(y)?(i(e.text)&&u.setTextContent(d,""),_(d,null,y,0,y.length-1,n)):i(m)?x(0,m,0,m.length-1):i(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),i(v)&&i(p=v.hook)&&i(p=p.postpatch)&&p(e,t)}}}function A(e,t,n){if(a(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,a.selected!==i&&(a.selected=i);else if(D(xo(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function bo(e,t){return t.every((function(t){return!D(t,e)}))}function xo(e){return"_value"in e?e._value:e.value}function wo(e){e.target.composing=!0}function Co(e){e.target.composing&&(e.target.composing=!1,So(e.target,"input"))}function So(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ao(e){return!e.componentInstance||e.data&&e.data.transition?e:Ao(e.componentInstance._vnode)}var Oo={model:yo,show:{bind:function(e,t,n){var r=t.value,o=(n=Ao(n)).data&&n.data.transition,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&o?(n.data.show=!0,lo(n,(function(){e.style.display=i}))):e.style.display=r?i:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Ao(n)).data&&n.data.transition?(n.data.show=!0,r?lo(n,(function(){e.style.display=e.__vOriginalDisplay})):fo(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}}},ko={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function $o(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?$o(Jt(t.children)):e}function To(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var i in o)t[C(i)]=o[i];return t}function Eo(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Io=function(e){return e.tag||Vt(e)},No=function(e){return"show"===e.name},jo={name:"transition",props:ko,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Io)).length){0;var r=this.mode;0;var o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var i=$o(o);if(!i)return o;if(this._leaving)return Eo(e,o);var a="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?a+"comment":a+i.tag:s(i.key)?0===String(i.key).indexOf(a)?i.key:a+i.key:i.key;var c=(i.data||(i.data={})).transition=To(this),u=this._vnode,l=$o(u);if(i.data.directives&&i.data.directives.some(No)&&(i.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(i,l)&&!Vt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=T({},c);if("out-in"===r)return this._leaving=!0,st(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Eo(e,o);if("in-out"===r){if(Vt(i))return u;var d,p=function(){d()};st(c,"afterEnter",p),st(c,"enterCancelled",p),st(f,"delayLeave",(function(e){d=e}))}}return o}}},Do=T({tag:String,moveClass:String},ko);function Bo(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Lo(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ro(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}delete Do.mode;var Po={Transition:jo,TransitionGroup:{props:Do,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var o=Qt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,o(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=To(this),s=0;s-1?Zn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Zn[e]=/HTMLUnknownElement/.test(t.toString())},T(An.options.directives,Oo),T(An.options.components,Po),An.prototype.__patch__=J?mo:I,An.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ye),tn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new vn(e,r,I,{before:function(){e._isMounted&&!e._isDestroyed&&tn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,tn(e,"mounted")),e}(this,e=e&&J?function(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}(e):void 0,t)},J&&setTimeout((function(){F.devtools&&ie&&ie.emit("init",An)}),0),t.a=An}).call(this,n(4),n(37).setImmediate)},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(19),a=n(12);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=s(n(8));c.Axios=i,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(13),c.CancelToken=n(31),c.isCancel=n(7),c.all=function(e){return Promise.all(e)},c.spread=n(32),e.exports=c,e.exports.default=c},function(e,t){ +var r=Object.freeze({});function o(t){return null==t}function i(t){return null!=t}function a(t){return!0===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function c(t){return null!==t&&"object"==typeof t}var u=Object.prototype.toString;function l(t){return"[object Object]"===u.call(t)}function f(t){return"[object RegExp]"===u.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function v(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function x(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var S=/-(\w)/g,w=x((function(t){return t.replace(S,(function(t,e){return e?e.toUpperCase():""}))})),C=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),O=/\B([A-Z])/g,k=x((function(t){return t.replace(O,"-$1").toLowerCase()}));var A=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function $(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function T(t,e){for(var n in e)t[n]=e[n];return t}function E(t){for(var e={},n=0;n0,Q=K&&K.indexOf("edge/")>0,Y=(K&&K.indexOf("android"),K&&/iphone|ipad|ipod|ios/.test(K)||"ios"===W),tt=(K&&/chrome\/\d+/.test(K),K&&/phantomjs/.test(K),K&&K.match(/firefox\/(\d+)/)),et={}.watch,nt=!1;if(V)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,rt)}catch(t){}var ot=function(){return void 0===J&&(J=!V&&!X&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),J},it=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"==typeof t&&/native code/.test(t.toString())}var st,ct="undefined"!=typeof Symbol&&at(Symbol)&&"undefined"!=typeof Reflect&&at(Reflect.ownKeys);st="undefined"!=typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ut=D,lt=0,ft=function(){this.id=lt++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){g(this.subs,t)},ft.prototype.depend=function(){ft.target&&ft.target.addDep(this)},ft.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(i&&!b(o,"default"))a=!1;else if(""===a||a===k(t)){var c=Ut(String,o.type);(c<0||s0&&(le((u=t(u,(n||"")+"_"+c))[0])&&le(f)&&(r[l]=gt(f.text+u[0].text),u.shift()),r.push.apply(r,u)):s(u)?le(f)?r[l]=gt(f.text+u):""!==u&&r.push(gt(u)):le(u)&&le(f)?r[l]=gt(f.text+u.text):(a(e._isVList)&&i(u.tag)&&o(u.key)&&i(n)&&(u.key="__vlist"+n+"_"+c+"__"),r.push(u)));return r}(t):void 0}function le(t){return i(t)&&i(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var n=Object.create(null),r=ct?Reflect.ownKeys(t):Object.keys(t),o=0;o0,a=t?!!t.$stable:!i,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==r&&s===n.$key&&!i&&!n.$hasNormal)return n;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=he(e,c,t[c]))}else o={};for(var u in e)u in o||(o[u]=me(e,u));return t&&Object.isExtensible(t)&&(t._normalized=o),H(o,"$stable",a),H(o,"$key",s),H(o,"$hasNormal",i),o}function he(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function me(t,e){return function(){return t[e]}}function ye(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,o=t.length;rdocument.createEvent("Event").timeStamp&&(ln=function(){return fn.now()})}function dn(){var t,e;for(un=ln(),sn=!0,nn.sort((function(t,e){return t.id-e.id})),cn=0;cncn&&nn[n].id>t.id;)n--;nn.splice(n+1,0,t)}else nn.push(t);an||(an=!0,ee(dn))}}(this)},vn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Ht(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},vn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},vn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var hn={enumerable:!0,configurable:!0,get:D,set:D};function mn(t,e,n){hn.get=function(){return this[e][n]},hn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,hn)}function yn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[];t.$parent&&Ct(!1);var i=function(i){o.push(i);var a=Rt(i,e,n,t);At(r,i,a),i in t||mn(t,"_props",i)};for(var a in e)i(a);Ct(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?D:A(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;l(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return Ht(t,e,"data()"),{}}finally{vt()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props,o=(t.$options.methods,n.length);for(;o--;){var i=n[o];0,r&&b(r,i)||(a=void 0,36!==(a=(i+"").charCodeAt(0))&&95!==a&&mn(t,"_data",i))}var a;kt(e,!0)}(t):kt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=ot();for(var o in e){var i=e[o],a="function"==typeof i?i:i.get;0,r||(n[o]=new vn(t,a||D,D,gn)),o in t||_n(t,o,i)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var o=0;o-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function Tn(t,e){var n=t.cache,r=t.keys,o=t._vnode;for(var i in n){var a=n[i];if(a){var s=An(a.componentOptions);s&&!e(s)&&En(n,i,r,o)}}}function En(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,g(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=wn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Pt(Cn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ge(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,o=n&&n.context;t.$slots=de(e._renderChildren,o),t.$scopedSlots=r,t._c=function(e,n,r,o){return Ue(t,e,n,r,o,!1)},t.$createElement=function(e,n,r,o){return Ue(t,e,n,r,o,!0)};var i=n&&n.data;At(t,"$attrs",i&&i.attrs||r,null,!0),At(t,"$listeners",e._parentListeners||r,null,!0)}(e),en(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(Ct(!1),Object.keys(e).forEach((function(n){At(t,n,e[n])})),Ct(!0))}(e),yn(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),en(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(On),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=$t,t.prototype.$delete=Tt,t.prototype.$watch=function(t,e,n){if(l(e))return Sn(this,t,e,n);(n=n||{}).user=!0;var r=new vn(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(t){Ht(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(On),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var o=0,i=t.length;o1?$(n):n;for(var r=$(arguments,1),o='event handler for "'+t+'"',i=0,a=n.length;iparseInt(this.max)&&En(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return F}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:T,mergeOptions:Pt,defineReactive:At},t.set=$t,t.delete=Tt,t.nextTick=ee,t.observable=function(t){return kt(t),t},t.options=Object.create(null),R.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,T(t.options.components,In),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=$(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Pt(this.options,t),this}}(t),kn(t),function(t){R.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(On),Object.defineProperty(On.prototype,"$isServer",{get:ot}),Object.defineProperty(On.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(On,"FunctionalRenderContext",{value:Ie}),On.version="2.6.10";var Nn=m("style,class"),jn=m("input,textarea,option,select,progress"),Bn=m("contenteditable,draggable,spellcheck"),Pn=m("events,caret,typing,plaintext-only"),Ln=function(t,e){return Hn(e)||"false"===e?"false":"contenteditable"===t&&Pn(e)?e:"true"},Rn=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Mn="http://www.w3.org/1999/xlink",Fn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Un=function(t){return Fn(t)?t.slice(6,t.length):""},Hn=function(t){return null==t||!1===t};function qn(t){for(var e=t.data,n=t,r=t;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Jn(r.data,e));for(;i(n=n.parent);)n&&n.data&&(e=Jn(e,n.data));return function(t,e){if(i(t)||i(e))return zn(t,Vn(e));return""}(e.staticClass,e.class)}function Jn(t,e){return{staticClass:zn(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function zn(t,e){return t?e?t+" "+e:t:e||""}function Vn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,o=t.length;r-1?hr(t,e,n):Rn(e)?Hn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Bn(e)?t.setAttribute(e,Ln(e,n)):Fn(e)?Hn(n)?t.removeAttributeNS(Mn,Un(e)):t.setAttributeNS(Mn,e,n):hr(t,e,n)}function hr(t,e,n){if(Hn(n))t.removeAttribute(e);else{if(G&&!Z&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var mr={create:pr,update:pr};function yr(t,e){var n=e.elm,r=e.data,a=t.data;if(!(o(r.staticClass)&&o(r.class)&&(o(a)||o(a.staticClass)&&o(a.class)))){var s=qn(e),c=n._transitionClasses;i(c)&&(s=zn(s,Vn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var gr,_r={create:yr,update:yr},br="__r",xr="__c";function Sr(t,e,n){var r=gr;return function o(){var i=e.apply(null,arguments);null!==i&&Or(t,o,n,r)}}var wr=Xt&&!(tt&&Number(tt[1])<=53);function Cr(t,e,n,r){if(wr){var o=un,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}gr.addEventListener(t,e,nt?{capture:n,passive:r}:n)}function Or(t,e,n,r){(r||gr).removeEventListener(t,e._wrapper||e,n)}function kr(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},r=t.data.on||{};gr=e.elm,function(t){if(i(t[br])){var e=G?"change":"input";t[e]=[].concat(t[br],t[e]||[]),delete t[br]}i(t[xr])&&(t.change=[].concat(t[xr],t.change||[]),delete t[xr])}(n),ae(n,r,Cr,Or,Sr,e.context),gr=void 0}}var Ar,$r={create:kr,update:kr};function Tr(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,r,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in i(c.__ob__)&&(c=e.data.domProps=T({},c)),s)n in c||(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var u=o(r)?"":String(r);Er(a,u)&&(a.value=u)}else if("innerHTML"===n&&Kn(a.tagName)&&o(a.innerHTML)){(Ar=Ar||document.createElement("div")).innerHTML=""+r+"";for(var l=Ar.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(r!==s[n])try{a[n]=r}catch(t){}}}}function Er(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return h(n)!==h(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Dr={create:Tr,update:Tr},Ir=x((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Nr(t){var e=jr(t.style);return t.staticStyle?T(t.staticStyle,e):e}function jr(t){return Array.isArray(t)?E(t):"string"==typeof t?Ir(t):t}var Br,Pr=/^--/,Lr=/\s*!important$/,Rr=function(t,e,n){if(Pr.test(e))t.style.setProperty(e,n);else if(Lr.test(n))t.style.setProperty(k(e),n.replace(Lr,""),"important");else{var r=Fr(e);if(Array.isArray(n))for(var o=0,i=n.length;o-1?e.split(qr).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function zr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(qr).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Vr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&T(e,Xr(t.name||"v")),T(e,t),e}return"string"==typeof t?Xr(t):void 0}}var Xr=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Wr=V&&!Z,Kr="transition",Gr="animation",Zr="transition",Qr="transitionend",Yr="animation",to="animationend";Wr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Zr="WebkitTransition",Qr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Yr="WebkitAnimation",to="webkitAnimationEnd"));var eo=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function no(t){eo((function(){eo(t)}))}function ro(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Jr(t,e))}function oo(t,e){t._transitionClasses&&g(t._transitionClasses,e),zr(t,e)}function io(t,e,n){var r=so(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===Kr?Qr:to,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout((function(){c0&&(n=Kr,l=a,f=i.length):e===Gr?u>0&&(n=Gr,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Kr:Gr:null)?n===Kr?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Kr&&ao.test(r[Zr+"Property"])}}function co(t,e){for(;t.length1}function ho(t,e){!0!==e.data.show&&lo(e)}var mo=function(t){var e,n,r={},c=t.modules,u=t.nodeOps;for(e=0;ev?_(t,o(n[y+1])?null:n[y+1].elm,n,p,y,r):p>y&&x(0,e,d,v)}(d,m,y,n,l):i(y)?(i(t.text)&&u.setTextContent(d,""),_(d,null,y,0,y.length-1,n)):i(m)?x(0,m,0,m.length-1):i(t.text)&&u.setTextContent(d,""):t.text!==e.text&&u.setTextContent(d,e.text),i(v)&&i(p=v.hook)&&i(p=p.postpatch)&&p(t,e)}}}function O(t,e,n){if(a(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==i&&(a.selected=i);else if(j(xo(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function bo(t,e){return e.every((function(e){return!j(e,t)}))}function xo(t){return"_value"in t?t._value:t.value}function So(t){t.target.composing=!0}function wo(t){t.target.composing&&(t.target.composing=!1,Co(t.target,"input"))}function Co(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Oo(t){return!t.componentInstance||t.data&&t.data.transition?t:Oo(t.componentInstance._vnode)}var ko={model:yo,show:{bind:function(t,e,n){var r=e.value,o=(n=Oo(n)).data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,lo(n,(function(){t.style.display=i}))):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Oo(n)).data&&n.data.transition?(n.data.show=!0,r?lo(n,(function(){t.style.display=t.__vOriginalDisplay})):fo(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}}},Ao={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function $o(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?$o(Ve(e.children)):t}function To(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var i in o)e[w(i)]=o[i];return e}function Eo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Do=function(t){return t.tag||ze(t)},Io=function(t){return"show"===t.name},No={name:"transition",props:Ao,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Do)).length){0;var r=this.mode;0;var o=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var i=$o(o);if(!i)return o;if(this._leaving)return Eo(t,o);var a="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?a+"comment":a+i.tag:s(i.key)?0===String(i.key).indexOf(a)?i.key:a+i.key:i.key;var c=(i.data||(i.data={})).transition=To(this),u=this._vnode,l=$o(u);if(i.data.directives&&i.data.directives.some(Io)&&(i.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(i,l)&&!ze(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=T({},c);if("out-in"===r)return this._leaving=!0,se(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Eo(t,o);if("in-out"===r){if(ze(i))return u;var d,p=function(){d()};se(c,"afterEnter",p),se(c,"enterCancelled",p),se(f,"delayLeave",(function(t){d=t}))}}return o}}},jo=T({tag:String,moveClass:String},Ao);function Bo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Po(t){t.data.newPos=t.elm.getBoundingClientRect()}function Lo(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}delete jo.mode;var Ro={Transition:No,TransitionGroup:{props:jo,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=Qe(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=To(this),s=0;s-1?Zn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Zn[t]=/HTMLUnknownElement/.test(e.toString())},T(On.options.directives,ko),T(On.options.components,Ro),On.prototype.__patch__=V?mo:D,On.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=yt),en(t,"beforeMount"),r=function(){t._update(t._render(),n)},new vn(t,r,D,{before:function(){t._isMounted&&!t._isDestroyed&&en(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,en(t,"mounted")),t}(this,t=t&&V?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},V&&setTimeout((function(){F.devtools&&it&&it.emit("init",On)}),0),e.a=On}).call(this,n(4),n(37).setImmediate)},function(t,e,n){"use strict";var r=n(0),o=n(5),i=n(19),a=n(12);function s(t){var e=new i(t),n=o(i.prototype.request,e);return r.extend(n,i.prototype,e),r.extend(n,e),n}var c=s(n(8));c.Axios=i,c.create=function(t){return s(a(c.defaults,t))},c.Cancel=n(13),c.CancelToken=n(31),c.isCancel=n(7),c.all=function(t){return Promise.all(t)},c.spread=n(32),t.exports=c,t.exports.default=c},function(t,e){ /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ -e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(20),a=n(21),s=n(12);function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method=e.method?e.method.toLowerCase():"get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,o){return this.request(r.merge(o||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){"use strict";var r=n(0);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(0),o=n(22),i=n(7),a=n(8),s=n(29),c=n(30);function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return u(e),e.baseURL&&!s(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(11);e.exports=function(e,t,n){var o=n.config.validateStatus;!o||o(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(0),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(13);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var r=n(1);n.n(r).a},function(e,t,n){(e.exports=n(14)(!1)).push([e.i,"\nspan.small[data-v-07b39850] {\n\tfont-size: 75%;\n}\ntable.active[data-v-07b39850] {\n\tborder: 3px solid #9ac5e3;\n}\ntable[data-v-07b39850] {\n\tborder-collapse: collapse;\n\twidth: 90%;\n}\ntd[data-v-07b39850]\n{\n\tborder:1px solid grey;\n\tfont-size: 9pt;\n}\n.traceroutes[data-v-07b39850]\n{\n\ttext-decoration: none;\n\tdisplay: inline-block;\n}\n.traceroutes[data-v-07b39850]:visited\n{\n\tcolor: #000000;\n}\n.traceroutes[data-v-07b39850]:hover\n{\n\tcolor: #880000;\n\ttransform: rotate(-30deg);\n}\n.traceroutes[data-v-07b39850]:active\n{\n\tcolor: #bb0000;\n}\n.traceroutes_rotating[data-v-07b39850]\n{\n\tdisplay: inline-block;\n\ttext-decoration: none;\n\tcolor: #bb0000;\n\tanimation: spin-data-v-07b39850 2s linear infinite;\n}\n@keyframes spin-data-v-07b39850\n{\n0% { transform: rotate(-30deg);\n}\n25% { transform: rotate(0deg);\n}\n50% { transform: rotate(30deg);\n}\n75% { transform: rotate(0deg);\n}\n100% { transform: rotate(-30deg);\n}\n}\n",""])},function(e,t,n){"use strict";var r=n(2);n.n(r).a},function(e,t,n){(e.exports=n(14)(!1)).push([e.i,"\nh4[data-v-98ade07e] {\n\t\ttext-align: center;\n}\n.grid-container[data-v-98ade07e] {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: auto auto auto;\n\t\tgrid-gap: 5px;\n\t\tpadding: 5px;\n}\n.info[data-v-98ade07e]\n\t{\n\t\tdisplay: block; position: absolute; right: 10px; top: 10px;\n}\n.info:hover .info_box[data-v-98ade07e]\n\t{\n\t\tvisibility: visible;\n\t\tz-index: 4;\n}\n.info .info_box[data-v-98ade07e]\n\t{\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tright: 0px;\n\t\ttop: 0px;\n\t\tvisibility: hidden;\n\t\twidth: 502px;\n\t\tborder: solid 1px;\n\t\tbackground-color: #999999;\n\t\tfont-size: 10pt;\n}\n",""])},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(38),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(4))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,s,c=1,u={},l=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){v(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){v(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){v(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(v,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&v(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n-1:e.checkedBoxes},on:{click:function(t){return e.setActive(r)},change:function(t){var n=e.checkedBoxes,o=t.target,i=!!o.checked;if(Array.isArray(n)){var a=r,s=e._i(n,a);o.checked?s<0&&(e.checkedBoxes=n.concat([a])):s>-1&&(e.checkedBoxes=n.slice(0,s).concat(n.slice(s+1)))}else e.checkedBoxes=i}}})})),0)]),e._v(" "),n("br"),e._v(" "),n("button",{on:{click:function(t){return e.executeAllBoxes()}}},[e._v("Request for all boxes")]),e._v(" "),n("button",{on:{click:function(t){return e.addTraceBox()}}},[e._v("Add new TraceBox")]),e._v(" "),n("div",{staticClass:"grid-container"},[e._l(e.traceBoxes,(function(t,r){return[n(t,{key:r,ref:"boxref",refInFor:!0,tag:"component",attrs:{serverlist:e.listOfServers,boxNumber:r}})]}))],2)])};o._withStripped=!0;var i=n(3),a=n.n(i),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"statusBox"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-4"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedIp,expression:"selectedIp"}],attrs:{id:"serverSelectList"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.selectedIp=t.target.multiple?n:n[0]}}},e._l(e.serverlist,(function(t,r){return n("option",{domProps:{value:t}},[e._v("\n\t\t\t\t\t"+e._s(t[0])+":"+e._s(t[1])+" (AS"+e._s(t[2])+")\n\t\t\t\t")])})),0),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.target,expression:"target"}],attrs:{placeholder:"Enter Ip or Domain"},domProps:{value:e.target},on:{input:function(t){t.target.composing||(e.target=t.target.value)}}}),e._v(" "),n("a",{staticClass:"traceroutes",attrs:{href:"#"},on:{click:function(t){return e.traceRoute()}}},[e._v("⛟")]),e._v(" "),n("span",{staticClass:"small"},[e._v(e._s(e.executionTime))]),e._v(" "),n("div",[n("table",{staticClass:"table table-striped",attrs:{id:"tableId_"+e.boxNumber}},[n("thead",[e._m(0),e._v(" "),e._l(e.tabeleData,(function(t){return n("tr",[n("td",[e._v(e._s(t[0]))]),e._v(" "),n("td",[e._v(e._s(t[1]))]),e._v(" "),n("td",[e._v(e._s(t[2]))]),e._v(" "),n("td",{attrs:{title:t[4]}},[e._v(e._s(t[3]))])])}))],2)])])])])])};s._withStripped=!0;var c={props:{serverlist:Array,boxNumber:Number},watch:{executionTime:{handler:function(){sessionStorage.setItem("executionTime"+this.boxNumber,JSON.stringify(this.executionTime))},deep:!0},selectedIp:{handler:function(){sessionStorage.setItem("selectedIp"+this.boxNumber,JSON.stringify(this.selectedIp))},deep:!0},target:{handler:function(){sessionStorage.setItem("target"+this.boxNumber,JSON.stringify(this.target))},deep:!0},tabeleData:{handler:function(){sessionStorage.setItem("tabeleData"+this.boxNumber,JSON.stringify(this.tabeleData))},deep:!0}},methods:{setLastExecutionTime:function(){var e=new Date,t=e.getHours(),n=e.getMinutes(),r=e.getSeconds();t<10&&(t="0"+t),n<10&&(n="0"+n),r<10&&(r="0"+r),this.executionTime=t+":"+n+":"+r},traceRoute:function(){var e=this;a.a.get("http://"+this.selectedIp[0]+":"+this.selectedIp[1]+"/v3/client/request/"+this.target).then((function(t){e.tabeleData=t.data,e.setLastExecutionTime()})).catch((function(t){e.executionTime="Check request"}))}},mounted:function(){sessionStorage.getItem("executionTime"+this.boxNumber)&&(this.executionTime=JSON.parse(sessionStorage.getItem("executionTime"+this.boxNumber))),sessionStorage.getItem("selectedIp"+this.boxNumber)?this.selectedIp=JSON.parse(sessionStorage.getItem("selectedIp"+this.boxNumber)):this.selectedIp=["199.247.22.146",12111,20473,1],sessionStorage.getItem("target"+this.boxNumber)&&(this.target=JSON.parse(sessionStorage.getItem("target"+this.boxNumber))),sessionStorage.getItem("tabeleData"+this.boxNumber)&&(this.tabeleData=JSON.parse(sessionStorage.getItem("tabeleData"+this.boxNumber)))},data:function(){return{executionTime:"Not execute yet",selectedIp:Array,target:"8.8.8.8",tabeleData:[]}}};n(33);function u(e,t,n,r,o,i,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}var l=u(c,s,[function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",[this._v("IP")]),this._v(" "),t("td",[this._v("HOSTNAME")]),this._v(" "),t("td",[this._v("PING")]),this._v(" "),t("td",[this._v("AS")])])}],!1,null,"07b39850",null);l.options.__file="src/StatusBox.vue";var f=l.exports,d={components:{StatusBoxVue:f},data:function(){return{listOfServers:[],checkedBoxes:[],traceBoxes:[f,f,f,f,f,f]}},watch:{checkedBoxes:{handler:function(){sessionStorage.setItem("checkedBoxes",JSON.stringify(this.checkedBoxes))},deep:!0},listOfServers:{handler:function(){sessionStorage.setItem("listOfServers",JSON.stringify(this.listOfServers))},deep:!0},traceBoxes:{handler:function(){sessionStorage.setItem("traceBoxes",JSON.stringify(this.traceBoxes))}}},mounted:function(){var e=this;sessionStorage.getItem("listOfServers")?this.listOfServers=JSON.parse(sessionStorage.getItem("listOfServers")):this.getServer(),sessionStorage.getItem("traceBoxes")&&(this.traceBoxes=[],JSON.parse(sessionStorage.getItem("traceBoxes")).forEach((function(t){e.traceBoxes.push(f)}))),sessionStorage.getItem("checkedBoxes")&&(this.checkedBoxes=JSON.parse(sessionStorage.getItem("checkedBoxes"))),this.setActiveFromSession(this.checkedBoxes)},methods:{resetData:function(){this.checkedBoxes=[],this.traceBoxes=[f,f,f,f,f,f]},resetSession:function(){this.resetData(),sessionStorage.clear(),document.querySelectorAll("[id^=tableId_]").forEach((function(e){e.className="table table-striped"}))},setActive:function(e){var t=document.getElementById("tableId_"+e).className;document.getElementById("tableId_"+e).className="table table-striped"==t?"table table-striped active":"table table-striped"},setActiveFromSession:function(e){var t=this;e.forEach((function(e){t.setActive(e)}))},executeAllBoxes:function(){this.$refs.boxref.forEach((function(e){e.traceRoute()}))},executeSpecificBoxes:function(e){var t=this.$refs.boxref;e.forEach((function(e){t.forEach((function(t){e==t.boxNumber&&t.traceRoute()}))}))},addTraceBox:function(){this.traceBoxes.push(f)},getServer:function(){var e=this;a.a.get("http://xtr-master.xicon.eu/v3/server/list/online").then((function(t){e.listOfServers=t.data})).catch((function(t){e.errors.push(t)}))}}},p=(n(35),u(d,o,[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"info",attrs:{id:"info"}},[e._v("ⓘ\n\t\t\t"),n("div",{staticClass:"info_box",attrs:{id:"info_box"}},[e._v("\n\t\t\t\tThis service is free for use by accepting the "),n("a",{attrs:{href:"aup.txt"}},[e._v("Acceptable Use Policy")]),e._v("."),n("br"),e._v(" "),n("br"),e._v("\n\t\t\t\tThis is just an interface to to give a more GUI-ish\n\t\t\t\taccess to the self-registered XTR clients. No traceroute requests will be saved on this server. All request to the XTR clients\n\t\t\t\tare handled by your browser."),n("br"),e._v(" "),n("br"),e._v("\n\t\t\t\tWant to add your server? "),n("a",{attrs:{href:"xtr.pl"}},[e._v("Download XTR client")]),e._v(" now. Readme included in source code!"),n("br"),e._v("\n\t\t\t\tWant to run your own master server? "),n("a",{attrs:{href:"xtrd.pl"}},[e._v("Download XTRd")]),e._v(". Readme included in source code!"),n("br"),e._v(" "),n("br"),e._v("\n\t\t\t\tQuestions?/Impress? -> "),n("a",{attrs:{href:"mailto:rest@xicon.de"}},[e._v("Friedrich Schrader")])])])}],!1,null,"98ade07e",null));p.options.__file="src/StatusBoxContainer.vue";var v=p.exports;new r.a({el:"#statusBoxContainer",render:function(e){return e(v)}})}]); \ No newline at end of file +t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(0),o=n(6),i=n(20),a=n(21),s=n(12);function c(t){this.defaults=t,this.interceptors={request:new i,response:new i}}c.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method=t.method?t.method.toLowerCase():"get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},c.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,n,o){return this.request(r.merge(o||{},{method:t,url:e,data:n}))}})),t.exports=c},function(t,e,n){"use strict";var r=n(0);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var r=n(0),o=n(22),i=n(7),a=n(8),s=n(29),c=n(30);function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return u(t),t.baseURL&&!s(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return u(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(u(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e,n){var o=n.config.validateStatus;!o||o(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(0),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(0);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(0);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(13);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";var r=n(1);n.n(r).a},function(t,e,n){(t.exports=n(14)(!1)).push([t.i,"\ninput[type=range][data-v-07b39850] {\n\twidth: 90%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n}\nspan.small[data-v-07b39850] {\n\tfont-size: 75%;\n}\ntable.active[data-v-07b39850] {\n\tborder: 3px solid #9ac5e3;\n}\ntable[data-v-07b39850] {\n\tborder-collapse: collapse;\n\twidth: 90%;\n}\ntd[data-v-07b39850] {\n\tborder:1px solid grey;\n\tfont-size: 9pt;\n}\n.traceroutes[data-v-07b39850] {\n\ttext-decoration: none;\n\tdisplay: inline-block;\n}\n.traceroutes[data-v-07b39850]:visited {\n\tcolor: #000000;\n}\n.traceroutes[data-v-07b39850]:hover {\n\tcolor: #880000;\n\ttransform: rotate(-30deg);\n}\n.traceroutes[data-v-07b39850]:active {\n\tcolor: #bb0000;\n}\n.traceroutes_rotating[data-v-07b39850] {\n\tdisplay: inline-block;\n\ttext-decoration: none;\n\tcolor: #bb0000;\n\tanimation: spin-data-v-07b39850 2s linear infinite;\n}\n.odd[data-v-07b39850] {\n\tbackground-color: #EEE;\n}\n@keyframes spin-data-v-07b39850 {\n0% { transform: rotate(-30deg);\n}\n25% { transform: rotate(0deg);\n}\n50% { transform: rotate(30deg);\n}\n75% { transform: rotate(0deg);\n}\n100% { transform: rotate(-30deg);\n}\n}\n",""])},function(t,e,n){"use strict";var r=n(2);n.n(r).a},function(t,e,n){(t.exports=n(14)(!1)).push([t.i,"\nh4[data-v-98ade07e] {\n\t\ttext-align: center;\n}\n.grid-container[data-v-98ade07e] {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: repeat(auto-fill, minmax(525px, 1fr));\n\t\tgrid-gap: 5px;\n\t\tpadding: 5px;\n}\n.info[data-v-98ade07e]\n\t{\n\t\tdisplay: block; position: absolute; right: 10px; top: 10px;\n}\n.info:hover .info_box[data-v-98ade07e]\n\t{\n\t\tvisibility: visible;\n\t\tz-index: 4;\n}\n.info .info_box[data-v-98ade07e]\n\t{\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tright: 0px;\n\t\ttop: 0px;\n\t\tvisibility: hidden;\n\t\twidth: 502px;\n\t\tborder: solid 1px;\n\t\tbackground-color: #999999;\n\t\tfont-size: 10pt;\n}\n",""])},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(38),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(4))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,a,s,c=1,u={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){v(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){v(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){v(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(v,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&v(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n-1:t.checkedBoxes},on:{click:function(e){return t.setActive(r)},change:function(e){var n=t.checkedBoxes,o=e.target,i=!!o.checked;if(Array.isArray(n)){var a=r,s=t._i(n,a);o.checked?s<0&&(t.checkedBoxes=n.concat([a])):s>-1&&(t.checkedBoxes=n.slice(0,s).concat(n.slice(s+1)))}else t.checkedBoxes=i}}})})),0)]),t._v(" "),n("br"),t._v(" "),n("button",{on:{click:function(e){return t.executeAllBoxes()}}},[t._v("Request for all boxes")]),t._v(" "),n("div",{staticClass:"grid-container"},[t._l(t.traceBoxes,(function(e,r){return[n(e,{key:r,ref:"boxref",refInFor:!0,tag:"component",attrs:{serverlist:t.listOfServers,initData:t.listOfServers[0],pending:t.pendingParent,boxNumber:r}})]}))],2)])};o._withStripped=!0;var i=n(3),a=n.n(i),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"statusBox"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-4"},[!1===t.pending?n("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedServerData,expression:"selectedServerData"}],ref:"serverSelectBox1",attrs:{id:"serverSelectList"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selectedServerData=e.target.multiple?n:n[0]}}},t._l(t.serverlist,(function(e,r){return n("option",{domProps:{value:e}},[t._v("\n\t\t\t\t\t"+t._s(e.getLabelInfoString())+"\n\t\t\t\t")])})),0):t._e(),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.target,expression:"target"}],attrs:{placeholder:"Enter Ip or Domain"},domProps:{value:t.target},on:{input:function(e){e.target.composing||(t.target=e.target.value)}}}),t._v(" "),n("button",{on:{click:function(e){return t.traceRoute()}}},[t._v("⛟")]),t._v(" "),n("br"),t._v(" "),n("span",{staticClass:"small"},[t._v(t._s(t.infoString))]),t._v(" "),n("div",[n("table",{staticClass:"table table-striped",attrs:{id:"tableId_"+t.boxNumber}},[n("thead",[t._m(0),t._v(" "),t._l(t.tableData,(function(e,r){return n("tr",{class:t.isOdd(r)},[n("td",[t._v(t._s(e[0]))]),t._v(" "),n("td",[t._v(t._s(e[1]))]),t._v(" "),n("td",[t._v(t._s(e[2]))]),t._v(" "),n("td",{attrs:{title:e[4]}},[t._v(t._s(e[3]))])])}))],2)]),t._v(" "),t.tableDataHistory.length>1?n("input",{directives:[{name:"model",rawName:"v-model",value:t.tick,expression:"tick"}],staticClass:"range",attrs:{type:"range",max:t.tableDataHistory.length-1,min:"0",list:"tickmarks"+t._uid},domProps:{value:t.tick},on:{__r:function(e){t.tick=e.target.value}}}):t._e(),t._v(" "),n("datalist",{attrs:{id:"tickmarks"+t._uid}},t._l(t.tableDataHistory,(function(t,e){return n("option",{domProps:{value:e}})})),0)])])])])};function c(t,e){for(var n=0;n0&&!JSON.parse(sessionStorage.getItem(this.selectedServerDataIndex))&&(this.selectedServerData=this.serverlist[0])}},tableDataHistory:{handler:function(){sessionStorage.setItem("tableDataHistory"+this.boxNumber,JSON.stringify(this.tableDataHistory)),this.tick=this.tableDataHistory.length-1}},tableDataHistoryObject:{handler:function(){sessionStorage.setItem("tableDataHistoryObject"+this.boxNumber,JSON.stringify(this.tableDataHistoryObject)),this.tick=this.tableDataHistoryObject.length-1},deep:!0},executionTime:{handler:function(){sessionStorage.setItem("executionTime"+this.boxNumber,JSON.stringify(this.executionTime))},deep:!0},selectedServerData:{handler:function(){sessionStorage.setItem("selectedServerData"+this.boxNumber,JSON.stringify(this.selectedServerData))},deep:!0},target:{handler:function(){sessionStorage.setItem("target"+this.boxNumber,JSON.stringify(this.target))},deep:!0},tableData:{handler:function(){sessionStorage.setItem(this.tableDataIndex,JSON.stringify(this.tableData))},deep:!0},tick:{handler:function(){sessionStorage.setItem(this.tickIndex,JSON.stringify(this.tick)),this.tableDataHistory.length>0&&(this.tableData=this.tableDataHistory[this.tick])}}},computed:{selectedServerDataIndex:function(){return"selectedServerData"+this.boxNumber},tickIndex:function(){return"tick"+this.boxNumber},tableDataIndex:function(){return"tableData"+this.boxNumber},infoString:function(){var t=this.tableDataHistoryObject[this.tick];return null!=t?t.displayInfo():""},tryHard:function(){this.selectedServerData||(this.selectedServerData=this.initData)}},methods:{isOdd:function(t){return t%2==0?"odd":"even"},setLastExecutionTime:function(){var t=new Date,e=t.getHours(),n=t.getMinutes(),r=t.getSeconds();e<10&&(e="0"+e),n<10&&(n="0"+n),r<10&&(r="0"+r),this.executionTime=e+":"+n+":"+r},traceRoute:function(){var t=this;a.a.get("http://"+this.selectedServerData.getIpPortAsString()+"/v3/client/request/"+this.target).then((function(e){t.tableData=e.data,t.setLastExecutionTime(),t.tableDataHistory.push(t.tableData),t.tick=t.tableDataHistory.length-1;var n=new f;n.initObjectByElements(t.selectedServerData,t.executionTime,t.tableData,t.target),t.tableDataHistoryObject.push(n)})).catch((function(e){t.executionTime="Check request"}))},resetData:function(){this.executionTime="Not execute yet",this.target="luan.xicon.eu",this.tableData=[],this.tableDataHistory=[],this.tableDataHistoryObject=[],this.selectedServerData=this.serverlist[0],this.tick=""}},mounted:function(){var t=this;(sessionStorage.getItem("tableDataHistory"+this.boxNumber)&&(this.tableDataHistory=JSON.parse(sessionStorage.getItem("tableDataHistory"+this.boxNumber))),sessionStorage.getItem("tick"+this.boxNumber)&&(this.tick=parseInt(sessionStorage.getItem("tick"+this.boxNumber))),sessionStorage.getItem("executionTime"+this.boxNumber)&&(this.executionTime=JSON.parse(sessionStorage.getItem("executionTime"+this.boxNumber))),sessionStorage.getItem("tableDataHistoryObject"+this.boxNumber))&&JSON.parse(sessionStorage.getItem("tableDataHistoryObject"+this.boxNumber)).forEach((function(e){var n=new f,r=new u;r.initObjectByJson(e._requestServer),n.initObjectByElements(r,e._requestSendTime,e._responseData,e._targetUrl),t.tableDataHistoryObject.push(n)}));if(sessionStorage.getItem("selectedServerData"+this.boxNumber)){var e=new u,n=JSON.parse(sessionStorage.getItem("selectedServerData"+this.boxNumber));e.initObjectByJson(n),this.selectedServerData=e}sessionStorage.getItem("target"+this.boxNumber)&&(this.target=JSON.parse(sessionStorage.getItem("target"+this.boxNumber))),sessionStorage.getItem("tableData"+this.boxNumber)&&(this.tableData=JSON.parse(sessionStorage.getItem("tableData"+this.boxNumber)))}};n(33);function p(t,e,n,r,o,i,a,s){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}var v=p(d,s,[function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",[this._v("IP")]),this._v(" "),e("td",[this._v("HOSTNAME")]),this._v(" "),e("td",[this._v("PING")]),this._v(" "),e("td",[this._v("AS")])])}],!1,null,"07b39850",null);v.options.__file="src/StatusBox.vue";var h=v.exports,m={components:{StatusBoxVue:h},data:function(){return{pendingParent:!0,listOfServers:[],checkedBoxes:[],traceBoxes:[h,h,h,h,h,h]}},watch:{checkedBoxes:{handler:function(){sessionStorage.setItem("checkedBoxes",JSON.stringify(this.checkedBoxes))},deep:!0},listOfServers:{handler:function(){sessionStorage.setItem("listOfServers",JSON.stringify(this.listOfServers))},deep:!0},traceBoxes:{handler:function(){sessionStorage.setItem("traceBoxes",JSON.stringify(this.traceBoxes))}}},mounted:function(){var t=this;sessionStorage.getItem("listOfServers")?(JSON.parse(sessionStorage.getItem("listOfServers")).forEach((function(e){var n=new u;n.initObjectByJson(e),t.listOfServers.push(n)})),this.pendingParent=!1):this.getServer();sessionStorage.getItem("traceBoxes")&&(this.traceBoxes=[],JSON.parse(sessionStorage.getItem("traceBoxes")).forEach((function(e){t.traceBoxes.push(h)}))),sessionStorage.getItem("checkedBoxes")&&(this.checkedBoxes=JSON.parse(sessionStorage.getItem("checkedBoxes"))),this.setActiveFromSession(this.checkedBoxes)},methods:{resetData:function(){this.$refs.boxref.forEach((function(t){t.resetData()})),this.checkedBoxes=[],this.traceBoxes=[h,h,h,h,h,h]},resetSession:function(){this.resetData(),sessionStorage.clear(),document.querySelectorAll("[id^=tableId_]").forEach((function(t){t.className="table table-striped"}))},setActive:function(t){var e=document.getElementById("tableId_"+t).className;document.getElementById("tableId_"+t).className="table table-striped"==e?"table table-striped active":"table table-striped"},setActiveFromSession:function(t){var e=this;t.forEach((function(t){e.setActive(t)}))},executeAllBoxes:function(){this.$refs.boxref.forEach((function(t){t.traceRoute()}))},executeSpecificBoxes:function(t){var e=this.$refs.boxref;t.forEach((function(t){e.forEach((function(e){t==e.boxNumber&&e.traceRoute()}))}))},addTraceBox:function(){this.traceBoxes.push(h)},refreshServerlist:function(){this.listOfServers=[],this.getServer()},getServer:function(){var t=this;a.a.get("http://xtr-master.xicon.eu/v3/server/list/online").then((function(e){e.data.forEach((function(e){var n=new u;n.initObjectByArray(e),t.listOfServers.push(n)}))})).catch((function(t){})).finally((function(e){t.pendingParent=!1}))}}},y=(n(35),p(m,o,[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"info",attrs:{id:"info",title:"test"}},[t._v("\n\t\t\tⓘ\n\t\t\t"),n("div",{staticClass:"info_box",attrs:{id:"info_box"}},[t._v("\n\t\t\t\tThis service is free for use by accepting the "),n("a",{attrs:{href:"aup.txt"}},[t._v("Acceptable Use Policy")]),t._v("."),n("br"),t._v(" "),n("br"),t._v("\n\t\t\t\tThis is just an interface to to give a more GUI-ish\n\t\t\t\taccess to the self-registered XTR clients. No traceroute requests will be saved on this server. All request to the XTR clients\n\t\t\t\tare handled by your browser."),n("br"),t._v(" "),n("br"),t._v("\n\t\t\t\tWant to add your server? "),n("a",{attrs:{href:"xtr.pl"}},[t._v("Download XTR client")]),t._v(" now. Readme included in source code!"),n("br"),t._v("\n\t\t\t\tWant to run your own master server? "),n("a",{attrs:{href:"xtrd.pl"}},[t._v("Download XTRd")]),t._v(". Readme included in source code!"),n("br"),t._v(" "),n("br"),t._v("\n\t\t\t\tQuestions?/Impress? -> "),n("a",{attrs:{href:"mailto:rest@xicon.de"}},[t._v("Friedrich Schrader")])])])}],!1,null,"98ade07e",null));y.options.__file="src/StatusBoxContainer.vue";var g=y.exports;new r.a({el:"#statusBoxContainer",render:function(t){return t(g)}})}]); \ No newline at end of file diff --git a/src/ModelObjects/XtrData.js b/src/ModelObjects/XtrData.js new file mode 100644 index 0000000..0df1464 --- /dev/null +++ b/src/ModelObjects/XtrData.js @@ -0,0 +1,45 @@ +/** + * + */ +export default class XtrData { + + /** + * + */ + constructor() { + this._requestServer = ''; + this._requestSendTime = ''; + this._responseData = ''; + this._targetUrl = ''; + } + + /** + * + * @param {*} elemet + */ + initObjectByJson (elemet) { + this._requestServer = elemet._requestServer; + this._requestSendTime = elemet._requestSendTime; + this._responseData = elemet._responseData; + this._targetUrl = elemet._targetUrl; + } + + /** + * + * @param {*} requestServer + * @param {*} requestSendTime + * @param {*} responseData + * @param {*} targetUrl + */ + initObjectByElements (requestServer, requestSendTime, responseData, targetUrl) { + this._requestServer = requestServer; + this._requestSendTime = requestSendTime; + this._responseData = responseData; + this._targetUrl = targetUrl; + } + + displayInfo () { + return 'Server: ' + this._requestServer.getIpPortAsString() + ' RequestTime: ' + this._requestSendTime; + } + +} \ No newline at end of file diff --git a/src/ModelObjects/XtrServer.js b/src/ModelObjects/XtrServer.js new file mode 100644 index 0000000..d151bb6 --- /dev/null +++ b/src/ModelObjects/XtrServer.js @@ -0,0 +1,50 @@ +const IP_INDEX = 0; +const PORT_INDEX = 1; +const AS_INDEX = 2; +const SERVER_STATUS_INDEX = 3; + +/** + * + */ +export default class XtrServer { + + constructor() { + this._ip = ''; + this._port = ''; + // autonomous system + this._as = ''; + // is online ? + // http://xtr-master.xicon.eu/v3/server/list/online + this._serverStatus = ''; + } + + initObjectByValues (ip, port, as, serverStatus) { + this._ip = ip; + this._port = port; + this._as = as; + this._serverStatus = serverStatus; + } + + initObjectByArray (element) { + this._ip = element[IP_INDEX]; + this._port = element[PORT_INDEX]; + this._as = element[AS_INDEX]; + this._serverStatus = element[SERVER_STATUS_INDEX]; + } + + initObjectByJson (elemet) { + this._ip = elemet._ip; + this._port = elemet._port; + this._as = elemet._as; + this._serverStatus = elemet._serverStatus; + } + + getIpPortAsString() { + return this._ip + ':' + this._port; + } + + getLabelInfoString() { + return this._ip + ':' + this._port + ' ' + '(AS' + this._as + ')'; + } + +} \ No newline at end of file diff --git a/src/StatusBox.vue b/src/StatusBox.vue index 54fa4e8..2450b5e 100644 --- a/src/StatusBox.vue +++ b/src/StatusBox.vue @@ -2,17 +2,18 @@
- - - {{executionTime}} +
+ + {{infoString}}
@@ -22,7 +23,7 @@ - + @@ -30,6 +31,13 @@
PING AS
{{ tData[0] }} {{ tData[1] }} {{ tData[2] }}
+ + + +
@@ -38,45 +46,134 @@