UNPKG

node-haxball

Version:

The most powerful and lightweight API that allows you to develop your original Haxball(www.haxball.com) host, client, and standalone applications both on node.js and browser environments and also includes every possible hack and functionality that you can

1 lines 156 kB
var Tx=(()=>{var EWG={};var fE=(M,E)=>()=>(E||M((E={Pr:{}}).Pr,E),E.Pr);var OW=fE((jE,dE)=>{var DE=(()=>{var M=(o,J)=>()=>(J||o((J={Pr:{}}).Pr,J),J.Pr),E=M((o,J)=>{function d(w,Q){this.x=w,this.y=Q}d.prototype={qP:function(){this.x=-this.x,this.y=-this.y}},J.Pr=d}),W=M((o,J)=>{var d=E();J.Pr=function(w){var{f:Q=32,k:s=63,P:Y=1,cM:c=0,UM:l=0}=w||{};this.f=Q,this.k=s,this.P=Y,this.h=new d(c,l)}}),I=M((o,J)=>{function d(Q){var{f:s=32,k:Y=63,P:c=1,yM:l=0,F:j=null,MM:t=null}=Q||{};this.Na=this.Ja=this.eM=null,this.H5=0,this.KI=null,this.F=j,this.MM=t,this.yM=l,this.P=c,this.k=Y,this.f=s,this.zM=1/0}var w=E();d.prototype={YI:function(Q){if(Q*=.017453292519943295,0>Q){Q=-Q;var s=this.F;this.F=this.MM,this.MM=s,this.yM=-this.yM}.17435839227423353<Q&&5.934119456780721>Q&&(this.zM=1/Math.tan(Q/2))},lP:function(){return isFinite(this.zM)?114.59155902616465*Math.atan(1/this.zM):0},CE:function(){var{zM:Q,MM:{h:s},F:{h:Y}}=this,c,l,j,t;isFinite(Q)?(j=.5*(s.x-Y.x),t=.5*(s.y-Y.y),c=Y.x+j-t*Q,l=Y.y+t+j*Q,j=Y.x-c,t=Y.y-l,this.H5=Math.sqrt(j*j+t*t),this.Na=new w(l-Y.y,Y.x-c),this.Ja=new w(s.y-l,c-s.x),0>=Q&&(this.Na.qP(),this.Ja.qP()),this.KI=new w(c,l)):(j=Y.x-s.x,t=Y.y-s.y,l=Math.sqrt(t*t+j*j),this.eM=new w(-t/l,j/l))}},J.Pr=d}),a=M((o,J)=>{var d=E();J.Pr=function(w){var{f:Q=32,k:s=63,P:Y=1,aM:c=0,hE:l=0,cE:j=0}=w||{};this.f=Q,this.k=s,this.P=Y,this.aM=c,this.eM=new d(l,j)}}),i=M((o,J)=>{function d(Q){var{Nc:s=0,Jc:Y=0,Dc:c=0,jc:l=0}=Q||{};this.UE=new w(c,l),this.$E=new w(s,Y)}var w=E();d.prototype={p5:function({x:Q,y:s},{x:Y,y:c}){var{$E:{x:l,y:j},UE:{x:t,y:R}}=this,m=Y-Q,D=c-s;return 0<D*(l-Q)-m*(j-s)==0<D*(t-Q)-m*(R-s)?!1:(m=t-l,D=R-j,0<D*(Q-l)-m*(s-j)!=0<D*(Y-l)-m*(c-j))}},J.Pr=d}),f=M((o,J)=>{var d=E();J.Pr=function(w){var{f:Q=63,k:s=63,m:Y=.99,b:c=1,P:l=.5,z:j=10,UN:t=0,$N:R=0,qN:m=0,lN:D=0,cM:B=0,UM:n=0}=w||{};this.f=Q,this.k=s,this.m=Y,this.b=c,this.P=l,this.z=j,this._=new d(t,R),this.A=new d(m,D),this.h=new d(B,n)}}),$=M((o,J)=>{J.Pr=function(d){var{YE:w=1/0,_M:Q=100,sM:s=100,xM:Y=0,VM:c=0}=d||{};this.YE=w,this._M=Q,this.sM=s,this.xM=Y,this.VM=c}}),h=M((o,J)=>{function d(Q){w.apply(this,[Q])}var w=f();d.prototype={oP:function(Q,s,Y){var{A:c,b:l}=this;c.x+=Q*s*l,c.y+=Q*Y*l},dc:function(Q,s){var{A:Y}=this;Y.x+=Q,Y.y+=s},Qc:function(){var{x:Q,y:s}=this.A;return 0<Q*Q+s*s}},J.Pr=d}),N=M((o,J)=>{function d(){this.D=[],this.w=[],this.L=[],this.O=[],this.$M=[]}d.prototype={LM:function(w,Q){var s,Y,c,l,j,t,{D:R,L:m,O:D,w:B,$M:n}=this;R.forEach(({h:T,A,_:z,m:p})=>{var{x:WM,y:GM}=A;T.x+=w*WM,T.y+=w*GM,A.x=p*(WM+z.x),A.y=p*(GM+z.y)}),R.forEach((T,A)=>{var{P:z,z:p,k:WM,f:GM,b:PM,h:b,A:kM}=T;for(s=A+1;s<R.length;s++)if(c=R[s],c.k&GM&&c.f&WM){var{h:sM,A:QM}=c,JM=b.x-sM.x,AM=b.y-sM.y,rM=JM*JM+AM*AM,MM=c.z+p;if(0<rM&&rM<=MM*MM){rM=Math.sqrt(rM),JM/=rM,AM/=rM;var tM=PM/(PM+c.b);MM-=rM,rM=MM*tM,b.x+=JM*rM,b.y+=AM*rM,MM-=rM,sM.x-=JM*MM,sM.y-=AM*MM,MM=JM*(kM.x-QM.x)+AM*(kM.y-QM.y),0>MM&&(MM*=z*c.P+1,tM*=MM,kM.x-=JM*tM,kM.y-=AM*tM,tM=MM-tM,QM.x+=JM*tM,QM.y+=AM*tM,Q?.u5?.(A,T,s,c))}}if(PM!=0){m.forEach((S,iM)=>{if(S.k&GM&&S.f&WM){var{eM:{x:V,y:C}}=S;l=S.aM-(V*b.x+C*b.y)+p,0<l&&(b.x+=V*l,b.y+=C*l,l=kM.x*V+kM.y*C,0>l&&(l*=z*S.P+1,kM.x-=l*V,kM.y-=l*C,Q?.x5?.(A,T,iM)))}}),D.forEach((S,iM)=>{if(S.k&GM&&S.f&WM){var V,C,H,{x:hM,y:cM}=b;if(isFinite(S.zM)){if(C=S.KI,V=hM-C.x,C=cM-C.y,H=S.Na,MM=S.Ja,(0<H.x*V+H.y*C&&0<MM.x*V+MM.y*C)==0>=S.zM||(MM=Math.sqrt(V*V+C*C),MM==0))return;H=MM-S.H5,V/=MM,C/=MM}else{var{x:_M,y:YM}=S.F.h,{x:OM,y:nM}=S.MM.h;if(C=OM-_M,V=nM-YM,H=hM-OM,MM=cM-nM,0>=(hM-_M)*C+(cM-YM)*V||0<=H*C+MM*V)return;C=S.eM,V=C.x,C=C.y,H=V*H+C*MM}if(MM=S.yM,MM==0)0>H&&(H=-H,V=-V,C=-C);else if(0>MM&&(MM=-MM,H=-H,V=-V,C=-C),H<-MM)return;H>=p||(H=p-H,b.x+=V*H,b.y+=C*H,H=V*kM.x+C*kM.y,0>H&&(H*=z*S.P+1,kM.x-=V*H,kM.y-=C*H,Q?.V5?.(A,T,iM)))}});var lM=p*p;B.forEach((S,iM)=>{if(S.k&GM&&S.f&WM&&(l=b.x-S.h.x,j=b.y-S.h.y,t=l*l+j*j,0<t&&t<=lM)){t=Math.sqrt(t),l/=t,j/=t,t=p-t,b.x+=l*t,b.y+=j*t,t=l*kM.x+j*kM.y;var V=0>t;V&&(t*=z*S.P+1,kM.x-=l*t,kM.y-=j*t),Q?.F5?.(A,T,iM,V)}})}});for(var qM=0;2>qM;qM++)n.forEach(({VM:T,xM:A,YE:z,sM:p,_M:WM},GM)=>{if(T=R[T],A=R[A],T&&A){var{h:PM,A:b,b:kM}=T,{h:sM,A:QM,b:JM}=A;if(Y=PM.x-sM.x,A=PM.y-sM.y,c=Math.sqrt(Y*Y+A*A),!(0>=c)){if(Y/=c,A/=c,s=kM/(kM+JM),s!=s&&(s=.5),p>=WM)l=p,j=0;else if(c<=p)l=p,j=1;else if(c>=WM)l=WM,j=-1;else return;c=l-c,isFinite(z)?(s=z*c*.5,Y*=s,A*=s,b.x+=Y*kM,b.y+=A*kM,QM.x-=Y*JM,QM.y-=A*JM,Q?.gI?.(GM,!1,!0)):(l=c*s,PM.x+=Y*l*.5,PM.y+=A*l*.5,c-=l,sM.x-=Y*c*.5,sM.y-=A*c*.5,c=Y*(b.x-QM.x)+A*(b.y-QM.y),(z=0>=j*c)&&(s*=c,b.x-=Y*s,b.y-=A*s,s=c-s,QM.x+=Y*s,QM.y+=A*s),Q?.gI?.(GM,!0,z))}}})},Da:function(w){this.D.push(w)},TI:function(w){w=this.D.indexOf(w),0>w||this.D.splice(w,1)}},J.Pr=d});return M((o,J)=>{J.Pr={BG:E(),OI:W(),BI:I(),zI:a(),rc:i(),RI:f(),vI:$(),Mk:h(),Ek:N()}})()})();typeof jE<"u"?(typeof dE<"u"&&dE.Pr&&(jE=dE.Pr=DE),jE.NP=DE):typeof root<"u"?root.nago=DE:window.nago=DE});var hG=fE((zk,fG)=>{function VM(M,E){return E={Pr:{}},M(E,E.Pr),E.Pr}Object.assign(EWG,{gE:null,rE:{ja:"www.haxball.com",JP:"p2p.haxball.com",zG:!0},iE:null,DP:9,RG:null,Wk:[{urls:"stun:stun.l.google.com:19302"}],jP:"",bI:"",wE:null,qE:null,nI:null,da:null,dP:null,Gk:null,Qa:null,LI:null,QP:null,IG:null,ra:null,YM:null,rP:null,SM:null,wP:null,wa:null,ak:null});var Ua=(M,E)=>{var W=EWG,I=E?.backend;I&&(I.hostname!=null&&(W.rE.ja=I.hostname),I.hostnameWs!=null&&(W.rE.JP=I.hostnameWs),I.secure!=null&&(W.rE.zG=I.secure)),I=E?.proxy,I&&(W.gE={wc:I.HttpUrl,sa:I.WebSocketUrl,XI:I.WebSocketChangeOriginAllowed}),E?.version!=null&&(W.DP=E.version),W.jP=(W.rE.zG?"wss":"ws")+"://"+W.rE.JP+"/",W.bI=W?.gE?.wc||(W.rE.zG?"https":"http")+"://"+W.rE.ja+"/rs/",E?.stunServer!=null&&(W.Wk=[{urls:E.stunServer}]),W.wE=M.setTimeout?.bind(M),W.qE=M.clearTimeout?.bind(M),W.nI=M.setInterval?.bind(M),W.da=M.clearInterval?.bind(M),W.dP=M.console?.log?.bind(M),W.Gk=M.console?.warn?.bind(M),W.Qa=M.requestAnimationFrame?.bind(M),W.LI=M.cancelAnimationFrame?.bind(M),W.QP=M.fetch?.bind(M),W.IG=M.crypto?.subtle,W.ra=M.WebSocket,W.YM=M.performance,W.rP=M.JSON5,W.SM=M.pako,W.iE=E?.proxyAgent,W.RG=E?.identityToken;var a=M.webkitRTCPeerConnection||M.mozRTCPeerConnection||M.RTCPeerConnection,i=M.webkitRTCIceCandidate||M.mozRTCIceCandidate||M.RTCIceCandidate,f=M.webkitRTCSessionDescription||M.mozRTCSessionDescription||M.RTCSessionDescription;return W.wP=a,W.wa=i,W.ak=f,W},X=VM(function(M){M.Pr=M.Ik||(M.Ik={vG:0,ea:1,_a:2,sP:-1,eP:0,_P:1,AP:2,tP:3,kk:4,KP:0,mI:1,YP:2,gP:3,TP:4,OP:5,BP:6,zP:7,RP:8,ik:9,Pk:10,vP:12,yI:14,bP:18,nP:20,fk:21,LP:22,XP:23,mP:24,yP:25,SP:26,CP:27,ZP:31,HP:32,bW:33,pP:36,hk:38,uP:40,xP:41,VP:51,FP:55,M1:56,ck:59,Uk:62,$k:63,E1:2,W1:6,G1:17})}),EW=null;function uM(M,E=null){this.abbr=M,this.api={errors:{}},this.defineMetadata(E)}Object.defineProperty(uM,"current",{get:function(){return EW},set:function(M){EW=M,uM.sc?.(M)}});uM.prototype.defineMetadata=function(M){};uM.resolveText=function(M,E){if(M){E=E.map($=>$?.oN||$);for(var W=/\$([\d]+)\?\("([^"]*)":"([^"]*)"\)/gm,I=/\$([\d]+)/gm,a,i="",f=0;(a=W.exec(M))!=null;)i+=M.substring(f,a.index)+(E[a[1]-1]?a[2]:a[3]),f=a.index+a[0].length;for(i+=M.substring(f),M="",f=0;(a=I.exec(i))!=null;)M+=i.substring(f,a.index)+E[a[1]-1],f=a.index+a[0].length;return M+=i.substring(f),M}};uM.qk=(M,E)=>uM.resolveText(EW?.api?.errors?.[M],E||[]);var CW=uM,RM=VM(function(M){var{R:E}=EWG,{qk:W}=CW;function I(){this.a1=X.KP,this.I1=null;var i=this;this.toString=()=>W(i.a1,i.I1)}function a(i,...f){var $=new I;return $.a1=i,$.I1=f,$}E(I,[],["code","params"],[]),M.Pr=M.ec||(M.ec={CM:a,Aa:I})}),eM=VM(function(M){var{wE:E,qE:W,YM:I,R:a}=EWG,{CM:i}=RM;let f=.97;function $(c,l){var j=c.indexOf(l);return j<0?!1:(c.splice(j,1),!0)}function h(c,l=1){if(l<=0){c();return}Promise.resolve().then(()=>{h(c,l-1)})}function N(c,l=!1){this.Q=c,this.RM=l,this.c=0}N.vM=function(c,l){var j=c.getUint8(l),t=l;if(!(j&128))l++;else if((j&224)==192)j=(j&31)<<6|c.getUint8(l+1)&63,l+=2;else if((j&240)==224)j=(j&15)<<12|(c.getUint8(l+1)&63)<<6|c.getUint8(l+2)&63,l+=3;else if((j&248)==240)j=(j&7)<<18|(c.getUint8(l+1)&63)<<12|(c.getUint8(l+2)&63)<<6|c.getUint8(l+3)&63,l+=4;else if((j&252)==248)j=(j&3)<<24|(c.getUint8(l+1)&63)<<18|(c.getUint8(l+2)&63)<<12|(c.getUint8(l+3)&63)<<6|c.getUint8(l+4)&63,l+=5;else if((j&254)==252)j=(j&1)<<30|(c.getUint8(l+1)&63)<<24|(c.getUint8(l+2)&63)<<18|(c.getUint8(l+3)&63)<<12|(c.getUint8(l+4)&63)<<6|c.getUint8(l+5)&63,l+=6;else throw i(X.nP,l,j);return{_c:j,Ac:l-t}},N.prototype={XM:function(c){if(c==null&&(c=this.Q.byteLength-this.c),this.c+c>this.Q.byteLength)throw i(X.fk);var l=new Uint8Array(this.Q.buffer,this.Q.byteOffset+this.c,c);return this.c+=c,l},lk:function(c){var l=this.XM(c);return c=new ArrayBuffer(c),new Uint8Array(c).set(l),c},ta:function(){return this.Q.getInt8(this.c++)},s:function(){return this.Q.getUint8(this.c++)},ok:function(){var c=this.Q.getInt16(this.c,this.RM);return this.c+=2,c},ZM:function(){var c=this.Q.getUint16(this.c,this.RM);return this.c+=2,c},Y:function(){var c=this.Q.getInt32(this.c,this.RM);return this.c+=4,c},qM:function(){var c=this.Q.getUint32(this.c,this.RM);return this.c+=4,c},Nk:function(){var c=this.Q.getFloat32(this.c,this.RM);return this.c+=4,c},d:function(){var c=this.Q.getFloat64(this.c,this.RM);return this.c+=8,c},vM:function(){var{c,Q:l}=this,j=0,t,R=0;do t=l.getUint8(c+j),j<5&&(R|=(t&127)<<7*j>>>0),++j;while(t&128);return this.c+=j,R|0},kG:function(c){for(var{c:l,Q:j}=this,t,R="",m=l+c;l<m;)t=N.vM(j,l),l+=t.Ac,R+=String.fromCodePoint(t._c);if(l!=m)throw i(X.LP,l-m);return this.c=l,R},lE:function(){var c=this.vM();return c<=0?null:this.kG(c-1)},sE:function(){return this.kG(this.vM())},k1:function(){return this.kG(this.s())},Ka:function(){return JSON.parse(this.sE())}};function o(c,l=!1){this.Q=c,this.RM=l,this.c=0}o.W=function(c=16,l=!1){return new o(new DataView(new ArrayBuffer(c)),l)},o.gM=function(c,l,j){var t=j;if(c<0)throw i(X.XP,c);if(c<128)l.setUint8(j,c&127),++j;else if(c<2048)l.setUint8(j,c>>6&31|192),l.setUint8(j+1,c&63|128),j+=2;else if(c<65536)l.setUint8(j,c>>12&15|224),l.setUint8(j+1,c>>6&63|128),l.setUint8(j+2,c&63|128),j+=3;else if(c<2097152)l.setUint8(j,c>>18&7|240),l.setUint8(j+1,c>>12&63|128),l.setUint8(j+2,c>>6&63|128),l.setUint8(j+3,c&63|128),j+=4;else if(c<67108864)l.setUint8(j,c>>24&3|248),l.setUint8(j+1,c>>18&63|128),l.setUint8(j+2,c>>12&63|128),l.setUint8(j+3,c>>6&63|128),l.setUint8(j+4,c&63|128),j+=5;else if(c<-2147483648)l.setUint8(j,c>>30&1|252),l.setUint8(j+1,c>>24&63|128),l.setUint8(j+2,c>>18&63|128),l.setUint8(j+3,c>>12&63|128),l.setUint8(j+4,c>>6&63|128),l.setUint8(j+5,c&63|128),j+=6;else throw i(X.mP,c);return j-t},o.tc=function(c){if(c<0)throw i(X.yP,c);if(c<128)return 1;if(c<2048)return 2;if(c<65536)return 3;if(c<2097152)return 4;if(c<67108864)return 5;if(c<-2147483648)return 6;throw i(X.SP,c)},o.SI=function(c){for(var l=0,j=c.length,t=0;t<j;t++)l+=o.tc(c.charCodeAt(t));return l},o.Kc=function(c){return c>>>=0,c<128?1:c<16384?2:c<2097152?3:c<268435456?4:5},o.prototype={bG:function(){var c=new ArrayBuffer(this.c),l=new Uint8Array(this.Q.buffer,this.Q.byteOffset,this.c);return new Uint8Array(c).set(l),c},bM:function(){return new Uint8Array(this.Q.buffer,this.Q.byteOffset,this.c)},iG:function(){return new DataView(this.Q.buffer,this.Q.byteOffset,this.c)},i1:function(){return new N(this.iG(),this.RM)},IW:function(c){this.Q.byteLength>=c||this.Yc(2*this.Q.byteLength>=c?2*this.Q.byteLength:c)},Yc:function(c){if(c<1)throw i(X.CP);if(!(this.Q.byteLength>=c)){var l=new Uint8Array(this.Q.buffer);c=new ArrayBuffer(c),new Uint8Array(c).set(l),this.Q=new DataView(c)}},$:function(c){var l=this.c++;this.IW(this.c),this.Q.setUint8(l,c)},Jk:function(c){var l=this.c;this.c+=2,this.IW(this.c),this.Q.setInt16(l,c,this.RM)},mM:function(c){var l=this.c;this.c+=2,this.IW(this.c),this.Q.setUint16(l,c,this.RM)},g:function(c){var l=this.c;this.c+=4,this.IW(this.c),this.Q.setInt32(l,c,this.RM)},AM:function(c){var l=this.c;this.c+=4,this.IW(this.c),this.Q.setUint32(l,c,this.RM)},Dk:function(c){var l=this.c;this.c+=4,this.IW(this.c),this.Q.setFloat32(l,c,this.RM)},J:function(c){var l=this.c;this.c+=8,this.IW(this.c),this.Q.setFloat64(l,c,this.RM)},FM:function(c){var l=this.c;this.c+=c.byteLength,this.IW(this.c),new Uint8Array(this.Q.buffer,this.Q.byteOffset,this.Q.byteLength).set(c,l)},Ya:function(c){this.FM(new Uint8Array(c))},eE:function(c){this.gM(o.SI(c)),this.CI(c)},oE:function(c){if(c==null){this.gM(0);return}this.gM(o.SI(c)+1),this.CI(c)},P1:function(c){var l=o.SI(c);if(l>255)throw null;this.$(l),this.CI(c)},ZI:function(c){this.eE(JSON.stringify(c))},CI:function(c){var{c:l}=this,j=c.length;this.IW(l+o.SI(c));for(var{Q:t}=this,R=0;R<j;R++)l+=o.gM(c.charCodeAt(R),t,l);this.c=l},gM:function(c){var{c:l}=this;c>>>=0,this.IW(l+o.Kc(c));var{Q:j}=this;j.setUint8(l,c|128),c>=128?(j.setUint8(l+1,c>>7|128),c>=16384?(j.setUint8(l+2,c>>14|128),c>=2097152?(j.setUint8(l+3,c>>21|128),c>=268435456?(j.setUint8(l+4,c>>28&127),c=5):(j.setUint8(l+3,j.getUint8(l+3)&127),c=4)):(j.setUint8(l+2,j.getUint8(l+2)&127),c=3)):(j.setUint8(l+1,j.getUint8(l+1)&127),c=2)):(j.setUint8(l,j.getUint8(l)&127),c=1),this.c+=c}};function J(c){this.ga=[];for(var l=0;l<c;l++)this.ga.push(0);this.Ta=0,this.jk=0}J.prototype={gc:function(c){this.jk-=this.ga[this.Ta],this.ga[this.Ta]=c,this.jk+=c,this.Ta++,this.Ta>=this.ga.length&&(this.Ta=0)},Tc:function(){return this.jk/this.ga.length}};function d(c){this.Oc=c,this.HM=[],this.Oa=0}d.prototype={f1:function(c){this.Oa=0;var l=0;this.HM.forEach((t,R)=>{t.dk++,t.nG*=f,this.HM[l].dk<t.dk&&(l=R),this.Oa+=t.nG});var j;for(this.HM.length>=this.Oc?(j=this.HM[l],this.Oa-=j.nG,this.HM.splice(l,1)):j={},j.value=c,j.nG=1,j.dk=0,this.Oa+=j.nG,c=0;c<this.HM.length&&this.HM[c].value<=j.value;++c);this.HM.splice(c,0,j)},HI:function(c){if(this.HM.length==0)return 0;if(this.HM.length==1)return this.HM[0].value;c*=this.Oa;for(var l=this.HM[0].nG,j=0;j<this.HM.length-1&&!(l>=c);)l+=this.HM[++j].nG;return this.HM[j].value},Bc:function(){return this.HM.length==0?0:this.HM[this.HM.length-1].value}};function w(c,l){this.h1=c,this.c1=l,this.Ba=c,this.Qk=EWG.YM.now()}w.prototype={U1:function(c=1){return this.LM(),c>this.Ba?!1:(this.Ba-=c,!0)},LM:function(){var c=EWG.YM.now(),l=Math.floor((c-this.Qk)/this.c1);this.Qk+=l*this.c1,this.Ba+=l,this.Ba>=this.h1&&(this.Ba=this.h1,this.Qk=c)}};let Q="0123456789ABCDEF";var s=c=>(c=parseInt(c),isNaN(c)?null:c),Y={name:"Integer"};a(N,[],["dataView","littleEndian","offset"],["readUint8Array","readArrayBuffer","readInt8","readUint8","readInt16","readUint16","readInt32","readUint32","readFloat32","readFloat64","readUTF8Char","readStringContents","readNullableString","readString","readString2","readJSON"]),a(o,[],["dataView","littleEndian","offset"],["toArrayBuffer","toUint8Array","toDataView","createStreamReader","doubleSizeIfNecessary","resize","writeUint8","writeInt16","writeUint16","writeInt32","writeUint32","writeFloat32","writeFloat64","writeUint8Array","writeArrayBuffer","writeString","writeNullableString","writeString2","writeJSON","writeStringContents","writeUTF8Char"]),o.create=o.W,M.Pr=M.zc||(M.zc={pI:(c,l,j)=>c<l?l:c>j?j:c,za:$,nW:N,LW:o,Rc:J,vc:d,bc:w,uI:Y,xI:(c,l)=>{var j=l!=null;if(j){switch(l){case Array:j=c instanceof Array;break;case Boolean:j=typeof c=="boolean";break;case Number:j=typeof c=="number";break;case Y:j=typeof c=="number"&&(c|0)===c;break;case String:j=typeof c=="string";break;default:j=!1}if(j)return c}throw i(X.bP,JSON.stringify(c),l.name||JSON.stringify(l))},VI:(c,l)=>new Promise((j,t)=>{var R=EWG.wE(()=>{t("Timed out")},l);c.then(m=>{EWG.qE(R),j(m)},m=>{EWG.qE(R),t(m)})}),kW:(c,l)=>{var j=Object.create(c);for(var t in l)j[t]=l[t];return l.toString!==Object.prototype.toString&&(j.toString=l.toString),j},FI:c=>{for(var l="",j=0;j<c.length;)l+=String.fromCharCode(Q.indexOf(c.charAt(j++))<<4|Q.indexOf(c.charAt(j++)));return l},M5:c=>c.reduce((l,j)=>l+String.fromCharCode(j),""),E5:s,NN:c=>s("0x"+c),Ra:(c,l)=>{var j="";do j=Q.charAt(c&15)+j,c>>>=4;while(c>0);if(l!=null)for(;j.length<l;)j="0"+j;return j},W5:c=>{var l;if(c?.includes(".")){if(l=c.split("."),l.length>4)return;for(;l.length<4;)l.splice(0,0,"");return l.reduce((m,D,B)=>{if(m!=null){var n=parseInt(D.length>0?D:"0");return isNaN(n)||n<0||n>255?null:(m|=n<<24-B*8,m)}},0)}if(c?.includes(":")){l=c.split(":");var j=c.indexOf("::");if(j!=c.lastIndexOf("::"))return;if(j>=0){var t=l.length;if(t>9)return;j=l.findIndex(m=>m.length==0),(j==0||j==t-2&&l[t-1].length==0)&&(l.splice(j,1),t--),l[j]="0";for(var R=0;R<8-t;R++)l.splice(j+1,0,"0")}return l.length!=8?void 0:l.reduce((m,D,B)=>{if(m!=null){var n=parseInt(D,16);if(!(isNaN(n)||n<0||n>65535))return m|=BigInt(n)<<112n-BigInt(B)*16n,m}},0n)}},G5:c=>{var l=c?.__proto__.constructor.name,j,t;if(l=="BigInt"){var R={va:-1,ZE:0},m={va:-1,ZE:0};for(t=[],j=0;j<8;j++){var D=c&65535n;D==0?(m.ZE==0&&(m.va=7-j),m.ZE++,m.ZE>R.ZE&&(R.ZE=m.ZE,R.va=m.va)):m.ZE=0,t.splice(0,0,D.toString(16)),c>>=16n}R.ZE>0&&(j=R.va-R.ZE+1,t.splice(j,R.ZE-1),t[j]="");var B=t.join(":");return B.length==0?B="::":B.charAt(B.length-1)==":"?B+=":":B.charAt(0)==":"&&(B=":"+B),B}else if(l=="Number"){for(t=[],j=0;j<4;j++)t.splice(0,0,""+(c&255)),c>>=8;return t.join(".")}},rk:c=>{if(c.length==43){for(var l=0n,j=0,t=252;j<43;j++,t-=6){var R=c.charCodeAt(j);if(R==45)R=0;else if(R==95)R=63;else if(R>=48&&R<=57)R-=47;else if(R>=65&&R<=90)R-=54;else if(R>=97&&R<=122)R-=60;else return;l|=BigInt(R)<<BigInt(t)}return l}},wk:c=>{var l=c?.__proto__.constructor.name;if(l=="BigInt"){for(var j="",t=0;t<43;t++){if(l=Number(c&63n),l==0)l=45;else if(l==63)l=95;else if(l>=1&&l<=10)l+=47;else if(l>=11&&l<=36)l+=54;else if(l>=37&&l<=62)l+=60;else return;j=String.fromCharCode(l)+j,c>>=6n}return j}},a5:(c,l,j)=>!((c^l)&j),ba:(c,l,j=!0)=>!c&&j?null:(typeof c=="string"&&(c=JSON.parse(c)),{lat:c?.lat||l?.lat||40,lon:c?.lon||l?.lon||40,flag:c?.flag||l?.flag||"tr"}),sk:h})}),{nW:BW,LW:$a}=eM,{CM:qa}=RM,aW={name:"ECDSA",namedCurve:"P-256"},ZW={name:"ECDSA",hash:{name:"SHA-256"}};function la(M,E,W){try{return EWG.IG.importKey("jwk",{crv:"P-256",ext:!0,key_ops:["sign"],kty:"EC",d:W,x:M,y:E},aW,!0,["sign"])}catch(I){return Promise.reject(I)}}function oa(M,E){try{return EWG.IG.importKey("jwk",{crv:"P-256",ext:!0,key_ops:["verify"],kty:"EC",x:M,y:E},aW,!0,["verify"])}catch(W){return Promise.reject(W)}}function xM(){this.x=null,this.y=null,this.ek=null,this._k=null}xM.nc=function(){try{return EWG.IG.generateKey(aW,!0,["sign","verify"]).then(function(M){var E=M.privateKey;return EWG.IG.exportKey("jwk",E).then(function(W){var I=new xM;return I.x=W.x,I.y=W.y,I.ek=W.d,I._k=E,I})})}catch(M){return Promise.reject(M)}};xM.Lc=function(M){var E=M.split(".");if(E.length!=4||E[0]!="idkey")return Promise.reject(qa(X.VP));var W=E[1],I=E[2],a=E[3];return la(W,I,a).then(function(i){var f=new xM;return f.x=W,f.y=I,f.ek=a,f._k=i,f})};xM.Xc=function(M,E){try{var W=new BW(new DataView(M.buffer,M.byteOffset,M.byteLength),!1);W.s();var I=W.XM(W.ZM()),a=W.XM();W=new BW(new DataView(I.buffer,I.byteOffset,I.byteLength),!1);var i=W.sE(),f=W.sE(),$=W.XM();if($.byteLength!=E.byteLength)return Promise.reject(null);for(var h=0;h<$.byteLength;h++)if($[h]!=E[h])return Promise.reject(null);return oa(i,f).then(function(N){return EWG.IG.verify(ZW,N,a,I)}).then(function(N){if(!N)throw null;return i})}catch(N){return Promise.reject(N)}};xM.prototype={mc:function(){return"idkey."+this.x+"."+this.y+"."+this.ek},yc:function(M){try{var E=$a.W(1024);E.$(1);var W=E.c;E.mM(0);var I=E.c;E.eE(this.x),E.eE(this.y),E.FM(M);var a=E.c-I;return E.Q.setUint16(W,a,E.RM),EWG.IG.sign(ZW,this._k,new Uint8Array(E.Q.buffer,E.Q.byteOffset+I,a)).then(function(i){return E.Ya(i),E.bM()})}catch(i){return Promise.reject(i)}}};var HW=xM,WW=VM(function(M){function E(f,$,h,N,o,J,d){return new Promise(function(w,Q){var s={method:h,body:o};f!=null&&(s.agent=f);var Y=d||{};J!=null&&Object.assign(Y,{"Content-type":J}),s.headers=Y,EWG.QP($,s).then(async c=>{c.status>=200&&c.status<300?w(await c[N]()):Q("status: "+c.status)}).catch(c=>{Q(c)})})}function W(f,$,h,N){return E(f,$,"GET",h,null,null,N)}function I(f,$,h){return W(f,$,"json",h).then(function(N){if(N.error!=null)throw N.error;return N.data})}function a(f,$,h,N,o){return E(f,$,"POST","json",h,N,o).then(function(J){if(J.error!=null)throw J.error;return J.data})}function i({$1:f,TE:$,q1:h,iE:N,Sc:o,LG:J,HE:d,XG:w,mG:Q}){var s;if(N||EWG.gE?.XI){var Y={};N&&(Y.agent=N);var c=o||{};EWG.gE.XI&&Object.assign(c,{Origin:(EWG.rE.zG?"https":"http")+"://"+EWG.rE.ja}),Y.headers=c,s=new EWG.ra(f+"?token="+$,h,Y)}else s=new EWG.ra(f+"?token="+$,h);return s.binaryType="arraybuffer",s.onopen=J,s.onclose=d,s.onerror=w,s.onmessage=Q,s}M.Pr=M.Cc||(M.Cc={Ak:f=>W(f,EWG.bI+"api/list","arrayBuffer"),tk:f=>I(f,EWG.bI+"api/geo").then($=>({lat:$.lat,lon:$.lon,flag:$.code.toLowerCase()})),Kk:({iE:f,TE:$,Zc:h=""},N,o)=>a(f,EWG.bI+"api/host","token="+$+"&rcr="+h,"application/x-www-form-urlencoded",{Accept:"*/*","Content-type":"application/x-www-form-urlencoded",Priority:"u=1, i","User-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"}).then(J=>{switch(J.action){case"connect":N(J.url,J.token);break;case"recaptcha":o(J.sitekey);break}}),l1:i})}),{CM:EE}=RM,{kW:Na}=eM;function jM(){this.WE=0}jM.I5=new Map;jM.Hc=function(M){if(M.iW==null)throw EE(X.ZP);M.prototype.iW=M.iW,jM.I5.set(M.prototype.eventType,M)};jM.l=function(M,E,W){var I=M?.yG?.prototype?.eventType;if(I==null)throw EE(X.HP);E.$(I),M.l(E,W)};jM.o=function(M,E){var W=mM.k5(M.s());return W.dM=0,W.o(M,E),W};jM.prototype={T:function(){throw EE(X.bW)},o:function(){throw EE(X.bW)},l:function(){throw EE(X.bW)},copy:function(){throw EE(X.bW)},yG:jM};jM.prototype.eventType=null;function mM(){}mM.S=jM;mM.lM=function({M,PM:E,IM:W,v:I,oM:a,NM:i,T:f,l:$,o:h}){function N(){this.WE=0,I.call(this)}return N.W=function(...o){return a(new N,...o)},N.prototype=Na(jM.prototype,{T:function(o){f.call(this,o)},l:function(o,J){$.call(this,o,J)},o:function(o,J){h.call(this,o,J)},copy:function(){var o=N.W(...i.call(this));return o.WE=this.WE,o.dM=this.dM,o.G=this.G,o.i5=this.i5,to},yG:N}),N.prototype.eventType=M,N.iW={PM:E,IM:W},jM.Hc(N),N};mM.na=function(M,E){jM.I5.delete(M.prototype.eventType),M.prototype.eventType=E,jM.I5.set(E,M)};mM.k5=M=>{var E=jM.I5.get(M);if(E){var W=Object.create(E.prototype);return W.WE=0,W}};mM.Yk=jM.o;mM.gk=jM.l;var yM=mM,IW=VM(function(M){var{CM:E}=RM,{lM:W}=yM,I=W({M:X.E1,PM:!1,IM:!1,v:function(){this.H=null,this.GE=null},oM:function(f,$,h){return f.H=$,f.GE=h,f},NM:function(){var f,$=null;return this.H&&(f=new ArrayBuffer(this.H.byteLength),new Uint8Array(f).set(new Uint8Array(this.H))),this.GE&&($=new ArrayBuffer(this.GE.byteLength),new Uint8Array($).set(new Uint8Array(this.GE))),[f,$]},T:function(f){f.pc(this.H,this.GE)},l:function(f,$){f.gM(this.H.byteLength),f.Ya(this.H),!$&&this.GE&&f.Ya(this.GE)},o:function(f,$){if(this.H=f.lk(f.vM()),this.H.byteLength<4)throw E(X.ik);!$&&f.Q.byteLength>f.c&&(this.GE=f.lk(f.Q.byteLength-f.c))}}),a=W({M:X.W1,PM:!1,IM:!1,v:function(){this.M=0,this.PW=null,this.La=!1,this.G=0},oM:function(f,$,h,N){return f.M=$,f.PW=h,f.La=N,f},NM:function(){return[this.M,this.PW,this.La]},T:function(f){f.OE(this.G,128)&&f.uc(f.p(this.M),this.PW,this.La,f.p(this.G))},l:function(f){this.PW!=null&&(this.PW=this.PW.substring(0,100)),f.g(this.M),f.oE(this.PW),f.$(this.La?1:0)},o:function(f){if(this.M=f.Y(),this.PW=f.lE(),this.La=f.s()!=0,this.PW!=null&&this.PW.length>100)throw E(X.pP)}}),i=W({M:X.G1,PM:!1,IM:!1,v:function(){this.sW=null,this.G=0},oM:function(f,$){return f.sW=$,f},NM:function(){return[this.sW.slice()]},T:function(f){this.G==0&&f.xc(this.sW)},l:function(f){f.gM(this.sW.length),this.sW.forEach($=>f.gM($))},o:function(f){var $=f.vM();this.sW=[];for(var h=0;h<$;h++)this.sW.push(f.vM())}});M.Pr=M.Vc||(M.Vc={PG:I,fG:a,hG:i})});function pW(){}pW.Tk=function({v:M,_E:E}){function W(){this.NE=-1,this.WM=null,this.M=0,this.U="Player",this.SG=0,this.QM=null,this.fW=!1,this.XW=null,this.pM=null,this.Ok=null,M?.call(this)}return W._E=function(I,a,i){I.M=a.M,I.U=a.U,I.SG=a.SG,I.QM=a.QM,I.fW=a.fW,E?.(I,a,i)},W.prototype={AE:function(I){return I!=this.NE&&(this.WM||(this.WM=new W),this.NE=I,W._E(this.WM,this,I)),this.WM}},W};var Ja=pW,uW=VM(function(M){var{R:E}=EWG;function W(){this.tE=0,this.U="",this.QM="",this.CG=0,this.ZG=0,this.JE=!1,this.Xa=0,this.t=0}W.prototype={o1:function(){this.U=this.U.substring(0,40),this.QM=this.QM.substring(0,3)},l:function(a){this.o1(),a.RM=!0,a.mM(this.tE),a.P1(this.U),a.P1(this.QM),a.Dk(this.CG),a.Dk(this.ZG),a.$(this.JE?1:0),a.$(this.Xa),a.$(this.t),a.RM=!1},o:function(a){a.RM=!0,this.tE=a.ZM(),this.U=a.k1(),this.QM=a.k1(),this.CG=a.Nk(),this.ZG=a.Nk(),this.JE=a.s()!=0,this.Xa=a.s(),this.t=a.s(),a.RM=!1,this.o1()}};function I(){this.H=null,this.M="",this.aM=1/0}I.prototype={copy:function(){var a=new I;a.M=this.M,a.aM=this.aM;var{H:i}=a,{H:f}=this.H;return i.tE=f.tE,i.U=f.U,i.QM=f.QM,i.CG=f.CG,i.ZG=f.ZG,i.JE=f.JE,i.Xa=f.Xa,i.t=f.t,a}},E(W,[],["version","name","flag","lat","lon","password","maxPlayers","players"],[]),E(I,[],["data","id","dist"],[]),M.Pr=M.Fc||(M.Fc={N1:W,J1:I})}),{nW:HE,LW:pE}=eM,{S:zW}=yM;function Da(M,{v:E,ma:W,ya:I,Sa:a,Bk:i,zk:f}){function $(){this.I=new M.pE(M),this.hW=[],this.HG=0,E?.call(this)}return $.prototype={MU:function(h){var N=0,o=new HE(new DataView(h.buffer),!1);W?.call(this,o),this.HG=o.qM();var J,d=EWG.SM.inflateRaw(o.XM());o=new HE(new DataView(d.buffer,d.byteOffset,d.byteLength)),I?.call(this,o,this);var w=null;for(d=o.XM(),o=new HE(new DataView(d.buffer,d.byteOffset,d.byteLength),!1),this.I.o(o);o.c<o.Q.byteLength;)J=o.vM(),N+=J,J=o.ZM(),w=zW.o(o,!0),w.G=J,w.frameNo=N,this.hW.push(w)},EU:function(){var h=pE.W(16384),N=0;this.I.l(h),this.hW.forEach(w=>{var Q=w.frameNo;Q<N||(h.gM(Q-N),N=Q,h.mM(w.G),zW.l(w,h,!0))});var o=pE.W(1e3);i?.call(this,o,this),o.FM(h.bM());var J=EWG.SM.deflateRaw(o.bM()),d=pE.W(J.byteLength+32);return a?.call(this,d),d.AM(this.HG),d.FM(J),d.bM()},WU:function(h){var{I:N,hW:o,HG:J}=this,d=h?.beginFrameNo||0;d<0&&(d=0);var w=h?.endFrameNo||J-1;if(w>=J&&(w=J-1),!(w<d)){for(var Q=0,s=0,Y=o[0];s<d;){for(;s==Y?.frameNo;)Y.T(N),Y=o[++Q];s++,N.nM(1)}o=o.filter(c=>c.frameNo>=d&&c.frameNo<=w),o.forEach(c=>{c.frameNo-=d}),this.hW=o,f?.call(this,d,w),this.HG=w-d+1}},GU:function(h){var{I:N,hW:o,HG:J}=this,d=h?.beginFrameNo||0;d<0&&(d=0);var w=h?.endFrameNo||J-1;if(w>=J&&(w=J-1),w<d)return Promise.resolve();var Q=0,s=0,Y=o[0];return new Promise((c,l)=>{var j;j=_setInterval(()=>{if(s>=d){_clearInterval(j),o=o.filter(t=>t.frameNo>=d&&t.frameNo<=w),o.forEach(t=>{t.frameNo-=d}),this.hW=o,f?.call(this,d,w),this.HG=w-d+1,c();return}for(;s==Y?.frameNo;)Y.T(N),Y=o[++Q];s++,N.nM(1)},0)})}},$}function xW(){}xW.aU=Da;var ja=xW,{S:da}=yM,{LW:uE}=eM;function Qa({v:M,Sa:E,cG:W}){function I(a){this.IU=a?.j,this.UG=uE.W(1e3),this.Ca=uE.W(16384),this.I=a;var i=this,f=a.j;a.a.l(this.Ca),a.uE=$=>{var h=a.j;i.Ca.gM(h-f),f=h,i.Ca.mM($.G),da.l($,i.Ca,!0)},M?.call(this)}return I.prototype={cG:function(){this.I.uE=null,W?.call(this),this.UG.FM(this.Ca.bM());var a=EWG.SM.deflateRaw(this.UG.bM()),i=uE.W(a.byteLength+32);return E?.call(this,i),i.AM(this.I.j-this.IU),i.FM(a),i.bM()}},I}function VW(){}VW.kU=Qa;var ra=VW;function FW(){this.ME=[]}FW.prototype={Rk:function(M){var E=0,{dM:W,WE:I}=M;this.ME.find(a=>{var i=a.dM;if(i>W)return!0;if(i==W){if(i=a.WE,i>I)return!0;i==I&&I++}E++}),M.WE=I,this.ME.splice(E,0,M)},iU:function(M){var E=this.ME.findIndex(W=>W.dM>=M);E<0?this.ME.length=0:this.ME.splice(0,E)},PU:function(M,E){var{ME:W}=this;if(W.length=0,M=M.ME,E=E.ME,M.length==0){E.forEach(N=>W.push(N));return}if(E.length==0){M.forEach(N=>W.push(N));return}for(var I=0,a=M.length,i=0,f=E.length;;){var $=M[I],h=E[i];if($.dM<=h.dM){if(W.push($),I++,I>=a){for(;i<f;)W.push(E[i++]);break}}else if(W.push(h),i++,i>=f){for(;I<a;)W.push(M[I++]);break}}},fU:function(M){var E=0,{ME:W}=this;W.forEach(I=>{I.$G!=M&&(W[E++]=I)}),W.length=E},hU:function(M){var E=this.ME.findIndex(W=>W.dM>=M);return E<0?this.ME.length:E}};var GW=FW,{CM:xE}=RM;function MG(M){this.vk=new GW,this.qG=0,this.PE=0,this.eW=new GW,this.BE=0,this._W=0,this.xE=.06,this.bk=16.666666666666668,this.P5=120,this.j=0,this.a=M,this.nk=0,this.Lk=null}MG.prototype={AW:function(){throw xE(X.bW)},cW:function(M=0){throw xE(X.bW)},LM:function(){throw xE(X.bW)},D1:function(M){this.Lk=null;for(var{ME:E}=this.eW,W=0,I=E.length,a,i=0;i<M;i++){for(;W<I&&(a=E[W],a.dM==this.j);)a.T(this.a),this.uE?.(a),this.PE++,W++;this.a.nM(1),this.qG+=this.PE,this.PE=0,this.j++}for(;W<I&&(a=E[W],!(a.dM!=this.j||a.WE!=this.PE));)a.T(this.a),this.uE?.(a),this.PE++,W++;E.splice(0,W)},u:function(M){M.dM==this.j&&M.WE<=this.PE?(M.WE=this.PE++,M.T(this.a),this.uE?.(M)):this.eW.Rk(M)},j1:function(M,E){if(M<=0)return this.a;M>this.P5&&(M=this.P5);var W=this.Lk=this.a.AE(++this.nk),I;E!=null?(this.vk.PU(this.eW,E),I=this.vk):I=this.eW,I=I.ME;for(var a=0,i=I.length,f=M|0,$=this.j,h=$+f;$<=h;$++){for(;a<i;){var N=I[a];if(N.dM>$)break;N.iW.PM&&N.T(W),a++}W.nM($!=h?1:M-f)}return this.vk.ME.length=0,W},cU:function(M){this.BE=M*this.xE|0,this.a.Xk?.(M)}};var zM=MG,{Aa:wa,CM:sa}=RM,{nW:VE,kW:ea}=eM,{S:_a}=yM;function Aa(M,{ma:E,ya:W,mW:I,tW:a}){function i(h,N,o){this.f5=0,this.pG=-1,this.UW=0,this.mk=0,this.$W=0,this.yk=0,zM.call(this,N);var J=new VE(new DataView(h.buffer),!1);E?.call(this,J),this.Sk=J.qM();var d=EWG.SM.inflateRaw(J.XM());this.uG=new VE(new DataView(d.buffer,d.byteOffset,d.byteLength)),W?.call(this,this.uG),d=this.uG.XM(),this.uG=new VE(new DataView(d.buffer,d.byteOffset,d.byteLength),!1),this.h5(),this.mk=EWG.YM.now(),this._W=-1,this.JN=o,this.xG=null,this.Ck=null}i.prototype=ea(zM.prototype,{d1:function(){var{uG:h}=this;if(h.Q.byteLength>h.c){this.yk+=h.vM();var N=h.ZM();this.Za=_a.o(h,!0),this.Za.G=N}else this.Za=null},AW:function(){},cW:function(h=0){this.LM();var N=this.a.AE(++this.nk);return N.nM(this.UW+h*this.xE|0),N},LM:function(){var h=EWG.YM.now(),N=h-this.mk;this.mk=h;var o=!1,J=!1;this.pG>=0?(this.$W+=1e4,this.$W>this.pG&&(this.$W=this.pG,this.pG=-1,o=!0)):this.$W+=N*this.f5;var d=this.Sk*this.bk;for(this.$W>d&&(this.$W=d,J=!0),N=this.$W*this.xE,d=N|0,this.UW=N-d;this.j<d;){for(;this.Za!=null&&this.yk==this.j;)this.Za.T(this.a),this.uE?.(this.Za),this.d1();this.j++,this.a.nM(1)}o&&(this.xG.mW(),this.Ck?.onDestinationTimeReached?.()),J&&(this.f5=0,this.xG.tW(),this.Ck?.onEnd?.())},Q1:function(h){this.xG.tW(),this.pG=h,this.$W>h&&this.h5()},h5:function(){this.yk=0,this.uG.c=0,this.j=0,this.$W=0,this.a.o(this.uG),this.d1()}});function f(h,N,o){var J=0,d=o?.requestAnimationFrame||EWG.Qa,w=o?.cancelAnimationFrame||EWG.LI,Q=N?.render,s=Q&&function(){h.pG>0||Q()},Y=function(){J=d(Y),h.LM(),s?.()};J=d(Y),this.tW=function(){a?.(h)},this.mW=function(){I?.(h,N)},this.kM=function(){w(J),this.tW()},this.h5=()=>{h.h5()}}function $(h,N,o){var J,d=new M.pE(M);try{J=new i(h,d,N),J.xG=new f(J,N,o)}catch(Q){throw Q instanceof wa?Q:sa(X.uP,Q)}var w={state:d,extrapolate:Q=>J.cW(Q),getSpeed:()=>J.f5,setSpeed:Q=>{J.xG.mW(),J.f5=Q},getTime:()=>J.$W,length:()=>J.bk*J.Sk,setTime:Q=>{J.Q1(Q)},getCurrentFrameNo:()=>J.j,setCurrentFrameNo:Q=>{J.Q1(J.bk*Q)},destroy:()=>{J.xG.kM()}};return Object.defineProperty(w,"gameState",{get(){return d.i}}),Object.defineProperty(w,"currentPlayerId",{get(){return J._W}}),Object.defineProperty(w,"maxFrameNo",{get(){return J.Sk}}),J.Ck=w,w}return $}function EG(){}EG.UU=Aa;var ta=EG,{aU:Ka}=ja,{kU:Ya}=ra,{UU:ga}=ta;function Ta(M,{ma:E,Sa:W,H:{v:I,ya:a,Bk:i,zk:f},$U:{v:$,cG:h},qU:{mW:N,tW:o}}){var J=Ka(M,{v:I,ma:E,Sa:W,ya:a,Bk:i,zk:f});return{lU:J,oU:Ya({v:$,Sa:W,cG:h}),NU:ga(M,{ma:E,ya:a,mW:N,tW:o}),JU:function(d){var w=new J;return w.MU(d),w},DU:function(d){return d.EU()},jU:function(d,w){d?.WU(w)},dU:function(d,w){return d?.GU(w)||Promise.resolve()}}}function WG(){}WG.Zk=Ta;var Oa=WG,{za:Ba,nW:za,LW:RW}=eM;function GG(){}GG.Hk=function(M,{v:E,_E:W,lG:I,nM:a,QU:i,rU:f}){function $(){this.NE=-1,this.WM=null,this.U="",this.t=[],this.oG=M,E?.call(this)}return $._E=function(h,N,o){if(h.U=N.U,!N.t)h.t=null;else{h.t||(h.t=[]);for(var J=h.t,d=N.t,w=d.length;J.length>w;)J.pop();for(var Q=0;Q<w;Q++)J[Q]=d[Q].AE(o)}W?.(h,N,o)},$.prototype={xc:function(h){this.t.find((N,o)=>{if(o>=h.length)return!0;N.SG=h[o]}),this.pk?.(h)},uc:function(h,N,o,J){h?.M&&(Ba(this.t,h),I?.call(this,h),this.lG?.(h,N,o,J))},wU:function(h,N,o,J,d,w){var Q=new this.oG.NG;Q.M=h,Q.U=N,Q.QM=o,Q.jM=J,Q.XW=d,Q.pM=w,this.t.push(Q),this.Ha?.(Q)},uk:function(h,N,o){var J=this.p(h);J&&(J.Ok=N,this.xk?.(h,N,o))},p:function(h){return this.t.find(N=>N.M==h)},nM:function(h){a?.call(this,h)},l:function(h){h.oE(this.U),i?.call(this,h)},o:function(h){this.U=h.lE(),f?.call(this,h)},r1:function(){var h=0,N=RW.W();for(this.l(N),N=N.i1();N.c<=N.Q.byteLength-4;)h^=N.Y();return h},DN:function(){var h=RW.W(4);return h.g(this.r1()),h.bG()},pc:function(h,N){this.w1?.(this.r1()!=new za(new DataView(h)).Y(),N)},OE:function(h){return h==0||this.p(h)?.zE},AE:function(h){return h!=this.NE&&(this.WM||(this.WM=new this.oG.pE(this.oG)),this.NE=h,$._E(this.WM,this,h)),this.WM}},$};var Ra=GG,{R:_E}=EWG,{W5:gM,G5:va,a5:ba,FI:na}=eM,sE=340282366920938463463374607431768211455n;function UE(){this.c5=!1,this.value=null,this.RE=null}UE.W=function(M,E){if(M==null)return;let W=new UE,I=M.__proto__.constructor.name;return W.c5=I=="BigInt",W.value=M,W.RE=I!=E?.__proto__.constructor.name?W.c5?sE:-1:E,W};function XM(){this.M=null,this.C=null,this.value=null}XM.W=function(M,E,W){var I=new XM;return I.M=M,I.C=E,I.value=W,I};XM.prototype={pa:function(){var M=new XM;return M.M=this.M,M.C=this.C,M.value=this.value.pa?this.value.pa():this.value,M}};function eE(){this.yW=null,this.RE=null}eE.W=function(M,E){var W=new eE;return W.yW=M,W.RE=E,W};function WE(){this.ua=null,this.Vk=null,this.JG=null,this.pM=null}WE.W=function(M,E,W,I){var a=new WE;return a.ua=M,a.Vk=E,a.JG=W,a.pM=I,a};WE.prototype={pa:function(){var M=new WE;return M.ua=this.ua,M.Vk=this.Vk,M.JG=this.JG,M.pM=this.pM,M}};function La(M){var E=[],W=1,I=new Set,a=[];this.U5=$=>{var h=M.DG.get($?.M)?.EM;if(!(!h||E.findIndex(o=>o.C==X.vG&&o.value.ua==$.M)>-1)){var N=[];return h.jG&&N.push(na(h.jG)),h.xa.forEach(o=>{N.includes(o)||N.push(o)}),N.forEach(o=>{var J=gM(o);J&&a.push(UE.W(J))}),I.add($.pM),E.push(XM.W(W,X.vG,WE.W($.M,$.name,N,$.pM))),W++}},this.s1=(...$)=>$.map(h=>{var N=typeof h;if(N=="string")h={yW:h};else if(N=="object")h={yW:h.ip,RE:h.mask};else return;var o=gM(h.yW);if(o==null)return;let J=o.__proto__.constructor.name=="BigInt";var d=gM(h.RE);o.__proto__.constructor.name!=d?.__proto__.constructor.name&&(d=J?sE:-1,h.RE=va(d));for(var w=0;w<E.length;w++){let Q=E[w];if(Q.C==X.ea&&o==gM(Q.value.yW)&&d==gM(Q.value.RE))return}return a.push(UE.W(o,d)),E.push(XM.W(W,X.ea,eE.W(h.yW,h.RE))),W++}),this.sU=(...$)=>$.map(h=>{if(!I.has(h))return E.push(XM.W(W,X._a,h)),I.add(h),W++}),this.Fk=$=>{let h=gM($);if(h==null)return!1;let N=h.__proto__.constructor.name=="BigInt";for(var o=0;o<a.length;o++){let J=a[o];if(N==J.c5&&ba(h,J.value,J.RE))return!0}return!1},this.eU=$=>I.has($);let i=($,h)=>{let N=gM($);if(N==null)return;let o=N.__proto__.constructor.name=="BigInt";var J=gM(h);J==null&&(J=o?sE:-1);let d=J==(o?sE:-1);for(var w=[],Q=0;Q<a.length;Q++){let s=a[Q];o==s.c5&&N==s.value&&J==s.RE&&w.push(Q)}for(;w.length>0;)a.splice(w.pop(),1);for(w.length=0,E.forEach((s,Y)=>{d&&s.C==X.vG&&s.value.JG.findIndex(c=>gM(c)==N)>-1?(s.C=X._a,s.value=s.value.pM):s.C==X.ea&&N==gM(s.value.yW)&&J==gM(s.value.RE)&&w.push(Y)});w.length>0;)E.splice(w.pop(),1)},f=$=>{I.delete($);var h=[],N=[];for(E.forEach((o,J)=>{o.C==X.vG&&$==o.value.pM?(N.splice(N.length,0,...o.value.JG),h.push(J)):o.C==X._a&&$==o.value&&h.push(J)});h.length>0;)E.splice(h.pop(),1);this.s1(...N)};this._U=$=>{var h=E.findIndex(J=>J.M==$);if(h<0)return!1;var{C:N,value:o}=E.splice(h,1)[0];switch(N){case X.vG:o.JG.forEach(J=>{i(J)}),f(o.pM);break;case X.ea:i(o.yW,o.RE);break;case X._a:f(o);break}return!0},this.Mi=$=>{var h=E.findIndex(o=>o.C==0&&o.value?.ua==$);if(h<0)return!1;var{value:N}=E.splice(h,1)[0];return N.JG.forEach(o=>{i(o)}),f(N.pM),!0},this.AU=()=>{I.clear(),a.length=0,E.length=0},this.tU=()=>E.map($=>$.pa())}_E(UE,[],["ipv6","value","mask"],[]);_E(XM,[],["id","type","value"],[]);_E(eE,[],["ip","mask"],[]);_E(WE,[],["pId","pName","ips","auth"],[]);var Xa=La,aG=VM(function(M){function W(I){this.$5=!0,I.e1(),this.rM=I.rM,this.SW=I.SW,this.xa=I.xa,this.jG=I.jG,this._1=EWG.YM.now(),this.A1=I.M;var a=this,i,i=function(){var f=1e4-(EWG.YM.now()-a._1);f<=0?a.kM():(EWG.qE(a.t1),a.t1=EWG.wE(i,f+1e3))};i(),this.rM.oniceconnectionstatechange=function(){var f=a.rM.iceConnectionState;f!="closed"&&f!="failed"||a.kM()},this.SW.forEach(f=>{f.onmessage=function($){a.$5&&(a._1=EWG.YM.now(),a.mG?.($.data))},f.onclose=function(){a.kM()}})}W.prototype={DE:function(I,a){if(this.$5){var i=this.SW[I];if(i.readyState=="open")try{i.send(a.bG())}catch{}}},kM:function(){EWG.qE(this.t1),this.$5&&(this.$5=!1,this.rM.close(),this.q5?.())}},M.Pr=M.KU||(M.KU={K1:[{U:"c1",Ei:!0,Wi:!0},{U:"c2",Ei:!0,Wi:!1},{U:"c3",Ei:!1,Wi:!1}],Y1:W})}),{R:ma}=EWG,{VI:ya}=eM;function $E(M,E,W){this.VG=null,this.jG=null,this.xa=[],this.g1=0,this.T1=!1,this.l5=[],this.SW=[],this.rM=E&&new EWG.wP({iceServers:E},$E.YU);var I=this;this.Gi=new Promise(a=>{I.gU=a}),this.M=M,E&&(this.rM.onicecandidate=function(a){if(!a.candidate){I.gU(I.l5);return}a=a.candidate,a.candidate&&(I.ai?.(a),I.l5.push(a))},W.forEach(a=>I.TU(a)))}$E.YU={mandatory:{OfferToReceiveAudio:!1,OfferToReceiveVideo:!1}};$E.prototype={Ii:function(M=1e4){EWG.qE(this.VG),this.VG=EWG.wE(this.o5.bind(this),M)},OU:function(M,E){var W=this;this.O1(this.rM.setRemoteDescription(M).then(()=>W.rM.createAnswer()),E,500)},BU:function(){this.O1(this.rM.createOffer(),[],1e3)},O1:function(M,E,W){var I=this;M.then(a=>I.rM.setLocalDescription(a).then(()=>a)).then(a=>(E.forEach(i=>I.B1(i)),ya(I.Gi,W).then(()=>a,()=>a))).then(a=>{I.Va(a)}).catch(()=>{I.N5()})},TU:function(M){var E=this,W={id:this.SW.length,negotiated:!0,ordered:M.Wi};M.Ei||(W.maxRetransmits=0);var I=this.rM.createDataChannel(M.U,W);I.binaryType="arraybuffer",I.onopen=function(){E.SW.find(a=>a.readyState!="open")||E.Fa?.()},I.onclose=this.N5,I.onmessage=this.N5,this.SW.push(I)},B1:function(M,E){var W=this;EWG.wE(()=>{try{W.rM?.addIceCandidate(M).catch(I=>E?.(I))}catch{}},this.g1)},o5:function(){this.N5()},N5:function(){this.FG?.(),this.kM?.()},kM:function(){if(this.rM){this.e1();var M=this.rM;this.rM=null,Promise.resolve().then(()=>M.close())}},e1:function(){EWG.qE(this.VG),this.Va=this.Fa=this.ai=this.FG=null,this.rM.onicecandidate=null,this.rM.ondatachannel=null,this.rM.onsignalingstatechange=null,this.rM.oniceconnectionstatechange=null,this.SW.forEach(M=>{M.onopen=null,M.onclose=null,M.onmessage=null})}};ma($E,[],[null,null,null,null,null,null,null,null,null,"id"],[]);var IG=$E,{S:QE}=yM,{CM:LM}=RM,{za:vW,nW:hE,LW:oM,Rc:Sa,bc:bW,pI:nW,kW:Ca,M5:Za,Ra:Ha}=eM,{PG:pa}=IW,{K1:ua,Y1:xa}=aG,Va=2e4;function Fa(M){function E(a,i){this.jE=a,this.ki=!1,this.Ma=!1,this.J5=!1,this.CW=null,this.M="",this.ii=null,this.dG=new Map,this.TE=i||"",this.MI=new Map,this.D5()}E.z1=function(a){try{if(a=a.candidate.split(" "),a[6]!="typ")throw null;if(a[7]=="srflx")return a[4]}catch{}return null},E.prototype={kM:function(){if(EWG.qE(this.ii),EWG.qE(this.Ea),this.Ea=null,EWG.da(this.R1),this.GM!=null)try{this.GM.onmessage=null,this.GM.onerror=null,this.GM.onclose=null,this.GM.onopen=null,this.GM.close(),this.GM=null}catch{}this.v1()},Pi:function(a){if(!(!this.CW&&!a)){var i=this;if(this.CW!=null&&a!=null&&this.CW.byteLength==a.byteLength){var f=new Uint8Array(this.CW),$=new Uint8Array(a);if(f.findIndex((h,N)=>h!=$[N])<0)return}this.CW=a.slice(0),this.J5=!0,this.GM!=null&&this.GM.readyState==1&&!this.Ea&&(this.fi(),this.Ea=EWG.wE(function(){i.Ea=null,i.GM.readyState==1&&i.J5&&i.fi()},1e4))}},hi:function(a){var i=this;function f(){i.GM!=null&&i.GM.readyState==1&&i.Ma!=i.ki&&i.b1(),i.n1=null}this.Ma=a,!this.n1&&(f(),this.n1=EWG.wE(f,1e3))},D5:function(a){var i=this;WW.Kk({iE:i.jE.hM.iE,TE:a||this.TE||""},(f,$)=>{if(i.jE.j5.useRecaptchaToken=null,!f||!$)throw null;EWG.gE?.sa&&(f=EWG.gE?.sa),f.endsWith("host")||(f.endsWith("/")||(f+="/"),f+="host"),i.GM=WW.l1({$1:f,TE:$,q1:M?.(i.jE.hM)||[],iE:i.jE.hM.iE,Sc:{"Cache-control":"no-cache",Pragma:"no-cache","User-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"},LG:function(){i.zU()},HE:function(h){i.EI(h.code!=4001)},XG:function(h){i.EI(!0),i.jE.hM.HE?.(LM(X.ck,h))},mG:i.ci.bind(i)})},f=>{if(!f)throw null;i.jE.j5.useRecaptchaToken=$=>{i.jE.j5.useRecaptchaToken=null,i.D5($)},i.EI(!1),i.jE.hM.HE?.(LM(X.hk,f))}).catch(function(f){i.jE.j5.useRecaptchaToken=null,i.EI(!0),i.jE.hM.HE?.(LM(X.ck,f))})},zU:function(){var a=this;this.CW!=null&&this.fi(),this.Ma!=0&&this.b1(),this.R1=EWG.nI(function(){a.RU()},4e4)},ci:function(a){var i=new hE(new DataView(a.data),!1);switch(i.s()){case 1:this.Ui(i);break;case 4:this.$i(i);break;case 5:this.vU(i);break;case 6:this.bU(i);break;case 111:this.nU(i);break}},L1:function(a,i){var f=this.MI.get(a.EM.A1);if(f)return i&&this.jE.a.uk(a.M,f),this.MI.delete(a.EM.A1),f},nU:function(a){var i=null,f;try{i=a.qM(),f=a.Ka(),i==2e9?this.jE.a.uk(0,f):this.MI.set(i,f)}catch{i!=null&&this.Wa(i,4111)}},Ui:function(a){var i=a.qM(),f=Za(a.XM(a.s()));try{a=new hE(new DataView(EWG.SM.inflateRaw(a.XM()).buffer),!1);var $=a.s()!=0,h=a.sE(),N=[];a.Ka().forEach(o=>N.push(new EWG.wa(o))),this.LU(i,f,h,N,a,$)}catch{this.Wa(i,0)}},LU:function(a,i,f,$,h,N){var o=this;if(this.dG.size>=16){this.Wa(a,4104);return}else if(this.vE.Fk(i)){this.Wa(a,4102);return}for(var J=[],d=0;d<$.length;d++){var w=E.z1($[d]);if(w!=null){if(this.vE.Fk(w)){this.Wa(a,4102);return}J.push(w)}}var Q=this.qi?.(h);if(Q!=null){this.Wa(a,Q);return}var s=new IG(a,EWG.Wk,ua);for(N&&(s.g1=2500),s.xa=J,s.jG="",d=0;d<i.length;d++)s.jG+=Ha(i.charCodeAt(d));this.dG.set(a,s),s.FG=()=>{o.KW(0,s,null),o.dG.delete(s.M),o.MI.delete(s.M)},s.Fa=()=>{o.dG.delete(s.M),o.KW(0,s,null),o.li?.(new xa(s))},s.Va=Y=>{o.oi(s,Y,s.l5,null),s.Gi.then(()=>{o.KW(0,s,null)}),s.ai=c=>{o.Ni(s,c)}},s.Ii(),s.OU(new EWG.ak({sdp:f,type:"offer"}),$)},$i:function(a){var i=a.qM(),f;try{a=new hE(new DataView(EWG.SM.inflateRaw(a.XM()).buffer),!1),f=new EWG.wa(a.Ka())}catch{return}this.XU(i,f)},XU:function(a,i){var f=this.dG.get(a);if(f){var $=E.z1(i);$!=null&&(f.xa.push($),this.vE.Fk($))||f.B1(i)}},vU:function(a){this.M=a.kG(a.s()),this.Ji?.(this.M)},bU:function(a){this.TE=a.kG(a.Q.byteLength-a.c)},KW:function(a,i,f){if(!i.T1){a==0&&(i.T1=!0);var $=oM.W(32,!1);$.$(a),$.AM(i.M),f!=null&&$.FM(EWG.SM.deflateRaw(f.bM())),this.GM.send($.iG())}},Wa:function(a,i){this.MI.delete(a);var f=oM.W(16,!1);f.$(0),f.AM(a),f.mM(i),this.GM.send(f.iG())},RU:function(){var a=oM.W(1,!1);a.$(8),this.GM.send(a.iG())},fi:function(){this.J5=!1;var a=oM.W(256,!1);a.$(7),this.CW!=null&&a.Ya(this.CW),this.GM.send(a.iG())},b1:function(){var a=oM.W(2,!1);a.$(this.jE.hM?.tE),a.$(this.Ma?1:0),this.GM.send(a.iG()),this.ki=this.Ma,this.jE.hM?._onRoomRecaptchaModeChange?.(this.Ma)},oi:function(a,i,f,$){var h=oM.W(32,!1);h.eE(i.sdp),h.ZI(f),$!=null&&h.FM($.bM()),this.KW(1,a,h)},Ni:function(a,i){var f=oM.W(32,!1);f.ZI(i),this.KW(4,a,f)},v1:function(){for(var a of this.dG)a[1].kM();this.dG.clear()},EI:function(a){this.v1(),EWG.qE(this.Ea),this.Ea=null,this.J5=!1,EWG.da(this.R1),EWG.qE(this.ii);var i=this;a&&(this.ii=EWG.wE(()=>i.D5(),Va))}};function W(a){this.X1=new Sa(15),this.Di=0,this.m1=new Map,this.mU=new bW(100,16),this.YW=!1,this.SG=0,this.EM=a;var i=oM.W(8);i.J(Math.random()),this.WI=i.bM()}W.prototype={DE:function(a,i=0){this.EM.DE(i,a)}};function I(a,i){this.j5=a,this.JE=null,this.QG=32,this.DG=new Map,this.KE=[],this.ZW=4,this.yU=600,zM.call(this,i),this.SU=1,this.y1=0,this.Ga=!1,this.d5=!0,this.GI=null,this.aa=null,this.rG=0,this.V=null,this.hM=null}return I.prototype=Ca(zM.prototype,{wG:function(a){this.rG=EWG.YM.now(),this.V=new E(this,a),this.V.vE=new Xa(this),this.V.qi=this.qi.bind(this);var i=this;this.V.li=function(f){i.li(f)},this.V.Ji=function(f){i.Ji?.(f)}},kM:function(){this.V.kM(),this.KE.forEach(({EM:a})=>{a.q5=null,a.mG=null,a.kM()}),this.hM=null},CU:function(a,i,f,$){var h=this.DG.get(a.M);if(h){$&&this.V.vE.U5(a);var N=oM.W();N.$(5),N.$($?1:0),N.eE(i),N.eE(f||""),h.DE(N),h.EM.kM()}},ZU:function(){this.V.vE.AU()&&this.hM?._onBansClear?.()},HU:function(a){this.V.vE.Mi(a)&&this.hM?._onBanClear?.(a)},pU:function(a){return this.V.vE.U5(a)},uU:function(...a){return this.V.vE.s1(...a)},xU:function(...a){return this.V.vE.sU(...a)},VU:function(a){return this.V.vE._U(a)},Pi:function(a){this.V.Pi(a)},hi:function(a){this.V.hi(a)},AW:function(a){a.dM=a.iW.IM?this.j+this.ZW+this.BE:this.j,this.u(a),this.Q5(!0),this.KE.length>0&&this.aI(this.r5(a),1)},S1:function(a,i,f){if(a.G=i,f)a.T(this.a),this.FU(a,1);else{if(this.KE.length==0)return;a.dM=a.iW.IM?this.j+this.ZW+this.BE:this.j,this.u(a),this.Q5(),this.aI(this.r5(a),1)}},ji:function(a,i,f){if(i==0){a.T(this.a);return}var $=this.DG.get(i);if($){f||(a.G=0);var h=oM.W();h.$(6),QE.l(a,h),$.DE(h,0)}},LM:function(){var a=((EWG.YM.now()-this.rG)*this.xE|0)-this.j;a>0&&this.D1(a),this.j-this.C1>=7&&this.Q5(!0),this.j-this.y1>=this.yU&&(this.Q5(!0),this.M$())},cW:function(a=0){return this.BE<0&&(this.BE=0),this.j1((EWG.YM.now()-this.rG+a)*this.xE-this.j+this.ZW+this.BE)},qi:function(a){if(!this.Ga&&this.KE.length>=this.QG)return 4100;try{if(a.ZM()!=this.hM?.tE)throw null}catch{return 4103}try{var i=a.lE();if(this.JE!=null&&i!=this.JE)throw null}catch{return 4101}},li:function(a){var i=this;if(!this.Ga&&this.KE.length>=this.QG){a.kM();return}var f=new W(a);this.KE.push(f),a.mG=h=>{i.E$(new hE(new DataView(h)),f)},a.q5=()=>{vW(i.KE,f),i.DG.delete(f.M),i.lG?.(f.M)};var $=oM.W(f.WI.byteLength+1);$.$(0),$.gM(f.WI.byteLength),$.FM(f.WI),f.DE($)},r5:function(a){var i=oM.W();return i.$(2),this.di(a,i),i},di:function(a,i){i.AM(a.dM),i.gM(a.WE),i.mM(a.G),i.AM(a.$G),QE.l(a,i)},Q5:function(a){if(!(this.j<=this.C1||this.KE.length==0)){var i=oM.W();i.$(3),i.AM(this.j),i.AM(this.qG),this.aI(i,2),a&&this.W$?.(i),this.C1=this.j}},aI:function(a,i=0){this.KE.forEach(f=>{f.YW&&f.DE(a,i)})},FU:function(a){var i=oM.W();i.$(6),QE.l(a,i);var f=this.hM.II;this.KE.forEach($=>{$.YW&&f.has($.M)&&$.DE(i,0)})},G$:function(a){var i=oM.W();i.$(1);var f=oM.W();f.mM(a.M),f.AM(this.j),f.AM(this.qG),f.gM(this.PE),this.a.l(f);var $=this;this.eW.ME.forEach(h=>{$.di(h,f)}),i.FM(EWG.SM.deflateRaw(f.bM())),a.DE(i)},a$:function(a){a.AM(this.j),a.AM(this.qG),a.gM(this.PE),this.a.l(a);var i=this;this.eW.ME.forEach(f=>{i.di(f,a)})},I$:function({M:a},i){this.a.t.forEach(f=>{f.Ok&&this.hM.setPlayerIdentity(f.M,f.Ok,a)}),i&&this.a.t.forEach(f=>{f.M!=0&&f.M!=a&&this.hM.setPlayerIdentity(a,i,f.M)})},M$:function(){if(this.y1=this.j,this.KE.length!=0){var a=oM.W();this.a.l(a);for(var i=0,f=a.i1();f.c<=f.Q.byteLength-4;)i^=f.Y();f=oM.W(4),f.g(i);var $=pa.W(f.bG(),this.hM.kI?a.bG():null);$.dM=this.j,$.WE=this.PE++,$.G=0,this.aI(this.r5($))}},k$:function(a,i){var f=this,$=a.XM(a.vM()),h=a.XM(a.vM()),N=i.WI;i.WI=null,HW.Xc($,N).catch(()=>null).then(o=>{try{if(f.V.vE.eU(o))throw LM(X.M1,o);if(f.KE.indexOf(i)<0)return;var J=f.SU++;i.M=J,f.DG.set(J,i),(f.Ha?.(J,new hE(new DataView(h.buffer,h.byteOffset,h.byteLength),!1),i.EM.jG,o)||Promise.resolve()).then(()=>{i.YW=!0,f.G$(i),EWG.wE(()=>{f.I$(i,f.V.L1(i,1))},1e3)}).catch(d=>{f.XG(i,d)})}catch(d){f.XG(i,d)}})},E$:function(a,i){this.LM();try{if(!i.mU.U1())throw LM(X.Uk,i.M);var f=a.s();if(i.YW)switch(f){case 1:this.i$(a,i);break;case 2:this.P$(a,i);break;default:throw LM(X.$k,i.M)}else if(f==0)this.k$(a,i);else throw LM(X.$k,i.M);if(a.Q.byteLength>a.c)throw LM(X.fk,i.M)}catch($){this.XG(i,$)}},XG:function(a,i){this.f$?.(i,a.M),this.V.L1(a,0),this.DG.delete(a.M),vW(this.KE,a),a.YW&&this.h$?.(a.M),a.EM.kM()},P$:function(a,i){var f=a.d(),$=this.hM?._modifyPlayerPing;$&&(i.SG=$(i.M,a.vM()));var h=oM.W();h.$(4),h.J((EWG.YM.now()-this.rG)*this.xE+this.ZW),h.J(f),i.DE(h,2)},i$:function(a,i){var f=a.qM(),$=a.qM(),h=QE.o(a),N=h.iW.w5;if(N!=null){var o=i.m1.get(N);if(o||(o=new bW(N.s5,N.e5),i.m1.set(N,o)),!o.U1())throw LM(X.Uk,i.M,h)}var J=nW(f,this.j,this.j+20);if(h.iW.IM){var d=this.j+this.ZW,w=f-d;w<-this.ZW-3?J=d:i.X1.gc(nW(w,-this.ZW,this.ZW)),J<d&&i.X1.Tc()<-.85&&(J=d),J<i.Di&&(J=i.Di),i.Di=J}h.G=i.M,h.$G=$,h.dM=J,this.hM?.c$(h,f)&&(this.u(h),this.aI(this.r5(h),1))}}),I}var MI=Fa,{eP:EI,_P:LW,AP:WI,tP:cE,kk:GI}=X,DM=X,{S:FE}=yM,{CM:TM}=RM,{nW:rE,LW:pM,vc:XW,kW:aI}=eM,{K1:II,Y1:kI}=aG,mW={4001:DM.gP,4004:DM.hk,4100:DM.TP,4101:DM.OP,4102:DM.BP,4103:DM.zP};function iI(M){function E(I,a,i,f){this.hM=I,this.YW=!1,this.iI=!1;var $=this;this.EM=new IG(0,EWG.Wk,II),this.EM.FG=function(){$.Ia(TM(DM.RP))},this.EM.Fa=function(){$.Fa?.(new kI($.EM)),$.EM=null,$.o5()},this.EM.Va=function(h){$.Z1=h;var N=EWG.gE?.sa||EWG.jP;N.endsWith("client")||(N.endsWith("/")||(N+="/"),N+="client");var o=M?.(I.hM)||[];if(I.iE||EWG.gE?.XI){var J={},d={"Cache-control":"no-cache",Pragma:"no-cache","User-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"};I.iE&&(J.agent=I.iE),EWG.gE.XI&&Object.assign(d,{Origin:(EWG.rE.zG?"https":"http")+"://"+EWG.rE.ja}),J.headers=d,$.GM=new EWG.ra(N+"?id="+a+(f==null?"":"&token="+f),o,J)}else $.GM=new EWG.ra(N+"?id="+a+(f==null?"":"&token="+f),o);$.GM.binaryType="arraybuffer",$.GM.onclose=function(w){var Q=s=>mW[s]?TM(mW[s]):TM(DM.mI,s);$.YW||$.Ia(Q(w.code))},$.GM.onerror=function(w){$.YW||$.Ia(TM(DM.yI))},$.GM.onmessage=$.ci.bind($),$.GM.onopen=function(){$.U$?.(),$.EM.Ii(),$.oi($.Z1,$.EM.l5,i),$.EM.ai=$.Ni.bind($),$.EM.Gi.then(function(){$.KW(0,null)})}},this.EM.BU()}E.prototype={$$:function(){this.Ia(TM(DM.Pk))},o5:function(){if(this.GM!=null)try{this.GM.onclose=null,this.GM.onmessage=null,this.GM.onerror=null,this.GM.onopen=null,this.GM.close(),this.GM=null}catch{}this.EM!=null&&(this.EM.kM(),this.EM=null)},Ia:function(I){this.FG?.(I),this