spacebro-client
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("signals"),require("socket.io-client"),require("socketio-wildcard"),function(){try{return require("standard-settings")}catch(t){}}()):"function"==typeof define&&define.amd?define(["signals","socket.io-client","socketio-wildcard","standard-settings"],e):"object"==typeof exports?exports.spacebroClient=e(require("signals"),require("socket.io-client"),require("socketio-wildcard"),function(){try{return require("standard-settings")}catch(t){}}()):t.spacebroClient=e(t.signals,t.io,t.socketioWildcard,t.standardSettings)}(this,function(t,e,n,r){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=68)}([function(t,e,n){var r=n(33)("wks"),o=n(20),i=n(1).Symbol,c="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(12);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(3),o=n(43),i=n(35),c=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(5),o=n(18);t.exports=n(4)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(87),o=n(28);t.exports=function(t){return r(o(t))}},function(t,e){t.exports={}},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function i(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function c(){v&&h&&(v=!1,h.length?d=h.concat(d):y=-1,d.length&&u())}function u(){if(!v){var t=o(c);v=!0;for(var e=d.length;e;){for(h=d,d=[];++y<e;)h&&h[y].run();y=-1,e=d.length}h=null,v=!1,i(t)}}function s(t,e){this.fun=t,this.array=e}function a(){}var f,l,p=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(t){f=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}}();var h,d=[],v=!1,y=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new s(t,e)),1!==d.length||v||o(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=a,p.addListener=a,p.once=a,p.off=a,p.removeListener=a,p.removeAllListeners=a,p.emit=a,p.prependListener=a,p.prependOnceListener=a,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(26);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(1),o=n(2),i=n(13),c=n(7),u=function(t,e,n){var s,a,f,l=t&u.F,p=t&u.G,h=t&u.S,d=t&u.P,v=t&u.B,y=t&u.W,g=p?o:o[e]||(o[e]={}),m=g.prototype,b=p?r:h?r[e]:(r[e]||{}).prototype;p&&(n=e);for(s in n)(a=!l&&b&&void 0!==b[s])&&s in g||(f=a?b[s]:n[s],g[s]=p&&"function"!=typeof b[s]?n[s]:v&&a?i(f,r):y&&b[s]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):d&&"function"==typeof f?i(Function.call,f):f,d&&((g.virtual||(g.virtual={}))[s]=f,t&u.R&&m&&!m[s]&&c(m,s,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=!0},function(t,e,n){var r=n(48),o=n(30);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(5).f,o=n(6),i=n(0)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";var r=n(104)(!0);n(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){n(109);for(var r=n(1),o=n(7),i=n(9),c=n(0)("toStringTag"),u=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var a=u[s],f=r[a],l=f&&f.prototype;l&&!l[c]&&o(l,c,a),i[a]=i.Array}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){(function(e){function r(){}function o(){p.log.apply(p,arguments)}function i(){p.log.apply(p,arguments)}function c(){p.warn.apply(p,arguments)}function u(t){g[t]=v()}function s(t){var e=g[t];if(!e)throw new Error("No such label: "+t);var n=v()-e;p.log(t+": "+n+"ms")}function a(){var t=new Error;t.name="Trace",t.message=h.format.apply(null,arguments),p.error(t.stack)}function f(t){p.log(h.inspect(t)+"\n")}function l(t){if(!t){var e=y.call(arguments,1);d.ok(!1,h.format.apply(null,e))}}var p,h=n(25),d=n(66),v=n(115),y=Array.prototype.slice,g={};p=void 0!==e&&e.console?e.console:"undefined"!=typeof window&&window.console?window.console:{};for(var m=[[r,"log"],[o,"info"],[i,"warn"],[c,"error"],[u,"time"],[s,"timeEnd"],[a,"trace"],[f,"dir"],[l,"assert"]],b=0;b<m.length;b++){var w=m[b],x=w[0],O=w[1];p[O]||(p[O]=x)}t.exports=p}).call(e,n(23))},function(t,e,n){(function(t,r,o){function i(t,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&e._extend(r,n),O(r.showHidden)&&(r.showHidden=!1),O(r.depth)&&(r.depth=2),O(r.colors)&&(r.colors=!1),O(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),a(r,t,r.depth)}function c(t,e){var n=i.styles[e];return n?"["+i.colors[n][0]+"m"+t+"["+i.colors[n][1]+"m":t}function u(t,e){return t}function s(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function a(t,n,r){if(t.customInspect&&n&&k(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return w(o)||(o=a(t,o,r)),o}var i=f(t,n);if(i)return i;var c=Object.keys(n),u=s(c);if(t.showHidden&&(c=Object.getOwnPropertyNames(n)),S(n)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return l(n);if(0===c.length){if(k(n)){var y=n.name?": "+n.name:"";return t.stylize("[Function"+y+"]","special")}if(_(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(E(n))return t.stylize(Date.prototype.toString.call(n),"date");if(S(n))return l(n)}var g="",m=!1,b=["{","}"];if(v(n)&&(m=!0,b=["[","]"]),k(n)&&(g=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(g=" "+RegExp.prototype.toString.call(n)),E(n)&&(g=" "+Date.prototype.toUTCString.call(n)),S(n)&&(g=" "+l(n)),0===c.length&&(!m||0==n.length))return b[0]+g+b[1];if(r<0)return _(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var x;return x=m?p(t,n,r,u,c):c.map(function(e){return h(t,n,r,u,e,m)}),t.seen.pop(),d(x,g,b)}function f(t,e){if(O(e))return t.stylize("undefined","undefined");if(w(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return b(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,o){for(var i=[],c=0,u=e.length;c<u;++c)N(e,String(c))?i.push(h(t,e,n,r,String(c),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(h(t,e,n,r,o,!0))}),i}function h(t,e,n,r,o,i){var c,u,s;if(s=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]},s.get?u=s.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):s.set&&(u=t.stylize("[Setter]","special")),N(r,o)||(c="["+o+"]"),u||(t.seen.indexOf(s.value)<0?(u=g(n)?a(t,s.value,null):a(t,s.value,n-1)).indexOf("\n")>-1&&(u=i?u.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+u.split("\n").map(function(t){return" "+t}).join("\n")):u=t.stylize("[Circular]","special")),O(c)){if(i&&o.match(/^\d+$/))return u;(c=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.substr(1,c.length-2),c=t.stylize(c,"name")):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=t.stylize(c,"string"))}return c+": "+u}function d(t,e,n){var r=0;return t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function v(t){return Array.isArray(t)}function y(t){return"boolean"==typeof t}function g(t){return null===t}function m(t){return null==t}function b(t){return"number"==typeof t}function w(t){return"string"==typeof t}function x(t){return"symbol"==typeof t}function O(t){return void 0===t}function _(t){return j(t)&&"[object RegExp]"===P(t)}function j(t){return"object"==typeof t&&null!==t}function E(t){return j(t)&&"[object Date]"===P(t)}function S(t){return j(t)&&("[object Error]"===P(t)||t instanceof Error)}function k(t){return"function"==typeof t}function A(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function P(t){return Object.prototype.toString.call(t)}function T(t){return t<10?"0"+t.toString(10):t.toString(10)}function C(){var t=new Date,e=[T(t.getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":");return[t.getDate(),R[t.getMonth()],e].join(" ")}function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var M=/%[sdj%]/g;e.format=function(t){if(!w(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(i(arguments[n]));return e.join(" ")}for(var n=1,r=arguments,o=r.length,c=String(t).replace(M,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),u=r[n];n<o;u=r[++n])g(u)||!j(u)?c+=" "+u:c+=" "+i(u);return c},e.deprecate=function(n,i){function c(){if(!u){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?o.trace(i):o.error(i),u=!0}return n.apply(this,arguments)}if(O(t.process))return function(){return e.deprecate(n,i).apply(this,arguments)};if(!0===r.noDeprecation)return n;var u=!1;return c};var q,I={};e.debuglog=function(t){if(O(q)&&(q=r.env.NODE_DEBUG||""),t=t.toUpperCase(),!I[t])if(new RegExp("\\b"+t+"\\b","i").test(q)){var n=r.pid;I[t]=function(){var r=e.format.apply(e,arguments);o.error("%s %d: %s",t,n,r)}}else I[t]=function(){};return I[t]},e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=v,e.isBoolean=y,e.isNull=g,e.isNullOrUndefined=m,e.isNumber=b,e.isString=w,e.isSymbol=x,e.isUndefined=O,e.isRegExp=_,e.isObject=j,e.isDate=E,e.isError=S,e.isFunction=k,e.isPrimitive=A,e.isBuffer=n(125);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.log=function(){o.log("%s - %s",C(),e.format.apply(e,arguments))},e.inherits=n(124),e._extend=function(t,e){if(!e||!j(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}).call(e,n(23),n(10),n(24))},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(11),o=n(0)("toStringTag"),i="Arguments"==r(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(12),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(33)("keys"),o=n(20);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(12);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(1),o=n(2),i=n(16),c=n(37),u=n(5).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:c.f(t)})}},function(t,e,n){e.f=n(0)},function(t,e,n){t.exports={default:n(75),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(70));e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,r.default)(t,o.key,o)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";t.exports=function(){return/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g}},function(t,e,n){t.exports=n(1).document&&document.documentElement},function(t,e,n){t.exports=!n(4)&&!n(15)(function(){return 7!=Object.defineProperty(n(29)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";var r=n(16),o=n(14),i=n(49),c=n(7),u=n(6),s=n(9),a=n(91),f=n(19),l=n(100),p=n(0)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,v,y,g,m){a(n,e,v);var b,w,x,O=function(t){if(!h&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",j="values"==y,E=!1,S=t.prototype,k=S[p]||S["@@iterator"]||y&&S[y],A=k||O(y),P=y?j?O("entries"):A:void 0,T="Array"==e?S.entries||k:k;if(T&&(x=l(T.call(new t)))!==Object.prototype&&(f(x,_,!0),r||u(x,p)||c(x,p,d)),j&&k&&"values"!==k.name&&(E=!0,A=function(){return k.call(this)}),r&&!m||!h&&!E&&S[p]||c(S,p,A),s[e]=A,s[_]=d,y)if(b={values:j?A:O("values"),keys:g?A:O("keys"),entries:P},m)for(w in b)w in S||i(S,w,b[w]);else o(o.P+o.F*(h||E),e,b);return b}},function(t,e,n){var r=n(3),o=n(97),i=n(30),c=n(32)("IE_PROTO"),u=function(){},s=function(){var t,e=n(29)("iframe"),r=i.length;for(e.style.display="none",n(42).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[c]=t):n=s(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(48),o=n(30).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(6),o=n(8),i=n(83)(!1),c=n(32)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,a=[];for(n in u)n!=c&&r(u,n)&&a.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~i(a,n)||a.push(n));return a}},function(t,e,n){t.exports=n(7)},function(t,e,n){var r,o,i,c=n(13),u=n(86),s=n(42),a=n(29),f=n(1),l=f.process,p=f.setImmediate,h=f.clearImmediate,d=f.MessageChannel,v=0,y={},g=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},m=function(t){g.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++v]=function(){u("function"==typeof t?t:Function(t),e)},r(v),v},h=function(t){delete y[t]},"process"==n(11)(l)?r=function(t){l.nextTick(c(g,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=m,r=c(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",m,!1)):r="onreadystatechange"in a("script")?function(t){s.appendChild(a("script")).onreadystatechange=function(){s.removeChild(this),g.call(t)}}:function(t){setTimeout(c(g,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,n){var r=n(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(27),o=n(0)("iterator"),i=n(9);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e){},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t){for(var e,n,o=Array.prototype.slice.call(arguments,1);o.length;){e=o.shift();for(n in e)e.hasOwnProperty(n)&&("object"==typeof t[n]&&t[n]&&"[object Array]"!==Object.prototype.toString.call(t[n])&&"object"==typeof e[n]&&null!==e[n]?t[n]=r({},t[n],e[n]):t[n]=e[n])}return t}t.exports=r},function(t,e,n){"use strict";(function(r){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=o(n(39)),c=o(n(40)),u=o(n(67)),s=o(n(73)),a="spacebro-client -",f={log:a,info:u.default?s.default.blue(a):a,warn:u.default?s.default.yellow(a):a,error:u.default?s.default.red(a):a},l=function(){function t(e){(0,i.default)(this,t),this.verbose=e}return(0,c.default)(t,[{key:"log",value:function(){for(var t,e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];this.verbose&&(t=r).log.apply(t,[f.log].concat(n))}},{key:"info",value:function(){for(var t,e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];this.verbose&&(t=r).log.apply(t,[f.info].concat(n))}},{key:"warn",value:function(){for(var t,e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];this.verbose&&(t=r).log.apply(t,[f.warn].concat(n))}},{key:"error",value:function(){for(var t,e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];this.verbose&&(t=r).log.apply(t,[f.error].concat(n))}}]),t}();e.default=l,t.exports=e.default}).call(e,n(24))},function(t,e,n){t.exports={default:n(78),__esModule:!0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=r(n(69)),i=r(n(38));e.default=function(){function t(t,e){var n=[],r=!0,o=!1,c=void 0;try{for(var u,s=(0,i.default)(t);!(r=(u=s.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,c=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw c}}return n}return function(e,n){if(Array.isArray(e))return e;if((0,o.default)(Object(e)))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=r(n(72)),i=r(n(71)),c="function"==typeof i.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":typeof t};e.default="function"==typeof i.default&&"symbol"===c(o.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,e,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(t,e,n){if(t&&a.isObject(t)&&t instanceof r)return t;var o=new r;return o.parse(t,e,n),o}function i(t){return a.isString(t)&&(t=o(t)),t instanceof r?t.format():r.prototype.format.call(t)}function c(t,e){return o(t,!1,!0).resolve(e)}function u(t,e){return t?o(t,!1,!0).resolveObject(e):e}var s=n(118),a=n(123);e.parse=o,e.resolve=c,e.resolveObject=u,e.format=i,e.Url=r;var f=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["<",">",'"',"`"," ","\r","\n","\t"],d=["{","}","|","\\","^","`"].concat(h),v=["'"].concat(d),y=["%","/","?",";","#"].concat(v),g=["/","?","#"],m=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},x={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=n(121);r.prototype.parse=function(t,e,n){if(!a.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t.indexOf("?"),o=-1!==r&&r<t.indexOf("#")?"?":"#",i=t.split(o),c=/\\/g;i[0]=i[0].replace(c,"/");var u=t=i.join(o);if(u=u.trim(),!n&&1===t.split("#").length){var l=p.exec(u);if(l)return this.path=u,this.href=u,this.pathname=l[1],l[2]?(this.search=l[2],this.query=e?_.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var h=f.exec(u);if(h){var d=(h=h[0]).toLowerCase();this.protocol=d,u=u.substr(h.length)}if(n||h||u.match(/^\/\/[^@\/]+@[^@\/]+/)){var j="//"===u.substr(0,2);!j||h&&x[h]||(u=u.substr(2),this.slashes=!0)}if(!x[h]&&(j||h&&!O[h])){for(var E=-1,S=0;S<g.length;S++)-1!==(P=u.indexOf(g[S]))&&(-1===E||P<E)&&(E=P);var k,A;-1!==(A=-1===E?u.lastIndexOf("@"):u.lastIndexOf("@",E))&&(k=u.slice(0,A),u=u.slice(A+1),this.auth=decodeURIComponent(k)),E=-1;for(S=0;S<y.length;S++){var P=u.indexOf(y[S]);-1!==P&&(-1===E||P<E)&&(E=P)}-1===E&&(E=u.length),this.host=u.slice(0,E),u=u.slice(E),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var C=this.hostname.split(/\./),S=0,N=C.length;S<N;S++){var M=C[S];if(M&&!M.match(m)){for(var q="",I=0,R=M.length;I<R;I++)M.charCodeAt(I)>127?q+="x":q+=M[I];if(!q.match(m)){var F=C.slice(0,S),D=C.slice(S+1),U=M.match(b);U&&(F.push(U[1]),D.unshift(U[2])),D.length&&(u="/"+D.join(".")+u),this.hostname=F.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=s.toASCII(this.hostname));var z=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+z,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==u[0]&&(u="/"+u))}if(!w[d])for(var S=0,N=v.length;S<N;S++){var L=v[S];if(-1!==u.indexOf(L)){var J=encodeURIComponent(L);J===L&&(J=escape(L)),u=u.split(L).join(J)}}var $=u.indexOf("#");-1!==$&&(this.hash=u.substr($),u=u.slice(0,$));var G=u.indexOf("?");if(-1!==G?(this.search=u.substr(G),this.query=u.substr(G+1),e&&(this.query=_.parse(this.query)),u=u.slice(0,G)):e&&(this.search="",this.query={}),u&&(this.pathname=u),O[d]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var z=this.pathname||"",W=this.search||"";this.path=z+W}return this.href=this.format(),this},r.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(i=_.stringify(this.query));var c=this.search||i&&"?"+i||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||O[e])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),c&&"?"!==c.charAt(0)&&(c="?"+c),n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),c=c.replace("#","%23"),e+o+n+c+r},r.prototype.resolve=function(t){return this.resolveObject(o(t,!1,!0)).format()},r.prototype.resolveObject=function(t){if(a.isString(t)){var e=new r;e.parse(t,!1,!0),t=e}for(var n=new r,o=Object.keys(this),i=0;i<o.length;i++){var c=o[i];n[c]=this[c]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),s=0;s<u.length;s++){var f=u[s];"protocol"!==f&&(n[f]=t[f])}return O[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!O[t.protocol]){for(var l=Object.keys(t),p=0;p<l.length;p++){var h=l[p];n[h]=t[h]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||x[t.protocol])n.pathname=t.pathname;else{for(_=(t.pathname||"").split("/");_.length&&!(t.host=_.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==_[0]&&_.unshift(""),_.length<2&&_.unshift(""),n.pathname=_.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var d=n.pathname||"",v=n.search||"";n.path=d+v}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),g=t.host||t.pathname&&"/"===t.pathname.charAt(0),m=g||y||n.host&&t.pathname,b=m,w=n.pathname&&n.pathname.split("/")||[],_=t.pathname&&t.pathname.split("/")||[],j=n.protocol&&!O[n.protocol];if(j&&(n.hostname="",n.port=null,n.host&&(""===w[0]?w[0]=n.host:w.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===_[0]?_[0]=t.host:_.unshift(t.host)),t.host=null),m=m&&(""===_[0]||""===w[0])),g)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,w=_;else if(_.length)w||(w=[]),w.pop(),w=w.concat(_),n.search=t.search,n.query=t.query;else if(!a.isNullOrUndefined(t.search))return j&&(n.hostname=n.host=w.shift(),(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift())),n.search=t.search,n.query=t.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=w.slice(-1)[0],S=(n.host||t.host||w.length>1)&&("."===E||".."===E)||""===E,k=0,A=w.length;A>=0;A--)"."===(E=w[A])?w.splice(A,1):".."===E?(w.splice(A,1),k++):k&&(w.splice(A,1),k--);if(!m&&!b)for(;k--;k)w.unshift("..");!m||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),S&&"/"!==w.join("/").substr(-1)&&w.push("");var P=""===w[0]||w[0]&&"/"===w[0].charAt(0);if(j){n.hostname=n.host=P?"":w.length?w.shift():"";var T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");T&&(n.auth=T.shift(),n.host=n.hostname=T.shift())}return(m=m||n.host&&w.length)&&!P&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var t=this.host,e=l.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e){if(void 0===r){var n=new Error('Cannot find module "undefined"');throw n.code="MODULE_NOT_FOUND",n}t.exports=r},function(t,e,n){"use strict";(function(t){function e(){var t={modifiers:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};return t.colors.grey=t.colors.gray,Object.keys(t).forEach(function(e){var n=t[e];Object.keys(n).forEach(function(e){var r=n[e];t[e]=n[e]={open:"["+r[0]+"m",close:"["+r[1]+"m"}}),Object.defineProperty(t,e,{value:n,enumerable:!1})}),t}Object.defineProperty(t,"exports",{enumerable:!0,get:e})}).call(e,n(54)(t))},function(t,e,n){"use strict";(function(e){function r(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0}function o(t){return e.Buffer&&"function"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}function i(t){return Object.prototype.toString.call(t)}function c(t){return!o(t)&&("function"==typeof e.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}function u(t){if(w.isFunction(t)){if(_)return t.name;var e=t.toString().match(E);return e&&e[1]}}function s(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function a(t){if(_||!w.isFunction(t))return w.inspect(t);var e=u(t);return"[Function"+(e?": "+e:"")+"]"}function f(t){return s(a(t.actual),128)+" "+t.operator+" "+s(a(t.expected),128)}function l(t,e,n,r,o){throw new j.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:o})}function p(t,e){t||l(t,!0,e,"==",j.ok)}function h(t,e,n,u){if(t===e)return!0;if(o(t)&&o(e))return 0===r(t,e);if(w.isDate(t)&&w.isDate(e))return t.getTime()===e.getTime();if(w.isRegExp(t)&&w.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(c(t)&&c(e)&&i(t)===i(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===r(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(e))return!1;var s=(u=u||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&&s===u.expected.indexOf(e)||(u.actual.push(t),u.expected.push(e),v(t,e,n,u))}return n?t===e:t==e}function d(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function v(t,e,n,r){if(null===t||void 0===t||null===e||void 0===e)return!1;if(w.isPrimitive(t)||w.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var o=d(t),i=d(e);if(o&&!i||!o&&i)return!1;if(o)return t=O.call(t),e=O.call(e),h(t,e,n);var c,u,s=S(t),a=S(e);if(s.length!==a.length)return!1;for(s.sort(),a.sort(),u=s.length-1;u>=0;u--)if(s[u]!==a[u])return!1;for(u=s.length-1;u>=0;u--)if(c=s[u],!h(t[c],e[c],n,r))return!1;return!0}function y(t,e,n){h(t,e,!0)&&l(t,e,n,"notDeepStrictEqual",y)}function g(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function m(t){var e;try{t()}catch(t){e=t}return e}function b(t,e,n,r){var o;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),o=m(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!o&&l(o,n,"Missing expected exception"+r);var i="string"==typeof r,c=!t&&w.isError(o),u=!t&&o&&!n;if((c&&i&&g(o,n)||u)&&l(o,n,"Got unwanted exception"+r),t&&o&&n&&!g(o,n)||!t&&o)throw o}var w=n(25),x=Object.prototype.hasOwnProperty,O=Array.prototype.slice,_=function(){return"foo"===function(){}.name}(),j=t.exports=p,E=/\s*function\s+([^\(\s]*)\s*/;j.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=f(this),this.generatedMessage=!0);var e=t.stackStartFunction||l;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,o=u(e),i=r.indexOf("\n"+o);if(i>=0){var c=r.indexOf("\n",i+1);r=r.substring(c+1)}this.stack=r}}},w.inherits(j.AssertionError,Error),j.fail=l,j.ok=p,j.equal=function(t,e,n){t!=e&&l(t,e,n,"==",j.equal)},j.notEqual=function(t,e,n){t==e&&l(t,e,n,"!=",j.notEqual)},j.deepEqual=function(t,e,n){h(t,e,!1)||l(t,e,n,"deepEqual",j.deepEqual)},j.deepStrictEqual=function(t,e,n){h(t,e,!0)||l(t,e,n,"deepStrictEqual",j.deepStrictEqual)},j.notDeepEqual=function(t,e,n){h(t,e,!1)&&l(t,e,n,"notDeepEqual",j.notDeepEqual)},j.notDeepStrictEqual=y,j.strictEqual=function(t,e,n){t!==e&&l(t,e,n,"===",j.strictEqual)},j.notStrictEqual=function(t,e,n){t===e&&l(t,e,n,"!==",j.notStrictEqual)},j.throws=function(t,e,n){b(!0,t,e,n)},j.doesNotThrow=function(t,e,n){b(!1,t,e,n)},j.ifError=function(t){if(t)throw t};var S=Object.keys||function(t){var e=[];for(var n in t)x.call(t,n)&&e.push(n);return e}}).call(e,n(23))},function(t,e,n){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0!==n&&void 0!==n.versions.node,t.exports=e.default}).call(e,n(10))},function(t,e,n){"use strict";(function(r,o){function i(t){return t&&t.__esModule?t:{default:t}}function c(t,e){return e.filter(function(e){return-1!==[t,"*"].indexOf(e.eventName)}).sort(function(t){return-t.priority||0}).map(function(t){return t.handler})}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=function(t){return C.default.inspect(t,{showHidden:!1,depth:null})};if(null==t){var u=null;try{o.env.NO_STANDARD_SETTINGS||(u=n(64).getSettings())}catch(t){}if(!u)return void(i||r.warn("Cannot load standard-settings; did you add it to node_modules?"));var s=u.service&&u.service.spacebro;if(!s)return r.warn("Settings file does not include service.spacebro"),void(e&&r.warn("Settings object:",c(s)));t=s}e&&r.log("Former settings:",c(M)),(0,T.default)(M,t),e&&r.log("New settings:",c(M))}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new q(t,!1);return e.connect(e.config.host,e.config.port)}function a(t,e,n){return I&&r.warn("A SpacebroClient socket is already open"),I=new q((0,T.default)({},n,{host:t,port:e})),R&&(I.events=R.events,R=null),I}function f(){return I||r.warn("No SpacebroClient socket is open"),!!I}function l(){f()&&I.disconnect(),I=null}function p(t,e,n){f()&&I.addPacker(t,e,n)}function h(t,e,n){f()&&I.addUnpacker(t,e,n)}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f()&&I.emit(t,e)}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};f()&&I.sendTo(t,e,n)}function y(){return I||R||r.warn("No SpacebroClient socket is open"),I||R}function g(t,e,n,r){var o=y();o&&o.on(t,e,n,r)}function m(t,e,n,r){var o=y();o&&o.once(t,e,n,r)}function b(t){var e=y();e&&e.off(t)}Object.defineProperty(e,"__esModule",{value:!0});var w=i(n(59)),x=i(n(58)),O=i(n(57)),_=i(n(38)),j=i(n(39)),E=i(n(40)),S=i(n(63)),k=i(n(62)),A=i(n(61)),P=i(n(56)),T=i(n(55)),C=i(n(25)),N=(0,S.default)(k.default.Manager),M={channelName:null,client:{name:null},packers:[],unpackers:[],sendBack:!0,verbose:!0,multiService:!1},q=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,j.default)(this,t),this.config=(0,T.default)({},M,e),this.config.clientName&&(r.warn("DEPRECATED: clientName is deprecated, please use `client: {name: '"+this.config.clientName+"'}` instead"),this.config.client.name=this.config.clientName),this.logger=new P.default(this.config.verbose),this.packers=[];var o=!0,i=!1,c=void 0;try{for(var u,s=(0,_.default)(this.config.packers);!(o=(u=s.next()).done);o=!0){var a=u.value;this.addPacker(a.handler,a.priority,a.eventName)}}catch(t){i=!0,c=t}finally{try{!o&&s.return&&s.return()}finally{if(i)throw c}}this.unpackers=[];var f=!0,l=!1,p=void 0;try{for(var h,d=(0,_.default)(this.config.unpackers);!(f=(h=d.next()).done);f=!0){var v=h.value;this.addUnpacker(v.handler,v.priority,v.eventName)}}catch(t){l=!0,p=t}finally{try{!f&&d.return&&d.return()}finally{if(l)throw p}}if(this.events={},this.connected=!1,this.socket=null,n){if(null==this.config.host||null==this.config.port)return void r.warn("Cannot connect without host address and port");this.connect(this.config.host,this.config.port).catch(function(){})}}return(0,E.default)(t,[{key:"connect",value:function(t,e){var n=this;{if(!this.connected){if("string"!=typeof t)throw new Error("host must be a valid string");if(!(e>0))throw new Error("port must be a positive integer");return this.logger.log("Trying to connect to "+t+":"+e+" with config:\n",this.config),this.config.host=t,this.config.port=e,this._initSocketIO(t,e),new O.default(function(t,e){n.on("connect",function(){return t(n)}),n.on("connect_error",function(t){return e(t)}),n.on("connect_timeout",function(){return e(new Error("Connection timeout"))}),n.on("error",function(t){return e(t)})})}r.warn("This client is already connected to "+this.config.host+":"+this.config.port)}}},{key:"_initSocketIO",value:function(t,e){var r=this,o=""+(n(60).parse(t).protocol?"":"ws://")+t+":"+e,i=(0,k.default)(o);N(i),i.on("connect",function(){r.connected=!0,r.logger.log("socket connected"),r.socket=i,i.emit("register",{channelName:r.config.channelName,client:r.config.client,clientName:r.config.client.name}),r.config.connection&&r.emit("addConnections",r.config.connection),r.events.connect&&r.events.connect.dispatch(i)}).on("connect_error",function(t){r.logger.warn("error",t),r.connected=!1,r.events.connect_error&&r.events.connect_error.dispatch(t)}).on("connect_timeout",function(){r.logger.warn("connection timeout"),r.events.connect_timeout&&r.events.connect_timeout.dispatch()}).on("error",function(t){r.logger.warn("error",t),r.connected=!1,r.events.error&&r.events.error.dispatch(t)}).on("disconnect",function(t){r.logger.log("socket down"),r.events.disconnect&&r.events.disconnect.dispatch(t),r.connected=!1}).on("reconnect",function(t){r.logger.log("socket reconnected"),r.events.reconnect&&r.events.reconnect.dispatch(t),r.connected=!0}).on("reconnect_attempt",function(t){r.logger.log("socket reconnect attempt: "+t),r.events.reconnect_attempt&&r.events.reconnect_attempt.dispatch(t)}).on("reconnecting",function(t){r.logger.log("socket try to reconnect, attempt: "+t),r.events.reconnecting&&r.events.reconnecting.dispatch(t)}).on("reconnect_error",function(t){r.logger.warn("socket reconnection error"),r.logger.warn(t),r.events.reconnect_error&&r.events.reconnect_error.dispatch(t)}).on("reconnect_failed",function(t){r.logger.warn("socket cannot reconnect"),r.logger.warn(t),r.events.reconnect_failed&&r.events.reconnect_failed.dispatch(t)}).on("*",function(t){var e=t.data,n=(0,x.default)(e,2),o=n[0],i=n[1];if((r.config.sendBack||i._from!==r.config.client.name)&&(r.events[o]||r.events["*"])){r.logger.log("socket received "+o+" with data:",i);var u=!0,s=!1,a=void 0;try{for(var f,l=(0,_.default)(c(o,r.unpackers));!(u=(f=l.next()).done);u=!0)i=(0,f.value)({eventName:o,data:i})||i}catch(t){s=!0,a=t}finally{try{!u&&l.return&&l.return()}finally{if(s)throw a}}r.events[o]&&r.events[o].dispatch(i),r.events["*"]&&r.events["*"].dispatch(i)}})}},{key:"disconnect",value:function(){this.socket&&this.socket.disconnect(),this.connected=!1,this.unpackers=[],this.packers=[]}},{key:"addPacker",value:function(t,e,n){this.packers.push({eventName:n,handler:t,priority:e})}},{key:"addUnpacker",value:function(t,e,n){this.unpackers.push({eventName:n,handler:t,priority:e})}},{key:"emit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"===(void 0===e?"undefined":(0,w.default)(e))&&null!==e||((e={data:e}).altered=!0),this.sendTo(t,null,e)}},{key:"sendTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.connected){"object"===(void 0===n?"undefined":(0,w.default)(n))&&"function"==typeof n.toJSON&&(n=n.toJSON()),n._to=e,n._from=this.config.client.name;var o=!0,i=!1,u=void 0;try{for(var s,a=(0,_.default)(c(t,this.packers));!(o=(s=a.next()).done);o=!0)n=(0,s.value)({eventName:t,data:n})||n}catch(t){i=!0,u=t}finally{try{!o&&a.return&&a.return()}finally{if(i)throw u}}this.socket.emit(t,n)}else r.error('Error: "'+this.config.client.name+'" is disconnected and cannot emit "'+t+'"')}},{key:"on",value:function(t,e,n,r){this.events[t]||(this.events[t]=new A.default),this.events[t].add(e,n,r)}},{key:"once",value:function(t,e,n,r){this.events[t]||(this.events[t]=new A.default),this.events[t].addOnce(e,n,r)}},{key:"off",value:function(t){this.events[t].dispose(),delete this.events[t]}}]),t}(),I=null,R={events:[],on:q.prototype.on,once:q.prototype.once,off:q.prototype.off};u(null,!1,!0),e.default={SpacebroClient:q,setDefaultSettings:u,create:s,connect:a,disconnect:l,addPacker:p,addUnpacker:h,emit:d,sendTo:v,on:g,once:m,off:b},t.exports=e.default}).call(e,n(24),n(10))},function(t,e,n){t.exports={default:n(76),__esModule:!0}},function(t,e,n){t.exports={default:n(77),__esModule:!0}},function(t,e,n){t.exports={default:n(79),__esModule:!0}},function(t,e,n){t.exports={default:n(80),__esModule:!0}},function(t,e,n){"use strict";(function(e){function r(t){this.enabled=t&&void 0!==t.enabled?t.enabled:f}function o(t){var e=function(){return i.apply(e,arguments)};return e._styles=t,e.enabled=this.enabled,e.__proto__=d,e}function i(){var t=arguments,e=t.length,n=0!==e&&String(arguments[0]);if(e>1)for(var r=1;r<e;r++)n+=" "+t[r];if(!this.enabled||!n)return n;var o=this._styles,i=o.length,c=u.dim.open;for(!p||-1===o.indexOf("gray")&&-1===o.indexOf("grey")||(u.dim.open="");i--;){var s=u[o[i]];n=s.open+n.replace(s.closeRe,s.open)+s.close}return u.dim.open=c,n}var c=n(116),u=n(65),s=n(122),a=n(117),f=n(74),l=Object.defineProperties,p="win32"===e.platform&&!/^xterm/i.test(e.env.TERM);p&&(u.blue.open="[94m");var h=function(){var t={};return Object.keys(u).forEach(function(e){u[e].closeRe=new RegExp(c(u[e].close),"g"),t[e]={get:function(){return o.call(this,this._styles.concat(e))}}}),t}(),d=l(function(){},h);l(r.prototype,function(){var t={};return Object.keys(h).forEach(function(e){t[e]={get:function(){return o.call(this,[e])}}}),t}()),t.exports=new r,t.exports.styles=u,t.exports.hasColor=a,t.exports.stripColor=s,t.exports.supportsColor=f}).call(e,n(10))},function(t,e,n){"use strict";(function(e){var n=e.argv,r=n.indexOf("--"),o=function(t){t="--"+t;var e=n.indexOf(t);return-1!==e&&(-1===r||e<r)};t.exports=function(){return"FORCE_COLOR"in e.env||!(o("no-color")||o("no-colors")||o("color=false"))&&(!!(o("color")||o("colors")||o("color=true")||o("color=always"))||!(e.stdout&&!e.stdout.isTTY)&&("win32"===e.platform||("COLORTERM"in e.env||"dumb"!==e.env.TERM&&!!/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(e.env.TERM))))}()}).call(e,n(10))},function(t,e,n){n(22),n(21),t.exports=n(107)},function(t,e,n){n(22),n(21),t.exports=n(108)},function(t,e,n){n(110);var r=n(2).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(53),n(21),n(22),n(111),t.exports=n(2).Promise},function(t,e,n){n(112),n(53),n(113),n(114),t.exports=n(2).Symbol},function(t,e,n){n(21),n(22),t.exports=n(37).f("iterator")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(8),o=n(51),i=n(105);t.exports=function(t){return function(e,n,c){var u,s=r(e),a=o(s.length),f=i(c,a);if(t&&n!=n){for(;a>f;)if((u=s[f++])!=u)return!0}else for(;a>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(17),o=n(47),i=n(31);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var c,u=n(t),s=i.f,a=0;u.length>a;)s.call(t,c=u[a++])&&e.push(c);return e}},function(t,e,n){var r=n(13),o=n(90),i=n(88),c=n(3),u=n(51),s=n(52),a={},f={};(e=t.exports=function(t,e,n,l,p){var h,d,v,y,g=p?function(){return t}:s(t),m=r(n,l,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=u(t.length);h>b;b++)if((y=e?m(c(d=t[b])[0],d[1]):m(t[b]))===a||y===f)return y}else for(v=g.call(t);!(d=v.next()).done;)if((y=o(v,m,d.value,e))===a||y===f)return y}).BREAK=a,e.RETURN=f},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(11);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(9),o=n(0)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(11);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(45),o=n(18),i=n(19),c={};n(7)(c,n(0)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(c,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(0)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],c=i[r]();c.next=function(){return{done:n=!0}},i[r]=function(){return c},t(i)}catch(t){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(17),o=n(8);t.exports=function(t,e){for(var n,i=o(t),c=r(i),u=c.length,s=0;u>s;)if(i[n=c[s++]]===e)return n}},function(t,e,n){var r=n(20)("meta"),o=n(12),i=n(6),c=n(5).f,u=0,s=Object.isExtensible||function(){return!0},a=!n(15)(function(){return s(Object.preventExtensions({}))}),f=function(t){c(t,r,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return a&&d.NEED&&s(t)&&!i(t,r)&&f(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,n){var r=n(1),o=n(50).set,i=r.MutationObserver||r.WebKitMutationObserver,c=r.process,u=r.Promise,s="process"==n(11)(c);t.exports=function(){var t,e,n,a=function(){var r,o;for(s&&(r=c.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){c.nextTick(a)};else if(i){var f=!0,l=document.createTextNode("");new i(a).observe(l,{characterData:!0}),n=function(){l.data=f=!f}}else if(u&&u.resolve){var p=u.resolve();n=function(){p.then(a)}}else n=function(){o.call(r,a)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){var r=n(5),o=n(3),i=n(17);t.exports=n(4)?Object.defineProperties:function(t,e){o(t);for(var n,c=i(e),u=c.length,s=0;u>s;)r.f(t,n=c[s++],e[n]);return t}},function(t,e,n){var r=n(31),o=n(18),i=n(8),c=n(35),u=n(6),s=n(43),a=Object.getOwnPropertyDescriptor;e.f=n(4)?a:function(t,e){if(t=i(t),e=c(e,!0),s)try{return a(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(8),o=n(46).f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return c.slice()}};t.exports.f=function(t){return c&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,e,n){var r=n(6),o=n(106),i=n(32)("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,n){var r=n(7);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){"use strict";var r=n(1),o=n(2),i=n(5),c=n(4),u=n(0)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];c&&e&&!e[u]&&i.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(3),o=n(26),i=n(0)("species");t.exports=function(t,e){var n,c=r(t).constructor;return void 0===c||void 0==(n=r(c)[i])?e:o(n)}},function(t,e,n){var r=n(34),o=n(28);t.exports=function(t){return function(e,n){var i,c,u=String(o(e)),s=r(n),a=u.length;return s<0||s>=a?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===a||(c=u.charCodeAt(s+1))<56320||c>57343?t?u.charAt(s):i:t?u.slice(s,s+2):c-56320+(i-55296<<10)+65536)}}},function(t,e,n){var r=n(34),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(28);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(3),o=n(52);t.exports=n(2).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){var r=n(27),o=n(0)("iterator"),i=n(9);t.exports=n(2).isIterable=function(t){var e=Object(t);return void 0!==e[o]||"@@iterator"in e||i.hasOwnProperty(r(e))}},function(t,e,n){"use strict";var r=n(81),o=n(93),i=n(9),c=n(8);t.exports=n(44)(Array,"Array",function(t,e){this._t=c(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(14);r(r.S+r.F*!n(4),"Object",{defineProperty:n(5).f})},function(t,e,n){"use strict";var r,o,i,c=n(16),u=n(1),s=n(13),a=n(27),f=n(14),l=n(12),p=n(26),h=n(82),d=n(85),v=n(103),y=n(50).set,g=n(96)(),m=u.TypeError,b=u.process,w=u.Promise,x="process"==a(b=u.process),O=function(){},_=!!function(){try{var t=w.resolve(1),e=(t.constructor={})[n(0)("species")]=function(t){t(O,O)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e}catch(t){}}(),j=function(t,e){return t===e||t===w&&e===i},E=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},S=function(t){return j(w,t)?new k(t):new o(t)},k=o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw m("Bad Promise constructor");e=t,n=r}),this.resolve=p(e),this.reject=p(n)},A=function(t){try{t()}catch(t){return{error:t}}},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0;n.length>i;)!function(e){var n,i,c=o?e.ok:e.fail,u=e.resolve,s=e.reject,a=e.domain;try{c?(o||(2==t._h&&N(t),t._h=1),!0===c?n=r:(a&&a.enter(),n=c(r),a&&a.exit()),n===e.promise?s(m("Promise-chain cycle")):(i=E(n))?i.call(n,u,s):u(n)):s(r)}catch(t){s(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&T(t)})}},T=function(t){y.call(u,function(){var e,n,r,o=t._v;if(C(t)&&(e=A(function(){x?b.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=x||C(t)?2:1),t._a=void 0,e)throw e.error})},C=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if((e=n[r++]).fail||!C(e.promise))return!1;return!0},N=function(t){y.call(u,function(){var e;x?b.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},M=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw m("Promise can't be resolved itself");(e=E(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,s(q,r,1),s(M,r,1))}catch(t){M.call(r,t)}}):(n._v=t,n._s=1,P(n,!1))}catch(t){M.call({_w:n,_d:!1},t)}}};_||(w=function(t){h(this,w,"Promise","_h"),p(t),r.call(this);try{t(s(q,this,1),s(M,this,1))}catch(t){M.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(101)(w.prototype,{then:function(t,e){var n=S(v(this,w));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=x?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),k=function(){var t=new r;this.promise=t,this.resolve=s(q,t,1),this.reject=s(M,t,1)}),f(f.G+f.W+f.F*!_,{Promise:w}),n(19)(w,"Promise"),n(102)("Promise"),i=n(2).Promise,f(f.S+f.F*!_,"Promise",{reject:function(t){var e=S(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(c||!_),"Promise",{resolve:function(t){if(t instanceof w&&j(t.constructor,this))return t;var e=S(this);return(0,e.resolve)(t),e.promise}}),f(f.S+f.F*!(_&&n(92)(function(t){w.all(t).catch(O)})),"Promise",{all:function(t){var e=this,n=S(e),r=n.resolve,o=n.reject,i=A(function(){var n=[],i=0,c=1;d(t,!1,function(t){var u=i++,s=!1;n.push(void 0),c++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--c||r(n))},o)}),--c||r(n)});return i&&o(i.error),n.promise},race:function(t){var e=this,n=S(e),r=n.reject,o=A(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(t,e,n){"use strict";var r=n(1),o=n(6),i=n(4),c=n(14),u=n(49),s=n(95).KEY,a=n(15),f=n(33),l=n(19),p=n(20),h=n(0),d=n(37),v=n(36),y=n(94),g=n(84),m=n(89),b=n(3),w=n(8),x=n(35),O=n(18),_=n(45),j=n(99),E=n(98),S=n(5),k=n(17),A=E.f,P=S.f,T=j.f,C=r.Symbol,N=r.JSON,M=N&&N.stringify,q=h("_hidden"),I=h("toPrimitive"),R={}.propertyIsEnumerable,F=f("symbol-registry"),D=f("symbols"),U=f("op-symbols"),z=Object.prototype,B="function"==typeof C,L=r.QObject,J=!L||!L.prototype||!L.prototype.findChild,$=i&&a(function(){return 7!=_(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=A(z,e);r&&delete z[e],P(t,e,n),r&&t!==z&&P(z,e,r)}:P,G=function(t){var e=D[t]=_(C.prototype);return e._k=t,e},W=B&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},H=function(t,e,n){return t===z&&H(U,e,n),b(t),e=x(e,!0),b(n),o(D,e)?(n.enumerable?(o(t,q)&&t[q][e]&&(t[q][e]=!1),n=_(n,{enumerable:O(0,!1)})):(o(t,q)||P(t,q,O(1,{})),t[q][e]=!0),$(t,e,n)):P(t,e,n)},K=function(t,e){b(t);for(var n,r=g(e=w(e)),o=0,i=r.length;i>o;)H(t,n=r[o++],e[n]);return t},Z=function(t,e){return void 0===e?_(t):K(_(t),e)},Y=function(t){var e=R.call(this,t=x(t,!0));return!(this===z&&o(D,t)&&!o(U,t))&&(!(e||!o(this,t)||!o(D,t)||o(this,q)&&this[q][t])||e)},V=function(t,e){if(t=w(t),e=x(e,!0),t!==z||!o(D,e)||o(U,e)){var n=A(t,e);return!n||!o(D,e)||o(t,q)&&t[q][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=T(w(t)),r=[],i=0;n.length>i;)o(D,e=n[i++])||e==q||e==s||r.push(e);return r},X=function(t){for(var e,n=t===z,r=T(n?U:w(t)),i=[],c=0;r.length>c;)!o(D,e=r[c++])||n&&!o(z,e)||i.push(D[e]);return i};B||(u((C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(U,n),o(this,q)&&o(this[q],t)&&(this[q][t]=!1),$(this,t,O(1,n))};return i&&J&&$(z,t,{configurable:!0,set:e}),G(t)}).prototype,"toString",function(){return this._k}),E.f=V,S.f=H,n(46).f=j.f=Q,n(31).f=Y,n(47).f=X,i&&!n(16)&&u(z,"propertyIsEnumerable",Y,!0),d.f=function(t){return G(h(t))}),c(c.G+c.W+c.F*!B,{Symbol:C});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)h(tt[et++]);for(var tt=k(h.store),et=0;tt.length>et;)v(tt[et++]);c(c.S+c.F*!B,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=C(t)},keyFor:function(t){if(W(t))return y(F,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){J=!0},useSimple:function(){J=!1}}),c(c.S+c.F*!B,"Object",{create:Z,defineProperty:H,defineProperties:K,getOwnPropertyDescriptor:V,getOwnPropertyNames:Q,getOwnPropertySymbols:X}),N&&c(c.S+c.F*(!B||a(function(){var t=C();return"[null]"!=M([t])||"{}"!=M({a:t})||"{}"!=M(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!W(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return"function"==typeof(e=r[1])&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!W(e))return e}),r[1]=e,M.apply(N,r)}}}),C.prototype[I]||n(7)(C.prototype,I,C.prototype.valueOf),l(C,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){n(36)("asyncIterator")},function(t,e,n){n(36)("observable")},function(t,e){function n(){return(new Date).getTime()}t.exports=n},function(t,e,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(r,"\\$&")}},function(t,e,n){"use strict";var r=n(41),o=new RegExp(r().source);t.exports=o.test.bind(o)},function(t,e,n){(function(t,r){var o;!function(i){function c(t){throw new RangeError(N[t])}function u(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function s(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+u((t=t.replace(C,".")).split("."),e).join(".")}function a(t){for(var e,n,r=[],o=0,i=t.length;o<i;)(e=t.charCodeAt(o++))>=55296&&e<=56319&&o<i?56320==(64512&(n=t.charCodeAt(o++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--):r.push(e);return r}function f(t){return u(t,function(t){var e="";return t>65535&&(e+=I((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=I(t)}).join("")}function l(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:x}function p(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function h(t,e,n){var r=0;for(t=n?q(t/E):t>>1,t+=q(t/e);t>M*_>>1;r+=x)t=q(t/M);return q(r+(M+1)*t/(t+j))}function d(t){var e,n,r,o,i,u,s,a,p,d,v=[],y=t.length,g=0,m=k,b=S;for((n=t.lastIndexOf(A))<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&c("not-basic"),v.push(t.charCodeAt(r));for(o=n>0?n+1:0;o<y;){for(i=g,u=1,s=x;o>=y&&c("invalid-input"),((a=l(t.charCodeAt(o++)))>=x||a>q((w-g)/u))&&c("overflow"),g+=a*u,p=s<=b?O:s>=b+_?_:s-b,!(a<p);s+=x)u>q(w/(d=x-p))&&c("overflow"),u*=d;b=h(g-i,e=v.length+1,0==i),q(g/e)>w-m&&c("overflow"),m+=q(g/e),g%=e,v.splice(g++,0,m)}return f(v)}function v(t){var e,n,r,o,i,u,s,f,l,d,v,y,g,m,b,j=[];for(y=(t=a(t)).length,e=k,n=0,i=S,u=0;u<y;++u)(v=t[u])<128&&j.push(I(v));for(r=o=j.length,o&&j.push(A);r<y;){for(s=w,u=0;u<y;++u)(v=t[u])>=e&&v<s&&(s=v);for(s-e>q((w-n)/(g=r+1))&&c("overflow"),n+=(s-e)*g,e=s,u=0;u<y;++u)if((v=t[u])<e&&++n>w&&c("overflow"),v==e){for(f=n,l=x;d=l<=i?O:l>=i+_?_:l-i,!(f<d);l+=x)b=f-d,m=x-d,j.push(I(p(d+b%m,0))),f=q(b/m);j.push(I(p(f,0))),i=h(n,g,r==o),n=0,++r}++n,++e}return j.join("")}function y(t){return s(t,function(t){return P.test(t)?d(t.slice(4).toLowerCase()):t})}function g(t){return s(t,function(t){return T.test(t)?"xn--"+v(t):t})}"object"==typeof e&&e&&e.nodeType,"object"==typeof t&&t&&t.nodeType;var m="object"==typeof r&&r;var b,w=2147483647,x=36,O=1,_=26,j=38,E=700,S=72,k=128,A="-",P=/^xn--/,T=/[^\x20-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,N={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=x-O,q=Math.floor,I=String.fromCharCode;b={version:"1.4.1",ucs2:{decode:a,encode:f},decode:d,encode:v,toASCII:g,toUnicode:y},void 0!==(o=function(){return b}.call(e,n,e,t))&&(t.exports=o)}()}).call(e,n(54)(t),n(23))},function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,i){e=e||"&",n=n||"=";var c={};if("string"!=typeof t||0===t.length)return c;var u=/\+/g;t=t.split(e);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var a=t.length;s>0&&a>s&&(a=s);for(var f=0;f<a;++f){var l,p,h,d,v=t[f].replace(u,"%20"),y=v.indexOf(n);y>=0?(l=v.substr(0,y),p=v.substr(y+1)):(l=v,p=""),h=decodeURIComponent(l),d=decodeURIComponent(p),r(c,h)?o(c[h])?c[h].push(d):c[h]=[c[h],d]:c[h]=d}return c};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";function r(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var o=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,u){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?r(c(t),function(c){var u=encodeURIComponent(o(c))+n;return i(t[c])?r(t[c],function(t){return u+encodeURIComponent(o(t))}).join(e):u+encodeURIComponent(o(t[c]))}).join(e):u?encodeURIComponent(o(u))+n+encodeURIComponent(o(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},c=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},function(t,e,n){"use strict";e.decode=e.parse=n(119),e.encode=e.stringify=n(120)},function(t,e,n){"use strict";var r=n(41)();t.exports=function(t){return"string"==typeof t?t.replace(r,""):t}},function(t,e,n){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("signals"),require("socket.io-client"),require("socketio-wildcard"),function(){try{return require("standard-settings")}catch(t){}}()):"function"==typeof define&&define.amd?define(["signals","socket.io-client","socketio-wildcard","standard-settings"],e):"object"==typeof exports?exports.spacebroClient=e(require("signals"),require("socket.io-client"),require("socketio-wildcard"),function(){try{return require("standard-settings")}catch(t){}}()):t.spacebroClient=e(t.signals,t.io,t.socketioWildcard,t.standardSettings)}(this,function(t,e,n,r){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=68)}([function(t,e,n){var r=n(33)("wks"),o=n(20),i=n(1).Symbol,c="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(12);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(3),o=n(43),i=n(35),c=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(5),o=n(18);t.exports=n(4)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(87),o=n(28);t.exports=function(t){return r(o(t))}},function(t,e){t.exports={}},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function i(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function c(){v&&h&&(v=!1,h.length?d=h.concat(d):y=-1,d.length&&u())}function u(){if(!v){var t=o(c);v=!0;for(var e=d.length;e;){for(h=d,d=[];++y<e;)h&&h[y].run();y=-1,e=d.length}h=null,v=!1,i(t)}}function s(t,e){this.fun=t,this.array=e}function a(){}var f,l,p=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(t){f=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}}();var h,d=[],v=!1,y=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new s(t,e)),1!==d.length||v||o(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=a,p.addListener=a,p.once=a,p.off=a,p.removeListener=a,p.removeAllListeners=a,p.emit=a,p.prependListener=a,p.prependOnceListener=a,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(26);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(1),o=n(2),i=n(13),c=n(7),u=function(t,e,n){var s,a,f,l=t&u.F,p=t&u.G,h=t&u.S,d=t&u.P,v=t&u.B,y=t&u.W,g=p?o:o[e]||(o[e]={}),m=g.prototype,b=p?r:h?r[e]:(r[e]||{}).prototype;p&&(n=e);for(s in n)(a=!l&&b&&void 0!==b[s])&&s in g||(f=a?b[s]:n[s],g[s]=p&&"function"!=typeof b[s]?n[s]:v&&a?i(f,r):y&&b[s]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):d&&"function"==typeof f?i(Function.call,f):f,d&&((g.virtual||(g.virtual={}))[s]=f,t&u.R&&m&&!m[s]&&c(m,s,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=!0},function(t,e,n){var r=n(48),o=n(30);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(5).f,o=n(6),i=n(0)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";var r=n(104)(!0);n(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){n(109);for(var r=n(1),o=n(7),i=n(9),c=n(0)("toStringTag"),u=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var a=u[s],f=r[a],l=f&&f.prototype;l&&!l[c]&&o(l,c,a),i[a]=i.Array}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){(function(e){function r(){}function o(){p.log.apply(p,arguments)}function i(){p.log.apply(p,arguments)}function c(){p.warn.apply(p,arguments)}function u(t){g[t]=v()}function s(t){var e=g[t];if(!e)throw new Error("No such label: "+t);var n=v()-e;p.log(t+": "+n+"ms")}function a(){var t=new Error;t.name="Trace",t.message=h.format.apply(null,arguments),p.error(t.stack)}function f(t){p.log(h.inspect(t)+"\n")}function l(t){if(!t){var e=y.call(arguments,1);d.ok(!1,h.format.apply(null,e))}}var p,h=n(25),d=n(66),v=n(115),y=Array.prototype.slice,g={};p=void 0!==e&&e.console?e.console:"undefined"!=typeof window&&window.console?window.console:{};for(var m=[[r,"log"],[o,"info"],[i,"warn"],[c,"error"],[u,"time"],[s,"timeEnd"],[a,"trace"],[f,"dir"],[l,"assert"]],b=0;b<m.length;b++){var w=m[b],x=w[0],O=w[1];p[O]||(p[O]=x)}t.exports=p}).call(e,n(23))},function(t,e,n){(function(t,r,o){function i(t,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&e._extend(r,n),O(r.showHidden)&&(r.showHidden=!1),O(r.depth)&&(r.depth=2),O(r.colors)&&(r.colors=!1),O(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),a(r,t,r.depth)}function c(t,e){var n=i.styles[e];return n?"["+i.colors[n][0]+"m"+t+"["+i.colors[n][1]+"m":t}function u(t,e){return t}function s(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function a(t,n,r){if(t.customInspect&&n&&S(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return w(o)||(o=a(t,o,r)),o}var i=f(t,n);if(i)return i;var c=Object.keys(n),u=s(c);if(t.showHidden&&(c=Object.getOwnPropertyNames(n)),k(n)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return l(n);if(0===c.length){if(S(n)){var y=n.name?": "+n.name:"";return t.stylize("[Function"+y+"]","special")}if(_(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(E(n))return t.stylize(Date.prototype.toString.call(n),"date");if(k(n))return l(n)}var g="",m=!1,b=["{","}"];if(v(n)&&(m=!0,b=["[","]"]),S(n)&&(g=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(g=" "+RegExp.prototype.toString.call(n)),E(n)&&(g=" "+Date.prototype.toUTCString.call(n)),k(n)&&(g=" "+l(n)),0===c.length&&(!m||0==n.length))return b[0]+g+b[1];if(r<0)return _(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var x;return x=m?p(t,n,r,u,c):c.map(function(e){return h(t,n,r,u,e,m)}),t.seen.pop(),d(x,g,b)}function f(t,e){if(O(e))return t.stylize("undefined","undefined");if(w(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return b(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,o){for(var i=[],c=0,u=e.length;c<u;++c)N(e,String(c))?i.push(h(t,e,n,r,String(c),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(h(t,e,n,r,o,!0))}),i}function h(t,e,n,r,o,i){var c,u,s;if(s=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]},s.get?u=s.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):s.set&&(u=t.stylize("[Setter]","special")),N(r,o)||(c="["+o+"]"),u||(t.seen.indexOf(s.value)<0?(u=g(n)?a(t,s.value,null):a(t,s.value,n-1)).indexOf("\n")>-1&&(u=i?u.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+u.split("\n").map(function(t){return" "+t}).join("\n")):u=t.stylize("[Circular]","special")),O(c)){if(i&&o.match(/^\d+$/))return u;(c=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.substr(1,c.length-2),c=t.stylize(c,"name")):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=t.stylize(c,"string"))}return c+": "+u}function d(t,e,n){var r=0;return t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function v(t){return Array.isArray(t)}function y(t){return"boolean"==typeof t}function g(t){return null===t}function m(t){return null==t}function b(t){return"number"==typeof t}function w(t){return"string"==typeof t}function x(t){return"symbol"==typeof t}function O(t){return void 0===t}function _(t){return j(t)&&"[object RegExp]"===P(t)}function j(t){return"object"==typeof t&&null!==t}function E(t){return j(t)&&"[object Date]"===P(t)}function k(t){return j(t)&&("[object Error]"===P(t)||t instanceof Error)}function S(t){return"function"==typeof t}function A(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function P(t){return Object.prototype.toString.call(t)}function T(t){return t<10?"0"+t.toString(10):t.toString(10)}function C(){var t=new Date,e=[T(t.getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":");return[t.getDate(),R[t.getMonth()],e].join(" ")}function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var M=/%[sdj%]/g;e.format=function(t){if(!w(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(i(arguments[n]));return e.join(" ")}for(var n=1,r=arguments,o=r.length,c=String(t).replace(M,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),u=r[n];n<o;u=r[++n])g(u)||!j(u)?c+=" "+u:c+=" "+i(u);return c},e.deprecate=function(n,i){function c(){if(!u){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?o.trace(i):o.error(i),u=!0}return n.apply(this,arguments)}if(O(t.process))return function(){return e.deprecate(n,i).apply(this,arguments)};if(!0===r.noDeprecation)return n;var u=!1;return c};var q,I={};e.debuglog=function(t){if(O(q)&&(q=r.env.NODE_DEBUG||""),t=t.toUpperCase(),!I[t])if(new RegExp("\\b"+t+"\\b","i").test(q)){var n=r.pid;I[t]=function(){var r=e.format.apply(e,arguments);o.error("%s %d: %s",t,n,r)}}else I[t]=function(){};return I[t]},e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=v,e.isBoolean=y,e.isNull=g,e.isNullOrUndefined=m,e.isNumber=b,e.isString=w,e.isSymbol=x,e.isUndefined=O,e.isRegExp=_,e.isObject=j,e.isDate=E,e.isError=k,e.isFunction=S,e.isPrimitive=A,e.isBuffer=n(125);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.log=function(){o.log("%s - %s",C(),e.format.apply(e,arguments))},e.inherits=n(124),e._extend=function(t,e){if(!e||!j(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}).call(e,n(23),n(10),n(24))},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(11),o=n(0)("toStringTag"),i="Arguments"==r(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(12),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(33)("keys"),o=n(20);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(12);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(1),o=n(2),i=n(16),c=n(37),u=n(5).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:c.f(t)})}},function(t,e,n){e.f=n(0)},function(t,e,n){t.exports={default:n(75),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(70));e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,r.default)(t,o.key,o)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";t.exports=function(){return/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g}},function(t,e,n){t.exports=n(1).document&&document.documentElement},function(t,e,n){t.exports=!n(4)&&!n(15)(function(){return 7!=Object.defineProperty(n(29)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";var r=n(16),o=n(14),i=n(49),c=n(7),u=n(6),s=n(9),a=n(91),f=n(19),l=n(100),p=n(0)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,v,y,g,m){a(n,e,v);var b,w,x,O=function(t){if(!h&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",j="values"==y,E=!1,k=t.prototype,S=k[p]||k["@@iterator"]||y&&k[y],A=S||O(y),P=y?j?O("entries"):A:void 0,T="Array"==e?k.entries||S:S;if(T&&(x=l(T.call(new t)))!==Object.prototype&&(f(x,_,!0),r||u(x,p)||c(x,p,d)),j&&S&&"values"!==S.name&&(E=!0,A=function(){return S.call(this)}),r&&!m||!h&&!E&&k[p]||c(k,p,A),s[e]=A,s[_]=d,y)if(b={values:j?A:O("values"),keys:g?A:O("keys"),entries:P},m)for(w in b)w in k||i(k,w,b[w]);else o(o.P+o.F*(h||E),e,b);return b}},function(t,e,n){var r=n(3),o=n(97),i=n(30),c=n(32)("IE_PROTO"),u=function(){},s=function(){var t,e=n(29)("iframe"),r=i.length;for(e.style.display="none",n(42).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[c]=t):n=s(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(48),o=n(30).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(6),o=n(8),i=n(83)(!1),c=n(32)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,a=[];for(n in u)n!=c&&r(u,n)&&a.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~i(a,n)||a.push(n));return a}},function(t,e,n){t.exports=n(7)},function(t,e,n){var r,o,i,c=n(13),u=n(86),s=n(42),a=n(29),f=n(1),l=f.process,p=f.setImmediate,h=f.clearImmediate,d=f.MessageChannel,v=0,y={},g=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},m=function(t){g.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++v]=function(){u("function"==typeof t?t:Function(t),e)},r(v),v},h=function(t){delete y[t]},"process"==n(11)(l)?r=function(t){l.nextTick(c(g,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=m,r=c(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",m,!1)):r="onreadystatechange"in a("script")?function(t){s.appendChild(a("script")).onreadystatechange=function(){s.removeChild(this),g.call(t)}}:function(t){setTimeout(c(g,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,n){var r=n(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(27),o=n(0)("iterator"),i=n(9);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e){},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t){for(var e,n,o=Array.prototype.slice.call(arguments,1);o.length;){e=o.shift();for(n in e)e.hasOwnProperty(n)&&("object"==typeof t[n]&&t[n]&&"[object Array]"!==Object.prototype.toString.call(t[n])&&"object"==typeof e[n]&&null!==e[n]?t[n]=r({},t[n],e[n]):t[n]=e[n])}return t}t.exports=r},function(t,e,n){"use strict";(function(r){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=o(n(39)),c=o(n(40)),u=o(n(67)),s=o(n(73)),a="spacebro-client -",f={log:a,info:u.default?s.default.blue(a):a,warn:u.default?s.default.yellow(a):a,error:u.default?s.default.red(a):a},l=function(){function t(e){(0,i.default)(this,t),this.verbose=e}return(0,c.default)(t,[{key:"log",value:function(){for(var t,e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];this.verbose&&(t=r).log.apply(t,[f.log].concat(n))}},{key:"info",value:function(){for(var t,e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];this.verbose&&(t=r).log.apply(t,[f.info].concat(n))}},{key:"warn",value:function(){for(var t,e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];this.verbose&&(t=r).log.apply(t,[f.warn].concat(n))}},{key:"error",value:function(){for(var t,e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];this.verbose&&(t=r).log.apply(t,[f.error].concat(n))}}]),t}();e.default=l,t.exports=e.default}).call(e,n(24))},function(t,e,n){t.exports={default:n(78),__esModule:!0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=r(n(69)),i=r(n(38));e.default=function(){function t(t,e){var n=[],r=!0,o=!1,c=void 0;try{for(var u,s=(0,i.default)(t);!(r=(u=s.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,c=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw c}}return n}return function(e,n){if(Array.isArray(e))return e;if((0,o.default)(Object(e)))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=r(n(72)),i=r(n(71)),c="function"==typeof i.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":typeof t};e.default="function"==typeof i.default&&"symbol"===c(o.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,e,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(t,e,n){if(t&&a.isObject(t)&&t instanceof r)return t;var o=new r;return o.parse(t,e,n),o}function i(t){return a.isString(t)&&(t=o(t)),t instanceof r?t.format():r.prototype.format.call(t)}function c(t,e){return o(t,!1,!0).resolve(e)}function u(t,e){return t?o(t,!1,!0).resolveObject(e):e}var s=n(118),a=n(123);e.parse=o,e.resolve=c,e.resolveObject=u,e.format=i,e.Url=r;var f=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["<",">",'"',"`"," ","\r","\n","\t"],d=["{","}","|","\\","^","`"].concat(h),v=["'"].concat(d),y=["%","/","?",";","#"].concat(v),g=["/","?","#"],m=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},x={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=n(121);r.prototype.parse=function(t,e,n){if(!a.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t.indexOf("?"),o=-1!==r&&r<t.indexOf("#")?"?":"#",i=t.split(o),c=/\\/g;i[0]=i[0].replace(c,"/");var u=t=i.join(o);if(u=u.trim(),!n&&1===t.split("#").length){var l=p.exec(u);if(l)return this.path=u,this.href=u,this.pathname=l[1],l[2]?(this.search=l[2],this.query=e?_.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var h=f.exec(u);if(h){var d=(h=h[0]).toLowerCase();this.protocol=d,u=u.substr(h.length)}if(n||h||u.match(/^\/\/[^@\/]+@[^@\/]+/)){var j="//"===u.substr(0,2);!j||h&&x[h]||(u=u.substr(2),this.slashes=!0)}if(!x[h]&&(j||h&&!O[h])){for(var E=-1,k=0;k<g.length;k++)-1!==(P=u.indexOf(g[k]))&&(-1===E||P<E)&&(E=P);var S,A;-1!==(A=-1===E?u.lastIndexOf("@"):u.lastIndexOf("@",E))&&(S=u.slice(0,A),u=u.slice(A+1),this.auth=decodeURIComponent(S)),E=-1;for(k=0;k<y.length;k++){var P=u.indexOf(y[k]);-1!==P&&(-1===E||P<E)&&(E=P)}-1===E&&(E=u.length),this.host=u.slice(0,E),u=u.slice(E),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var C=this.hostname.split(/\./),k=0,N=C.length;k<N;k++){var M=C[k];if(M&&!M.match(m)){for(var q="",I=0,R=M.length;I<R;I++)M.charCodeAt(I)>127?q+="x":q+=M[I];if(!q.match(m)){var F=C.slice(0,k),D=C.slice(k+1),U=M.match(b);U&&(F.push(U[1]),D.unshift(U[2])),D.length&&(u="/"+D.join(".")+u),this.hostname=F.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=s.toASCII(this.hostname));var z=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+z,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==u[0]&&(u="/"+u))}if(!w[d])for(var k=0,N=v.length;k<N;k++){var L=v[k];if(-1!==u.indexOf(L)){var J=encodeURIComponent(L);J===L&&(J=escape(L)),u=u.split(L).join(J)}}var $=u.indexOf("#");-1!==$&&(this.hash=u.substr($),u=u.slice(0,$));var G=u.indexOf("?");if(-1!==G?(this.search=u.substr(G),this.query=u.substr(G+1),e&&(this.query=_.parse(this.query)),u=u.slice(0,G)):e&&(this.search="",this.query={}),u&&(this.pathname=u),O[d]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var z=this.pathname||"",W=this.search||"";this.path=z+W}return this.href=this.format(),this},r.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(i=_.stringify(this.query));var c=this.search||i&&"?"+i||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||O[e])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),c&&"?"!==c.charAt(0)&&(c="?"+c),n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),c=c.replace("#","%23"),e+o+n+c+r},r.prototype.resolve=function(t){return this.resolveObject(o(t,!1,!0)).format()},r.prototype.resolveObject=function(t){if(a.isString(t)){var e=new r;e.parse(t,!1,!0),t=e}for(var n=new r,o=Object.keys(this),i=0;i<o.length;i++){var c=o[i];n[c]=this[c]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),s=0;s<u.length;s++){var f=u[s];"protocol"!==f&&(n[f]=t[f])}return O[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!O[t.protocol]){for(var l=Object.keys(t),p=0;p<l.length;p++){var h=l[p];n[h]=t[h]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||x[t.protocol])n.pathname=t.pathname;else{for(_=(t.pathname||"").split("/");_.length&&!(t.host=_.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==_[0]&&_.unshift(""),_.length<2&&_.unshift(""),n.pathname=_.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var d=n.pathname||"",v=n.search||"";n.path=d+v}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),g=t.host||t.pathname&&"/"===t.pathname.charAt(0),m=g||y||n.host&&t.pathname,b=m,w=n.pathname&&n.pathname.split("/")||[],_=t.pathname&&t.pathname.split("/")||[],j=n.protocol&&!O[n.protocol];if(j&&(n.hostname="",n.port=null,n.host&&(""===w[0]?w[0]=n.host:w.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===_[0]?_[0]=t.host:_.unshift(t.host)),t.host=null),m=m&&(""===_[0]||""===w[0])),g)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,w=_;else if(_.length)w||(w=[]),w.pop(),w=w.concat(_),n.search=t.search,n.query=t.query;else if(!a.isNullOrUndefined(t.search))return j&&(n.hostname=n.host=w.shift(),(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift())),n.search=t.search,n.query=t.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=w.slice(-1)[0],k=(n.host||t.host||w.length>1)&&("."===E||".."===E)||""===E,S=0,A=w.length;A>=0;A--)"."===(E=w[A])?w.splice(A,1):".."===E?(w.splice(A,1),S++):S&&(w.splice(A,1),S--);if(!m&&!b)for(;S--;S)w.unshift("..");!m||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),k&&"/"!==w.join("/").substr(-1)&&w.push("");var P=""===w[0]||w[0]&&"/"===w[0].charAt(0);if(j){n.hostname=n.host=P?"":w.length?w.shift():"";var T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");T&&(n.auth=T.shift(),n.host=n.hostname=T.shift())}return(m=m||n.host&&w.length)&&!P&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var t=this.host,e=l.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e){if(void 0===r){var n=new Error('Cannot find module "undefined"');throw n.code="MODULE_NOT_FOUND",n}t.exports=r},function(t,e,n){"use strict";(function(t){function e(){var t={modifiers:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};return t.colors.grey=t.colors.gray,Object.keys(t).forEach(function(e){var n=t[e];Object.keys(n).forEach(function(e){var r=n[e];t[e]=n[e]={open:"["+r[0]+"m",close:"["+r[1]+"m"}}),Object.defineProperty(t,e,{value:n,enumerable:!1})}),t}Object.defineProperty(t,"exports",{enumerable:!0,get:e})}).call(e,n(54)(t))},function(t,e,n){"use strict";(function(e){function r(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0}function o(t){return e.Buffer&&"function"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}function i(t){return Object.prototype.toString.call(t)}function c(t){return!o(t)&&("function"==typeof e.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}function u(t){if(w.isFunction(t)){if(_)return t.name;var e=t.toString().match(E);return e&&e[1]}}function s(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function a(t){if(_||!w.isFunction(t))return w.inspect(t);var e=u(t);return"[Function"+(e?": "+e:"")+"]"}function f(t){return s(a(t.actual),128)+" "+t.operator+" "+s(a(t.expected),128)}function l(t,e,n,r,o){throw new j.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:o})}function p(t,e){t||l(t,!0,e,"==",j.ok)}function h(t,e,n,u){if(t===e)return!0;if(o(t)&&o(e))return 0===r(t,e);if(w.isDate(t)&&w.isDate(e))return t.getTime()===e.getTime();if(w.isRegExp(t)&&w.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(c(t)&&c(e)&&i(t)===i(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===r(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(e))return!1;var s=(u=u||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&&s===u.expected.indexOf(e)||(u.actual.push(t),u.expected.push(e),v(t,e,n,u))}return n?t===e:t==e}function d(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function v(t,e,n,r){if(null===t||void 0===t||null===e||void 0===e)return!1;if(w.isPrimitive(t)||w.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var o=d(t),i=d(e);if(o&&!i||!o&&i)return!1;if(o)return t=O.call(t),e=O.call(e),h(t,e,n);var c,u,s=k(t),a=k(e);if(s.length!==a.length)return!1;for(s.sort(),a.sort(),u=s.length-1;u>=0;u--)if(s[u]!==a[u])return!1;for(u=s.length-1;u>=0;u--)if(c=s[u],!h(t[c],e[c],n,r))return!1;return!0}function y(t,e,n){h(t,e,!0)&&l(t,e,n,"notDeepStrictEqual",y)}function g(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function m(t){var e;try{t()}catch(t){e=t}return e}function b(t,e,n,r){var o;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),o=m(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!o&&l(o,n,"Missing expected exception"+r);var i="string"==typeof r,c=!t&&w.isError(o),u=!t&&o&&!n;if((c&&i&&g(o,n)||u)&&l(o,n,"Got unwanted exception"+r),t&&o&&n&&!g(o,n)||!t&&o)throw o}var w=n(25),x=Object.prototype.hasOwnProperty,O=Array.prototype.slice,_=function(){return"foo"===function(){}.name}(),j=t.exports=p,E=/\s*function\s+([^\(\s]*)\s*/;j.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=f(this),this.generatedMessage=!0);var e=t.stackStartFunction||l;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,o=u(e),i=r.indexOf("\n"+o);if(i>=0){var c=r.indexOf("\n",i+1);r=r.substring(c+1)}this.stack=r}}},w.inherits(j.AssertionError,Error),j.fail=l,j.ok=p,j.equal=function(t,e,n){t!=e&&l(t,e,n,"==",j.equal)},j.notEqual=function(t,e,n){t==e&&l(t,e,n,"!=",j.notEqual)},j.deepEqual=function(t,e,n){h(t,e,!1)||l(t,e,n,"deepEqual",j.deepEqual)},j.deepStrictEqual=function(t,e,n){h(t,e,!0)||l(t,e,n,"deepStrictEqual",j.deepStrictEqual)},j.notDeepEqual=function(t,e,n){h(t,e,!1)&&l(t,e,n,"notDeepEqual",j.notDeepEqual)},j.notDeepStrictEqual=y,j.strictEqual=function(t,e,n){t!==e&&l(t,e,n,"===",j.strictEqual)},j.notStrictEqual=function(t,e,n){t===e&&l(t,e,n,"!==",j.notStrictEqual)},j.throws=function(t,e,n){b(!0,t,e,n)},j.doesNotThrow=function(t,e,n){b(!1,t,e,n)},j.ifError=function(t){if(t)throw t};var k=Object.keys||function(t){var e=[];for(var n in t)x.call(t,n)&&e.push(n);return e}}).call(e,n(23))},function(t,e,n){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0!==n&&void 0!==n.versions.node,t.exports=e.default}).call(e,n(10))},function(t,e,n){"use strict";(function(r,o){function i(t){return t&&t.__esModule?t:{default:t}}function c(t,e){return e.filter(function(e){return-1!==[t,"*"].indexOf(e.eventName)}).sort(function(t){return-t.priority||0}).map(function(t){return t.handler})}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=function(t){return C.default.inspect(t,{showHidden:!1,depth:null})};if(null==t){var u=null;try{o.env.NO_STANDARD_SETTINGS||(u=n(64).getSettings())}catch(t){}if(!u)return void(i||r.warn("Cannot load standard-settings; did you add it to node_modules?"));var s=u.service&&u.service.spacebro;if(!s)return r.warn("Settings file does not include service.spacebro"),void(e&&r.warn("Settings object:",c(s)));t=s}e&&r.log("Former settings:",c(M)),(0,T.default)(M,t),e&&r.log("New settings:",c(M))}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new q(t,!1);return e.connect(e.config.host,e.config.port)}function a(t,e,n){return I&&r.warn("A SpacebroClient socket is already open"),I=new q((0,T.default)({},n,{host:t,port:e})),R&&(I.events=R.events,R=null),I}function f(){return I||r.warn("No SpacebroClient socket is open"),!!I}function l(){f()&&I.disconnect(),I=null}function p(t,e,n){f()&&I.addPacker(t,e,n)}function h(t,e,n){f()&&I.addUnpacker(t,e,n)}function d(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(f()){var e=Array.prototype.slice.call(arguments,0);I.emit.apply(I,e)}}function v(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1],arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(f()){var e=Array.prototype.slice.call(arguments,0);I.sendTo.apply(I,e)}}function y(){return I||R||r.warn("No SpacebroClient socket is open"),I||R}function g(t,e,n,r){var o=y();o&&o.on(t,e,n,r)}function m(t,e,n,r){var o=y();o&&o.once(t,e,n,r)}function b(t){var e=y();e&&e.off(t)}Object.defineProperty(e,"__esModule",{value:!0});var w=i(n(59)),x=i(n(58)),O=i(n(57)),_=i(n(38)),j=i(n(39)),E=i(n(40)),k=i(n(63)),S=i(n(62)),A=i(n(61)),P=i(n(56)),T=i(n(55)),C=i(n(25)),N=(0,k.default)(S.default.Manager),M={channelName:null,client:{name:null},packers:[],unpackers:[],sendBack:!0,verbose:!0,multiService:!1},q=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,j.default)(this,t),this.config=(0,T.default)({},M,e),this.config.clientName&&(r.warn("DEPRECATED: clientName is deprecated, please use `client: {name: '"+this.config.clientName+"'}` instead"),this.config.client.name=this.config.clientName),this.logger=new P.default(this.config.verbose),this.packers=[];var o=!0,i=!1,c=void 0;try{for(var u,s=(0,_.default)(this.config.packers);!(o=(u=s.next()).done);o=!0){var a=u.value;this.addPacker(a.handler,a.priority,a.eventName)}}catch(t){i=!0,c=t}finally{try{!o&&s.return&&s.return()}finally{if(i)throw c}}this.unpackers=[];var f=!0,l=!1,p=void 0;try{for(var h,d=(0,_.default)(this.config.unpackers);!(f=(h=d.next()).done);f=!0){var v=h.value;this.addUnpacker(v.handler,v.priority,v.eventName)}}catch(t){l=!0,p=t}finally{try{!f&&d.return&&d.return()}finally{if(l)throw p}}if(this.events={},this.connected=!1,this.socket=null,n){if(null==this.config.host||null==this.config.port)return void r.warn("Cannot connect without host address and port");this.connect(this.config.host,this.config.port).catch(function(){})}}return(0,E.default)(t,[{key:"connect",value:function(t,e){var n=this;{if(!this.connected){if("string"!=typeof t)throw new Error("host must be a valid string");if(!(e>0))throw new Error("port must be a positive integer");return this.logger.log("Trying to connect to "+t+":"+e+" with config:\n",this.config),this.config.host=t,this.config.port=e,this._initSocketIO(t,e),new O.default(function(t,e){n.on("connect",function(){return t(n)}),n.on("connect_error",function(t){return e(t)}),n.on("connect_timeout",function(){return e(new Error("Connection timeout"))}),n.on("error",function(t){return e(t)})})}r.warn("This client is already connected to "+this.config.host+":"+this.config.port)}}},{key:"_initSocketIO",value:function(t,e){var r=this,o=""+(n(60).parse(t).protocol?"":"ws://")+t+":"+e,i=(0,S.default)(o);N(i),i.on("connect",function(){r.connected=!0,r.logger.log("socket connected"),r.socket=i,i.emit("register",{channelName:r.config.channelName,client:r.config.client,clientName:r.config.client.name}),r.config.connection&&r.emit("addConnections",r.config.connection),r.events.connect&&r.events.connect.dispatch(i)}).on("connect_error",function(t){r.logger.warn("error",t),r.connected=!1,r.events.connect_error&&r.events.connect_error.dispatch(t)}).on("connect_timeout",function(){r.logger.warn("connection timeout"),r.events.connect_timeout&&r.events.connect_timeout.dispatch()}).on("error",function(t){r.logger.warn("error",t),r.connected=!1,r.events.error&&r.events.error.dispatch(t)}).on("disconnect",function(t){r.logger.log("socket down"),r.events.disconnect&&r.events.disconnect.dispatch(t),r.connected=!1}).on("reconnect",function(t){r.logger.log("socket reconnected"),r.events.reconnect&&r.events.reconnect.dispatch(t),r.connected=!0}).on("reconnect_attempt",function(t){r.logger.log("socket reconnect attempt: "+t),r.events.reconnect_attempt&&r.events.reconnect_attempt.dispatch(t)}).on("reconnecting",function(t){r.logger.log("socket try to reconnect, attempt: "+t),r.events.reconnecting&&r.events.reconnecting.dispatch(t)}).on("reconnect_error",function(t){r.logger.warn("socket reconnection error"),r.logger.warn(t),r.events.reconnect_error&&r.events.reconnect_error.dispatch(t)}).on("reconnect_failed",function(t){r.logger.warn("socket cannot reconnect"),r.logger.warn(t),r.events.reconnect_failed&&r.events.reconnect_failed.dispatch(t)}).on("*",function(t){var e=t.data,n=(0,x.default)(e,2),o=n[0],i=n[1];if((r.config.sendBack||i._from!==r.config.client.name)&&(r.events[o]||r.events["*"])){r.logger.log("socket received "+o+" with data:",i);var u=!0,s=!1,a=void 0;try{for(var f,l=(0,_.default)(c(o,r.unpackers));!(u=(f=l.next()).done);u=!0)i=(0,f.value)({eventName:o,data:i})||i}catch(t){s=!0,a=t}finally{try{!u&&l.return&&l.return()}finally{if(s)throw a}}r.events[o]&&r.events[o].dispatch.apply(r.events[o],e.slice(1)),r.events["*"]&&r.events["*"].dispatch(i)}})}},{key:"disconnect",value:function(){this.socket&&this.socket.disconnect(),this.connected=!1,this.unpackers=[],this.packers=[]}},{key:"addPacker",value:function(t,e,n){this.packers.push({eventName:n,handler:t,priority:e})}},{key:"addUnpacker",value:function(t,e,n){this.unpackers.push({eventName:n,handler:t,priority:e})}},{key:"emit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"===(void 0===e?"undefined":(0,w.default)(e))&&null!==e||((e={data:e}).altered=!0);var n=Array.prototype.slice.call(arguments,2);n.unshift(t,null,e),this.sendTo.apply(this,n)}},{key:"sendTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.connected){"object"===(void 0===n?"undefined":(0,w.default)(n))&&"function"==typeof n.toJSON&&(n=n.toJSON()),n._to=e,n._from=this.config.client.name;var o=!0,i=!1,u=void 0;try{for(var s,a=(0,_.default)(c(t,this.packers));!(o=(s=a.next()).done);o=!0)n=(0,s.value)({eventName:t,data:n})||n}catch(t){i=!0,u=t}finally{try{!o&&a.return&&a.return()}finally{if(i)throw u}}var f=Array.prototype.slice.call(arguments,3);f.unshift(t,n),this.socket.emit.apply(this.socket,f)}else r.error('Error: "'+this.config.client.name+'" is disconnected and cannot emit "'+t+'"')}},{key:"on",value:function(t,e,n,r){this.events[t]||(this.events[t]=new A.default),this.events[t].add(e,n,r)}},{key:"once",value:function(t,e,n,r){this.events[t]||(this.events[t]=new A.default),this.events[t].addOnce(e,n,r)}},{key:"off",value:function(t){this.events[t].dispose(),delete this.events[t]}}]),t}(),I=null,R={events:[],on:q.prototype.on,once:q.prototype.once,off:q.prototype.off};u(null,!1,!0),e.default={SpacebroClient:q,setDefaultSettings:u,create:s,connect:a,disconnect:l,addPacker:p,addUnpacker:h,emit:d,sendTo:v,on:g,once:m,off:b},t.exports=e.default}).call(e,n(24),n(10))},function(t,e,n){t.exports={default:n(76),__esModule:!0}},function(t,e,n){t.exports={default:n(77),__esModule:!0}},function(t,e,n){t.exports={default:n(79),__esModule:!0}},function(t,e,n){t.exports={default:n(80),__esModule:!0}},function(t,e,n){"use strict";(function(e){function r(t){this.enabled=t&&void 0!==t.enabled?t.enabled:f}function o(t){var e=function(){return i.apply(e,arguments)};return e._styles=t,e.enabled=this.enabled,e.__proto__=d,e}function i(){var t=arguments,e=t.length,n=0!==e&&String(arguments[0]);if(e>1)for(var r=1;r<e;r++)n+=" "+t[r];if(!this.enabled||!n)return n;var o=this._styles,i=o.length,c=u.dim.open;for(!p||-1===o.indexOf("gray")&&-1===o.indexOf("grey")||(u.dim.open="");i--;){var s=u[o[i]];n=s.open+n.replace(s.closeRe,s.open)+s.close}return u.dim.open=c,n}var c=n(116),u=n(65),s=n(122),a=n(117),f=n(74),l=Object.defineProperties,p="win32"===e.platform&&!/^xterm/i.test(e.env.TERM);p&&(u.blue.open="[94m");var h=function(){var t={};return Object.keys(u).forEach(function(e){u[e].closeRe=new RegExp(c(u[e].close),"g"),t[e]={get:function(){return o.call(this,this._styles.concat(e))}}}),t}(),d=l(function(){},h);l(r.prototype,function(){var t={};return Object.keys(h).forEach(function(e){t[e]={get:function(){return o.call(this,[e])}}}),t}()),t.exports=new r,t.exports.styles=u,t.exports.hasColor=a,t.exports.stripColor=s,t.exports.supportsColor=f}).call(e,n(10))},function(t,e,n){"use strict";(function(e){var n=e.argv,r=n.indexOf("--"),o=function(t){t="--"+t;var e=n.indexOf(t);return-1!==e&&(-1===r||e<r)};t.exports=function(){return"FORCE_COLOR"in e.env||!(o("no-color")||o("no-colors")||o("color=false"))&&(!!(o("color")||o("colors")||o("color=true")||o("color=always"))||!(e.stdout&&!e.stdout.isTTY)&&("win32"===e.platform||("COLORTERM"in e.env||"dumb"!==e.env.TERM&&!!/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(e.env.TERM))))}()}).call(e,n(10))},function(t,e,n){n(22),n(21),t.exports=n(107)},function(t,e,n){n(22),n(21),t.exports=n(108)},function(t,e,n){n(110);var r=n(2).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(53),n(21),n(22),n(111),t.exports=n(2).Promise},function(t,e,n){n(112),n(53),n(113),n(114),t.exports=n(2).Symbol},function(t,e,n){n(21),n(22),t.exports=n(37).f("iterator")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(8),o=n(51),i=n(105);t.exports=function(t){return function(e,n,c){var u,s=r(e),a=o(s.length),f=i(c,a);if(t&&n!=n){for(;a>f;)if((u=s[f++])!=u)return!0}else for(;a>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(17),o=n(47),i=n(31);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var c,u=n(t),s=i.f,a=0;u.length>a;)s.call(t,c=u[a++])&&e.push(c);return e}},function(t,e,n){var r=n(13),o=n(90),i=n(88),c=n(3),u=n(51),s=n(52),a={},f={};(e=t.exports=function(t,e,n,l,p){var h,d,v,y,g=p?function(){return t}:s(t),m=r(n,l,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=u(t.length);h>b;b++)if((y=e?m(c(d=t[b])[0],d[1]):m(t[b]))===a||y===f)return y}else for(v=g.call(t);!(d=v.next()).done;)if((y=o(v,m,d.value,e))===a||y===f)return y}).BREAK=a,e.RETURN=f},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(11);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(9),o=n(0)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(11);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(45),o=n(18),i=n(19),c={};n(7)(c,n(0)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(c,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(0)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],c=i[r]();c.next=function(){return{done:n=!0}},i[r]=function(){return c},t(i)}catch(t){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(17),o=n(8);t.exports=function(t,e){for(var n,i=o(t),c=r(i),u=c.length,s=0;u>s;)if(i[n=c[s++]]===e)return n}},function(t,e,n){var r=n(20)("meta"),o=n(12),i=n(6),c=n(5).f,u=0,s=Object.isExtensible||function(){return!0},a=!n(15)(function(){return s(Object.preventExtensions({}))}),f=function(t){c(t,r,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return a&&d.NEED&&s(t)&&!i(t,r)&&f(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,n){var r=n(1),o=n(50).set,i=r.MutationObserver||r.WebKitMutationObserver,c=r.process,u=r.Promise,s="process"==n(11)(c);t.exports=function(){var t,e,n,a=function(){var r,o;for(s&&(r=c.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){c.nextTick(a)};else if(i){var f=!0,l=document.createTextNode("");new i(a).observe(l,{characterData:!0}),n=function(){l.data=f=!f}}else if(u&&u.resolve){var p=u.resolve();n=function(){p.then(a)}}else n=function(){o.call(r,a)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){var r=n(5),o=n(3),i=n(17);t.exports=n(4)?Object.defineProperties:function(t,e){o(t);for(var n,c=i(e),u=c.length,s=0;u>s;)r.f(t,n=c[s++],e[n]);return t}},function(t,e,n){var r=n(31),o=n(18),i=n(8),c=n(35),u=n(6),s=n(43),a=Object.getOwnPropertyDescriptor;e.f=n(4)?a:function(t,e){if(t=i(t),e=c(e,!0),s)try{return a(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(8),o=n(46).f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return c.slice()}};t.exports.f=function(t){return c&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,e,n){var r=n(6),o=n(106),i=n(32)("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,n){var r=n(7);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){"use strict";var r=n(1),o=n(2),i=n(5),c=n(4),u=n(0)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];c&&e&&!e[u]&&i.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(3),o=n(26),i=n(0)("species");t.exports=function(t,e){var n,c=r(t).constructor;return void 0===c||void 0==(n=r(c)[i])?e:o(n)}},function(t,e,n){var r=n(34),o=n(28);t.exports=function(t){return function(e,n){var i,c,u=String(o(e)),s=r(n),a=u.length;return s<0||s>=a?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===a||(c=u.charCodeAt(s+1))<56320||c>57343?t?u.charAt(s):i:t?u.slice(s,s+2):c-56320+(i-55296<<10)+65536)}}},function(t,e,n){var r=n(34),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(28);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(3),o=n(52);t.exports=n(2).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){var r=n(27),o=n(0)("iterator"),i=n(9);t.exports=n(2).isIterable=function(t){var e=Object(t);return void 0!==e[o]||"@@iterator"in e||i.hasOwnProperty(r(e))}},function(t,e,n){"use strict";var r=n(81),o=n(93),i=n(9),c=n(8);t.exports=n(44)(Array,"Array",function(t,e){this._t=c(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(14);r(r.S+r.F*!n(4),"Object",{defineProperty:n(5).f})},function(t,e,n){"use strict";var r,o,i,c=n(16),u=n(1),s=n(13),a=n(27),f=n(14),l=n(12),p=n(26),h=n(82),d=n(85),v=n(103),y=n(50).set,g=n(96)(),m=u.TypeError,b=u.process,w=u.Promise,x="process"==a(b=u.process),O=function(){},_=!!function(){try{var t=w.resolve(1),e=(t.constructor={})[n(0)("species")]=function(t){t(O,O)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e}catch(t){}}(),j=function(t,e){return t===e||t===w&&e===i},E=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},k=function(t){return j(w,t)?new S(t):new o(t)},S=o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw m("Bad Promise constructor");e=t,n=r}),this.resolve=p(e),this.reject=p(n)},A=function(t){try{t()}catch(t){return{error:t}}},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0;n.length>i;)!function(e){var n,i,c=o?e.ok:e.fail,u=e.resolve,s=e.reject,a=e.domain;try{c?(o||(2==t._h&&N(t),t._h=1),!0===c?n=r:(a&&a.enter(),n=c(r),a&&a.exit()),n===e.promise?s(m("Promise-chain cycle")):(i=E(n))?i.call(n,u,s):u(n)):s(r)}catch(t){s(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&T(t)})}},T=function(t){y.call(u,function(){var e,n,r,o=t._v;if(C(t)&&(e=A(function(){x?b.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=x||C(t)?2:1),t._a=void 0,e)throw e.error})},C=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if((e=n[r++]).fail||!C(e.promise))return!1;return!0},N=function(t){y.call(u,function(){var e;x?b.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},M=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw m("Promise can't be resolved itself");(e=E(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,s(q,r,1),s(M,r,1))}catch(t){M.call(r,t)}}):(n._v=t,n._s=1,P(n,!1))}catch(t){M.call({_w:n,_d:!1},t)}}};_||(w=function(t){h(this,w,"Promise","_h"),p(t),r.call(this);try{t(s(q,this,1),s(M,this,1))}catch(t){M.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(101)(w.prototype,{then:function(t,e){var n=k(v(this,w));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=x?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),S=function(){var t=new r;this.promise=t,this.resolve=s(q,t,1),this.reject=s(M,t,1)}),f(f.G+f.W+f.F*!_,{Promise:w}),n(19)(w,"Promise"),n(102)("Promise"),i=n(2).Promise,f(f.S+f.F*!_,"Promise",{reject:function(t){var e=k(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(c||!_),"Promise",{resolve:function(t){if(t instanceof w&&j(t.constructor,this))return t;var e=k(this);return(0,e.resolve)(t),e.promise}}),f(f.S+f.F*!(_&&n(92)(function(t){w.all(t).catch(O)})),"Promise",{all:function(t){var e=this,n=k(e),r=n.resolve,o=n.reject,i=A(function(){var n=[],i=0,c=1;d(t,!1,function(t){var u=i++,s=!1;n.push(void 0),c++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--c||r(n))},o)}),--c||r(n)});return i&&o(i.error),n.promise},race:function(t){var e=this,n=k(e),r=n.reject,o=A(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(t,e,n){"use strict";var r=n(1),o=n(6),i=n(4),c=n(14),u=n(49),s=n(95).KEY,a=n(15),f=n(33),l=n(19),p=n(20),h=n(0),d=n(37),v=n(36),y=n(94),g=n(84),m=n(89),b=n(3),w=n(8),x=n(35),O=n(18),_=n(45),j=n(99),E=n(98),k=n(5),S=n(17),A=E.f,P=k.f,T=j.f,C=r.Symbol,N=r.JSON,M=N&&N.stringify,q=h("_hidden"),I=h("toPrimitive"),R={}.propertyIsEnumerable,F=f("symbol-registry"),D=f("symbols"),U=f("op-symbols"),z=Object.prototype,B="function"==typeof C,L=r.QObject,J=!L||!L.prototype||!L.prototype.findChild,$=i&&a(function(){return 7!=_(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=A(z,e);r&&delete z[e],P(t,e,n),r&&t!==z&&P(z,e,r)}:P,G=function(t){var e=D[t]=_(C.prototype);return e._k=t,e},W=B&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},H=function(t,e,n){return t===z&&H(U,e,n),b(t),e=x(e,!0),b(n),o(D,e)?(n.enumerable?(o(t,q)&&t[q][e]&&(t[q][e]=!1),n=_(n,{enumerable:O(0,!1)})):(o(t,q)||P(t,q,O(1,{})),t[q][e]=!0),$(t,e,n)):P(t,e,n)},K=function(t,e){b(t);for(var n,r=g(e=w(e)),o=0,i=r.length;i>o;)H(t,n=r[o++],e[n]);return t},Z=function(t,e){return void 0===e?_(t):K(_(t),e)},Y=function(t){var e=R.call(this,t=x(t,!0));return!(this===z&&o(D,t)&&!o(U,t))&&(!(e||!o(this,t)||!o(D,t)||o(this,q)&&this[q][t])||e)},V=function(t,e){if(t=w(t),e=x(e,!0),t!==z||!o(D,e)||o(U,e)){var n=A(t,e);return!n||!o(D,e)||o(t,q)&&t[q][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=T(w(t)),r=[],i=0;n.length>i;)o(D,e=n[i++])||e==q||e==s||r.push(e);return r},X=function(t){for(var e,n=t===z,r=T(n?U:w(t)),i=[],c=0;r.length>c;)!o(D,e=r[c++])||n&&!o(z,e)||i.push(D[e]);return i};B||(u((C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(U,n),o(this,q)&&o(this[q],t)&&(this[q][t]=!1),$(this,t,O(1,n))};return i&&J&&$(z,t,{configurable:!0,set:e}),G(t)}).prototype,"toString",function(){return this._k}),E.f=V,k.f=H,n(46).f=j.f=Q,n(31).f=Y,n(47).f=X,i&&!n(16)&&u(z,"propertyIsEnumerable",Y,!0),d.f=function(t){return G(h(t))}),c(c.G+c.W+c.F*!B,{Symbol:C});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)h(tt[et++]);for(var tt=S(h.store),et=0;tt.length>et;)v(tt[et++]);c(c.S+c.F*!B,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=C(t)},keyFor:function(t){if(W(t))return y(F,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){J=!0},useSimple:function(){J=!1}}),c(c.S+c.F*!B,"Object",{create:Z,defineProperty:H,defineProperties:K,getOwnPropertyDescriptor:V,getOwnPropertyNames:Q,getOwnPropertySymbols:X}),N&&c(c.S+c.F*(!B||a(function(){var t=C();return"[null]"!=M([t])||"{}"!=M({a:t})||"{}"!=M(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!W(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return"function"==typeof(e=r[1])&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!W(e))return e}),r[1]=e,M.apply(N,r)}}}),C.prototype[I]||n(7)(C.prototype,I,C.prototype.valueOf),l(C,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){n(36)("asyncIterator")},function(t,e,n){n(36)("observable")},function(t,e){function n(){return(new Date).getTime()}t.exports=n},function(t,e,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(r,"\\$&")}},function(t,e,n){"use strict";var r=n(41),o=new RegExp(r().source);t.exports=o.test.bind(o)},function(t,e,n){(function(t,r){var o;!function(i){function c(t){throw new RangeError(N[t])}function u(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function s(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+u((t=t.replace(C,".")).split("."),e).join(".")}function a(t){for(var e,n,r=[],o=0,i=t.length;o<i;)(e=t.charCodeAt(o++))>=55296&&e<=56319&&o<i?56320==(64512&(n=t.charCodeAt(o++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--):r.push(e);return r}function f(t){return u(t,function(t){var e="";return t>65535&&(e+=I((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=I(t)}).join("")}function l(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:x}function p(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function h(t,e,n){var r=0;for(t=n?q(t/E):t>>1,t+=q(t/e);t>M*_>>1;r+=x)t=q(t/M);return q(r+(M+1)*t/(t+j))}function d(t){var e,n,r,o,i,u,s,a,p,d,v=[],y=t.length,g=0,m=S,b=k;for((n=t.lastIndexOf(A))<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&c("not-basic"),v.push(t.charCodeAt(r));for(o=n>0?n+1:0;o<y;){for(i=g,u=1,s=x;o>=y&&c("invalid-input"),((a=l(t.charCodeAt(o++)))>=x||a>q((w-g)/u))&&c("overflow"),g+=a*u,p=s<=b?O:s>=b+_?_:s-b,!(a<p);s+=x)u>q(w/(d=x-p))&&c("overflow"),u*=d;b=h(g-i,e=v.length+1,0==i),q(g/e)>w-m&&c("overflow"),m+=q(g/e),g%=e,v.splice(g++,0,m)}return f(v)}function v(t){var e,n,r,o,i,u,s,f,l,d,v,y,g,m,b,j=[];for(y=(t=a(t)).length,e=S,n=0,i=k,u=0;u<y;++u)(v=t[u])<128&&j.push(I(v));for(r=o=j.length,o&&j.push(A);r<y;){for(s=w,u=0;u<y;++u)(v=t[u])>=e&&v<s&&(s=v);for(s-e>q((w-n)/(g=r+1))&&c("overflow"),n+=(s-e)*g,e=s,u=0;u<y;++u)if((v=t[u])<e&&++n>w&&c("overflow"),v==e){for(f=n,l=x;d=l<=i?O:l>=i+_?_:l-i,!(f<d);l+=x)b=f-d,m=x-d,j.push(I(p(d+b%m,0))),f=q(b/m);j.push(I(p(f,0))),i=h(n,g,r==o),n=0,++r}++n,++e}return j.join("")}function y(t){return s(t,function(t){return P.test(t)?d(t.slice(4).toLowerCase()):t})}function g(t){return s(t,function(t){return T.test(t)?"xn--"+v(t):t})}"object"==typeof e&&e&&e.nodeType,"object"==typeof t&&t&&t.nodeType;var m="object"==typeof r&&r;var b,w=2147483647,x=36,O=1,_=26,j=38,E=700,k=72,S=128,A="-",P=/^xn--/,T=/[^\x20-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,N={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=x-O,q=Math.floor,I=String.fromCharCode;b={version:"1.4.1",ucs2:{decode:a,encode:f},decode:d,encode:v,toASCII:g,toUnicode:y},void 0!==(o=function(){return b}.call(e,n,e,t))&&(t.exports=o)}()}).call(e,n(54)(t),n(23))},function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,i){e=e||"&",n=n||"=";var c={};if("string"!=typeof t||0===t.length)return c;var u=/\+/g;t=t.split(e);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var a=t.length;s>0&&a>s&&(a=s);for(var f=0;f<a;++f){var l,p,h,d,v=t[f].replace(u,"%20"),y=v.indexOf(n);y>=0?(l=v.substr(0,y),p=v.substr(y+1)):(l=v,p=""),h=decodeURIComponent(l),d=decodeURIComponent(p),r(c,h)?o(c[h])?c[h].push(d):c[h]=[c[h],d]:c[h]=d}return c};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";function r(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var o=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,u){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?r(c(t),function(c){var u=encodeURIComponent(o(c))+n;return i(t[c])?r(t[c],function(t){return u+encodeURIComponent(o(t))}).join(e):u+encodeURIComponent(o(t[c]))}).join(e):u?encodeURIComponent(o(u))+n+encodeURIComponent(o(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},c=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},function(t,e,n){"use strict";e.decode=e.parse=n(119),e.encode=e.stringify=n(120)},function(t,e,n){"use strict";var r=n(41)();t.exports=function(t){return"string"==typeof t?t.replace(r,""):t}},function(t,e,n){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}}])}); | ||
//# sourceMappingURL=spacebro-client.min.js.map |
{ | ||
"name": "spacebro-client", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "🌟 Connect easily to a Spacebro server", | ||
@@ -15,3 +15,3 @@ "main": "dist/spacebro-client.js", | ||
"coverage": "gulp coverage", | ||
"prepublishOnly": "npm run build" | ||
"prepublish": "npm run build" | ||
}, | ||
@@ -18,0 +18,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1278392
5829