var e;function t(e,t,s,n){return new(s||(s=Promise))((function(i,o){function r(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(r,a)}c((n=n.apply(e,t||[])).next())}))}!function(e){e.DISCONNECTED="disconnected",e.DISCONNECTING="disconnecting",e.CONNECTING="connecting",e.CONNECTED="connected",e.RECONNECTING="reconnecting",e.RECONNECTED="reconnected",e.EXPIRED_RECONNECTED="reconnected",e.CONNECT_FAILED="connect_failed"}(e||(e={}));var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})})),t}var i={exports:{}},o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],a=function(e){var t=e,s=e.indexOf("["),n=e.indexOf("]");-1!=s&&-1!=n&&(e=e.substring(0,s)+e.substring(s,n).replace(/:/g,";")+e.substring(n,e.length));for(var i=o.exec(e||""),a={},c=14;c--;)a[r[c]]=i[c]||"";return-1!=s&&-1!=n&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a},c={exports:{}},u={exports:{}},l=1e3,d=60*l,h=60*d,p=24*h,m=365.25*p,f=function(e,t){t=t||{};var s=typeof e;if("string"===s&&e.length>0)return function(e){if(e=String(e),e.length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*m;case"days":case"day":case"d":return s*p;case"hours":case"hour":case"hrs":case"hr":case"h":return s*h;case"minutes":case"minute":case"mins":case"min":case"m":return s*d;case"seconds":case"second":case"secs":case"sec":case"s":return s*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===s&&!1===isNaN(e))return t.long?function(e){return g(e,p,"day")||g(e,h,"hour")||g(e,d,"minute")||g(e,l,"second")||e+" ms"}(e):function(e){if(e>=p)return Math.round(e/p)+"d";if(e>=h)return Math.round(e/h)+"h";if(e>=d)return Math.round(e/d)+"m";if(e>=l)return Math.round(e/l)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function g(e,t,s){if(!(e=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.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"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(s())}(c,c.exports);var y=a,v=c.exports("socket.io-client:url"),E=function(e,t){var s=e;t=t||"undefined"!=typeof location&&location,null==e&&(e=t.protocol+"//"+t.host);"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(v("protocol-less url %s",e),e=void 0!==t?t.protocol+"//"+e:"https://"+e),v("parse %s",e),s=y(e));s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443"));s.path=s.path||"/";var n=-1!==s.host.indexOf(":")?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+n+":"+s.port,s.href=s.protocol+"://"+n+(t&&t.port===s.port?"":":"+s.port),s};var C={},S={exports:{}};!function(e){function t(e){if(e)return function(e){for(var s in t.prototype)e[s]=t.prototype[s];return e}(e)}S.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function s(){this.off(e,s),t.apply(this,arguments)}return s.fn=t,this.on(e,s),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i=55296&&t<=56319&&i=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function B(e,t){return L(e>>t&63|128)}function j(e,t){if(0==(4294967168&e))return L(e);var s="";return 0==(4294965248&e)?s=L(e>>6&31|192):0==(4294901760&e)?(q(e,t)||(e=65533),s=L(e>>12&15|224),s+=B(e,6)):0==(4292870144&e)&&(s=L(e>>18&7|240),s+=B(e,12),s+=B(e,6)),s+=L(63&e|128)}function V(){if(U>=F)throw Error("Invalid byte index");var e=255&x[U];if(U++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function H(e){var t,s;if(U>F)throw Error("Invalid byte index");if(U==F)return!1;if(t=255&x[U],U++,0==(128&t))return t;if(192==(224&t)){if((s=(31&t)<<6|V())>=128)return s;throw Error("Invalid continuation byte")}if(224==(240&t)){if((s=(15&t)<<12|V()<<6|V())>=2048)return q(s,e)?s:65533;throw Error("Invalid continuation byte")}if(240==(248&t)&&(s=(7&t)<<18|V()<<12|V()<<6|V())>=65536&&s<=1114111)return s;throw Error("Invalid UTF-8 detected")}var W={version:"2.1.2",encode:function(e,t){for(var s=!1!==(t=t||{}).strict,n=G(e),i=n.length,o=-1,r="";++o65535&&(i+=L((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=L(t);return i}(i)}},z=void 0!==z?z:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,X=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),J=X&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),K=z&&z.prototype.append&&z.prototype.getBlob;function Q(e){return e.map((function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var s=new Uint8Array(e.byteLength);s.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=s.buffer}return t}return e}))}function Y(e,t){t=t||{};var s=new z;return Q(e).forEach((function(e){s.append(e)})),t.type?s.getBlob(t.type):s.getBlob()}function $(e,t){return new Blob(Q(e),t||{})}"undefined"!=typeof Blob&&(Y.prototype=Blob.prototype,$.prototype=Blob.prototype);var Z=X?J?Blob:$:K?Y:void 0;!function(e){var t=T,s=P,n=k,i=W;"undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),"undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),e.protocol=3;var o=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},r=t(o),a={type:"error",data:"parser error"},c=Z;e.encodePacket=function(e,t,s,n){"function"==typeof t&&(n=t,t=!1),"function"==typeof s&&(n=s,s=null),void 0===e.data||e.data.buffer||e.data;var r=o[e.type];return void 0!==e.data&&(r+=s?i.encode(String(e.data),{strict:!1}):String(e.data)),n(""+r)},e.decodePacket=function(e,t,s){if(void 0===e)return a;if("string"==typeof e){if(s&&!1===(e=function(e){try{e=i.decode(e,{strict:!1})}catch(e){return!1}return e}(e)))return a;var n=e.charAt(0);return Number(n)==n&&r[n]?e.length>1?{type:r[n],data:e.substring(1)}:{type:r[n]}:a}n=new Uint8Array(e)[0];var o=sliceBuffer(e,1);return c&&"blob"===t&&(o=new c([o])),{type:r[n],data:o}},e.encodePayload=function(t,i,o){"function"==typeof i&&(o=i,i=null);var r=s(t);if(!t.length)return o("0:");!function(e,t,s){for(var i=new Array(e.length),o=n(e.length,s),r=function(e,s,n){t(s,(function(t,s){i[e]=s,n(t,i)}))},a=0;a0);return t}function he(){var e=de(+new Date);return e!==ne?(ue=0,ne=e):e+"."+de(ue++)}for(;le0)return function(e){if(e=String(e),e.length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*Ce;case"days":case"day":case"d":return s*Ee;case"hours":case"hour":case"hrs":case"hr":case"h":return s*ve;case"minutes":case"minute":case"mins":case"min":case"m":return s*ye;case"seconds":case"second":case"secs":case"sec":case"s":return s*ge;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===s&&!1===isNaN(e))return t.long?function(e){return be(e,Ee,"day")||be(e,ve,"hour")||be(e,ye,"minute")||be(e,ge,"second")||e+" ms"}(e):function(e){if(e>=Ee)return Math.round(e/Ee)+"d";if(e>=ve)return Math.round(e/ve)+"h";if(e>=ye)return Math.round(e/ye)+"m";if(e>=ge)return Math.round(e/ge)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function be(e,t,s){if(!(e=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.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"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(s())}(me,me.exports);var we={exports:{}};try{we.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){we.exports=!1}var Ie=we.exports,Me=function(e){var t=e.xdomain,s=e.xscheme,n=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||Ie))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!s&&n)return new XDomainRequest}catch(e){}if(!t)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}},Ae=te,Te=ie,Ne=A,Re=oe,Oe=pe,_e=me.exports("engine.io-client:polling"),Pe=De,ke=null!=new Me({xdomain:!1}).responseType;function De(e){var t=e&&e.forceBase64;ke&&!t||(this.supportsBinary=!1),Ae.call(this,e)}Re(De,Ae),De.prototype.name="polling",De.prototype.doOpen=function(){this.poll()},De.prototype.pause=function(e){var t=this;function s(){_e("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var n=0;this.polling&&(_e("we are currently polling - waiting to pause"),n++,this.once("pollComplete",(function(){_e("pre-pause polling complete"),--n||s()}))),this.writable||(_e("we are currently writing - waiting to pause"),n++,this.once("drain",(function(){_e("pre-pause writing complete"),--n||s()})))}else s()},De.prototype.poll=function(){_e("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},De.prototype.onData=function(e){var t=this;_e("polling got data %s",e);Ne.decodePayload(e,this.socket.binaryType,(function(e,s,n){if("opening"===t.readyState&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():_e('ignoring poll - transport state "%s"',this.readyState))},De.prototype.doClose=function(){var e=this;function t(){_e("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(_e("transport open - closing"),t()):(_e("transport not open - deferring close"),this.once("open",t))},De.prototype.write=function(e){var t=this;this.writable=!1;var s=function(){t.writable=!0,t.emit("drain")};Ne.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,s)}))},De.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",s="";return!1!==this.timestampRequests&&(e[this.timestampParam]=Oe()),this.supportsBinary||e.sid||(e.b64=1),e=Te.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(s=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+s+this.path+e};var xe,Fe=Pe,Ue=je,Le=/\n/g,Ge=/\\n/g;function qe(){}function Be(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==s?s:{}}function je(e){if(Fe.call(this,e),this.query=this.query||{},!xe){var t=Be();xe=t.___eio=t.___eio||[]}this.index=xe.length;var s=this;xe.push((function(e){s.onData(e)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){s.script&&(s.script.onerror=qe)}),!1)}oe(je,Fe),je.prototype.supportsBinary=!1,je.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),Fe.prototype.doClose.call(this)},je.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var s=document.getElementsByTagName("script")[0];s?s.parentNode.insertBefore(t,s):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)}),100)},je.prototype.doWrite=function(e,t){var s=this;if(!this.form){var n,i=document.createElement("form"),o=document.createElement("textarea"),r=this.iframeId="eio_iframe_"+this.index;i.className="socketio",i.style.position="absolute",i.style.top="-1000px",i.style.left="-1000px",i.target=r,i.method="POST",i.setAttribute("accept-charset","utf-8"),o.name="d",i.appendChild(o),document.body.appendChild(i),this.form=i,this.area=o}function a(){c(),t()}function c(){if(s.iframe)try{s.form.removeChild(s.iframe)}catch(e){s.onError("jsonp polling iframe removal error",e)}try{var e='