1function Kt(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function Vt(u){if(Object.prototype.hasOwnProperty.call(u,"__esModule"))return u;var n=u.default;if(typeof n=="function"){var f=function i(){var h=!1;try{h=this instanceof i}catch{}return h?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};f.prototype=n.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(u).forEach(function(i){var h=Object.getOwnPropertyDescriptor(u,i);Object.defineProperty(f,i,h.get?h:{enumerable:!0,get:function(){return u[i]}})}),f}var D={exports:{}},Z,$e;function Yt(){if($e)return Z;$e=1;var u=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];return Z=function(i){var h=i,a=i.indexOf("["),p=i.indexOf("]");a!=-1&&p!=-1&&(i=i.substring(0,a)+i.substring(a,p).replace(/:/g,";")+i.substring(p,i.length));for(var c=u.exec(i||""),l={},r=14;r--;)l[n[r]]=c[r]||"";return a!=-1&&p!=-1&&(l.source=h,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l},Z}var I={exports:{}},Q,He;function Gt(){if(He)return Q;He=1;var u=1e3,n=u*60,f=n*60,i=f*24,h=i*7,a=i*365.25;Q=function(t,e){e=e||{};var s=typeof t;if(s==="string"&&t.length>0)return p(t);if(s==="number"&&isFinite(t))return e.long?l(t):c(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function p(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var s=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"weeks":case"week":case"w":return s*h;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*f;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function c(t){var e=Math.abs(t);return e>=i?Math.round(t/i)+"d":e>=f?Math.round(t/f)+"h":e>=n?Math.round(t/n)+"m":e>=u?Math.round(t/u)+"s":t+"ms"}function l(t){var e=Math.abs(t);return e>=i?r(t,e,i,"day"):e>=f?r(t,e,f,"hour"):e>=n?r(t,e,n,"minute"):e>=u?r(t,e,u,"second"):t+" ms"}function r(t,e,s,o){var y=e>=s*1.5;return Math.round(t/s)+" "+o+(y?"s":"")}return Q}var ee,ze;function Zt(){if(ze)return ee;ze=1;function u(n){i.debug=i,i.default=i,i.coerce=t,i.disable=c,i.enable=p,i.enabled=l,i.humanize=Gt(),Object.keys(n).forEach(e=>{i[e]=n[e]}),i.instances=[],i.names=[],i.skips=[],i.formatters={};function f(e){let s=0;for(let o=0;o<e.length;o++)s=(s<<5)-s+e.charCodeAt(o),s|=0;return i.colors[Math.abs(s)%i.colors.length]}i.selectColor=f;function i(e){let s;function o(...y){if(!o.enabled)return;const v=o,b=Number(new Date),k=b-(s||b);v.diff=k,v.prev=s,v.curr=b,s=b,y[0]=i.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let g=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(d,m)=>{if(d==="%%")return d;g++;const C=i.formatters[m];if(typeof C=="function"){const F=y[g];d=C.call(v,F),y.splice(g,1),g--}return d}),i.formatArgs.call(v,y),(v.log||i.log).apply(v,y)}return o.namespace=e,o.enabled=i.enabled(e),o.useColors=i.useColors(),o.color=f(e),o.destroy=h,o.extend=a,typeof i.init=="function"&&i.init(o),i.instances.push(o),o}function h(){const e=i.instances.indexOf(this);return e!==-1?(i.instances.splice(e,1),!0):!1}function a(e,s){const o=i(this.namespace+(typeof s>"u"?":":s)+e);return o.log=this.log,o}function p(e){i.save(e),i.names=[],i.skips=[];let s;const o=(typeof e=="string"?e:"").split(/[\s,]+/),y=o.length;for(s=0;s<y;s++)o[s]&&(e=o[s].replace(/\*/g,".*?"),e[0]==="-"?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")));for(s=0;s<i.instances.length;s++){const v=i.instances[s];v.enabled=i.enabled(v.namespace)}}function c(){const e=[...i.names.map(r),...i.skips.map(r).map(s=>"-"+s)].join(",");return i.enable(""),e}function l(e){if(e[e.length-1]==="*")return!0;let s,o;for(s=0,o=i.skips.length;s<o;s++)if(i.skips[s].test(e))return!1;for(s=0,o=i.names.length;s<o;s++)if(i.names[s].test(e))return!0;return!1}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function t(e){return e instanceof Error?e.stack||e.message:e}return i.enable(i.load()),i}return ee=u,ee}var Xe;function V(){return Xe||(Xe=1,(function(u,n){var f={};n.log=a,n.formatArgs=h,n.save=p,n.load=c,n.useColors=i,n.storage=l(),n.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","#33
1CCCC","#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"];function i(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function h(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+u.exports.humanize(this.diff),!this.useColors)return;const e="color: "+this.color;t.splice(1,0,e,"color: inherit");let s=0,o=0;t[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(s++,y==="%c"&&(o=s))}),t.splice(o,0,e)}function a(...t){return typeof console=="object"&&console.log&&console.log(...t)}function p(t){try{t?n.storage.setItem("debug",t):n.storage.removeItem("debug")}catch{}}function c(){let t;try{t=n.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=f.DEBUG),t}function l(){try{return localStorage}catch{}}u.exports=Zt()(n);const{formatters:r}=u.exports;r.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})(I,I.exports)),I.exports}var te,Je;function Qt(){if(Je)return te;Je=1;var u=Yt(),n=V()("socket.io-client:url");te=f;function f(i,h){var a=i;h=h||typeof location<"u"&&location,i==null&&(i=h.protocol+"//"+h.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=h.protocol+i:i=h.host+i),/^(https?|wss?):\/\//.test(i)||(n("protocol-less url %s",i),typeof h<"u"?i=h.protocol+"//"+i:i="https://"+i),n("parse %s",i),a=u(i)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";var p=a.host.indexOf(":")!==-1,c=p?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+c+":"+a.port,a.href=a.protocol+"://"+c+(h&&h.port===a.port?"":":"+a.port),a}return te}var re={},M={exports:{}}
1,L={exports:{}},ne,We;function er(){if(We)return ne;We=1;var u=1e3,n=u*60,f=n*60,i=f*24,h=i*365.25;ne=function(r,t){t=t||{};var e=typeof r;if(e==="string"&&r.length>0)return a(r);if(e==="number"&&isNaN(r)===!1)return t.long?c(r):p(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function a(r){if(r=String(r),!(r.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(r);if(t){var e=parseFloat(t[1]),s=(t[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return e*h;case"days":case"day":case"d":return e*i;case"hours":case"hour":case"hrs":case"hr":case"h":return e*f;case"minutes":case"minute":case"mins":case"min":case"m":return e*n;case"seconds":case"second":case"secs":case"sec":case"s":return e*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}}}function p(r){return r>=i?Math.round(r/i)+"d":r>=f?Math.round(r/f)+"h":r>=n?Math.round(r/n)+"m":r>=u?Math.round(r/u)+"s":r+"ms"}function c(r){return l(r,i,"day")||l(r,f,"hour")||l(r,n,"minute")||l(r,u,"second")||r+" ms"}function l(r,t,e){if(!(r<t))return r<t*1.5?Math.floor(r/t)+" "+e:Math.ceil(r/t)+" "+e+"s"}return ne}var je;function tr(){return je||(je=1,(function(u,n){n=u.exports=i.debug=i.default=i,n.coerce=l,n.disable=p,n.enable=a,n.enabled=c,n.humanize=er(),n.instances=[],n.names=[],n.skips=[],n.formatters={};function f(r){var t=0,e;for(e in r)t=(t<<5)-t+r.charCodeAt(e),t|=0;return n.colors[Math.abs(t)%n.colors.length]}function i(r){var t;function e(){if(e.enabled){var s=e,o=+new Date,y=o-(t||o);s.diff=y,s.prev=t,s.curr=o,t=o;for(var v=new Array(arguments.length),b=0;b<v.length;b++)v[b]=arguments[b];v[0]=n.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");var k=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,function(w,d){if(w==="%%")return w;k++;var m=n.formatters[d];if(typeof m=="function"){var C=v[k];w=m.call(s,C),v.splice(k,1),k--}return w}),n.formatArgs.call(s,v);var g=e.log||n.log||console.log.bind(console);g.apply(s,v)}}return e.namespace=r,e.enabled=n.enabled(r),e.useColors=n.useColors(),e.color=f(r),e.destroy=h,typeof n.init=="function"&&n.init(e),n.instances.push(e),e}function h(){var r=n.instances.indexOf(this);return r!==-1?(n.instances.splice(r,1),!0):!1}function a(r){n.save(r),n.names=[],n.skips=[];var t,e=(typeof r=="string"?r:"").split(/[\s,]+/),s=e.length;for(t=0;t<s;t++)e[t]&&(r=e[t].replace(/\*/g,".*?"),r[0]==="-"?n.skips.push(new RegExp("^"+r.substr(1)+"$")):n.names.push(new RegExp("^"+r+"$")));for(t=0;t<n.instances.length;t++){var o=n.instances[t];o.enabled=n.enabled(o.namespace)}}function p(){n.enable("")}function c(r){if(r[r.length-1]==="*")return!0;var t,e;for(t=0,e=n.skips.length;t<e;t++)if(n.skips[t].test(r))return!1;for(t=0,e=n.names.length;t<e;t++)if(n.names[t].test(r))return!0;return!1}function l(r){return r instanceof Error?r.stack||r.message:r}})(L,L.exports)),L.exports}var Ke;function rr(){return Ke||(Ke=1,(function(u,n){var f={};n=u.exports=tr(),n.log=a,n.formatArgs=h,n.save=p,n.load=c,n.useColors=i,n.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:l(),n.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"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}n.formatters.j=function(r){try{return JSON.stringify(r)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function h(r){var t=this.useColors;if(r[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+r[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff),!!t){var e="color: "+this.color;r.splice(1,0,e,"color: inherit");var s=0,o=0;r[0].replace(/%[a-zA-Z%]/g,function(y){y!=="%%"&&(s++,y==="%c"&&(o=s))}),r.splice(o,0,e)}}function a(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function p(r){try{r==null?n.storage.removeItem("debug"):n.storage.debug=r}catch{}}function c(){var r;try{r=n.storage.debug}catch{}return!r&&typeof process<"u"&&"env"in process&&(r=f.DEBUG),r}n.enable(c());function l(){try{return window.localStorage}catch{}}}
1)(M,M.exports)),M.exports}var ie={exports:{}},Ve;function nr(){return Ve||(Ve=1,(function(u){u.exports=n;function n(i){if(i)return f(i)}function f(i){for(var h in n.prototype)i[h]=n.prototype[h];return i}n.prototype.on=n.prototype.addEventListener=function(i,h){return this._callbacks=this._callbacks||{},(this._callbacks["$"+i]=this._callbacks["$"+i]||[]).push(h),this},n.prototype.once=function(i,h){function a(){this.off(i,a),h.apply(this,arguments)}return a.fn=h,this.on(i,a),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(i,h){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var a=this._callbacks["$"+i];if(!a)return this;if(arguments.length==1)return delete this._callbacks["$"+i],this;for(var p,c=0;c<a.length;c++)if(p=a[c],p===h||p.fn===h){a.splice(c,1);break}return a.length===0&&delete this._callbacks["$"+i],this},n.prototype.emit=function(i){this._callbacks=this._callbacks||{};for(var h=new Array(arguments.length-1),a=this._callbacks["$"+i],p=1;p<arguments.length;p++)h[p-1]=arguments[p];if(a){a=a.slice(0);for(var p=0,c=a.length;p<c;++p)a[p].apply(this,h)}return this},n.prototype.listeners=function(i){return this._callbacks=this._callbacks||{},this._callbacks["$"+i]||[]},n.prototype.hasListeners=function(i){return!!this.listeners(i).length}})(ie)),ie.exports}var T={},se,Ye;function Pe(){if(Ye)return se;Ye=1;var u={}.toString;return se=Array.isArray||function(n){return u.call(n)=="[object Array]"},se}var oe,Ge;function Lt(){if(Ge)return oe;Ge=1,oe=i;var u=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",n=typeof ArrayBuffer=="function",f=function(h){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(h):h.buffer instanceof ArrayBuffer};function i(h){return u&&Buffer.isBuffer(h)||n&&(h instanceof ArrayBuffer||f(h))}return oe}var Ze;function ir(){if(Ze)return T;Ze=1;var u=Pe(),n=Lt(),f=Object.prototype.toString,i=typeof Blob=="function"||typeof Blob<"u"&&f.call(Blob)==="[object BlobConstructor]",h=typeof File=="function"||typeof File<"u"&&f.call(File)==="[object FileConstructor]";T.deconstructPacket=function(c){var l=[],r=c.data,t=c;return t.data=a(r,l),t.attachments=l.length,{packet:t,buffers:l}};function a(c,l){if(!c)return c;if(n(c)){var r={_placeholder:!0,num:l.length};return l.push(c),r}else if(u(c)){for(var t=new Array(c.length),e=0;e<c.length;e++)t[e]=a(c[e],l);return t}else if(typeof c=="object"&&!(c instanceof Date)){var t={};for(var s in c)t[s]=a(c[s],l);return t}return c}T.reconstructPacket=function(c,l){return c.data=p(c.data,l),c.attachments=void 0,c};function p(c,l){if(!c)return c;if(c&&c._placeholder===!0){var r=typeof c.num=="number"&&c.num>=0&&c.num<l.length;if(r)return l[c.num];throw new Error("illegal attachments")}else if(u(c))for(var t=0;t<c.length;t++)c[t]=p(c[t],l);else if(typeof c=="object")for(var e in c)c[e]=p(c[e],l);return c}return T.removeBlobs=function(c,l){function r(s,o,y){if(!s)return s;if(i&&s instanceof Blob||h&&s instanceof File){t++;var v=new FileReader;v.onload=function(){y?y[o]=this.result:e=this.result,--t||l(e)},v.readAsArrayBuffer(s)}else if(u(s))for(var b=0;b<s.length;b++)r(s[b],b,s);else if(typeof s=="object"&&!n(s))for(var k in s)r(s[k],k,s)}var t=0,e=c;r(e),t||l(e)},T}var Qe;function Te(){return Qe||(Qe=1,(function(u){var n=rr()("socket.io-parser"),f=nr(),i=ir(),h=Pe(),a=Lt();u.protocol=4,u.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],u.CONNECT=0,u.DISCONNECT=1,u.EVENT=2,u.ACK=3,u.ERROR=4,u.BINARY_EVENT=5,u.BINARY_ACK=6,u.Encoder=p,u.Decoder=e;function p(){}var c=u.ERROR+'"encode error"';p.prototype.encode=function(g,w){if(n("encoding packet %j",g),u.BINARY_EVENT===g.type||u.BINARY_ACK===g.type)t(g,w);else{var d=l(g);w([d])}};function l(g){var w=""+g.type;if((u.BINARY_EVENT===g.type||u.BINARY_ACK===g.type)&&(w+=g.attachments+"-"),g.nsp&&g.nsp!=="/"&&(w+=g.nsp+","),g.id!=null&&(w+=g.id),g.data!=null){var d=r(g.data);if(d!==!1)w+=d;else return c}return n("encoded %j as %s",g,w),w}function r(g){try{return JSON.stringify(g)}catch{return!1}}
1function t(g,w){function d(m){var C=i.deconstructPacket(m),F=l(C.packet),B=C.buffers;B.unshift(F),w(B)}i.removeBlobs(g,d)}function e(g){this.reconstructor=null,g=g||{},this.opts={maxAttachments:g.maxAttachments||10}}f(e.prototype),e.prototype.add=function(g){var w;if(typeof g=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");w=o(g,this.opts.maxAttachments),u.BINARY_EVENT===w.type||u.BINARY_ACK===w.type?(this.reconstructor=new v(w),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",w)):this.emit("decoded",w)}else if(a(g)||g.base64)if(this.reconstructor)w=this.reconstructor.takeBinaryData(g),w&&(this.reconstructor=null,this.emit("decoded",w));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+g)};function s(g,w){switch(g){case 0:return typeof w=="object";case 1:return w===void 0;case 4:return typeof w=="string"||typeof w=="object";case 2:case 5:return h(w)&&(typeof w[0]=="string"||typeof w[0]=="number");case 3:case 6:return h(w)}}function o(g,w){var d=0,m={type:Number(g.charAt(0))};if(u.types[m.type]==null)return b("unknown packet type "+m.type);if(u.BINARY_EVENT===m.type||u.BINARY_ACK===m.type){for(var C=d+1;g.charAt(++d)!=="-"&&d!=g.length;);var F=g.substring(C,d);if(F!=Number(F)||g.charAt(d)!=="-")throw new Error("Illegal attachments");var B=Number(F);if(!k(B)||B<0)throw new Error("Illegal attachments");if(B>w)throw new Error("too many attachments");m.attachments=B}if(g.charAt(d+1)==="/"){for(var C=d+1;++d;){var A=g.charAt(d);if(A===","||d===g.length)break}m.nsp=g.substring(C,d)}else m.nsp="/";var q=g.charAt(d+1);if(q!==""&&Number(q)==q){for(var C=d+1;++d;){var A=g.charAt(d);if(A==null||Number(A)!=A){--d;break}if(d===g.length)break}m.id=Number(g.substring(C,d+1))}if(g.charAt(++d)){var R=y(g.substr(d));if(s(m.type,R))m.data=R;else throw new Error("invalid payload")}return n("decoded %s as %j",g,m),m}function y(g){try{return JSON.parse(g)}catch{return!1}}e.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function v(g){this.reconPack=g,this.buffers=[]}v.prototype.takeBinaryData=function(g){if(this.buffers.push(g),this.buffers.length===this.reconPack.attachments){var w=i.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),w}return null},v.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function b(g){return{type:u.ERROR,data:"parser error: "+g}}var k=Number.isInteger||function(g){return typeof g=="number"&&isFinite(g)&&Math.floor(g)===g}})(re)),re}var U={exports:{}},$={},H={exports:{}},et;function sr(){if(et)return H.exports;et=1;try{H.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{H.exports=!1}return H.exports}var ae,tt;function De(){return tt||(tt=1,ae=(function(){return typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})()),ae}var ce,rt;function Ie(){if(rt)return ce;rt=1;var u=sr(),n=De();return ce=function(f){var i=f.xdomain,h=f.xscheme,a=f.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!i||u))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!h&&a)return new XDomainRequest}catch{}if(!i)try{return new n[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}},ce}var z={exports:{}},ue={},fe,nt;function or(){return nt||(nt=1,fe=Object.keys||function(n){var f=[],i=Object.prototype.hasOwnProperty;for(var h in n)i.call(n,h)&&f.push(h);return f}),fe}var he,it;function Ut(){if(it)return he;it=1;var u=Pe(),n=Object.prototype.toString,f=typeof Blob=="function"||typeof Blob<"u"&&n.call(Blob)==="[object BlobConstructor]",i=typeof File=="function"||typeof File<"u"&&n.call(File)==="[object FileConstructor]";he=h;function h(a){if(!a||typeof a!="object")return!1;if(u(a)){for(var p=0,c=a.length;p<c;p++)if(h(a[p]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(a)||typeof ArrayBuffer=="function"&&a instanceof ArrayBuffer||f&&a instanceof Blob||i&&a instanceof File)return!0;if(a.toJSON&&typeof a.toJSON=="function"&&arguments.length===1)return h(a.toJSON(),!0);for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l)&&h(a[l]))return!0;return!1}return he}var le,st;function ar(){return st||(st=1,le=function(u,n,f){var i=u.byteLength;if(n=n||0,f=f||i,u.slice)return u.slice(n,f);if(n<0&&(n+=i),f<0&&(f+=i),f>i&&(f=i),n>=i||n>=f||i===0)return new ArrayBuffer(0);for(var h=new Uint8Array(u),a=new Uint8Array(f-n),p=n,c=0;p<f;p++,c++)a[c]=h[p];return a.buffer}),le}var pe,ot;function cr(){if(ot)return pe;ot=1,pe=u;function u(f,i,h){var a=!1;return h=h||n,p.count=f,f===0?i():p;function p(c,l){if(p.count<=0)throw new Error("after called too many times");--p.count,c?(a=!0,i(c),i=h):p.count===0&&!a&&i(null,l)}}function n(){}return pe}var de,at;function ur(){if(at)return de;at=1;var u=String.fromCharCode;function n(o){for(var y=[],v=0,b=o.length,k,g;v<b;
1)k=o.charCodeAt(v++),k>=55296&&k<=56319&&v<b?(g=o.charCodeAt(v++),(g&64512)==56320?y.push(((k&1023)<<10)+(g&1023)+65536):(y.push(k),v--)):y.push(k);return y}function f(o){for(var y=o.length,v=-1,b,k="";++v<y;)b=o[v],b>65535&&(b-=65536,k+=u(b>>>10&1023|55296),b=56320|b&1023),k+=u(b);return k}function i(o,y){if(o>=55296&&o<=57343){if(y)throw Error("Lone surrogate U+"+o.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function h(o,y){return u(o>>y&63|128)}function a(o,y){if((o&4294967168)==0)return u(o);var v="";return(o&4294965248)==0?v=u(o>>6&31|192):(o&4294901760)==0?(i(o,y)||(o=65533),v=u(o>>12&15|224),v+=h(o,6)):(o&4292870144)==0&&(v=u(o>>18&7|240),v+=h(o,12),v+=h(o,6)),v+=u(o&63|128),v}function p(o,y){y=y||{};for(var v=y.strict!==!1,b=n(o),k=b.length,g=-1,w,d="";++g<k;)w=b[g],d+=a(w,v);return d}function c(){if(e>=t)throw Error("Invalid byte index");var o=r[e]&255;if(e++,(o&192)==128)return o&63;throw Error("Invalid continuation byte")}function l(o){var y,v,b,k,g;if(e>t)throw Error("Invalid byte index");if(e==t)return!1;if(y=r[e]&255,e++,(y&128)==0)return y;if((y&224)==192){if(v=c(),g=(y&31)<<6|v,g>=128)return g;throw Error("Invalid continuation byte")}if((y&240)==224){if(v=c(),b=c(),g=(y&15)<<12|v<<6|b,g>=2048)return i(g,o)?g:65533;throw Error("Invalid continuation byte")}if((y&248)==240&&(v=c(),b=c(),k=c(),g=(y&7)<<18|v<<12|b<<6|k,g>=65536&&g<=1114111))return g;throw Error("Invalid UTF-8 detected")}var r,t,e;function s(o,y){y=y||{};var v=y.strict!==!1;r=n(o),t=r.length,e=0;for(var b=[],k;(k=l(v))!==!1;)b.push(k);return f(b)}return de={version:"2.1.2",encode:p,decode:s},de}var X={},ct;function fr(){return ct||(ct=1,(function(u){X.encode=function(n){var f=new Uint8Array(n),i,h=f.length,a="";for(i=0;i<h;i+=3)a+=u[f[i]>>2],a+=u[(f[i]&3)<<4|f[i+1]>>4],a+=u[(f[i+1]&15)<<2|f[i+2]>>6],a+=u[f[i+2]&63];return h%3===2?a=a.substring(0,a.length-1)+"=":h%3===1&&(a=a.substring(0,a.length-2)+"=="),a},X.decode=function(n){var f=n.length*.75,i=n.length,h,a=0,p,c,l,r;n[n.length-1]==="="&&(f--,n[n.length-2]==="="&&f--);var t=new ArrayBuffer(f),e=new Uint8Array(t);for(h=0;h<i;h+=4)p=u.indexOf(n[h]),c=u.indexOf(n[h+1]),l=u.indexOf(n[h+2]),r=u.indexOf(n[h+3]),e[a++]=p<<2|c>>4,e[a++]=(c&15)<<4|l>>2,e[a++]=(l&3)<<6|r&63;return t}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),X}var ye,ut;function hr(){if(ut)return ye;ut=1;var u=typeof u<"u"?u:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:!1,n=(function(){try{var c=new Blob(["hi"]);return c.size===2}catch{return!1}})(),f=n&&(function(){try{var c=new Blob([new Uint8Array([1,2])]);return c.size===2}catch{return!1}})(),i=u&&u.prototype.append&&u.prototype.getBlob;function h(c){return c.map(function(l){if(l.buffer instanceof ArrayBuffer){var r=l.buffer;if(l.byteLength!==r.byteLength){var t=new Uint8Array(l.byteLength);t.set(new Uint8Array(r,l.byteOffset,l.byteLength)),r=t.buffer}return r}return l})}function a(c,l){l=l||{};var r=new u;return h(c).forEach(function(t){r.append(t)}),l.type?r.getBlob(l.type):r.getBlob()}function p(c,l){return new Blob(h(c),l||{})}return typeof Blob<"u"&&(a.prototype=Blob.prototype,p.prototype=Blob.prototype),ye=(function(){return n?f?Blob:p:i?a:void 0})(),ye}var ft;function P(){return ft||(ft=1,(function(u){var n=or(),f=Ut(),i=ar(),h=cr(),a=ur(),p;typeof ArrayBuffer<"u"&&(p=fr());var c=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),l=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),r=c||l;u.protocol=3;var t=u.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},e=n(t),s={type:"error",data:"parser error"},o=hr();u.encodePacket=function(d,m,C,F){typeof m=="function"&&(F=m,m=!1),typeof C=="function"&&(F=C,C=null);var B=d.data===void 0?void 0:d.data.buffer||d.data;if(typeof ArrayBuffer<"u"&&B instanceof ArrayBuffer)return v(d,m,F);if(typeof o<"u"&&B instanceof o)return k(d,m,F);if(B&&B.base64)return y(d,F);var A=t[d.type];return d.data!==void 0&&(A+=C?a.encode(String(d.data),{strict:!1}):String(d.data)),F(""+A)};function y(d,m){var C="b"+u.packets[d.type]+d.data.data;return m(C)}
1function v(d,m,C){if(!m)return u.encodeBase64Packet(d,C);var F=d.data,B=new Uint8Array(F),A=new Uint8Array(1+F.byteLength);A[0]=t[d.type];for(var q=0;q<B.length;q++)A[q+1]=B[q];return C(A.buffer)}function b(d,m,C){if(!m)return u.encodeBase64Packet(d,C);var F=new FileReader;return F.onload=function(){u.encodePacket({type:d.type,data:F.result},m,!0,C)},F.readAsArrayBuffer(d.data)}function k(d,m,C){if(!m)return u.encodeBase64Packet(d,C);if(r)return b(d,m,C);var F=new Uint8Array(1);F[0]=t[d.type];var B=new o([F.buffer,d.data]);return C(B)}u.encodeBase64Packet=function(d,m){var C="b"+u.packets[d.type];if(typeof o<"u"&&d.data instanceof o){var F=new FileReader;return F.onload=function(){var E=F.result.split(",")[1];m(C+E)},F.readAsDataURL(d.data)}var B;try{B=String.fromCharCode.apply(null,new Uint8Array(d.data))}catch{for(var A=new Uint8Array(d.data),q=new Array(A.length),R=0;R<A.length;R++)q[R]=A[R];B=String.fromCharCode.apply(null,q)}return C+=btoa(B),m(C)},u.decodePacket=function(d,m,C){if(d===void 0)return s;if(typeof d=="string"){if(d.charAt(0)==="b")return u.decodeBase64Packet(d.substr(1),m);if(C&&(d=g(d),d===!1))return s;var B=d.charAt(0);return Number(B)!=B||!e[B]?s:d.length>1?{type:e[B],data:d.substring(1)}:{type:e[B]}}var F=new Uint8Array(d),B=F[0],A=i(d,1);return o&&m==="blob"&&(A=new o([A])),{type:e[B],data:A}};function g(d){try{d=a.decode(d,{strict:!1})}catch{return!1}return d}u.decodeBase64Packet=function(d,m){var C=e[d.charAt(0)];if(!p)return{type:C,data:{base64:!0,data:d.substr(1)}};var F=p.decode(d.substr(1));return m==="blob"&&o&&(F=new o([F])),{type:C,data:F}},u.encodePayload=function(d,m,C){typeof m=="function"&&(C=m,m=null);var F=f(d);if(m&&F)return o&&!r?u.encodePayloadAsBlob(d,C):u.encodePayloadAsArrayBuffer(d,C);if(!d.length)return C("0:");function B(q){return q.length+":"+q}function A(q,R){u.encodePacket(q,F?m:!1,!1,function(E){R(null,B(E))})}w(d,A,function(q,R){return C(R.join(""))})};function w(d,m,C){for(var F=new Array(d.length),B=h(d.length,C),A=function(R,E,S){m(E,function(x,_){F[R]=_,S(x,F)})},q=0;q<d.length;q++)A(q,d[q],B)}u.decodePayload=function(d,m,C){if(typeof d!="string")return u.decodePayloadAsBinary(d,m,C);typeof m=="function"&&(C=m,m=null);var F;if(d==="")return C(s,0,1);for(var B="",A,q,R=0,E=d.length;R<E;R++){var S=d.charAt(R);if(S!==":"){B+=S;continue}if(B===""||B!=(A=Number(B))||(q=d.substr(R+1,A),B!=q.length))return C(s,0,1);if(q.length){if(F=u.decodePacket(q,m,!1),s.type===F.type&&s.data===F.data)return C(s,0,1);var x=C(F,R+A,E);if(x===!1)return}R+=A,B=""}if(B!=="")return C(s,0,1)},u.encodePayloadAsArrayBuffer=function(d,m){if(!d.length)return m(new ArrayBuffer(0));function C(F,B){u.encodePacket(F,!0,!0,function(A){return B(null,A)})}w(d,C,function(F,B){var A=B.reduce(function(E,S){var x;return typeof S=="string"?x=S.length:x=S.byteLength,E+x.toString().length+x+2},0),q=new Uint8Array(A),R=0;return B.forEach(function(E){var S=typeof E=="string",x=E;if(S){for(var O=new Uint8Array(E.length),_=0;_<E.length;_++)O[_]=E.charCodeAt(_);x=O.buffer}S?q[R++]=0:q[R++]=1;for(var N=x.byteLength.toString(),_=0;_<N.length;_++)q[R++]=parseInt(N[_]);q[R++]=255;for(var O=new Uint8Array(x),_=0;_<O.length;_++)q[R++]=O[_]}),m(q.buffer)})},u.encodePayloadAsBlob=function(d,m){function C(F,B){u.encodePacket(F,!0,!0,function(A){var q=new Uint8Array(1);if(q[0]=1,typeof A=="string"){for(var R=new Uint8Array(A.length),E=0;E<A.length;E++)R[E]=A.charCodeAt(E);A=R.buffer,q[0]=0}for(var S=A instanceof ArrayBuffer?A.byteLength:A.size,x=S.toString(),_=new Uint8Array(x.length+1),E=0;E<x.length;E++)_[E]=parseInt(x[E]);if(_[x.length]=255,o){var N=new o([q.buffer,_.buffer,A]);B(null,N)}})}w(d,C,function(F,B){return m(new o(B))})},u.decodePayloadAsBinary=function(d,m,C){typeof m=="function"&&(C=m,m=null);for(var F=d,B=[];F.byteLength>0;){for(var A=new Uint8Array(F),q=A[0]===0,R="",E=1;A[E]!==255;E++){if(R.length>310)return C(s,0,1);R+=A[E]}F=i(F,2+R.length),R=parseInt(R);var S=i(F,0,R);if(q)try{S=String.fromCharCode.apply(null,new Uint8Array(S))}catch{var x=new Uint8Array(S);S="";for(var E=0;E<x.length;E++)S+=String.fromCharCode(x[E])}B.push(S),F=i(F,R)}var _=B.length;B.forEach(function(N,O){C(u.decodePacket(N,m,!0),O,_)})}})(ue)),ue}var ve={exports:{}},ht;function Me(){return ht||(ht=1,(function(u){u.exports=n;function n(i){if(i)return f(i)}function f(i){for(var h in n.prototype)i[h]=n.prototype[h];return i}n.prototype.on=n.prototype.addEventListener=function(i,h){return this._callbacks=this._callbacks||{},(this._callbacks["$"+i]=this._callbacks["$"+i]||[]).push(h),this},n.prototype.once=function(i,h){function a(){this.off(i,a),h.apply(this,arguments)}return a.fn=h,this.on(i,a),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(i,h){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var a=this._callbacks["$"+i];if(!a)return this;if(arguments.length==1)return delete this._callbacks["$"+i],this;for(var p,c=0;c<a.length;c++)if(p=a[c],p===h||p.fn===h){a.splice(c,1);break}return a.length===0&&delete this._callbacks["$"+i],this},n.prototype.emit=function(i){this._callbacks=this._callbacks||{};for(var h=new Array(arguments.length-1),a=this._callbacks["$"+i],p=1;p<arguments.length;p++)h[p-1]=arguments[p];if(a){a=a.slice(0);for(var p=0,c=a.length;p<c;++p)a[p].apply(this,h)}return this},n.prototype.listeners=function(i){return this._callbacks=this._callbacks||{},this._callbacks["$"+i]||[]},n.prototype.hasListeners=function(i){return!!this.listeners(i).length}})(ve)),ve.exports}var ge,lt;function Le(){if(lt)return ge;lt=1;var u=P(),n=Me();ge=f;function f(i){this.path=i.path,this.hostname=i.hostname,this.port=i.port,this.secure=i.secure,this.query=i.query,this.timestampParam=i.timestampParam,this.timestampRequests=i.timestampRequests,this.readyState="",this.agent=i.agent||!1,this.socket=i.socket,this.enablesXDR=i.enablesXDR,this.withCredentials=i.withCredentials,this.pfx=i.pfx,this.key=i.key,this.passphrase=i.passphrase,this.cert=i.cert,this.ca=i.ca,this.ciphers=i.ciphers,this.rejectUnauthorized=i.rejectUnauthorized,this.forceNo
1de=i.forceNode,this.isReactNative=i.isReactNative,this.extraHeaders=i.extraHeaders,this.localAddress=i.localAddress}return n(f.prototype),f.prototype.onError=function(i,h){var a=new Error(i);return a.type="TransportError",a.description=h,this.emit("error",a),this},f.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},f.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},f.prototype.send=function(i){if(this.readyState==="open")this.write(i);else throw new Error("Transport not open")},f.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},f.prototype.onData=function(i){var h=u.decodePacket(i,this.socket.binaryType);this.onPacket(h)},f.prototype.onPacket=function(i){this.emit("packet",i)},f.prototype.onClose=function(){this.readyState="closed",this.emit("close")},ge}var J={},pt;function Ue(){return pt||(pt=1,J.encode=function(u){var n="";for(var f in u)u.hasOwnProperty(f)&&(n.length&&(n+="&"),n+=encodeURIComponent(f)+"="+encodeURIComponent(u[f]));return n},J.decode=function(u){for(var n={},f=u.split("&"),i=0,h=f.length;i<h;i++){var a=f[i].split("=");n[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return n}),J}var me,dt;function Y(){return dt||(dt=1,me=function(u,n){var f=function(){};f.prototype=n.prototype,u.prototype=new f,u.prototype.constructor=u}),me}var Ce,yt;function $t(){if(yt)return Ce;yt=1;var u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n=64,f={},i=0,h=0,a;function p(r){var t="";do t=u[r%n]+t,r=Math.floor(r/n);while(r>0);return t}function c(r){var t=0;for(h=0;h<r.length;h++)t=t*n+f[r.charAt(h)];return t}function l(){var r=p(+new Date);return r!==a?(i=0,a=r):r+"."+p(i++)}for(;h<n;h++)f[u[h]]=h;return l.encode=p,l.decode=c,Ce=l,Ce}var W={exports:{}},j={exports:{}},be,vt;function lr(){if(vt)return be;vt=1;var u=1e3,n=u*60,f=n*60,i=f*24,h=i*365.25;be=function(r,t){t=t||{};var e=typeof r;if(e==="string"&&r.length>0)return a(r);if(e==="number"&&isNaN(r)===!1)return t.long?c(r):p(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function a(r){if(r=String(r),!(r.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(r);if(t){var e=parseFloat(t[1]),s=(t[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return e*h;case"days":case"day":case"d":return e*i;case"hours":case"hour":case"hrs":case"hr":case"h":return e*f;case"minutes":case"minute":case"mins":case"min":case"m":return e*n;case"seconds":case"second":case"secs":case"sec":case"s":return e*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}}}function p(r){return r>=i?Math.round(r/i)+"d":r>=f?Math.round(r/f)+"h":r>=n?Math.round(r/n)+"m":r>=u?Math.round(r/u)+"s":r+"ms"}function c(r){return l(r,i,"day")||l(r,f,"hour")||l(r,n,"minute")||l(r,u,"second")||r+" ms"}function l(r,t,e){if(!(r<t))return r<t*1.5?Math.floor(r/t)+" "+e:Math.ceil(r/t)+" "+e+"s"}return be}var gt;function pr(){return gt||(gt=1,(function(u,n){n=u.exports=i.debug=i.default=i,n.coerce=l,n.disable=p,n.enable=a,n.enabled=c,n.humanize=lr(),n.instances=[],n.names=[],n.skips=[],n.formatters={};function f(r){var t=0,e;for(e in r)t=(t<<5)-t+r.charCodeAt(e),t|=0;return n.colors[Math.abs(t)%n.colors.length]}function i(r){var t;function e(){if(e.enabled){var s=e,o=+new Date,y=o-(t||o);s.diff=y,s.prev=t,s.curr=o,t=o;for(var v=new Array(arguments.length),b=0;b<v.length;b++)v[b]=arguments[b];v[0]=n.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");var k=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,function(w,d){if(w==="%%")return w;k++;var m=n.formatters[d];if(typeof m=="function"){var C=v[k];w=m.call(s,C),v.splice(k,1),k--}return w}),n.formatArgs.call(s,v);var g=e.log||n.log||console.log.bind(console);g.apply(s,v)}}return e.namespace=r,e.enabled=n.enabled(r),e.useColors=n.useColors(),e.color=f(r),e.destroy=h,typeof n.init=="function"&&n.init(e),n.instances.push(e),e}function h(){var r=n.instances.indexOf(this);return r!==-1?(n.instances.splice(r,1),!0):!1}function a(r){n.save(r),n.names=[],n.skips=[];var t,e=(typeof r=="string"?r:"").split(/[\s,]+/),s=e.length;for(t=0;t<s;t++)e[t]&&(r=e[t].replace(/\*/g,".*?"),r[0]==="-"?n.skips.push(new RegExp("^"+r.substr(1)+"$")):n.names.push(new RegExp("^"+r+"$")));for(t=0;t<n.instances.length;t++){var o=n.instances[t];o.enabled=n.enabled(o.namespace)}}function p(){n.enable("")}function c(r){if(r[r.length-1]==="*")return!0;var t,e;for(t=0,e=n.skips.length;t<e;t++)if(n.skips[t].test(r))return!1;for(t=0,e=n.names.length;t<e;t++)if(n.names[t].test(r))return!0;return!1}function l(r){return r instanceof Error?r.stack||r.message:r}}
1)(j,j.exports)),j.exports}var mt;function G(){return mt||(mt=1,(function(u,n){var f={};n=u.exports=pr(),n.log=a,n.formatArgs=h,n.save=p,n.load=c,n.useColors=i,n.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:l(),n.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"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}n.formatters.j=function(r){try{return JSON.stringify(r)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function h(r){var t=this.useColors;if(r[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+r[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff),!!t){var e="color: "+this.color;r.splice(1,0,e,"color: inherit");var s=0,o=0;r[0].replace(/%[a-zA-Z%]/g,function(y){y!=="%%"&&(s++,y==="%c"&&(o=s))}),r.splice(o,0,e)}}function a(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function p(r){try{r==null?n.storage.removeItem("debug"):n.storage.debug=r}catch{}}function c(){var r;try{r=n.storage.debug}catch{}return!r&&typeof process<"u"&&"env"in process&&(r=f.DEBUG),r}n.enable(c());function l(){try{return window.localStorage}catch{}}})(W,W.exports)),W.exports}var we,Ct;function Ht(){if(Ct)return we;Ct=1;var u=Le(),n=Ue(),f=P(),i=Y(),h=$t(),a=G()("engine.io-client:polling");we=c;var p=(function(){var l=Ie(),r=new l({xdomain:!1});return r.responseType!=null})();function c(l){var r=l&&l.forceBase64;(!p||r)&&(this.supportsBinary=!1),u.call(this,l)}return i(c,u),c.prototype.name="polling",c.prototype.doOpen=function(){this.poll()},c.prototype.pause=function(l){var r=this;this.readyState="pausing";function t(){a("paused"),r.readyState="paused",l()}if(this.polling||!this.writable){var e=0;this.polling&&(a("we are currently polling - waiting to pause"),e++,this.once("pollComplete",function(){a("pre-pause polling complete"),--e||t()})),this.writable||(a("we are currently writing - waiting to pause"),e++,this.once("drain",function(){a("pre-pause writing complete"),--e||t()}))}else t()},c.prototype.poll=function(){a("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},c.prototype.onData=function(l){var r=this;a("polling got data %s",l);var t=function(e,s,o){if(r.readyState==="opening"&&r.onOpen(),e.type==="close")return r.onClose(),!1;r.onPacket(e)};f.decodePayload(l,this.socket.binaryType,t),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():a('ignoring poll - transport state "%s"',this.readyState))},c.prototype.doClose=function(){var l=this;function r(){a("writing close packet"),l.write([{type:"close"}])}this.readyState==="open"?(a("transport open - closing"),r()):(a("transport not open - deferring close"),this.once("open",r))},c.prototype.write=function(l){var r=this;this.writable=!1;var t=function(){r.writable=!0,r.emit("drain")};f.encodePayload(l,this.supportsBinary,function(e){r.doWrite(e,t)})},c.prototype.uri=function(){var l=this.query||{},r=this.secure?"https":"http",t="";this.timestampRequests!==!1&&(l[this.timestampParam]=h()),!this.supportsBinary&&!l.sid&&(l.b64=1),l=n.encode(l),this.port&&(r==="https"&&Number(this.port)!==443||r==="http"&&Number(this.port)!==80)&&(t=":"+this.port),l.length&&(l="?"+l);var e=this.hostname.indexOf(":")!==-1;return r+"://"+(e?"["+this.hostname+"]":this.hostname)+t+this.path+l},we}var bt;function dr(){if(bt)return z.exports;bt=1;var u=Ie(),n=Ht(),f=Me(),i=Y(),h=G()("engine.io-client:polling-xhr"),a=De();z.exports=c,z.exports.Request=l;function p(){}function c(e){if(n.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,typeof location<"u"){var s=location.protocol==="https:",o=location.port;o||(o=s?443:80),this.xd=typeof location<"u"&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==s}}i(c,n),c.prototype.supportsBinary=!0,c.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new l(e)},c.prototype.doWrite=function(e,s){var o=typeof e!="string"&&e!==void 0,y=this.request({method:"POST",data:e,isBinary:o}),v=this;y.on("success",s),y.on("error",function(b){v.onError("xhr post error",b)}),this.sendXhr=y},c.prototype.doPoll=function(){h("xhr poll");var e=this.request(),s=this;e.on("data",function(o){s.onData(o)}),e.on("error",function(o){s.onError("xhr poll error",o)}),this.pollXhr=e};
1function l(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(f(l.prototype),l.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var s=this.xhr=new u(e),o=this;try{h("xhr open %s: %s",this.method,this.uri),s.open(this.method,this.uri,this.async);try{if(this.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(var y in this.extraHeaders)this.extraHeaders.hasOwnProperty(y)&&s.setRequestHeader(y,this.extraHeaders[y])}}catch{}if(this.method==="POST")try{this.isBinary?s.setRequestHeader("Content-type","application/octet-stream"):s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in s&&(s.withCredentials=this.withCredentials),this.requestTimeout&&(s.timeout=this.requestTimeout),this.hasXDR()?(s.onload=function(){o.onLoad()},s.onerror=function(){o.onError(s.responseText)}):s.onreadystatechange=function(){if(s.readyState===2)try{var v=s.getResponseHeader("Content-Type");(o.supportsBinary&&v==="application/octet-stream"||v==="application/octet-stream; charset=UTF-8")&&(s.responseType="arraybuffer")}catch{}s.readyState===4&&(s.status===200||s.status===1223?o.onLoad():setTimeout(function(){o.onError(typeof s.status=="number"?s.status:0)},0))},h("xhr data %s",this.data),s.send(this.data)}catch(v){setTimeout(function(){o.onError(v)},0);return}typeof document<"u"&&(this.index=l.requestsCount++,l.requests[this.index]=this)},l.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},l.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},l.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},l.prototype.cleanup=function(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=p:this.xhr.onreadystatechange=p,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete l.requests[this.index],this.xhr=null}},l.prototype.onLoad=function(){var e;try{var s;try{s=this.xhr.getResponseHeader("Content-Type")}catch{}s==="application/octet-stream"||s==="application/octet-stream; charset=UTF-8"?e=this.xhr.response||this.xhr.responseText:e=this.xhr.responseText}catch(o){this.onError(o)}e!=null&&this.onData(e)},l.prototype.hasXDR=function(){return typeof XDomainRequest<"u"&&!this.xs&&this.enablesXDR},l.prototype.abort=function(){this.cleanup()},l.requestsCount=0,l.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",t);else if(typeof addEventListener=="function"){var r="onpagehide"in a?"pagehide":"unload";addEventListener(r,t,!1)}}function t(){for(var e in l.requests)l.requests.hasOwnProperty(e)&&l.requests[e].abort()}return z.exports}var Fe,wt;function yr(){if(wt)return Fe;wt=1;var u=Ht(),n=Y(),f=De();Fe=c;var i=/\n/g,h=/\\n/g,a;function p(){}function c(l){u.call(this,l),this.query=this.query||{},a||(a=f.___eio=f.___eio||[]),this.index=a.length;var r=this;a.push(function(t){r.onData(t)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){r.script&&(r.script.onerror=p)},!1)}return n(c,u),c.prototype.supportsBinary=!1,c.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)},c.prototype.doPoll=function(){var l=this,r=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),r.async=!0,r.src=this.uri(),r.onerror=function(s){l.onError("jsonp poll error",s)};var t=document.getElementsByTagName("script")[0];t?t.parentNode.insertBefore(r,t):(document.head||document.body).appendChild(r),this.script=r;var e=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);e&&setTimeout(function(){var s=document.createElement("iframe");document.body.appendChild(s),document.body.removeChild(s)},100)},c.prototype.doWrite=function(l,r){var t=this;if(!this.form){var e=document.createElement("form"),s=document.createElement("textarea"),o=this.iframeId="eio_iframe_"+this.index,y;e.className="socketio",e.style.position="absolute",e.style.top="-1000px",e.
1style.left="-1000px",e.target=o,e.method="POST",e.setAttribute("accept-charset","utf-8"),s.name="d",e.appendChild(s),document.body.appendChild(e),this.form=e,this.area=s}this.form.action=this.uri();function v(){b(),r()}function b(){if(t.iframe)try{t.form.removeChild(t.iframe)}catch(g){t.onError("jsonp polling iframe removal error",g)}try{var k='<iframe src="javascript:0" name="'+t.iframeId+'">';y=document.createElement(k)}catch{y=document.createElement("iframe"),y.name=t.iframeId,y.src="javascript:0"}y.id=t.iframeId,t.form.appendChild(y),t.iframe=y}b(),l=l.replace(h,`\\ 2`),this.area.value=l.replace(i,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){t.iframe.readyState==="complete"&&v()}:this.iframe.onload=v},Fe}const vr={},gr=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"})),mr=Vt(gr);var ke,Ft;function Cr(){if(Ft)return ke;Ft=1;var u=Le(),n=P(),f=Ue(),i=Y(),h=$t(),a=G()("engine.io-client:websocket"),p,c;if(typeof WebSocket<"u"?p=WebSocket:typeof self<"u"&&(p=self.WebSocket||self.MozWebSocket),typeof window>"u")try{c=mr}catch{}var l=p||c;ke=r;function r(t){var e=t&&t.forceBase64;e&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=p&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(l=c),u.call(this,t)}return i(r,u),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,s={};this.isReactNative||(s.agent=this.agent,s.perMessageDeflate=this.perMessageDeflate,s.pfx=this.pfx,s.key=this.key,s.passphrase=this.passphrase,s.cert=this.cert,s.ca=this.ca,s.ciphers=this.ciphers,s.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(s.headers=this.extraHeaders),this.localAddress&&(s.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?e?new l(t,e):new l(t):new l(t,e,s)}catch(o){return this.emit("error",o)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.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)}},r.prototype.write=function(t){var e=this;this.writable=!1;for(var s=t.length,o=0,y=s;o<y;o++)(function(b){n.encodePacket(b,e.supportsBinary,function(k){if(!e.usingBrowserWebSocket){var g={};if(b.options&&(g.compress=b.options.compress),e.perMessageDeflate){var w=typeof k=="string"?Buffer.byteLength(k):k.length;w<e.perMessageDeflate.threshold&&(g.compress=!1)}}try{e.usingBrowserWebSocket?e.ws.send(k):e.ws.send(k,g)}catch{a("websocket closed before onclose event")}--s||v()})})(t[o]);function v(){e.emit("flush"),setTimeout(function(){e.writable=!0,e.emit("drain")},0)}},r.prototype.onClose=function(){u.prototype.onClose.call(this)},r.prototype.doClose=function(){typeof this.ws<"u"&&this.ws.close()},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",s="";this.port&&(e==="wss"&&Number(this.port)!==443||e==="ws"&&Number(this.port)!==80)&&(s=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=h()),this.supportsBinary||(t.b64=1),t=f.encode(t),t.length&&(t="?"+t);var o=this.hostname.indexOf(":")!==-1;return e+"://"+(o?"["+this.hostname+"]":this.hostname)+s+this.path+t},r.prototype.check=function(){return!!l&&!("__initialize"in l&&this.name===r.prototype.name)}
2,ke}var kt;function Bt(){if(kt)return $;kt=1;var u=Ie(),n=dr(),f=yr(),i=Cr();$.polling=h,$.websocket=i;function h(a){var p,c=!1,l=!1,r=a.jsonp!==!1;if(typeof location<"u"){var t=location.protocol==="https:",e=location.port;e||(e=t?443:80),c=a.hostname!==location.hostname||e!==a.port,l=a.secure!==t}if(a.xdomain=c,a.xscheme=l,p=new u(a),"open"in p&&!a.forceJSONP)return new n(a);if(!r)throw new Error("JSONP disabled");return new f(a)}return $}var Be,At;function zt(){if(At)return Be;At=1;var u=[].indexOf;return Be=function(n,f){if(u)return n.indexOf(f);for(var i=0;i<n.length;++i)if(n[i]===f)return i;return-1},Be}var Ae,qt;function br(){if(qt)return Ae;qt=1;var u=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];Ae=function(a){var p=a,c=a.indexOf("["),l=a.indexOf("]");c!=-1&&l!=-1&&(a=a.substring(0,c)+a.substring(c,l).replace(/:/g,";")+a.substring(l,a.length));for(var r=u.exec(a||""),t={},e=14;e--;)t[n[e]]=r[e]||"";return c!=-1&&l!=-1&&(t.source=p,t.host=t.host.substring(1,t.host.length-1).replace(/;/g,":"),t.authority=t.authority.replace("[","").replace("]","").replace(/;/g,":"),t.ipv6uri=!0),t.pathNames=f(t,t.path),t.queryKey=i(t,t.query),t};function f(h,a){var p=/\/{2,9}/g,c=a.replace(p,"/").split("/");return(a.substr(0,1)=="/"||a.length===0)&&c.splice(0,1),a.substr(a.length-1,1)=="/"&&c.splice(c.length-1,1),c}function i(h,a){var p={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(c,l,r){l&&(p[l]=r)}),p}return Ae}var qe,Rt;function wr(){if(Rt)return qe;Rt=1;var u=Bt(),n=Me(),f=G()("engine.io-client:socket"),i=zt(),h=P(),a=br(),p=Ue();qe=c;function c(r,t){if(!(this instanceof c))return new c(r,t);t=t||{},r&&typeof r=="object"&&(t=r,r=null),r?(r=a(r),t.hostname=r.host,t.secure=r.protocol==="https"||r.protocol==="wss",t.port=r.port,r.query&&(t.query=r.query)):t.host&&(t.hostname=a(t.host).host),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.query=t.query||{},typeof this.query=="string"&&(this.query=p.decode(this.query)),this.upgrade=t.upgrade!==!1,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=t.jsonp!==!1,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.withCredentials=t.withCredentials!==!1,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=t.perMessageDeflate!==!1?t.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(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=t.rejectUnauthorized===void 0?!0:t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self>"u"||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()}c.priorWebsocketSuccess=!1,n(c.prototype),c.protocol=h.protocol,c.Socket=c,c.Transport=Le(),c.transports=Bt(),c.parser=P(),c.prototype.createTransport=function(r){f('creating transport "%s"',r);var t=l(this.query);t.EIO=h.protocol,t.transport=r;var e=this.transportOptions[r]||{};this.id&&(t.sid=this.id);var s=new u[r]({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,forceNo
2de:e.forceNode||this.forceNode,localAddress:e.localAddress||this.localAddress,requestTimeout:e.requestTimeout||this.requestTimeout,protocols:e.protocols||void 0,isReactNative:this.isReactNative});return s};function l(r){var t={};for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);return t}return c.prototype.open=function(){var r;if(this.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)r="websocket";else if(this.transports.length===0){var t=this;setTimeout(function(){t.emit("error","No transports available")},0);return}else r=this.transports[0];this.readyState="opening";try{r=this.createTransport(r)}catch{this.transports.shift(),this.open();return}r.open(),this.setTransport(r)},c.prototype.setTransport=function(r){f("setting transport %s",r.name);var t=this;this.transport&&(f("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=r,r.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")})},c.prototype.probe=function(r){f('probing transport "%s"',r);var t=this.createTransport(r,{probe:1}),e=!1,s=this;c.priorWebsocketSuccess=!1;function o(){if(s.onlyBinaryUpgrades){var d=!this.supportsBinary&&s.transport.supportsBinary;e=e||d}e||(f('probe transport "%s" opened',r),t.send([{type:"ping",data:"probe"}]),t.once("packet",function(m){if(!e)if(m.type==="pong"&&m.data==="probe"){if(f('probe transport "%s" pong',r),s.upgrading=!0,s.emit("upgrading",t),!t)return;c.priorWebsocketSuccess=t.name==="websocket",f('pausing current transport "%s"',s.transport.name),s.transport.pause(function(){e||s.readyState!=="closed"&&(f("changing transport and sending upgrade packet"),w(),s.setTransport(t),t.send([{type:"upgrade"}]),s.emit("upgrade",t),t=null,s.upgrading=!1,s.flush())})}else{f('probe transport "%s" failed',r);var C=new Error("probe error");C.transport=t.name,s.emit("upgradeError",C)}}))}function y(){e||(e=!0,w(),t.close(),t=null)}function v(d){var m=new Error("probe error: "+d);m.transport=t.name,y(),f('probe transport "%s" failed because of error: %s',r,d),s.emit("upgradeError",m)}function b(){v("transport closed")}function k(){v("socket closed")}function g(d){t&&d.name!==t.name&&(f('"%s" works - aborting "%s"',d.name,t.name),y())}function w(){t.removeListener("open",o),t.removeListener("error",v),t.removeListener("close",b),s.removeListener("close",k),s.removeListener("upgrading",g)}t.once("open",o),t.once("error",v),t.once("close",b),this.once("close",k),this.once("upgrading",g),t.open()},c.prototype.onOpen=function(){if(f("socket open"),this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){f("starting upgrade probes");for(var r=0,t=this.upgrades.length;r<t;r++)this.probe(this.upgrades[r])}},c.prototype.onPacket=function(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(f('socket receive: type "%s", data "%s"',r.type,r.data),this.emit("packet",r),this.emit("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=r.data,this.onError(t);break;
2case"message":this.emit("data",r.data),this.emit("message",r.data);break}else f('packet received with socket readyState "%s"',this.readyState)},c.prototype.onHandshake=function(r){this.emit("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this.upgrades=this.filterUpgrades(r.upgrades),this.pingInterval=r.pingInterval,this.pingTimeout=r.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},c.prototype.onHeartbeat=function(r){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){t.readyState!=="closed"&&t.onClose("ping timeout")},r||t.pingInterval+t.pingTimeout)},c.prototype.setPing=function(){var r=this;clearTimeout(r.pingIntervalTimer),r.pingIntervalTimer=setTimeout(function(){f("writing ping packet - expecting pong within %sms",r.pingTimeout),r.ping(),r.onHeartbeat(r.pingTimeout)},r.pingInterval)},c.prototype.ping=function(){var r=this;this.sendPacket("ping",function(){r.emit("ping")})},c.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()},c.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(f("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},c.prototype.write=c.prototype.send=function(r,t,e){return this.sendPacket("message",r,t,e),this},c.prototype.sendPacket=function(r,t,e,s){if(typeof t=="function"&&(s=t,t=void 0),typeof e=="function"&&(s=e,e=null),!(this.readyState==="closing"||this.readyState==="closed")){e=e||{},e.compress=e.compress!==!1;var o={type:r,data:t,options:e};this.emit("packetCreate",o),this.writeBuffer.push(o),s&&this.once("flush",s),this.flush()}},c.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?s():t()}):this.upgrading?s():t()}function t(){r.onClose("forced close"),f("socket closing - telling transport to close"),r.transport.close()}function e(){r.removeListener("upgrade",e),r.removeListener("upgradeError",e),t()}function s(){r.once("upgrade",e),r.once("upgradeError",e)}return this},c.prototype.onError=function(r){f("socket error %j",r),c.priorWebsocketSuccess=!1,this.emit("error",r),this.onClose("transport error",r)},c.prototype.onClose=function(r,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){f('socket close with reason: "%s"',r);var e=this;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",r,t),e.writeBuffer=[],e.prevBufferLen=0}},c.prototype.filterUpgrades=function(r){for(var t=[],e=0,s=r.length;e<s;e++)~i(this.transports,r[e])&&t.push(r[e]);return t},qe}var Et;function Fr(){return Et||(Et=1,U.exports=wr(),U.exports.parser=P()),U.exports}var Re={exports:{}},Ee={exports:{}},St;function Xt(){return St||(St=1,(function(u){u.exports=n;function n(i){if(i)return f(i)}function f(i){for(var h in n.prototype)i[h]=n.prototype[h];return i}n.prototype.on=n.prototype.addEventListener=function(i,h){return this._callbacks=this._callbacks||{},(this._callbacks["$"+i]=this._callbacks["$"+i]||[]).push(h),this},n.prototype.once=function(i,h){function a(){this.off(i,a),h.apply(this,arguments)}return a.fn=h,this.on(i,a),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(i,h){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var a=this._callbacks["$"+i];if(!a)return this;if(arguments.length==1)return delete this._callbacks["$"+i],this;for(var p,c=0;c<a.length;c++)if(p=a[c],p===h||p.fn===h){a.splice(c,1);break}return this},n.prototype.emit=function(i){this._callbacks=this._callbacks||{};
2var h=[].slice.call(arguments,1),a=this._callbacks["$"+i];if(a){a=a.slice(0);for(var p=0,c=a.length;p<c;++p)a[p].apply(this,h)}return this},n.prototype.listeners=function(i){return this._callbacks=this._callbacks||{},this._callbacks["$"+i]||[]},n.prototype.hasListeners=function(i){return!!this.listeners(i).length}})(Ee)),Ee.exports}var Se,xt;function kr(){if(xt)return Se;xt=1,Se=u;function u(n,f){var i=[];f=f||0;for(var h=f||0;h<n.length;h++)i[h-f]=n[h];return i}return Se}var xe,_t;function Jt(){if(_t)return xe;_t=1,xe=u;function u(n,f,i){return n.on(f,i),{destroy:function(){n.removeListener(f,i)}}}return xe}var _e,Nt;function Wt(){if(Nt)return _e;Nt=1;var u=[].slice;return _e=function(n,f){if(typeof f=="string"&&(f=n[f]),typeof f!="function")throw new Error("bind() requires a function");var i=u.call(arguments,2);return function(){return f.apply(n,i.concat(u.call(arguments)))}},_e}var K={},Ot;function Br(){return Ot||(Ot=1,K.encode=function(u){var n="";for(var f in u)u.hasOwnProperty(f)&&(n.length&&(n+="&"),n+=encodeURIComponent(f)+"="+encodeURIComponent(u[f]));return n},K.decode=function(u){for(var n={},f=u.split("&"),i=0,h=f.length;i<h;i++){var a=f[i].split("=");n[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return n}),K}var Pt;function jt(){return Pt||(Pt=1,(function(u,n){var f=Te(),i=Xt(),h=kr(),a=Jt(),p=Wt(),c=V()("socket.io-client:socket"),l=Br(),r=Ut();u.exports=s;var t={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},e=i.prototype.emit;function s(o,y,v){this.io=o,this.nsp=y,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},v&&v.query&&(this.query=v.query),this.io.autoConnect&&this.open()}i(s.prototype),s.prototype.subEvents=function(){if(!this.subs){var o=this.io;this.subs=[a(o,"open",p(this,"onopen")),a(o,"packet",p(this,"onpacket")),a(o,"close",p(this,"onclose"))]}},s.prototype.open=s.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},s.prototype.send=function(){var o=h(arguments);return o.unshift("message"),this.emit.apply(this,o),this},s.prototype.emit=function(o){if(t.hasOwnProperty(o))return e.apply(this,arguments),this;var y=h(arguments),v={type:(this.flags.binary!==void 0?this.flags.binary:r(y))?f.BINARY_EVENT:f.EVENT,data:y};return v.options={},v.options.compress=!this.flags||this.flags.compress!==!1,typeof y[y.length-1]=="function"&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=y.pop(),v.id=this.ids++),this.connected?this.packet(v):this.sendBuffer.push(v),this.flags={},this},s.prototype.packet=function(o){o.nsp=this.nsp,this.io.packet(o)},s.prototype.onopen=function(){if(c("transport is open - connecting"),this.nsp!=="/")if(this.query){var o=typeof this.query=="object"?l.encode(this.query):this.query;c("sending connect packet with query %s",o),this.packet({type:f.CONNECT,query:o})}else this.packet({type:f.CONNECT})},s.prototype.onclose=function(o){c("close (%s)",o),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",o)},s.prototype.onpacket=function(o){var y=o.nsp===this.nsp,v=o.type===f.ERROR&&o.nsp==="/";if(!(!y&&!v))switch(o.type){case f.CONNECT:this.onconnect();break;case f.EVENT:this.onevent(o);break;case f.BINARY_EVENT:this.onevent(o);break;case f.ACK:this.onack(o);break;case f.BINARY_ACK:this.onack(o);break;case f.DISCONNECT:this.ondisconnect();break;case f.ERROR:this.emit("error",o.data);break}},s.prototype.onevent=function(o){var y=o.data||[];c("emitting event %j",y),o.id!=null&&(c("attaching ack callback to event"),y.push(this.ack(o.id))),this.connected?e.apply(this,y):this.receiveBuffer.push(y)},s.prototype.ack=function(o){var y=this,v=!1;return function(){if(!v){v=!0;var b=h(arguments);c("sending ack %j",b),y.packet({type:r(b)?f.BINARY_ACK:f.ACK,id:o,data:b})}}},s.prototype.onack=function(o){var y=this.acks[o.id];typeof y=="function"?(c("calling ack %s with %j",o.id,o.data),y.apply(this,o.data),delete this.acks[o.id]):c("bad ack %s",o.id)},s.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit
2("connect"),this.emitBuffered()},s.prototype.emitBuffered=function(){var o;for(o=0;o<this.receiveBuffer.length;o++)e.apply(this,this.receiveBuffer[o]);for(this.receiveBuffer=[],o=0;o<this.sendBuffer.length;o++)this.packet(this.sendBuffer[o]);this.sendBuffer=[]},s.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},s.prototype.destroy=function(){if(this.subs){for(var o=0;o<this.subs.length;o++)this.subs[o].destroy();this.subs=null}this.io.destroy(this)},s.prototype.close=s.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:f.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},s.prototype.compress=function(o){return this.flags.compress=o,this},s.prototype.binary=function(o){return this.flags.binary=o,this}})(Re)),Re.exports}var Ne,Tt;function Ar(){if(Tt)return Ne;Tt=1,Ne=u;function u(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}return u.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var f=Math.random(),i=Math.floor(f*this.jitter*n);n=(Math.floor(f*10)&1)==0?n-i:n+i}return Math.min(n,this.max)|0},u.prototype.reset=function(){this.attempts=0},u.prototype.setMin=function(n){this.ms=n},u.prototype.setMax=function(n){this.max=n},u.prototype.setJitter=function(n){this.jitter=n},Ne}var Oe,Dt;function It(){if(Dt)return Oe;Dt=1;var u=Fr(),n=jt(),f=Xt(),i=Te(),h=Jt(),a=Wt(),p=V()("socket.io-client:manager"),c=zt(),l=Ar(),r=Object.prototype.hasOwnProperty;Oe=t;function t(e,s){if(!(this instanceof t))return new t(e,s);e&&typeof e=="object"&&(s=e,e=void 0),s=s||{},s.path=s.path||"/socket.io",this.nsps={},this.subs=[],this.opts=s,this.reconnection(s.reconnection!==!1),this.reconnectionAttempts(s.reconnectionAttempts||1/0),this.reconnectionDelay(s.reconnectionDelay||1e3),this.reconnectionDelayMax(s.reconnectionDelayMax||5e3),this.randomizationFactor(s.randomizationFactor||.5),this.backoff=new l({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(s.timeout==null?2e4:s.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var o=s.parser||i;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this.autoConnect=s.autoConnect!==!1,this.autoConnect&&this.open()}return t.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)r.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},t.prototype.updateSocketIds=function(){for(var e in this.nsps)r.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},t.prototype.generateId=function(e){return(e==="/"?"":e+"#")+this.engine.id},f(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&&this.backoff.attempts===0&&this.reconnect()},t.prototype.open=t.prototype.connect=function(e,s){if(p("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;p("opening %s",this.uri),this.engine=u(this.uri,this.opts);var o=this.engine,y=this;this.readyState="opening",this.skipReconnect=!1;var v=h(o,"open",function(){y.onopen(),e&&e()}),b=h(o,"error",function(w){if(p("connect_error"),y.cleanup(),y.readyState="closed",y.emitAll("connect_error",w),e){var d=new Error("Connection error");d.data=w,e(d)}else y.maybeReconnectOnOpen()});if(this._timeout!==!1){var k=this._timeout;p("connect attempt will timeout after %d",k);
2var g=setTimeout(function(){p("connect attempt timed out after %d",k),v.destroy(),o.close(),o.emit("error","timeout"),y.emitAll("connect_timeout",k)},k);this.subs.push({destroy:function(){clearTimeout(g)}})}return this.subs.push(v),this.subs.push(b),this},t.prototype.onopen=function(){p("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(h(e,"data",a(this,"ondata"))),this.subs.push(h(e,"ping",a(this,"onping"))),this.subs.push(h(e,"pong",a(this,"onpong"))),this.subs.push(h(e,"error",a(this,"onerror"))),this.subs.push(h(e,"close",a(this,"onclose"))),this.subs.push(h(this.decoder,"decoded",a(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){p("error",e),this.emitAll("error",e)},t.prototype.socket=function(e,s){var o=this.nsps[e];if(!o){o=new n(this,e,s),this.nsps[e]=o;var y=this;o.on("connecting",v),o.on("connect",function(){o.id=y.generateId(e)}),this.autoConnect&&v()}function v(){~c(y.connecting,o)||y.connecting.push(o)}return o},t.prototype.destroy=function(e){var s=c(this.connecting,e);~s&&this.connecting.splice(s,1),!this.connecting.length&&this.close()},t.prototype.packet=function(e){p("writing packet %j",e);var s=this;e.query&&e.type===0&&(e.nsp+="?"+e.query),s.encoding?s.packetBuffer.push(e):(s.encoding=!0,this.encoder.encode(e,function(o){for(var y=0;y<o.length;y++)s.engine.write(o[y],e.options);s.encoding=!1,s.processPacketQueue()}))},t.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},t.prototype.cleanup=function(){p("cleanup");for(var e=this.subs.length,s=0;s<e;s++){var o=this.subs.shift();o.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},t.prototype.close=t.prototype.disconnect=function(){p("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},t.prototype.onclose=function(e){p("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)p("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var s=this.backoff.duration();p("will wait %dms before reconnect attempt",s),this.reconnecting=!0;var o=setTimeout(function(){e.skipReconnect||(p("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),!e.skipReconnect&&e.open(function(y){y?(p("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",y.data)):(p("reconnect success"),e.onreconnect())}))},s);this.subs.push({destroy:function(){clearTimeout(o)}})}},t.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)},Oe}var Mt;
2function qr(){return Mt||(Mt=1,(function(u,n){var f=Qt(),i=Te(),h=It(),a=V()("socket.io-client");u.exports=n=c;var p=n.managers={};function c(l,r){typeof l=="object"&&(r=l,l=void 0),r=r||{};var t=f(l),e=t.source,s=t.id,o=t.path,y=p[s]&&o in p[s].nsps,v=r.forceNew||r["force new connection"]||r.multiplex===!1||y,b;return v?(a("ignoring socket cache for %s",e),b=h(e,r)):(p[s]||(a("new io instance for %s",e),p[s]=h(e,r)),b=p[s]),t.query&&!r.query&&(r.query=t.query),b.socket(t.path,r)}n.protocol=i.protocol,n.connect=c,n.Manager=It(),n.Socket=jt()})(D,D.exports)),D.exports}var Rr=qr();const Er=Kt(Rr);export{Er as i};
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.