UNPKG

easyrlbot

Version:

A RLBot implementation in javascript with Sockets.

2 lines 157 kB
"use strict";var Zi=Object.create;var ds=Object.defineProperty;var Xi=Object.getOwnPropertyDescriptor;var Yi=Object.getOwnPropertyNames;var qi=Object.getPrototypeOf,Ji=Object.prototype.hasOwnProperty;var Pt=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),tr=(i,t)=>{for(var e in t)ds(i,e,{get:t[e],enumerable:!0})},er=(i,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Yi(t))!Ji.call(i,r)&&r!==e&&ds(i,r,{get:()=>t[r],enumerable:!(s=Xi(t,r))||s.enumerable});return i};var u=(i,t,e)=>(e=i!=null?Zi(qi(i)):{},er(t||!i||!i.__esModule?ds(e,"default",{value:i,enumerable:!0}):e,i)),$i=i=>er(ds({},"__esModule",{value:!0}),i);var ar=Pt((ca,ir)=>{var rr={};ir.exports=rr;var sr={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(sr).forEach(function(i){var t=sr[i],e=rr[i]=[];e.open="\x1B["+t[0]+"m",e.close="\x1B["+t[1]+"m"})});var nr=Pt((ha,or)=>{"use strict";or.exports=function(i,t){t=t||process.argv;var e=t.indexOf("--"),s=/^-{1,2}/.test(i)?"":"--",r=t.indexOf(s+i);return r!==-1&&(e===-1?!0:r<e)}});var lr=Pt((pa,fr)=>{"use strict";var Ki=require("os"),wt=nr(),X=process.env,Ze=void 0;wt("no-color")||wt("no-colors")||wt("color=false")?Ze=!1:(wt("color")||wt("colors")||wt("color=true")||wt("color=always"))&&(Ze=!0);"FORCE_COLOR"in X&&(Ze=X.FORCE_COLOR.length===0||parseInt(X.FORCE_COLOR,10)!==0);function Qi(i){return i===0?!1:{level:i,hasBasic:!0,has256:i>=2,has16m:i>=3}}function ta(i){if(Ze===!1)return 0;if(wt("color=16m")||wt("color=full")||wt("color=truecolor"))return 3;if(wt("color=256"))return 2;if(i&&!i.isTTY&&Ze!==!0)return 0;var t=Ze?1:0;if(process.platform==="win32"){var e=Ki.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in X)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(r){return r in X})||X.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in X)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(X.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in X){var s=parseInt((X.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(X.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(X.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(X.TERM)||"COLORTERM"in X?1:(X.TERM==="dumb",t)}function Hs(i){var t=ta(i);return Qi(t)}fr.exports={supportsColor:Hs,stdout:Hs(process.stdout),stderr:Hs(process.stderr)}});var dr=Pt((ma,ur)=>{ur.exports=function(t,e){var s="";t=t||"Run the trap, drop the bass",t=t.split("");var r={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return t.forEach(function(a){a=a.toLowerCase();var f=r[a]||[" "],d=Math.floor(Math.random()*f.length);typeof r[a]<"u"?s+=r[a][d]:s+=a}),s}});var cr=Pt((_a,br)=>{br.exports=function(t,e){t=t||" he is here ";var s={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},r=[].concat(s.up,s.down,s.mid);function a(l){var c=Math.floor(Math.random()*l);return c}function f(l){var c=!1;return r.filter(function(C){c=C===l}),c}function d(l,c){var C="",x,Et;c=c||{},c.up=typeof c.up<"u"?c.up:!0,c.mid=typeof c.mid<"u"?c.mid:!0,c.down=typeof c.down<"u"?c.down:!0,c.size=typeof c.size<"u"?c.size:"maxi",l=l.split("");for(Et in l)if(!f(Et)){switch(C=C+l[Et],x={up:0,down:0,mid:0},c.size){case"mini":x.up=a(8),x.mid=a(2),x.down=a(8);break;case"maxi":x.up=a(16)+3,x.mid=a(4)+1,x.down=a(64)+3;break;default:x.up=a(8)+1,x.mid=a(6)/2,x.down=a(8)+1;break}var jt=["up","mid","down"];for(var Ue in jt)for(var Dt=jt[Ue],We=0;We<=x[Dt];We++)c[Dt]&&(C=C+s[Dt][a(s[Dt].length)])}return C}return d(t,e)}});var pr=Pt((ya,hr)=>{hr.exports=function(i){return function(t,e,s){if(t===" ")return t;switch(e%3){case 0:return i.red(t);case 1:return i.white(t);case 2:return i.blue(t)}}}});var _r=Pt((Ba,mr)=>{mr.exports=function(i){return function(t,e,s){return e%2===0?t:i.inverse(t)}}});var Br=Pt((ga,yr)=>{yr.exports=function(i){var t=["red","yellow","green","blue","magenta"];return function(e,s,r){return e===" "?e:i[t[s++%t.length]](e)}}});var Ir=Pt((Ia,gr)=>{gr.exports=function(i){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(e,s,r){return e===" "?e:i[t[Math.round(Math.random()*(t.length-2))]](e)}}});var zs=Pt((Sa,wr)=>{var p={};wr.exports=p;p.themes={};var ea=require("util"),Nt=p.styles=ar(),Sr=Object.defineProperties,sa=new RegExp(/[\r\n]+/g);p.supportsColor=lr().supportsColor;typeof p.enabled>"u"&&(p.enabled=p.supportsColor()!==!1);p.enable=function(){p.enabled=!0};p.disable=function(){p.enabled=!1};p.stripColors=p.strip=function(i){return(""+i).replace(/\x1B\[\d+m/g,"")};var Pa=p.stylize=function(t,e){if(!p.enabled)return t+"";var s=Nt[e];return!s&&e in p?p[e](t):s.open+t+s.close},ra=/[|\\{}()[\]^$+*?.]/g,ia=function(i){if(typeof i!="string")throw new TypeError("Expected a string");return i.replace(ra,"\\$&")};function Tr(i){var t=function e(){return oa.apply(e,arguments)};return t._styles=i,t.__proto__=aa,t}var Or=function(){var i={};return Nt.grey=Nt.gray,Object.keys(Nt).forEach(function(t){Nt[t].closeRe=new RegExp(ia(Nt[t].close),"g"),i[t]={get:function(){return Tr(this._styles.concat(t))}}}),i}(),aa=Sr(function(){},Or);function oa(){var i=Array.prototype.slice.call(arguments),t=i.map(function(f){return f!=null&&f.constructor===String?f:ea.inspect(f)}).join(" ");if(!p.enabled||!t)return t;for(var e=t.indexOf(` `)!=-1,s=this._styles,r=s.length;r--;){var a=Nt[s[r]];t=a.open+t.replace(a.closeRe,a.open)+a.close,e&&(t=t.replace(sa,function(f){return a.close+f+a.open}))}return t}p.setTheme=function(i){if(typeof i=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var t in i)(function(e){p[e]=function(s){if(typeof i[e]=="object"){var r=s;for(var a in i[e])r=p[i[e][a]](r);return r}return p[i[e]](s)}})(t)};function na(){var i={};return Object.keys(Or).forEach(function(t){i[t]={get:function(){return Tr([t])}}}),i}var fa=function(t,e){var s=e.split("");return s=s.map(t),s.join("")};p.trap=dr();p.zalgo=cr();p.maps={};p.maps.america=pr()(p);p.maps.zebra=_r()(p);p.maps.rainbow=Br()(p);p.maps.random=Ir()(p);for(Pr in p.maps)(function(i){p[i]=function(t){return fa(p.maps[i],t)}})(Pr);var Pr;Sr(p,na())});var Fr=Pt((Ta,xr)=>{var j=zs();xr.exports=function(){var i=function(s,r){String.prototype.__defineGetter__(s,r)};i("strip",function(){return j.strip(this)}),i("stripColors",function(){return j.strip(this)}),i("trap",function(){return j.trap(this)}),i("zalgo",function(){return j.zalgo(this)}),i("zebra",function(){return j.zebra(this)}),i("rainbow",function(){return j.rainbow(this)}),i("random",function(){return j.random(this)}),i("america",function(){return j.america(this)});var t=Object.keys(j.styles);t.forEach(function(s){i(s,function(){return j.stylize(this,s)})});function e(s){var r=["__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","charAt","constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf","charCodeAt","indexOf","lastIndexOf","length","localeCompare","match","repeat","replace","search","slice","split","substring","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim","trimLeft","trimRight"];Object.keys(s).forEach(function(a){if(r.indexOf(a)!==-1)console.log("warn: ".red+("String.prototype"+a).magenta+" is probably something you don't want to override. Ignoring style name");else if(typeof s[a]=="string")j[a]=j[s[a]],i(a,function(){return j[a](this)});else{var f=function(d){for(var l=d||this,c=0;c<s[a].length;c++)l=j[s[a][c]](l);return l};i(a,f),j[a]=function(d){return f(d)}}})}j.setTheme=function(s){if(typeof s=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}else e(s)}}});var bs=Pt((Oa,kr)=>{var la=zs();kr.exports=la;Fr()()});var da={};tr(da,{BallInfoT:()=>qt,BallPredictionT:()=>kt,BallRigidBodyStateT:()=>te,BallState:()=>Ys,BoolT:()=>ee,BoostPadStateT:()=>re,BoostPadT:()=>se,BoostState:()=>Js,BoxShapeT:()=>Ht,CarState:()=>qs,Client:()=>Ms,Color:()=>As,ColorT:()=>ie,ConsoleCommandT:()=>ae,Controller:()=>Us,ControllerManager:()=>as,ControllerStateT:()=>oe,CylinderShapeT:()=>zt,DesiredBallStateT:()=>ue,DesiredBoostStateT:()=>de,DesiredCarStateT:()=>be,DesiredGameInfoStateT:()=>ce,DesiredGameStateT:()=>he,DesiredPhysicsT:()=>le,DropShotBallInfoT:()=>Wt,DropshotTileT:()=>pe,FieldInfoT:()=>Rt,FloatT:()=>ne,GameInfoState:()=>$s,GameInfoT:()=>_e,GameMessageWrapperT:()=>Ie,GameState:()=>Ks,GameTickPacketT:()=>vt,GoalInfoT:()=>me,HumanPlayerT:()=>Oe,LoadoutPaintT:()=>we,Manager:()=>js,MatchSettingsT:()=>Ct,MessagePacketT:()=>Le,MutatorSettingsT:()=>xe,PartyMemberBotPlayerT:()=>Fe,Physics:()=>Xs,PhysicsT:()=>Xt,PlayerConfigurationT:()=>Ce,PlayerInfoT:()=>Se,PlayerInputChangeT:()=>ye,PlayerInputT:()=>Ee,PlayerLoadoutT:()=>ve,PlayerRigidBodyStateT:()=>De,PlayerSpectateT:()=>Be,PlayerStatEventT:()=>ge,PredictionSliceT:()=>Jt,PsyonixBotPlayerT:()=>ke,QuaternionT:()=>Kt,QuickChatMessagesT:()=>Ve,QuickChatT:()=>Lt,RLBotPlayerT:()=>Re,ReadyMessageT:()=>Ae,RenderGroupT:()=>Me,RenderManager:()=>us,RenderMessageT:()=>Ge,RigidBodyStateT:()=>Qt,RigidBodyTickT:()=>je,Rotator:()=>fs,RotatorPartialT:()=>fe,RotatorT:()=>Zt,ScoreInfoT:()=>Pe,SphereShapeT:()=>Ut,TeamInfoT:()=>Te,TinyBallT:()=>Ne,TinyPacketT:()=>ze,TinyPlayerT:()=>He,TouchT:()=>Yt,Vector3:()=>Ot,quickChats:()=>Ui});module.exports=$i(da);var sb=u(bs()),Qs=u(require("net")),Gs=u(require("flatbuffers"));var Vt={};tr(Vt,{BallBouncinessOption:()=>cs,BallInfo:()=>N,BallInfoT:()=>qt,BallMaxSpeedOption:()=>hs,BallPrediction:()=>tt,BallPredictionT:()=>kt,BallRigidBodyState:()=>lt,BallRigidBodyStateT:()=>te,BallSizeOption:()=>ps,BallTypeOption:()=>ms,BallWeightOption:()=>_s,Bool:()=>xt,BoolT:()=>ee,BoostOption:()=>ys,BoostPad:()=>et,BoostPadState:()=>st,BoostPadStateT:()=>re,BoostPadT:()=>se,BoostStrengthOption:()=>Bs,BoxShape:()=>L,BoxShapeT:()=>Ht,CollisionShape:()=>Xe,Color:()=>B,ColorT:()=>ie,ConsoleCommand:()=>ut,ConsoleCommandT:()=>ae,ControllerState:()=>_,ControllerStateT:()=>oe,CylinderShape:()=>Y,CylinderShapeT:()=>zt,DemolishOption:()=>gs,DesiredBallState:()=>dt,DesiredBallStateT:()=>ue,DesiredBoostState:()=>bt,DesiredBoostStateT:()=>de,DesiredCarState:()=>J,DesiredCarStateT:()=>be,DesiredGameInfoState:()=>$,DesiredGameInfoStateT:()=>ce,DesiredGameState:()=>G,DesiredGameStateT:()=>he,DesiredPhysics:()=>A,DesiredPhysicsT:()=>le,DropShotBallInfo:()=>q,DropShotBallInfoT:()=>Wt,DropshotTile:()=>ct,DropshotTileT:()=>pe,ExistingMatchBehavior:()=>Ps,FieldInfo:()=>U,FieldInfoT:()=>Rt,Float:()=>O,FloatT:()=>ne,GameInfo:()=>P,GameInfoT:()=>_e,GameMap:()=>Ss,GameMessage:()=>Ye,GameMessageWrapper:()=>at,GameMessageWrapperT:()=>Ie,GameMode:()=>Ts,GameSpeedOption:()=>Os,GameTickPacket:()=>S,GameTickPacketT:()=>vt,GoalInfo:()=>z,GoalInfoT:()=>me,GravityOption:()=>ws,HumanPlayer:()=>ht,HumanPlayerT:()=>Oe,LoadoutPaint:()=>w,LoadoutPaintT:()=>we,MatchLength:()=>xs,MatchSettings:()=>I,MatchSettingsT:()=>Ct,MaxScore:()=>Fs,MessagePacket:()=>Z,MessagePacketT:()=>Le,MutatorSettings:()=>m,MutatorSettingsT:()=>xe,OvertimeOption:()=>ks,PartyMemberBotPlayer:()=>pt,PartyMemberBotPlayerT:()=>Fe,Physics:()=>F,PhysicsT:()=>Xt,PlayerClass:()=>qe,PlayerConfiguration:()=>M,PlayerConfigurationT:()=>Ce,PlayerInfo:()=>g,PlayerInfoT:()=>Se,PlayerInput:()=>_t,PlayerInputChange:()=>W,PlayerInputChangeT:()=>ye,PlayerInputT:()=>Ee,PlayerLoadout:()=>y,PlayerLoadoutT:()=>ve,PlayerRigidBodyState:()=>yt,PlayerRigidBodyStateT:()=>De,PlayerSpectate:()=>it,PlayerSpectateT:()=>Be,PlayerStatEvent:()=>K,PlayerStatEventT:()=>ge,PredictionSlice:()=>ft,PredictionSliceT:()=>Jt,PsyonixBotPlayer:()=>nt,PsyonixBotPlayerT:()=>ke,Quaternion:()=>$t,QuaternionT:()=>Kt,QuickChat:()=>T,QuickChatMessages:()=>St,QuickChatMessagesT:()=>Ve,QuickChatSelection:()=>Ls,QuickChatT:()=>Lt,RLBotPlayer:()=>mt,RLBotPlayerT:()=>Re,ReadyMessage:()=>R,ReadyMessageT:()=>Ae,RenderGroup:()=>Bt,RenderGroupT:()=>Me,RenderMessage:()=>v,RenderMessageT:()=>Ge,RenderType:()=>Es,RespawnTimeOption:()=>Rs,RigidBodyState:()=>E,RigidBodyStateT:()=>Qt,RigidBodyTick:()=>gt,RigidBodyTickT:()=>je,Rotator:()=>Ft,RotatorPartial:()=>rt,RotatorPartialT:()=>fe,RotatorT:()=>Zt,RumbleOption:()=>vs,ScoreInfo:()=>k,ScoreInfoT:()=>Pe,SeriesLengthOption:()=>Cs,SphereShape:()=>Q,SphereShapeT:()=>Ut,TeamInfo:()=>ot,TeamInfoT:()=>Te,TileState:()=>Is,TinyBall:()=>It,TinyBallT:()=>Ne,TinyPacket:()=>Tt,TinyPacketT:()=>ze,TinyPlayer:()=>D,TinyPlayerT:()=>He,Touch:()=>V,TouchT:()=>Yt,Vector3:()=>h,Vector3Partial:()=>H,Vector3PartialT:()=>ss,Vector3T:()=>es,unionListToCollisionShape:()=>Lr,unionListToGameMessage:()=>fi,unionListToPlayerClass:()=>gi,unionToCollisionShape:()=>ts,unionToGameMessage:()=>rs,unionToPlayerClass:()=>is});var cs=(r=>(r[r.Default=0]="Default",r[r.Low=1]="Low",r[r.High=2]="High",r[r.Super_High=3]="Super_High",r))(cs||{});var Ar=u(require("flatbuffers"));var Rr=u(require("flatbuffers")),L=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBoxShape(t,e){return(e||new L).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBoxShape(t,e){return t.setPosition(t.position()+Rr.SIZE_PREFIX_LENGTH),(e||new L).__init(t.readInt32(t.position())+t.position(),t)}length(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readFloat32(this.bb_pos+t):0}width(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readFloat32(this.bb_pos+t):0}height(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readFloat32(this.bb_pos+t):0}static startBoxShape(t){t.startObject(3)}static addLength(t,e){t.addFieldFloat32(0,e,0)}static addWidth(t,e){t.addFieldFloat32(1,e,0)}static addHeight(t,e){t.addFieldFloat32(2,e,0)}static endBoxShape(t){return t.endObject()}static createBoxShape(t,e,s,r){return L.startBoxShape(t),L.addLength(t,e),L.addWidth(t,s),L.addHeight(t,r),L.endBoxShape(t)}unpack(){return new Ht(this.length(),this.width(),this.height())}unpackTo(t){t.length=this.length(),t.width=this.width(),t.height=this.height()}},Ht=class{constructor(t=0,e=0,s=0){this.length=t;this.width=e;this.height=s}pack(t){return L.createBoxShape(t,this.length,this.width,this.height)}};var vr=u(require("flatbuffers")),Y=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsCylinderShape(t,e){return(e||new Y).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCylinderShape(t,e){return t.setPosition(t.position()+vr.SIZE_PREFIX_LENGTH),(e||new Y).__init(t.readInt32(t.position())+t.position(),t)}diameter(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readFloat32(this.bb_pos+t):0}height(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readFloat32(this.bb_pos+t):0}static startCylinderShape(t){t.startObject(2)}static addDiameter(t,e){t.addFieldFloat32(0,e,0)}static addHeight(t,e){t.addFieldFloat32(1,e,0)}static endCylinderShape(t){return t.endObject()}static createCylinderShape(t,e,s){return Y.startCylinderShape(t),Y.addDiameter(t,e),Y.addHeight(t,s),Y.endCylinderShape(t)}unpack(){return new zt(this.diameter(),this.height())}unpackTo(t){t.diameter=this.diameter(),t.height=this.height()}},zt=class{constructor(t=0,e=0){this.diameter=t;this.height=e}pack(t){return Y.createCylinderShape(t,this.diameter,this.height)}};var Cr=u(require("flatbuffers")),Q=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsSphereShape(t,e){return(e||new Q).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSphereShape(t,e){return t.setPosition(t.position()+Cr.SIZE_PREFIX_LENGTH),(e||new Q).__init(t.readInt32(t.position())+t.position(),t)}diameter(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readFloat32(this.bb_pos+t):0}static startSphereShape(t){t.startObject(1)}static addDiameter(t,e){t.addFieldFloat32(0,e,0)}static endSphereShape(t){return t.endObject()}static createSphereShape(t,e){return Q.startSphereShape(t),Q.addDiameter(t,e),Q.endSphereShape(t)}unpack(){return new Ut(this.diameter())}unpackTo(t){t.diameter=this.diameter()}},Ut=class{constructor(t=0){this.diameter=t}pack(t){return Q.createSphereShape(t,this.diameter)}};var Xe=(r=>(r[r.NONE=0]="NONE",r[r.BoxShape=1]="BoxShape",r[r.SphereShape=2]="SphereShape",r[r.CylinderShape=3]="CylinderShape",r))(Xe||{});function ts(i,t){switch(Xe[i]){case"NONE":return null;case"BoxShape":return t(new L);case"SphereShape":return t(new Q);case"CylinderShape":return t(new Y);default:return null}}function Lr(i,t,e){switch(Xe[i]){case"NONE":return null;case"BoxShape":return t(e,new L);case"SphereShape":return t(e,new Q);case"CylinderShape":return t(e,new Y);default:return null}}var Er=u(require("flatbuffers")),q=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDropShotBallInfo(t,e){return(e||new q).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDropShotBallInfo(t,e){return t.setPosition(t.position()+Er.SIZE_PREFIX_LENGTH),(e||new q).__init(t.readInt32(t.position())+t.position(),t)}absorbedForce(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readFloat32(this.bb_pos+t):0}damageIndex(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):0}forceAccumRecent(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readFloat32(this.bb_pos+t):0}static startDropShotBallInfo(t){t.startObject(3)}static addAbsorbedForce(t,e){t.addFieldFloat32(0,e,0)}static addDamageIndex(t,e){t.addFieldInt32(1,e,0)}static addForceAccumRecent(t,e){t.addFieldFloat32(2,e,0)}static endDropShotBallInfo(t){return t.endObject()}static createDropShotBallInfo(t,e,s,r){return q.startDropShotBallInfo(t),q.addAbsorbedForce(t,e),q.addDamageIndex(t,s),q.addForceAccumRecent(t,r),q.endDropShotBallInfo(t)}unpack(){return new Wt(this.absorbedForce(),this.damageIndex(),this.forceAccumRecent())}unpackTo(t){t.absorbedForce=this.absorbedForce(),t.damageIndex=this.damageIndex(),t.forceAccumRecent=this.forceAccumRecent()}},Wt=class{constructor(t=0,e=0,s=0){this.absorbedForce=t;this.damageIndex=e;this.forceAccumRecent=s}pack(t){return q.createDropShotBallInfo(t,this.absorbedForce,this.damageIndex,this.forceAccumRecent)}};var Dr=u(require("flatbuffers"));var Ft=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}pitch(){return this.bb.readFloat32(this.bb_pos)}yaw(){return this.bb.readFloat32(this.bb_pos+4)}roll(){return this.bb.readFloat32(this.bb_pos+8)}static sizeOf(){return 12}static createRotator(t,e,s,r){return t.prep(4,12),t.writeFloat32(r),t.writeFloat32(s),t.writeFloat32(e),t.offset()}unpack(){return new Zt(this.pitch(),this.yaw(),this.roll())}unpackTo(t){t.pitch=this.pitch(),t.yaw=this.yaw(),t.roll=this.roll()}},Zt=class{constructor(t=0,e=0,s=0){this.pitch=t;this.yaw=e;this.roll=s}pack(t){return Ft.createRotator(t,this.pitch,this.yaw,this.roll)}};var h=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}x(){return this.bb.readFloat32(this.bb_pos)}y(){return this.bb.readFloat32(this.bb_pos+4)}z(){return this.bb.readFloat32(this.bb_pos+8)}static sizeOf(){return 12}static createVector3(t,e,s,r){return t.prep(4,12),t.writeFloat32(r),t.writeFloat32(s),t.writeFloat32(e),t.offset()}unpack(){return new es(this.x(),this.y(),this.z())}unpackTo(t){t.x=this.x(),t.y=this.y(),t.z=this.z()}},es=class{constructor(t=0,e=0,s=0){this.x=t;this.y=e;this.z=s}pack(t){return h.createVector3(t,this.x,this.y,this.z)}};var F=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsPhysics(t,e){return(e||new F).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsPhysics(t,e){return t.setPosition(t.position()+Dr.SIZE_PREFIX_LENGTH),(e||new F).__init(t.readInt32(t.position())+t.position(),t)}location(t){let e=this.bb.__offset(this.bb_pos,4);return e?(t||new h).__init(this.bb_pos+e,this.bb):null}rotation(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new Ft).__init(this.bb_pos+e,this.bb):null}velocity(t){let e=this.bb.__offset(this.bb_pos,8);return e?(t||new h).__init(this.bb_pos+e,this.bb):null}angularVelocity(t){let e=this.bb.__offset(this.bb_pos,10);return e?(t||new h).__init(this.bb_pos+e,this.bb):null}static startPhysics(t){t.startObject(4)}static addLocation(t,e){t.addFieldStruct(0,e,0)}static addRotation(t,e){t.addFieldStruct(1,e,0)}static addVelocity(t,e){t.addFieldStruct(2,e,0)}static addAngularVelocity(t,e){t.addFieldStruct(3,e,0)}static endPhysics(t){return t.endObject()}unpack(){return new Xt(this.location()!==null?this.location().unpack():null,this.rotation()!==null?this.rotation().unpack():null,this.velocity()!==null?this.velocity().unpack():null,this.angularVelocity()!==null?this.angularVelocity().unpack():null)}unpackTo(t){t.location=this.location()!==null?this.location().unpack():null,t.rotation=this.rotation()!==null?this.rotation().unpack():null,t.velocity=this.velocity()!==null?this.velocity().unpack():null,t.angularVelocity=this.angularVelocity()!==null?this.angularVelocity().unpack():null}},Xt=class{constructor(t=null,e=null,s=null,r=null){this.location=t;this.rotation=e;this.velocity=s;this.angularVelocity=r}pack(t){return F.startPhysics(t),F.addLocation(t,this.location!==null?this.location.pack(t):0),F.addRotation(t,this.rotation!==null?this.rotation.pack(t):0),F.addVelocity(t,this.velocity!==null?this.velocity.pack(t):0),F.addAngularVelocity(t,this.angularVelocity!==null?this.angularVelocity.pack(t):0),F.endPhysics(t)}};var Vr=u(require("flatbuffers"));var V=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTouch(t,e){return(e||new V).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTouch(t,e){return t.setPosition(t.position()+Vr.SIZE_PREFIX_LENGTH),(e||new V).__init(t.readInt32(t.position())+t.position(),t)}playerName(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}gameSeconds(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readFloat32(this.bb_pos+t):0}location(t){let e=this.bb.__offset(this.bb_pos,8);return e?(t||new h).__init(this.bb_pos+e,this.bb):null}normal(t){let e=this.bb.__offset(this.bb_pos,10);return e?(t||new h).__init(this.bb_pos+e,this.bb):null}team(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt32(this.bb_pos+t):0}playerIndex(){let t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt32(this.bb_pos+t):0}static startTouch(t){t.startObject(6)}static addPlayerName(t,e){t.addFieldOffset(0,e,0)}static addGameSeconds(t,e){t.addFieldFloat32(1,e,0)}static addLocation(t,e){t.addFieldStruct(2,e,0)}static addNormal(t,e){t.addFieldStruct(3,e,0)}static addTeam(t,e){t.addFieldInt32(4,e,0)}static addPlayerIndex(t,e){t.addFieldInt32(5,e,0)}static endTouch(t){return t.endObject()}unpack(){return new Yt(this.playerName(),this.gameSeconds(),this.location()!==null?this.location().unpack():null,this.normal()!==null?this.normal().unpack():null,this.team(),this.playerIndex())}unpackTo(t){t.playerName=this.playerName(),t.gameSeconds=this.gameSeconds(),t.location=this.location()!==null?this.location().unpack():null,t.normal=this.normal()!==null?this.normal().unpack():null,t.team=this.team(),t.playerIndex=this.playerIndex()}},Yt=class{constructor(t=null,e=0,s=null,r=null,a=0,f=0){this.playerName=t;this.gameSeconds=e;this.location=s;this.normal=r;this.team=a;this.playerIndex=f}pack(t){let e=this.playerName!==null?t.createString(this.playerName):0;return V.startTouch(t),V.addPlayerName(t,e),V.addGameSeconds(t,this.gameSeconds),V.addLocation(t,this.location!==null?this.location.pack(t):0),V.addNormal(t,this.normal!==null?this.normal.pack(t):0),V.addTeam(t,this.team),V.addPlayerIndex(t,this.playerIndex),V.endTouch(t)}};var N=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBallInfo(t,e){return(e||new N).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBallInfo(t,e){return t.setPosition(t.position()+Ar.SIZE_PREFIX_LENGTH),(e||new N).__init(t.readInt32(t.position())+t.position(),t)}physics(t){let e=this.bb.__offset(this.bb_pos,4);return e?(t||new F).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}latestTouch(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new V).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dropShotInfo(t){let e=this.bb.__offset(this.bb_pos,8);return e?(t||new q).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}shapeType(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readUint8(this.bb_pos+t):0}shape(t){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__union(t,this.bb_pos+e):null}static startBallInfo(t){t.startObject(5)}static addPhysics(t,e){t.addFieldOffset(0,e,0)}static addLatestTouch(t,e){t.addFieldOffset(1,e,0)}static addDropShotInfo(t,e){t.addFieldOffset(2,e,0)}static addShapeType(t,e){t.addFieldInt8(3,e,0)}static addShape(t,e){t.addFieldOffset(4,e,0)}static endBallInfo(t){return t.endObject()}unpack(){return new qt(this.physics()!==null?this.physics().unpack():null,this.latestTouch()!==null?this.latestTouch().unpack():null,this.dropShotInfo()!==null?this.dropShotInfo().unpack():null,this.shapeType(),(()=>{let t=ts(this.shapeType(),this.shape.bind(this));return t===null?null:t.unpack()})())}unpackTo(t){t.physics=this.physics()!==null?this.physics().unpack():null,t.latestTouch=this.latestTouch()!==null?this.latestTouch().unpack():null,t.dropShotInfo=this.dropShotInfo()!==null?this.dropShotInfo().unpack():null,t.shapeType=this.shapeType(),t.shape=(()=>{let e=ts(this.shapeType(),this.shape.bind(this));return e===null?null:e.unpack()})()}},qt=class{constructor(t=null,e=null,s=null,r=0,a=null){this.physics=t;this.latestTouch=e;this.dropShotInfo=s;this.shapeType=r;this.shape=a}pack(t){let e=this.physics!==null?this.physics.pack(t):0,s=this.latestTouch!==null?this.latestTouch.pack(t):0,r=this.dropShotInfo!==null?this.dropShotInfo.pack(t):0,a=t.createObjectOffset(this.shape);return N.startBallInfo(t),N.addPhysics(t,e),N.addLatestTouch(t,s),N.addDropShotInfo(t,r),N.addShapeType(t,this.shapeType),N.addShape(t,a),N.endBallInfo(t)}};var hs=(r=>(r[r.Default=0]="Default",r[r.Slow=1]="Slow",r[r.Fast=2]="Fast",r[r.Super_Fast=3]="Super_Fast",r))(hs||{});var Mr=u(require("flatbuffers"));var Gr=u(require("flatbuffers"));var ft=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsPredictionSlice(t,e){return(e||new ft).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsPredictionSlice(t,e){return t.setPosition(t.position()+Gr.SIZE_PREFIX_LENGTH),(e||new ft).__init(t.readInt32(t.position())+t.position(),t)}gameSeconds(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readFloat32(this.bb_pos+t):0}physics(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new F).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startPredictionSlice(t){t.startObject(2)}static addGameSeconds(t,e){t.addFieldFloat32(0,e,0)}static addPhysics(t,e){t.addFieldOffset(1,e,0)}static endPredictionSlice(t){return t.endObject()}unpack(){return new Jt(this.gameSeconds(),this.physics()!==null?this.physics().unpack():null)}unpackTo(t){t.gameSeconds=this.gameSeconds(),t.physics=this.physics()!==null?this.physics().unpack():null}},Jt=class{constructor(t=0,e=null){this.gameSeconds=t;this.physics=e}pack(t){let e=this.physics!==null?this.physics.pack(t):0;return ft.startPredictionSlice(t),ft.addGameSeconds(t,this.gameSeconds),ft.addPhysics(t,e),ft.endPredictionSlice(t)}};var tt=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBallPrediction(t,e){return(e||new tt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBallPrediction(t,e){return t.setPosition(t.position()+Mr.SIZE_PREFIX_LENGTH),(e||new tt).__init(t.readInt32(t.position())+t.position(),t)}slices(t,e){let s=this.bb.__offset(this.bb_pos,4);return s?(e||new ft).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}slicesLength(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}static startBallPrediction(t){t.startObject(1)}static addSlices(t,e){t.addFieldOffset(0,e,0)}static createSlicesVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startSlicesVector(t,e){t.startVector(4,e,4)}static endBallPrediction(t){return t.endObject()}static createBallPrediction(t,e){return tt.startBallPrediction(t),tt.addSlices(t,e),tt.endBallPrediction(t)}unpack(){return new kt(this.bb.createObjList(this.slices.bind(this),this.slicesLength()))}unpackTo(t){t.slices=this.bb.createObjList(this.slices.bind(this),this.slicesLength())}},kt=class{constructor(t=[]){this.slices=t}pack(t){let e=tt.createSlicesVector(t,t.createObjectOffsetList(this.slices));return tt.createBallPrediction(t,e)}};var Nr=u(require("flatbuffers"));var jr=u(require("flatbuffers"));var $t=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}x(){return this.bb.readFloat32(this.bb_pos)}y(){return this.bb.readFloat32(this.bb_pos+4)}z(){return this.bb.readFloat32(this.bb_pos+8)}w(){return this.bb.readFloat32(this.bb_pos+12)}static sizeOf(){return 16}static createQuaternion(t,e,s,r,a){return t.prep(4,16),t.writeFloat32(a),t.writeFloat32(r),t.writeFloat32(s),t.writeFloat32(e),t.offset()}unpack(){return new Kt(this.x(),this.y(),this.z(),this.w())}unpackTo(t){t.x=this.x(),t.y=this.y(),t.z=this.z(),t.w=this.w()}},Kt=class{constructor(t=0,e=0,s=0,r=0){this.x=t;this.y=e;this.z=s;this.w=r}pack(t){return $t.createQuaternion(t,this.x,this.y,this.z,this.w)}};var E=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsRigidBodyState(t,e){return(e||new E).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsRigidBodyState(t,e){return t.setPosition(t.position()+jr.SIZE_PREFIX_LENGTH),(e||new E).__init(t.readInt32(t.position())+t.position(),t)}frame(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}location(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new h).__init(this.bb_pos+e,this.bb):null}rotation(t){let e=this.bb.__offset(this.bb_pos,8);return e?(t||new $t).__init(this.bb_pos+e,this.bb):null}velocity(t){let e=this.bb.__offset(this.bb_pos,10);return e?(t||new h).__init(this.bb_pos+e,this.bb):null}angularVelocity(t){let e=this.bb.__offset(this.bb_pos,12);return e?(t||new h).__init(this.bb_pos+e,this.bb):null}static startRigidBodyState(t){t.startObject(5)}static addFrame(t,e){t.addFieldInt32(0,e,0)}static addLocation(t,e){t.addFieldStruct(1,e,0)}static addRotation(t,e){t.addFieldStruct(2,e,0)}static addVelocity(t,e){t.addFieldStruct(3,e,0)}static addAngularVelocity(t,e){t.addFieldStruct(4,e,0)}static endRigidBodyState(t){return t.endObject()}unpack(){return new Qt(this.frame(),this.location()!==null?this.location().unpack():null,this.rotation()!==null?this.rotation().unpack():null,this.velocity()!==null?this.velocity().unpack():null,this.angularVelocity()!==null?this.angularVelocity().unpack():null)}unpackTo(t){t.frame=this.frame(),t.location=this.location()!==null?this.location().unpack():null,t.rotation=this.rotation()!==null?this.rotation().unpack():null,t.velocity=this.velocity()!==null?this.velocity().unpack():null,t.angularVelocity=this.angularVelocity()!==null?this.angularVelocity().unpack():null}},Qt=class{constructor(t=0,e=null,s=null,r=null,a=null){this.frame=t;this.location=e;this.rotation=s;this.velocity=r;this.angularVelocity=a}pack(t){return E.startRigidBodyState(t),E.addFrame(t,this.frame),E.addLocation(t,this.location!==null?this.location.pack(t):0),E.addRotation(t,this.rotation!==null?this.rotation.pack(t):0),E.addVelocity(t,this.velocity!==null?this.velocity.pack(t):0),E.addAngularVelocity(t,this.angularVelocity!==null?this.angularVelocity.pack(t):0),E.endRigidBodyState(t)}};var lt=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBallRigidBodyState(t,e){return(e||new lt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBallRigidBodyState(t,e){return t.setPosition(t.position()+Nr.SIZE_PREFIX_LENGTH),(e||new lt).__init(t.readInt32(t.position())+t.position(),t)}state(t){let e=this.bb.__offset(this.bb_pos,4);return e?(t||new E).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startBallRigidBodyState(t){t.startObject(1)}static addState(t,e){t.addFieldOffset(0,e,0)}static endBallRigidBodyState(t){return t.endObject()}static createBallRigidBodyState(t,e){return lt.startBallRigidBodyState(t),lt.addState(t,e),lt.endBallRigidBodyState(t)}unpack(){return new te(this.state()!==null?this.state().unpack():null)}unpackTo(t){t.state=this.state()!==null?this.state().unpack():null}},te=class{constructor(t=null){this.state=t}pack(t){let e=this.state!==null?this.state.pack(t):0;return lt.createBallRigidBodyState(t,e)}};var ps=(r=>(r[r.Default=0]="Default",r[r.Small=1]="Small",r[r.Large=2]="Large",r[r.Gigantic=3]="Gigantic",r))(ps||{});var ms=(r=>(r[r.Default=0]="Default",r[r.Cube=1]="Cube",r[r.Puck=2]="Puck",r[r.Basketball=3]="Basketball",r))(ms||{});var _s=(r=>(r[r.Default=0]="Default",r[r.Light=1]="Light",r[r.Heavy=2]="Heavy",r[r.Super_Light=3]="Super_Light",r))(_s||{});var xt=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}val(){return!!this.bb.readInt8(this.bb_pos)}static sizeOf(){return 1}static createBool(t,e){return t.prep(1,1),t.writeInt8(+e),t.offset()}unpack(){return new ee(this.val())}unpackTo(t){t.val=this.val()}},ee=class{constructor(t=!1){this.val=t}pack(t){return xt.createBool(t,this.val)}};var ys=(a=>(a[a.Normal_Boost=0]="Normal_Boost",a[a.Unlimited_Boost=1]="Unlimited_Boost",a[a.Slow_Recharge=2]="Slow_Recharge",a[a.Rapid_Recharge=3]="Rapid_Recharge",a[a.No_Boost=4]="No_Boost",a))(ys||{});var Hr=u(require("flatbuffers"));var et=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBoostPad(t,e){return(e||new et).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBoostPad(t,e){return t.setPosition(t.position()+Hr.SIZE_PREFIX_LENGTH),(e||new et).__init(t.readInt32(t.position())+t.position(),t)}location(t){let e=this.bb.__offset(this.bb_pos,4);return e?(t||new h).__init(this.bb_pos+e,this.bb):null}isFullBoost(){let t=this.bb.__offset(this.bb_pos,6);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startBoostPad(t){t.startObject(2)}static addLocation(t,e){t.addFieldStruct(0,e,0)}static addIsFullBoost(t,e){t.addFieldInt8(1,+e,0)}static endBoostPad(t){return t.endObject()}static createBoostPad(t,e,s){return et.startBoostPad(t),et.addLocation(t,e),et.addIsFullBoost(t,s),et.endBoostPad(t)}unpack(){return new se(this.location()!==null?this.location().unpack():null,this.isFullBoost())}unpackTo(t){t.location=this.location()!==null?this.location().unpack():null,t.isFullBoost=this.isFullBoost()}},se=class{constructor(t=null,e=!1){this.location=t;this.isFullBoost=e}pack(t){return et.createBoostPad(t,this.location!==null?this.location.pack(t):0,this.isFullBoost)}};var zr=u(require("flatbuffers")),st=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBoostPadState(t,e){return(e||new st).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBoostPadState(t,e){return t.setPosition(t.position()+zr.SIZE_PREFIX_LENGTH),(e||new st).__init(t.readInt32(t.position())+t.position(),t)}isActive(){let t=this.bb.__offset(this.bb_pos,4);return t?!!this.bb.readInt8(this.bb_pos+t):!1}timer(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readFloat32(this.bb_pos+t):0}static startBoostPadState(t){t.startObject(2)}static addIsActive(t,e){t.addFieldInt8(0,+e,0)}static addTimer(t,e){t.addFieldFloat32(1,e,0)}static endBoostPadState(t){return t.endObject()}static createBoostPadState(t,e,s){return st.startBoostPadState(t),st.addIsActive(t,e),st.addTimer(t,s),st.endBoostPadState(t)}unpack(){return new re(this.isActive(),this.timer())}unpackTo(t){t.isActive=this.isActive(),t.timer=this.timer()}},re=class{constructor(t=!1,e=0){this.isActive=t;this.timer=e}pack(t){return st.createBoostPadState(t,this.isActive,this.timer)}};var Bs=(r=>(r[r.One=0]="One",r[r.OneAndAHalf=1]="OneAndAHalf",r[r.Two=2]="Two",r[r.Ten=3]="Ten",r))(Bs||{});var Ur=u(require("flatbuffers")),B=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsColor(t,e){return(e||new B).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsColor(t,e){return t.setPosition(t.position()+Ur.SIZE_PREFIX_LENGTH),(e||new B).__init(t.readInt32(t.position())+t.position(),t)}a(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint8(this.bb_pos+t):0}r(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint8(this.bb_pos+t):0}g(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint8(this.bb_pos+t):0}b(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readUint8(this.bb_pos+t):0}static startColor(t){t.startObject(4)}static addA(t,e){t.addFieldInt8(0,e,0)}static addR(t,e){t.addFieldInt8(1,e,0)}static addG(t,e){t.addFieldInt8(2,e,0)}static addB(t,e){t.addFieldInt8(3,e,0)}static endColor(t){return t.endObject()}static createColor(t,e,s,r,a){return B.startColor(t),B.addA(t,e),B.addR(t,s),B.addG(t,r),B.addB(t,a),B.endColor(t)}unpack(){return new ie(this.a(),this.r(),this.g(),this.b())}unpackTo(t){t.a=this.a(),t.r=this.r(),t.g=this.g(),t.b=this.b()}},ie=class{constructor(t=0,e=0,s=0,r=0){this.a=t;this.r=e;this.g=s;this.b=r}pack(t){return B.createColor(t,this.a,this.r,this.g,this.b)}};var Wr=u(require("flatbuffers")),ut=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsConsoleCommand(t,e){return(e||new ut).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsConsoleCommand(t,e){return t.setPosition(t.position()+Wr.SIZE_PREFIX_LENGTH),(e||new ut).__init(t.readInt32(t.position())+t.position(),t)}command(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}static startConsoleCommand(t){t.startObject(1)}static addCommand(t,e){t.addFieldOffset(0,e,0)}static endConsoleCommand(t){return t.endObject()}static createConsoleCommand(t,e){return ut.startConsoleCommand(t),ut.addCommand(t,e),ut.endConsoleCommand(t)}unpack(){return new ae(this.command())}unpackTo(t){t.command=this.command()}},ae=class{constructor(t=null){this.command=t}pack(t){let e=this.command!==null?t.createString(this.command):0;return ut.createConsoleCommand(t,e)}};var Zr=u(require("flatbuffers")),_=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsControllerState(t,e){return(e||new _).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsControllerState(t,e){return t.setPosition(t.position()+Zr.SIZE_PREFIX_LENGTH),(e||new _).__init(t.readInt32(t.position())+t.position(),t)}throttle(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readFloat32(this.bb_pos+t):0}steer(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readFloat32(this.bb_pos+t):0}pitch(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readFloat32(this.bb_pos+t):0}yaw(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readFloat32(this.bb_pos+t):0}roll(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readFloat32(this.bb_pos+t):0}jump(){let t=this.bb.__offset(this.bb_pos,14);return t?!!this.bb.readInt8(this.bb_pos+t):!1}boost(){let t=this.bb.__offset(this.bb_pos,16);return t?!!this.bb.readInt8(this.bb_pos+t):!1}handbrake(){let t=this.bb.__offset(this.bb_pos,18);return t?!!this.bb.readInt8(this.bb_pos+t):!1}useItem(){let t=this.bb.__offset(this.bb_pos,20);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startControllerState(t){t.startObject(9)}static addThrottle(t,e){t.addFieldFloat32(0,e,0)}static addSteer(t,e){t.addFieldFloat32(1,e,0)}static addPitch(t,e){t.addFieldFloat32(2,e,0)}static addYaw(t,e){t.addFieldFloat32(3,e,0)}static addRoll(t,e){t.addFieldFloat32(4,e,0)}static addJump(t,e){t.addFieldInt8(5,+e,0)}static addBoost(t,e){t.addFieldInt8(6,+e,0)}static addHandbrake(t,e){t.addFieldInt8(7,+e,0)}static addUseItem(t,e){t.addFieldInt8(8,+e,0)}static endControllerState(t){return t.endObject()}static createControllerState(t,e,s,r,a,f,d,l,c,C){return _.startControllerState(t),_.addThrottle(t,e),_.addSteer(t,s),_.addPitch(t,r),_.addYaw(t,a),_.addRoll(t,f),_.addJump(t,d),_.addBoost(t,l),_.addHandbrake(t,c),_.addUseItem(t,C),_.endControllerState(t)}unpack(){return new oe(this.throttle(),this.steer(),this.pitch(),this.yaw(),this.roll(),this.jump(),this.boost(),this.handbrake(),this.useItem())}unpackTo(t){t.throttle=this.throttle(),t.steer=this.steer(),t.pitch=this.pitch(),t.yaw=this.yaw(),t.roll=this.roll(),t.jump=this.jump(),t.boost=this.boost(),t.handbrake=this.handbrake(),t.useItem=this.useItem()}},oe=class{constructor(t=0,e=0,s=0,r=0,a=0,f=!1,d=!1,l=!1,c=!1){this.throttle=t;this.steer=e;this.pitch=s;this.yaw=r;this.roll=a;this.jump=f;this.boost=d;this.handbrake=l;this.useItem=c}pack(t){return _.createControllerState(t,this.throttle,this.steer,this.pitch,this.yaw,this.roll,this.jump,this.boost,this.handbrake,this.useItem)}};var gs=(a=>(a[a.Default=0]="Default",a[a.Disabled=1]="Disabled",a[a.Friendly_Fire=2]="Friendly_Fire",a[a.On_Contact=3]="On_Contact",a[a.On_Contact_FF=4]="On_Contact_FF",a))(gs||{});var Jr=u(require("flatbuffers"));var qr=u(require("flatbuffers"));var Xr=u(require("flatbuffers"));var O=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}val(){return this.bb.readFloat32(this.bb_pos)}static sizeOf(){return 4}static createFloat(t,e){return t.prep(4,4),t.writeFloat32(e),t.offset()}unpack(){return new ne(this.val())}unpackTo(t){t.val=this.val()}},ne=class{constructor(t=0){this.val=t}pack(t){return O.createFloat(t,this.val)}};var rt=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsRotatorPartial(t,e){return(e||new rt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsRotatorPartial(t,e){return t.setPosition(t.position()+Xr.SIZE_PREFIX_LENGTH),(e||new rt).__init(t.readInt32(t.position())+t.position(),t)}pitch(t){let e=this.bb.__offset(this.bb_pos,4);return e?(t||new O).__init(this.bb_pos+e,this.bb):null}yaw(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new O).__init(this.bb_pos+e,this.bb):null}roll(t){let e=this.bb.__offset(this.bb_pos,8);return e?(t||new O).__init(this.bb_pos+e,this.bb):null}static startRotatorPartial(t){t.startObject(3)}static addPitch(t,e){t.addFieldStruct(0,e,0)}static addYaw(t,e){t.addFieldStruct(1,e,0)}static addRoll(t,e){t.addFieldStruct(2,e,0)}static endRotatorPartial(t){return t.endObject()}unpack(){return new fe(this.pitch()!==null?this.pitch().unpack():null,this.yaw()!==null?this.yaw().unpack():null,this.roll()!==null?this.roll().unpack():null)}unpackTo(t){t.pitch=this.pitch()!==null?this.pitch().unpack():null,t.yaw=this.yaw()!==null?this.yaw().unpack():null,t.roll=this.roll()!==null?this.roll().unpack():null}},fe=class{constructor(t=null,e=null,s=null){this.pitch=t;this.yaw=e;this.roll=s}pack(t){return rt.startRotatorPartial(t),rt.addPitch(t,this.pitch!==null?this.pitch.pack(t):0),rt.addYaw(t,this.yaw!==null?this.yaw.pack(t):0),rt.addRoll(t,this.roll!==null?this.roll.pack(t):0),rt.endRotatorPartial(t)}};var Yr=u(require("flatbuffers"));var H=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsVector3Partial(t,e){return(e||new H).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsVector3Partial(t,e){return t.setPosition(t.position()+Yr.SIZE_PREFIX_LENGTH),(e||new H).__init(t.readInt32(t.position())+t.position(),t)}x(t){let e=this.bb.__offset(this.bb_pos,4);return e?(t||new O).__init(this.bb_pos+e,this.bb):null}y(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new O).__init(this.bb_pos+e,this.bb):null}z(t){let e=this.bb.__offset(this.bb_pos,8);return e?(t||new O).__init(this.bb_pos+e,this.bb):null}static startVector3Partial(t){t.startObject(3)}static addX(t,e){t.addFieldStruct(0,e,0)}static addY(t,e){t.addFieldStruct(1,e,0)}static addZ(t,e){t.addFieldStruct(2,e,0)}static endVector3Partial(t){return t.endObject()}unpack(){return new ss(this.x()!==null?this.x().unpack():null,this.y()!==null?this.y().unpack():null,this.z()!==null?this.z().unpack():null)}unpackTo(t){t.x=this.x()!==null?this.x().unpack():null,t.y=this.y()!==null?this.y().unpack():null,t.z=this.z()!==null?this.z().unpack():null}},ss=class{constructor(t=null,e=null,s=null){this.x=t;this.y=e;this.z=s}pack(t){return H.startVector3Partial(t),H.addX(t,this.x!==null?this.x.pack(t):0),H.addY(t,this.y!==null?this.y.pack(t):0),H.addZ(t,this.z!==null?this.z.pack(t):0),H.endVector3Partial(t)}};var A=class{constructor(){this.bb=null;this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDesiredPhysics(t,e){return(e||new A).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDesiredPhysics(t,e){return t.setPosition(t.position()+qr.SIZE_PREFIX_LENGTH),(e||new A).__init(t.readInt32(t.position())+t.position(),t)}location(t){let e=this.bb.__offset(this.bb_pos,4);return e?(t||new H).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}rotation(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new rt).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}velocity(t){let e=this.bb.__offset(this.bb_pos,8);return e?(t||new H).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}angularVelocity(t){let e=this.bb.__offset(this.bb_pos,10);return e?(t||new H).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startDesiredPhysics(t){t.startObject(4)}static addLocation(t,e){t.addFieldOffset(0,e,0)}static addRotation(t,e){t.addFieldOffset(1,e,0)}static addVelocity(t,e){t.addFieldOffset(2,e,0)}static addAngularVelocity(t,e){t.addFieldOffset(3,e,0)}static endDesiredPhysics(t){return t.endObject()}unpack(){return new le(this.location()!==null?this.location().unpack():nul