This repository was archived by the owner on Aug 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path313.049e3bd64205e1696dd2.js
More file actions
1 lines (1 loc) · 66.2 KB
/
313.049e3bd64205e1696dd2.js
File metadata and controls
1 lines (1 loc) · 66.2 KB
1
(self.webpackChunk=self.webpackChunk||[]).push([[313],{3661:b=>{function o(){}b.exports=function(u,p,l){var c=!1;return l=l||o,y.count=u,0===u?p():y;function y(h,d){if(y.count<=0)throw new Error("after called too many times");--y.count,h?(c=!0,p(h),p=l):0===y.count&&!c&&p(null,d)}}},3853:b=>{b.exports=function(s,o,u){var p=s.byteLength;if(o=o||0,u=u||p,s.slice)return s.slice(o,u);if(o<0&&(o+=p),u<0&&(u+=p),u>p&&(u=p),o>=p||o>=u||0===p)return new ArrayBuffer(0);for(var l=new Uint8Array(s),c=new Uint8Array(u-o),y=o,h=0;y<u;y++,h++)c[h]=l[y];return c.buffer}},7591:b=>{function s(o){this.ms=(o=o||{}).min||100,this.max=o.max||1e4,this.factor=o.factor||2,this.jitter=o.jitter>0&&o.jitter<=1?o.jitter:0,this.attempts=0}b.exports=s,s.prototype.duration=function(){var o=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var u=Math.random(),p=Math.floor(u*this.jitter*o);o=0==(1&Math.floor(10*u))?o-p:o+p}return 0|Math.min(o,this.max)},s.prototype.reset=function(){this.attempts=0},s.prototype.setMin=function(o){this.ms=o},s.prototype.setMax=function(o){this.max=o},s.prototype.setJitter=function(o){this.jitter=o}},7846:(b,s)=>{!function(){"use strict";for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=new Uint8Array(256),p=0;p<o.length;p++)u[o.charCodeAt(p)]=p;s.encode=function(l){var y,c=new Uint8Array(l),h=c.length,d="";for(y=0;y<h;y+=3)d+=o[c[y]>>2],d+=o[(3&c[y])<<4|c[y+1]>>4],d+=o[(15&c[y+1])<<2|c[y+2]>>6],d+=o[63&c[y+2]];return h%3==2?d=d.substring(0,d.length-1)+"=":h%3==1&&(d=d.substring(0,d.length-2)+"=="),d},s.decode=function(l){var h,r,a,n,t,c=.75*l.length,y=l.length,d=0;"="===l[l.length-1]&&(c--,"="===l[l.length-2]&&c--);var e=new ArrayBuffer(c),i=new Uint8Array(e);for(h=0;h<y;h+=4)r=u[l.charCodeAt(h)],a=u[l.charCodeAt(h+1)],n=u[l.charCodeAt(h+2)],t=u[l.charCodeAt(h+3)],i[d++]=r<<2|a>>4,i[d++]=(15&a)<<4|n>>2,i[d++]=(3&n)<<6|63&t;return e}}()},3084:b=>{var s=void 0!==s?s:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,o=function(){try{return 2===new Blob(["hi"]).size}catch(d){return!1}}(),u=o&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(d){return!1}}(),p=s&&s.prototype.append&&s.prototype.getBlob;function l(h){return h.map(function(d){if(d.buffer instanceof ArrayBuffer){var r=d.buffer;if(d.byteLength!==r.byteLength){var a=new Uint8Array(d.byteLength);a.set(new Uint8Array(r,d.byteOffset,d.byteLength)),r=a.buffer}return r}return d})}function c(h,d){d=d||{};var r=new s;return l(h).forEach(function(a){r.append(a)}),d.type?r.getBlob(d.type):r.getBlob()}function y(h,d){return new Blob(l(h),d||{})}"undefined"!=typeof Blob&&(c.prototype=Blob.prototype,y.prototype=Blob.prototype),b.exports=o?u?Blob:y:p?c:void 0},9782:b=>{var s=[].slice;b.exports=function(o,u){if("string"==typeof u&&(u=o[u]),"function"!=typeof u)throw new Error("bind() requires a function");var p=s.call(arguments,2);return function(){return u.apply(o,p.concat(s.call(arguments)))}}},5899:b=>{function s(u){if(u)return function(u){for(var p in s.prototype)u[p]=s.prototype[p];return u}(u)}b.exports=s,s.prototype.on=s.prototype.addEventListener=function(u,p){return this._callbacks=this._callbacks||{},(this._callbacks["$"+u]=this._callbacks["$"+u]||[]).push(p),this},s.prototype.once=function(u,p){function l(){this.off(u,l),p.apply(this,arguments)}return l.fn=p,this.on(u,l),this},s.prototype.off=s.prototype.removeListener=s.prototype.removeAllListeners=s.prototype.removeEventListener=function(u,p){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var l=this._callbacks["$"+u];if(!l)return this;if(1==arguments.length)return delete this._callbacks["$"+u],this;for(var c,y=0;y<l.length;y++)if((c=l[y])===p||c.fn===p){l.splice(y,1);break}return this},s.prototype.emit=function(u){this._callbacks=this._callbacks||{};var p=[].slice.call(arguments,1),l=this._callbacks["$"+u];if(l)for(var c=0,y=(l=l.slice(0)).length;c<y;++c)l[c].apply(this,p);return this},s.prototype.listeners=function(u){return this._callbacks=this._callbacks||{},this._callbacks["$"+u]||[]},s.prototype.hasListeners=function(u){return!!this.listeners(u).length}},3338:b=>{b.exports=function(s,o){var u=function(){};u.prototype=o.prototype,s.prototype=new u,s.prototype.constructor=s}},2036:(b,s,o)=>{s.log=function(...r){return"object"==typeof console&&console.log&&console.log(...r)},s.formatArgs=function(r){if(r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+b.exports.humanize(this.diff),!this.useColors)return;const a="color: "+this.color;r.splice(1,0,a,"color: inherit");let n=0,t=0;r[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(t=n))}),r.splice(t,0,a)},s.save=function(r){try{r?s.storage.setItem("debug",r):s.storage.removeItem("debug")}catch(a){}},s.load=function(){let r;try{r=s.storage.getItem("debug")}catch(a){}return!r&&"undefined"!=typeof process&&"env"in process&&(r=process.env.DEBUG),r},s.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},s.storage=function(){try{return localStorage}catch(r){}}(),s.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],b.exports=o(9859)(s);const{formatters:d}=b.exports;d.j=function(r){try{return JSON.stringify(r)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}},9859:(b,s,o)=>{b.exports=function(p){function l(e){let i=0;for(let f=0;f<e.length;f++)i=(i<<5)-i+e.charCodeAt(f),i|=0;return c.colors[Math.abs(i)%c.colors.length]}function c(e){let i;function f(...v){if(!f.enabled)return;const g=f,C=Number(new Date);g.diff=C-(i||C),g.prev=i,g.curr=C,i=C,v[0]=c.coerce(v[0]),"string"!=typeof v[0]&&v.unshift("%O");let N=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(w,F)=>{if("%%"===w)return w;N++;const A=c.formatters[F];return"function"==typeof A&&(w=A.call(g,v[N]),v.splice(N,1),N--),w}),c.formatArgs.call(g,v),(g.log||c.log).apply(g,v)}return f.namespace=e,f.enabled=c.enabled(e),f.useColors=c.useColors(),f.color=l(e),f.destroy=y,f.extend=h,"function"==typeof c.init&&c.init(f),c.instances.push(f),f}function y(){const e=c.instances.indexOf(this);return-1!==e&&(c.instances.splice(e,1),!0)}function h(e,i){const f=c(this.namespace+(void 0===i?":":i)+e);return f.log=this.log,f}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return c.debug=c,c.default=c,c.coerce=function(e){return e instanceof Error?e.stack||e.message:e},c.disable=function(){const e=[...c.names.map(n),...c.skips.map(n).map(i=>"-"+i)].join(",");return c.enable(""),e},c.enable=function(e){let i;c.save(e),c.names=[],c.skips=[];const f=("string"==typeof e?e:"").split(/[\s,]+/),v=f.length;for(i=0;i<v;i++)!f[i]||("-"===(e=f[i].replace(/\*/g,".*?"))[0]?c.skips.push(new RegExp("^"+e.substr(1)+"$")):c.names.push(new RegExp("^"+e+"$")));for(i=0;i<c.instances.length;i++){const g=c.instances[i];g.enabled=c.enabled(g.namespace)}},c.enabled=function(e){if("*"===e[e.length-1])return!0;let i,f;for(i=0,f=c.skips.length;i<f;i++)if(c.skips[i].test(e))return!1;for(i=0,f=c.names.length;i<f;i++)if(c.names[i].test(e))return!0;return!1},c.humanize=o(8862),Object.keys(p).forEach(e=>{c[e]=p[e]}),c.instances=[],c.names=[],c.skips=[],c.formatters={},c.selectColor=l,c.enable(c.load()),c}},8338:(b,s,o)=>{b.exports=o(1547),b.exports.parser=o(9472)},1547:(b,s,o)=>{var u=o(1674),p=o(5899),l=o(2036)("engine.io-client:socket"),c=o(7736),y=o(9472),h=o(4171),d=o(9603);function r(n,t){if(!(this instanceof r))return new r(n,t);t=t||{},n&&"object"==typeof n&&(t=n,n=null),n?(n=h(n),t.hostname=n.host,t.secure="https"===n.protocol||"wss"===n.protocol,t.port=n.port,n.query&&(t.query=n.query)):t.host&&(t.hostname=h(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=d.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.withCredentials=!1!==t.withCredentials,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||null,this.key=t.key||null,this.passphrase=t.passphrase||null,this.cert=t.cert||null,this.ca=t.ca||null,this.ciphers=t.ciphers||null,this.rejectUnauthorized=void 0===t.rejectUnauthorized||t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}b.exports=r,r.priorWebsocketSuccess=!1,p(r.prototype),r.protocol=y.protocol,r.Socket=r,r.Transport=o(1505),r.transports=o(1674),r.parser=o(9472),r.prototype.createTransport=function(n){l('creating transport "%s"',n);var t=function(n){var t={};for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}(this.query);t.EIO=y.protocol,t.transport=n;var e=this.transportOptions[n]||{};return this.id&&(t.sid=this.id),new u[n]({query:t,socket:this,agent:e.agent||this.agent,hostname:e.hostname||this.hostname,port:e.port||this.port,secure:e.secure||this.secure,path:e.path||this.path,forceJSONP:e.forceJSONP||this.forceJSONP,jsonp:e.jsonp||this.jsonp,forceBase64:e.forceBase64||this.forceBase64,enablesXDR:e.enablesXDR||this.enablesXDR,withCredentials:e.withCredentials||this.withCredentials,timestampRequests:e.timestampRequests||this.timestampRequests,timestampParam:e.timestampParam||this.timestampParam,policyPort:e.policyPort||this.policyPort,pfx:e.pfx||this.pfx,key:e.key||this.key,passphrase:e.passphrase||this.passphrase,cert:e.cert||this.cert,ca:e.ca||this.ca,ciphers:e.ciphers||this.ciphers,rejectUnauthorized:e.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:e.perMessageDeflate||this.perMessageDeflate,extraHeaders:e.extraHeaders||this.extraHeaders,forceNode:e.forceNode||this.forceNode,localAddress:e.localAddress||this.localAddress,requestTimeout:e.requestTimeout||this.requestTimeout,protocols:e.protocols||void 0,isReactNative:this.isReactNative})},r.prototype.open=function(){var n;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))n="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit("error","No transports available")},0)}n=this.transports[0]}this.readyState="opening";try{n=this.createTransport(n)}catch(e){return this.transports.shift(),void this.open()}n.open(),this.setTransport(n)},r.prototype.setTransport=function(n){l("setting transport %s",n.name);var t=this;this.transport&&(l("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=n,n.on("drain",function(){t.onDrain()}).on("packet",function(e){t.onPacket(e)}).on("error",function(e){t.onError(e)}).on("close",function(){t.onClose("transport close")})},r.prototype.probe=function(n){l('probing transport "%s"',n);var t=this.createTransport(n,{probe:1}),e=!1,i=this;function f(){i.onlyBinaryUpgrades&&(e=e||!this.supportsBinary&&i.transport.supportsBinary),e||(l('probe transport "%s" opened',n),t.send([{type:"ping",data:"probe"}]),t.once("packet",function(F){if(!e)if("pong"===F.type&&"probe"===F.data){if(l('probe transport "%s" pong',n),i.upgrading=!0,i.emit("upgrading",t),!t)return;r.priorWebsocketSuccess="websocket"===t.name,l('pausing current transport "%s"',i.transport.name),i.transport.pause(function(){e||"closed"!==i.readyState&&(l("changing transport and sending upgrade packet"),m(),i.setTransport(t),t.send([{type:"upgrade"}]),i.emit("upgrade",t),t=null,i.upgrading=!1,i.flush())})}else{l('probe transport "%s" failed',n);var A=new Error("probe error");A.transport=t.name,i.emit("upgradeError",A)}}))}function v(){e||(e=!0,m(),t.close(),t=null)}function g(w){var F=new Error("probe error: "+w);F.transport=t.name,v(),l('probe transport "%s" failed because of error: %s',n,w),i.emit("upgradeError",F)}function C(){g("transport closed")}function B(){g("socket closed")}function N(w){t&&w.name!==t.name&&(l('"%s" works - aborting "%s"',w.name,t.name),v())}function m(){t.removeListener("open",f),t.removeListener("error",g),t.removeListener("close",C),i.removeListener("close",B),i.removeListener("upgrading",N)}r.priorWebsocketSuccess=!1,t.once("open",f),t.once("error",g),t.once("close",C),this.once("close",B),this.once("upgrading",N),t.open()},r.prototype.onOpen=function(){if(l("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){l("starting upgrade probes");for(var n=0,t=this.upgrades.length;n<t;n++)this.probe(this.upgrades[n])}},r.prototype.onPacket=function(n){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(l('socket receive: type "%s", data "%s"',n.type,n.data),this.emit("packet",n),this.emit("heartbeat"),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=n.data,this.onError(t);break;case"message":this.emit("data",n.data),this.emit("message",n.data)}else l('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(n){this.emit("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this.upgrades=this.filterUpgrades(n.upgrades),this.pingInterval=n.pingInterval,this.pingTimeout=n.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(n){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){"closed"!==t.readyState&&t.onClose("ping timeout")},n||t.pingInterval+t.pingTimeout)},r.prototype.setPing=function(){var n=this;clearTimeout(n.pingIntervalTimer),n.pingIntervalTimer=setTimeout(function(){l("writing ping packet - expecting pong within %sms",n.pingTimeout),n.ping(),n.onHeartbeat(n.pingTimeout)},n.pingInterval)},r.prototype.ping=function(){var n=this;this.sendPacket("ping",function(){n.emit("ping")})},r.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(l("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(n,t,e){return this.sendPacket("message",n,t,e),this},r.prototype.sendPacket=function(n,t,e,i){if("function"==typeof t&&(i=t,t=void 0),"function"==typeof e&&(i=e,e=null),"closing"!==this.readyState&&"closed"!==this.readyState){(e=e||{}).compress=!1!==e.compress;var f={type:n,data:t,options:e};this.emit("packetCreate",f),this.writeBuffer.push(f),i&&this.once("flush",i),this.flush()}},r.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var n=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?i():t()}):this.upgrading?i():t()}function t(){n.onClose("forced close"),l("socket closing - telling transport to close"),n.transport.close()}function e(){n.removeListener("upgrade",e),n.removeListener("upgradeError",e),t()}function i(){n.once("upgrade",e),n.once("upgradeError",e)}return this},r.prototype.onError=function(n){l("socket error %j",n),r.priorWebsocketSuccess=!1,this.emit("error",n),this.onClose("transport error",n)},r.prototype.onClose=function(n,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(l('socket close with reason: "%s"',n),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",n,t),this.writeBuffer=[],this.prevBufferLen=0)},r.prototype.filterUpgrades=function(n){for(var t=[],e=0,i=n.length;e<i;e++)~c(this.transports,n[e])&&t.push(n[e]);return t}},1505:(b,s,o)=>{var u=o(9472),p=o(5899);function l(c){this.path=c.path,this.hostname=c.hostname,this.port=c.port,this.secure=c.secure,this.query=c.query,this.timestampParam=c.timestampParam,this.timestampRequests=c.timestampRequests,this.readyState="",this.agent=c.agent||!1,this.socket=c.socket,this.enablesXDR=c.enablesXDR,this.withCredentials=c.withCredentials,this.pfx=c.pfx,this.key=c.key,this.passphrase=c.passphrase,this.cert=c.cert,this.ca=c.ca,this.ciphers=c.ciphers,this.rejectUnauthorized=c.rejectUnauthorized,this.forceNode=c.forceNode,this.isReactNative=c.isReactNative,this.extraHeaders=c.extraHeaders,this.localAddress=c.localAddress}b.exports=l,p(l.prototype),l.prototype.onError=function(c,y){var h=new Error(c);return h.type="TransportError",h.description=y,this.emit("error",h),this},l.prototype.open=function(){return("closed"===this.readyState||""===this.readyState)&&(this.readyState="opening",this.doOpen()),this},l.prototype.close=function(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this},l.prototype.send=function(c){if("open"!==this.readyState)throw new Error("Transport not open");this.write(c)},l.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},l.prototype.onData=function(c){var y=u.decodePacket(c,this.socket.binaryType);this.onPacket(y)},l.prototype.onPacket=function(c){this.emit("packet",c)},l.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},1674:(b,s,o)=>{var u=o(1737),p=o(5706),l=o(7662),c=o(9677);s.polling=function(h){var r=!1,a=!1,n=!1!==h.jsonp;if("undefined"!=typeof location){var t="https:"===location.protocol,e=location.port;e||(e=t?443:80),r=h.hostname!==location.hostname||e!==h.port,a=h.secure!==t}if(h.xdomain=r,h.xscheme=a,"open"in new u(h)&&!h.forceJSONP)return new p(h);if(!n)throw new Error("JSONP disabled");return new l(h)},s.websocket=c},7662:(b,s,o)=>{var u=o(7685),p=o(3338);b.exports=r;var y,l=/\n/g,c=/\\n/g;function h(){}function r(a){if(u.call(this,a),this.query=this.query||{},!y){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};y=n.___eio=n.___eio||[]}this.index=y.length;var t=this;y.push(function(e){t.onData(e)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){t.script&&(t.script.onerror=h)},!1)}p(r,u),r.prototype.supportsBinary=!1,r.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),u.prototype.doClose.call(this)},r.prototype.doPoll=function(){var a=this,n=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),n.async=!0,n.src=this.uri(),n.onerror=function(i){a.onError("jsonp poll error",i)};var t=document.getElementsByTagName("script")[0];t?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n),this.script=n,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var i=document.createElement("iframe");document.body.appendChild(i),document.body.removeChild(i)},100)},r.prototype.doWrite=function(a,n){var t=this;if(!this.form){var v,e=document.createElement("form"),i=document.createElement("textarea"),f=this.iframeId="eio_iframe_"+this.index;e.className="socketio",e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.target=f,e.method="POST",e.setAttribute("accept-charset","utf-8"),i.name="d",e.appendChild(i),document.body.appendChild(e),this.form=e,this.area=i}function g(){C(),n()}function C(){if(t.iframe)try{t.form.removeChild(t.iframe)}catch(N){t.onError("jsonp polling iframe removal error",N)}try{v=document.createElement('<iframe src="javascript:0" name="'+t.iframeId+'">')}catch(N){(v=document.createElement("iframe")).name=t.iframeId,v.src="javascript:0"}v.id=t.iframeId,t.form.appendChild(v),t.iframe=v}this.form.action=this.uri(),C(),a=a.replace(c,"\\\n"),this.area.value=a.replace(l,"\\n");try{this.form.submit()}catch(B){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===t.iframe.readyState&&g()}:this.iframe.onload=g}},5706:(b,s,o)=>{var u=o(1737),p=o(7685),l=o(5899),c=o(3338),y=o(2036)("engine.io-client:polling-xhr");function h(){}function d(t){if(p.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,"undefined"!=typeof location){var e="https:"===location.protocol,i=location.port;i||(i=e?443:80),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||i!==t.port,this.xs=t.secure!==e}}function r(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}if(b.exports=d,b.exports.Request=r,c(d,p),d.prototype.supportsBinary=!0,d.prototype.request=function(t){return(t=t||{}).uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.withCredentials=this.withCredentials,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new r(t)},d.prototype.doWrite=function(t,e){var f=this.request({method:"POST",data:t,isBinary:"string"!=typeof t&&void 0!==t}),v=this;f.on("success",e),f.on("error",function(g){v.onError("xhr post error",g)}),this.sendXhr=f},d.prototype.doPoll=function(){y("xhr poll");var t=this.request(),e=this;t.on("data",function(i){e.onData(i)}),t.on("error",function(i){e.onError("xhr poll error",i)}),this.pollXhr=t},l(r.prototype),r.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new u(t),i=this;try{y("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var f in e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(f)&&e.setRequestHeader(f,this.extraHeaders[f])}catch(v){}if("POST"===this.method)try{e.setRequestHeader("Content-type",this.isBinary?"application/octet-stream":"text/plain;charset=UTF-8")}catch(v){}try{e.setRequestHeader("Accept","*/*")}catch(v){}"withCredentials"in e&&(e.withCredentials=this.withCredentials),this.requestTimeout&&(e.timeout=this.requestTimeout),this.hasXDR()?(e.onload=function(){i.onLoad()},e.onerror=function(){i.onError(e.responseText)}):e.onreadystatechange=function(){if(2===e.readyState)try{var v=e.getResponseHeader("Content-Type");(i.supportsBinary&&"application/octet-stream"===v||"application/octet-stream; charset=UTF-8"===v)&&(e.responseType="arraybuffer")}catch(g){}4===e.readyState&&(200===e.status||1223===e.status?i.onLoad():setTimeout(function(){i.onError("number"==typeof e.status?e.status:0)},0))},y("xhr data %s",this.data),e.send(this.data)}catch(v){return void setTimeout(function(){i.onError(v)},0)}"undefined"!=typeof document&&(this.index=r.requestsCount++,r.requests[this.index]=this)},r.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},r.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},r.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},r.prototype.cleanup=function(t){if(null!=this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=h:this.xhr.onreadystatechange=h,t)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete r.requests[this.index],this.xhr=null}},r.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(i){}t=("application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&this.xhr.response||this.xhr.responseText}catch(i){this.onError(i)}null!=t&&this.onData(t)},r.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},r.prototype.abort=function(){this.cleanup()},r.requestsCount=0,r.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",n);else if("function"==typeof addEventListener){var a="onpagehide"in self?"pagehide":"unload";addEventListener(a,n,!1)}function n(){for(var t in r.requests)r.requests.hasOwnProperty(t)&&r.requests[t].abort()}},7685:(b,s,o)=>{var u=o(1505),p=o(9603),l=o(9472),c=o(3338),y=o(5391),h=o(2036)("engine.io-client:polling");b.exports=r;var d=null!=new(o(1737))({xdomain:!1}).responseType;function r(a){(!d||a&&a.forceBase64)&&(this.supportsBinary=!1),u.call(this,a)}c(r,u),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(a){var n=this;function t(){h("paused"),n.readyState="paused",a()}if(this.readyState="pausing",this.polling||!this.writable){var e=0;this.polling&&(h("we are currently polling - waiting to pause"),e++,this.once("pollComplete",function(){h("pre-pause polling complete"),--e||t()})),this.writable||(h("we are currently writing - waiting to pause"),e++,this.once("drain",function(){h("pre-pause writing complete"),--e||t()}))}else t()},r.prototype.poll=function(){h("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(a){var n=this;h("polling got data %s",a),l.decodePayload(a,this.socket.binaryType,function(e,i,f){if("opening"===n.readyState&&n.onOpen(),"close"===e.type)return n.onClose(),!1;n.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():h('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){var a=this;function n(){h("writing close packet"),a.write([{type:"close"}])}"open"===this.readyState?(h("transport open - closing"),n()):(h("transport not open - deferring close"),this.once("open",n))},r.prototype.write=function(a){var n=this;this.writable=!1;var t=function(){n.writable=!0,n.emit("drain")};l.encodePayload(a,this.supportsBinary,function(e){n.doWrite(e,t)})},r.prototype.uri=function(){var a=this.query||{},n=this.secure?"https":"http",t="";return!1!==this.timestampRequests&&(a[this.timestampParam]=y()),!this.supportsBinary&&!a.sid&&(a.b64=1),a=p.encode(a),this.port&&("https"===n&&443!==Number(this.port)||"http"===n&&80!==Number(this.port))&&(t=":"+this.port),a.length&&(a="?"+a),n+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+t+this.path+a}},9677:(b,s,o)=>{var d,r,u=o(1505),p=o(9472),l=o(9603),c=o(3338),y=o(5391),h=o(2036)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?d=WebSocket:"undefined"!=typeof self&&(d=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{r=o(7020)}catch(t){}var a=d||r;function n(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=d&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(a=r),u.call(this,t)}b.exports=n,c(n,u),n.prototype.name="websocket",n.prototype.supportsBinary=!0,n.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,i={agent:this.agent,perMessageDeflate:this.perMessageDeflate};i.pfx=this.pfx,i.key=this.key,i.passphrase=this.passphrase,i.cert=this.cert,i.ca=this.ca,i.ciphers=this.ciphers,i.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(i.headers=this.extraHeaders),this.localAddress&&(i.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?e?new a(t,e):new a(t):new a(t,e,i)}catch(f){return this.emit("error",f)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},n.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},n.prototype.write=function(t){var e=this;this.writable=!1;for(var i=t.length,f=0,v=i;f<v;f++)!function(C){p.encodePacket(C,e.supportsBinary,function(B){if(!e.usingBrowserWebSocket){var N={};C.options&&(N.compress=C.options.compress),e.perMessageDeflate&&("string"==typeof B?Buffer.byteLength(B):B.length)<e.perMessageDeflate.threshold&&(N.compress=!1)}try{e.usingBrowserWebSocket?e.ws.send(B):e.ws.send(B,N)}catch(w){h("websocket closed before onclose event")}--i||(e.emit("flush"),setTimeout(function(){e.writable=!0,e.emit("drain")},0))})}(t[f])},n.prototype.onClose=function(){u.prototype.onClose.call(this)},n.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},n.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",i="";return this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(i=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=y()),this.supportsBinary||(t.b64=1),(t=l.encode(t)).length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+i+this.path+t},n.prototype.check=function(){return!(!a||"__initialize"in a&&this.name===n.prototype.name)}},1737:(b,s,o)=>{var u=o(4966);b.exports=function(p){var l=p.xdomain,c=p.xscheme,y=p.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!l||u))return new XMLHttpRequest}catch(h){}try{if("undefined"!=typeof XDomainRequest&&!c&&y)return new XDomainRequest}catch(h){}if(!l)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(h){}}},9472:(b,s,o)=>{var h,u=o(9310),p=o(5133),l=o(3853),c=o(3661),y=o(803);"undefined"!=typeof ArrayBuffer&&(h=o(7846));var d="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),r="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),a=d||r;s.protocol=3;var n=s.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},t=u(n),e={type:"error",data:"parser error"},i=o(3084);function N(m,w,F){for(var A=new Array(m.length),S=c(m.length,F),x=function(R,E,T){w(E,function(O,D){A[R]=D,T(O,A)})},k=0;k<m.length;k++)x(k,m[k],S)}s.encodePacket=function(m,w,F,A){"function"==typeof w&&(A=w,w=!1),"function"==typeof F&&(A=F,F=null);var S=void 0===m.data?void 0:m.data.buffer||m.data;if("undefined"!=typeof ArrayBuffer&&S instanceof ArrayBuffer)return function(m,w,F){if(!w)return s.encodeBase64Packet(m,F);var A=m.data,S=new Uint8Array(A),x=new Uint8Array(1+A.byteLength);x[0]=n[m.type];for(var k=0;k<S.length;k++)x[k+1]=S[k];return F(x.buffer)}(m,w,A);if(void 0!==i&&S instanceof i)return function(m,w,F){if(!w)return s.encodeBase64Packet(m,F);if(a)return function(m,w,F){if(!w)return s.encodeBase64Packet(m,F);var A=new FileReader;return A.onload=function(){s.encodePacket({type:m.type,data:A.result},w,!0,F)},A.readAsArrayBuffer(m.data)}(m,w,F);var A=new Uint8Array(1);return A[0]=n[m.type],F(new i([A.buffer,m.data]))}(m,w,A);if(S&&S.base64)return function(m,w){return w("b"+s.packets[m.type]+m.data.data)}(m,A);var x=n[m.type];return void 0!==m.data&&(x+=F?y.encode(String(m.data),{strict:!1}):String(m.data)),A(""+x)},s.encodeBase64Packet=function(m,w){var S,F="b"+s.packets[m.type];if(void 0!==i&&m.data instanceof i){var A=new FileReader;return A.onload=function(){var E=A.result.split(",")[1];w(F+E)},A.readAsDataURL(m.data)}try{S=String.fromCharCode.apply(null,new Uint8Array(m.data))}catch(E){for(var x=new Uint8Array(m.data),k=new Array(x.length),R=0;R<x.length;R++)k[R]=x[R];S=String.fromCharCode.apply(null,k)}return F+=btoa(S),w(F)},s.decodePacket=function(m,w,F){if(void 0===m)return e;if("string"==typeof m){if("b"===m.charAt(0))return s.decodeBase64Packet(m.substr(1),w);if(F&&!1===(m=function(m){try{m=y.decode(m,{strict:!1})}catch(w){return!1}return m}(m)))return e;var S=m.charAt(0);return Number(S)==S&&t[S]?m.length>1?{type:t[S],data:m.substring(1)}:{type:t[S]}:e}S=new Uint8Array(m)[0];var x=l(m,1);return i&&"blob"===w&&(x=new i([x])),{type:t[S],data:x}},s.decodeBase64Packet=function(m,w){var F=t[m.charAt(0)];if(!h)return{type:F,data:{base64:!0,data:m.substr(1)}};var A=h.decode(m.substr(1));return"blob"===w&&i&&(A=new i([A])),{type:F,data:A}},s.encodePayload=function(m,w,F){"function"==typeof w&&(F=w,w=null);var A=p(m);return w&&A?i&&!a?s.encodePayloadAsBlob(m,F):s.encodePayloadAsArrayBuffer(m,F):m.length?void N(m,function(k,R){s.encodePacket(k,!!A&&w,!1,function(E){R(null,function(k){return k.length+":"+k}(E))})},function(k,R){return F(R.join(""))}):F("0:")},s.decodePayload=function(m,w,F){if("string"!=typeof m)return s.decodePayloadAsBinary(m,w,F);var A;if("function"==typeof w&&(F=w,w=null),""===m)return F(e,0,1);for(var x,k,S="",R=0,E=m.length;R<E;R++){var T=m.charAt(R);if(":"===T){if(""===S||S!=(x=Number(S))||S!=(k=m.substr(R+1,x)).length)return F(e,0,1);if(k.length){if(A=s.decodePacket(k,w,!1),e.type===A.type&&e.data===A.data)return F(e,0,1);if(!1===F(A,R+x,E))return}R+=x,S=""}else S+=T}return""!==S?F(e,0,1):void 0},s.encodePayloadAsArrayBuffer=function(m,w){if(!m.length)return w(new ArrayBuffer(0));N(m,function(A,S){s.encodePacket(A,!0,!0,function(x){return S(null,x)})},function(A,S){var x=S.reduce(function(E,T){var O;return E+(O="string"==typeof T?T.length:T.byteLength).toString().length+O+2},0),k=new Uint8Array(x),R=0;return S.forEach(function(E){var T="string"==typeof E,O=E;if(T){for(var I=new Uint8Array(E.length),D=0;D<E.length;D++)I[D]=E.charCodeAt(D);O=I.buffer}k[R++]=T?0:1;var P=O.byteLength.toString();for(D=0;D<P.length;D++)k[R++]=parseInt(P[D]);for(k[R++]=255,I=new Uint8Array(O),D=0;D<I.length;D++)k[R++]=I[D]}),w(k.buffer)})},s.encodePayloadAsBlob=function(m,w){N(m,function(A,S){s.encodePacket(A,!0,!0,function(x){var k=new Uint8Array(1);if(k[0]=1,"string"==typeof x){for(var R=new Uint8Array(x.length),E=0;E<x.length;E++)R[E]=x.charCodeAt(E);x=R.buffer,k[0]=0}var O=(x instanceof ArrayBuffer?x.byteLength:x.size).toString(),D=new Uint8Array(O.length+1);for(E=0;E<O.length;E++)D[E]=parseInt(O[E]);if(D[O.length]=255,i){var P=new i([k.buffer,D.buffer,x]);S(null,P)}})},function(A,S){return w(new i(S))})},s.decodePayloadAsBinary=function(m,w,F){"function"==typeof w&&(F=w,w=null);for(var A=m,S=[];A.byteLength>0;){for(var x=new Uint8Array(A),k=0===x[0],R="",E=1;255!==x[E];E++){if(R.length>310)return F(e,0,1);R+=x[E]}A=l(A,2+R.length),R=parseInt(R);var T=l(A,0,R);if(k)try{T=String.fromCharCode.apply(null,new Uint8Array(T))}catch(P){var O=new Uint8Array(T);for(T="",E=0;E<O.length;E++)T+=String.fromCharCode(O[E])}S.push(T),A=l(A,R)}var D=S.length;S.forEach(function(P,I){F(s.decodePacket(P,w,!0),I,D)})}},9310:b=>{b.exports=Object.keys||function(o){var u=[],p=Object.prototype.hasOwnProperty;for(var l in o)p.call(o,l)&&u.push(l);return u}},803:b=>{var r,a,n,s=String.fromCharCode;function o(e){for(var g,C,i=[],f=0,v=e.length;f<v;)(g=e.charCodeAt(f++))>=55296&&g<=56319&&f<v?56320==(64512&(C=e.charCodeAt(f++)))?i.push(((1023&g)<<10)+(1023&C)+65536):(i.push(g),f--):i.push(g);return i}function p(e,i){if(e>=55296&&e<=57343){if(i)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function l(e,i){return s(e>>i&63|128)}function c(e,i){if(0==(4294967168&e))return s(e);var f="";return 0==(4294965248&e)?f=s(e>>6&31|192):0==(4294901760&e)?(p(e,i)||(e=65533),f=s(e>>12&15|224),f+=l(e,6)):0==(4292870144&e)&&(f=s(e>>18&7|240),f+=l(e,12),f+=l(e,6)),f+s(63&e|128)}function h(){if(n>=a)throw Error("Invalid byte index");var e=255&r[n];if(n++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function d(e){var i,C;if(n>a)throw Error("Invalid byte index");if(n==a)return!1;if(i=255&r[n],n++,0==(128&i))return i;if(192==(224&i)){if((C=(31&i)<<6|h())>=128)return C;throw Error("Invalid continuation byte")}if(224==(240&i)){if((C=(15&i)<<12|h()<<6|h())>=2048)return p(C,e)?C:65533;throw Error("Invalid continuation byte")}if(240==(248&i)&&(C=(7&i)<<18|h()<<12|h()<<6|h())>=65536&&C<=1114111)return C;throw Error("Invalid UTF-8 detected")}b.exports={version:"2.1.2",encode:function(e,i){for(var f=!1!==(i=i||{}).strict,v=o(e),g=v.length,C=-1,N="";++C<g;)N+=c(v[C],f);return N},decode:function(e,i){var f=!1!==(i=i||{}).strict;r=o(e),a=r.length,n=0;for(var g,v=[];!1!==(g=d(f));)v.push(g);return function(e){for(var v,i=e.length,f=-1,g="";++f<i;)(v=e[f])>65535&&(g+=s((v-=65536)>>>10&1023|55296),v=56320|1023&v),g+=s(v);return g}(v)}}},5133:(b,s,o)=>{var u=o(5105),p=Object.prototype.toString,l="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===p.call(Blob),c="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===p.call(File);b.exports=function y(h){if(!h||"object"!=typeof h)return!1;if(u(h)){for(var d=0,r=h.length;d<r;d++)if(y(h[d]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(h)||"function"==typeof ArrayBuffer&&h instanceof ArrayBuffer||l&&h instanceof Blob||c&&h instanceof File)return!0;if(h.toJSON&&"function"==typeof h.toJSON&&1===arguments.length)return y(h.toJSON(),!0);for(var a in h)if(Object.prototype.hasOwnProperty.call(h,a)&&y(h[a]))return!0;return!1}},4966:b=>{try{b.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(s){b.exports=!1}},7736:b=>{var s=[].indexOf;b.exports=function(o,u){if(s)return o.indexOf(u);for(var p=0;p<o.length;++p)if(o[p]===u)return p;return-1}},5105:b=>{var s={}.toString;b.exports=Array.isArray||function(o){return"[object Array]"==s.call(o)}},8862:b=>{var s=1e3,o=60*s,u=60*o,p=24*u;function r(a,n,t,e){var i=n>=1.5*t;return Math.round(a/t)+" "+e+(i?"s":"")}b.exports=function(a,n){n=n||{};var t=typeof a;if("string"===t&&a.length>0)return function(a){if(!((a=String(a)).length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(n){var t=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*p;case"hours":case"hour":case"hrs":case"hr":case"h":return t*u;case"minutes":case"minute":case"mins":case"min":case"m":return t*o;case"seconds":case"second":case"secs":case"sec":case"s":return t*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}(a);if("number"===t&&isFinite(a))return n.long?function(a){var n=Math.abs(a);return n>=p?r(a,n,p,"day"):n>=u?r(a,n,u,"hour"):n>=o?r(a,n,o,"minute"):n>=s?r(a,n,s,"second"):a+" ms"}(a):function(a){var n=Math.abs(a);return n>=p?Math.round(a/p)+"d":n>=u?Math.round(a/u)+"h":n>=o?Math.round(a/o)+"m":n>=s?Math.round(a/s)+"s":a+"ms"}(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))}},9603:(b,s)=>{s.encode=function(o){var u="";for(var p in o)o.hasOwnProperty(p)&&(u.length&&(u+="&"),u+=encodeURIComponent(p)+"="+encodeURIComponent(o[p]));return u},s.decode=function(o){for(var u={},p=o.split("&"),l=0,c=p.length;l<c;l++){var y=p[l].split("=");u[decodeURIComponent(y[0])]=decodeURIComponent(y[1])}return u}},4171:b=>{var s=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];b.exports=function(p){var l=p,c=p.indexOf("["),y=p.indexOf("]");-1!=c&&-1!=y&&(p=p.substring(0,c)+p.substring(c,y).replace(/:/g,";")+p.substring(y,p.length));for(var h=s.exec(p||""),d={},r=14;r--;)d[o[r]]=h[r]||"";return-1!=c&&-1!=y&&(d.source=l,d.host=d.host.substring(1,d.host.length-1).replace(/;/g,":"),d.authority=d.authority.replace("[","").replace("]","").replace(/;/g,":"),d.ipv6uri=!0),d}},9962:(b,s,o)=>{var u=o(8175),p=o(4343),l=o(2313),c=o(2036)("socket.io-client");b.exports=s=h;var y=s.managers={};function h(d,r){"object"==typeof d&&(r=d,d=void 0),r=r||{};var v,a=u(d),n=a.source,t=a.id;return r.forceNew||r["force new connection"]||!1===r.multiplex||y[t]&&a.path in y[t].nsps?(c("ignoring socket cache for %s",n),v=l(n,r)):(y[t]||(c("new io instance for %s",n),y[t]=l(n,r)),v=y[t]),a.query&&!r.query&&(r.query=a.query),v.socket(a.path,r)}s.protocol=p.protocol,s.connect=h,s.Manager=o(2313),s.Socket=o(8270)},2313:(b,s,o)=>{var u=o(8338),p=o(8270),l=o(5899),c=o(4343),y=o(3647),h=o(9782),d=o(2036)("socket.io-client:manager"),r=o(7736),a=o(7591),n=Object.prototype.hasOwnProperty;function t(e,i){if(!(this instanceof t))return new t(e,i);e&&"object"==typeof e&&(i=e,e=void 0),(i=i||{}).path=i.path||"/socket.io",this.nsps={},this.subs=[],this.opts=i,this.reconnection(!1!==i.reconnection),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor(i.randomizationFactor||.5),this.backoff=new a({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==i.timeout?2e4:i.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var f=i.parser||c;this.encoder=new f.Encoder,this.decoder=new f.Decoder,this.autoConnect=!1!==i.autoConnect,this.autoConnect&&this.open()}b.exports=t,t.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)n.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},t.prototype.updateSocketIds=function(){for(var e in this.nsps)n.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},t.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},l(t.prototype),t.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},t.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},t.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},t.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},t.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},t.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},t.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},t.prototype.open=t.prototype.connect=function(e,i){if(d("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;d("opening %s",this.uri),this.engine=u(this.uri,this.opts);var f=this.engine,v=this;this.readyState="opening",this.skipReconnect=!1;var g=y(f,"open",function(){v.onopen(),e&&e()}),C=y(f,"error",function(m){if(d("connect_error"),v.cleanup(),v.readyState="closed",v.emitAll("connect_error",m),e){var w=new Error("Connection error");w.data=m,e(w)}else v.maybeReconnectOnOpen()});if(!1!==this._timeout){var B=this._timeout;d("connect attempt will timeout after %d",B);var N=setTimeout(function(){d("connect attempt timed out after %d",B),g.destroy(),f.close(),f.emit("error","timeout"),v.emitAll("connect_timeout",B)},B);this.subs.push({destroy:function(){clearTimeout(N)}})}return this.subs.push(g),this.subs.push(C),this},t.prototype.onopen=function(){d("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(y(e,"data",h(this,"ondata"))),this.subs.push(y(e,"ping",h(this,"onping"))),this.subs.push(y(e,"pong",h(this,"onpong"))),this.subs.push(y(e,"error",h(this,"onerror"))),this.subs.push(y(e,"close",h(this,"onclose"))),this.subs.push(y(this.decoder,"decoded",h(this,"ondecoded")))},t.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},t.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},t.prototype.ondata=function(e){this.decoder.add(e)},t.prototype.ondecoded=function(e){this.emit("packet",e)},t.prototype.onerror=function(e){d("error",e),this.emitAll("error",e)},t.prototype.socket=function(e,i){var f=this.nsps[e];if(!f){f=new p(this,e,i),this.nsps[e]=f;var v=this;f.on("connecting",g),f.on("connect",function(){f.id=v.generateId(e)}),this.autoConnect&&g()}function g(){~r(v.connecting,f)||v.connecting.push(f)}return f},t.prototype.destroy=function(e){var i=r(this.connecting,e);~i&&this.connecting.splice(i,1),!this.connecting.length&&this.close()},t.prototype.packet=function(e){d("writing packet %j",e);var i=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),i.encoding?i.packetBuffer.push(e):(i.encoding=!0,this.encoder.encode(e,function(f){for(var v=0;v<f.length;v++)i.engine.write(f[v],e.options);i.encoding=!1,i.processPacketQueue()}))},t.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},t.prototype.cleanup=function(){d("cleanup");for(var e=this.subs.length,i=0;i<e;i++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},t.prototype.close=t.prototype.disconnect=function(){d("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},t.prototype.onclose=function(e){d("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},t.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)d("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var i=this.backoff.duration();d("will wait %dms before reconnect attempt",i),this.reconnecting=!0;var f=setTimeout(function(){e.skipReconnect||(d("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),!e.skipReconnect&&e.open(function(v){v?(d("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",v.data)):(d("reconnect success"),e.onreconnect())}))},i);this.subs.push({destroy:function(){clearTimeout(f)}})}},t.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},3647:b=>{b.exports=function(o,u,p){return o.on(u,p),{destroy:function(){o.removeListener(u,p)}}}},8270:(b,s,o)=>{var u=o(4343),p=o(5899),l=o(4768),c=o(3647),y=o(9782),h=o(2036)("socket.io-client:socket"),d=o(9603),r=o(5133);b.exports=t;var a={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},n=p.prototype.emit;function t(e,i,f){this.io=e,this.nsp=i,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},f&&f.query&&(this.query=f.query),this.io.autoConnect&&this.open()}p(t.prototype),t.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[c(e,"open",y(this,"onopen")),c(e,"packet",y(this,"onpacket")),c(e,"close",y(this,"onclose"))]}},t.prototype.open=t.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},t.prototype.send=function(){var e=l(arguments);return e.unshift("message"),this.emit.apply(this,e),this},t.prototype.emit=function(e){if(a.hasOwnProperty(e))return n.apply(this,arguments),this;var i=l(arguments),f={type:(void 0!==this.flags.binary?this.flags.binary:r(i))?u.BINARY_EVENT:u.EVENT,data:i,options:{}};return f.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof i[i.length-1]&&(h("emitting packet with ack id %d",this.ids),this.acks[this.ids]=i.pop(),f.id=this.ids++),this.connected?this.packet(f):this.sendBuffer.push(f),this.flags={},this},t.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},t.prototype.onopen=function(){if(h("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"==typeof this.query?d.encode(this.query):this.query;h("sending connect packet with query %s",e),this.packet({type:u.CONNECT,query:e})}else this.packet({type:u.CONNECT})},t.prototype.onclose=function(e){h("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},t.prototype.onpacket=function(e){if(e.nsp===this.nsp||e.type===u.ERROR&&"/"===e.nsp)switch(e.type){case u.CONNECT:this.onconnect();break;case u.EVENT:case u.BINARY_EVENT:this.onevent(e);break;case u.ACK:case u.BINARY_ACK:this.onack(e);break;case u.DISCONNECT:this.ondisconnect();break;case u.ERROR:this.emit("error",e.data)}},t.prototype.onevent=function(e){var i=e.data||[];h("emitting event %j",i),null!=e.id&&(h("attaching ack callback to event"),i.push(this.ack(e.id))),this.connected?n.apply(this,i):this.receiveBuffer.push(i)},t.prototype.ack=function(e){var i=this,f=!1;return function(){if(!f){f=!0;var v=l(arguments);h("sending ack %j",v),i.packet({type:r(v)?u.BINARY_ACK:u.ACK,id:e,data:v})}}},t.prototype.onack=function(e){var i=this.acks[e.id];"function"==typeof i?(h("calling ack %s with %j",e.id,e.data),i.apply(this,e.data),delete this.acks[e.id]):h("bad ack %s",e.id)},t.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},t.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)n.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},t.prototype.ondisconnect=function(){h("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},t.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},t.prototype.close=t.prototype.disconnect=function(){return this.connected&&(h("performing disconnect (%s)",this.nsp),this.packet({type:u.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},t.prototype.compress=function(e){return this.flags.compress=e,this},t.prototype.binary=function(e){return this.flags.binary=e,this}},8175:(b,s,o)=>{var u=o(4171),p=o(2036)("socket.io-client:url");b.exports=function(c,y){var h=c;y=y||"undefined"!=typeof location&&location,null==c&&(c=y.protocol+"//"+y.host),"string"==typeof c&&("/"===c.charAt(0)&&(c="/"===c.charAt(1)?y.protocol+c:y.host+c),/^(https?|wss?):\/\//.test(c)||(p("protocol-less url %s",c),c=void 0!==y?y.protocol+"//"+c:"https://"+c),p("parse %s",c),h=u(c)),h.port||(/^(http|ws)$/.test(h.protocol)?h.port="80":/^(http|ws)s$/.test(h.protocol)&&(h.port="443")),h.path=h.path||"/";var r=-1!==h.host.indexOf(":")?"["+h.host+"]":h.host;return h.id=h.protocol+"://"+r+":"+h.port,h.href=h.protocol+"://"+r+(y&&y.port===h.port?"":":"+h.port),h}},3924:b=>{var s=1e3,o=60*s,u=60*o,p=24*u;function d(r,a,n){if(!(r<a))return r<1.5*a?Math.floor(r/a)+" "+n:Math.ceil(r/a)+" "+n+"s"}b.exports=function(r,a){a=a||{};var n=typeof r;if("string"===n&&r.length>0)return function(r){if(!((r=String(r)).length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(r);if(a){var n=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return n*p;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*o;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(r);if("number"===n&&!1===isNaN(r))return a.long?function(r){return d(r,p,"day")||d(r,u,"hour")||d(r,o,"minute")||d(r,s,"second")||r+" ms"}(r):function(r){return r>=p?Math.round(r/p)+"d":r>=u?Math.round(r/u)+"h":r>=o?Math.round(r/o)+"m":r>=s?Math.round(r/s)+"s":r+"ms"}(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))}},2742:(b,s,o)=>{var u=o(5105),p=o(517),l=Object.prototype.toString,c="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===l.call(Blob),y="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===l.call(File);function h(r,a){if(!r)return r;if(p(r)){var n={_placeholder:!0,num:a.length};return a.push(r),n}if(u(r)){for(var t=new Array(r.length),e=0;e<r.length;e++)t[e]=h(r[e],a);return t}if("object"==typeof r&&!(r instanceof Date)){for(var i in t={},r)t[i]=h(r[i],a);return t}return r}function d(r,a){if(!r)return r;if(r&&r._placeholder)return a[r.num];if(u(r))for(var n=0;n<r.length;n++)r[n]=d(r[n],a);else if("object"==typeof r)for(var t in r)r[t]=d(r[t],a);return r}s.deconstructPacket=function(r){var a=[],t=r;return t.data=h(r.data,a),t.attachments=a.length,{packet:t,buffers:a}},s.reconstructPacket=function(r,a){return r.data=d(r.data,a),r.attachments=void 0,r},s.removeBlobs=function(r,a){var t=0,e=r;(function n(i,f,v){if(!i)return i;if(c&&i instanceof Blob||y&&i instanceof File){t++;var g=new FileReader;g.onload=function(){v?v[f]=this.result:e=this.result,--t||a(e)},g.readAsArrayBuffer(i)}else if(u(i))for(var C=0;C<i.length;C++)n(i[C],C,i);else if("object"==typeof i&&!p(i))for(var B in i)n(i[B],B,i)})(e),t||a(e)}},4343:(b,s,o)=>{var u=o(640)("socket.io-parser"),p=o(5899),l=o(2742),c=o(5105),y=o(517);function h(){}s.protocol=4,s.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],s.CONNECT=0,s.DISCONNECT=1,s.EVENT=2,s.ACK=3,s.ERROR=4,s.BINARY_EVENT=5,s.BINARY_ACK=6,s.Encoder=h,s.Decoder=t;var d=s.ERROR+'"encode error"';function r(g){var C=""+g.type;if((s.BINARY_EVENT===g.type||s.BINARY_ACK===g.type)&&(C+=g.attachments+"-"),g.nsp&&"/"!==g.nsp&&(C+=g.nsp+","),null!=g.id&&(C+=g.id),null!=g.data){var B=function(g){try{return JSON.stringify(g)}catch(C){return!1}}(g.data);if(!1===B)return d;C+=B}return u("encoded %j as %s",g,C),C}function t(){this.reconstructor=null}function f(g){this.reconPack=g,this.buffers=[]}function v(g){return{type:s.ERROR,data:"parser error: "+g}}h.prototype.encode=function(g,C){u("encoding packet %j",g),s.BINARY_EVENT===g.type||s.BINARY_ACK===g.type?function(g,C){l.removeBlobs(g,function(N){var m=l.deconstructPacket(N),w=r(m.packet),F=m.buffers;F.unshift(w),C(F)})}(g,C):C([r(g)])},p(t.prototype),t.prototype.add=function(g){var C;if("string"==typeof g)C=function(g){var C=0,B={type:Number(g.charAt(0))};if(null==s.types[B.type])return v("unknown packet type "+B.type);if(s.BINARY_EVENT===B.type||s.BINARY_ACK===B.type){for(var N="";"-"!==g.charAt(++C)&&(N+=g.charAt(C),C!=g.length););if(N!=Number(N)||"-"!==g.charAt(C))throw new Error("Illegal attachments");B.attachments=Number(N)}if("/"===g.charAt(C+1))for(B.nsp="";++C&&(","!==(m=g.charAt(C))&&(B.nsp+=m,C!==g.length)););else B.nsp="/";var w=g.charAt(C+1);if(""!==w&&Number(w)==w){for(B.id="";++C;){var m;if(null==(m=g.charAt(C))||Number(m)!=m){--C;break}if(B.id+=g.charAt(C),C===g.length)break}B.id=Number(B.id)}if(g.charAt(++C)){var F=function(g){try{return JSON.parse(g)}catch(C){return!1}}(g.substr(C));if(!1===F||B.type!==s.ERROR&&!c(F))return v("invalid payload");B.data=F}return u("decoded %s as %j",g,B),B}(g),s.BINARY_EVENT===C.type||s.BINARY_ACK===C.type?(this.reconstructor=new f(C),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",C)):this.emit("decoded",C);else{if(!y(g)&&!g.base64)throw new Error("Unknown type: "+g);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(C=this.reconstructor.takeBinaryData(g))&&(this.reconstructor=null,this.emit("decoded",C))}},t.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},f.prototype.takeBinaryData=function(g){if(this.buffers.push(g),this.buffers.length===this.reconPack.attachments){var C=l.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),C}return null},f.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},517:b=>{b.exports=function(l){return s&&Buffer.isBuffer(l)||o&&(l instanceof ArrayBuffer||function(l){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(l):l.buffer instanceof ArrayBuffer}(l))};var s="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,o="function"==typeof ArrayBuffer},640:(b,s,o)=>{function y(){var d;try{d=s.storage.debug}catch(r){}return!d&&"undefined"!=typeof process&&"env"in process&&(d=process.env.DEBUG),d}(s=b.exports=o(3200)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},s.formatArgs=function(d){var r=this.useColors;if(d[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+d[0]+(r?"%c ":" ")+"+"+s.humanize(this.diff),r){var a="color: "+this.color;d.splice(1,0,a,"color: inherit");var n=0,t=0;d[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(t=n))}),d.splice(t,0,a)}},s.save=function(d){try{null==d?s.storage.removeItem("debug"):s.storage.debug=d}catch(r){}},s.load=y,s.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},s.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(d){}}(),s.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],s.formatters.j=function(d){try{return JSON.stringify(d)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}},s.enable(y())},3200:(b,s,o)=>{function p(r){var a;function n(){if(n.enabled){var t=n,e=+new Date,i=e-(a||e);t.diff=i,t.prev=a,t.curr=e,a=e;for(var f=new Array(arguments.length),v=0;v<f.length;v++)f[v]=arguments[v];f[0]=s.coerce(f[0]),"string"!=typeof f[0]&&f.unshift("%O");var g=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,function(B,N){if("%%"===B)return B;g++;var m=s.formatters[N];return"function"==typeof m&&(B=m.call(t,f[g]),f.splice(g,1),g--),B}),s.formatArgs.call(t,f);var C=n.log||s.log||console.log.bind(console);C.apply(t,f)}}return n.namespace=r,n.enabled=s.enabled(r),n.useColors=s.useColors(),n.color=function(r){var n,a=0;for(n in r)a=(a<<5)-a+r.charCodeAt(n),a|=0;return s.colors[Math.abs(a)%s.colors.length]}(r),n.destroy=l,"function"==typeof s.init&&s.init(n),s.instances.push(n),n}function l(){var r=s.instances.indexOf(this);return-1!==r&&(s.instances.splice(r,1),!0)}(s=b.exports=p.debug=p.default=p).coerce=function(r){return r instanceof Error?r.stack||r.message:r},s.disable=function(){s.enable("")},s.enable=function(r){s.save(r),s.names=[],s.skips=[];var a,n=("string"==typeof r?r:"").split(/[\s,]+/),t=n.length;for(a=0;a<t;a++)!n[a]||("-"===(r=n[a].replace(/\*/g,".*?"))[0]?s.skips.push(new RegExp("^"+r.substr(1)+"$")):s.names.push(new RegExp("^"+r+"$")));for(a=0;a<s.instances.length;a++){var e=s.instances[a];e.enabled=s.enabled(e.namespace)}},s.enabled=function(r){if("*"===r[r.length-1])return!0;var a,n;for(a=0,n=s.skips.length;a<n;a++)if(s.skips[a].test(r))return!1;for(a=0,n=s.names.length;a<n;a++)if(s.names[a].test(r))return!0;return!1},s.humanize=o(3924),s.instances=[],s.names=[],s.skips=[],s.formatters={}},4768:b=>{b.exports=function(o,u){for(var p=[],l=(u=u||0)||0;l<o.length;l++)p[l-u]=o[l];return p}},5391:b=>{"use strict";var c,s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),u={},p=0,l=0;function y(r){var a="";do{a=s[r%64]+a,r=Math.floor(r/64)}while(r>0);return a}function d(){var r=y(+new Date);return r!==c?(p=0,c=r):r+"."+y(p++)}for(;l<64;l++)u[s[l]]=l;d.encode=y,d.decode=function(r){var a=0;for(l=0;l<r.length;l++)a=64*a+u[r.charAt(l)];return a},b.exports=d},4313:(b,s,o)=>{"use strict";o.r(s),o.d(s,{VideoStreamModule:()=>t});var u=o(8583),p=o(4655),l=o(4762),c=o(9962),y=o(6215);class h{constructor(i){this.socket=null,this.stream=new y.X(null),this.onTrack=f=>{this.log("Got track!"),this.log(f),f.streams.length>0&&this.stream.next(f.streams[0])},this.host=i,this.conn=new RTCPeerConnection({iceServers:[{urls:"stun:stun.l.google.com:19302"}]}),this.conn.addEventListener("icecandidate",f=>{this.sendIceCandidate(this.host,f)}),this.conn.addEventListener("track",this.onTrack),this.socket=c("https://tivolicloud.com/webrtc"),this.socket.once("connect",()=>{this.socket.on("iceCandidate",f=>{this.receiveIceCandidate(f)}),this.socket.on("offer",f=>{this.receiveOffer(f)}),this.socket.emit("join",this.host)}),window.test=this.socket}log(i){}sendIceCandidate(i,f){const{candidate:v}=f;if(null==v)return this.log("ice gathering finished!");this.log("sending ice candidate to "+i),this.socket.emit("iceCandidateToHost",{id:i,candidate:v})}receiveIceCandidate(i){const{id:f,candidate:v}=i;this.log("received ice candidate from "+f),null!=this.conn&&this.conn.addIceCandidate(v)}receiveOffer(i){return(0,l.mG)(this,void 0,void 0,function*(){const{id:f,offer:v}=i;if(this.log("received offer from "+f),null==this.conn)return;this.conn.setRemoteDescription(v);const g=yield this.conn.createAnswer();this.conn.setLocalDescription(g),this.log("sending answer to "+f),this.socket.emit("answerToHost",{id:f,answer:g})})}}var d=o(7716);const r=["video"],n=[{path:":id",component:(()=>{class e{constructor(f,v){this.router=f,this.route=v,this.client=null,this.stream=null,this.router.navigate([],{relativeTo:v,queryParams:{noHeader:!0},queryParamsHandling:"merge"})}getID(){return new Promise((f,v)=>{const g=this.route.params.subscribe(C=>C.id?f(C.id):v(),C=>v(),()=>{g.unsubscribe()})})}ngOnInit(){return(0,l.mG)(this,void 0,void 0,function*(){const f=yield this.getID(),v=this.video.nativeElement;v.addEventListener("canplay",()=>{v.play()}),this.client=new h(f),this.client.stream.subscribe(g=>{this.stream=g,v.play()})})}}return e.\u0275fac=function(f){return new(f||e)(d.Y36(p.F0),d.Y36(p.gz))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-video-stream"]],viewQuery:function(f,v){if(1&f&&d.Gf(r,5),2&f){let g;d.iGM(g=d.CRH())&&(v.video=g.first)}},decls:3,vars:1,consts:[["src","/assets/autoplay-hack.ogg","allow","autoplay","autoplay","1"],["autoplay","","controls","",3,"srcObject"],["video",""]],template:function(f,v){1&f&&(d._UZ(0,"iframe",0),d._UZ(1,"video",1,2)),2&f&&(d.xp6(1),d.Q6J("srcObject",v.stream))},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}iframe[_ngcontent-%COMP%]{display:none}video[_ngcontent-%COMP%]{width:100%;height:100%;background:#000}"]}),e})()},{path:"**",redirectTo:"/"}];let t=(()=>{class e{}return e.\u0275fac=function(f){return new(f||e)},e.\u0275mod=d.oAB({type:e}),e.\u0275inj=d.cJS({imports:[[u.ez,p.Bz.forChild(n)]]}),e})()},7020:()=>{}}]);