import{_ as Ce}from"./people-PJ0ChT72.js";import{_ as Ae}from"./left-icon2-CMcWN3fS.js";import{e as ae}from"./index-B9bA2oXO.js";import{c as xe}from"./_commonjsHelpers-Cpj98o6Y.js";import{h as xt,k as ht,M as $t,$ as ce,p as tt,F as et,z as T,J as X,A as at,v as Be,x as Ht,y as Yt,B as Bt,c as rt,G as te,V as ee,Q as Se,N as Re,R as Te}from"./index-DhgeYuDI.js";const Oe="/assets/left-BkPeJBFI.png",Pe="/assets/right-CA5WyWpI.png",Ne="/assets/blood-g--UQjv17k.png",Le="/assets/blood-d-CeJZNk-U.png",De="/assets/left-title-CY39qeYz.png",Ie="/assets/sleep-Cp3ScsFZ.png",Ue="/assets/score-m6AEvyUP.png",Fe="/assets/heart-rate-B3gvmgDg.png",qe="/assets/heart-rate-icon-l-D-laf1vJ.png",Me="/assets/heart-rate-icon-r-div-vVfa.png",je="/assets/img1-LNPUnejQ.png",$e="/assets/img2-DhpHql6N.png",He="/assets/img3-BeacTmAW.png",Ye="/assets/img4-kZ6XFpZs.png";var Ve={exports:{}};(function(h,t){(function(e,n){h.exports=n()})(typeof self<"u"?self:xe,function(){return function(e){var n={};function a(c){if(n[c])return n[c].exports;var y=n[c]={i:c,l:!1,exports:{}};return e[c].call(y.exports,y,y.exports,a),y.l=!0,y.exports}return a.m=e,a.c=n,a.d=function(c,y,f){a.o(c,y)||Object.defineProperty(c,y,{enumerable:!0,get:f})},a.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},a.t=function(c,y){if(1&y&&(c=a(c)),8&y||4&y&&typeof c=="object"&&c&&c.__esModule)return c;var f=Object.create(null);if(a.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:c}),2&y&&typeof c!="string")for(var g in c)a.d(f,g,(function(b){return c[b]}).bind(null,g));return f},a.n=function(c){var y=c&&c.__esModule?function(){return c.default}:function(){return c};return a.d(y,"a",y),y},a.o=function(c,y){return Object.prototype.hasOwnProperty.call(c,y)},a.p="",a(a.s=23)}([function(e,n,a){(function(c){function y(){var f;try{f=n.storage.debug}catch{}return!f&&c!==void 0&&"env"in c&&(f=c.env.DEBUG),f}(n=e.exports=a(26)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},n.formatArgs=function(f){var g=this.useColors;if(f[0]=(g?"%c":"")+this.namespace+(g?" %c":" ")+f[0]+(g?"%c ":" ")+"+"+n.humanize(this.diff),!!g){var b="color: "+this.color;f.splice(1,0,b,"color: inherit");var v=0,p=0;f[0].replace(/%[a-zA-Z%]/g,function(w){w!=="%%"&&(v++,w==="%c"&&(p=v))}),f.splice(p,0,b)}},n.save=function(f){try{f==null?n.storage.removeItem("debug"):n.storage.debug=f}catch{}},n.load=y,n.useColors=function(){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.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),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"],n.formatters.j=function(f){try{return JSON.stringify(f)}catch(g){return"[UnexpectedJSONParseError]: "+g.message}},n.enable(y())}).call(this,a(25))},function(e,n,a){function c(y){if(y)return function(f){for(var g in c.prototype)f[g]=c.prototype[g];return f}(y)}e.exports=c,c.prototype.on=c.prototype.addEventListener=function(y,f){return this._callbacks=this._callbacks||{},(this._callbacks["$"+y]=this._callbacks["$"+y]||[]).push(f),this},c.prototype.once=function(y,f){function g(){this.off(y,g),f.apply(this,arguments)}return g.fn=f,this.on(y,g),this},c.prototype.off=c.prototype.removeListener=c.prototype.removeAllListeners=c.prototype.removeEventListener=function(y,f){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var g,b=this._callbacks["$"+y];if(!b)return this;if(arguments.length==1)return delete this._callbacks["$"+y],this;for(var v=0;v1?{type:o[A],data:_.substring(1)}:{type:o[A]}:s}A=new Uint8Array(_)[0];var S=g(_,1);return m&&B==="blob"&&(S=new m([S])),{type:o[A],data:S}},n.decodeBase64Packet=function(_,B){var R=o[_.charAt(0)];if(!c)return{type:R,data:{base64:!0,data:_.substr(1)}};var A=c.decode(_.substr(1));return B==="blob"&&m&&(A=new m([A])),{type:R,data:A}},n.encodePayload=function(_,B,R){typeof B=="function"&&(R=B,B=null);var A=f(_);if(B&&A)return m&&!d?n.encodePayloadAsBlob(_,R):n.encodePayloadAsArrayBuffer(_,R);if(!_.length)return R("0:");k(_,function(S,O){n.encodePacket(S,!!A&&B,!1,function(P){O(null,function(L){return L.length+":"+L}(P))})},function(S,O){return R(O.join(""))})},n.decodePayload=function(_,B,R){if(typeof _!="string")return n.decodePayloadAsBinary(_,B,R);var A;if(typeof B=="function"&&(R=B,B=null),_==="")return R(s,0,1);for(var S,O,P="",L=0,D=_.length;L0;){for(var O=new Uint8Array(A),P=O[0]===0,L="",D=1;O[D]!==255;D++){if(L.length>310)return R(s,0,1);L+=O[D]}A=g(A,2+L.length),L=parseInt(L);var q=g(A,0,L);if(P)try{q=String.fromCharCode.apply(null,new Uint8Array(q))}catch{var H=new Uint8Array(q);for(q="",D=0;D * @license MIT */var y=a(29),f=a(30),g=a(31);function b(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function v(r,i){if(b()=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return 0|r}function m(r,i){if(p.isBuffer(r))return r.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(r)||r instanceof ArrayBuffer))return r.byteLength;typeof r!="string"&&(r=""+r);var l=r.length;if(l===0)return 0;for(var E=!1;;)switch(i){case"ascii":case"latin1":case"binary":return l;case"utf8":case"utf-8":case void 0:return _t(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*l;case"hex":return l>>>1;case"base64":return Zt(r).length;default:if(E)return _t(r).length;i=(""+i).toLowerCase(),E=!0}}function k(r,i,l){var E=r[i];r[i]=r[l],r[l]=E}function _(r,i,l,E,C){if(r.length===0)return-1;if(typeof l=="string"?(E=l,l=0):l>2147483647?l=2147483647:l<-2147483648&&(l=-2147483648),l=+l,isNaN(l)&&(l=C?0:r.length-1),l<0&&(l=r.length+l),l>=r.length){if(C)return-1;l=r.length-1}else if(l<0){if(!C)return-1;l=0}if(typeof i=="string"&&(i=p.from(i,E)),p.isBuffer(i))return i.length===0?-1:B(r,i,l,E,C);if(typeof i=="number")return i&=255,p.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?C?Uint8Array.prototype.indexOf.call(r,i,l):Uint8Array.prototype.lastIndexOf.call(r,i,l):B(r,[i],l,E,C);throw new TypeError("val must be string, number or Buffer")}function B(r,i,l,E,C){var x,N=1,I=r.length,$=i.length;if(E!==void 0&&((E=String(E).toLowerCase())==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(r.length<2||i.length<2)return-1;N=2,I/=2,$/=2,l/=2}function Y(lt,pt){return N===1?lt[pt]:lt.readUInt16BE(pt*N)}if(C){var F=-1;for(x=l;xI&&(l=I-$),x=l;x>=0;x--){for(var it=!0,nt=0;nt<$;nt++)if(Y(r,x+nt)!==Y(i,nt)){it=!1;break}if(it)return x}return-1}function R(r,i,l,E){l=Number(l)||0;var C=r.length-l;E?(E=Number(E))>C&&(E=C):E=C;var x=i.length;if(x%2!=0)throw new TypeError("Invalid hex string");E>x/2&&(E=x/2);for(var N=0;N>8,$=N%256,Y.push($),Y.push(I);return Y}(i,r.length-l),r,l,E)}function D(r,i,l){return i===0&&l===r.length?y.fromByteArray(r):y.fromByteArray(r.slice(i,l))}function q(r,i,l){l=Math.min(r.length,l);for(var E=[],C=i;C239?4:Y>223?3:Y>191?2:1;if(C+it<=l)switch(it){case 1:Y<128&&(F=Y);break;case 2:(192&(x=r[C+1]))==128&&($=(31&Y)<<6|63&x)>127&&(F=$);break;case 3:x=r[C+1],N=r[C+2],(192&x)==128&&(192&N)==128&&($=(15&Y)<<12|(63&x)<<6|63&N)>2047&&($<55296||$>57343)&&(F=$);break;case 4:x=r[C+1],N=r[C+2],I=r[C+3],(192&x)==128&&(192&N)==128&&(192&I)==128&&($=(15&Y)<<18|(63&x)<<12|(63&N)<<6|63&I)>65535&&$<1114112&&(F=$)}F===null?(F=65533,it=1):F>65535&&(F-=65536,E.push(F>>>10&1023|55296),F=56320|1023&F),E.push(F),C+=it}return function(nt){var lt=nt.length;if(lt<=H)return String.fromCharCode.apply(String,nt);for(var pt="",Ot=0;Otthis.length||((E===void 0||E>this.length)&&(E=this.length),E<=0)||(E>>>=0)<=(l>>>=0))return"";for(i||(i="utf8");;)switch(i){case"hex":return ot(this,l,E);case"utf8":case"utf-8":return q(this,l,E);case"ascii":return j(this,l,E);case"latin1":case"binary":return W(this,l,E);case"base64":return D(this,l,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft(this,l,E);default:if(C)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),C=!0}}).apply(this,arguments)},p.prototype.equals=function(r){if(!p.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r||p.compare(this,r)===0},p.prototype.inspect=function(){var r="",i=n.INSPECT_MAX_BYTES;return this.length>0&&(r=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(r+=" ... ")),""},p.prototype.compare=function(r,i,l,E,C){if(!p.isBuffer(r))throw new TypeError("Argument must be a Buffer");if(i===void 0&&(i=0),l===void 0&&(l=r?r.length:0),E===void 0&&(E=0),C===void 0&&(C=this.length),i<0||l>r.length||E<0||C>this.length)throw new RangeError("out of range index");if(E>=C&&i>=l)return 0;if(E>=C)return-1;if(i>=l)return 1;if(this===r)return 0;for(var x=(C>>>=0)-(E>>>=0),N=(l>>>=0)-(i>>>=0),I=Math.min(x,N),$=this.slice(E,C),Y=r.slice(i,l),F=0;FC)&&(l=C),r.length>0&&(l<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");E||(E="utf8");for(var x=!1;;)switch(E){case"hex":return R(this,r,i,l);case"utf8":case"utf-8":return A(this,r,i,l);case"ascii":return S(this,r,i,l);case"latin1":case"binary":return O(this,r,i,l);case"base64":return P(this,r,i,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,r,i,l);default:if(x)throw new TypeError("Unknown encoding: "+E);E=(""+E).toLowerCase(),x=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var H=4096;function j(r,i,l){var E="";l=Math.min(r.length,l);for(var C=i;CE)&&(l=E);for(var C="",x=i;xl)throw new RangeError("Trying to access beyond buffer length")}function J(r,i,l,E,C,x){if(!p.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>C||ir.length)throw new RangeError("Index out of range")}function mt(r,i,l,E){i<0&&(i=65535+i+1);for(var C=0,x=Math.min(r.length-l,2);C>>8*(E?C:1-C)}function vt(r,i,l,E){i<0&&(i=4294967295+i+1);for(var C=0,x=Math.min(r.length-l,4);C>>8*(E?C:3-C)&255}function Kt(r,i,l,E,C,x){if(l+E>r.length)throw new RangeError("Index out of range");if(l<0)throw new RangeError("Index out of range")}function Qt(r,i,l,E,C){return C||Kt(r,0,l,4),f.write(r,i,l,E,23,4),l+4}function Gt(r,i,l,E,C){return C||Kt(r,0,l,8),f.write(r,i,l,E,52,8),l+8}p.prototype.slice=function(r,i){var l,E=this.length;if((r=~~r)<0?(r+=E)<0&&(r=0):r>E&&(r=E),(i=i===void 0?E:~~i)<0?(i+=E)<0&&(i=0):i>E&&(i=E),i0&&(C*=256);)E+=this[r+--i]*C;return E},p.prototype.readUInt8=function(r,i){return i||z(r,1,this.length),this[r]},p.prototype.readUInt16LE=function(r,i){return i||z(r,2,this.length),this[r]|this[r+1]<<8},p.prototype.readUInt16BE=function(r,i){return i||z(r,2,this.length),this[r]<<8|this[r+1]},p.prototype.readUInt32LE=function(r,i){return i||z(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+16777216*this[r+3]},p.prototype.readUInt32BE=function(r,i){return i||z(r,4,this.length),16777216*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},p.prototype.readIntLE=function(r,i,l){r|=0,i|=0,l||z(r,i,this.length);for(var E=this[r],C=1,x=0;++x=(C*=128)&&(E-=Math.pow(2,8*i)),E},p.prototype.readIntBE=function(r,i,l){r|=0,i|=0,l||z(r,i,this.length);for(var E=i,C=1,x=this[r+--E];E>0&&(C*=256);)x+=this[r+--E]*C;return x>=(C*=128)&&(x-=Math.pow(2,8*i)),x},p.prototype.readInt8=function(r,i){return i||z(r,1,this.length),128&this[r]?-1*(255-this[r]+1):this[r]},p.prototype.readInt16LE=function(r,i){i||z(r,2,this.length);var l=this[r]|this[r+1]<<8;return 32768&l?4294901760|l:l},p.prototype.readInt16BE=function(r,i){i||z(r,2,this.length);var l=this[r+1]|this[r]<<8;return 32768&l?4294901760|l:l},p.prototype.readInt32LE=function(r,i){return i||z(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},p.prototype.readInt32BE=function(r,i){return i||z(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},p.prototype.readFloatLE=function(r,i){return i||z(r,4,this.length),f.read(this,r,!0,23,4)},p.prototype.readFloatBE=function(r,i){return i||z(r,4,this.length),f.read(this,r,!1,23,4)},p.prototype.readDoubleLE=function(r,i){return i||z(r,8,this.length),f.read(this,r,!0,52,8)},p.prototype.readDoubleBE=function(r,i){return i||z(r,8,this.length),f.read(this,r,!1,52,8)},p.prototype.writeUIntLE=function(r,i,l,E){r=+r,i|=0,l|=0,E||J(this,r,i,l,Math.pow(2,8*l)-1,0);var C=1,x=0;for(this[i]=255&r;++x=0&&(x*=256);)this[i+C]=r/x&255;return i+l},p.prototype.writeUInt8=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,1,255,0),p.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[i]=255&r,i+1},p.prototype.writeUInt16LE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[i]=255&r,this[i+1]=r>>>8):mt(this,r,i,!0),i+2},p.prototype.writeUInt16BE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[i]=r>>>8,this[i+1]=255&r):mt(this,r,i,!1),i+2},p.prototype.writeUInt32LE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=255&r):vt(this,r,i,!0),i+4},p.prototype.writeUInt32BE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=255&r):vt(this,r,i,!1),i+4},p.prototype.writeIntLE=function(r,i,l,E){if(r=+r,i|=0,!E){var C=Math.pow(2,8*l-1);J(this,r,i,l,C-1,-C)}var x=0,N=1,I=0;for(this[i]=255&r;++x>0)-I&255;return i+l},p.prototype.writeIntBE=function(r,i,l,E){if(r=+r,i|=0,!E){var C=Math.pow(2,8*l-1);J(this,r,i,l,C-1,-C)}var x=l-1,N=1,I=0;for(this[i+x]=255&r;--x>=0&&(N*=256);)r<0&&I===0&&this[i+x+1]!==0&&(I=1),this[i+x]=(r/N>>0)-I&255;return i+l},p.prototype.writeInt8=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,1,127,-128),p.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[i]=255&r,i+1},p.prototype.writeInt16LE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[i]=255&r,this[i+1]=r>>>8):mt(this,r,i,!0),i+2},p.prototype.writeInt16BE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[i]=r>>>8,this[i+1]=255&r):mt(this,r,i,!1),i+2},p.prototype.writeInt32LE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[i]=255&r,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24):vt(this,r,i,!0),i+4},p.prototype.writeInt32BE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),p.TYPED_ARRAY_SUPPORT?(this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=255&r):vt(this,r,i,!1),i+4},p.prototype.writeFloatLE=function(r,i,l){return Qt(this,r,i,!0,l)},p.prototype.writeFloatBE=function(r,i,l){return Qt(this,r,i,!1,l)},p.prototype.writeDoubleLE=function(r,i,l){return Gt(this,r,i,!0,l)},p.prototype.writeDoubleBE=function(r,i,l){return Gt(this,r,i,!1,l)},p.prototype.copy=function(r,i,l,E){if(l||(l=0),E||E===0||(E=this.length),i>=r.length&&(i=r.length),i||(i=0),E>0&&E=this.length)throw new RangeError("sourceStart out of bounds");if(E<0)throw new RangeError("sourceEnd out of bounds");E>this.length&&(E=this.length),r.length-i=0;--C)r[C+i]=this[C+l];else if(x<1e3||!p.TYPED_ARRAY_SUPPORT)for(C=0;C>>=0,l=l===void 0?this.length:l>>>0,r||(r=0),typeof r=="number")for(x=i;x55295&&l<57344){if(!C){if(l>56319){(i-=3)>-1&&x.push(239,191,189);continue}if(N+1===E){(i-=3)>-1&&x.push(239,191,189);continue}C=l;continue}if(l<56320){(i-=3)>-1&&x.push(239,191,189),C=l;continue}l=65536+(C-55296<<10|l-56320)}else C&&(i-=3)>-1&&x.push(239,191,189);if(C=null,l<128){if((i-=1)<0)break;x.push(l)}else if(l<2048){if((i-=2)<0)break;x.push(l>>6|192,63&l|128)}else if(l<65536){if((i-=3)<0)break;x.push(l>>12|224,l>>6&63|128,63&l|128)}else{if(!(l<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;x.push(l>>18|240,l>>12&63|128,l>>6&63|128,63&l|128)}}return x}function Zt(r){return y.toByteArray(function(i){if((i=function(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}(i).replace(ke,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i}(r))}function bt(r,i,l,E){for(var C=0;C=i.length||C>=r.length);++C)i[C+l]=r[C];return C}}).call(this,a(12))},function(e,n,a){var c=a(34);e.exports=function(y){var f=y.xdomain,g=y.xscheme,b=y.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!f||c))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!g&&b)return new XDomainRequest}catch{}if(!f)try{return new self[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}},function(e,n,a){var c=a(2),y=a(1);function f(g){this.path=g.path,this.hostname=g.hostname,this.port=g.port,this.secure=g.secure,this.query=g.query,this.timestampParam=g.timestampParam,this.timestampRequests=g.timestampRequests,this.readyState="",this.agent=g.agent||!1,this.socket=g.socket,this.enablesXDR=g.enablesXDR,this.pfx=g.pfx,this.key=g.key,this.passphrase=g.passphrase,this.cert=g.cert,this.ca=g.ca,this.ciphers=g.ciphers,this.rejectUnauthorized=g.rejectUnauthorized,this.forceNode=g.forceNode,this.isReactNative=g.isReactNative,this.extraHeaders=g.extraHeaders,this.localAddress=g.localAddress}e.exports=f,y(f.prototype),f.prototype.onError=function(g,b){var v=new Error(g);return v.type="TransportError",v.description=b,this.emit("error",v),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(g){if(this.readyState!=="open")throw new Error("Transport not open");this.write(g)},f.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},f.prototype.onData=function(g){var b=c.decodePacket(g,this.socket.binaryType);this.onPacket(b)},f.prototype.onPacket=function(g){this.emit("packet",g)},f.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,n){var a=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,c=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(y){var f=y,g=y.indexOf("["),b=y.indexOf("]");g!=-1&&b!=-1&&(y=y.substring(0,g)+y.substring(g,b).replace(/:/g,";")+y.substring(b,y.length));for(var v=a.exec(y||""),p={},w=14;w--;)p[c[w]]=v[w]||"";return g!=-1&&b!=-1&&(p.source=f,p.host=p.host.substring(1,p.host.length-1).replace(/;/g,":"),p.authority=p.authority.replace("[","").replace("]","").replace(/;/g,":"),p.ipv6uri=!0),p}},function(e,n,a){(function(c){e.exports=function(b){return y&&c.isBuffer(b)||f&&(b instanceof ArrayBuffer||g(b))};var y=typeof c=="function"&&typeof c.isBuffer=="function",f=typeof ArrayBuffer=="function",g=function(b){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(b):b.buffer instanceof ArrayBuffer}}).call(this,a(7).Buffer)},function(e,n){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}e.exports=a},function(e,n,a){var c=a(32),y=a(19),f=a(1),g=a(5),b=a(20),v=a(21),p=a(0)("socket.io-client:manager"),w=a(18),d=a(46),u=Object.prototype.hasOwnProperty;function o(s,m){if(!(this instanceof o))return new o(s,m);s&&typeof s=="object"&&(m=s,s=void 0),(m=m||{}).path=m.path||"/socket.io",this.nsps={},this.subs=[],this.opts=m,this.reconnection(m.reconnection!==!1),this.reconnectionAttempts(m.reconnectionAttempts||1/0),this.reconnectionDelay(m.reconnectionDelay||1e3),this.reconnectionDelayMax(m.reconnectionDelayMax||5e3),this.randomizationFactor(m.randomizationFactor||.5),this.backoff=new d({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(m.timeout==null?2e4:m.timeout),this.readyState="closed",this.uri=s,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var k=m.parser||g;this.encoder=new k.Encoder,this.decoder=new k.Decoder,this.autoConnect=m.autoConnect!==!1,this.autoConnect&&this.open()}e.exports=o,o.prototype.emitAll=function(){for(var s in this.emit.apply(this,arguments),this.nsps)u.call(this.nsps,s)&&this.nsps[s].emit.apply(this.nsps[s],arguments)},o.prototype.updateSocketIds=function(){for(var s in this.nsps)u.call(this.nsps,s)&&(this.nsps[s].id=this.generateId(s))},o.prototype.generateId=function(s){return(s==="/"?"":s+"#")+this.engine.id},f(o.prototype),o.prototype.reconnection=function(s){return arguments.length?(this._reconnection=!!s,this):this._reconnection},o.prototype.reconnectionAttempts=function(s){return arguments.length?(this._reconnectionAttempts=s,this):this._reconnectionAttempts},o.prototype.reconnectionDelay=function(s){return arguments.length?(this._reconnectionDelay=s,this.backoff&&this.backoff.setMin(s),this):this._reconnectionDelay},o.prototype.randomizationFactor=function(s){return arguments.length?(this._randomizationFactor=s,this.backoff&&this.backoff.setJitter(s),this):this._randomizationFactor},o.prototype.reconnectionDelayMax=function(s){return arguments.length?(this._reconnectionDelayMax=s,this.backoff&&this.backoff.setMax(s),this):this._reconnectionDelayMax},o.prototype.timeout=function(s){return arguments.length?(this._timeout=s,this):this._timeout},o.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()},o.prototype.open=o.prototype.connect=function(s,m){if(p("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;p("opening %s",this.uri),this.engine=c(this.uri,this.opts);var k=this.engine,_=this;this.readyState="opening",this.skipReconnect=!1;var B=b(k,"open",function(){_.onopen(),s&&s()}),R=b(k,"error",function(O){if(p("connect_error"),_.cleanup(),_.readyState="closed",_.emitAll("connect_error",O),s){var P=new Error("Connection error");P.data=O,s(P)}else _.maybeReconnectOnOpen()});if(this._timeout!==!1){var A=this._timeout;p("connect attempt will timeout after %d",A);var S=setTimeout(function(){p("connect attempt timed out after %d",A),B.destroy(),k.close(),k.emit("error","timeout"),_.emitAll("connect_timeout",A)},A);this.subs.push({destroy:function(){clearTimeout(S)}})}return this.subs.push(B),this.subs.push(R),this},o.prototype.onopen=function(){p("open"),this.cleanup(),this.readyState="open",this.emit("open");var s=this.engine;this.subs.push(b(s,"data",v(this,"ondata"))),this.subs.push(b(s,"ping",v(this,"onping"))),this.subs.push(b(s,"pong",v(this,"onpong"))),this.subs.push(b(s,"error",v(this,"onerror"))),this.subs.push(b(s,"close",v(this,"onclose"))),this.subs.push(b(this.decoder,"decoded",v(this,"ondecoded")))},o.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},o.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},o.prototype.ondata=function(s){this.decoder.add(s)},o.prototype.ondecoded=function(s){this.emit("packet",s)},o.prototype.onerror=function(s){p("error",s),this.emitAll("error",s)},o.prototype.socket=function(s,m){var k=this.nsps[s];if(!k){k=new y(this,s,m),this.nsps[s]=k;var _=this;k.on("connecting",B),k.on("connect",function(){k.id=_.generateId(s)}),this.autoConnect&&B()}function B(){~w(_.connecting,k)||_.connecting.push(k)}return k},o.prototype.destroy=function(s){var m=w(this.connecting,s);~m&&this.connecting.splice(m,1),this.connecting.length||this.close()},o.prototype.packet=function(s){p("writing packet %j",s);var m=this;s.query&&s.type===0&&(s.nsp+="?"+s.query),m.encoding?m.packetBuffer.push(s):(m.encoding=!0,this.encoder.encode(s,function(k){for(var _=0;_0&&!this.encoding){var s=this.packetBuffer.shift();this.packet(s)}},o.prototype.cleanup=function(){p("cleanup");for(var s=this.subs.length,m=0;m=this._reconnectionAttempts)p("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var m=this.backoff.duration();p("will wait %dms before reconnect attempt",m),this.reconnecting=!0;var k=setTimeout(function(){s.skipReconnect||(p("attempting reconnect"),s.emitAll("reconnect_attempt",s.backoff.attempts),s.emitAll("reconnecting",s.backoff.attempts),s.skipReconnect||s.open(function(_){_?(p("reconnect attempt error"),s.reconnecting=!1,s.reconnect(),s.emitAll("reconnect_error",_.data)):(p("reconnect success"),s.onreconnect())}))},m);this.subs.push({destroy:function(){clearTimeout(k)}})}},o.prototype.onreconnect=function(){var s=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",s)}},function(e,n,a){var c=a(8),y=a(35),f=a(42),g=a(43);n.polling=function(b){var v=!1,p=!1,w=b.jsonp!==!1;if(typeof location<"u"){var d=location.protocol==="https:",u=location.port;u||(u=d?443:80),v=b.hostname!==location.hostname||u!==b.port,p=b.secure!==d}if(b.xdomain=v,b.xscheme=p,"open"in new c(b)&&!b.forceJSONP)return new y(b);if(!w)throw new Error("JSONP disabled");return new f(b)},n.websocket=g},function(e,n,a){var c=a(9),y=a(3),f=a(2),g=a(4),b=a(17),v=a(0)("engine.io-client:polling");e.exports=w;var p=new(a(8))({xdomain:!1}).responseType!=null;function w(d){var u=d&&d.forceBase64;p&&!u||(this.supportsBinary=!1),c.call(this,d)}g(w,c),w.prototype.name="polling",w.prototype.doOpen=function(){this.poll()},w.prototype.pause=function(d){var u=this;function o(){v("paused"),u.readyState="paused",d()}if(this.readyState="pausing",this.polling||!this.writable){var s=0;this.polling&&(v("we are currently polling - waiting to pause"),s++,this.once("pollComplete",function(){v("pre-pause polling complete"),--s||o()})),this.writable||(v("we are currently writing - waiting to pause"),s++,this.once("drain",function(){v("pre-pause writing complete"),--s||o()}))}else o()},w.prototype.poll=function(){v("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},w.prototype.onData=function(d){var u=this;v("polling got data %s",d),f.decodePayload(d,this.socket.binaryType,function(o,s,m){if(u.readyState==="opening"&&u.onOpen(),o.type==="close")return u.onClose(),!1;u.onPacket(o)}),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():v('ignoring poll - transport state "%s"',this.readyState))},w.prototype.doClose=function(){var d=this;function u(){v("writing close packet"),d.write([{type:"close"}])}this.readyState==="open"?(v("transport open - closing"),u()):(v("transport not open - deferring close"),this.once("open",u))},w.prototype.write=function(d){var u=this;this.writable=!1;var o=function(){u.writable=!0,u.emit("drain")};f.encodePayload(d,this.supportsBinary,function(s){u.doWrite(s,o)})},w.prototype.uri=function(){var d=this.query||{},u=this.secure?"https":"http",o="";return this.timestampRequests!==!1&&(d[this.timestampParam]=b()),this.supportsBinary||d.sid||(d.b64=1),d=y.encode(d),this.port&&(u==="https"&&Number(this.port)!==443||u==="http"&&Number(this.port)!==80)&&(o=":"+this.port),d.length&&(d="?"+d),u+"://"+(this.hostname.indexOf(":")!==-1?"["+this.hostname+"]":this.hostname)+o+this.path+d}},function(e,n,a){(function(c){var y=a(6),f=Object.prototype.toString,g=typeof Blob=="function"||typeof Blob<"u"&&f.call(Blob)==="[object BlobConstructor]",b=typeof File=="function"||typeof File<"u"&&f.call(File)==="[object FileConstructor]";e.exports=function v(p){if(!p||typeof p!="object")return!1;if(y(p)){for(var w=0,d=p.length;w0);return u}function w(){var d=p(+new Date);return d!==c?(b=0,c=d):d+"."+p(b++)}for(;v1)for(var B=1;B0)return function(u){if(!((u=String(u)).length>100)){var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(u);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*g;case"days":case"day":case"d":return s*f;case"hours":case"hour":case"hrs":case"hr":case"h":return s*y;case"minutes":case"minute":case"mins":case"min":case"m":return s*c;case"seconds":case"second":case"secs":case"sec":case"s":return s*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(v);if(d==="number"&&isNaN(v)===!1)return p.long?b(w=v,f,"day")||b(w,y,"hour")||b(w,c,"minute")||b(w,a,"second")||w+" ms":function(u){return u>=f?Math.round(u/f)+"d":u>=y?Math.round(u/y)+"h":u>=c?Math.round(u/c)+"m":u>=a?Math.round(u/a)+"s":u+"ms"}(v);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(v))}},function(e,n,a){var c=a(6),y=a(11),f=Object.prototype.toString,g=typeof Blob=="function"||typeof Blob<"u"&&f.call(Blob)==="[object BlobConstructor]",b=typeof File=="function"||typeof File<"u"&&f.call(File)==="[object FileConstructor]";n.deconstructPacket=function(v){var p=[],w=v.data,d=v;return d.data=function u(o,s){if(!o)return o;if(y(o)){var m={_placeholder:!0,num:s.length};return s.push(o),m}if(c(o)){for(var k=new Array(o.length),_=0;_0?s-4:s,R=0;R>16&255,k[_++]=u>>8&255,k[_++]=255&u;return m===2&&(u=y[d.charCodeAt(R)]<<2|y[d.charCodeAt(R+1)]>>4,k[_++]=255&u),m===1&&(u=y[d.charCodeAt(R)]<<10|y[d.charCodeAt(R+1)]<<4|y[d.charCodeAt(R+2)]>>2,k[_++]=u>>8&255,k[_++]=255&u),k},n.fromByteArray=function(d){for(var u,o=d.length,s=o%3,m=[],k=0,_=o-s;k<_;k+=16383)m.push(w(d,k,k+16383>_?_:k+16383));return s===1?(u=d[o-1],m.push(c[u>>2]+c[u<<4&63]+"==")):s===2&&(u=(d[o-2]<<8)+d[o-1],m.push(c[u>>10]+c[u>>4&63]+c[u<<2&63]+"=")),m.join("")};for(var c=[],y=[],f=typeof Uint8Array<"u"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,v=g.length;b0)throw new Error("Invalid string. Length must be a multiple of 4");var o=d.indexOf("=");return o===-1&&(o=u),[o,o===u?0:4-o%4]}function w(d,u,o){for(var s,m,k=[],_=u;_>18&63]+c[m>>12&63]+c[m>>6&63]+c[63&m]);return k.join("")}y[45]=62,y[95]=63},function(e,n){n.read=function(a,c,y,f,g){var b,v,p=8*g-f-1,w=(1<>1,u=-7,o=y?g-1:0,s=y?-1:1,m=a[c+o];for(o+=s,b=m&(1<<-u)-1,m>>=-u,u+=p;u>0;b=256*b+a[c+o],o+=s,u-=8);for(v=b&(1<<-u)-1,b>>=-u,u+=f;u>0;v=256*v+a[c+o],o+=s,u-=8);if(b===0)b=1-d;else{if(b===w)return v?NaN:1/0*(m?-1:1);v+=Math.pow(2,f),b-=d}return(m?-1:1)*v*Math.pow(2,b-f)},n.write=function(a,c,y,f,g,b){var v,p,w,d=8*b-g-1,u=(1<>1,s=g===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=f?0:b-1,k=f?1:-1,_=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(p=isNaN(c)?1:0,v=u):(v=Math.floor(Math.log(c)/Math.LN2),c*(w=Math.pow(2,-v))<1&&(v--,w*=2),(c+=v+o>=1?s/w:s*Math.pow(2,1-o))*w>=2&&(v++,w/=2),v+o>=u?(p=0,v=u):v+o>=1?(p=(c*w-1)*Math.pow(2,g),v+=o):(p=c*Math.pow(2,o-1)*Math.pow(2,g),v=0));g>=8;a[y+m]=255&p,m+=k,p/=256,g-=8);for(v=v<0;a[y+m]=255&v,m+=k,v/=256,d-=8);a[y+m-k]|=128*_}},function(e,n){var a={}.toString;e.exports=Array.isArray||function(c){return a.call(c)=="[object Array]"}},function(e,n,a){e.exports=a(33),e.exports.parser=a(2)},function(e,n,a){var c=a(14),y=a(1),f=a(0)("engine.io-client:socket"),g=a(18),b=a(2),v=a(10),p=a(3);function w(d,u){if(!(this instanceof w))return new w(d,u);u=u||{},d&&typeof d=="object"&&(u=d,d=null),d?(d=v(d),u.hostname=d.host,u.secure=d.protocol==="https"||d.protocol==="wss",u.port=d.port,d.query&&(u.query=d.query)):u.host&&(u.hostname=v(u.host).host),this.secure=u.secure!=null?u.secure:typeof location<"u"&&location.protocol==="https:",u.hostname&&!u.port&&(u.port=this.secure?"443":"80"),this.agent=u.agent||!1,this.hostname=u.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=u.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.query=u.query||{},typeof this.query=="string"&&(this.query=p.decode(this.query)),this.upgrade=u.upgrade!==!1,this.path=(u.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!u.forceJSONP,this.jsonp=u.jsonp!==!1,this.forceBase64=!!u.forceBase64,this.enablesXDR=!!u.enablesXDR,this.timestampParam=u.timestampParam||"t",this.timestampRequests=u.timestampRequests,this.transports=u.transports||["polling","websocket"],this.transportOptions=u.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=u.policyPort||843,this.rememberUpgrade=u.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=u.onlyBinaryUpgrades,this.perMessageDeflate=u.perMessageDeflate!==!1&&(u.perMessageDeflate||{}),this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=u.pfx||null,this.key=u.key||null,this.passphrase=u.passphrase||null,this.cert=u.cert||null,this.ca=u.ca||null,this.ciphers=u.ciphers||null,this.rejectUnauthorized=u.rejectUnauthorized===void 0||u.rejectUnauthorized,this.forceNode=!!u.forceNode,this.isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self>"u"||this.isReactNative)&&(u.extraHeaders&&Object.keys(u.extraHeaders).length>0&&(this.extraHeaders=u.extraHeaders),u.localAddress&&(this.localAddress=u.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=w,w.priorWebsocketSuccess=!1,y(w.prototype),w.protocol=b.protocol,w.Socket=w,w.Transport=a(9),w.transports=a(14),w.parser=a(2),w.prototype.createTransport=function(d){f('creating transport "%s"',d);var u=function(s){var m={};for(var k in s)s.hasOwnProperty(k)&&(m[k]=s[k]);return m}(this.query);u.EIO=b.protocol,u.transport=d;var o=this.transportOptions[d]||{};return this.id&&(u.sid=this.id),new c[d]({query:u,socket:this,agent:o.agent||this.agent,hostname:o.hostname||this.hostname,port:o.port||this.port,secure:o.secure||this.secure,path:o.path||this.path,forceJSONP:o.forceJSONP||this.forceJSONP,jsonp:o.jsonp||this.jsonp,forceBase64:o.forceBase64||this.forceBase64,enablesXDR:o.enablesXDR||this.enablesXDR,timestampRequests:o.timestampRequests||this.timestampRequests,timestampParam:o.timestampParam||this.timestampParam,policyPort:o.policyPort||this.policyPort,pfx:o.pfx||this.pfx,key:o.key||this.key,passphrase:o.passphrase||this.passphrase,cert:o.cert||this.cert,ca:o.ca||this.ca,ciphers:o.ciphers||this.ciphers,rejectUnauthorized:o.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:o.perMessageDeflate||this.perMessageDeflate,extraHeaders:o.extraHeaders||this.extraHeaders,forceNode:o.forceNode||this.forceNode,localAddress:o.localAddress||this.localAddress,requestTimeout:o.requestTimeout||this.requestTimeout,protocols:o.protocols||void 0,isReactNative:this.isReactNative})},w.prototype.open=function(){var d;if(this.rememberUpgrade&&w.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)d="websocket";else{if(this.transports.length===0){var u=this;return void setTimeout(function(){u.emit("error","No transports available")},0)}d=this.transports[0]}this.readyState="opening";try{d=this.createTransport(d)}catch{return this.transports.shift(),void this.open()}d.open(),this.setTransport(d)},w.prototype.setTransport=function(d){f("setting transport %s",d.name);var u=this;this.transport&&(f("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=d,d.on("drain",function(){u.onDrain()}).on("packet",function(o){u.onPacket(o)}).on("error",function(o){u.onError(o)}).on("close",function(){u.onClose("transport close")})},w.prototype.probe=function(d){f('probing transport "%s"',d);var u=this.createTransport(d,{probe:1}),o=!1,s=this;function m(){if(s.onlyBinaryUpgrades){var O=!this.supportsBinary&&s.transport.supportsBinary;o=o||O}o||(f('probe transport "%s" opened',d),u.send([{type:"ping",data:"probe"}]),u.once("packet",function(P){if(!o)if(P.type==="pong"&&P.data==="probe"){if(f('probe transport "%s" pong',d),s.upgrading=!0,s.emit("upgrading",u),!u)return;w.priorWebsocketSuccess=u.name==="websocket",f('pausing current transport "%s"',s.transport.name),s.transport.pause(function(){o||s.readyState!=="closed"&&(f("changing transport and sending upgrade packet"),S(),s.setTransport(u),u.send([{type:"upgrade"}]),s.emit("upgrade",u),u=null,s.upgrading=!1,s.flush())})}else{f('probe transport "%s" failed',d);var L=new Error("probe error");L.transport=u.name,s.emit("upgradeError",L)}}))}function k(){o||(o=!0,S(),u.close(),u=null)}function _(O){var P=new Error("probe error: "+O);P.transport=u.name,k(),f('probe transport "%s" failed because of error: %s',d,O),s.emit("upgradeError",P)}function B(){_("transport closed")}function R(){_("socket closed")}function A(O){u&&O.name!==u.name&&(f('"%s" works - aborting "%s"',O.name,u.name),k())}function S(){u.removeListener("open",m),u.removeListener("error",_),u.removeListener("close",B),s.removeListener("close",R),s.removeListener("upgrading",A)}w.priorWebsocketSuccess=!1,u.once("open",m),u.once("error",_),u.once("close",B),this.once("close",R),this.once("upgrading",A),u.open()},w.prototype.onOpen=function(){if(f("socket open"),this.readyState="open",w.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){f("starting upgrade probes");for(var d=0,u=this.upgrades.length;df&&(y=f),c>=f||c>=y||f===0)return new ArrayBuffer(0);for(var g=new Uint8Array(a),b=new Uint8Array(y-c),v=c,p=0;v=55296&&o<=56319&&k<_?(64512&(s=u.charCodeAt(k++)))==56320?m.push(((1023&o)<<10)+(1023&s)+65536):(m.push(o),k--):m.push(o);return m}function b(u,o){if(u>=55296&&u<=57343){if(o)throw Error("Lone surrogate U+"+u.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function v(u,o){return f(u>>o&63|128)}function p(u,o){if(!(4294967168&u))return f(u);var s="";return 4294965248&u?4294901760&u?!(4292870144&u)&&(s=f(u>>18&7|240),s+=v(u,12),s+=v(u,6)):(b(u,o)||(u=65533),s=f(u>>12&15|224),s+=v(u,6)):s=f(u>>6&31|192),s+=f(63&u|128)}function w(){if(y>=c)throw Error("Invalid byte index");var u=255&a[y];if(y++,(192&u)==128)return 63&u;throw Error("Invalid continuation byte")}function d(u){var o,s;if(y>c)throw Error("Invalid byte index");if(y==c)return!1;if(o=255&a[y],y++,(128&o)==0)return o;if((224&o)==192){if((s=(31&o)<<6|w())>=128)return s;throw Error("Invalid continuation byte")}if((240&o)==224){if((s=(15&o)<<12|w()<<6|w())>=2048)return b(s,u)?s:65533;throw Error("Invalid continuation byte")}if((248&o)==240&&(s=(7&o)<<18|w()<<12|w()<<6|w())>=65536&&s<=1114111)return s;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(u,o){for(var s=(o=o||{}).strict!==!1,m=g(u),k=m.length,_=-1,B="";++_65535&&(S+=f((B-=65536)>>>10&1023|55296),B=56320|1023&B),S+=f(B);return S}(k)}}},function(e,n){(function(){for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=new Uint8Array(256),y=0;y>2],p+=a[(3&b[g])<<4|b[g+1]>>4],p+=a[(15&b[g+1])<<2|b[g+2]>>6],p+=a[63&b[g+2]];return v%3==2?p=p.substring(0,p.length-1)+"=":v%3==1&&(p=p.substring(0,p.length-2)+"=="),p},n.decode=function(f){var g,b,v,p,w,d=.75*f.length,u=f.length,o=0;f[f.length-1]==="="&&(d--,f[f.length-2]==="="&&d--);var s=new ArrayBuffer(d),m=new Uint8Array(s);for(g=0;g>4,m[o++]=(15&v)<<4|p>>2,m[o++]=(3&p)<<6|63&w;return s}})()},function(e,n){var a=a!==void 0?a:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"&&MozBlobBuilder,c=function(){try{return new Blob(["hi"]).size===2}catch{return!1}}(),y=c&&function(){try{return new Blob([new Uint8Array([1,2])]).size===2}catch{return!1}}(),f=a&&a.prototype.append&&a.prototype.getBlob;function g(p){return p.map(function(w){if(w.buffer instanceof ArrayBuffer){var d=w.buffer;if(w.byteLength!==d.byteLength){var u=new Uint8Array(w.byteLength);u.set(new Uint8Array(d,w.byteOffset,w.byteLength)),d=u.buffer}return d}return w})}function b(p,w){w=w||{};var d=new a;return g(p).forEach(function(u){d.append(u)}),w.type?d.getBlob(w.type):d.getBlob()}function v(p,w){return new Blob(g(p),w||{})}typeof Blob<"u"&&(b.prototype=Blob.prototype,v.prototype=Blob.prototype),e.exports=c?y?Blob:v:f?b:void 0},function(e,n,a){(function(c){var y=a(15),f=a(4);e.exports=d;var g,b=/\n/g,v=/\\n/g;function p(){}function w(){return typeof self<"u"?self:typeof window<"u"?window:c!==void 0?c:{}}function d(u){if(y.call(this,u),this.query=this.query||{},!g){var o=w();g=o.___eio=o.___eio||[]}this.index=g.length;var s=this;g.push(function(m){s.onData(m)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){s.script&&(s.script.onerror=p)},!1)}f(d,y),d.prototype.supportsBinary=!1,d.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),y.prototype.doClose.call(this)},d.prototype.doPoll=function(){var u=this,o=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),o.async=!0,o.src=this.uri(),o.onerror=function(m){u.onError("jsonp poll error",m)};var s=document.getElementsByTagName("script")[0];s?s.parentNode.insertBefore(o,s):(document.head||document.body).appendChild(o),this.script=o,typeof navigator<"u"&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var m=document.createElement("iframe");document.body.appendChild(m),document.body.removeChild(m)},100)},d.prototype.doWrite=function(u,o){var s=this;if(!this.form){var m,k=document.createElement("form"),_=document.createElement("textarea"),B=this.iframeId="eio_iframe_"+this.index;k.className="socketio",k.style.position="absolute",k.style.top="-1000px",k.style.left="-1000px",k.target=B,k.method="POST",k.setAttribute("accept-charset","utf-8"),_.name="d",k.appendChild(_),document.body.appendChild(k),this.form=k,this.area=_}function R(){A(),o()}function A(){if(s.iframe)try{s.form.removeChild(s.iframe)}catch(O){s.onError("jsonp polling iframe removal error",O)}try{var S='