-
Notifications
You must be signed in to change notification settings - Fork 10
/
protocol.js
1 lines (1 loc) · 178 KB
/
protocol.js
1
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=567)}({112:function(e,t,n){"use strict";e.exports=n(253)},135:function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},170:function(e,t,n){"use strict";e.exports=p;var r,o=n(81),i=o.LongBits,s=o.base64,l=o.utf8;function u(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function a(){}function c(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function p(){this.len=0,this.head=new u(a,0,0),this.tail=this.head,this.states=null}var f=function(){return o.Buffer?function(){return(p.create=function(){return new r})()}:function(){return new p}};function y(e,t,n){t[n]=255&e}function d(e,t){this.len=e,this.next=void 0,this.val=t}function h(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function m(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}p.create=f(),p.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(p.alloc=o.pool(p.alloc,o.Array.prototype.subarray)),p.prototype._push=function(e,t,n){return this.tail=this.tail.next=new u(e,t,n),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(h,10,i.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=i.from(e);return this._push(h,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(h,t.length(),t)},p.prototype.bool=function(e){return this._push(y,1,e?1:0)},p.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=i.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var b=o.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r<e.length;++r)t[n+r]=e[r]};p.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(y,1,0);if(o.isString(e)){var n=p.alloc(t=s.length(e));s.decode(e,n,0),e=n}return this.uint32(t)._push(b,t,e)},p.prototype.string=function(e){var t=l.length(e);return t?this.uint32(t)._push(l.write,t,e):this._push(y,1,0)},p.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new u(a,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(a,0,0),this.len=0),this},p.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},p.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},p._configure=function(e){r=e,p.create=f(),r._configure()}},171:function(e,t,n){"use strict";e.exports=u;var r,o=n(81),i=o.LongBits,s=o.utf8;function l(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var a,c="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},p=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new r(e):c(e)})(e)}:c};function f(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw l(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw l(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function y(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw l(this,8);return new i(y(this.buf,this.pos+=4),y(this.buf,this.pos+=4))}u.create=p(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(a=4294967295,function(){if(a=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return a;if((this.pos+=5)>this.len)throw this.pos=this.len,l(this,10);return a}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw l(this,4);return y(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw l(this,4);return 0|y(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw l(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw l(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw l(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw l(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw l(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){r=e,u.create=p(),r._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return f.call(this)[t](!1)},uint64:function(){return f.call(this)[t](!0)},sint64:function(){return f.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},177:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serialize=t.deserialize=t.registerSerializer=void 0;const r=n(277);let o=r.DefaultSerializer;t.registerSerializer=function(e){o=r.extendSerializer(o,e)},t.deserialize=function(e){return o.deserialize(e)},t.serialize=function(e){return o.serialize(e)}},178:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transfer=t.isTransferDescriptor=void 0;const r=n(278);t.isTransferDescriptor=function(e){return e&&"object"==typeof e&&e[r.$transferable]},t.Transfer=function(e,t){if(!t){if(!(n=e)||"object"!=typeof n)throw Error();t=[e]}var n;return{[r.$transferable]:!0,send:e,transferables:t}}},179:function(e,t,n){"use strict";const r=n(194).default;e.exports=e=>Boolean(e&&e[r]&&e===e[r]())},183:function(e,t,n){var r,o,i;o=[n(112)],void 0===(i="function"==typeof(r=function(e){"use strict";var t=e.Reader,n=e.Writer,r=e.util,o=e.roots.default||(e.roots.default={});return o.LoginRequest=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.name="",i.prototype.protocol=0,i.prototype.onlinePlayers=0,i.prototype.maxPlayers=0,i.prototype.motd="",i.prototype.software="",i.prototype.auth=!1,i.prototype.secret="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.protocol&&Object.hasOwnProperty.call(e,"protocol")&&t.uint32(16).uint32(e.protocol),null!=e.onlinePlayers&&Object.hasOwnProperty.call(e,"onlinePlayers")&&t.uint32(24).uint32(e.onlinePlayers),null!=e.maxPlayers&&Object.hasOwnProperty.call(e,"maxPlayers")&&t.uint32(32).uint32(e.maxPlayers),null!=e.motd&&Object.hasOwnProperty.call(e,"motd")&&t.uint32(42).string(e.motd),null!=e.software&&Object.hasOwnProperty.call(e,"software")&&t.uint32(50).string(e.software),null!=e.auth&&Object.hasOwnProperty.call(e,"auth")&&t.uint32(56).bool(e.auth),null!=e.secret&&Object.hasOwnProperty.call(e,"secret")&&t.uint32(66).string(e.secret),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.LoginRequest;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.name=e.string();break;case 2:i.protocol=e.uint32();break;case 3:i.onlinePlayers=e.uint32();break;case 4:i.maxPlayers=e.uint32();break;case 5:i.motd=e.string();break;case 6:i.software=e.string();break;case 7:i.auth=e.bool();break;case 8:i.secret=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!r.isString(e.name)?"name: string expected":null!=e.protocol&&e.hasOwnProperty("protocol")&&!r.isInteger(e.protocol)?"protocol: integer expected":null!=e.onlinePlayers&&e.hasOwnProperty("onlinePlayers")&&!r.isInteger(e.onlinePlayers)?"onlinePlayers: integer expected":null!=e.maxPlayers&&e.hasOwnProperty("maxPlayers")&&!r.isInteger(e.maxPlayers)?"maxPlayers: integer expected":null!=e.motd&&e.hasOwnProperty("motd")&&!r.isString(e.motd)?"motd: string expected":null!=e.software&&e.hasOwnProperty("software")&&!r.isString(e.software)?"software: string expected":null!=e.auth&&e.hasOwnProperty("auth")&&"boolean"!=typeof e.auth?"auth: boolean expected":null!=e.secret&&e.hasOwnProperty("secret")&&!r.isString(e.secret)?"secret: string expected":null},i.fromObject=function(e){if(e instanceof o.LoginRequest)return e;var t=new o.LoginRequest;return null!=e.name&&(t.name=String(e.name)),null!=e.protocol&&(t.protocol=e.protocol>>>0),null!=e.onlinePlayers&&(t.onlinePlayers=e.onlinePlayers>>>0),null!=e.maxPlayers&&(t.maxPlayers=e.maxPlayers>>>0),null!=e.motd&&(t.motd=String(e.motd)),null!=e.software&&(t.software=String(e.software)),null!=e.auth&&(t.auth=Boolean(e.auth)),null!=e.secret&&(t.secret=String(e.secret)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.name="",n.protocol=0,n.onlinePlayers=0,n.maxPlayers=0,n.motd="",n.software="",n.auth=!1,n.secret=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.protocol&&e.hasOwnProperty("protocol")&&(n.protocol=e.protocol),null!=e.onlinePlayers&&e.hasOwnProperty("onlinePlayers")&&(n.onlinePlayers=e.onlinePlayers),null!=e.maxPlayers&&e.hasOwnProperty("maxPlayers")&&(n.maxPlayers=e.maxPlayers),null!=e.motd&&e.hasOwnProperty("motd")&&(n.motd=e.motd),null!=e.software&&e.hasOwnProperty("software")&&(n.software=e.software),null!=e.auth&&e.hasOwnProperty("auth")&&(n.auth=e.auth),null!=e.secret&&e.hasOwnProperty("secret")&&(n.secret=e.secret),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.LoginStatus=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.message="",i.prototype.time=r.Long?r.Long.fromBits(0,0,!0):0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(10).string(e.message),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&t.uint32(16).uint64(e.time),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.LoginStatus;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.message=e.string();break;case 2:i.time=e.uint64();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.message&&e.hasOwnProperty("message")&&!r.isString(e.message)?"message: string expected":null!=e.time&&e.hasOwnProperty("time")&&!(r.isInteger(e.time)||e.time&&r.isInteger(e.time.low)&&r.isInteger(e.time.high))?"time: integer|Long expected":null},i.fromObject=function(e){if(e instanceof o.LoginStatus)return e;var t=new o.LoginStatus;return null!=e.message&&(t.message=String(e.message)),null!=e.time&&(r.Long?(t.time=r.Long.fromValue(e.time)).unsigned=!0:"string"==typeof e.time?t.time=parseInt(e.time,10):"number"==typeof e.time?t.time=e.time:"object"==typeof e.time&&(t.time=new r.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber(!0))),t},i.toObject=function(e,t){t||(t={});var n={};if(t.defaults)if(n.message="",r.Long){var o=new r.Long(0,0,!0);n.time=t.longs===String?o.toString():t.longs===Number?o.toNumber():o}else n.time=t.longs===String?"0":0;return null!=e.message&&e.hasOwnProperty("message")&&(n.message=e.message),null!=e.time&&e.hasOwnProperty("time")&&("number"==typeof e.time?n.time=t.longs===String?String(e.time):e.time:n.time=t.longs===String?r.Long.prototype.toString.call(e.time):t.longs===Number?new r.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber(!0):e.time),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.LoginSuccess=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.xPos=0,i.prototype.yPos=0,i.prototype.zPos=0,i.prototype.itemsDef="",i.prototype.blocksDef="",i.prototype.inventory="",i.prototype.armor="",i.prototype.movement="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.xPos&&Object.hasOwnProperty.call(e,"xPos")&&t.uint32(9).double(e.xPos),null!=e.yPos&&Object.hasOwnProperty.call(e,"yPos")&&t.uint32(17).double(e.yPos),null!=e.zPos&&Object.hasOwnProperty.call(e,"zPos")&&t.uint32(25).double(e.zPos),null!=e.itemsDef&&Object.hasOwnProperty.call(e,"itemsDef")&&t.uint32(34).string(e.itemsDef),null!=e.blocksDef&&Object.hasOwnProperty.call(e,"blocksDef")&&t.uint32(42).string(e.blocksDef),null!=e.inventory&&Object.hasOwnProperty.call(e,"inventory")&&t.uint32(50).string(e.inventory),null!=e.armor&&Object.hasOwnProperty.call(e,"armor")&&t.uint32(58).string(e.armor),null!=e.movement&&Object.hasOwnProperty.call(e,"movement")&&t.uint32(66).string(e.movement),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.LoginSuccess;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.xPos=e.double();break;case 2:i.yPos=e.double();break;case 3:i.zPos=e.double();break;case 4:i.itemsDef=e.string();break;case 5:i.blocksDef=e.string();break;case 6:i.inventory=e.string();break;case 7:i.armor=e.string();break;case 8:i.movement=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.xPos&&e.hasOwnProperty("xPos")&&"number"!=typeof e.xPos?"xPos: number expected":null!=e.yPos&&e.hasOwnProperty("yPos")&&"number"!=typeof e.yPos?"yPos: number expected":null!=e.zPos&&e.hasOwnProperty("zPos")&&"number"!=typeof e.zPos?"zPos: number expected":null!=e.itemsDef&&e.hasOwnProperty("itemsDef")&&!r.isString(e.itemsDef)?"itemsDef: string expected":null!=e.blocksDef&&e.hasOwnProperty("blocksDef")&&!r.isString(e.blocksDef)?"blocksDef: string expected":null!=e.inventory&&e.hasOwnProperty("inventory")&&!r.isString(e.inventory)?"inventory: string expected":null!=e.armor&&e.hasOwnProperty("armor")&&!r.isString(e.armor)?"armor: string expected":null!=e.movement&&e.hasOwnProperty("movement")&&!r.isString(e.movement)?"movement: string expected":null},i.fromObject=function(e){if(e instanceof o.LoginSuccess)return e;var t=new o.LoginSuccess;return null!=e.xPos&&(t.xPos=Number(e.xPos)),null!=e.yPos&&(t.yPos=Number(e.yPos)),null!=e.zPos&&(t.zPos=Number(e.zPos)),null!=e.itemsDef&&(t.itemsDef=String(e.itemsDef)),null!=e.blocksDef&&(t.blocksDef=String(e.blocksDef)),null!=e.inventory&&(t.inventory=String(e.inventory)),null!=e.armor&&(t.armor=String(e.armor)),null!=e.movement&&(t.movement=String(e.movement)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.xPos=0,n.yPos=0,n.zPos=0,n.itemsDef="",n.blocksDef="",n.inventory="",n.armor="",n.movement=""),null!=e.xPos&&e.hasOwnProperty("xPos")&&(n.xPos=t.json&&!isFinite(e.xPos)?String(e.xPos):e.xPos),null!=e.yPos&&e.hasOwnProperty("yPos")&&(n.yPos=t.json&&!isFinite(e.yPos)?String(e.yPos):e.yPos),null!=e.zPos&&e.hasOwnProperty("zPos")&&(n.zPos=t.json&&!isFinite(e.zPos)?String(e.zPos):e.zPos),null!=e.itemsDef&&e.hasOwnProperty("itemsDef")&&(n.itemsDef=e.itemsDef),null!=e.blocksDef&&e.hasOwnProperty("blocksDef")&&(n.blocksDef=e.blocksDef),null!=e.inventory&&e.hasOwnProperty("inventory")&&(n.inventory=e.inventory),null!=e.armor&&e.hasOwnProperty("armor")&&(n.armor=e.armor),null!=e.movement&&e.hasOwnProperty("movement")&&(n.movement=e.movement),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.Ping=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.time=r.Long?r.Long.fromBits(0,0,!0):0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&t.uint32(8).uint64(e.time),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.Ping;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.time=e.uint64();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.time&&e.hasOwnProperty("time")&&!(r.isInteger(e.time)||e.time&&r.isInteger(e.time.low)&&r.isInteger(e.time.high))?"time: integer|Long expected":null},i.fromObject=function(e){if(e instanceof o.Ping)return e;var t=new o.Ping;return null!=e.time&&(r.Long?(t.time=r.Long.fromValue(e.time)).unsigned=!0:"string"==typeof e.time?t.time=parseInt(e.time,10):"number"==typeof e.time?t.time=e.time:"object"==typeof e.time&&(t.time=new r.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber(!0))),t},i.toObject=function(e,t){t||(t={});var n={};if(t.defaults)if(r.Long){var o=new r.Long(0,0,!0);n.time=t.longs===String?o.toString():t.longs===Number?o.toNumber():o}else n.time=t.longs===String?"0":0;return null!=e.time&&e.hasOwnProperty("time")&&("number"==typeof e.time?n.time=t.longs===String?String(e.time):e.time:n.time=t.longs===String?r.Long.prototype.toString.call(e.time):t.longs===Number?new r.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber(!0):e.time),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.PlayerKick=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.reason="",i.prototype.time=r.Long?r.Long.fromBits(0,0,!0):0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.reason&&Object.hasOwnProperty.call(e,"reason")&&t.uint32(10).string(e.reason),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&t.uint32(16).uint64(e.time),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.PlayerKick;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.reason=e.string();break;case 2:i.time=e.uint64();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.reason&&e.hasOwnProperty("reason")&&!r.isString(e.reason)?"reason: string expected":null!=e.time&&e.hasOwnProperty("time")&&!(r.isInteger(e.time)||e.time&&r.isInteger(e.time.low)&&r.isInteger(e.time.high))?"time: integer|Long expected":null},i.fromObject=function(e){if(e instanceof o.PlayerKick)return e;var t=new o.PlayerKick;return null!=e.reason&&(t.reason=String(e.reason)),null!=e.time&&(r.Long?(t.time=r.Long.fromValue(e.time)).unsigned=!0:"string"==typeof e.time?t.time=parseInt(e.time,10):"number"==typeof e.time?t.time=e.time:"object"==typeof e.time&&(t.time=new r.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber(!0))),t},i.toObject=function(e,t){t||(t={});var n={};if(t.defaults)if(n.reason="",r.Long){var o=new r.Long(0,0,!0);n.time=t.longs===String?o.toString():t.longs===Number?o.toNumber():o}else n.time=t.longs===String?"0":0;return null!=e.reason&&e.hasOwnProperty("reason")&&(n.reason=e.reason),null!=e.time&&e.hasOwnProperty("time")&&("number"==typeof e.time?n.time=t.longs===String?String(e.time):e.time:n.time=t.longs===String?r.Long.prototype.toString.call(e.time):t.longs===Number?new r.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber(!0):e.time),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.PlayerEntity=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.uuid="",i.prototype.model="",i.prototype.texture="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),null!=e.model&&Object.hasOwnProperty.call(e,"model")&&t.uint32(18).string(e.model),null!=e.texture&&Object.hasOwnProperty.call(e,"texture")&&t.uint32(26).string(e.texture),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.PlayerEntity;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.uuid=e.string();break;case 2:i.model=e.string();break;case 3:i.texture=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!r.isString(e.uuid)?"uuid: string expected":null!=e.model&&e.hasOwnProperty("model")&&!r.isString(e.model)?"model: string expected":null!=e.texture&&e.hasOwnProperty("texture")&&!r.isString(e.texture)?"texture: string expected":null},i.fromObject=function(e){if(e instanceof o.PlayerEntity)return e;var t=new o.PlayerEntity;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.model&&(t.model=String(e.model)),null!=e.texture&&(t.texture=String(e.texture)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.uuid="",n.model="",n.texture=""),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.model&&e.hasOwnProperty("model")&&(n.model=e.model),null!=e.texture&&e.hasOwnProperty("texture")&&(n.texture=e.texture),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.PlayerTeleport=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return r.prototype.x=0,r.prototype.y=0,r.prototype.z=0,r.create=function(e){return new r(e)},r.encode=function(e,t){return t||(t=n.create()),null!=e.x&&Object.hasOwnProperty.call(e,"x")&&t.uint32(9).double(e.x),null!=e.y&&Object.hasOwnProperty.call(e,"y")&&t.uint32(17).double(e.y),null!=e.z&&Object.hasOwnProperty.call(e,"z")&&t.uint32(25).double(e.z),t},r.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},r.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.PlayerTeleport;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.x=e.double();break;case 2:i.y=e.double();break;case 3:i.z=e.double();break;default:e.skipType(7&s)}}return i},r.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.x&&e.hasOwnProperty("x")&&"number"!=typeof e.x?"x: number expected":null!=e.y&&e.hasOwnProperty("y")&&"number"!=typeof e.y?"y: number expected":null!=e.z&&e.hasOwnProperty("z")&&"number"!=typeof e.z?"z: number expected":null},r.fromObject=function(e){if(e instanceof o.PlayerTeleport)return e;var t=new o.PlayerTeleport;return null!=e.x&&(t.x=Number(e.x)),null!=e.y&&(t.y=Number(e.y)),null!=e.z&&(t.z=Number(e.z)),t},r.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.x=0,n.y=0,n.z=0),null!=e.x&&e.hasOwnProperty("x")&&(n.x=t.json&&!isFinite(e.x)?String(e.x):e.x),null!=e.y&&e.hasOwnProperty("y")&&(n.y=t.json&&!isFinite(e.y)?String(e.y):e.y),null!=e.z&&e.hasOwnProperty("z")&&(n.z=t.json&&!isFinite(e.z)?String(e.z):e.z),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r}(),o.PlayerInventory=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.type="",i.prototype.inventory="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.inventory&&Object.hasOwnProperty.call(e,"inventory")&&t.uint32(18).string(e.inventory),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.PlayerInventory;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.type=e.string();break;case 2:i.inventory=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.type&&e.hasOwnProperty("type")&&!r.isString(e.type)?"type: string expected":null!=e.inventory&&e.hasOwnProperty("inventory")&&!r.isString(e.inventory)?"inventory: string expected":null},i.fromObject=function(e){if(e instanceof o.PlayerInventory)return e;var t=new o.PlayerInventory;return null!=e.type&&(t.type=String(e.type)),null!=e.inventory&&(t.inventory=String(e.inventory)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.type="",n.inventory=""),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.inventory&&e.hasOwnProperty("inventory")&&(n.inventory=e.inventory),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.PlayerSlotUpdate=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.slot=0,i.prototype.type="",i.prototype.data="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.slot&&Object.hasOwnProperty.call(e,"slot")&&t.uint32(8).uint32(e.slot),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(18).string(e.type),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(26).string(e.data),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.PlayerSlotUpdate;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.slot=e.uint32();break;case 2:i.type=e.string();break;case 3:i.data=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.slot&&e.hasOwnProperty("slot")&&!r.isInteger(e.slot)?"slot: integer expected":null!=e.type&&e.hasOwnProperty("type")&&!r.isString(e.type)?"type: string expected":null!=e.data&&e.hasOwnProperty("data")&&!r.isString(e.data)?"data: string expected":null},i.fromObject=function(e){if(e instanceof o.PlayerSlotUpdate)return e;var t=new o.PlayerSlotUpdate;return null!=e.slot&&(t.slot=e.slot>>>0),null!=e.type&&(t.type=String(e.type)),null!=e.data&&(t.data=String(e.data)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.slot=0,n.type="",n.data=""),null!=e.slot&&e.hasOwnProperty("slot")&&(n.slot=e.slot),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.data&&e.hasOwnProperty("data")&&(n.data=e.data),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.PlayerApplyImpulse=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return r.prototype.x=0,r.prototype.y=0,r.prototype.z=0,r.create=function(e){return new r(e)},r.encode=function(e,t){return t||(t=n.create()),null!=e.x&&Object.hasOwnProperty.call(e,"x")&&t.uint32(13).float(e.x),null!=e.y&&Object.hasOwnProperty.call(e,"y")&&t.uint32(21).float(e.y),null!=e.z&&Object.hasOwnProperty.call(e,"z")&&t.uint32(29).float(e.z),t},r.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},r.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.PlayerApplyImpulse;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.x=e.float();break;case 2:i.y=e.float();break;case 3:i.z=e.float();break;default:e.skipType(7&s)}}return i},r.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.x&&e.hasOwnProperty("x")&&"number"!=typeof e.x?"x: number expected":null!=e.y&&e.hasOwnProperty("y")&&"number"!=typeof e.y?"y: number expected":null!=e.z&&e.hasOwnProperty("z")&&"number"!=typeof e.z?"z: number expected":null},r.fromObject=function(e){if(e instanceof o.PlayerApplyImpulse)return e;var t=new o.PlayerApplyImpulse;return null!=e.x&&(t.x=Number(e.x)),null!=e.y&&(t.y=Number(e.y)),null!=e.z&&(t.z=Number(e.z)),t},r.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.x=0,n.y=0,n.z=0),null!=e.x&&e.hasOwnProperty("x")&&(n.x=t.json&&!isFinite(e.x)?String(e.x):e.x),null!=e.y&&e.hasOwnProperty("y")&&(n.y=t.json&&!isFinite(e.y)?String(e.y):e.y),null!=e.z&&e.hasOwnProperty("z")&&(n.z=t.json&&!isFinite(e.z)?String(e.z):e.z),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r}(),o.PlayerUpdateMovement=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.key="",i.prototype.value=0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).string(e.key),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(17).double(e.value),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.PlayerUpdateMovement;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.key=e.string();break;case 2:i.value=e.double();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.key&&e.hasOwnProperty("key")&&!r.isString(e.key)?"key: string expected":null!=e.value&&e.hasOwnProperty("value")&&"number"!=typeof e.value?"value: number expected":null},i.fromObject=function(e){if(e instanceof o.PlayerUpdateMovement)return e;var t=new o.PlayerUpdateMovement;return null!=e.key&&(t.key=String(e.key)),null!=e.value&&(t.value=Number(e.value)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.key="",n.value=0),null!=e.key&&e.hasOwnProperty("key")&&(n.key=e.key),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.PlayerUpdatePhysics=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.key="",i.prototype.value=0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).string(e.key),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(17).double(e.value),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.PlayerUpdatePhysics;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.key=e.string();break;case 2:i.value=e.double();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.key&&e.hasOwnProperty("key")&&!r.isString(e.key)?"key: string expected":null!=e.value&&e.hasOwnProperty("value")&&"number"!=typeof e.value?"value: number expected":null},i.fromObject=function(e){if(e instanceof o.PlayerUpdatePhysics)return e;var t=new o.PlayerUpdatePhysics;return null!=e.key&&(t.key=String(e.key)),null!=e.value&&(t.value=Number(e.value)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.key="",n.value=0),null!=e.key&&e.hasOwnProperty("key")&&(n.key=e.key),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.PlayerHealth=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.value=0,i.prototype.max=0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).sint32(e.value),null!=e.max&&Object.hasOwnProperty.call(e,"max")&&t.uint32(16).sint32(e.max),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.PlayerHealth;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.value=e.sint32();break;case 2:i.max=e.sint32();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.value&&e.hasOwnProperty("value")&&!r.isInteger(e.value)?"value: integer expected":null!=e.max&&e.hasOwnProperty("max")&&!r.isInteger(e.max)?"max: integer expected":null},i.fromObject=function(e){if(e instanceof o.PlayerHealth)return e;var t=new o.PlayerHealth;return null!=e.value&&(t.value=0|e.value),null!=e.max&&(t.max=0|e.max),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.value=0,n.max=0),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.max&&e.hasOwnProperty("max")&&(n.max=e.max),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.PlayerSetBlockReach=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return r.prototype.value=0,r.create=function(e){return new r(e)},r.encode=function(e,t){return t||(t=n.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),t},r.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},r.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.PlayerSetBlockReach;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.value=e.float();break;default:e.skipType(7&s)}}return i},r.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.value&&e.hasOwnProperty("value")&&"number"!=typeof e.value?"value: number expected":null},r.fromObject=function(e){if(e instanceof o.PlayerSetBlockReach)return e;var t=new o.PlayerSetBlockReach;return null!=e.value&&(t.value=Number(e.value)),t},r.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.value=0),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r}(),o.PlayerOpenInventory=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var s,l;return i.prototype.type=0,i.prototype.name="",i.prototype.data="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(26).string(e.data),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.PlayerOpenInventory;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.type=e.int32();break;case 2:i.name=e.string();break;case 3:i.data=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:}return null!=e.name&&e.hasOwnProperty("name")&&!r.isString(e.name)?"name: string expected":null!=e.data&&e.hasOwnProperty("data")&&!r.isString(e.data)?"data: string expected":null},i.fromObject=function(e){if(e instanceof o.PlayerOpenInventory)return e;var t=new o.PlayerOpenInventory;switch(e.type){case"MAIN":case 0:t.type=0;break;case"CHEST":case 1:t.type=1;break;case"CRAFTING":case 2:t.type=2;break;case"FURNACE":case 3:t.type=3}return null!=e.name&&(t.name=String(e.name)),null!=e.data&&(t.data=String(e.data)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.type=t.enums===String?"MAIN":0,n.name="",n.data=""),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?o.PlayerOpenInventory.Type[e.type]:e.type),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.data&&e.hasOwnProperty("data")&&(n.data=e.data),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i.Type=(s={},(l=Object.create(s))[s[0]="MAIN"]=0,l[s[1]="CHEST"]=1,l[s[2]="CRAFTING"]=2,l[s[3]="FURNACE"]=3,l),i}(),o.SoundPlay=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.sound="",i.prototype.volume=0,i.prototype.x=0,i.prototype.y=0,i.prototype.z=0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.sound&&Object.hasOwnProperty.call(e,"sound")&&t.uint32(10).string(e.sound),null!=e.volume&&Object.hasOwnProperty.call(e,"volume")&&t.uint32(16).uint32(e.volume),null!=e.x&&Object.hasOwnProperty.call(e,"x")&&t.uint32(25).double(e.x),null!=e.y&&Object.hasOwnProperty.call(e,"y")&&t.uint32(33).double(e.y),null!=e.z&&Object.hasOwnProperty.call(e,"z")&&t.uint32(41).double(e.z),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.SoundPlay;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.sound=e.string();break;case 2:i.volume=e.uint32();break;case 3:i.x=e.double();break;case 4:i.y=e.double();break;case 5:i.z=e.double();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.sound&&e.hasOwnProperty("sound")&&!r.isString(e.sound)?"sound: string expected":null!=e.volume&&e.hasOwnProperty("volume")&&!r.isInteger(e.volume)?"volume: integer expected":null!=e.x&&e.hasOwnProperty("x")&&"number"!=typeof e.x?"x: number expected":null!=e.y&&e.hasOwnProperty("y")&&"number"!=typeof e.y?"y: number expected":null!=e.z&&e.hasOwnProperty("z")&&"number"!=typeof e.z?"z: number expected":null},i.fromObject=function(e){if(e instanceof o.SoundPlay)return e;var t=new o.SoundPlay;return null!=e.sound&&(t.sound=String(e.sound)),null!=e.volume&&(t.volume=e.volume>>>0),null!=e.x&&(t.x=Number(e.x)),null!=e.y&&(t.y=Number(e.y)),null!=e.z&&(t.z=Number(e.z)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.sound="",n.volume=0,n.x=0,n.y=0,n.z=0),null!=e.sound&&e.hasOwnProperty("sound")&&(n.sound=e.sound),null!=e.volume&&e.hasOwnProperty("volume")&&(n.volume=e.volume),null!=e.x&&e.hasOwnProperty("x")&&(n.x=t.json&&!isFinite(e.x)?String(e.x):e.x),null!=e.y&&e.hasOwnProperty("y")&&(n.y=t.json&&!isFinite(e.y)?String(e.y):e.y),null!=e.z&&e.hasOwnProperty("z")&&(n.z=t.json&&!isFinite(e.z)?String(e.z):e.z),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.ChatMessage=function(){function i(e){if(this.message={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.message=r.emptyObject,i.prototype.time=r.Long?r.Long.fromBits(0,0,!0):0,i.create=function(e){return new i(e)},i.encode=function(e,t){if(t||(t=n.create()),null!=e.message&&Object.hasOwnProperty.call(e,"message"))for(var r=Object.keys(e.message),i=0;i<r.length;++i)t.uint32(10).fork().uint32(8).uint32(r[i]),o.ChatMessage.ChatComponent.encode(e.message[r[i]],t.uint32(18).fork()).ldelim().ldelim();return null!=e.time&&Object.hasOwnProperty.call(e,"time")&&t.uint32(16).uint64(e.time),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var i,s,l=void 0===n?e.len:e.pos+n,u=new o.ChatMessage;e.pos<l;){var a=e.uint32();switch(a>>>3){case 1:u.message===r.emptyObject&&(u.message={});var c=e.uint32()+e.pos;for(i=0,s=null;e.pos<c;){var p=e.uint32();switch(p>>>3){case 1:i=e.uint32();break;case 2:s=o.ChatMessage.ChatComponent.decode(e,e.uint32());break;default:e.skipType(7&p)}}u.message[i]=s;break;case 2:u.time=e.uint64();break;default:e.skipType(7&a)}}return u},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.message&&e.hasOwnProperty("message")){if(!r.isObject(e.message))return"message: object expected";for(var t=Object.keys(e.message),n=0;n<t.length;++n){if(!r.key32Re.test(t[n]))return"message: integer key{k:uint32} expected";var i=o.ChatMessage.ChatComponent.verify(e.message[t[n]]);if(i)return"message."+i}}return null!=e.time&&e.hasOwnProperty("time")&&!(r.isInteger(e.time)||e.time&&r.isInteger(e.time.low)&&r.isInteger(e.time.high))?"time: integer|Long expected":null},i.fromObject=function(e){if(e instanceof o.ChatMessage)return e;var t=new o.ChatMessage;if(e.message){if("object"!=typeof e.message)throw TypeError(".ChatMessage.message: object expected");t.message={};for(var n=Object.keys(e.message),i=0;i<n.length;++i){if("object"!=typeof e.message[n[i]])throw TypeError(".ChatMessage.message: object expected");t.message[n[i]]=o.ChatMessage.ChatComponent.fromObject(e.message[n[i]])}}return null!=e.time&&(r.Long?(t.time=r.Long.fromValue(e.time)).unsigned=!0:"string"==typeof e.time?t.time=parseInt(e.time,10):"number"==typeof e.time?t.time=e.time:"object"==typeof e.time&&(t.time=new r.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber(!0))),t},i.toObject=function(e,t){t||(t={});var n,i={};if((t.objects||t.defaults)&&(i.message={}),t.defaults)if(r.Long){var s=new r.Long(0,0,!0);i.time=t.longs===String?s.toString():t.longs===Number?s.toNumber():s}else i.time=t.longs===String?"0":0;if(e.message&&(n=Object.keys(e.message)).length){i.message={};for(var l=0;l<n.length;++l)i.message[n[l]]=o.ChatMessage.ChatComponent.toObject(e.message[n[l]],t)}return null!=e.time&&e.hasOwnProperty("time")&&("number"==typeof e.time?i.time=t.longs===String?String(e.time):e.time:i.time=t.longs===String?r.Long.prototype.toString.call(e.time):t.longs===Number?new r.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber(!0):e.time),i},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i.ChatComponent=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.text="",i.prototype.font="",i.prototype.color="",i.prototype.linethrough=!1,i.prototype.underline=!1,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.text&&Object.hasOwnProperty.call(e,"text")&&t.uint32(10).string(e.text),null!=e.font&&Object.hasOwnProperty.call(e,"font")&&t.uint32(18).string(e.font),null!=e.color&&Object.hasOwnProperty.call(e,"color")&&t.uint32(26).string(e.color),null!=e.linethrough&&Object.hasOwnProperty.call(e,"linethrough")&&t.uint32(32).bool(e.linethrough),null!=e.underline&&Object.hasOwnProperty.call(e,"underline")&&t.uint32(40).bool(e.underline),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ChatMessage.ChatComponent;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.text=e.string();break;case 2:i.font=e.string();break;case 3:i.color=e.string();break;case 4:i.linethrough=e.bool();break;case 5:i.underline=e.bool();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.text&&e.hasOwnProperty("text")&&!r.isString(e.text)?"text: string expected":null!=e.font&&e.hasOwnProperty("font")&&!r.isString(e.font)?"font: string expected":null!=e.color&&e.hasOwnProperty("color")&&!r.isString(e.color)?"color: string expected":null!=e.linethrough&&e.hasOwnProperty("linethrough")&&"boolean"!=typeof e.linethrough?"linethrough: boolean expected":null!=e.underline&&e.hasOwnProperty("underline")&&"boolean"!=typeof e.underline?"underline: boolean expected":null},i.fromObject=function(e){if(e instanceof o.ChatMessage.ChatComponent)return e;var t=new o.ChatMessage.ChatComponent;return null!=e.text&&(t.text=String(e.text)),null!=e.font&&(t.font=String(e.font)),null!=e.color&&(t.color=String(e.color)),null!=e.linethrough&&(t.linethrough=Boolean(e.linethrough)),null!=e.underline&&(t.underline=Boolean(e.underline)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.text="",n.font="",n.color="",n.linethrough=!1,n.underline=!1),null!=e.text&&e.hasOwnProperty("text")&&(n.text=e.text),null!=e.font&&e.hasOwnProperty("font")&&(n.font=e.font),null!=e.color&&e.hasOwnProperty("color")&&(n.color=e.color),null!=e.linethrough&&e.hasOwnProperty("linethrough")&&(n.linethrough=e.linethrough),null!=e.underline&&e.hasOwnProperty("underline")&&(n.underline=e.underline),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),i}(),o.UpdateTextBoard=function(){function i(e){if(this.message={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var s,l;return i.prototype.type=0,i.prototype.message=r.emptyObject,i.prototype.time=r.Long?r.Long.fromBits(0,0,!0):0,i.create=function(e){return new i(e)},i.encode=function(e,t){if(t||(t=n.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.message&&Object.hasOwnProperty.call(e,"message"))for(var r=Object.keys(e.message),i=0;i<r.length;++i)t.uint32(18).fork().uint32(8).uint32(r[i]),o.UpdateTextBoard.ChatComponent.encode(e.message[r[i]],t.uint32(18).fork()).ldelim().ldelim();return null!=e.time&&Object.hasOwnProperty.call(e,"time")&&t.uint32(24).uint64(e.time),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var i,s,l=void 0===n?e.len:e.pos+n,u=new o.UpdateTextBoard;e.pos<l;){var a=e.uint32();switch(a>>>3){case 1:u.type=e.int32();break;case 2:u.message===r.emptyObject&&(u.message={});var c=e.uint32()+e.pos;for(i=0,s=null;e.pos<c;){var p=e.uint32();switch(p>>>3){case 1:i=e.uint32();break;case 2:s=o.UpdateTextBoard.ChatComponent.decode(e,e.uint32());break;default:e.skipType(7&p)}}u.message[i]=s;break;case 3:u.time=e.uint64();break;default:e.skipType(7&a)}}return u},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:}if(null!=e.message&&e.hasOwnProperty("message")){if(!r.isObject(e.message))return"message: object expected";for(var t=Object.keys(e.message),n=0;n<t.length;++n){if(!r.key32Re.test(t[n]))return"message: integer key{k:uint32} expected";var i=o.UpdateTextBoard.ChatComponent.verify(e.message[t[n]]);if(i)return"message."+i}}return null!=e.time&&e.hasOwnProperty("time")&&!(r.isInteger(e.time)||e.time&&r.isInteger(e.time.low)&&r.isInteger(e.time.high))?"time: integer|Long expected":null},i.fromObject=function(e){if(e instanceof o.UpdateTextBoard)return e;var t=new o.UpdateTextBoard;switch(e.type){case"TAB":case 0:t.type=0;break;case"SIDE":case 1:t.type=1;break;case"CENTER":case 2:t.type=2;break;case"HOTBAR":case 3:t.type=3}if(e.message){if("object"!=typeof e.message)throw TypeError(".UpdateTextBoard.message: object expected");t.message={};for(var n=Object.keys(e.message),i=0;i<n.length;++i){if("object"!=typeof e.message[n[i]])throw TypeError(".UpdateTextBoard.message: object expected");t.message[n[i]]=o.UpdateTextBoard.ChatComponent.fromObject(e.message[n[i]])}}return null!=e.time&&(r.Long?(t.time=r.Long.fromValue(e.time)).unsigned=!0:"string"==typeof e.time?t.time=parseInt(e.time,10):"number"==typeof e.time?t.time=e.time:"object"==typeof e.time&&(t.time=new r.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber(!0))),t},i.toObject=function(e,t){t||(t={});var n,i={};if((t.objects||t.defaults)&&(i.message={}),t.defaults)if(i.type=t.enums===String?"TAB":0,r.Long){var s=new r.Long(0,0,!0);i.time=t.longs===String?s.toString():t.longs===Number?s.toNumber():s}else i.time=t.longs===String?"0":0;if(null!=e.type&&e.hasOwnProperty("type")&&(i.type=t.enums===String?o.UpdateTextBoard.Type[e.type]:e.type),e.message&&(n=Object.keys(e.message)).length){i.message={};for(var l=0;l<n.length;++l)i.message[n[l]]=o.UpdateTextBoard.ChatComponent.toObject(e.message[n[l]],t)}return null!=e.time&&e.hasOwnProperty("time")&&("number"==typeof e.time?i.time=t.longs===String?String(e.time):e.time:i.time=t.longs===String?r.Long.prototype.toString.call(e.time):t.longs===Number?new r.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber(!0):e.time),i},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i.Type=(s={},(l=Object.create(s))[s[0]="TAB"]=0,l[s[1]="SIDE"]=1,l[s[2]="CENTER"]=2,l[s[3]="HOTBAR"]=3,l),i.ChatComponent=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.text="",i.prototype.font="",i.prototype.color="",i.prototype.linethrough=!1,i.prototype.underline=!1,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.text&&Object.hasOwnProperty.call(e,"text")&&t.uint32(10).string(e.text),null!=e.font&&Object.hasOwnProperty.call(e,"font")&&t.uint32(18).string(e.font),null!=e.color&&Object.hasOwnProperty.call(e,"color")&&t.uint32(26).string(e.color),null!=e.linethrough&&Object.hasOwnProperty.call(e,"linethrough")&&t.uint32(32).bool(e.linethrough),null!=e.underline&&Object.hasOwnProperty.call(e,"underline")&&t.uint32(40).bool(e.underline),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.UpdateTextBoard.ChatComponent;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.text=e.string();break;case 2:i.font=e.string();break;case 3:i.color=e.string();break;case 4:i.linethrough=e.bool();break;case 5:i.underline=e.bool();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.text&&e.hasOwnProperty("text")&&!r.isString(e.text)?"text: string expected":null!=e.font&&e.hasOwnProperty("font")&&!r.isString(e.font)?"font: string expected":null!=e.color&&e.hasOwnProperty("color")&&!r.isString(e.color)?"color: string expected":null!=e.linethrough&&e.hasOwnProperty("linethrough")&&"boolean"!=typeof e.linethrough?"linethrough: boolean expected":null!=e.underline&&e.hasOwnProperty("underline")&&"boolean"!=typeof e.underline?"underline: boolean expected":null},i.fromObject=function(e){if(e instanceof o.UpdateTextBoard.ChatComponent)return e;var t=new o.UpdateTextBoard.ChatComponent;return null!=e.text&&(t.text=String(e.text)),null!=e.font&&(t.font=String(e.font)),null!=e.color&&(t.color=String(e.color)),null!=e.linethrough&&(t.linethrough=Boolean(e.linethrough)),null!=e.underline&&(t.underline=Boolean(e.underline)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.text="",n.font="",n.color="",n.linethrough=!1,n.underline=!1),null!=e.text&&e.hasOwnProperty("text")&&(n.text=e.text),null!=e.font&&e.hasOwnProperty("font")&&(n.font=e.font),null!=e.color&&e.hasOwnProperty("color")&&(n.color=e.color),null!=e.linethrough&&e.hasOwnProperty("linethrough")&&(n.linethrough=e.linethrough),null!=e.underline&&e.hasOwnProperty("underline")&&(n.underline=e.underline),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),i}(),o.EntityCreate=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.uuid="",i.prototype.data="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(18).string(e.data),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.EntityCreate;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.uuid=e.string();break;case 2:i.data=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!r.isString(e.uuid)?"uuid: string expected":null!=e.data&&e.hasOwnProperty("data")&&!r.isString(e.data)?"data: string expected":null},i.fromObject=function(e){if(e instanceof o.EntityCreate)return e;var t=new o.EntityCreate;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.data&&(t.data=String(e.data)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.uuid="",n.data=""),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.data&&e.hasOwnProperty("data")&&(n.data=e.data),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.EntityRemove=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.uuid="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.EntityRemove;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.uuid=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!r.isString(e.uuid)?"uuid: string expected":null},i.fromObject=function(e){if(e instanceof o.EntityRemove)return e;var t=new o.EntityRemove;return null!=e.uuid&&(t.uuid=String(e.uuid)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.uuid=""),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.EntityMove=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.uuid="",i.prototype.x=0,i.prototype.y=0,i.prototype.z=0,i.prototype.rotation=0,i.prototype.pitch=0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),null!=e.x&&Object.hasOwnProperty.call(e,"x")&&t.uint32(17).double(e.x),null!=e.y&&Object.hasOwnProperty.call(e,"y")&&t.uint32(25).double(e.y),null!=e.z&&Object.hasOwnProperty.call(e,"z")&&t.uint32(33).double(e.z),null!=e.rotation&&Object.hasOwnProperty.call(e,"rotation")&&t.uint32(45).float(e.rotation),null!=e.pitch&&Object.hasOwnProperty.call(e,"pitch")&&t.uint32(53).float(e.pitch),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.EntityMove;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.uuid=e.string();break;case 2:i.x=e.double();break;case 3:i.y=e.double();break;case 4:i.z=e.double();break;case 5:i.rotation=e.float();break;case 6:i.pitch=e.float();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!r.isString(e.uuid)?"uuid: string expected":null!=e.x&&e.hasOwnProperty("x")&&"number"!=typeof e.x?"x: number expected":null!=e.y&&e.hasOwnProperty("y")&&"number"!=typeof e.y?"y: number expected":null!=e.z&&e.hasOwnProperty("z")&&"number"!=typeof e.z?"z: number expected":null!=e.rotation&&e.hasOwnProperty("rotation")&&"number"!=typeof e.rotation?"rotation: number expected":null!=e.pitch&&e.hasOwnProperty("pitch")&&"number"!=typeof e.pitch?"pitch: number expected":null},i.fromObject=function(e){if(e instanceof o.EntityMove)return e;var t=new o.EntityMove;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.x&&(t.x=Number(e.x)),null!=e.y&&(t.y=Number(e.y)),null!=e.z&&(t.z=Number(e.z)),null!=e.rotation&&(t.rotation=Number(e.rotation)),null!=e.pitch&&(t.pitch=Number(e.pitch)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.uuid="",n.x=0,n.y=0,n.z=0,n.rotation=0,n.pitch=0),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.x&&e.hasOwnProperty("x")&&(n.x=t.json&&!isFinite(e.x)?String(e.x):e.x),null!=e.y&&e.hasOwnProperty("y")&&(n.y=t.json&&!isFinite(e.y)?String(e.y):e.y),null!=e.z&&e.hasOwnProperty("z")&&(n.z=t.json&&!isFinite(e.z)?String(e.z):e.z),null!=e.rotation&&e.hasOwnProperty("rotation")&&(n.rotation=t.json&&!isFinite(e.rotation)?String(e.rotation):e.rotation),null!=e.pitch&&e.hasOwnProperty("pitch")&&(n.pitch=t.json&&!isFinite(e.pitch)?String(e.pitch):e.pitch),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.EntityNameUpdate=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.uuid="",i.prototype.name="",i.prototype.visible=!1,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.visible&&Object.hasOwnProperty.call(e,"visible")&&t.uint32(24).bool(e.visible),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.EntityNameUpdate;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.uuid=e.string();break;case 2:i.name=e.string();break;case 3:i.visible=e.bool();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!r.isString(e.uuid)?"uuid: string expected":null!=e.name&&e.hasOwnProperty("name")&&!r.isString(e.name)?"name: string expected":null!=e.visible&&e.hasOwnProperty("visible")&&"boolean"!=typeof e.visible?"visible: boolean expected":null},i.fromObject=function(e){if(e instanceof o.EntityNameUpdate)return e;var t=new o.EntityNameUpdate;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.name&&(t.name=String(e.name)),null!=e.visible&&(t.visible=Boolean(e.visible)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.uuid="",n.name="",n.visible=!1),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.visible&&e.hasOwnProperty("visible")&&(n.visible=e.visible),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.EntityHeldItem=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.uuid="",i.prototype.id="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(18).string(e.id),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.EntityHeldItem;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.uuid=e.string();break;case 2:i.id=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!r.isString(e.uuid)?"uuid: string expected":null!=e.id&&e.hasOwnProperty("id")&&!r.isString(e.id)?"id: string expected":null},i.fromObject=function(e){if(e instanceof o.EntityHeldItem)return e;var t=new o.EntityHeldItem;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.id&&(t.id=String(e.id)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.uuid="",n.id=""),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.EntityArmor=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.uuid="",i.prototype.type=0,i.prototype.id="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(16).int32(e.type),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(26).string(e.id),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.EntityArmor;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.uuid=e.string();break;case 2:i.type=e.int32();break;case 3:i.id=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!r.isString(e.uuid)?"uuid: string expected":null!=e.type&&e.hasOwnProperty("type")&&!r.isInteger(e.type)?"type: integer expected":null!=e.id&&e.hasOwnProperty("id")&&!r.isString(e.id)?"id: string expected":null},i.fromObject=function(e){if(e instanceof o.EntityArmor)return e;var t=new o.EntityArmor;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.type&&(t.type=0|e.type),null!=e.id&&(t.id=String(e.id)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.uuid="",n.type=0,n.id=""),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.EntityAnimate=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.uuid="",i.prototype.animation="",i.prototype.time=0,i.prototype.replace=!1,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),null!=e.animation&&Object.hasOwnProperty.call(e,"animation")&&t.uint32(18).string(e.animation),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&t.uint32(24).uint32(e.time),null!=e.replace&&Object.hasOwnProperty.call(e,"replace")&&t.uint32(32).bool(e.replace),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.EntityAnimate;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.uuid=e.string();break;case 2:i.animation=e.string();break;case 3:i.time=e.uint32();break;case 4:i.replace=e.bool();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!r.isString(e.uuid)?"uuid: string expected":null!=e.animation&&e.hasOwnProperty("animation")&&!r.isString(e.animation)?"animation: string expected":null!=e.time&&e.hasOwnProperty("time")&&!r.isInteger(e.time)?"time: integer expected":null!=e.replace&&e.hasOwnProperty("replace")&&"boolean"!=typeof e.replace?"replace: boolean expected":null},i.fromObject=function(e){if(e instanceof o.EntityAnimate)return e;var t=new o.EntityAnimate;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.animation&&(t.animation=String(e.animation)),null!=e.time&&(t.time=e.time>>>0),null!=e.replace&&(t.replace=Boolean(e.replace)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.uuid="",n.animation="",n.time=0,n.replace=!1),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.animation&&e.hasOwnProperty("animation")&&(n.animation=e.animation),null!=e.time&&e.hasOwnProperty("time")&&(n.time=e.time),null!=e.replace&&e.hasOwnProperty("replace")&&(n.replace=e.replace),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.WorldBlockUpdate=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.x=0,i.prototype.y=0,i.prototype.z=0,i.prototype.id=0,i.prototype.particles=!1,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.x&&Object.hasOwnProperty.call(e,"x")&&t.uint32(8).sint32(e.x),null!=e.y&&Object.hasOwnProperty.call(e,"y")&&t.uint32(16).sint32(e.y),null!=e.z&&Object.hasOwnProperty.call(e,"z")&&t.uint32(24).sint32(e.z),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(32).uint32(e.id),null!=e.particles&&Object.hasOwnProperty.call(e,"particles")&&t.uint32(40).bool(e.particles),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.WorldBlockUpdate;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.x=e.sint32();break;case 2:i.y=e.sint32();break;case 3:i.z=e.sint32();break;case 4:i.id=e.uint32();break;case 5:i.particles=e.bool();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.x&&e.hasOwnProperty("x")&&!r.isInteger(e.x)?"x: integer expected":null!=e.y&&e.hasOwnProperty("y")&&!r.isInteger(e.y)?"y: integer expected":null!=e.z&&e.hasOwnProperty("z")&&!r.isInteger(e.z)?"z: integer expected":null!=e.id&&e.hasOwnProperty("id")&&!r.isInteger(e.id)?"id: integer expected":null!=e.particles&&e.hasOwnProperty("particles")&&"boolean"!=typeof e.particles?"particles: boolean expected":null},i.fromObject=function(e){if(e instanceof o.WorldBlockUpdate)return e;var t=new o.WorldBlockUpdate;return null!=e.x&&(t.x=0|e.x),null!=e.y&&(t.y=0|e.y),null!=e.z&&(t.z=0|e.z),null!=e.id&&(t.id=e.id>>>0),null!=e.particles&&(t.particles=Boolean(e.particles)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.x=0,n.y=0,n.z=0,n.id=0,n.particles=!1),null!=e.x&&e.hasOwnProperty("x")&&(n.x=e.x),null!=e.y&&e.hasOwnProperty("y")&&(n.y=e.y),null!=e.z&&e.hasOwnProperty("z")&&(n.z=e.z),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.particles&&e.hasOwnProperty("particles")&&(n.particles=e.particles),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.WorldMultiBlockUpdate=function(){function i(e){if(this.blocks={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.blocks=r.emptyObject,i.create=function(e){return new i(e)},i.encode=function(e,t){if(t||(t=n.create()),null!=e.blocks&&Object.hasOwnProperty.call(e,"blocks"))for(var r=Object.keys(e.blocks),i=0;i<r.length;++i)t.uint32(10).fork().uint32(8).int32(r[i]),o.WorldBlockUpdate.encode(e.blocks[r[i]],t.uint32(18).fork()).ldelim().ldelim();return t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var i,s,l=void 0===n?e.len:e.pos+n,u=new o.WorldMultiBlockUpdate;e.pos<l;){var a=e.uint32();switch(a>>>3){case 1:u.blocks===r.emptyObject&&(u.blocks={});var c=e.uint32()+e.pos;for(i=0,s=null;e.pos<c;){var p=e.uint32();switch(p>>>3){case 1:i=e.int32();break;case 2:s=o.WorldBlockUpdate.decode(e,e.uint32());break;default:e.skipType(7&p)}}u.blocks[i]=s;break;default:e.skipType(7&a)}}return u},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.blocks&&e.hasOwnProperty("blocks")){if(!r.isObject(e.blocks))return"blocks: object expected";for(var t=Object.keys(e.blocks),n=0;n<t.length;++n){if(!r.key32Re.test(t[n]))return"blocks: integer key{k:int32} expected";var i=o.WorldBlockUpdate.verify(e.blocks[t[n]]);if(i)return"blocks."+i}}return null},i.fromObject=function(e){if(e instanceof o.WorldMultiBlockUpdate)return e;var t=new o.WorldMultiBlockUpdate;if(e.blocks){if("object"!=typeof e.blocks)throw TypeError(".WorldMultiBlockUpdate.blocks: object expected");t.blocks={};for(var n=Object.keys(e.blocks),r=0;r<n.length;++r){if("object"!=typeof e.blocks[n[r]])throw TypeError(".WorldMultiBlockUpdate.blocks: object expected");t.blocks[n[r]]=o.WorldBlockUpdate.fromObject(e.blocks[n[r]])}}return t},i.toObject=function(e,t){t||(t={});var n,r={};if((t.objects||t.defaults)&&(r.blocks={}),e.blocks&&(n=Object.keys(e.blocks)).length){r.blocks={};for(var i=0;i<n.length;++i)r.blocks[n[i]]=o.WorldBlockUpdate.toObject(e.blocks[n[i]],t)}return r},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.WorldChunkLoad=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.x=0,i.prototype.y=0,i.prototype.z=0,i.prototype.data=r.newBuffer([]),i.prototype.height=0,i.prototype.compressed=!1,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.x&&Object.hasOwnProperty.call(e,"x")&&t.uint32(8).sint32(e.x),null!=e.y&&Object.hasOwnProperty.call(e,"y")&&t.uint32(16).sint32(e.y),null!=e.z&&Object.hasOwnProperty.call(e,"z")&&t.uint32(24).sint32(e.z),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(34).bytes(e.data),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(40).sint32(e.height),null!=e.compressed&&Object.hasOwnProperty.call(e,"compressed")&&t.uint32(48).bool(e.compressed),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.WorldChunkLoad;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.x=e.sint32();break;case 2:i.y=e.sint32();break;case 3:i.z=e.sint32();break;case 4:i.data=e.bytes();break;case 5:i.height=e.sint32();break;case 6:i.compressed=e.bool();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.x&&e.hasOwnProperty("x")&&!r.isInteger(e.x)?"x: integer expected":null!=e.y&&e.hasOwnProperty("y")&&!r.isInteger(e.y)?"y: integer expected":null!=e.z&&e.hasOwnProperty("z")&&!r.isInteger(e.z)?"z: integer expected":null!=e.data&&e.hasOwnProperty("data")&&!(e.data&&"number"==typeof e.data.length||r.isString(e.data))?"data: buffer expected":null!=e.height&&e.hasOwnProperty("height")&&!r.isInteger(e.height)?"height: integer expected":null!=e.compressed&&e.hasOwnProperty("compressed")&&"boolean"!=typeof e.compressed?"compressed: boolean expected":null},i.fromObject=function(e){if(e instanceof o.WorldChunkLoad)return e;var t=new o.WorldChunkLoad;return null!=e.x&&(t.x=0|e.x),null!=e.y&&(t.y=0|e.y),null!=e.z&&(t.z=0|e.z),null!=e.data&&("string"==typeof e.data?r.base64.decode(e.data,t.data=r.newBuffer(r.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),null!=e.height&&(t.height=0|e.height),null!=e.compressed&&(t.compressed=Boolean(e.compressed)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.x=0,n.y=0,n.z=0,t.bytes===String?n.data="":(n.data=[],t.bytes!==Array&&(n.data=r.newBuffer(n.data))),n.height=0,n.compressed=!1),null!=e.x&&e.hasOwnProperty("x")&&(n.x=e.x),null!=e.y&&e.hasOwnProperty("y")&&(n.y=e.y),null!=e.z&&e.hasOwnProperty("z")&&(n.z=e.z),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?r.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),null!=e.height&&e.hasOwnProperty("height")&&(n.height=e.height),null!=e.compressed&&e.hasOwnProperty("compressed")&&(n.compressed=e.compressed),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.WorldChunkUnload=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.x=0,i.prototype.y=0,i.prototype.z=0,i.prototype.height=0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.x&&Object.hasOwnProperty.call(e,"x")&&t.uint32(8).sint32(e.x),null!=e.y&&Object.hasOwnProperty.call(e,"y")&&t.uint32(16).sint32(e.y),null!=e.z&&Object.hasOwnProperty.call(e,"z")&&t.uint32(24).sint32(e.z),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(32).sint32(e.height),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.WorldChunkUnload;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.x=e.sint32();break;case 2:i.y=e.sint32();break;case 3:i.z=e.sint32();break;case 4:i.height=e.sint32();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.x&&e.hasOwnProperty("x")&&!r.isInteger(e.x)?"x: integer expected":null!=e.y&&e.hasOwnProperty("y")&&!r.isInteger(e.y)?"y: integer expected":null!=e.z&&e.hasOwnProperty("z")&&!r.isInteger(e.z)?"z: integer expected":null!=e.height&&e.hasOwnProperty("height")&&!r.isInteger(e.height)?"height: integer expected":null},i.fromObject=function(e){if(e instanceof o.WorldChunkUnload)return e;var t=new o.WorldChunkUnload;return null!=e.x&&(t.x=0|e.x),null!=e.y&&(t.y=0|e.y),null!=e.z&&(t.z=0|e.z),null!=e.height&&(t.height=0|e.height),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.x=0,n.y=0,n.z=0,n.height=0),null!=e.x&&e.hasOwnProperty("x")&&(n.x=e.x),null!=e.y&&e.hasOwnProperty("y")&&(n.y=e.y),null!=e.z&&e.hasOwnProperty("z")&&(n.z=e.z),null!=e.height&&e.hasOwnProperty("height")&&(n.height=e.height),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.WorldChunkIsLoaded=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.x=0,i.prototype.y=0,i.prototype.z=0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.x&&Object.hasOwnProperty.call(e,"x")&&t.uint32(8).sint32(e.x),null!=e.y&&Object.hasOwnProperty.call(e,"y")&&t.uint32(16).sint32(e.y),null!=e.z&&Object.hasOwnProperty.call(e,"z")&&t.uint32(24).sint32(e.z),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.WorldChunkIsLoaded;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.x=e.sint32();break;case 2:i.y=e.sint32();break;case 3:i.z=e.sint32();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.x&&e.hasOwnProperty("x")&&!r.isInteger(e.x)?"x: integer expected":null!=e.y&&e.hasOwnProperty("y")&&!r.isInteger(e.y)?"y: integer expected":null!=e.z&&e.hasOwnProperty("z")&&!r.isInteger(e.z)?"z: integer expected":null},i.fromObject=function(e){if(e instanceof o.WorldChunkIsLoaded)return e;var t=new o.WorldChunkIsLoaded;return null!=e.x&&(t.x=0|e.x),null!=e.y&&(t.y=0|e.y),null!=e.z&&(t.z=0|e.z),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.x=0,n.y=0,n.z=0),null!=e.x&&e.hasOwnProperty("x")&&(n.x=e.x),null!=e.y&&e.hasOwnProperty("y")&&(n.y=e.y),null!=e.z&&e.hasOwnProperty("z")&&(n.z=e.z),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.WorldChunksRemoveAll=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return r.prototype.confirm=!1,r.create=function(e){return new r(e)},r.encode=function(e,t){return t||(t=n.create()),null!=e.confirm&&Object.hasOwnProperty.call(e,"confirm")&&t.uint32(8).bool(e.confirm),t},r.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},r.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.WorldChunksRemoveAll;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.confirm=e.bool();break;default:e.skipType(7&s)}}return i},r.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.confirm&&e.hasOwnProperty("confirm")&&"boolean"!=typeof e.confirm?"confirm: boolean expected":null},r.fromObject=function(e){if(e instanceof o.WorldChunksRemoveAll)return e;var t=new o.WorldChunksRemoveAll;return null!=e.confirm&&(t.confirm=Boolean(e.confirm)),t},r.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.confirm=!1),null!=e.confirm&&e.hasOwnProperty("confirm")&&(n.confirm=e.confirm),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r}(),o.RegistryUpdate=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.itemsDef="",i.prototype.blocksDef="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.itemsDef&&Object.hasOwnProperty.call(e,"itemsDef")&&t.uint32(10).string(e.itemsDef),null!=e.blocksDef&&Object.hasOwnProperty.call(e,"blocksDef")&&t.uint32(18).string(e.blocksDef),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.RegistryUpdate;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.itemsDef=e.string();break;case 2:i.blocksDef=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.itemsDef&&e.hasOwnProperty("itemsDef")&&!r.isString(e.itemsDef)?"itemsDef: string expected":null!=e.blocksDef&&e.hasOwnProperty("blocksDef")&&!r.isString(e.blocksDef)?"blocksDef: string expected":null},i.fromObject=function(e){if(e instanceof o.RegistryUpdate)return e;var t=new o.RegistryUpdate;return null!=e.itemsDef&&(t.itemsDef=String(e.itemsDef)),null!=e.blocksDef&&(t.blocksDef=String(e.blocksDef)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.itemsDef="",n.blocksDef=""),null!=e.itemsDef&&e.hasOwnProperty("itemsDef")&&(n.itemsDef=e.itemsDef),null!=e.blocksDef&&e.hasOwnProperty("blocksDef")&&(n.blocksDef=e.blocksDef),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.EnvironmentFogUpdate=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.mode=0,i.prototype.density=0,i.prototype.start=0,i.prototype.end=0,i.prototype.colorRed=0,i.prototype.colorGreen=0,i.prototype.colorBlue=0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.mode&&Object.hasOwnProperty.call(e,"mode")&&t.uint32(8).uint32(e.mode),null!=e.density&&Object.hasOwnProperty.call(e,"density")&&t.uint32(21).float(e.density),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(29).float(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(37).float(e.end),null!=e.colorRed&&Object.hasOwnProperty.call(e,"colorRed")&&t.uint32(45).float(e.colorRed),null!=e.colorGreen&&Object.hasOwnProperty.call(e,"colorGreen")&&t.uint32(53).float(e.colorGreen),null!=e.colorBlue&&Object.hasOwnProperty.call(e,"colorBlue")&&t.uint32(61).float(e.colorBlue),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.EnvironmentFogUpdate;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.mode=e.uint32();break;case 2:i.density=e.float();break;case 3:i.start=e.float();break;case 4:i.end=e.float();break;case 5:i.colorRed=e.float();break;case 6:i.colorGreen=e.float();break;case 7:i.colorBlue=e.float();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.mode&&e.hasOwnProperty("mode")&&!r.isInteger(e.mode)?"mode: integer expected":null!=e.density&&e.hasOwnProperty("density")&&"number"!=typeof e.density?"density: number expected":null!=e.start&&e.hasOwnProperty("start")&&"number"!=typeof e.start?"start: number expected":null!=e.end&&e.hasOwnProperty("end")&&"number"!=typeof e.end?"end: number expected":null!=e.colorRed&&e.hasOwnProperty("colorRed")&&"number"!=typeof e.colorRed?"colorRed: number expected":null!=e.colorGreen&&e.hasOwnProperty("colorGreen")&&"number"!=typeof e.colorGreen?"colorGreen: number expected":null!=e.colorBlue&&e.hasOwnProperty("colorBlue")&&"number"!=typeof e.colorBlue?"colorBlue: number expected":null},i.fromObject=function(e){if(e instanceof o.EnvironmentFogUpdate)return e;var t=new o.EnvironmentFogUpdate;return null!=e.mode&&(t.mode=e.mode>>>0),null!=e.density&&(t.density=Number(e.density)),null!=e.start&&(t.start=Number(e.start)),null!=e.end&&(t.end=Number(e.end)),null!=e.colorRed&&(t.colorRed=Number(e.colorRed)),null!=e.colorGreen&&(t.colorGreen=Number(e.colorGreen)),null!=e.colorBlue&&(t.colorBlue=Number(e.colorBlue)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.mode=0,n.density=0,n.start=0,n.end=0,n.colorRed=0,n.colorGreen=0,n.colorBlue=0),null!=e.mode&&e.hasOwnProperty("mode")&&(n.mode=e.mode),null!=e.density&&e.hasOwnProperty("density")&&(n.density=t.json&&!isFinite(e.density)?String(e.density):e.density),null!=e.start&&e.hasOwnProperty("start")&&(n.start=t.json&&!isFinite(e.start)?String(e.start):e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=t.json&&!isFinite(e.end)?String(e.end):e.end),null!=e.colorRed&&e.hasOwnProperty("colorRed")&&(n.colorRed=t.json&&!isFinite(e.colorRed)?String(e.colorRed):e.colorRed),null!=e.colorGreen&&e.hasOwnProperty("colorGreen")&&(n.colorGreen=t.json&&!isFinite(e.colorGreen)?String(e.colorGreen):e.colorGreen),null!=e.colorBlue&&e.hasOwnProperty("colorBlue")&&(n.colorBlue=t.json&&!isFinite(e.colorBlue)?String(e.colorBlue):e.colorBlue),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.EnvironmentSkyUpdate=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return r.prototype.clouds=!1,r.prototype.colorRed=0,r.prototype.colorGreen=0,r.prototype.colorBlue=0,r.prototype.colorRedTop=0,r.prototype.colorGreenTop=0,r.prototype.colorBlueTop=0,r.create=function(e){return new r(e)},r.encode=function(e,t){return t||(t=n.create()),null!=e.clouds&&Object.hasOwnProperty.call(e,"clouds")&&t.uint32(8).bool(e.clouds),null!=e.colorRed&&Object.hasOwnProperty.call(e,"colorRed")&&t.uint32(21).float(e.colorRed),null!=e.colorGreen&&Object.hasOwnProperty.call(e,"colorGreen")&&t.uint32(29).float(e.colorGreen),null!=e.colorBlue&&Object.hasOwnProperty.call(e,"colorBlue")&&t.uint32(37).float(e.colorBlue),null!=e.colorRedTop&&Object.hasOwnProperty.call(e,"colorRedTop")&&t.uint32(45).float(e.colorRedTop),null!=e.colorGreenTop&&Object.hasOwnProperty.call(e,"colorGreenTop")&&t.uint32(53).float(e.colorGreenTop),null!=e.colorBlueTop&&Object.hasOwnProperty.call(e,"colorBlueTop")&&t.uint32(61).float(e.colorBlueTop),t},r.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},r.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.EnvironmentSkyUpdate;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.clouds=e.bool();break;case 2:i.colorRed=e.float();break;case 3:i.colorGreen=e.float();break;case 4:i.colorBlue=e.float();break;case 5:i.colorRedTop=e.float();break;case 6:i.colorGreenTop=e.float();break;case 7:i.colorBlueTop=e.float();break;default:e.skipType(7&s)}}return i},r.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.clouds&&e.hasOwnProperty("clouds")&&"boolean"!=typeof e.clouds?"clouds: boolean expected":null!=e.colorRed&&e.hasOwnProperty("colorRed")&&"number"!=typeof e.colorRed?"colorRed: number expected":null!=e.colorGreen&&e.hasOwnProperty("colorGreen")&&"number"!=typeof e.colorGreen?"colorGreen: number expected":null!=e.colorBlue&&e.hasOwnProperty("colorBlue")&&"number"!=typeof e.colorBlue?"colorBlue: number expected":null!=e.colorRedTop&&e.hasOwnProperty("colorRedTop")&&"number"!=typeof e.colorRedTop?"colorRedTop: number expected":null!=e.colorGreenTop&&e.hasOwnProperty("colorGreenTop")&&"number"!=typeof e.colorGreenTop?"colorGreenTop: number expected":null!=e.colorBlueTop&&e.hasOwnProperty("colorBlueTop")&&"number"!=typeof e.colorBlueTop?"colorBlueTop: number expected":null},r.fromObject=function(e){if(e instanceof o.EnvironmentSkyUpdate)return e;var t=new o.EnvironmentSkyUpdate;return null!=e.clouds&&(t.clouds=Boolean(e.clouds)),null!=e.colorRed&&(t.colorRed=Number(e.colorRed)),null!=e.colorGreen&&(t.colorGreen=Number(e.colorGreen)),null!=e.colorBlue&&(t.colorBlue=Number(e.colorBlue)),null!=e.colorRedTop&&(t.colorRedTop=Number(e.colorRedTop)),null!=e.colorGreenTop&&(t.colorGreenTop=Number(e.colorGreenTop)),null!=e.colorBlueTop&&(t.colorBlueTop=Number(e.colorBlueTop)),t},r.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.clouds=!1,n.colorRed=0,n.colorGreen=0,n.colorBlue=0,n.colorRedTop=0,n.colorGreenTop=0,n.colorBlueTop=0),null!=e.clouds&&e.hasOwnProperty("clouds")&&(n.clouds=e.clouds),null!=e.colorRed&&e.hasOwnProperty("colorRed")&&(n.colorRed=t.json&&!isFinite(e.colorRed)?String(e.colorRed):e.colorRed),null!=e.colorGreen&&e.hasOwnProperty("colorGreen")&&(n.colorGreen=t.json&&!isFinite(e.colorGreen)?String(e.colorGreen):e.colorGreen),null!=e.colorBlue&&e.hasOwnProperty("colorBlue")&&(n.colorBlue=t.json&&!isFinite(e.colorBlue)?String(e.colorBlue):e.colorBlue),null!=e.colorRedTop&&e.hasOwnProperty("colorRedTop")&&(n.colorRedTop=t.json&&!isFinite(e.colorRedTop)?String(e.colorRedTop):e.colorRedTop),null!=e.colorGreenTop&&e.hasOwnProperty("colorGreenTop")&&(n.colorGreenTop=t.json&&!isFinite(e.colorGreenTop)?String(e.colorGreenTop):e.colorGreenTop),null!=e.colorBlueTop&&e.hasOwnProperty("colorBlueTop")&&(n.colorBlueTop=t.json&&!isFinite(e.colorBlueTop)?String(e.colorBlueTop):e.colorBlueTop),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r}(),o.PluginMessage=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.key="",i.prototype.version=0,i.prototype.value=r.newBuffer([]),i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).string(e.key),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(16).uint32(e.version),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(26).bytes(e.value),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.PluginMessage;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.key=e.string();break;case 2:i.version=e.uint32();break;case 3:i.value=e.bytes();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.key&&e.hasOwnProperty("key")&&!r.isString(e.key)?"key: string expected":null!=e.version&&e.hasOwnProperty("version")&&!r.isInteger(e.version)?"version: integer expected":null!=e.value&&e.hasOwnProperty("value")&&!(e.value&&"number"==typeof e.value.length||r.isString(e.value))?"value: buffer expected":null},i.fromObject=function(e){if(e instanceof o.PluginMessage)return e;var t=new o.PluginMessage;return null!=e.key&&(t.key=String(e.key)),null!=e.version&&(t.version=e.version>>>0),null!=e.value&&("string"==typeof e.value?r.base64.decode(e.value,t.value=r.newBuffer(r.base64.length(e.value)),0):e.value.length&&(t.value=e.value)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.key="",n.version=0,t.bytes===String?n.value="":(n.value=[],t.bytes!==Array&&(n.value=r.newBuffer(n.value)))),null!=e.key&&e.hasOwnProperty("key")&&(n.key=e.key),null!=e.version&&e.hasOwnProperty("version")&&(n.version=e.version),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.bytes===String?r.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o})?r.apply(t,o):r)||(e.exports=i)},194:function(e,t,n){"use strict";n.r(t),function(e,r){var o,i=n(135);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var s=Object(i.a)(o);t.default=s}.call(this,n(53),n(195)(e))},195:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},199:function(e,t,n){e.exports=n(276)},227:function(e){e.exports=JSON.parse('{"protocolVersion":3,"protocolVersionRevision":1,"proxyVersion":0,"proxyVersionRevision":3}')},253:function(e,t,n){"use strict";var r=t;function o(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(170),r.BufferWriter=n(262),r.Reader=n(171),r.BufferReader=n(263),r.util=n(81),r.rpc=n(264),r.roots=n(266),r.configure=o,o()},254:function(e,t,n){"use strict";e.exports=function(e,t){var n=new Array(arguments.length-1),r=0,o=2,i=!0;for(;o<arguments.length;)n[r++]=arguments[o++];return new Promise((function(o,s){n[r]=function(e){if(i)if(i=!1,e)s(e);else{for(var t=new Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];o.apply(null,t)}};try{e.apply(t||null,n)}catch(e){i&&(i=!1,s(e))}}))}},255:function(e,t,n){"use strict";var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var o=new Array(64),i=new Array(123),s=0;s<64;)i[o[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;r.encode=function(e,t,n){for(var r,i=null,s=[],l=0,u=0;t<n;){var a=e[t++];switch(u){case 0:s[l++]=o[a>>2],r=(3&a)<<4,u=1;break;case 1:s[l++]=o[r|a>>4],r=(15&a)<<2,u=2;break;case 2:s[l++]=o[r|a>>6],s[l++]=o[63&a],u=0}l>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),l=0)}return u&&(s[l++]=o[r],s[l++]=61,1===u&&(s[l++]=61)),i?(l&&i.push(String.fromCharCode.apply(String,s.slice(0,l))),i.join("")):String.fromCharCode.apply(String,s.slice(0,l))};r.decode=function(e,t,n){for(var r,o=n,s=0,l=0;l<e.length;){var u=e.charCodeAt(l++);if(61===u&&s>1)break;if(void 0===(u=i[u]))throw Error("invalid encoding");switch(s){case 0:r=u,s=1;break;case 1:t[n++]=r<<2|(48&u)>>4,r=u,s=2;break;case 2:t[n++]=(15&r)<<4|(60&u)>>2,r=u,s=3;break;case 3:t[n++]=(3&r)<<6|u,s=0}}if(1===s)throw Error("invalid encoding");return n-o},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},256:function(e,t,n){"use strict";function r(){this._listeners={}}e.exports=r,r.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},r.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r<n.length;)n[r].fn===t?n.splice(r,1):++r;return this},r.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<t.length;)t[r].fn.apply(t[r++].ctx,n)}return this}},257:function(e,t,n){"use strict";function r(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=128===n[3];function o(e,r,o){t[0]=e,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3]}function i(e,r,o){t[0]=e,r[o]=n[3],r[o+1]=n[2],r[o+2]=n[1],r[o+3]=n[0]}function s(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function l(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.writeFloatLE=r?o:i,e.writeFloatBE=r?i:o,e.readFloatLE=r?s:l,e.readFloatBE=r?l:s}():function(){function t(e,t,n,r){var o=t<0?1:0;if(o&&(t=-t),0===t)e(1/t>0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,n,r)}}function n(e,t,n){var r=e(t,n),o=2*(r>>31)+1,i=r>>>23&255,s=8388607&r;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,o),e.writeFloatBE=t.bind(null,i),e.readFloatLE=n.bind(null,s),e.readFloatBE=n.bind(null,l)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function o(e,r,o){t[0]=e,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3],r[o+4]=n[4],r[o+5]=n[5],r[o+6]=n[6],r[o+7]=n[7]}function i(e,r,o){t[0]=e,r[o]=n[7],r[o+1]=n[6],r[o+2]=n[5],r[o+3]=n[4],r[o+4]=n[3],r[o+5]=n[2],r[o+6]=n[1],r[o+7]=n[0]}function s(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function l(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?o:i,e.writeDoubleBE=r?i:o,e.readDoubleLE=r?s:l,e.readDoubleBE=r?l:s}():function(){function t(e,t,n,r,o,i){var s=r<0?1:0;if(s&&(r=-r),0===r)e(0,o,i+t),e(1/r>0?0:2147483648,o,i+n);else if(isNaN(r))e(0,o,i+t),e(2146959360,o,i+n);else if(r>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+n);else{var l;if(r<22250738585072014e-324)e((l=r/5e-324)>>>0,o,i+t),e((s<<31|l/4294967296)>>>0,o,i+n);else{var u=Math.floor(Math.log(r)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(l=r*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*l&1048575)>>>0,o,i+n)}}}function n(e,t,n,r,o){var i=e(r,o+t),s=e(r,o+n),l=2*(s>>31)+1,u=s>>>20&2047,a=4294967296*(1048575&s)+i;return 2047===u?a?NaN:l*(1/0):0===u?5e-324*l*a:l*Math.pow(2,u-1075)*(a+4503599627370496)}e.writeDoubleLE=t.bind(null,o,0,4),e.writeDoubleBE=t.bind(null,i,4,0),e.readDoubleLE=n.bind(null,s,0,4),e.readDoubleBE=n.bind(null,l,4,0)}(),e}function o(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function i(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function s(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function l(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=r(r)},258:function(module,exports,__webpack_require__){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},259:function(e,t,n){"use strict";var r=t;r.length=function(e){for(var t=0,n=0,r=0;r<e.length;++r)(n=e.charCodeAt(r))<128?t+=1:n<2048?t+=2:55296==(64512&n)&&56320==(64512&e.charCodeAt(r+1))?(++r,t+=4):t+=3;return t},r.read=function(e,t,n){if(n-t<1)return"";for(var r,o=null,i=[],s=0;t<n;)(r=e[t++])<128?i[s++]=r:r>191&&r<224?i[s++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[s++]=55296+(r>>10),i[s++]=56320+(1023&r)):i[s++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),s=0);return o?(s&&o.push(String.fromCharCode.apply(String,i.slice(0,s))),o.join("")):String.fromCharCode.apply(String,i.slice(0,s))},r.write=function(e,t,n){for(var r,o,i=n,s=0;s<e.length;++s)(r=e.charCodeAt(s))<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(o=e.charCodeAt(s+1)))?(r=65536+((1023&r)<<10)+(1023&o),++s,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-i}},260:function(e,t,n){"use strict";e.exports=function(e,t,n){var r=n||8192,o=r>>>1,i=null,s=r;return function(n){if(n<1||n>o)return e(n);s+n>r&&(i=e(r),s=0);var l=t.call(i,s,s+=n);return 7&s&&(s=1+(7|s)),l}}},261:function(e,t,n){"use strict";e.exports=o;var r=n(81);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new o(n,r)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(r.isString(e)){if(!r.Long)return o.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var l=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((l.call(e,0)|l.call(e,1)<<8|l.call(e,2)<<16|l.call(e,3)<<24)>>>0,(l.call(e,4)|l.call(e,5)<<8|l.call(e,6)<<16|l.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},262:function(e,t,n){"use strict";e.exports=i;var r=n(170);(i.prototype=Object.create(r.prototype)).constructor=i;var o=n(81);function i(){r.call(this)}function s(e,t,n){e.length<40?o.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r<e.length;)t[n++]=e[r++]}},i.prototype.bytes=function(e){o.isString(e)&&(e=o._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},263:function(e,t,n){"use strict";e.exports=i;var r=n(171);(i.prototype=Object.create(r.prototype)).constructor=i;var o=n(81);function i(e){r.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},264:function(e,t,n){"use strict";t.Service=n(265)},265:function(e,t,n){"use strict";e.exports=o;var r=n(81);function o(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(o.prototype=Object.create(r.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,n,o,i,s){if(!i)throw TypeError("request must be specified");var l=this;if(!s)return r.asPromise(e,l,t,n,o,i);if(l.rpcImpl)try{return l.rpcImpl(t,n[l.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,n){if(e)return l.emit("error",e,t),s(e);if(null!==n){if(!(n instanceof o))try{n=o[l.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return l.emit("error",e,t),s(e)}return l.emit("data",n,t),s(null,n)}l.end(!0)}))}catch(e){return l.emit("error",e,t),void setTimeout((function(){s(e)}),0)}else setTimeout((function(){s(Error("already ended"))}),0)},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},266:function(e,t,n){"use strict";e.exports={}},276:function(e,t,n){"use strict";(function(e){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,l)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.expose=t.isWorkerRuntime=void 0;const i=o(n(179)),s=n(177),l=n(178),u=n(279),a=o(n(280));var c=n(177);Object.defineProperty(t,"registerSerializer",{enumerable:!0,get:function(){return c.registerSerializer}});var p=n(178);Object.defineProperty(t,"Transfer",{enumerable:!0,get:function(){return p.Transfer}}),t.isWorkerRuntime=a.default.isWorkerRuntime;let f=!1;const y=new Map,d=e=>e&&e.type===u.MasterMessageType.run,h=e=>i.default(e)||function(e){return e&&"object"==typeof e&&"function"==typeof e.subscribe}(e);function m(e){return l.isTransferDescriptor(e)?{payload:e.send,transferables:e.transferables}:{payload:e,transferables:void 0}}function b(e,t){const{payload:n,transferables:r}=m(t),o={type:u.WorkerMessageType.error,uid:e,error:s.serialize(n)};a.default.postMessageToMaster(o,r)}function g(e,t,n){const{payload:r,transferables:o}=m(n),i={type:u.WorkerMessageType.result,uid:e,complete:!!t||void 0,payload:r};a.default.postMessageToMaster(i,o)}function O(e){try{const t={type:u.WorkerMessageType.uncaughtError,error:s.serialize(e)};a.default.postMessageToMaster(t)}catch(t){console.error("Not reporting uncaught error back to master thread as it occured while reporting an uncaught error already.\nLatest error:",t,"\nOriginal error:",e)}}function w(e,t,n){return r(this,void 0,void 0,(function*(){let r;try{r=t(...n)}catch(t){return b(e,t)}const o=h(r)?"observable":"promise";if(function(e,t){const n={type:u.WorkerMessageType.running,uid:e,resultType:t};a.default.postMessageToMaster(n)}(e,o),h(r)){const t=r.subscribe(t=>g(e,!1,s.serialize(t)),t=>{b(e,s.serialize(t)),y.delete(e)},()=>{g(e,!0),y.delete(e)});y.set(e,t)}else try{const t=yield r;g(e,!0,s.serialize(t))}catch(t){b(e,s.serialize(t))}}))}t.expose=function(e){if(!a.default.isWorkerRuntime())throw Error("expose() called in the master thread.");if(f)throw Error("expose() called more than once. This is not possible. Pass an object to expose() if you want to expose multiple functions.");if(f=!0,"function"==typeof e)a.default.subscribeToMasterMessages(t=>{d(t)&&!t.method&&w(t.uid,e,t.args.map(s.deserialize))}),function(){const e={type:u.WorkerMessageType.init,exposed:{type:"function"}};a.default.postMessageToMaster(e)}();else{if("object"!=typeof e||!e)throw Error("Invalid argument passed to expose(). Expected a function or an object, got: "+e);a.default.subscribeToMasterMessages(t=>{d(t)&&t.method&&w(t.uid,e[t.method],t.args.map(s.deserialize))});!function(e){const t={type:u.WorkerMessageType.init,exposed:{type:"module",methods:e}};a.default.postMessageToMaster(t)}(Object.keys(e).filter(t=>"function"==typeof e[t]))}a.default.subscribeToMasterMessages(e=>{if((t=e)&&t.type===u.MasterMessageType.cancel){const t=e.uid,n=y.get(t);n&&(n.unsubscribe(),y.delete(t))}var t})},"undefined"!=typeof self&&"function"==typeof self.addEventListener&&a.default.isWorkerRuntime()&&(self.addEventListener("error",e=>{setTimeout(()=>O(e.error||e),250)}),self.addEventListener("unhandledrejection",e=>{const t=e.reason;t&&"string"==typeof t.message&&setTimeout(()=>O(t),250)})),void 0!==e&&"function"==typeof e.on&&a.default.isWorkerRuntime()&&(e.on("uncaughtException",e=>{setTimeout(()=>O(e),250)}),e.on("unhandledRejection",e=>{e&&"string"==typeof e.message&&setTimeout(()=>O(e),250)}))}).call(this,n(56))},277:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultSerializer=t.extendSerializer=void 0,t.extendSerializer=function(e,t){const n=e.deserialize.bind(e),r=e.serialize.bind(e);return{deserialize:e=>t.deserialize(e,n),serialize:e=>t.serialize(e,r)}};const r={deserialize:e=>Object.assign(Error(e.message),{name:e.name,stack:e.stack}),serialize:e=>({__error_marker:"$$error",message:e.message,name:e.name,stack:e.stack})};t.DefaultSerializer={deserialize(e){return(t=e)&&"object"==typeof t&&"__error_marker"in t&&"$$error"===t.__error_marker?r.deserialize(e):e;var t},serialize:e=>e instanceof Error?r.serialize(e):e}},278:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.$worker=t.$transferable=t.$terminate=t.$events=t.$errors=void 0,t.$errors=Symbol("thread.errors"),t.$events=Symbol("thread.events"),t.$terminate=Symbol("thread.terminate"),t.$transferable=Symbol("thread.transferable"),t.$worker=Symbol("thread.worker")},279:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerMessageType=t.MasterMessageType=void 0,function(e){e.cancel="cancel",e.run="run"}(t.MasterMessageType||(t.MasterMessageType={})),function(e){e.error="error",e.init="init",e.result="result",e.running="running",e.uncaughtError="uncaughtError"}(t.WorkerMessageType||(t.WorkerMessageType={}))},280:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={isWorkerRuntime:function(){const e="undefined"!=typeof self&&"undefined"!=typeof Window&&self instanceof Window;return!("undefined"==typeof self||!self.postMessage||e)},postMessageToMaster:function(e,t){self.postMessage(e,t)},subscribeToMasterMessages:function(e){const t=t=>{e(t.data)};return self.addEventListener("message",t),()=>{self.removeEventListener("message",t)}}}},40:function(e,t,n){var r,o,i;o=[n(112)],void 0===(i="function"==typeof(r=function(e){"use strict";var t=e.Reader,n=e.Writer,r=e.util,o=e.roots.default||(e.roots.default={});return o.LoginResponse=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.username="",i.prototype.protocol=0,i.prototype.mobile=!1,i.prototype.client="",i.prototype.uuid="",i.prototype.secret="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.username&&Object.hasOwnProperty.call(e,"username")&&t.uint32(10).string(e.username),null!=e.protocol&&Object.hasOwnProperty.call(e,"protocol")&&t.uint32(16).uint32(e.protocol),null!=e.mobile&&Object.hasOwnProperty.call(e,"mobile")&&t.uint32(24).bool(e.mobile),null!=e.client&&Object.hasOwnProperty.call(e,"client")&&t.uint32(34).string(e.client),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(42).string(e.uuid),null!=e.secret&&Object.hasOwnProperty.call(e,"secret")&&t.uint32(50).string(e.secret),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.LoginResponse;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.username=e.string();break;case 2:i.protocol=e.uint32();break;case 3:i.mobile=e.bool();break;case 4:i.client=e.string();break;case 5:i.uuid=e.string();break;case 6:i.secret=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.username&&e.hasOwnProperty("username")&&!r.isString(e.username)?"username: string expected":null!=e.protocol&&e.hasOwnProperty("protocol")&&!r.isInteger(e.protocol)?"protocol: integer expected":null!=e.mobile&&e.hasOwnProperty("mobile")&&"boolean"!=typeof e.mobile?"mobile: boolean expected":null!=e.client&&e.hasOwnProperty("client")&&!r.isString(e.client)?"client: string expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!r.isString(e.uuid)?"uuid: string expected":null!=e.secret&&e.hasOwnProperty("secret")&&!r.isString(e.secret)?"secret: string expected":null},i.fromObject=function(e){if(e instanceof o.LoginResponse)return e;var t=new o.LoginResponse;return null!=e.username&&(t.username=String(e.username)),null!=e.protocol&&(t.protocol=e.protocol>>>0),null!=e.mobile&&(t.mobile=Boolean(e.mobile)),null!=e.client&&(t.client=String(e.client)),null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.secret&&(t.secret=String(e.secret)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.username="",n.protocol=0,n.mobile=!1,n.client="",n.uuid="",n.secret=""),null!=e.username&&e.hasOwnProperty("username")&&(n.username=e.username),null!=e.protocol&&e.hasOwnProperty("protocol")&&(n.protocol=e.protocol),null!=e.mobile&&e.hasOwnProperty("mobile")&&(n.mobile=e.mobile),null!=e.client&&e.hasOwnProperty("client")&&(n.client=e.client),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.secret&&e.hasOwnProperty("secret")&&(n.secret=e.secret),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.Ping=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.time=r.Long?r.Long.fromBits(0,0,!0):0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&t.uint32(8).uint64(e.time),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.Ping;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.time=e.uint64();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.time&&e.hasOwnProperty("time")&&!(r.isInteger(e.time)||e.time&&r.isInteger(e.time.low)&&r.isInteger(e.time.high))?"time: integer|Long expected":null},i.fromObject=function(e){if(e instanceof o.Ping)return e;var t=new o.Ping;return null!=e.time&&(r.Long?(t.time=r.Long.fromValue(e.time)).unsigned=!0:"string"==typeof e.time?t.time=parseInt(e.time,10):"number"==typeof e.time?t.time=e.time:"object"==typeof e.time&&(t.time=new r.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber(!0))),t},i.toObject=function(e,t){t||(t={});var n={};if(t.defaults)if(r.Long){var o=new r.Long(0,0,!0);n.time=t.longs===String?o.toString():t.longs===Number?o.toNumber():o}else n.time=t.longs===String?"0":0;return null!=e.time&&e.hasOwnProperty("time")&&("number"==typeof e.time?n.time=t.longs===String?String(e.time):e.time:n.time=t.longs===String?r.Long.prototype.toString.call(e.time):t.longs===Number?new r.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber(!0):e.time),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.ActionMove=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return r.prototype.x=0,r.prototype.y=0,r.prototype.z=0,r.create=function(e){return new r(e)},r.encode=function(e,t){return t||(t=n.create()),null!=e.x&&Object.hasOwnProperty.call(e,"x")&&t.uint32(9).double(e.x),null!=e.y&&Object.hasOwnProperty.call(e,"y")&&t.uint32(17).double(e.y),null!=e.z&&Object.hasOwnProperty.call(e,"z")&&t.uint32(25).double(e.z),t},r.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},r.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ActionMove;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.x=e.double();break;case 2:i.y=e.double();break;case 3:i.z=e.double();break;default:e.skipType(7&s)}}return i},r.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.x&&e.hasOwnProperty("x")&&"number"!=typeof e.x?"x: number expected":null!=e.y&&e.hasOwnProperty("y")&&"number"!=typeof e.y?"y: number expected":null!=e.z&&e.hasOwnProperty("z")&&"number"!=typeof e.z?"z: number expected":null},r.fromObject=function(e){if(e instanceof o.ActionMove)return e;var t=new o.ActionMove;return null!=e.x&&(t.x=Number(e.x)),null!=e.y&&(t.y=Number(e.y)),null!=e.z&&(t.z=Number(e.z)),t},r.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.x=0,n.y=0,n.z=0),null!=e.x&&e.hasOwnProperty("x")&&(n.x=t.json&&!isFinite(e.x)?String(e.x):e.x),null!=e.y&&e.hasOwnProperty("y")&&(n.y=t.json&&!isFinite(e.y)?String(e.y):e.y),null!=e.z&&e.hasOwnProperty("z")&&(n.z=t.json&&!isFinite(e.z)?String(e.z):e.z),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r}(),o.ActionLook=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return r.prototype.rotation=0,r.prototype.pitch=0,r.create=function(e){return new r(e)},r.encode=function(e,t){return t||(t=n.create()),null!=e.rotation&&Object.hasOwnProperty.call(e,"rotation")&&t.uint32(13).float(e.rotation),null!=e.pitch&&Object.hasOwnProperty.call(e,"pitch")&&t.uint32(21).float(e.pitch),t},r.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},r.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ActionLook;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.rotation=e.float();break;case 2:i.pitch=e.float();break;default:e.skipType(7&s)}}return i},r.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.rotation&&e.hasOwnProperty("rotation")&&"number"!=typeof e.rotation?"rotation: number expected":null!=e.pitch&&e.hasOwnProperty("pitch")&&"number"!=typeof e.pitch?"pitch: number expected":null},r.fromObject=function(e){if(e instanceof o.ActionLook)return e;var t=new o.ActionLook;return null!=e.rotation&&(t.rotation=Number(e.rotation)),null!=e.pitch&&(t.pitch=Number(e.pitch)),t},r.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.rotation=0,n.pitch=0),null!=e.rotation&&e.hasOwnProperty("rotation")&&(n.rotation=t.json&&!isFinite(e.rotation)?String(e.rotation):e.rotation),null!=e.pitch&&e.hasOwnProperty("pitch")&&(n.pitch=t.json&&!isFinite(e.pitch)?String(e.pitch):e.pitch),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r}(),o.ActionMoveLook=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return r.prototype.x=0,r.prototype.y=0,r.prototype.z=0,r.prototype.rotation=0,r.prototype.pitch=0,r.create=function(e){return new r(e)},r.encode=function(e,t){return t||(t=n.create()),null!=e.x&&Object.hasOwnProperty.call(e,"x")&&t.uint32(9).double(e.x),null!=e.y&&Object.hasOwnProperty.call(e,"y")&&t.uint32(17).double(e.y),null!=e.z&&Object.hasOwnProperty.call(e,"z")&&t.uint32(25).double(e.z),null!=e.rotation&&Object.hasOwnProperty.call(e,"rotation")&&t.uint32(37).float(e.rotation),null!=e.pitch&&Object.hasOwnProperty.call(e,"pitch")&&t.uint32(45).float(e.pitch),t},r.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},r.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ActionMoveLook;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.x=e.double();break;case 2:i.y=e.double();break;case 3:i.z=e.double();break;case 4:i.rotation=e.float();break;case 5:i.pitch=e.float();break;default:e.skipType(7&s)}}return i},r.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.x&&e.hasOwnProperty("x")&&"number"!=typeof e.x?"x: number expected":null!=e.y&&e.hasOwnProperty("y")&&"number"!=typeof e.y?"y: number expected":null!=e.z&&e.hasOwnProperty("z")&&"number"!=typeof e.z?"z: number expected":null!=e.rotation&&e.hasOwnProperty("rotation")&&"number"!=typeof e.rotation?"rotation: number expected":null!=e.pitch&&e.hasOwnProperty("pitch")&&"number"!=typeof e.pitch?"pitch: number expected":null},r.fromObject=function(e){if(e instanceof o.ActionMoveLook)return e;var t=new o.ActionMoveLook;return null!=e.x&&(t.x=Number(e.x)),null!=e.y&&(t.y=Number(e.y)),null!=e.z&&(t.z=Number(e.z)),null!=e.rotation&&(t.rotation=Number(e.rotation)),null!=e.pitch&&(t.pitch=Number(e.pitch)),t},r.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.x=0,n.y=0,n.z=0,n.rotation=0,n.pitch=0),null!=e.x&&e.hasOwnProperty("x")&&(n.x=t.json&&!isFinite(e.x)?String(e.x):e.x),null!=e.y&&e.hasOwnProperty("y")&&(n.y=t.json&&!isFinite(e.y)?String(e.y):e.y),null!=e.z&&e.hasOwnProperty("z")&&(n.z=t.json&&!isFinite(e.z)?String(e.z):e.z),null!=e.rotation&&e.hasOwnProperty("rotation")&&(n.rotation=t.json&&!isFinite(e.rotation)?String(e.rotation):e.rotation),null!=e.pitch&&e.hasOwnProperty("pitch")&&(n.pitch=t.json&&!isFinite(e.pitch)?String(e.pitch):e.pitch),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r}(),o.ActionMessage=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.message="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(10).string(e.message),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ActionMessage;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.message=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.message&&e.hasOwnProperty("message")&&!r.isString(e.message)?"message: string expected":null},i.fromObject=function(e){if(e instanceof o.ActionMessage)return e;var t=new o.ActionMessage;return null!=e.message&&(t.message=String(e.message)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.message=""),null!=e.message&&e.hasOwnProperty("message")&&(n.message=e.message),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.ActionBlockPlace=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.x=0,i.prototype.y=0,i.prototype.z=0,i.prototype.x2=0,i.prototype.y2=0,i.prototype.z2=0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.x&&Object.hasOwnProperty.call(e,"x")&&t.uint32(8).sint32(e.x),null!=e.y&&Object.hasOwnProperty.call(e,"y")&&t.uint32(16).sint32(e.y),null!=e.z&&Object.hasOwnProperty.call(e,"z")&&t.uint32(24).sint32(e.z),null!=e.x2&&Object.hasOwnProperty.call(e,"x2")&&t.uint32(32).sint32(e.x2),null!=e.y2&&Object.hasOwnProperty.call(e,"y2")&&t.uint32(40).sint32(e.y2),null!=e.z2&&Object.hasOwnProperty.call(e,"z2")&&t.uint32(48).sint32(e.z2),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ActionBlockPlace;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.x=e.sint32();break;case 2:i.y=e.sint32();break;case 3:i.z=e.sint32();break;case 4:i.x2=e.sint32();break;case 5:i.y2=e.sint32();break;case 6:i.z2=e.sint32();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.x&&e.hasOwnProperty("x")&&!r.isInteger(e.x)?"x: integer expected":null!=e.y&&e.hasOwnProperty("y")&&!r.isInteger(e.y)?"y: integer expected":null!=e.z&&e.hasOwnProperty("z")&&!r.isInteger(e.z)?"z: integer expected":null!=e.x2&&e.hasOwnProperty("x2")&&!r.isInteger(e.x2)?"x2: integer expected":null!=e.y2&&e.hasOwnProperty("y2")&&!r.isInteger(e.y2)?"y2: integer expected":null!=e.z2&&e.hasOwnProperty("z2")&&!r.isInteger(e.z2)?"z2: integer expected":null},i.fromObject=function(e){if(e instanceof o.ActionBlockPlace)return e;var t=new o.ActionBlockPlace;return null!=e.x&&(t.x=0|e.x),null!=e.y&&(t.y=0|e.y),null!=e.z&&(t.z=0|e.z),null!=e.x2&&(t.x2=0|e.x2),null!=e.y2&&(t.y2=0|e.y2),null!=e.z2&&(t.z2=0|e.z2),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.x=0,n.y=0,n.z=0,n.x2=0,n.y2=0,n.z2=0),null!=e.x&&e.hasOwnProperty("x")&&(n.x=e.x),null!=e.y&&e.hasOwnProperty("y")&&(n.y=e.y),null!=e.z&&e.hasOwnProperty("z")&&(n.z=e.z),null!=e.x2&&e.hasOwnProperty("x2")&&(n.x2=e.x2),null!=e.y2&&e.hasOwnProperty("y2")&&(n.y2=e.y2),null!=e.z2&&e.hasOwnProperty("z2")&&(n.z2=e.z2),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.ActionBlockBreak=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.x=0,i.prototype.y=0,i.prototype.z=0,i.prototype.finished=!1,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.x&&Object.hasOwnProperty.call(e,"x")&&t.uint32(8).sint32(e.x),null!=e.y&&Object.hasOwnProperty.call(e,"y")&&t.uint32(16).sint32(e.y),null!=e.z&&Object.hasOwnProperty.call(e,"z")&&t.uint32(24).sint32(e.z),null!=e.finished&&Object.hasOwnProperty.call(e,"finished")&&t.uint32(32).bool(e.finished),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ActionBlockBreak;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.x=e.sint32();break;case 2:i.y=e.sint32();break;case 3:i.z=e.sint32();break;case 4:i.finished=e.bool();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.x&&e.hasOwnProperty("x")&&!r.isInteger(e.x)?"x: integer expected":null!=e.y&&e.hasOwnProperty("y")&&!r.isInteger(e.y)?"y: integer expected":null!=e.z&&e.hasOwnProperty("z")&&!r.isInteger(e.z)?"z: integer expected":null!=e.finished&&e.hasOwnProperty("finished")&&"boolean"!=typeof e.finished?"finished: boolean expected":null},i.fromObject=function(e){if(e instanceof o.ActionBlockBreak)return e;var t=new o.ActionBlockBreak;return null!=e.x&&(t.x=0|e.x),null!=e.y&&(t.y=0|e.y),null!=e.z&&(t.z=0|e.z),null!=e.finished&&(t.finished=Boolean(e.finished)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.x=0,n.y=0,n.z=0,n.finished=!1),null!=e.x&&e.hasOwnProperty("x")&&(n.x=e.x),null!=e.y&&e.hasOwnProperty("y")&&(n.y=e.y),null!=e.z&&e.hasOwnProperty("z")&&(n.z=e.z),null!=e.finished&&e.hasOwnProperty("finished")&&(n.finished=e.finished),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.ActionInventoryClick=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var s,l;return i.prototype.slot=0,i.prototype.type=0,i.prototype.inventory=0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.slot&&Object.hasOwnProperty.call(e,"slot")&&t.uint32(8).sint32(e.slot),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(16).int32(e.type),null!=e.inventory&&Object.hasOwnProperty.call(e,"inventory")&&t.uint32(24).int32(e.inventory),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ActionInventoryClick;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.slot=e.sint32();break;case 2:i.type=e.int32();break;case 3:i.inventory=e.int32();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.slot&&e.hasOwnProperty("slot")&&!r.isInteger(e.slot))return"slot: integer expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:}if(null!=e.inventory&&e.hasOwnProperty("inventory"))switch(e.inventory){default:return"inventory: enum value expected";case 0:case 1:case 2:case 3:}return null},i.fromObject=function(e){if(e instanceof o.ActionInventoryClick)return e;var t=new o.ActionInventoryClick;switch(null!=e.slot&&(t.slot=0|e.slot),e.type){case"LEFT":case 0:t.type=0;break;case"RIGHT":case 1:t.type=1;break;case"MIDDLE":case 2:t.type=2;break;case"SELECT":case 3:t.type=3}switch(e.inventory){case"MAIN":case 0:t.inventory=0;break;case"ARMOR":case 1:t.inventory=1;break;case"CRAFTING":case 2:t.inventory=2;break;case"HOOK":case 3:t.inventory=3}return t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.slot=0,n.type=t.enums===String?"LEFT":0,n.inventory=t.enums===String?"MAIN":0),null!=e.slot&&e.hasOwnProperty("slot")&&(n.slot=e.slot),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?o.ActionInventoryClick.Type[e.type]:e.type),null!=e.inventory&&e.hasOwnProperty("inventory")&&(n.inventory=t.enums===String?o.ActionInventoryClick.TypeInv[e.inventory]:e.inventory),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i.Type=(s={},(l=Object.create(s))[s[0]="LEFT"]=0,l[s[1]="RIGHT"]=1,l[s[2]="MIDDLE"]=2,l[s[3]="SELECT"]=3,l),i.TypeInv=function(){var e={},t=Object.create(e);return t[e[0]="MAIN"]=0,t[e[1]="ARMOR"]=1,t[e[2]="CRAFTING"]=2,t[e[3]="HOOK"]=3,t}(),i}(),o.ActionInventoryPick=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.slot=0,i.prototype.slot2=0,i.prototype.block=0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.slot&&Object.hasOwnProperty.call(e,"slot")&&t.uint32(8).sint32(e.slot),null!=e.slot2&&Object.hasOwnProperty.call(e,"slot2")&&t.uint32(16).sint32(e.slot2),null!=e.block&&Object.hasOwnProperty.call(e,"block")&&t.uint32(24).sint32(e.block),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ActionInventoryPick;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.slot=e.sint32();break;case 2:i.slot2=e.sint32();break;case 3:i.block=e.sint32();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.slot&&e.hasOwnProperty("slot")&&!r.isInteger(e.slot)?"slot: integer expected":null!=e.slot2&&e.hasOwnProperty("slot2")&&!r.isInteger(e.slot2)?"slot2: integer expected":null!=e.block&&e.hasOwnProperty("block")&&!r.isInteger(e.block)?"block: integer expected":null},i.fromObject=function(e){if(e instanceof o.ActionInventoryPick)return e;var t=new o.ActionInventoryPick;return null!=e.slot&&(t.slot=0|e.slot),null!=e.slot2&&(t.slot2=0|e.slot2),null!=e.block&&(t.block=0|e.block),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.slot=0,n.slot2=0,n.block=0),null!=e.slot&&e.hasOwnProperty("slot")&&(n.slot=e.slot),null!=e.slot2&&e.hasOwnProperty("slot2")&&(n.slot2=e.slot2),null!=e.block&&e.hasOwnProperty("block")&&(n.block=e.block),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.ActionInventoryOpen=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var i,s;return r.prototype.inventory=0,r.create=function(e){return new r(e)},r.encode=function(e,t){return t||(t=n.create()),null!=e.inventory&&Object.hasOwnProperty.call(e,"inventory")&&t.uint32(8).int32(e.inventory),t},r.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},r.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ActionInventoryOpen;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.inventory=e.int32();break;default:e.skipType(7&s)}}return i},r.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},r.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.inventory&&e.hasOwnProperty("inventory"))switch(e.inventory){default:return"inventory: enum value expected";case 0:case 1:case 2:case 3:}return null},r.fromObject=function(e){if(e instanceof o.ActionInventoryOpen)return e;var t=new o.ActionInventoryOpen;switch(e.inventory){case"MAIN":case 0:t.inventory=0;break;case"CHEST":case 1:t.inventory=1;break;case"CRAFTING":case 2:t.inventory=2;break;case"FURNACE":case 3:t.inventory=3}return t},r.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.inventory=t.enums===String?"MAIN":0),null!=e.inventory&&e.hasOwnProperty("inventory")&&(n.inventory=t.enums===String?o.ActionInventoryOpen.Type[e.inventory]:e.inventory),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.Type=(i={},(s=Object.create(i))[i[0]="MAIN"]=0,s[i[1]="CHEST"]=1,s[i[2]="CRAFTING"]=2,s[i[3]="FURNACE"]=3,s),r}(),o.ActionInventoryClose=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var i,s;return r.prototype.inventory=0,r.create=function(e){return new r(e)},r.encode=function(e,t){return t||(t=n.create()),null!=e.inventory&&Object.hasOwnProperty.call(e,"inventory")&&t.uint32(8).int32(e.inventory),t},r.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},r.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ActionInventoryClose;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.inventory=e.int32();break;default:e.skipType(7&s)}}return i},r.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},r.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.inventory&&e.hasOwnProperty("inventory"))switch(e.inventory){default:return"inventory: enum value expected";case 0:case 1:case 2:case 3:}return null},r.fromObject=function(e){if(e instanceof o.ActionInventoryClose)return e;var t=new o.ActionInventoryClose;switch(e.inventory){case"MAIN":case 0:t.inventory=0;break;case"CHEST":case 1:t.inventory=1;break;case"CRAFTING":case 2:t.inventory=2;break;case"FURNACE":case 3:t.inventory=3}return t},r.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.inventory=t.enums===String?"MAIN":0),null!=e.inventory&&e.hasOwnProperty("inventory")&&(n.inventory=t.enums===String?o.ActionInventoryClose.Type[e.inventory]:e.inventory),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.Type=(i={},(s=Object.create(i))[i[0]="MAIN"]=0,s[i[1]="CHEST"]=1,s[i[2]="CRAFTING"]=2,s[i[3]="FURNACE"]=3,s),r}(),o.ActionClick=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.x=0,i.prototype.y=0,i.prototype.z=0,i.prototype.type="",i.prototype.onBlock=!1,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.x&&Object.hasOwnProperty.call(e,"x")&&t.uint32(8).sint32(e.x),null!=e.y&&Object.hasOwnProperty.call(e,"y")&&t.uint32(16).sint32(e.y),null!=e.z&&Object.hasOwnProperty.call(e,"z")&&t.uint32(24).sint32(e.z),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(34).string(e.type),null!=e.onBlock&&Object.hasOwnProperty.call(e,"onBlock")&&t.uint32(40).bool(e.onBlock),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ActionClick;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.x=e.sint32();break;case 2:i.y=e.sint32();break;case 3:i.z=e.sint32();break;case 4:i.type=e.string();break;case 5:i.onBlock=e.bool();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.x&&e.hasOwnProperty("x")&&!r.isInteger(e.x)?"x: integer expected":null!=e.y&&e.hasOwnProperty("y")&&!r.isInteger(e.y)?"y: integer expected":null!=e.z&&e.hasOwnProperty("z")&&!r.isInteger(e.z)?"z: integer expected":null!=e.type&&e.hasOwnProperty("type")&&!r.isString(e.type)?"type: string expected":null!=e.onBlock&&e.hasOwnProperty("onBlock")&&"boolean"!=typeof e.onBlock?"onBlock: boolean expected":null},i.fromObject=function(e){if(e instanceof o.ActionClick)return e;var t=new o.ActionClick;return null!=e.x&&(t.x=0|e.x),null!=e.y&&(t.y=0|e.y),null!=e.z&&(t.z=0|e.z),null!=e.type&&(t.type=String(e.type)),null!=e.onBlock&&(t.onBlock=Boolean(e.onBlock)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.x=0,n.y=0,n.z=0,n.type="",n.onBlock=!1),null!=e.x&&e.hasOwnProperty("x")&&(n.x=e.x),null!=e.y&&e.hasOwnProperty("y")&&(n.y=e.y),null!=e.z&&e.hasOwnProperty("z")&&(n.z=e.z),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.onBlock&&e.hasOwnProperty("onBlock")&&(n.onBlock=e.onBlock),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.ActionClickEntity=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.uuid="",i.prototype.type="",i.prototype.distance=0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(18).string(e.type),null!=e.distance&&Object.hasOwnProperty.call(e,"distance")&&t.uint32(29).float(e.distance),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ActionClickEntity;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.uuid=e.string();break;case 2:i.type=e.string();break;case 3:i.distance=e.float();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!r.isString(e.uuid)?"uuid: string expected":null!=e.type&&e.hasOwnProperty("type")&&!r.isString(e.type)?"type: string expected":null!=e.distance&&e.hasOwnProperty("distance")&&"number"!=typeof e.distance?"distance: number expected":null},i.fromObject=function(e){if(e instanceof o.ActionClickEntity)return e;var t=new o.ActionClickEntity;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.type&&(t.type=String(e.type)),null!=e.distance&&(t.distance=Number(e.distance)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.uuid="",n.type="",n.distance=0),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.distance&&e.hasOwnProperty("distance")&&(n.distance=t.json&&!isFinite(e.distance)?String(e.distance):e.distance),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.ActionKeyPress=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.key="",i.prototype.type=!1,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).string(e.key),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(16).bool(e.type),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ActionKeyPress;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.key=e.string();break;case 2:i.type=e.bool();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.key&&e.hasOwnProperty("key")&&!r.isString(e.key)?"key: string expected":null!=e.type&&e.hasOwnProperty("type")&&"boolean"!=typeof e.type?"type: boolean expected":null},i.fromObject=function(e){if(e instanceof o.ActionKeyPress)return e;var t=new o.ActionKeyPress;return null!=e.key&&(t.key=String(e.key)),null!=e.type&&(t.type=Boolean(e.type)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.key="",n.type=!1),null!=e.key&&e.hasOwnProperty("key")&&(n.key=e.key),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.WorldChunkIsLoadedResponce=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.x=0,i.prototype.y=0,i.prototype.z=0,i.prototype.loaded=!1,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.x&&Object.hasOwnProperty.call(e,"x")&&t.uint32(8).sint32(e.x),null!=e.y&&Object.hasOwnProperty.call(e,"y")&&t.uint32(16).sint32(e.y),null!=e.z&&Object.hasOwnProperty.call(e,"z")&&t.uint32(24).sint32(e.z),null!=e.loaded&&Object.hasOwnProperty.call(e,"loaded")&&t.uint32(32).bool(e.loaded),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.WorldChunkIsLoadedResponce;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.x=e.sint32();break;case 2:i.y=e.sint32();break;case 3:i.z=e.sint32();break;case 4:i.loaded=e.bool();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.x&&e.hasOwnProperty("x")&&!r.isInteger(e.x)?"x: integer expected":null!=e.y&&e.hasOwnProperty("y")&&!r.isInteger(e.y)?"y: integer expected":null!=e.z&&e.hasOwnProperty("z")&&!r.isInteger(e.z)?"z: integer expected":null!=e.loaded&&e.hasOwnProperty("loaded")&&"boolean"!=typeof e.loaded?"loaded: boolean expected":null},i.fromObject=function(e){if(e instanceof o.WorldChunkIsLoadedResponce)return e;var t=new o.WorldChunkIsLoadedResponce;return null!=e.x&&(t.x=0|e.x),null!=e.y&&(t.y=0|e.y),null!=e.z&&(t.z=0|e.z),null!=e.loaded&&(t.loaded=Boolean(e.loaded)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.x=0,n.y=0,n.z=0,n.loaded=!1),null!=e.x&&e.hasOwnProperty("x")&&(n.x=e.x),null!=e.y&&e.hasOwnProperty("y")&&(n.y=e.y),null!=e.z&&e.hasOwnProperty("z")&&(n.z=e.z),null!=e.loaded&&e.hasOwnProperty("loaded")&&(n.loaded=e.loaded),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.PluginMessage=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.key="",i.prototype.version=0,i.prototype.value=r.newBuffer([]),i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).string(e.key),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(16).uint32(e.version),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(26).bytes(e.value),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.PluginMessage;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.key=e.string();break;case 2:i.version=e.uint32();break;case 3:i.value=e.bytes();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.key&&e.hasOwnProperty("key")&&!r.isString(e.key)?"key: string expected":null!=e.version&&e.hasOwnProperty("version")&&!r.isInteger(e.version)?"version: integer expected":null!=e.value&&e.hasOwnProperty("value")&&!(e.value&&"number"==typeof e.value.length||r.isString(e.value))?"value: buffer expected":null},i.fromObject=function(e){if(e instanceof o.PluginMessage)return e;var t=new o.PluginMessage;return null!=e.key&&(t.key=String(e.key)),null!=e.version&&(t.version=e.version>>>0),null!=e.value&&("string"==typeof e.value?r.base64.decode(e.value,t.value=r.newBuffer(r.base64.length(e.value)),0):e.value.length&&(t.value=e.value)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.key="",n.version=0,t.bytes===String?n.value="":(n.value=[],t.bytes!==Array&&(n.value=r.newBuffer(n.value)))),null!=e.key&&e.hasOwnProperty("key")&&(n.key=e.key),null!=e.version&&e.hasOwnProperty("version")&&(n.version=e.version),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.bytes===String?r.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o})?r.apply(t,o):r)||(e.exports=i)},426:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.parseToMessage=t.parseToObject=t.proxyVersionRevision=t.proxyVersion=t.protocolVersionRevision=t.protocolVersion=void 0;var l=i(n(40)),u=i(n(183)),a=i(n(568)),c=i(n(569)),p=s(n(570)),f=s(n(571)),y=s(n(572)),d=s(n(573)),h=s(n(574)),m=s(n(575)),b=s(n(576)),g=s(n(577)),O=n(227);r(t,O,"protocolVersion"),r(t,O,"protocolVersionRevision"),r(t,O,"proxyVersion"),r(t,O,"proxyVersionRevision"),p.default.forEach((function(e,t){return y.default[e]=t})),f.default.forEach((function(e,t){return d.default[e]=t})),h.default.forEach((function(e,t){return b.default[e]=t})),m.default.forEach((function(e,t){return g.default[e]=t})),t.parseToObject=function(e,t){var n,r="";switch(e){case"server":r=f.default[t[0]],n=u[r];break;case"client":r=p.default[t[0]],n=l[r];break;case"proxy-server":r=m.default[t[0]],n=c[r];break;case"proxy-client":r=h.default[t[0]],n=a[r];break;default:return null}if(null==r)return null;var o=t.slice(1),i=n.decode(o),s=null;return(s=null!=n?n.verify(i):"Invalid packet")?(console.error("Invalid "+e+" packet! Type: "+r,s),null):{data:n.toObject(i,{defaults:!0}),type:r}},t.parseToMessage=function(e,t,n){var r,o=0;switch(e){case"server":o=d.default[t],r=u[t];break;case"client":o=y.default[t],r=l[t];break;case"proxy-server":o=g.default[t],r=c[t];break;case"proxy-client":o=b.default[t],r=a[t];break;default:return null}var i=null;if(i=null!=r?r.verify(n):"Invalid packet")return console.error("Invalid "+e+" packet! Type: "+t,n,i),null;var s=r.create(n),p=r.encode(s).finish(),f=new Uint8Array(1+p.length);return f.set([o]),f.set(p,1),f.buffer}},53:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},56:function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,a=[],c=!1,p=-1;function f(){c&&u&&(c=!1,u.length?a=u.concat(a):p=-1,a.length&&y())}function y(){if(!c){var e=l(f);c=!0;for(var t=a.length;t;){for(u=a,a=[];++p<t;)u&&u[p].run();p=-1,t=a.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];a.push(new d(e,t)),1!==a.length||c||l(y)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},567:function(e,t,n){"use strict";n.r(t);var r=n(199),o=n(426);Object(r.expose)({parseToMessage:o.parseToMessage,parseToObject:o.parseToObject}),self.rootWindow={location:{reload(){}}}},568:function(e,t,n){var r,o,i;o=[n(112)],void 0===(i="function"==typeof(r=function(e){"use strict";var t=e.Reader,n=e.Writer,r=e.util,o=e.roots.default||(e.roots.default={});return o.AuthRequest=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.username="",i.prototype.protocol=0,i.prototype.client="",i.prototype.uuid="",i.prototype.secret="",i.prototype.serverId="",i.prototype.proxySupportedVersion=0,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.username&&Object.hasOwnProperty.call(e,"username")&&t.uint32(10).string(e.username),null!=e.protocol&&Object.hasOwnProperty.call(e,"protocol")&&t.uint32(16).uint32(e.protocol),null!=e.client&&Object.hasOwnProperty.call(e,"client")&&t.uint32(26).string(e.client),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(34).string(e.uuid),null!=e.secret&&Object.hasOwnProperty.call(e,"secret")&&t.uint32(42).string(e.secret),null!=e.serverId&&Object.hasOwnProperty.call(e,"serverId")&&t.uint32(50).string(e.serverId),null!=e.proxySupportedVersion&&Object.hasOwnProperty.call(e,"proxySupportedVersion")&&t.uint32(56).uint32(e.proxySupportedVersion),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.AuthRequest;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.username=e.string();break;case 2:i.protocol=e.uint32();break;case 3:i.client=e.string();break;case 4:i.uuid=e.string();break;case 5:i.secret=e.string();break;case 6:i.serverId=e.string();break;case 7:i.proxySupportedVersion=e.uint32();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.username&&e.hasOwnProperty("username")&&!r.isString(e.username)?"username: string expected":null!=e.protocol&&e.hasOwnProperty("protocol")&&!r.isInteger(e.protocol)?"protocol: integer expected":null!=e.client&&e.hasOwnProperty("client")&&!r.isString(e.client)?"client: string expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!r.isString(e.uuid)?"uuid: string expected":null!=e.secret&&e.hasOwnProperty("secret")&&!r.isString(e.secret)?"secret: string expected":null!=e.serverId&&e.hasOwnProperty("serverId")&&!r.isString(e.serverId)?"serverId: string expected":null!=e.proxySupportedVersion&&e.hasOwnProperty("proxySupportedVersion")&&!r.isInteger(e.proxySupportedVersion)?"proxySupportedVersion: integer expected":null},i.fromObject=function(e){if(e instanceof o.AuthRequest)return e;var t=new o.AuthRequest;return null!=e.username&&(t.username=String(e.username)),null!=e.protocol&&(t.protocol=e.protocol>>>0),null!=e.client&&(t.client=String(e.client)),null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.secret&&(t.secret=String(e.secret)),null!=e.serverId&&(t.serverId=String(e.serverId)),null!=e.proxySupportedVersion&&(t.proxySupportedVersion=e.proxySupportedVersion>>>0),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.username="",n.protocol=0,n.client="",n.uuid="",n.secret="",n.serverId="",n.proxySupportedVersion=0),null!=e.username&&e.hasOwnProperty("username")&&(n.username=e.username),null!=e.protocol&&e.hasOwnProperty("protocol")&&(n.protocol=e.protocol),null!=e.client&&e.hasOwnProperty("client")&&(n.client=e.client),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.secret&&e.hasOwnProperty("secret")&&(n.secret=e.secret),null!=e.serverId&&e.hasOwnProperty("serverId")&&(n.serverId=e.serverId),null!=e.proxySupportedVersion&&e.hasOwnProperty("proxySupportedVersion")&&(n.proxySupportedVersion=e.proxySupportedVersion),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.Ready=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return r.prototype.ready=!1,r.create=function(e){return new r(e)},r.encode=function(e,t){return t||(t=n.create()),null!=e.ready&&Object.hasOwnProperty.call(e,"ready")&&t.uint32(8).bool(e.ready),t},r.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},r.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.Ready;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.ready=e.bool();break;default:e.skipType(7&s)}}return i},r.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.ready&&e.hasOwnProperty("ready")&&"boolean"!=typeof e.ready?"ready: boolean expected":null},r.fromObject=function(e){if(e instanceof o.Ready)return e;var t=new o.Ready;return null!=e.ready&&(t.ready=Boolean(e.ready)),t},r.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.ready=!1),null!=e.ready&&e.hasOwnProperty("ready")&&(n.ready=e.ready),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r}(),o.Data=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.message=r.newBuffer([]),i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(10).bytes(e.message),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.Data;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.message=e.bytes();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.message&&e.hasOwnProperty("message")&&!(e.message&&"number"==typeof e.message.length||r.isString(e.message))?"message: buffer expected":null},i.fromObject=function(e){if(e instanceof o.Data)return e;var t=new o.Data;return null!=e.message&&("string"==typeof e.message?r.base64.decode(e.message,t.message=r.newBuffer(r.base64.length(e.message)),0):e.message.length&&(t.message=e.message)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.message="":(n.message=[],t.bytes!==Array&&(n.message=r.newBuffer(n.message)))),null!=e.message&&e.hasOwnProperty("message")&&(n.message=t.bytes===String?r.base64.encode(e.message,0,e.message.length):t.bytes===Array?Array.prototype.slice.call(e.message):e.message),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.VoxelSrvMessage=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.message=r.newBuffer([]),i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(10).bytes(e.message),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.VoxelSrvMessage;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.message=e.bytes();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.message&&e.hasOwnProperty("message")&&!(e.message&&"number"==typeof e.message.length||r.isString(e.message))?"message: buffer expected":null},i.fromObject=function(e){if(e instanceof o.VoxelSrvMessage)return e;var t=new o.VoxelSrvMessage;return null!=e.message&&("string"==typeof e.message?r.base64.decode(e.message,t.message=r.newBuffer(r.base64.length(e.message)),0):e.message.length&&(t.message=e.message)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.message="":(n.message=[],t.bytes!==Array&&(n.message=r.newBuffer(n.message)))),null!=e.message&&e.hasOwnProperty("message")&&(n.message=t.bytes===String?r.base64.encode(e.message,0,e.message.length):t.bytes===Array?Array.prototype.slice.call(e.message):e.message),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.ProxyMessage=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.message=r.newBuffer([]),i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(10).bytes(e.message),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ProxyMessage;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.message=e.bytes();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.message&&e.hasOwnProperty("message")&&!(e.message&&"number"==typeof e.message.length||r.isString(e.message))?"message: buffer expected":null},i.fromObject=function(e){if(e instanceof o.ProxyMessage)return e;var t=new o.ProxyMessage;return null!=e.message&&("string"==typeof e.message?r.base64.decode(e.message,t.message=r.newBuffer(r.base64.length(e.message)),0):e.message.length&&(t.message=e.message)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.message="":(n.message=[],t.bytes!==Array&&(n.message=r.newBuffer(n.message)))),null!=e.message&&e.hasOwnProperty("message")&&(n.message=t.bytes===String?r.base64.encode(e.message,0,e.message.length):t.bytes===Array?Array.prototype.slice.call(e.message):e.message),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o})?r.apply(t,o):r)||(e.exports=i)},569:function(e,t,n){var r,o,i;o=[n(112)],void 0===(i="function"==typeof(r=function(e){"use strict";var t=e.Reader,n=e.Writer,r=e.util,o=e.roots.default||(e.roots.default={});return o.ProxyInfo=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.name="",i.prototype.proxyProtocol=0,i.prototype.onlinePlayers=0,i.prototype.maxPlayers=0,i.prototype.motd="",i.prototype.software="",i.prototype.auth=!1,i.prototype.secret="",i.prototype.isProxy=!1,i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.proxyProtocol&&Object.hasOwnProperty.call(e,"proxyProtocol")&&t.uint32(16).uint32(e.proxyProtocol),null!=e.onlinePlayers&&Object.hasOwnProperty.call(e,"onlinePlayers")&&t.uint32(24).uint32(e.onlinePlayers),null!=e.maxPlayers&&Object.hasOwnProperty.call(e,"maxPlayers")&&t.uint32(32).uint32(e.maxPlayers),null!=e.motd&&Object.hasOwnProperty.call(e,"motd")&&t.uint32(42).string(e.motd),null!=e.software&&Object.hasOwnProperty.call(e,"software")&&t.uint32(50).string(e.software),null!=e.auth&&Object.hasOwnProperty.call(e,"auth")&&t.uint32(56).bool(e.auth),null!=e.secret&&Object.hasOwnProperty.call(e,"secret")&&t.uint32(66).string(e.secret),null!=e.isProxy&&Object.hasOwnProperty.call(e,"isProxy")&&t.uint32(72).bool(e.isProxy),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ProxyInfo;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.name=e.string();break;case 2:i.proxyProtocol=e.uint32();break;case 3:i.onlinePlayers=e.uint32();break;case 4:i.maxPlayers=e.uint32();break;case 5:i.motd=e.string();break;case 6:i.software=e.string();break;case 7:i.auth=e.bool();break;case 8:i.secret=e.string();break;case 9:i.isProxy=e.bool();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!r.isString(e.name)?"name: string expected":null!=e.proxyProtocol&&e.hasOwnProperty("proxyProtocol")&&!r.isInteger(e.proxyProtocol)?"proxyProtocol: integer expected":null!=e.onlinePlayers&&e.hasOwnProperty("onlinePlayers")&&!r.isInteger(e.onlinePlayers)?"onlinePlayers: integer expected":null!=e.maxPlayers&&e.hasOwnProperty("maxPlayers")&&!r.isInteger(e.maxPlayers)?"maxPlayers: integer expected":null!=e.motd&&e.hasOwnProperty("motd")&&!r.isString(e.motd)?"motd: string expected":null!=e.software&&e.hasOwnProperty("software")&&!r.isString(e.software)?"software: string expected":null!=e.auth&&e.hasOwnProperty("auth")&&"boolean"!=typeof e.auth?"auth: boolean expected":null!=e.secret&&e.hasOwnProperty("secret")&&!r.isString(e.secret)?"secret: string expected":null!=e.isProxy&&e.hasOwnProperty("isProxy")&&"boolean"!=typeof e.isProxy?"isProxy: boolean expected":null},i.fromObject=function(e){if(e instanceof o.ProxyInfo)return e;var t=new o.ProxyInfo;return null!=e.name&&(t.name=String(e.name)),null!=e.proxyProtocol&&(t.proxyProtocol=e.proxyProtocol>>>0),null!=e.onlinePlayers&&(t.onlinePlayers=e.onlinePlayers>>>0),null!=e.maxPlayers&&(t.maxPlayers=e.maxPlayers>>>0),null!=e.motd&&(t.motd=String(e.motd)),null!=e.software&&(t.software=String(e.software)),null!=e.auth&&(t.auth=Boolean(e.auth)),null!=e.secret&&(t.secret=String(e.secret)),null!=e.isProxy&&(t.isProxy=Boolean(e.isProxy)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.name="",n.proxyProtocol=0,n.onlinePlayers=0,n.maxPlayers=0,n.motd="",n.software="",n.auth=!1,n.secret="",n.isProxy=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.proxyProtocol&&e.hasOwnProperty("proxyProtocol")&&(n.proxyProtocol=e.proxyProtocol),null!=e.onlinePlayers&&e.hasOwnProperty("onlinePlayers")&&(n.onlinePlayers=e.onlinePlayers),null!=e.maxPlayers&&e.hasOwnProperty("maxPlayers")&&(n.maxPlayers=e.maxPlayers),null!=e.motd&&e.hasOwnProperty("motd")&&(n.motd=e.motd),null!=e.software&&e.hasOwnProperty("software")&&(n.software=e.software),null!=e.auth&&e.hasOwnProperty("auth")&&(n.auth=e.auth),null!=e.secret&&e.hasOwnProperty("secret")&&(n.secret=e.secret),null!=e.isProxy&&e.hasOwnProperty("isProxy")&&(n.isProxy=e.isProxy),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.AuthResponce=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.responce=0,i.prototype.message="",i.prototype.proxyVersion=0,i.prototype.proxyVersionRev=0,i.prototype.protocol=0,i.prototype.usePacketTranslation=!1,i.prototype.type="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.responce&&Object.hasOwnProperty.call(e,"responce")&&t.uint32(8).int32(e.responce),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).string(e.message),null!=e.proxyVersion&&Object.hasOwnProperty.call(e,"proxyVersion")&&t.uint32(24).uint32(e.proxyVersion),null!=e.proxyVersionRev&&Object.hasOwnProperty.call(e,"proxyVersionRev")&&t.uint32(32).uint32(e.proxyVersionRev),null!=e.protocol&&Object.hasOwnProperty.call(e,"protocol")&&t.uint32(40).uint32(e.protocol),null!=e.usePacketTranslation&&Object.hasOwnProperty.call(e,"usePacketTranslation")&&t.uint32(48).bool(e.usePacketTranslation),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(58).string(e.type),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.AuthResponce;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.responce=e.int32();break;case 2:i.message=e.string();break;case 3:i.proxyVersion=e.uint32();break;case 4:i.proxyVersionRev=e.uint32();break;case 5:i.protocol=e.uint32();break;case 6:i.usePacketTranslation=e.bool();break;case 7:i.type=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.responce&&e.hasOwnProperty("responce")&&!r.isInteger(e.responce)?"responce: integer expected":null!=e.message&&e.hasOwnProperty("message")&&!r.isString(e.message)?"message: string expected":null!=e.proxyVersion&&e.hasOwnProperty("proxyVersion")&&!r.isInteger(e.proxyVersion)?"proxyVersion: integer expected":null!=e.proxyVersionRev&&e.hasOwnProperty("proxyVersionRev")&&!r.isInteger(e.proxyVersionRev)?"proxyVersionRev: integer expected":null!=e.protocol&&e.hasOwnProperty("protocol")&&!r.isInteger(e.protocol)?"protocol: integer expected":null!=e.usePacketTranslation&&e.hasOwnProperty("usePacketTranslation")&&"boolean"!=typeof e.usePacketTranslation?"usePacketTranslation: boolean expected":null!=e.type&&e.hasOwnProperty("type")&&!r.isString(e.type)?"type: string expected":null},i.fromObject=function(e){if(e instanceof o.AuthResponce)return e;var t=new o.AuthResponce;return null!=e.responce&&(t.responce=0|e.responce),null!=e.message&&(t.message=String(e.message)),null!=e.proxyVersion&&(t.proxyVersion=e.proxyVersion>>>0),null!=e.proxyVersionRev&&(t.proxyVersionRev=e.proxyVersionRev>>>0),null!=e.protocol&&(t.protocol=e.protocol>>>0),null!=e.usePacketTranslation&&(t.usePacketTranslation=Boolean(e.usePacketTranslation)),null!=e.type&&(t.type=String(e.type)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.responce=0,n.message="",n.proxyVersion=0,n.proxyVersionRev=0,n.protocol=0,n.usePacketTranslation=!1,n.type=""),null!=e.responce&&e.hasOwnProperty("responce")&&(n.responce=e.responce),null!=e.message&&e.hasOwnProperty("message")&&(n.message=e.message),null!=e.proxyVersion&&e.hasOwnProperty("proxyVersion")&&(n.proxyVersion=e.proxyVersion),null!=e.proxyVersionRev&&e.hasOwnProperty("proxyVersionRev")&&(n.proxyVersionRev=e.proxyVersionRev),null!=e.protocol&&e.hasOwnProperty("protocol")&&(n.protocol=e.protocol),null!=e.usePacketTranslation&&e.hasOwnProperty("usePacketTranslation")&&(n.usePacketTranslation=e.usePacketTranslation),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.Data=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.message=r.newBuffer([]),i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(10).bytes(e.message),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.Data;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.message=e.bytes();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.message&&e.hasOwnProperty("message")&&!(e.message&&"number"==typeof e.message.length||r.isString(e.message))?"message: buffer expected":null},i.fromObject=function(e){if(e instanceof o.Data)return e;var t=new o.Data;return null!=e.message&&("string"==typeof e.message?r.base64.decode(e.message,t.message=r.newBuffer(r.base64.length(e.message)),0):e.message.length&&(t.message=e.message)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.message="":(n.message=[],t.bytes!==Array&&(n.message=r.newBuffer(n.message)))),null!=e.message&&e.hasOwnProperty("message")&&(n.message=t.bytes===String?r.base64.encode(e.message,0,e.message.length):t.bytes===Array?Array.prototype.slice.call(e.message):e.message),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.VoxelSrvMessage=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.message=r.newBuffer([]),i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(10).bytes(e.message),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.VoxelSrvMessage;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.message=e.bytes();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.message&&e.hasOwnProperty("message")&&!(e.message&&"number"==typeof e.message.length||r.isString(e.message))?"message: buffer expected":null},i.fromObject=function(e){if(e instanceof o.VoxelSrvMessage)return e;var t=new o.VoxelSrvMessage;return null!=e.message&&("string"==typeof e.message?r.base64.decode(e.message,t.message=r.newBuffer(r.base64.length(e.message)),0):e.message.length&&(t.message=e.message)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.message="":(n.message=[],t.bytes!==Array&&(n.message=r.newBuffer(n.message)))),null!=e.message&&e.hasOwnProperty("message")&&(n.message=t.bytes===String?r.base64.encode(e.message,0,e.message.length):t.bytes===Array?Array.prototype.slice.call(e.message):e.message),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.Disconnect=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.reason="",i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.reason&&Object.hasOwnProperty.call(e,"reason")&&t.uint32(10).string(e.reason),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.Disconnect;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.reason=e.string();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.reason&&e.hasOwnProperty("reason")&&!r.isString(e.reason)?"reason: string expected":null},i.fromObject=function(e){if(e instanceof o.Disconnect)return e;var t=new o.Disconnect;return null!=e.reason&&(t.reason=String(e.reason)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.reason=""),null!=e.reason&&e.hasOwnProperty("reason")&&(n.reason=e.reason),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o.ProxyMessage=function(){function i(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.message=r.newBuffer([]),i.create=function(e){return new i(e)},i.encode=function(e,t){return t||(t=n.create()),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(10).bytes(e.message),t},i.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},i.decode=function(e,n){e instanceof t||(e=t.create(e));for(var r=void 0===n?e.len:e.pos+n,i=new o.ProxyMessage;e.pos<r;){var s=e.uint32();switch(s>>>3){case 1:i.message=e.bytes();break;default:e.skipType(7&s)}}return i},i.decodeDelimited=function(e){return e instanceof t||(e=new t(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.message&&e.hasOwnProperty("message")&&!(e.message&&"number"==typeof e.message.length||r.isString(e.message))?"message: buffer expected":null},i.fromObject=function(e){if(e instanceof o.ProxyMessage)return e;var t=new o.ProxyMessage;return null!=e.message&&("string"==typeof e.message?r.base64.decode(e.message,t.message=r.newBuffer(r.base64.length(e.message)),0):e.message.length&&(t.message=e.message)),t},i.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.message="":(n.message=[],t.bytes!==Array&&(n.message=r.newBuffer(n.message)))),null!=e.message&&e.hasOwnProperty("message")&&(n.message=t.bytes===String?r.base64.encode(e.message,0,e.message.length):t.bytes===Array?Array.prototype.slice.call(e.message):e.message),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},i}(),o})?r.apply(t,o):r)||(e.exports=i)},570:function(e){e.exports=JSON.parse('["LoginResponse","Ping","ActionMove","ActionLook","ActionMoveLook","ActionMessage","ActionBlockPlace","ActionBlockBreak","ActionInventoryClick","ActionInventoryPick","ActionInventoryOpen","ActionInventoryClose","ActionClick","ActionClickEntity","ActionKeyPress","WorldChunkIsLoadedResponce","PluginMessage"]')},571:function(e){e.exports=JSON.parse('["LoginRequest","LoginStatus","LoginSuccess","Ping","PlayerKick","PlayerEntity","PlayerTeleport","PlayerInventory","PlayerSlotUpdate","PlayerApplyImpulse","PlayerUpdateMovement","PlayerUpdatePhysics","PlayerHealth","PlayerSetBlockReach","PlayerOpenInventory","SoundPlay","ChatMessage","UpdateTextBoard","EntityCreate","EntityRemove","EntityMove","EntityNameUpdate","EntityHeldItem","EntityArmor","EntityAnimate","WorldBlockUpdate","WorldMultiBlockUpdate","WorldChunkLoad","WorldChunkUnload","WorldChunkIsLoaded","WorldChunksRemoveAll","RegistryUpdate","EnvironmentFogUpdate","EnvironmentSkyUpdate","PluginMessage"]')},572:function(e){e.exports=JSON.parse('{"LoginResponse":0,"Ping":1,"ActionMove":2,"ActionLook":3,"ActionMoveLook":4,"ActionMessage":5,"ActionBlockPlace":6,"ActionBlockBreak":7,"ActionInventoryClick":8,"ActionInventoryPick":9,"ActionInventoryOpen":10,"ActionInventoryClose":11,"ActionClick":12,"ActionClickEntity":13,"ActionKeyPress":14,"WorldChunkIsLoadedResponce":15,"PluginMessage":16}')},573:function(e){e.exports=JSON.parse('{"LoginRequest":0,"LoginStatus":1,"LoginSuccess":2,"Ping":3,"PlayerKick":4,"PlayerEntity":5,"PlayerTeleport":6,"PlayerInventory":7,"PlayerSlotUpdate":8,"PlayerApplyImpulse":9,"PlayerUpdateMovement":10,"PlayerUpdatePhysics":11,"PlayerHealth":12,"PlayerSetBlockReach":13,"PlayerOpenInventory":14,"SoundPlay":15,"ChatMessage":16,"UpdateTextBoard":17,"EntityCreate":18,"EntityRemove":19,"EntityMove":20,"EntityNameUpdate":21,"EntityHeldItem":22,"EntityArmor":23,"EntityAnimate":24,"WorldBlockUpdate":25,"WorldMultiBlockUpdate":26,"WorldChunkLoad":27,"WorldChunkUnload":28,"WorldChunkIsLoaded":29,"WorldChunksRemoveAll":30,"RegistryUpdate":31,"EnvironmentFogUpdate":32,"EnvironmentSkyUpdate":33,"PluginMessage":34}')},574:function(e){e.exports=JSON.parse('["AuthRequest","Ready","Data","VoxelSrvMessage","ProxyMessage"]')},575:function(e){e.exports=JSON.parse('["ProxyInfo","AuthResponce","Data","VoxelSrvMessage","Disconnect","ProxyMessage"]')},576:function(e){e.exports=JSON.parse('{"AuthRequest":0,"Ready":1,"Data":2,"VoxelSrvMessage":3,"ProxyMessage":4}')},577:function(e){e.exports=JSON.parse('{"ProxyInfo":0,"AuthResponce":1,"Data":2,"VoxelSrvMessage":3,"Disconnect":4,"ProxyMessage":5}')},81:function(e,t,n){"use strict";(function(e){var r=t;function o(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;++o)void 0!==e[r[o]]&&n||(e[r[o]]=t[r[o]]);return e}function i(e){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),n&&o(this,n)}return(t.prototype=Object.create(Error.prototype)).constructor=t,Object.defineProperty(t.prototype,"name",{get:function(){return e}}),t.prototype.toString=function(){return this.name+": "+this.message},t}r.asPromise=n(254),r.base64=n(255),r.EventEmitter=n(256),r.float=n(257),r.inquire=n(258),r.utf8=n(259),r.pool=n(260),r.LongBits=n(261),r.isNode=Boolean(void 0!==e&&e&&e.process&&e.process.versions&&e.process.versions.node),r.global=r.isNode&&e||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,r.emptyArray=Object.freeze?Object.freeze([]):[],r.emptyObject=Object.freeze?Object.freeze({}):{},r.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},r.isString=function(e){return"string"==typeof e||e instanceof String},r.isObject=function(e){return e&&"object"==typeof e},r.isset=r.isSet=function(e,t){var n=e[t];return!(null==n||!e.hasOwnProperty(t))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=o,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},r.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},r._configure=function(){var e=r.Buffer;e?(r._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,n){return new e(t,n)},r._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):r._Buffer_from=r._Buffer_allocUnsafe=null}}).call(this,n(53))}});