1(window.webpackJsonp=window.webpackJsonp||[]).push([[415],{1065:function(t,e,n){(function(e){var o=n(658),r=n(1066).SCChannel,c=(n(1067).Response,n(1832).AuthEngine),h=n(1833),l=n(1834).SCTransport,f=n(1068),d=n(1838),m=n(369).Buffer,v=n(1841),y=n(659),T=y.InvalidArgumentsError,S=y.InvalidMessageError,E=y.InvalidActionError,_=y.SocketProtocolError,k=y.TimeoutError,C=y.BadConnectionError,w="undefined"!=typeof window,O=function(t){var n=this;o.call(this),this.id=null,this.state=this.CLOSED,this.authState=this.UNAUTHENTICATED,this.signedAuthToken=null,this.authToken=null,this.pendingReconnect=!1,this.pendingReconnectTimeout=null,this.preparingPendingSubscriptions=!1,this.clientId=t.clientId,this.connectTimeout=t.connectTimeout,this.ackTimeout=t.ackTimeout,this.channelPrefix=t.channelPrefix||null,this.disconnectOnUnload=null==t.disconnectOnUnload||t.disconnectOnUnload,this.authTokenName=t.authTokenName,this.pingTimeout=this.ackTimeout,this.pingTimeoutDisabled=!!t.pingTimeoutDisabled,this.active=!0,this._clientMap=t.clientMap||{};var r=Math.pow(2,31)-1,l=function(t){if(n[t]>r)throw new T("The "+t+" value provided exceeded the maximum amount allowed")};if(l("connectTimeout"),l("ackTimeout"),this._localEvents={connect:1,connectAbort:1,close:1,disconnect:1,message:1,error:1,raw:1,kickOut:1,subscribe:1,unsubscribe:1,subscribeStateChange:1,authStateChange:1,authenticate:1,deauthenticate:1,removeAuthToken:1,subscribeRequest:1},this.connectAttempts=0,this._emitBuffer=new d,this.channels={},this.options=t,this._cid=1,this.options.callIdGenerator=function(){return n._cid++},this.options.autoReconnect){null==this.options.autoReconnectOptions&&(this.options.autoReconnectOptions={});var m=this.options.autoReconnectOptions;null==m.initialDelay&&(m.initialDelay=1e4),null==m.randomness&&(m.randomness=1e4),null==m.multiplier&&(m.multiplier=1.5),null==m.maxDelay&&(m.maxDelay=6e4)}if(null==this.options.subscriptionRetryOptions&&(this.options.subscriptionRetryOptions={}),this.options.authEngine?this.auth=this.options.authEngine:this.auth=new c,this.options.codecEngine?this.codec=this.options.codecEngine:this.codec=h,this.options.protocol){var v=new T('The "protocol" option does not affect socketcluster-client. If you want to utilize SSL/TLS - use "secure" option instead');this._onSCError(v)}this.options.path=this.options.path.replace(/\/$/,"")+"/",this.options.query=t.query||{},"string"==typeof this.options.query&&(this.options.query=f.parse(this.options.query)),this._channelEmitter=new o,this._unloadHandler=function(){n.disconnect()},w&&this.disconnectOnUnload&&e.addEventListener&&e.addEventListener("beforeunload",this._unloadHandler,!1),this._clientMap[this.clientId]=this,this.options.autoConnect&&this.connect()};O.prototype=Object.create(o.prototype),O.CONNECTING=O.prototype.CONNECTING=l.prototype.CONNECTING,O.OPEN=O.prototype.OPEN=l.prototype.OPEN,O.CLOSED=O.prototype.CLOSED=l.prototype.CLOSED,O.AUTHENTICATED=O.prototype.AUTHENTICATED="authenticated",O.UNAUTHENTICATED=O.prototype.UNAUTHENTICATED="unauthenticated",O.PENDING=O.prototype.PENDING="pending",O.ignoreStatuses=y.socketProtocolIgnoreStatuses,O.errorStatuses=y.socketProtocolErrorStatuses,O.prototype._privateEventHandlerMap={"#publish":function(data){var t=this._undecorateChannelName(data.channel);this.isSubscribed(t,!0)&&this._channelEmitter.emit(t,data.data)},"#kickOut":function(data){var t=this._undecorateChannelName(data.channel),e=this.channels[t];e&&(o.prototype.emit.call(this,"kickOut",data.message,t),e.emit("kickOut",data.message,t),this._triggerChannelUnsubscribe(e))},"#setAuthToken":function(data,t){var e=this;if(data){this.auth.saveToken(this.authTokenName,data.token,{},(function(n){n?(t.error(n),e._onSCError(n)):(e._changeToAuthenticatedState(data.token),t.end())}))}else t.error(new S("No token data provided by #setAuthToken event"))},"#removeAuthToken":function(data,t){var e=this;this.auth.removeToken(this.authTokenName,(function(n,r){n?(t.error(n),e._onSCError(n)):(o.prototype.emit.call(e,"removeAuthToken",r),e._changeToUnauthenticatedStateAndClearTokens(),t.end())}))},"#disconnect":function(data){this.transport.close(data.code,data.data)}},O.prototype.getState=function(){return this.state},O.prototype.getBytesReceived=function(){return this.transport.getBytesReceived()},O.prototype.deauthenticate=function(t){var e=this;this.auth.removeToken(this.authTokenName,(function(n,r){n?e._onSCError(n):(o.prototype.emit.call(e,"removeAuthToken",r),e.state!==e.CLOSED&&e.emit("#removeAuthToken"),e._changeToUnauthenticatedStateAndClearTokens()),t&&t(n)}))},O.prototype.connect=O.prototype.open=function(){var t=this;if(this.active)this.state===this.CLOSED&&(this.pendingReconnect=!1,this.pendingReconnectTimeout=null,clearTimeout(this._reconnectTimeoutRef),this.state=this.CONNECTING,o.prototype.emit.call(this,"connecting"),this.transport&&this.transport.off(),this.transport=new l(this.auth,this.codec,this.options),this.transport.on("open",(function(e){t.state=t.OPEN,t._onSCOpen(e)})),this.transport.on("error",(function(e){t._onSCError(e)})),this.transport.on("close",(function(code,data){t.state=t.CLOSED,t._onSCClose(code,data)})),this.transport.on("openAbort",(function(code,data){t.state=t.CLOSED,t._onSCClose(code,data,!0)})),this.transport.on("event",(function(e,data,n){t._onSCEvent(e,data,n)})));else{var e=new E("Cannot connect a destroyed client");this._onSCError(e)}},O.prototype.reconnect=function(code,data){this.disconnect(code,data),this.connect()},O.prototype.disconnect=function(code,data){if("number"!=typeof(code=code||1e3))throw new T("If specified, the code argument must be a number");this.state===this.OPEN||this.state===this.CONNECTING?this.transport.close(code,data):(this.pendingReconnect=!1,this.pendingReconnectTimeout=null,clearTimeout(this._reconnectTimeoutRef))},O.prototype.destroy=function(code,data){w&&e.removeEventListener&&e.removeEventListener("beforeunload",this._unloadHandler,!1),this.active=!1,this.disconnect(code,data),delete this._clientMap[this.clientId]},O.prototype._changeToUnauthenticatedStateAndClearTokens=function(){if(this.authState!==this.UNAUTHENTICATED){var t=this.authState,e=this.signedAuthToken;this.authState=this.UNAUTHENTICATED,this.signedAuthToken=null,this.authToken=null;var n={oldState:t,newState:this.authState};o.prototype.emit.call(this,"authStateChange",n),o.prototype.emit.call(this,"deauthenticate",e)}},O.prototype._changeToAuthenticatedState=function(t){if(this.signedAuthToken=t,this.authToken=this._extractAuthTokenData(t),this.authState!==this.AUTHENTICATED){var e=this.authState;this.authState=this.AUTHENTICATED;var n={oldState:e,newState:this.authState,signedAuthToken:t,authToken:this.authToken};this.preparingPendingSubscriptions||this.processPendingSubscriptions(),o.prototype.emit.call(this,"authStateChange",n)}o.prototype.emit.call(this,"authenticate",t)},O.prototype.decodeBase64=function(t){return m.from(t,"base64").toString("utf8")},O.prototype.encodeBase64=function(t){return m.from(t,"utf8").toString("base64")},O.prototype._extractAuthTokenData=function(t){var e=(t||"").split(".")[1];if(null!=e){var n=e;try{return n=this.decodeBase64(n),JSON.parse(n)}catch(t){return n}}return null},O.prototype.getAuthToken=function(){return this.authToken},O.prototype.getSignedAuthToken=function(){return this.signedAuthToken},O.prototype.authenticate=function(t,e){var n=this;
1this.emit("#authenticate",t,(function(o,r){r&&null!=r.isAuthenticated?r.authError&&(r.authError=y.hydrateError(r.authError)):r={isAuthenticated:n.authState,authError:null},o?("BadConnectionError"!==o.name&&"TimeoutError"!==o.name&&n._changeToUnauthenticatedStateAndClearTokens(),e&&e(o,r)):n.auth.saveToken(n.authTokenName,t,{},(function(o){o&&n._onSCError(o),r.isAuthenticated?n._changeToAuthenticatedState(t):n._changeToUnauthenticatedStateAndClearTokens(),e&&e(o,r)}))}))},O.prototype._tryReconnect=function(t){var e,n=this,o=this.connectAttempts++,r=this.options.autoReconnectOptions;if(null==t||o>0){var c=Math.round(r.initialDelay+(r.randomness||0)*Math.random());e=Math.round(c*Math.pow(r.multiplier,o))}else e=t;e>r.maxDelay&&(e=r.maxDelay),clearTimeout(this._reconnectTimeoutRef),this.pendingReconnect=!0,this.pendingReconnectTimeout=e,this._reconnectTimeoutRef=setTimeout((function(){n.connect()}),e)},O.prototype._onSCOpen=function(t){var e=this;this.preparingPendingSubscriptions=!0,t?(this.id=t.id,this.pingTimeout=t.pingTimeout,this.transport.pingTimeout=this.pingTimeout,t.isAuthenticated?this._changeToAuthenticatedState(t.authToken):this._changeToUnauthenticatedStateAndClearTokens()):this._changeToUnauthenticatedStateAndClearTokens(),this.connectAttempts=0,this.options.autoSubscribeOnConnect&&this.processPendingSubscriptions(),o.prototype.emit.call(this,"connect",t,(function(){e.processPendingSubscriptions()})),this.state===this.OPEN&&this._flushEmitBuffer()},O.prototype._onSCError=function(t){var e=this;setTimeout((function(){if(e.listeners("error").length<1)throw t;o.prototype.emit.call(e,"error",t)}),0)},O.prototype._suspendSubscriptions=function(){var t,e;for(var n in this.channels)this.channels.hasOwnProperty(n)&&(e=(t=this.channels[n]).state===t.SUBSCRIBED||t.state===t.PENDING?t.PENDING:t.UNSUBSCRIBED,this._triggerChannelUnsubscribe(t,e))},O.prototype._abortAllPendingEventsDueToBadConnection=function(t){for(var e,n=this._emitBuffer.head;n;){e=n.next;var o=n.data;clearTimeout(o.timeout),delete o.timeout,n.detach(),n=e;var r=o.callback;if(r){delete o.callback;var c="Event '"+o.event+"' was aborted due to a bad connection",h=new C(c,t);r.call(o,h,o)}o.cid&&this.transport.cancelPendingResponse(o.cid)}},O.prototype._onSCClose=function(code,data,t){var e=this;if(this.id=null,this.transport&&this.transport.off(),this.pendingReconnect=!1,this.pendingReconnectTimeout=null,clearTimeout(this._reconnectTimeoutRef),this._suspendSubscriptions(),this._abortAllPendingEventsDueToBadConnection(t?"connectAbort":"disconnect"),this.options.autoReconnect&&(4e3===code||4001===code||1005===code?this._tryReconnect(0):1e3!==code&&code<4500&&this._tryReconnect()),t?o.prototype.emit.call(e,"connectAbort",code,data):o.prototype.emit.call(e,"disconnect",code,data),o.prototype.emit.call(e,"close",code,data),!O.ignoreStatuses[code]){var n;n=data?"Socket connection closed with status code "+code+" and reason: "+data:"Socket connection closed with status code "+code;var r=new _(O.errorStatuses[code]||n,code);this._onSCError(r)}},O.prototype._onSCEvent=function(t,data,e){var n=this._privateEventHandlerMap[t];n?n.call(this,data,e):o.prototype.emit.call(this,t,data,(function(){e&&e.callback.apply(e,arguments)}))},O.prototype.decode=function(t){return this.transport.decode(t)},O.prototype.encode=function(object){return this.transport.encode(object)},O.prototype._flushEmitBuffer=function(){for(var t,e=this._emitBuffer.head;e;){t=e.next;var n=e.data;e.detach(),this.transport.emitObject(n),e=t}},O.prototype._handleEventAckTimeout=function(t,e){e&&e.detach(),delete t.timeout;var n=t.callback;if(n){delete t.callback;var o=new k("Event response for '"+t.event+"' timed out");n.call(t,o,t)}t.cid&&this.transport.cancelPendingResponse(t.cid)},O.prototype._emit=function(t,data,e){var n=this;this.state===this.CLOSED&&this.connect();var o={event:t,callback:e},r=new d.Item;this.options.cloneData?o.data=v(data):o.data=data,r.data=o,o.timeout=setTimeout((function(){n._handleEventAckTimeout(o,r)}),this.ackTimeout),this._emitBuffer.append(r),this.state===this.OPEN&&this._flushEmitBuffer()},O.prototype.send=function(data){this.transport.send(data)},O.prototype.emit=function(t,data,e){if(null==this._localEvents[t])this._emit(t,data,e);else if("error"===t)o.prototype.emit.call(this,t,data);else{var n=new E('The "'+t+'" event is reserved and cannot be emitted on a client socket');this._onSCError(n)}},O.prototype.publish=function(t,data,e){var n={channel:this._decorateChannelName(t),data:data};
1this.emit("#publish",n,e)},O.prototype._triggerChannelSubscribe=function(t,e){var n=t.name;if(t.state!==t.SUBSCRIBED){var r=t.state;t.state=t.SUBSCRIBED;var c={channel:n,oldState:r,newState:t.state,subscriptionOptions:e};t.emit("subscribeStateChange",c),t.emit("subscribe",n,e),o.prototype.emit.call(this,"subscribeStateChange",c),o.prototype.emit.call(this,"subscribe",n,e)}},O.prototype._triggerChannelSubscribeFail=function(t,e,n){var r=e.name,c=!e.waitForAuth||this.authState===this.AUTHENTICATED;e.state!==e.UNSUBSCRIBED&&c&&(e.state=e.UNSUBSCRIBED,e.emit("subscribeFail",t,r,n),o.prototype.emit.call(this,"subscribeFail",t,r,n))},O.prototype._cancelPendingSubscribeCallback=function(t){null!=t._pendingSubscriptionCid&&(this.transport.cancelPendingResponse(t._pendingSubscriptionCid),delete t._pendingSubscriptionCid)},O.prototype._decorateChannelName=function(t){return this.channelPrefix&&(t=this.channelPrefix+t),t},O.prototype._undecorateChannelName=function(t){return this.channelPrefix&&0===t.indexOf(this.channelPrefix)?t.replace(this.channelPrefix,""):t},O.prototype._trySubscribe=function(t){var e=this,n=!t.waitForAuth||this.authState===this.AUTHENTICATED;if(this.state===this.OPEN&&!this.preparingPendingSubscriptions&&null==t._pendingSubscriptionCid&&n){var r={noTimeout:!0},c={channel:this._decorateChannelName(t.name)};t.waitForAuth&&(r.waitForAuth=!0,c.waitForAuth=r.waitForAuth),t.data&&(c.data=t.data),t.batch&&(r.batch=!0,c.batch=!0),t._pendingSubscriptionCid=this.transport.emit("#subscribe",c,r,(function(n){delete t._pendingSubscriptionCid,n?e._triggerChannelSubscribeFail(n,t,c):e._triggerChannelSubscribe(t,c)})),o.prototype.emit.call(this,"subscribeRequest",t.name,c)}},O.prototype.subscribe=function(t,e){var n=this.channels[t];return n?e&&n.setOptions(e):(n=new r(t,this,e),this.channels[t]=n),n.state===n.UNSUBSCRIBED&&(n.state=n.PENDING,this._trySubscribe(n)),n},O.prototype._triggerChannelUnsubscribe=function(t,e){var n=t.name,r=t.state;if(t.state=e||t.UNSUBSCRIBED,this._cancelPendingSubscribeCallback(t),r===t.SUBSCRIBED){var c={channel:n,oldState:r,newState:t.state};t.emit("subscribeStateChange",c),t.emit("unsubscribe",n),o.prototype.emit.call(this,"subscribeStateChange",c),o.prototype.emit.call(this,"unsubscribe",n)}},O.prototype._tryUnsubscribe=function(t){if(this.state===this.OPEN){var e={noTimeout:!0};t.batch&&(e.batch=!0),this._cancelPendingSubscribeCallback(t);var n=this._decorateChannelName(t.name);this.transport.emit("#unsubscribe",n,e)}},O.prototype.unsubscribe=function(t){var e=this.channels[t];e&&e.state!==e.UNSUBSCRIBED&&(this._triggerChannelUnsubscribe(e),this._tryUnsubscribe(e))},O.prototype.channel=function(t,e){var n=this.channels[t];return n||(n=new r(t,this,e),this.channels[t]=n),n},O.prototype.destroyChannel=function(t){var e=this.channels[t];e&&(e.unwatch(),e.unsubscribe(),delete this.channels[t])},O.prototype.subscriptions=function(t){var e,n=[];for(var o in this.channels)this.channels.hasOwnProperty(o)&&(e=this.channels[o],(t?e&&(e.state===e.SUBSCRIBED||e.state===e.PENDING):e&&e.state===e.SUBSCRIBED)&&n.push(o));return n},O.prototype.isSubscribed=function(t,e){var n=this.channels[t];return e?!!n&&(n.state===n.SUBSCRIBED||n.state===n.PENDING):!!n&&n.state===n.SUBSCRIBED},O.prototype.processPendingSubscriptions=function(){var t=this;this.preparingPendingSubscriptions=!1;var e=[];for(var i in this.channels)if(this.channels.hasOwnProperty(i)){var n=this.channels[i];n.state===n.PENDING&&e.push(n)}e.sort((function(a,b){var t=a.priority||0,e=b.priority||0;return t>e?-1:t<e?1:0})),e.forEach((function(e){t._trySubscribe(e)}))},O.prototype.watch=function(t,e){if("function"!=typeof e)throw new T("No handler function was provided");this._channelEmitter.on(t,e)},O.prototype.unwatch=function(t,e){e?this._channelEmitter.removeListener(t,e):this._channelEmitter.removeAllListeners(t)},O.prototype.watchers=function(t){return this._channelEmitter.listeners(t)},t.exports=O}).call(this,n(132))},1067:function(t,e,n){var o=n(659),r=o.InvalidActionError,c=function(t,e){this.socket=t,this.id=e,this.sent=!1};c.prototype._respond=function(t){if(this.sent)throw new r("Response "+this.id+" has already been sent");this.sent=!0,this.socket.send(this.socket.encode(t))}
1,c.prototype.end=function(data){if(this.id){var t={rid:this.id};void 0!==data&&(t.data=data),this._respond(t)}},c.prototype.error=function(t,data){if(this.id){var e=o.dehydrateError(t),n={rid:this.id,error:e};void 0!==data&&(n.data=data),this._respond(n)}},c.prototype.callback=function(t,data){t?this.error(t,data):this.end(data)},t.exports.Response=c},1379:function(t,e){function n(a,b){return a===b?0:a<b?-1:1}function o(t,e,o){o||(o=n);var i=r(t,e,o);return-1===i?-1:0===o(t[i],e)?i:-1}function r(t,e,o){o||(o=n);for(var r=t.length,c=r-1,h=0,l=-1;c>=h&&h>=0&&c<r;){var f=o(t[l=Math.floor((c+h)/2)],e);if(0===f)return l;f>=0?c=l-1:h=l+1}return l}e.add=function(t,e,o){o||(o=n);var r=t.push(e)-1;for(;r;){if(o(t[r-1],e)<0)return;t[r]=t[r-1],t[r-1]=e,r--}},e.addFromFront=function(t,e,o){o||(o=n);for(var r=t.unshift(e)-1,i=0;i<r;i++){if(o(e,t[i+1])<0)return;t[i]=t[i+1],t[i+1]=e}},e.remove=function(t,e,n){var i=o(t,e,n);return-1!==i&&(t.splice(i,1),!0)},e.has=function(t,e,n){return o(t,e,n)>-1},e.eq=o,e.lte=function(t,e,o){o||(o=n);var i=r(t,e,o);if(-1===i)return-1;for(;i>=0;i--){if(o(t[i],e)<=0)return i}return-1},e.lt=function(t,e,o){o||(o=n);var i=r(t,e,o);if(-1===i)return-1;for(;i>=0;i--){if(o(t[i],e)<0)return i}return-1},e.gte=function(t,e,o){o||(o=n);var i=r(t,e,o);if(-1===i)return-1;for(;i<t.length;i++){if(o(t[i],e)>=0)return i}return-1},e.gt=function(t,e,o){o||(o=n);var i=r(t,e,o);if(-1===i)return-1;for(;i<t.length;i++){if(o(t[i],e)>0)return i}return-1},e.nearest=function(t,e,o){o||(o=n);var r=t.length,c=r-1,h=0,l=-1,f=1;for(;c>=h&&h>=0&&c<r;){var d=o(t[l=Math.floor((c+h)/2)],e);if(0===d)return l;if(d>=0){if(1===f)f=0;else if(2===f)return Math.abs(t[l]-e)>Math.abs(t[l-1]-e)?l-1:l;c=l-1}else{if(1===f)f=2;else if(0===f)return l;h=l+1}}return l}},1436:function(t,e,n){"use strict";e.a=function(t,e){return e=e||{},new Promise((function(n,o){var s=new XMLHttpRequest,r=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return r},entries:function(){return u},get:function(t){return i[t.toLowerCase()]},has:function(t){return t.toLowerCase()in i}}}};for(var c in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){r.push(e=e.toLowerCase()),u.push([e,n]),i[e]=i[e]?i[e]+","+n:n})),n(a())},s.onerror=o,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(c,e.headers[c]);s.send(e.body||null)}))}},1442:function(t,e){function n(t,e){var cursor=t.length,n=new Array(cursor),o={},i=cursor,r=function(t){for(var e=new Map,i=0,n=t.length;i<n;i++){var o=t[i];e.has(o[0])||e.set(o[0],new Set),e.has(o[1])||e.set(o[1],new Set),e.get(o[0]).add(o[1])}return e}(e),c=function(t){for(var e=new Map,i=0,n=t.length;i<n;i++)e.set(t[i],i);return e}(t);for(e.forEach((function(t){if(!c.has(t[0])||!c.has(t[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));i--;)o[i]||h(t[i],i,new Set);return n;function h(t,i,e){if(e.has(t)){var l;try{l=", node was:"+JSON.stringify(t)}catch(t){l=""}throw new Error("Cyclic dependency"+l)}if(!c.has(t))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(t));if(!o[i]){o[i]=!0;var f=r.get(t)||new Set;if(i=(f=Array.from(f)).length){e.add(t);do{var d=f[--i];h(d,c.get(d),e)}while(i);e.delete(t)}n[--cursor]=t}}}t.exports=function(t){return n(function(t){for(var e=new Set,i=0,n=t.length;i<n;i++){var o=t[i];e.add(o[0]),e.add(o[1])}return Array.from(e)}(t),t)},t.exports.array=n},1448:function(t,e,n){"use strict";function o(t){if("function"==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){var e=self.close.bind(self);self.close=function(){return t(),e()}}else{if("function"!=typeof window.addEventListener)return;window.addEventListener("beforeunload",(function(){t()}),!0),window.addEventListener("unload",(function(){t()}),!0)}}n.d(e,"a",(function(){return o}
1))},1449:function(t,e,n){"use strict";(function(t){function o(e){t.on("exit",(function(){return e()})),t.on("beforeExit",(function(){return e().then((function(){return t.exit()}))})),t.on("SIGINT",(function(){return e().then((function(){return t.exit()}))})),t.on("uncaughtException",(function(n){return e().then((function(){console.trace(n),t.exit(101)}))}))}n.d(e,"a",(function(){return o}))}).call(this,n(368))},1760:function(t,e,n){},1769:function(t,e,n){(function(t){var o=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function c(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new c(r.call(setTimeout,o,arguments),clearTimeout)},e.setInterval=function(){return new c(r.call(setInterval,o,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(o,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(1824),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(132))},177:function(t,e,n){"use strict";n.d(e,"a",(function(){return $})),n.d(e,"b",(function(){return vt})),n.d(e,"c",(function(){return pt})),n.d(e,"d",(function(){return mt})),n.d(e,"e",(function(){return gt})),n.d(e,"f",(function(){return ut})),n.d(e,"g",(function(){return ct})),n.d(e,"h",(function(){return ot}));n(59),n(151),n(17),n(131),n(186),n(20),n(21);var o=n(87),r=n(3),c=n(971),h=n(84),l=n(120),f=n(121);n(79),n(39),n(56),n(203),n(51),n(32),n(19),n(115),n(10),n(88),n(61),n(411),n(16),n(444),n(1022),n(62),n(15),n(81),n(201);function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function m(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function v(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,c=!0,h=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){h=!0,r=t},f:function(){try{c||null==n.return||n.return()}finally{if(h)throw r}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var T=/[^\0-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,E={overflow:"Overflow Error","not-basic":"Illegal Input","invalid-input":"Invalid Input"},_=Math.floor,k=String.fromCharCode;function s(t){throw new RangeError(E[t])}var C=function(t,e){return t+22+75*(t<26)-((0!=e)<<5)},u=function(t,e,n){var o=0;for(t=n?_(t/700):t>>1,t+=_(t/e);t>455;o+=36)t=_(t/35);return _(o+36*t/(t+38))};function w(t){return function(t,e){var n=t.split("@"),o="";n.length>1&&(o=n[0]+"@",t=n[1]);var r=function(t,e){for(var n=[],o=t.length;o--;)n[o]=e(t[o]);return n}((t=t.replace(S,".")).split("."),(function(t){return T.test(t)?"xn--"+function(t){var e,n=[],o=(t=function(t){for(var e=[],n=0,o=t.length;n<o;){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<o){var c=t.charCodeAt(n++);56320==(64512&c)?e.push(((1023&r)<<10)+(1023&c)+65536):(e.push(r),n--)}else e.push(r)}return e}(t)).length,r=128,i=0,c=72,h=v(t);try{for(h.s();!(e=h.n()).done;){var l=e.value;l<128&&n.push(k(l))}}catch(t){h.e(t)}finally{h.f()}var f=n.length,p=f;for(f&&n.push("-");p<o;){var d,m=2147483647,y=v(t);try{for(y.s();!(d=y.n()).done;){var T=d.value;T>=r&&T<m&&(m=T)}}catch(t){y.e(t)}finally{y.f()}var a=p+1;m-r>_((2147483647-i)/a)&&s("overflow"),i+=(m-r)*a,r=m;var S,E=v(t);try{for(E.s();!(S=E.n()).done;){var w=S.value;if(w<r&&++i>2147483647&&s("overflow"),w==r){for(var O=i,N=36;;N+=36){var A=N<=c?1:N>=c+26?26:N-c;if(O<A)break;var I=O-A,P=36-A;n.push(k(C(A+I%P,0))),O=_(I/P)}
1n.push(k(C(O,0))),c=u(i,a,p==f),i=0,++p}}}catch(t){E.e(t)}finally{E.f()}++i,++r}return n.join("")}(t):t})).join(".");return o+r}(t)}var O=/#/g,N=/&/g,A=/=/g,I=/\?/g,P=/\+/g,D=/%5B/gi,R=/%5D/gi,U=/%5E/gi,B=/%60/gi,j=/%7B/gi,x=/%7C/gi,L=/%7D/gi,M=/%20/gi,F=/%2F/gi,G=/%252F/gi;function H(text){return encodeURI(""+text).replace(x,"|").replace(D,"[").replace(R,"]")}function W(text){return H(text).replace(P,"%2B").replace(M,"+").replace(O,"%23").replace(N,"%26").replace(B,"`").replace(j,"{").replace(L,"}").replace(U,"^")}function z(text){return W(text).replace(A,"%3D")}function J(text){return H(text).replace(O,"%23").replace(I,"%3F").replace(G,"%2F").replace(N,"%26").replace(P,"%2B")}function $(){var text=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{return decodeURIComponent(""+text)}catch(t){return""+text}}function V(text){return $(text.replace(F,"%252F"))}function X(text){return $(text.replace(P," "))}function K(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return w(t)}function Q(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e={};"?"===t[0]&&(t=t.substr(1));var n,o=v(t.split("&"));try{for(o.s();!(n=o.n()).done;){var param=n.value,r=param.match(/([^=]+)=?(.*)/)||[];if(!(r.length<2)){var c=$(r[1]);if("__proto__"!==c&&"constructor"!==c){var h=X(r[2]||"");e[c]?Array.isArray(e[c])?e[c].push(h):e[c]=[e[c],h]:e[c]=h}}}}catch(t){o.e(t)}finally{o.f()}return e}function Y(t){return Object.keys(t).map((function(e){return n=e,(o=t[e])?Array.isArray(o)?o.map((function(t){return"".concat(z(n),"=").concat(W(t))})).join("&"):"".concat(z(n),"=").concat(W(o)):z(n);var n,o})).join("&")}var Z=function(){function t(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(Object(l.a)(this,t),this.query={},"string"!=typeof input)throw new TypeError("URL input should be string received ".concat(Object(h.a)(input)," (").concat(input,")"));var e=yt(input);this.protocol=$(e.protocol),this.host=$(e.host),this.auth=$(e.auth),this.pathname=V(e.pathname),this.query=Q(e.search),this.hash=$(e.hash)}return Object(f.a)(t,[{key:"hostname",get:function(){return Tt(this.host).hostname}},{key:"port",get:function(){return Tt(this.host).port||""}},{key:"username",get:function(){return bt(this.auth).username}},{key:"password",get:function(){return bt(this.auth).password||""}},{key:"hasProtocol",get:function(){return this.protocol.length}},{key:"isAbsolute",get:function(){return this.hasProtocol||"/"===this.pathname[0]}},{key:"search",get:function(){var q=Y(this.query);return q.length?"?"+q:""}},{key:"searchParams",get:function(){var t=this,p=new URLSearchParams,e=function(e){var n=t.query[e];Array.isArray(n)?n.forEach((function(t){return p.append(e,t)})):p.append(e,n||"")};for(var n in this.query)e(n);return p}},{key:"origin",get:function(){return(this.protocol?this.protocol+"//":"")+K(this.host)}},{key:"fullpath",get:function(){return J(this.pathname)+this.search+H(this.hash).replace(j,"{").replace(L,"}").replace(U,"^")}},{key:"encodedAuth",get:function(){if(!this.auth)return"";var t=bt(this.auth),e=t.username,n=t.password;return encodeURIComponent(e)+(n?":"+encodeURIComponent(n):"")}},{key:"href",get:function(){var t=this.encodedAuth,e=(this.protocol?this.protocol+"//":"")+(t?t+"@":"")+K(this.host);return this.hasProtocol&&this.isAbsolute?e+this.fullpath:this.fullpath}},{key:"append",value:function(t){if(t.hasProtocol)throw new Error("Cannot append a URL with protocol");Object.assign(this.query,t.query),t.pathname&&(this.pathname=it(this.pathname)+st(t.pathname)),t.hash&&(this.hash=t.hash)}},{key:"toJSON",value:function(){return this.href}},{key:"toString",value:function(){return this.href}}]),t}();function tt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return/^\w+:\/\/.+/.test(t)||e&&/^\/\/[^/]+/.test(t)}var et=/\/$|\/\?/;function nt(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?et.test(input):input.endsWith("/")}function ot(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return(nt(input)?input.slice(0,-1):input)||"/";if(!nt(input,!0))return input||"/";var e=input.split("?"),n=Object(c.a)(e),o=n[0],s=n.slice(1);return(o.slice(0,-1)||"/")+(s.length?"?".concat(s.join("?")):"")}function it(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return input.endsWith("/")?input:input+"/";if(nt(input,!0))return input||"/";var e=input.split("?"),n=Object(c.a)(e),o=n[0],s=n.slice(1);return o+"/"+(s.length?"?".concat(s.join("?")):"")}function at(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return input.startsWith("/")}function st(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(at(input)?input.substr(1):input)||"/"}function ct(input,base){if(ht(base))return input;var t=ot(base);return input.startsWith(t)?input.substr(t.length)||"/":input}function ut(input,t){var e=yt(input),n=m(m({},Q(e.search)),t);return e.search=Y(n),function(t){var e=t.pathname+(t.search?(t.search.startsWith("?")?""
1:"?")+t.search:"")+t.hash;if(!t.protocol)return e;return t.protocol+"//"+(t.auth?t.auth+"@":"")+t.host+e}(e)}function ht(t){return!t||"/"===t}function lt(t){return t&&"/"!==t}function pt(base){for(var t=base||"",e=arguments.length,input=new Array(e>1?e-1:0),n=1;n<e;n++)input[n-1]=arguments[n];var o,r=v(input.filter(lt));try{for(r.s();!(o=r.n()).done;){var i=o.value;t=t?it(t)+st(i):i}}catch(t){r.e(t)}finally{r.f()}return t}function ft(input){return new Z(input)}function mt(input){return ft(input).toString()}function vt(t,e){return $(ot(t))===$(ot(e))}function yt(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!tt(input,!0))return t?yt(t+input):gt(input);var e=(input.replace(/\\/g,"/").match(/([^:/]+:)?\/\/([^/@]+@)?(.*)/)||[]).splice(1),n=Object(o.a)(e,3),r=n[0],c=void 0===r?"":r,h=n[1],l=n[2],f=(l.match(/([^/?#]*)(.*)?/)||[]).splice(1),d=Object(o.a)(f,2),m=d[0],v=void 0===m?"":m,y=d[1],path=void 0===y?"":y,T=gt(path),S=T.pathname,E=T.search,_=T.hash;return{protocol:c,auth:h?h.substr(0,h.length-1):"",host:v,pathname:S,search:E,hash:_}}function gt(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(input.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1),e=Object(o.a)(t,3),n=e[0],r=void 0===n?"":n,c=e[1],h=void 0===c?"":c,l=e[2],f=void 0===l?"":l;return{pathname:r,search:h,hash:f}}function bt(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=input.split(":"),e=Object(o.a)(t,2),n=e[0],r=e[1];return{username:$(n),password:$(r)}}function Tt(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(input.match(/([^/]*)(:0-9+)?/)||[]).splice(1),e=Object(o.a)(t,2),n=e[0],r=e[1];return{hostname:$(n),port:r}}},1824:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var o,html,r,c,h,l=1,f={},d=!1,m=t.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(t);v=v&&v.setTimeout?v:t,"[object process]"==={}.toString.call(t.process)?o=function(t){e.nextTick((function(){T(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(t){T(t.data)},o=function(t){r.port2.postMessage(t)}):m&&"onreadystatechange"in m.createElement("script")?(html=m.documentElement,o=function(t){var script=m.createElement("script");script.onreadystatechange=function(){T(t),script.onreadystatechange=null,html.removeChild(script),script=null},html.appendChild(script)}):o=function(t){setTimeout(T,0,t)}:(c="setImmediate$"+Math.random()+"$",h=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(c)&&T(+e.data.slice(c.length))},t.addEventListener?t.addEventListener("message",h,!1):t.attachEvent("onmessage",h),o=function(e){t.postMessage(c+e,"*")}),v.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var n={callback:t,args:e};return f[l]=n,o(l),l++},v.clearImmediate=y}function y(t){delete f[t]}function T(t){if(d)setTimeout(T,0,t);else{var e=f[t];if(e){d=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{y(t),d=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(132),n(368))},1832:function(t,e,n){(function(e){var n=function(){this._internalStorage={},this.isLocalStorageEnabled=this._checkLocalStorageEnabled()};n.prototype._checkLocalStorageEnabled=function(){var t;try{e.localStorage,e.localStorage.setItem("__scLocalStorageTest",1),e.localStorage.removeItem("__scLocalStorageTest")}catch(e){t=e}return!t},n.prototype.saveToken=function(t,n,o,r){this.isLocalStorageEnabled&&e.localStorage?e.localStorage.setItem(t,n):this._internalStorage[t]=n,r&&r(null,n)},n.prototype.removeToken=function(t,n){var o;this.loadToken(t,(function(t,e){o=e})),this.isLocalStorageEnabled&&e.localStorage?e.localStorage.removeItem(t):delete this._internalStorage[t],n&&n(null,o)},n.prototype.loadToken=function(t,n){n(null,this.isLocalStorageEnabled&&e.localStorage?e.localStorage.getItem(t):this._internalStorage[t]||null)},t.exports.AuthEngine=n}).call(this,n(132))},1834:function(t,e,n){(function(e){var o,r,c=n(658),h=n(1067).Response,l=n(1068);e.WebSocket?(o=e.WebSocket,r=function(t,e){return new o(t)}):(o=n(1837),r=function(t,e){return new o(t,null,e)});var f=n(659),d=f.TimeoutError,m=f.BadConnectionError,v=function(t,e,n){var o=this;
1this.state=this.CLOSED,this.auth=t,this.codec=e,this.options=n,this.connectTimeout=n.connectTimeout,this.pingTimeout=n.ackTimeout,this.pingTimeoutDisabled=!!n.pingTimeoutDisabled,this.callIdGenerator=n.callIdGenerator,this.authTokenName=n.authTokenName,this._pingTimeoutTicker=null,this._callbackMap={},this._batchSendList=[],this.state=this.CONNECTING;var c=this.uri(),h=r(c,this.options);h.binaryType=this.options.binaryType,this.socket=h,h.onopen=function(){o._onOpen()},h.onclose=function(t){var code;code=null==t.code?1005:t.code,o._onClose(code,t.reason)},h.onmessage=function(t,e){o._onMessage(t.data)},h.onerror=function(t){o.state===o.CONNECTING&&o._onClose(1006)},this._connectTimeoutRef=setTimeout((function(){o._onClose(4007),o.socket.close(4007)}),this.connectTimeout)};v.prototype=Object.create(c.prototype),v.CONNECTING=v.prototype.CONNECTING="connecting",v.OPEN=v.prototype.OPEN="open",v.CLOSED=v.prototype.CLOSED="closed",v.prototype.uri=function(){var t,e=this.options.query||{},n=this.options.secure?"wss":"ws";if(this.options.timestampRequests&&(e[this.options.timestampParam]=(new Date).getTime()),(e=l.encode(e)).length&&(e="?"+e),this.options.host)t=this.options.host;else{var o="";this.options.port&&("wss"===n&&443!==this.options.port||"ws"===n&&80!==this.options.port)&&(o=":"+this.options.port),t=this.options.hostname+o}return n+"://"+t+this.options.path+e},v.prototype._onOpen=function(){var t=this;clearTimeout(this._connectTimeoutRef),this._resetPingTimeout(),this._handshake((function(e,n){var o;e?(o=n&&n.code?n.code:4003,t._onError(e),t._onClose(o,e.toString()),t.socket.close(o)):(t.state=t.OPEN,c.prototype.emit.call(t,"open",n),t._resetPingTimeout())}))},v.prototype._handshake=function(t){var e=this;this.auth.loadToken(this.authTokenName,(function(n,o){if(n)t(n);else{e.emit("#handshake",{authToken:o},{force:!0}
1,(function(e,n){n&&(n.authToken=o,n.authError&&(n.authError=f.hydrateError(n.authError))),t(e,n)}))}}))},v.prototype._abortAllPendingEventsDueToBadConnection=function(t){for(var i in this._callbackMap)if(this._callbackMap.hasOwnProperty(i)){var e=this._callbackMap[i];delete this._callbackMap[i],clearTimeout(e.timeout),delete e.timeout;var n="Event '"+e.event+"' was aborted due to a bad connection",o=new m(n,t),r=e.callback;delete e.callback,r.call(e,o,e)}},v.prototype._onClose=function(code,data){delete this.socket.onopen,delete this.socket.onclose,delete this.socket.onmessage,delete this.socket.onerror,clearTimeout(this._connectTimeoutRef),clearTimeout(this._pingTimeoutTicker),clearTimeout(this._batchTimeout),this.state===this.OPEN?(this.state=this.CLOSED,c.prototype.emit.call(this,"close",code,data),this._abortAllPendingEventsDueToBadConnection("disconnect")):this.state===this.CONNECTING&&(this.state=this.CLOSED,c.prototype.emit.call(this,"openAbort",code,data),this._abortAllPendingEventsDueToBadConnection("connectAbort"))},v.prototype._handleEventObject=function(t,e){if(t&&null!=t.event){var n=new h(this,t.cid);c.prototype.emit.call(this,"event",t.event,t.data,n)}else if(t&&null!=t.rid){var o=this._callbackMap[t.rid];if(o&&(clearTimeout(o.timeout),delete o.timeout,delete this._callbackMap[t.rid],o.callback)){var r=f.hydrateError(t.error);o.callback(r,t.data)}}else c.prototype.emit.call(this,"event","raw",e)},v.prototype._onMessage=function(t){c.prototype.emit.call(this,"event","message",t);var e=this.decode(t);if("#1"===e)this._resetPingTimeout(),this.socket.readyState===this.socket.OPEN&&this.sendObject("#2");else if(Array.isArray(e))for(var n=e.length,i=0;i<n;i++)this._handleEventObject(e[i],t);else this._handleEventObject(e,t)},v.prototype._onError=function(t){c.prototype.emit.call(this,"error",t)},v.prototype._resetPingTimeout=function(){if(!this.pingTimeoutDisabled){var t=this;(new Date).getTime();clearTimeout(this._pingTimeoutTicker),this._pingTimeoutTicker=setTimeout((function(){t._onClose(4e3),t.socket.close(4e3)}),this.pingTimeout)}},v.prototype.getBytesReceived=function(){return this.socket.bytesReceived},v.prototype.close=function(code,data){if(code=code||1e3,this.state===this.OPEN){var t={code:code,data:data};this.emit("#disconnect",t),this._onClose(code,data),this.socket.close(code)}else this.state===this.CONNECTING&&(this._onClose(code,data),this.socket.close(code))},v.prototype.emitObject=function(t,e){var n={event:t.event,data:t.data};return t.callback&&(n.cid=t.cid=this.callIdGenerator(),this._callbackMap[t.cid]=t),this.sendObject(n,e),t.cid||null},v.prototype._handleEventAckTimeout=function(t){t.cid&&delete this._callbackMap[t.cid],delete t.timeout;var e=t.callback;if(e){delete t.callback;var n=new d("Event response for '"+t.event+"' timed out");e.call(t,n,t)}},v.prototype.emit=function(t,data,a,b){var e,n,o=this;b?(n=a,e=b):a instanceof Function?(n={},e=a):n=a;var r={event:t,data:data,callback:e};e&&!n.noTimeout&&(r.timeout=setTimeout((function(){o._handleEventAckTimeout(r)}),this.options.ackTimeout));var c=null;return(this.state===this.OPEN||n.force)&&(c=this.emitObject(r,n)),c},v.prototype.cancelPendingResponse=function(t){delete this._callbackMap[t]},v.prototype.decode=function(t){return this.codec.decode(t)},v.prototype.encode=function(object){return this.codec.encode(object)},v.prototype.send=function(data){this.socket.readyState!==this.socket.OPEN?this._onClose(1005):this.socket.send(data)},v.prototype.serializeObject=function(object){var t,e;try{t=this.encode(object)}catch(t){e=t,this._onError(e)}return e?null:t},v.prototype.sendObjectBatch=function(object){var t=this;this._batchSendList.push(object),this._batchTimeout||(this._batchTimeout=setTimeout((function(){if(delete t._batchTimeout,t._batchSendList.length){var e=t.serializeObject(t._batchSendList);null!=e&&t.send(e),t._batchSendList=[]}}),this.options.pubSubBatchDuration||0))},v.prototype.sendObjectSingle=function(object){var t=this.serializeObject(object);null!=t&&this.send(t)},v.prototype.sendObject=function(object,t){t&&t.batch?this.sendObjectBatch(object):this.sendObjectSingle(object)},t.exports.SCTransport=v}).call(this,n(132))},1837:function(t,e){var n,o=(n="undefined"!=typeof WorkerGlobalScope?self:"undefined"!=typeof window&&window||function(){return this}()).WebSocket||n.MozWebSocket;function r(t,e,n){return e?new o(t,e):new o(t)}
1o&&(r.prototype=o.prototype),t.exports=o?r:null},1842:function(t,e,n){(function(e){var o=n(1065),r=n(659),c=n(1843),h=r.InvalidArgumentsError,l={};function f(t,n){var o=null==t.secure?n:t.secure;return t.port||(e.location&&location.port?location.port:o?443:80)}t.exports={create:function(t){if((t=t||{}).host&&!t.host.match(/[^:]+:\d{2,5}/))throw new h('The host option should include both the hostname and the port number in the format "hostname:port"');if(t.host&&t.hostname)throw new h('The host option should already include the hostname and the port number in the format "hostname:port" - Because of this, you should never use host and hostname options together');if(t.host&&t.port)throw new h('The host option should already include the hostname and the port number in the format "hostname:port" - Because of this, you should never use host and port options together');var n=e.location&&"https:"===location.protocol,r={port:f(t,n),hostname:e.location&&location.hostname||"localhost",path:"/socketcluster/",secure:n,autoConnect:!0,autoReconnect:!0,autoSubscribeOnConnect:!0,connectTimeout:2e4,ackTimeout:1e4,timestampRequests:!1,timestampParam:"t",authEngine:null,authTokenName:"socketCluster.authToken",binaryType:"arraybuffer",multiplex:!0,pubSubBatchDuration:null,cloneData:!1};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);if(r.clientMap=l,!1===r.multiplex){r.clientId=c.v4();var d=new o(r);return l[r.clientId]=d,d}return r.clientId=function(t){var e=t.secure?"https://":"http://",n="";if(t.query)if("string"==typeof t.query)n=t.query;else{var o=[],r=t.query;for(var c in r)r.hasOwnProperty(c)&&o.push(c+"="+r[c]);o.length&&(n="?"+o.join("&"))}return e+(t.host?t.host:t.hostname+":"+t.port)+t.path+n}(r),l[r.clientId]?r.autoConnect&&l[r.clientId].connect():l[r.clientId]=new o(r),l[r.clientId]},destroy:function(t){t.destroy()},clients:l}}).call(this,n(132))},1975:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"add",(function(){return f})),n.d(e,"runAll",(function(){return d})),n.d(e,"removeAll",(function(){return m})),n.d(e,"getSize",(function(){return v}));var o=n(1448),r=n(1449),c="[object process]"===Object.prototype.toString.call(void 0!==t?t:0)?r.a:o.a,h=new Set,l=!1;function f(t){if(l||(l=!0,c(d)),"function"!=typeof t)throw new Error("Listener is no function");return h.add(t),{remove:function(){return h.delete(t)},run:function(){return h.delete(t),t()}}}function d(){var t=[];return h.forEach((function(e){t.push(e()),h.delete(e)})),Promise.all(t)}function m(){h.clear()}function v(){return h.size}}.call(this,n(368))},37:function(t,e,n){"use strict";function o(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function r(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach((function(n){void 0===t[n]?t[n]=e[n]:o(e[n])&&o(t[n])&&Object.keys(e[n]).length>0&&r(t[n],e[n])}))}n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return l}));var c="undefined"!=typeof document?document:{},h={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};r(c,h);var l="undefined"!=typeof window?window:{};r(l,{document:h,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}})},950:function(t,e,n){var o=n(1065),r=n(1842);t.exports.factory=r,t.exports.SCClientSocket=o,t.exports.Emitter=n(658),t.exports.create=function(t){return r.create(t)},t.exports.connect=t.exports.create,t.exports.destroy=function(t){return r.destroy(t)},t.exports.clients=r.clients,t.exports.version="14.3.1"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.