tachyon-protocol 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";exports.autohost_connected_event = validate10;const schema11 = {"$id":"autohost/connected/event","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"event","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/connected","type":"string"},"data":{"type":"object","properties":{}}},"required":["type","messageId","commandId","data"]};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="autohost/connected/event" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate10.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate10.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("event" !== data0){validate10.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate10.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate10.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("autohost/connected" !== data2){validate10.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/connected"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(!(data3 && typeof data3 == "object" && !Array.isArray(data3))){validate10.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate10.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate10.errors = vErrors;return errors === 0;}exports.autohost_launch_request = validate11;const schema12 = {"$id":"autohost/launch/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/launch","type":"string"},"data":{"type":"object","properties":{"script":{"type":"string"}},"required":["script"]}},"required":["type","messageId","commandId","data"]};function validate11(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="autohost/launch/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate11.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate11.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate11.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate11.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate11.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("autohost/launch" !== data2){validate11.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/launch"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.script === undefined) && (missing1 = "script")){validate11.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.script !== undefined){if(typeof data3.script !== "string"){validate11.errors = [{instancePath:instancePath+"/data/script",schemaPath:"#/properties/data/properties/script/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate11.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate11.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate11.errors = vErrors;return errors === 0;}exports.autohost_launch_response = validate12;const schema13 = {"$id":"autohost/launch/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/launch","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/launch","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_script","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/launch","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"server_already_running","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/launch","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"server_failed_to_start","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/launch","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/launch","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/launch","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/launch","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate12(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="autohost/launch/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("autohost/launch" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/launch"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("autohost/launch" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/launch"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("invalid_script" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_script"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("autohost/launch" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/launch"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("server_already_running" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "server_already_running"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("autohost/launch" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/launch"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("server_failed_to_start" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "server_failed_to_start"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("autohost/launch" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/launch"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("internal_error" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs59 = errors;if(errors === _errs59){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((((((data.type === undefined) && (missing5 = "type")) || ((data.messageId === undefined) && (missing5 = "messageId"))) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err53 = {instancePath,schemaPath:"#/anyOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {if(data.type !== undefined){let data24 = data.type;const _errs61 = errors;if(typeof data24 !== "string"){const err54 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("response" !== data24){const err55 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid6 = _errs61 === errors;}else {var valid6 = true;}if(valid6){if(data.messageId !== undefined){const _errs63 = errors;if(typeof data.messageId !== "string"){const err56 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/5/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid6 = _errs63 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data26 = data.commandId;const _errs65 = errors;if(typeof data26 !== "string"){const err57 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if("autohost/launch" !== data26){const err58 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/launch"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid6 = _errs65 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data27 = data.status;const _errs67 = errors;if(typeof data27 !== "string"){const err59 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("failed" !== data27){const err60 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid6 = _errs67 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data28 = data.reason;const _errs69 = errors;if(typeof data28 !== "string"){const err61 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if("unauthorized" !== data28){const err62 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid6 = _errs69 === errors;}else {var valid6 = true;}}}}}}}else {const err63 = {instancePath,schemaPath:"#/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var _valid0 = _errs59 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs71 = errors;if(errors === _errs71){if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if((((((data.type === undefined) && (missing6 = "type")) || ((data.messageId === undefined) && (missing6 = "messageId"))) || ((data.commandId === undefined) && (missing6 = "commandId"))) || ((data.status === undefined) && (missing6 = "status"))) || ((data.reason === undefined) && (missing6 = "reason"))){const err64 = {instancePath,schemaPath:"#/anyOf/6/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {if(data.type !== undefined){let data29 = data.type;const _errs73 = errors;if(typeof data29 !== "string"){const err65 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/6/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if("response" !== data29){const err66 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/6/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid7 = _errs73 === errors;}else {var valid7 = true;}if(valid7){if(data.messageId !== undefined){const _errs75 = errors;if(typeof data.messageId !== "string"){const err67 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/6/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var valid7 = _errs75 === errors;}else {var valid7 = true;}if(valid7){if(data.commandId !== undefined){let data31 = data.commandId;const _errs77 = errors;if(typeof data31 !== "string"){const err68 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/6/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if("autohost/launch" !== data31){const err69 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/6/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/launch"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}var valid7 = _errs77 === errors;}else {var valid7 = true;}if(valid7){if(data.status !== undefined){let data32 = data.status;const _errs79 = errors;if(typeof data32 !== "string"){const err70 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/6/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if("failed" !== data32){const err71 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/6/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var valid7 = _errs79 === errors;}else {var valid7 = true;}if(valid7){if(data.reason !== undefined){let data33 = data.reason;const _errs81 = errors;if(typeof data33 !== "string"){const err72 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/6/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if("invalid_request" !== data33){const err73 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/6/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var valid7 = _errs81 === errors;}else {var valid7 = true;}}}}}}}else {const err74 = {instancePath,schemaPath:"#/anyOf/6/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}var _valid0 = _errs71 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs83 = errors;if(errors === _errs83){if(data && typeof data == "object" && !Array.isArray(data)){let missing7;if((((((data.type === undefined) && (missing7 = "type")) || ((data.messageId === undefined) && (missing7 = "messageId"))) || ((data.commandId === undefined) && (missing7 = "commandId"))) || ((data.status === undefined) && (missing7 = "status"))) || ((data.reason === undefined) && (missing7 = "reason"))){const err75 = {instancePath,schemaPath:"#/anyOf/7/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}else {if(data.type !== undefined){let data34 = data.type;const _errs85 = errors;if(typeof data34 !== "string"){const err76 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/7/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if("response" !== data34){const err77 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/7/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var valid8 = _errs85 === errors;}else {var valid8 = true;}if(valid8){if(data.messageId !== undefined){const _errs87 = errors;if(typeof data.messageId !== "string"){const err78 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/7/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}var valid8 = _errs87 === errors;}else {var valid8 = true;}if(valid8){if(data.commandId !== undefined){let data36 = data.commandId;const _errs89 = errors;if(typeof data36 !== "string"){const err79 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/7/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if("autohost/launch" !== data36){const err80 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/7/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/launch"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}var valid8 = _errs89 === errors;}else {var valid8 = true;}if(valid8){if(data.status !== undefined){let data37 = data.status;const _errs91 = errors;if(typeof data37 !== "string"){const err81 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/7/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}if("failed" !== data37){const err82 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/7/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var valid8 = _errs91 === errors;}else {var valid8 = true;}if(valid8){if(data.reason !== undefined){let data38 = data.reason;const _errs93 = errors;if(typeof data38 !== "string"){const err83 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/7/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("command_unimplemented" !== data38){const err84 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/7/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}var valid8 = _errs93 === errors;}else {var valid8 = true;}}}}}}}else {const err85 = {instancePath,schemaPath:"#/anyOf/7/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}var _valid0 = _errs83 === errors;valid0 = valid0 || _valid0;}}}}}}}if(!valid0){const err86 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;validate12.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate12.errors = vErrors;return errors === 0;}exports.autohost_slave_request = validate13;const schema14 = {"$id":"autohost/slave/request","scopes":["autohost","tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/slave","type":"string"},"data":{"type":"object","properties":{"maxBattles":{"minimum":1,"default":4,"type":"integer"}},"required":["maxBattles"]}},"required":["type","messageId","commandId","data"]};function validate13(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="autohost/slave/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate13.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate13.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate13.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate13.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate13.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("autohost/slave" !== data2){validate13.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/slave"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.maxBattles === undefined) && (missing1 = "maxBattles")){validate13.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.maxBattles !== undefined){let data4 = data3.maxBattles;const _errs9 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){validate13.errors = [{instancePath:instancePath+"/data/maxBattles",schemaPath:"#/properties/data/properties/maxBattles/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs9){if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 1 || isNaN(data4)){validate13.errors = [{instancePath:instancePath+"/data/maxBattles",schemaPath:"#/properties/data/properties/maxBattles/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}}}}else {validate13.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate13.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate13.errors = vErrors;return errors === 0;}exports.autohost_slave_response = validate14;const schema15 = {"$id":"autohost/slave/response","scopes":["autohost","tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/slave","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/slave","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/slave","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/slave","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/slave","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="autohost/slave/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("autohost/slave" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/slave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("autohost/slave" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/slave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("internal_error" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("autohost/slave" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/slave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("unauthorized" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("autohost/slave" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/slave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("invalid_request" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("autohost/slave" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/slave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("command_unimplemented" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err53 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;validate14.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}exports.autohost_unslave_request = validate15;const schema16 = {"$id":"autohost/unslave/request","scopes":["autohost","tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/unslave","type":"string"}},"required":["type","messageId","commandId"]};function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="autohost/unslave/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate15.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate15.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate15.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate15.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate15.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("autohost/unslave" !== data2){validate15.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/unslave"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate15.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate15.errors = vErrors;return errors === 0;}exports.autohost_unslave_response = validate16;const schema17 = {"$id":"autohost/unslave/response","scopes":["autohost","tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/unslave","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/unslave","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/unslave","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/unslave","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"autohost/unslave","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="autohost/unslave/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("autohost/unslave" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/unslave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("autohost/unslave" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/unslave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("internal_error" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("autohost/unslave" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/unslave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("unauthorized" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("autohost/unslave" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/unslave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("invalid_request" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("autohost/unslave" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/unslave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("command_unimplemented" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err53 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;validate16.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate16.errors = vErrors;return errors === 0;}exports.game_launch_event = validate17;const schema18 = {"$id":"game/launch/event","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"event","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"game/launch","type":"string"},"data":{"type":"object","properties":{"script":{"type":"string"}},"required":["script"]}},"required":["type","messageId","commandId","data"]};function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="game/launch/event" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate17.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate17.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("event" !== data0){validate17.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate17.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate17.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("game/launch" !== data2){validate17.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "game/launch"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.script === undefined) && (missing1 = "script")){validate17.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.script !== undefined){if(typeof data3.script !== "string"){validate17.errors = [{instancePath:instancePath+"/data/script",schemaPath:"#/properties/data/properties/script/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate17.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate17.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate17.errors = vErrors;return errors === 0;}exports.lobby_close_request = validate18;const schema19 = {"$id":"lobby/close/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/close","type":"string"}},"required":["type","messageId","commandId"]};function validate18(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/close/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate18.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate18.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate18.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate18.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate18.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/close" !== data2){validate18.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/close"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate18.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate18.errors = vErrors;return errors === 0;}exports.lobby_close_response = validate19;const schema20 = {"$id":"lobby/close/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/close","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/close","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/close","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/close","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/close","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate19(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/close/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("lobby/close" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/close"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("lobby/close" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/close"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("internal_error" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("lobby/close" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/close"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("unauthorized" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("lobby/close" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/close"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("invalid_request" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("lobby/close" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/close"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("command_unimplemented" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err53 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;validate19.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate19.errors = vErrors;return errors === 0;}exports.lobby_create_request = validate20;const schema21 = {"$id":"lobby/create/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/create","type":"string"},"data":{"examples":[{"title":"8v8 | All Welcome","private":false,"region":"EU","maxPlayers":16}],"type":"object","properties":{"title":{"minLength":2,"maxLength":30,"type":"string"},"private":{"default":true,"type":"boolean"},"region":{"type":"string"},"maxPlayers":{"minimum":0,"default":16,"type":"integer"}},"required":["title","private","region","maxPlayers"]}},"required":["type","messageId","commandId","data"]};const func2 = require("ajv/dist/runtime/ucs2length").default;function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/create/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate20.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate20.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate20.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate20.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate20.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/create" !== data2){validate20.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((((data3.title === undefined) && (missing1 = "title")) || ((data3.private === undefined) && (missing1 = "private"))) || ((data3.region === undefined) && (missing1 = "region"))) || ((data3.maxPlayers === undefined) && (missing1 = "maxPlayers"))){validate20.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.title !== undefined){let data4 = data3.title;const _errs9 = errors;if(errors === _errs9){if(typeof data4 === "string"){if(func2(data4) > 30){validate20.errors = [{instancePath:instancePath+"/data/title",schemaPath:"#/properties/data/properties/title/maxLength",keyword:"maxLength",params:{limit: 30},message:"must NOT have more than 30 characters"}];return false;}else {if(func2(data4) < 2){validate20.errors = [{instancePath:instancePath+"/data/title",schemaPath:"#/properties/data/properties/title/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}}else {validate20.errors = [{instancePath:instancePath+"/data/title",schemaPath:"#/properties/data/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data3.private !== undefined){const _errs11 = errors;if(typeof data3.private !== "boolean"){validate20.errors = [{instancePath:instancePath+"/data/private",schemaPath:"#/properties/data/properties/private/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data3.region !== undefined){const _errs13 = errors;if(typeof data3.region !== "string"){validate20.errors = [{instancePath:instancePath+"/data/region",schemaPath:"#/properties/data/properties/region/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data3.maxPlayers !== undefined){let data7 = data3.maxPlayers;const _errs15 = errors;if(!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))){validate20.errors = [{instancePath:instancePath+"/data/maxPlayers",schemaPath:"#/properties/data/properties/maxPlayers/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs15){if((typeof data7 == "number") && (isFinite(data7))){if(data7 < 0 || isNaN(data7)){validate20.errors = [{instancePath:instancePath+"/data/maxPlayers",schemaPath:"#/properties/data/properties/maxPlayers/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid1 = _errs15 === errors;}else {var valid1 = true;}}}}}}else {validate20.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate20.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate20.errors = vErrors;return errors === 0;}exports.lobby_create_response = validate21;const schema22 = {"$id":"lobby/create/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/create","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/create","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"no_hosts_available","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/create","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_region","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/create","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/create","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/create","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/create","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/create/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("lobby/create" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("lobby/create" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("no_hosts_available" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "no_hosts_available"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("lobby/create" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("invalid_region" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_region"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("lobby/create" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("internal_error" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("lobby/create" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("unauthorized" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs59 = errors;if(errors === _errs59){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((((((data.type === undefined) && (missing5 = "type")) || ((data.messageId === undefined) && (missing5 = "messageId"))) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err53 = {instancePath,schemaPath:"#/anyOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {if(data.type !== undefined){let data24 = data.type;const _errs61 = errors;if(typeof data24 !== "string"){const err54 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("response" !== data24){const err55 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid6 = _errs61 === errors;}else {var valid6 = true;}if(valid6){if(data.messageId !== undefined){const _errs63 = errors;if(typeof data.messageId !== "string"){const err56 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/5/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid6 = _errs63 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data26 = data.commandId;const _errs65 = errors;if(typeof data26 !== "string"){const err57 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if("lobby/create" !== data26){const err58 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid6 = _errs65 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data27 = data.status;const _errs67 = errors;if(typeof data27 !== "string"){const err59 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("failed" !== data27){const err60 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid6 = _errs67 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data28 = data.reason;const _errs69 = errors;if(typeof data28 !== "string"){const err61 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if("invalid_request" !== data28){const err62 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid6 = _errs69 === errors;}else {var valid6 = true;}}}}}}}else {const err63 = {instancePath,schemaPath:"#/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var _valid0 = _errs59 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs71 = errors;if(errors === _errs71){if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if((((((data.type === undefined) && (missing6 = "type")) || ((data.messageId === undefined) && (missing6 = "messageId"))) || ((data.commandId === undefined) && (missing6 = "commandId"))) || ((data.status === undefined) && (missing6 = "status"))) || ((data.reason === undefined) && (missing6 = "reason"))){const err64 = {instancePath,schemaPath:"#/anyOf/6/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {if(data.type !== undefined){let data29 = data.type;const _errs73 = errors;if(typeof data29 !== "string"){const err65 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/6/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if("response" !== data29){const err66 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/6/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid7 = _errs73 === errors;}else {var valid7 = true;}if(valid7){if(data.messageId !== undefined){const _errs75 = errors;if(typeof data.messageId !== "string"){const err67 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/6/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var valid7 = _errs75 === errors;}else {var valid7 = true;}if(valid7){if(data.commandId !== undefined){let data31 = data.commandId;const _errs77 = errors;if(typeof data31 !== "string"){const err68 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/6/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if("lobby/create" !== data31){const err69 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/6/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}var valid7 = _errs77 === errors;}else {var valid7 = true;}if(valid7){if(data.status !== undefined){let data32 = data.status;const _errs79 = errors;if(typeof data32 !== "string"){const err70 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/6/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if("failed" !== data32){const err71 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/6/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var valid7 = _errs79 === errors;}else {var valid7 = true;}if(valid7){if(data.reason !== undefined){let data33 = data.reason;const _errs81 = errors;if(typeof data33 !== "string"){const err72 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/6/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if("command_unimplemented" !== data33){const err73 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/6/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var valid7 = _errs81 === errors;}else {var valid7 = true;}}}}}}}else {const err74 = {instancePath,schemaPath:"#/anyOf/6/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}var _valid0 = _errs71 === errors;valid0 = valid0 || _valid0;}}}}}}if(!valid0){const err75 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;validate21.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate21.errors = vErrors;return errors === 0;}exports.lobby_join_request = validate22;const schema23 = {"$id":"lobby/join/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/join","type":"string"},"data":{"examples":[{"lobbyId":27,"password":"fish"}],"type":"object","properties":{"lobbyId":{"type":"string"},"password":{"type":"string"}},"required":["lobbyId"]}},"required":["type","messageId","commandId","data"]};function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/join/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate22.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate22.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate22.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate22.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate22.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/join" !== data2){validate22.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.lobbyId === undefined) && (missing1 = "lobbyId")){validate22.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.lobbyId !== undefined){const _errs9 = errors;if(typeof data3.lobbyId !== "string"){validate22.errors = [{instancePath:instancePath+"/data/lobbyId",schemaPath:"#/properties/data/properties/lobbyId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data3.password !== undefined){const _errs11 = errors;if(typeof data3.password !== "string"){validate22.errors = [{instancePath:instancePath+"/data/password",schemaPath:"#/properties/data/properties/password/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs11 === errors;}else {var valid1 = true;}}}}else {validate22.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate22.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate22.errors = vErrors;return errors === 0;}exports.lobby_join_response = validate23;const schema24 = {"$id":"lobby/join/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/join","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/join","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"locked","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/join","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"requires_password","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/join","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_password","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/join","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"max_participants_reached","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/join","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"rank_too_low","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/join","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"rank_too_high","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/join","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"banned","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/join","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/join","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/join","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/join","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/join/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("lobby/join" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("lobby/join" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("locked" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "locked"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("lobby/join" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("requires_password" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "requires_password"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("lobby/join" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("invalid_password" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_password"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("lobby/join" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("max_participants_reached" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "max_participants_reached"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs59 = errors;if(errors === _errs59){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((((((data.type === undefined) && (missing5 = "type")) || ((data.messageId === undefined) && (missing5 = "messageId"))) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err53 = {instancePath,schemaPath:"#/anyOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {if(data.type !== undefined){let data24 = data.type;const _errs61 = errors;if(typeof data24 !== "string"){const err54 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("response" !== data24){const err55 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid6 = _errs61 === errors;}else {var valid6 = true;}if(valid6){if(data.messageId !== undefined){const _errs63 = errors;if(typeof data.messageId !== "string"){const err56 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/5/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid6 = _errs63 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data26 = data.commandId;const _errs65 = errors;if(typeof data26 !== "string"){const err57 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if("lobby/join" !== data26){const err58 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid6 = _errs65 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data27 = data.status;const _errs67 = errors;if(typeof data27 !== "string"){const err59 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("failed" !== data27){const err60 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid6 = _errs67 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data28 = data.reason;const _errs69 = errors;if(typeof data28 !== "string"){const err61 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if("rank_too_low" !== data28){const err62 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/const",keyword:"const",params:{allowedValue: "rank_too_low"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid6 = _errs69 === errors;}else {var valid6 = true;}}}}}}}else {const err63 = {instancePath,schemaPath:"#/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var _valid0 = _errs59 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs71 = errors;if(errors === _errs71){if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if((((((data.type === undefined) && (missing6 = "type")) || ((data.messageId === undefined) && (missing6 = "messageId"))) || ((data.commandId === undefined) && (missing6 = "commandId"))) || ((data.status === undefined) && (missing6 = "status"))) || ((data.reason === undefined) && (missing6 = "reason"))){const err64 = {instancePath,schemaPath:"#/anyOf/6/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {if(data.type !== undefined){let data29 = data.type;const _errs73 = errors;if(typeof data29 !== "string"){const err65 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/6/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if("response" !== data29){const err66 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/6/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid7 = _errs73 === errors;}else {var valid7 = true;}if(valid7){if(data.messageId !== undefined){const _errs75 = errors;if(typeof data.messageId !== "string"){const err67 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/6/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var valid7 = _errs75 === errors;}else {var valid7 = true;}if(valid7){if(data.commandId !== undefined){let data31 = data.commandId;const _errs77 = errors;if(typeof data31 !== "string"){const err68 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/6/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if("lobby/join" !== data31){const err69 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/6/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}var valid7 = _errs77 === errors;}else {var valid7 = true;}if(valid7){if(data.status !== undefined){let data32 = data.status;const _errs79 = errors;if(typeof data32 !== "string"){const err70 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/6/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if("failed" !== data32){const err71 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/6/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var valid7 = _errs79 === errors;}else {var valid7 = true;}if(valid7){if(data.reason !== undefined){let data33 = data.reason;const _errs81 = errors;if(typeof data33 !== "string"){const err72 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/6/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if("rank_too_high" !== data33){const err73 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/6/properties/reason/const",keyword:"const",params:{allowedValue: "rank_too_high"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var valid7 = _errs81 === errors;}else {var valid7 = true;}}}}}}}else {const err74 = {instancePath,schemaPath:"#/anyOf/6/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}var _valid0 = _errs71 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs83 = errors;if(errors === _errs83){if(data && typeof data == "object" && !Array.isArray(data)){let missing7;if((((((data.type === undefined) && (missing7 = "type")) || ((data.messageId === undefined) && (missing7 = "messageId"))) || ((data.commandId === undefined) && (missing7 = "commandId"))) || ((data.status === undefined) && (missing7 = "status"))) || ((data.reason === undefined) && (missing7 = "reason"))){const err75 = {instancePath,schemaPath:"#/anyOf/7/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}else {if(data.type !== undefined){let data34 = data.type;const _errs85 = errors;if(typeof data34 !== "string"){const err76 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/7/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if("response" !== data34){const err77 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/7/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var valid8 = _errs85 === errors;}else {var valid8 = true;}if(valid8){if(data.messageId !== undefined){const _errs87 = errors;if(typeof data.messageId !== "string"){const err78 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/7/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}var valid8 = _errs87 === errors;}else {var valid8 = true;}if(valid8){if(data.commandId !== undefined){let data36 = data.commandId;const _errs89 = errors;if(typeof data36 !== "string"){const err79 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/7/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if("lobby/join" !== data36){const err80 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/7/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}var valid8 = _errs89 === errors;}else {var valid8 = true;}if(valid8){if(data.status !== undefined){let data37 = data.status;const _errs91 = errors;if(typeof data37 !== "string"){const err81 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/7/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}if("failed" !== data37){const err82 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/7/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var valid8 = _errs91 === errors;}else {var valid8 = true;}if(valid8){if(data.reason !== undefined){let data38 = data.reason;const _errs93 = errors;if(typeof data38 !== "string"){const err83 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/7/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("banned" !== data38){const err84 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/7/properties/reason/const",keyword:"const",params:{allowedValue: "banned"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}var valid8 = _errs93 === errors;}else {var valid8 = true;}}}}}}}else {const err85 = {instancePath,schemaPath:"#/anyOf/7/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}var _valid0 = _errs83 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs95 = errors;if(errors === _errs95){if(data && typeof data == "object" && !Array.isArray(data)){let missing8;if((((((data.type === undefined) && (missing8 = "type")) || ((data.messageId === undefined) && (missing8 = "messageId"))) || ((data.commandId === undefined) && (missing8 = "commandId"))) || ((data.status === undefined) && (missing8 = "status"))) || ((data.reason === undefined) && (missing8 = "reason"))){const err86 = {instancePath,schemaPath:"#/anyOf/8/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {if(data.type !== undefined){let data39 = data.type;const _errs97 = errors;if(typeof data39 !== "string"){const err87 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/8/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("response" !== data39){const err88 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/8/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}var valid9 = _errs97 === errors;}else {var valid9 = true;}if(valid9){if(data.messageId !== undefined){const _errs99 = errors;if(typeof data.messageId !== "string"){const err89 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/8/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}var valid9 = _errs99 === errors;}else {var valid9 = true;}if(valid9){if(data.commandId !== undefined){let data41 = data.commandId;const _errs101 = errors;if(typeof data41 !== "string"){const err90 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/8/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if("lobby/join" !== data41){const err91 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/8/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var valid9 = _errs101 === errors;}else {var valid9 = true;}if(valid9){if(data.status !== undefined){let data42 = data.status;const _errs103 = errors;if(typeof data42 !== "string"){const err92 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/8/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if("failed" !== data42){const err93 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/8/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}var valid9 = _errs103 === errors;}else {var valid9 = true;}if(valid9){if(data.reason !== undefined){let data43 = data.reason;const _errs105 = errors;if(typeof data43 !== "string"){const err94 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/8/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if("internal_error" !== data43){const err95 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/8/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}var valid9 = _errs105 === errors;}else {var valid9 = true;}}}}}}}else {const err96 = {instancePath,schemaPath:"#/anyOf/8/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}var _valid0 = _errs95 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs107 = errors;if(errors === _errs107){if(data && typeof data == "object" && !Array.isArray(data)){let missing9;if((((((data.type === undefined) && (missing9 = "type")) || ((data.messageId === undefined) && (missing9 = "messageId"))) || ((data.commandId === undefined) && (missing9 = "commandId"))) || ((data.status === undefined) && (missing9 = "status"))) || ((data.reason === undefined) && (missing9 = "reason"))){const err97 = {instancePath,schemaPath:"#/anyOf/9/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data.type !== undefined){let data44 = data.type;const _errs109 = errors;if(typeof data44 !== "string"){const err98 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/9/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if("response" !== data44){const err99 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/9/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}var valid10 = _errs109 === errors;}else {var valid10 = true;}if(valid10){if(data.messageId !== undefined){const _errs111 = errors;if(typeof data.messageId !== "string"){const err100 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/9/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}var valid10 = _errs111 === errors;}else {var valid10 = true;}if(valid10){if(data.commandId !== undefined){let data46 = data.commandId;const _errs113 = errors;if(typeof data46 !== "string"){const err101 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/9/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if("lobby/join" !== data46){const err102 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/9/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}var valid10 = _errs113 === errors;}else {var valid10 = true;}if(valid10){if(data.status !== undefined){let data47 = data.status;const _errs115 = errors;if(typeof data47 !== "string"){const err103 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/9/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if("failed" !== data47){const err104 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/9/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}var valid10 = _errs115 === errors;}else {var valid10 = true;}if(valid10){if(data.reason !== undefined){let data48 = data.reason;const _errs117 = errors;if(typeof data48 !== "string"){const err105 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/9/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if("unauthorized" !== data48){const err106 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/9/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}var valid10 = _errs117 === errors;}else {var valid10 = true;}}}}}}}else {const err107 = {instancePath,schemaPath:"#/anyOf/9/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}var _valid0 = _errs107 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs119 = errors;if(errors === _errs119){if(data && typeof data == "object" && !Array.isArray(data)){let missing10;if((((((data.type === undefined) && (missing10 = "type")) || ((data.messageId === undefined) && (missing10 = "messageId"))) || ((data.commandId === undefined) && (missing10 = "commandId"))) || ((data.status === undefined) && (missing10 = "status"))) || ((data.reason === undefined) && (missing10 = "reason"))){const err108 = {instancePath,schemaPath:"#/anyOf/10/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}else {if(data.type !== undefined){let data49 = data.type;const _errs121 = errors;if(typeof data49 !== "string"){const err109 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/10/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if("response" !== data49){const err110 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/10/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}var valid11 = _errs121 === errors;}else {var valid11 = true;}if(valid11){if(data.messageId !== undefined){const _errs123 = errors;if(typeof data.messageId !== "string"){const err111 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/10/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}var valid11 = _errs123 === errors;}else {var valid11 = true;}if(valid11){if(data.commandId !== undefined){let data51 = data.commandId;const _errs125 = errors;if(typeof data51 !== "string"){const err112 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/10/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if("lobby/join" !== data51){const err113 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/10/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}var valid11 = _errs125 === errors;}else {var valid11 = true;}if(valid11){if(data.status !== undefined){let data52 = data.status;const _errs127 = errors;if(typeof data52 !== "string"){const err114 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/10/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if("failed" !== data52){const err115 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/10/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}var valid11 = _errs127 === errors;}else {var valid11 = true;}if(valid11){if(data.reason !== undefined){let data53 = data.reason;const _errs129 = errors;if(typeof data53 !== "string"){const err116 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/10/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}if("invalid_request" !== data53){const err117 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/10/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}var valid11 = _errs129 === errors;}else {var valid11 = true;}}}}}}}else {const err118 = {instancePath,schemaPath:"#/anyOf/10/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}var _valid0 = _errs119 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs131 = errors;if(errors === _errs131){if(data && typeof data == "object" && !Array.isArray(data)){let missing11;if((((((data.type === undefined) && (missing11 = "type")) || ((data.messageId === undefined) && (missing11 = "messageId"))) || ((data.commandId === undefined) && (missing11 = "commandId"))) || ((data.status === undefined) && (missing11 = "status"))) || ((data.reason === undefined) && (missing11 = "reason"))){const err119 = {instancePath,schemaPath:"#/anyOf/11/required",keyword:"required",params:{missingProperty: missing11},message:"must have required property '"+missing11+"'"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}else {if(data.type !== undefined){let data54 = data.type;const _errs133 = errors;if(typeof data54 !== "string"){const err120 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/11/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}if("response" !== data54){const err121 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/11/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var valid12 = _errs133 === errors;}else {var valid12 = true;}if(valid12){if(data.messageId !== undefined){const _errs135 = errors;if(typeof data.messageId !== "string"){const err122 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/11/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}var valid12 = _errs135 === errors;}else {var valid12 = true;}if(valid12){if(data.commandId !== undefined){let data56 = data.commandId;const _errs137 = errors;if(typeof data56 !== "string"){const err123 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/11/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if("lobby/join" !== data56){const err124 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/11/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}var valid12 = _errs137 === errors;}else {var valid12 = true;}if(valid12){if(data.status !== undefined){let data57 = data.status;const _errs139 = errors;if(typeof data57 !== "string"){const err125 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/11/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if("failed" !== data57){const err126 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/11/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}var valid12 = _errs139 === errors;}else {var valid12 = true;}if(valid12){if(data.reason !== undefined){let data58 = data.reason;const _errs141 = errors;if(typeof data58 !== "string"){const err127 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/11/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if("command_unimplemented" !== data58){const err128 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/11/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}var valid12 = _errs141 === errors;}else {var valid12 = true;}}}}}}}else {const err129 = {instancePath,schemaPath:"#/anyOf/11/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}var _valid0 = _errs131 === errors;valid0 = valid0 || _valid0;}}}}}}}}}}}if(!valid0){const err130 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;validate23.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate23.errors = vErrors;return errors === 0;}exports.lobby_joined_event = validate24;const schema25 = {"$id":"lobby/joined/event","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"event","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/joined","type":"string"},"data":{"examples":[{"battleId":27,"hostId":822,"engine":"105.1.1-1821-gaca6f20 BAR105","game":"Beyond All Reason test-23561-0abff7c","map":"Red Comet Remake 1.8","startPosType":2,"startAreas":{"0":{"x":0,"y":0,"width":1,"height":0.3},"1":{"x":0,"y":0.7,"width":1,"height":0.3}},"startTime":1705432698,"ip":"121.32.201.76","port":41403,"scriptPassword":"10sdfi90sid0sjkdf","modOptions":{"emprework":0},"bots":[],"users":[]}],"type":"object","properties":{"battleId":{"type":"string"},"hostId":{"type":"string"},"engine":{"type":"string"},"game":{"type":"string"},"map":{"type":"string"},"startPosType":{"anyOf":[{"description":"Fixed","const":0,"type":"number"},{"description":"Random","const":1,"type":"number"},{"description":"Boxes","const":2,"type":"number"}]},"startAreas":{"type":"object","patternProperties":{"^(0|[1-9][0-9]*)$":{"examples":[{"x":0,"y":0,"width":1,"height":0.3}],"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"}},"required":["x","y","width","height"]}}},"startTime":{"anyOf":[{"description":"Unix time","examples":[1705432698,null],"type":"integer"},{"type":"null"}]},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"port":{"anyOf":[{"type":"integer"},{"type":"null"}]},"scriptPassword":{"anyOf":[{"type":"string"},{"type":"null"}]},"modOptions":{"type":"object","patternProperties":{"^(.*)$":{}}},"bots":{"type":"array","items":{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"},"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":true,"type":"boolean"},"ownerId":{"type":"string"},"aiShortName":{"type":"string"},"name":{"type":"string"},"aiOptions":{"type":"object","patternProperties":{"^(.*)$":{}}},"faction":{"type":"string"}},"required":["playerId","teamId","color","bonus","inGame","isSpectator","isBot","ownerId","aiShortName","name","aiOptions","faction"]}},"users":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"username":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"clanId":{"anyOf":[{"type":"string"},{"type":"null"}]},"partyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string"}},"countryCode":{"type":"string"},"status":{"anyOf":[{"const":"offline","type":"string"},{"const":"menu","type":"string"},{"const":"playing","type":"string"},{"const":"lobby","type":"string"}]},"battleStatus":{"anyOf":[{"allOf":[{"type":"object","properties":{"battleId":{"type":"string"}},"required":["battleId"]},{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"}},"required":["playerId","teamId","color","bonus","inGame"]},{"type":"object","properties":{"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":false,"type":"boolean"},"ready":{"type":"boolean"},"sync":{"type":"object","properties":{"engine":{"type":"number"},"game":{"type":"number"},"map":{"type":"number"}},"required":["engine","game","map"]}},"required":["isSpectator","isBot","ready","sync"]}]},{"type":"object","properties":{"isSpectator":{"const":true,"type":"boolean"},"isBot":{"const":false,"type":"boolean"}},"required":["isSpectator","isBot"]}]}]},{"type":"null"}]}},"required":["userId","username","displayName","avatarUrl","clanId","partyId","scopes","status","battleStatus"]}}},"required":["battleId","hostId","engine","game","map","startPosType","startAreas","startTime","ip","port","scriptPassword","modOptions","bots","users"]}},"required":["type","messageId","commandId","data"]};const pattern0 = new RegExp("^(0|[1-9][0-9]*)$", "u");function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/joined/event" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate24.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate24.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("event" !== data0){validate24.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate24.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate24.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/joined" !== data2){validate24.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/joined"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((((((((((((((data3.battleId === undefined) && (missing1 = "battleId")) || ((data3.hostId === undefined) && (missing1 = "hostId"))) || ((data3.engine === undefined) && (missing1 = "engine"))) || ((data3.game === undefined) && (missing1 = "game"))) || ((data3.map === undefined) && (missing1 = "map"))) || ((data3.startPosType === undefined) && (missing1 = "startPosType"))) || ((data3.startAreas === undefined) && (missing1 = "startAreas"))) || ((data3.startTime === undefined) && (missing1 = "startTime"))) || ((data3.ip === undefined) && (missing1 = "ip"))) || ((data3.port === undefined) && (missing1 = "port"))) || ((data3.scriptPassword === undefined) && (missing1 = "scriptPassword"))) || ((data3.modOptions === undefined) && (missing1 = "modOptions"))) || ((data3.bots === undefined) && (missing1 = "bots"))) || ((data3.users === undefined) && (missing1 = "users"))){validate24.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.battleId !== undefined){const _errs9 = errors;if(typeof data3.battleId !== "string"){validate24.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data3.hostId !== undefined){const _errs11 = errors;if(typeof data3.hostId !== "string"){validate24.errors = [{instancePath:instancePath+"/data/hostId",schemaPath:"#/properties/data/properties/hostId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data3.engine !== undefined){const _errs13 = errors;if(typeof data3.engine !== "string"){validate24.errors = [{instancePath:instancePath+"/data/engine",schemaPath:"#/properties/data/properties/engine/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data3.game !== undefined){const _errs15 = errors;if(typeof data3.game !== "string"){validate24.errors = [{instancePath:instancePath+"/data/game",schemaPath:"#/properties/data/properties/game/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data3.map !== undefined){const _errs17 = errors;if(typeof data3.map !== "string"){validate24.errors = [{instancePath:instancePath+"/data/map",schemaPath:"#/properties/data/properties/map/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs17 === errors;}else {var valid1 = true;}if(valid1){if(data3.startPosType !== undefined){let data9 = data3.startPosType;const _errs19 = errors;const _errs20 = errors;let valid2 = false;const _errs21 = errors;if(!((typeof data9 == "number") && (isFinite(data9)))){const err0 = {instancePath:instancePath+"/data/startPosType",schemaPath:"#/properties/data/properties/startPosType/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(0 !== data9){const err1 = {instancePath:instancePath+"/data/startPosType",schemaPath:"#/properties/data/properties/startPosType/anyOf/0/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs21 === errors;valid2 = valid2 || _valid0;if(!valid2){const _errs23 = errors;if(!((typeof data9 == "number") && (isFinite(data9)))){const err2 = {instancePath:instancePath+"/data/startPosType",schemaPath:"#/properties/data/properties/startPosType/anyOf/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(1 !== data9){const err3 = {instancePath:instancePath+"/data/startPosType",schemaPath:"#/properties/data/properties/startPosType/anyOf/1/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid0 = _errs23 === errors;valid2 = valid2 || _valid0;if(!valid2){const _errs25 = errors;if(!((typeof data9 == "number") && (isFinite(data9)))){const err4 = {instancePath:instancePath+"/data/startPosType",schemaPath:"#/properties/data/properties/startPosType/anyOf/2/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(2 !== data9){const err5 = {instancePath:instancePath+"/data/startPosType",schemaPath:"#/properties/data/properties/startPosType/anyOf/2/const",keyword:"const",params:{allowedValue: 2},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid0 = _errs25 === errors;valid2 = valid2 || _valid0;}}if(!valid2){const err6 = {instancePath:instancePath+"/data/startPosType",schemaPath:"#/properties/data/properties/startPosType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;validate24.errors = vErrors;return false;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var valid1 = _errs19 === errors;}else {var valid1 = true;}if(valid1){if(data3.startAreas !== undefined){let data10 = data3.startAreas;const _errs27 = errors;if(errors === _errs27){if(data10 && typeof data10 == "object" && !Array.isArray(data10)){var valid3 = true;for(const key0 in data10){if(pattern0.test(key0)){let data11 = data10[key0];const _errs29 = errors;if(errors === _errs29){if(data11 && typeof data11 == "object" && !Array.isArray(data11)){let missing2;if(((((data11.x === undefined) && (missing2 = "x")) || ((data11.y === undefined) && (missing2 = "y"))) || ((data11.width === undefined) && (missing2 = "width"))) || ((data11.height === undefined) && (missing2 = "height"))){validate24.errors = [{instancePath:instancePath+"/data/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/data/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data11.x !== undefined){let data12 = data11.x;const _errs31 = errors;if(!((typeof data12 == "number") && (isFinite(data12)))){validate24.errors = [{instancePath:instancePath+"/data/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/x",schemaPath:"#/properties/data/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/x/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data11.y !== undefined){let data13 = data11.y;const _errs33 = errors;if(!((typeof data13 == "number") && (isFinite(data13)))){validate24.errors = [{instancePath:instancePath+"/data/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/y",schemaPath:"#/properties/data/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/y/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data11.width !== undefined){let data14 = data11.width;const _errs35 = errors;if(!((typeof data14 == "number") && (isFinite(data14)))){validate24.errors = [{instancePath:instancePath+"/data/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/width",schemaPath:"#/properties/data/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data11.height !== undefined){let data15 = data11.height;const _errs37 = errors;if(!((typeof data15 == "number") && (isFinite(data15)))){validate24.errors = [{instancePath:instancePath+"/data/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/height",schemaPath:"#/properties/data/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {validate24.errors = [{instancePath:instancePath+"/data/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/data/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs29 === errors;if(!valid3){break;}}}}else {validate24.errors = [{instancePath:instancePath+"/data/startAreas",schemaPath:"#/properties/data/properties/startAreas/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs27 === errors;}else {var valid1 = true;}if(valid1){if(data3.startTime !== undefined){let data16 = data3.startTime;const _errs39 = errors;const _errs40 = errors;let valid5 = false;const _errs41 = errors;if(!(((typeof data16 == "number") && (!(data16 % 1) && !isNaN(data16))) && (isFinite(data16)))){const err7 = {instancePath:instancePath+"/data/startTime",schemaPath:"#/properties/data/properties/startTime/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid1 = _errs41 === errors;valid5 = valid5 || _valid1;if(!valid5){const _errs43 = errors;if(data16 !== null){const err8 = {instancePath:instancePath+"/data/startTime",schemaPath:"#/properties/data/properties/startTime/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid1 = _errs43 === errors;valid5 = valid5 || _valid1;}if(!valid5){const err9 = {instancePath:instancePath+"/data/startTime",schemaPath:"#/properties/data/properties/startTime/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;validate24.errors = vErrors;return false;}else {errors = _errs40;if(vErrors !== null){if(_errs40){vErrors.length = _errs40;}else {vErrors = null;}}}var valid1 = _errs39 === errors;}else {var valid1 = true;}if(valid1){if(data3.ip !== undefined){let data17 = data3.ip;const _errs45 = errors;const _errs46 = errors;let valid6 = false;const _errs47 = errors;if(typeof data17 !== "string"){const err10 = {instancePath:instancePath+"/data/ip",schemaPath:"#/properties/data/properties/ip/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid2 = _errs47 === errors;valid6 = valid6 || _valid2;if(!valid6){const _errs49 = errors;if(data17 !== null){const err11 = {instancePath:instancePath+"/data/ip",schemaPath:"#/properties/data/properties/ip/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid2 = _errs49 === errors;valid6 = valid6 || _valid2;}if(!valid6){const err12 = {instancePath:instancePath+"/data/ip",schemaPath:"#/properties/data/properties/ip/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;validate24.errors = vErrors;return false;}else {errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}}var valid1 = _errs45 === errors;}else {var valid1 = true;}if(valid1){if(data3.port !== undefined){let data18 = data3.port;const _errs51 = errors;const _errs52 = errors;let valid7 = false;const _errs53 = errors;if(!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))){const err13 = {instancePath:instancePath+"/data/port",schemaPath:"#/properties/data/properties/port/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid3 = _errs53 === errors;valid7 = valid7 || _valid3;if(!valid7){const _errs55 = errors;if(data18 !== null){const err14 = {instancePath:instancePath+"/data/port",schemaPath:"#/properties/data/properties/port/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid3 = _errs55 === errors;valid7 = valid7 || _valid3;}if(!valid7){const err15 = {instancePath:instancePath+"/data/port",schemaPath:"#/properties/data/properties/port/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;validate24.errors = vErrors;return false;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}var valid1 = _errs51 === errors;}else {var valid1 = true;}if(valid1){if(data3.scriptPassword !== undefined){let data19 = data3.scriptPassword;const _errs57 = errors;const _errs58 = errors;let valid8 = false;const _errs59 = errors;if(typeof data19 !== "string"){const err16 = {instancePath:instancePath+"/data/scriptPassword",schemaPath:"#/properties/data/properties/scriptPassword/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid4 = _errs59 === errors;valid8 = valid8 || _valid4;if(!valid8){const _errs61 = errors;if(data19 !== null){const err17 = {instancePath:instancePath+"/data/scriptPassword",schemaPath:"#/properties/data/properties/scriptPassword/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid4 = _errs61 === errors;valid8 = valid8 || _valid4;}if(!valid8){const err18 = {instancePath:instancePath+"/data/scriptPassword",schemaPath:"#/properties/data/properties/scriptPassword/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;validate24.errors = vErrors;return false;}else {errors = _errs58;if(vErrors !== null){if(_errs58){vErrors.length = _errs58;}else {vErrors = null;}}}var valid1 = _errs57 === errors;}else {var valid1 = true;}if(valid1){if(data3.modOptions !== undefined){let data20 = data3.modOptions;const _errs63 = errors;if(errors === _errs63){if(!(data20 && typeof data20 == "object" && !Array.isArray(data20))){validate24.errors = [{instancePath:instancePath+"/data/modOptions",schemaPath:"#/properties/data/properties/modOptions/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs63 === errors;}else {var valid1 = true;}if(valid1){if(data3.bots !== undefined){let data21 = data3.bots;const _errs65 = errors;if(errors === _errs65){if(Array.isArray(data21)){var valid9 = true;const len0 = data21.length;for(let i0=0; i0<len0; i0++){let data22 = data21[i0];const _errs67 = errors;if(errors === _errs67){if(data22 && typeof data22 == "object" && !Array.isArray(data22)){let missing3;if(((((((((((((data22.playerId === undefined) && (missing3 = "playerId")) || ((data22.teamId === undefined) && (missing3 = "teamId"))) || ((data22.color === undefined) && (missing3 = "color"))) || ((data22.bonus === undefined) && (missing3 = "bonus"))) || ((data22.inGame === undefined) && (missing3 = "inGame"))) || ((data22.isSpectator === undefined) && (missing3 = "isSpectator"))) || ((data22.isBot === undefined) && (missing3 = "isBot"))) || ((data22.ownerId === undefined) && (missing3 = "ownerId"))) || ((data22.aiShortName === undefined) && (missing3 = "aiShortName"))) || ((data22.name === undefined) && (missing3 = "name"))) || ((data22.aiOptions === undefined) && (missing3 = "aiOptions"))) || ((data22.faction === undefined) && (missing3 = "faction"))){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0,schemaPath:"#/properties/data/properties/bots/items/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {if(data22.playerId !== undefined){let data23 = data22.playerId;const _errs69 = errors;if(!(((typeof data23 == "number") && (!(data23 % 1) && !isNaN(data23))) && (isFinite(data23)))){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0+"/playerId",schemaPath:"#/properties/data/properties/bots/items/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid10 = _errs69 === errors;}else {var valid10 = true;}if(valid10){if(data22.teamId !== undefined){let data24 = data22.teamId;const _errs71 = errors;if(!(((typeof data24 == "number") && (!(data24 % 1) && !isNaN(data24))) && (isFinite(data24)))){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0+"/teamId",schemaPath:"#/properties/data/properties/bots/items/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid10 = _errs71 === errors;}else {var valid10 = true;}if(valid10){if(data22.color !== undefined){const _errs73 = errors;if(typeof data22.color !== "string"){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0+"/color",schemaPath:"#/properties/data/properties/bots/items/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs73 === errors;}else {var valid10 = true;}if(valid10){if(data22.bonus !== undefined){let data26 = data22.bonus;const _errs75 = errors;if(!((typeof data26 == "number") && (isFinite(data26)))){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0+"/bonus",schemaPath:"#/properties/data/properties/bots/items/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid10 = _errs75 === errors;}else {var valid10 = true;}if(valid10){if(data22.inGame !== undefined){const _errs77 = errors;if(typeof data22.inGame !== "boolean"){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0+"/inGame",schemaPath:"#/properties/data/properties/bots/items/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid10 = _errs77 === errors;}else {var valid10 = true;}if(valid10){if(data22.isSpectator !== undefined){let data28 = data22.isSpectator;const _errs79 = errors;if(typeof data28 !== "boolean"){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0+"/isSpectator",schemaPath:"#/properties/data/properties/bots/items/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}if(false !== data28){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0+"/isSpectator",schemaPath:"#/properties/data/properties/bots/items/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"}];return false;}var valid10 = _errs79 === errors;}else {var valid10 = true;}if(valid10){if(data22.isBot !== undefined){let data29 = data22.isBot;const _errs81 = errors;if(typeof data29 !== "boolean"){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0+"/isBot",schemaPath:"#/properties/data/properties/bots/items/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}if(true !== data29){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0+"/isBot",schemaPath:"#/properties/data/properties/bots/items/properties/isBot/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"}];return false;}var valid10 = _errs81 === errors;}else {var valid10 = true;}if(valid10){if(data22.ownerId !== undefined){const _errs83 = errors;if(typeof data22.ownerId !== "string"){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0+"/ownerId",schemaPath:"#/properties/data/properties/bots/items/properties/ownerId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs83 === errors;}else {var valid10 = true;}if(valid10){if(data22.aiShortName !== undefined){const _errs85 = errors;if(typeof data22.aiShortName !== "string"){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0+"/aiShortName",schemaPath:"#/properties/data/properties/bots/items/properties/aiShortName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs85 === errors;}else {var valid10 = true;}if(valid10){if(data22.name !== undefined){const _errs87 = errors;if(typeof data22.name !== "string"){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0+"/name",schemaPath:"#/properties/data/properties/bots/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs87 === errors;}else {var valid10 = true;}if(valid10){if(data22.aiOptions !== undefined){let data33 = data22.aiOptions;const _errs89 = errors;if(errors === _errs89){if(!(data33 && typeof data33 == "object" && !Array.isArray(data33))){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0+"/aiOptions",schemaPath:"#/properties/data/properties/bots/items/properties/aiOptions/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid10 = _errs89 === errors;}else {var valid10 = true;}if(valid10){if(data22.faction !== undefined){const _errs91 = errors;if(typeof data22.faction !== "string"){validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0+"/faction",schemaPath:"#/properties/data/properties/bots/items/properties/faction/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs91 === errors;}else {var valid10 = true;}}}}}}}}}}}}}}else {validate24.errors = [{instancePath:instancePath+"/data/bots/" + i0,schemaPath:"#/properties/data/properties/bots/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid9 = _errs67 === errors;if(!valid9){break;}}}else {validate24.errors = [{instancePath:instancePath+"/data/bots",schemaPath:"#/properties/data/properties/bots/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs65 === errors;}else {var valid1 = true;}if(valid1){if(data3.users !== undefined){let data35 = data3.users;const _errs93 = errors;if(errors === _errs93){if(Array.isArray(data35)){var valid11 = true;const len1 = data35.length;for(let i1=0; i1<len1; i1++){let data36 = data35[i1];const _errs95 = errors;if(errors === _errs95){if(data36 && typeof data36 == "object" && !Array.isArray(data36)){let missing4;if((((((((((data36.userId === undefined) && (missing4 = "userId")) || ((data36.username === undefined) && (missing4 = "username"))) || ((data36.displayName === undefined) && (missing4 = "displayName"))) || ((data36.avatarUrl === undefined) && (missing4 = "avatarUrl"))) || ((data36.clanId === undefined) && (missing4 = "clanId"))) || ((data36.partyId === undefined) && (missing4 = "partyId"))) || ((data36.scopes === undefined) && (missing4 = "scopes"))) || ((data36.status === undefined) && (missing4 = "status"))) || ((data36.battleStatus === undefined) && (missing4 = "battleStatus"))){validate24.errors = [{instancePath:instancePath+"/data/users/" + i1,schemaPath:"#/properties/data/properties/users/items/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"}];return false;}else {if(data36.userId !== undefined){const _errs97 = errors;if(typeof data36.userId !== "string"){validate24.errors = [{instancePath:instancePath+"/data/users/" + i1+"/userId",schemaPath:"#/properties/data/properties/users/items/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid12 = _errs97 === errors;}else {var valid12 = true;}if(valid12){if(data36.username !== undefined){const _errs99 = errors;if(typeof data36.username !== "string"){validate24.errors = [{instancePath:instancePath+"/data/users/" + i1+"/username",schemaPath:"#/properties/data/properties/users/items/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid12 = _errs99 === errors;}else {var valid12 = true;}if(valid12){if(data36.displayName !== undefined){const _errs101 = errors;if(typeof data36.displayName !== "string"){validate24.errors = [{instancePath:instancePath+"/data/users/" + i1+"/displayName",schemaPath:"#/properties/data/properties/users/items/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid12 = _errs101 === errors;}else {var valid12 = true;}if(valid12){if(data36.avatarUrl !== undefined){let data40 = data36.avatarUrl;const _errs103 = errors;const _errs104 = errors;let valid13 = false;const _errs105 = errors;if(typeof data40 !== "string"){const err19 = {instancePath:instancePath+"/data/users/" + i1+"/avatarUrl",schemaPath:"#/properties/data/properties/users/items/properties/avatarUrl/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid5 = _errs105 === errors;valid13 = valid13 || _valid5;if(!valid13){const _errs107 = errors;if(data40 !== null){const err20 = {instancePath:instancePath+"/data/users/" + i1+"/avatarUrl",schemaPath:"#/properties/data/properties/users/items/properties/avatarUrl/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid5 = _errs107 === errors;valid13 = valid13 || _valid5;}if(!valid13){const err21 = {instancePath:instancePath+"/data/users/" + i1+"/avatarUrl",schemaPath:"#/properties/data/properties/users/items/properties/avatarUrl/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;validate24.errors = vErrors;return false;}else {errors = _errs104;if(vErrors !== null){if(_errs104){vErrors.length = _errs104;}else {vErrors = null;}}}var valid12 = _errs103 === errors;}else {var valid12 = true;}if(valid12){if(data36.clanId !== undefined){let data41 = data36.clanId;const _errs109 = errors;const _errs110 = errors;let valid14 = false;const _errs111 = errors;if(typeof data41 !== "string"){const err22 = {instancePath:instancePath+"/data/users/" + i1+"/clanId",schemaPath:"#/properties/data/properties/users/items/properties/clanId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var _valid6 = _errs111 === errors;valid14 = valid14 || _valid6;if(!valid14){const _errs113 = errors;if(data41 !== null){const err23 = {instancePath:instancePath+"/data/users/" + i1+"/clanId",schemaPath:"#/properties/data/properties/users/items/properties/clanId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var _valid6 = _errs113 === errors;valid14 = valid14 || _valid6;}if(!valid14){const err24 = {instancePath:instancePath+"/data/users/" + i1+"/clanId",schemaPath:"#/properties/data/properties/users/items/properties/clanId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;validate24.errors = vErrors;return false;}else {errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}}var valid12 = _errs109 === errors;}else {var valid12 = true;}if(valid12){if(data36.partyId !== undefined){let data42 = data36.partyId;const _errs115 = errors;const _errs116 = errors;let valid15 = false;const _errs117 = errors;if(typeof data42 !== "string"){const err25 = {instancePath:instancePath+"/data/users/" + i1+"/partyId",schemaPath:"#/properties/data/properties/users/items/properties/partyId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid7 = _errs117 === errors;valid15 = valid15 || _valid7;if(!valid15){const _errs119 = errors;if(data42 !== null){const err26 = {instancePath:instancePath+"/data/users/" + i1+"/partyId",schemaPath:"#/properties/data/properties/users/items/properties/partyId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var _valid7 = _errs119 === errors;valid15 = valid15 || _valid7;}if(!valid15){const err27 = {instancePath:instancePath+"/data/users/" + i1+"/partyId",schemaPath:"#/properties/data/properties/users/items/properties/partyId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;validate24.errors = vErrors;return false;}else {errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}var valid12 = _errs115 === errors;}else {var valid12 = true;}if(valid12){if(data36.scopes !== undefined){let data43 = data36.scopes;const _errs121 = errors;if(errors === _errs121){if(Array.isArray(data43)){var valid16 = true;const len2 = data43.length;for(let i2=0; i2<len2; i2++){const _errs123 = errors;if(typeof data43[i2] !== "string"){validate24.errors = [{instancePath:instancePath+"/data/users/" + i1+"/scopes/" + i2,schemaPath:"#/properties/data/properties/users/items/properties/scopes/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid16 = _errs123 === errors;if(!valid16){break;}}}else {validate24.errors = [{instancePath:instancePath+"/data/users/" + i1+"/scopes",schemaPath:"#/properties/data/properties/users/items/properties/scopes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid12 = _errs121 === errors;}else {var valid12 = true;}if(valid12){if(data36.countryCode !== undefined){const _errs125 = errors;if(typeof data36.countryCode !== "string"){validate24.errors = [{instancePath:instancePath+"/data/users/" + i1+"/countryCode",schemaPath:"#/properties/data/properties/users/items/properties/countryCode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid12 = _errs125 === errors;}else {var valid12 = true;}if(valid12){if(data36.status !== undefined){let data46 = data36.status;const _errs127 = errors;const _errs128 = errors;let valid17 = false;const _errs129 = errors;if(typeof data46 !== "string"){const err28 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("offline" !== data46){const err29 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/0/const",keyword:"const",params:{allowedValue: "offline"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var _valid8 = _errs129 === errors;valid17 = valid17 || _valid8;if(!valid17){const _errs131 = errors;if(typeof data46 !== "string"){const err30 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("menu" !== data46){const err31 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/1/const",keyword:"const",params:{allowedValue: "menu"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid8 = _errs131 === errors;valid17 = valid17 || _valid8;if(!valid17){const _errs133 = errors;if(typeof data46 !== "string"){const err32 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("playing" !== data46){const err33 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/2/const",keyword:"const",params:{allowedValue: "playing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var _valid8 = _errs133 === errors;valid17 = valid17 || _valid8;if(!valid17){const _errs135 = errors;if(typeof data46 !== "string"){const err34 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("lobby" !== data46){const err35 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/3/const",keyword:"const",params:{allowedValue: "lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var _valid8 = _errs135 === errors;valid17 = valid17 || _valid8;}}}if(!valid17){const err36 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;validate24.errors = vErrors;return false;}else {errors = _errs128;if(vErrors !== null){if(_errs128){vErrors.length = _errs128;}else {vErrors = null;}}}var valid12 = _errs127 === errors;}else {var valid12 = true;}if(valid12){if(data36.battleStatus !== undefined){let data47 = data36.battleStatus;const _errs137 = errors;const _errs138 = errors;let valid18 = false;const _errs139 = errors;const _errs140 = errors;if(errors === _errs140){if(data47 && typeof data47 == "object" && !Array.isArray(data47)){let missing5;if((data47.battleId === undefined) && (missing5 = "battleId")){const err37 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {if(data47.battleId !== undefined){if(typeof data47.battleId !== "string"){const err38 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/battleId",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}}else {const err39 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}var valid19 = _errs140 === errors;if(valid19){const _errs144 = errors;const _errs145 = errors;let valid21 = false;const _errs146 = errors;if(!(data47 && typeof data47 == "object" && !Array.isArray(data47))){const err40 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}const _errs148 = errors;if(errors === _errs148){if(data47 && typeof data47 == "object" && !Array.isArray(data47)){let missing6;if((((((data47.playerId === undefined) && (missing6 = "playerId")) || ((data47.teamId === undefined) && (missing6 = "teamId"))) || ((data47.color === undefined) && (missing6 = "color"))) || ((data47.bonus === undefined) && (missing6 = "bonus"))) || ((data47.inGame === undefined) && (missing6 = "inGame"))){const err41 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}else {if(data47.playerId !== undefined){let data49 = data47.playerId;const _errs150 = errors;if(!(((typeof data49 == "number") && (!(data49 % 1) && !isNaN(data49))) && (isFinite(data49)))){const err42 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/playerId",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var valid23 = _errs150 === errors;}else {var valid23 = true;}if(valid23){if(data47.teamId !== undefined){let data50 = data47.teamId;const _errs152 = errors;if(!(((typeof data50 == "number") && (!(data50 % 1) && !isNaN(data50))) && (isFinite(data50)))){const err43 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/teamId",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid23 = _errs152 === errors;}else {var valid23 = true;}if(valid23){if(data47.color !== undefined){const _errs154 = errors;if(typeof data47.color !== "string"){const err44 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/color",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid23 = _errs154 === errors;}else {var valid23 = true;}if(valid23){if(data47.bonus !== undefined){let data52 = data47.bonus;const _errs156 = errors;if(!((typeof data52 == "number") && (isFinite(data52)))){const err45 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/bonus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid23 = _errs156 === errors;}else {var valid23 = true;}if(valid23){if(data47.inGame !== undefined){const _errs158 = errors;if(typeof data47.inGame !== "boolean"){const err46 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/inGame",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid23 = _errs158 === errors;}else {var valid23 = true;}}}}}}}else {const err47 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}var valid22 = _errs148 === errors;if(valid22){const _errs160 = errors;if(errors === _errs160){if(data47 && typeof data47 == "object" && !Array.isArray(data47)){let missing7;if(((((data47.isSpectator === undefined) && (missing7 = "isSpectator")) || ((data47.isBot === undefined) && (missing7 = "isBot"))) || ((data47.ready === undefined) && (missing7 = "ready"))) || ((data47.sync === undefined) && (missing7 = "sync"))){const err48 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data47.isSpectator !== undefined){let data54 = data47.isSpectator;const _errs162 = errors;if(typeof data54 !== "boolean"){const err49 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if(false !== data54){const err50 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid24 = _errs162 === errors;}else {var valid24 = true;}if(valid24){if(data47.isBot !== undefined){let data55 = data47.isBot;const _errs164 = errors;if(typeof data55 !== "boolean"){const err51 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isBot",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(false !== data55){const err52 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isBot",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var valid24 = _errs164 === errors;}else {var valid24 = true;}if(valid24){if(data47.ready !== undefined){const _errs166 = errors;if(typeof data47.ready !== "boolean"){const err53 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/ready",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/ready/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid24 = _errs166 === errors;}else {var valid24 = true;}if(valid24){if(data47.sync !== undefined){let data57 = data47.sync;const _errs168 = errors;if(errors === _errs168){if(data57 && typeof data57 == "object" && !Array.isArray(data57)){let missing8;if((((data57.engine === undefined) && (missing8 = "engine")) || ((data57.game === undefined) && (missing8 = "game"))) || ((data57.map === undefined) && (missing8 = "map"))){const err54 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/sync",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {if(data57.engine !== undefined){let data58 = data57.engine;const _errs170 = errors;if(!((typeof data58 == "number") && (isFinite(data58)))){const err55 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/sync/engine",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/engine/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid25 = _errs170 === errors;}else {var valid25 = true;}if(valid25){if(data57.game !== undefined){let data59 = data57.game;const _errs172 = errors;if(!((typeof data59 == "number") && (isFinite(data59)))){const err56 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/sync/game",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/game/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid25 = _errs172 === errors;}else {var valid25 = true;}if(valid25){if(data57.map !== undefined){let data60 = data57.map;const _errs174 = errors;if(!((typeof data60 == "number") && (isFinite(data60)))){const err57 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/sync/map",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/map/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid25 = _errs174 === errors;}else {var valid25 = true;}}}}}else {const err58 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/sync",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}var valid24 = _errs168 === errors;}else {var valid24 = true;}}}}}}else {const err59 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid22 = _errs160 === errors;}var _valid10 = _errs146 === errors;valid21 = valid21 || _valid10;if(!valid21){const _errs176 = errors;if(errors === _errs176){if(data47 && typeof data47 == "object" && !Array.isArray(data47)){let missing9;if(((data47.isSpectator === undefined) && (missing9 = "isSpectator")) || ((data47.isBot === undefined) && (missing9 = "isBot"))){const err60 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data47.isSpectator !== undefined){let data61 = data47.isSpectator;const _errs178 = errors;if(typeof data61 !== "boolean"){const err61 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(true !== data61){const err62 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid26 = _errs178 === errors;}else {var valid26 = true;}if(valid26){if(data47.isBot !== undefined){let data62 = data47.isBot;const _errs180 = errors;if(typeof data62 !== "boolean"){const err63 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isBot",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(false !== data62){const err64 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isBot",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var valid26 = _errs180 === errors;}else {var valid26 = true;}}}}else {const err65 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}var _valid10 = _errs176 === errors;valid21 = valid21 || _valid10;}if(!valid21){const err66 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {errors = _errs145;if(vErrors !== null){if(_errs145){vErrors.length = _errs145;}else {vErrors = null;}}}var valid19 = _errs144 === errors;}var _valid9 = _errs139 === errors;valid18 = valid18 || _valid9;if(!valid18){const _errs182 = errors;if(data47 !== null){const err67 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid9 = _errs182 === errors;valid18 = valid18 || _valid9;}if(!valid18){const err68 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;validate24.errors = vErrors;return false;}else {errors = _errs138;if(vErrors !== null){if(_errs138){vErrors.length = _errs138;}else {vErrors = null;}}}var valid12 = _errs137 === errors;}else {var valid12 = true;}}}}}}}}}}}}else {validate24.errors = [{instancePath:instancePath+"/data/users/" + i1,schemaPath:"#/properties/data/properties/users/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid11 = _errs95 === errors;if(!valid11){break;}}}else {validate24.errors = [{instancePath:instancePath+"/data/users",schemaPath:"#/properties/data/properties/users/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs93 === errors;}else {var valid1 = true;}}}}}}}}}}}}}}}}else {validate24.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate24.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate24.errors = vErrors;return errors === 0;}exports.lobby_leave_request = validate25;const schema26 = {"$id":"lobby/leave/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/leave","type":"string"}},"required":["type","messageId","commandId"]};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/leave/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate25.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate25.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate25.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate25.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate25.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/leave" !== data2){validate25.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/leave"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate25.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate25.errors = vErrors;return errors === 0;}exports.lobby_leave_response = validate26;const schema27 = {"$id":"lobby/leave/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/leave","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/leave","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"no_lobby","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/leave","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/leave","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/leave","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/leave","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate26(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/leave/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("lobby/leave" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/leave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("lobby/leave" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/leave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("no_lobby" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "no_lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("lobby/leave" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/leave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("internal_error" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("lobby/leave" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/leave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("unauthorized" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("lobby/leave" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/leave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("invalid_request" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs59 = errors;if(errors === _errs59){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((((((data.type === undefined) && (missing5 = "type")) || ((data.messageId === undefined) && (missing5 = "messageId"))) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err53 = {instancePath,schemaPath:"#/anyOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {if(data.type !== undefined){let data24 = data.type;const _errs61 = errors;if(typeof data24 !== "string"){const err54 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("response" !== data24){const err55 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid6 = _errs61 === errors;}else {var valid6 = true;}if(valid6){if(data.messageId !== undefined){const _errs63 = errors;if(typeof data.messageId !== "string"){const err56 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/5/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid6 = _errs63 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data26 = data.commandId;const _errs65 = errors;if(typeof data26 !== "string"){const err57 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if("lobby/leave" !== data26){const err58 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/leave"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid6 = _errs65 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data27 = data.status;const _errs67 = errors;if(typeof data27 !== "string"){const err59 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("failed" !== data27){const err60 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid6 = _errs67 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data28 = data.reason;const _errs69 = errors;if(typeof data28 !== "string"){const err61 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if("command_unimplemented" !== data28){const err62 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid6 = _errs69 === errors;}else {var valid6 = true;}}}}}}}else {const err63 = {instancePath,schemaPath:"#/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var _valid0 = _errs59 === errors;valid0 = valid0 || _valid0;}}}}}if(!valid0){const err64 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;validate26.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate26.errors = vErrors;return errors === 0;}exports.lobby_left_event = validate27;const schema28 = {"$id":"lobby/left/event","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"event","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/left","type":"string"}},"required":["type","messageId","commandId"]};function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/left/event" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate27.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate27.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("event" !== data0){validate27.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate27.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate27.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/left" !== data2){validate27.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/left"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate27.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate27.errors = vErrors;return errors === 0;}exports.lobby_list_request = validate28;const schema29 = {"$id":"lobby/list/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/list","type":"string"}},"required":["type","messageId","commandId"]};function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/list/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate28.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate28.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate28.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate28.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate28.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/list" !== data2){validate28.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/list"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate28.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate28.errors = vErrors;return errors === 0;}exports.lobby_list_response = validate29;const schema30 = {"$id":"lobby/list/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/list","type":"string"},"status":{"const":"success","type":"string"},"data":{"type":"object","properties":{"battles":{"type":"array","items":{"examples":[{"battleId":27,"hostId":822,"engine":"105.1.1-1821-gaca6f20 BAR105","game":"Beyond All Reason test-23561-0abff7c","map":"Red Comet Remake 1.8","startPosType":2,"startAreas":{"0":{"x":0,"y":0,"width":1,"height":0.3},"1":{"x":0,"y":0.7,"width":1,"height":0.3}},"startTime":1705432698,"ip":"121.32.201.76","port":41403,"scriptPassword":"10sdfi90sid0sjkdf","modOptions":{"emprework":0},"bots":[],"users":[],"title":"8v8 | All Welcome","bossIds":[123,456],"locked":false,"passworded":false,"spectatorIds":[88],"limits":{"minTeamsize":3,"maxTeamsize":3,"minRating":null,"maxRating":25}}],"type":"object","allOf":[{"examples":[{"battleId":27,"hostId":822,"engine":"105.1.1-1821-gaca6f20 BAR105","game":"Beyond All Reason test-23561-0abff7c","map":"Red Comet Remake 1.8","startPosType":2,"startAreas":{"0":{"x":0,"y":0,"width":1,"height":0.3},"1":{"x":0,"y":0.7,"width":1,"height":0.3}},"startTime":1705432698,"ip":"121.32.201.76","port":41403,"scriptPassword":"10sdfi90sid0sjkdf","modOptions":{"emprework":0},"bots":[],"users":[]}],"type":"object","properties":{"battleId":{"type":"string"},"hostId":{"type":"string"},"engine":{"type":"string"},"game":{"type":"string"},"map":{"type":"string"},"startPosType":{"anyOf":[{"description":"Fixed","const":0,"type":"number"},{"description":"Random","const":1,"type":"number"},{"description":"Boxes","const":2,"type":"number"}]},"startAreas":{"type":"object","patternProperties":{"^(0|[1-9][0-9]*)$":{"examples":[{"x":0,"y":0,"width":1,"height":0.3}],"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"}},"required":["x","y","width","height"]}}},"startTime":{"anyOf":[{"description":"Unix time","examples":[1705432698,null],"type":"integer"},{"type":"null"}]},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"port":{"anyOf":[{"type":"integer"},{"type":"null"}]},"scriptPassword":{"anyOf":[{"type":"string"},{"type":"null"}]},"modOptions":{"type":"object","patternProperties":{"^(.*)$":{}}},"bots":{"type":"array","items":{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"},"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":true,"type":"boolean"},"ownerId":{"type":"string"},"aiShortName":{"type":"string"},"name":{"type":"string"},"aiOptions":{"type":"object","patternProperties":{"^(.*)$":{}}},"faction":{"type":"string"}},"required":["playerId","teamId","color","bonus","inGame","isSpectator","isBot","ownerId","aiShortName","name","aiOptions","faction"]}},"users":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"username":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"clanId":{"anyOf":[{"type":"string"},{"type":"null"}]},"partyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string"}},"countryCode":{"type":"string"},"status":{"anyOf":[{"const":"offline","type":"string"},{"const":"menu","type":"string"},{"const":"playing","type":"string"},{"const":"lobby","type":"string"}]},"battleStatus":{"anyOf":[{"allOf":[{"type":"object","properties":{"battleId":{"type":"string"}},"required":["battleId"]},{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"}},"required":["playerId","teamId","color","bonus","inGame"]},{"type":"object","properties":{"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":false,"type":"boolean"},"ready":{"type":"boolean"},"sync":{"type":"object","properties":{"engine":{"type":"number"},"game":{"type":"number"},"map":{"type":"number"}},"required":["engine","game","map"]}},"required":["isSpectator","isBot","ready","sync"]}]},{"type":"object","properties":{"isSpectator":{"const":true,"type":"boolean"},"isBot":{"const":false,"type":"boolean"}},"required":["isSpectator","isBot"]}]}]},{"type":"null"}]}},"required":["userId","username","displayName","avatarUrl","clanId","partyId","scopes","status","battleStatus"]}}},"required":["battleId","hostId","engine","game","map","startPosType","startAreas","startTime","ip","port","scriptPassword","modOptions","bots","users"]},{"type":"object","properties":{"title":{"type":"string"},"locked":{"type":"boolean"},"passworded":{"type":"boolean"},"bossIds":{"type":"array","items":{"type":"string"}},"joinQueueIds":{"type":"array","items":{"type":"string"}},"limits":{"type":"object","properties":{"minTeamsize":{"anyOf":[{"type":"integer"},{"type":"null"}]},"maxTeamsize":{"anyOf":[{"type":"integer"},{"type":"null"}]},"minRating":{"anyOf":[{"type":"integer"},{"type":"null"}]},"maxRating":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["minTeamsize","maxTeamsize","minRating","maxRating"]}},"required":["title","locked","passworded","bossIds","joinQueueIds","limits"]}]}}},"required":["battles"]}},"required":["type","messageId","commandId","status","data"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/list","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/list","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/list","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/list","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate29(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/list/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("lobby/list" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/list"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data4 = data.data;const _errs11 = errors;if(errors === _errs11){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing1;if((data4.battles === undefined) && (missing1 = "battles")){const err8 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data4.battles !== undefined){let data5 = data4.battles;const _errs13 = errors;if(errors === _errs13){if(Array.isArray(data5)){var valid3 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];const _errs15 = errors;if(!(data6 && typeof data6 == "object" && !Array.isArray(data6))){const err9 = {instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}const _errs17 = errors;if(errors === _errs17){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing2;if(((((((((((((((data6.battleId === undefined) && (missing2 = "battleId")) || ((data6.hostId === undefined) && (missing2 = "hostId"))) || ((data6.engine === undefined) && (missing2 = "engine"))) || ((data6.game === undefined) && (missing2 = "game"))) || ((data6.map === undefined) && (missing2 = "map"))) || ((data6.startPosType === undefined) && (missing2 = "startPosType"))) || ((data6.startAreas === undefined) && (missing2 = "startAreas"))) || ((data6.startTime === undefined) && (missing2 = "startTime"))) || ((data6.ip === undefined) && (missing2 = "ip"))) || ((data6.port === undefined) && (missing2 = "port"))) || ((data6.scriptPassword === undefined) && (missing2 = "scriptPassword"))) || ((data6.modOptions === undefined) && (missing2 = "modOptions"))) || ((data6.bots === undefined) && (missing2 = "bots"))) || ((data6.users === undefined) && (missing2 = "users"))){const err10 = {instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {if(data6.battleId !== undefined){const _errs19 = errors;if(typeof data6.battleId !== "string"){const err11 = {instancePath:instancePath+"/data/battles/" + i0+"/battleId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid5 = _errs19 === errors;}else {var valid5 = true;}if(valid5){if(data6.hostId !== undefined){const _errs21 = errors;if(typeof data6.hostId !== "string"){const err12 = {instancePath:instancePath+"/data/battles/" + i0+"/hostId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/hostId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid5 = _errs21 === errors;}else {var valid5 = true;}if(valid5){if(data6.engine !== undefined){const _errs23 = errors;if(typeof data6.engine !== "string"){const err13 = {instancePath:instancePath+"/data/battles/" + i0+"/engine",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/engine/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid5 = _errs23 === errors;}else {var valid5 = true;}if(valid5){if(data6.game !== undefined){const _errs25 = errors;if(typeof data6.game !== "string"){const err14 = {instancePath:instancePath+"/data/battles/" + i0+"/game",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/game/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid5 = _errs25 === errors;}else {var valid5 = true;}if(valid5){if(data6.map !== undefined){const _errs27 = errors;if(typeof data6.map !== "string"){const err15 = {instancePath:instancePath+"/data/battles/" + i0+"/map",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/map/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid5 = _errs27 === errors;}else {var valid5 = true;}if(valid5){if(data6.startPosType !== undefined){let data12 = data6.startPosType;const _errs29 = errors;const _errs30 = errors;let valid6 = false;const _errs31 = errors;if(!((typeof data12 == "number") && (isFinite(data12)))){const err16 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(0 !== data12){const err17 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/0/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid1 = _errs31 === errors;valid6 = valid6 || _valid1;if(!valid6){const _errs33 = errors;if(!((typeof data12 == "number") && (isFinite(data12)))){const err18 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(1 !== data12){const err19 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/1/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid1 = _errs33 === errors;valid6 = valid6 || _valid1;if(!valid6){const _errs35 = errors;if(!((typeof data12 == "number") && (isFinite(data12)))){const err20 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/2/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(2 !== data12){const err21 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/2/const",keyword:"const",params:{allowedValue: 2},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid1 = _errs35 === errors;valid6 = valid6 || _valid1;}}if(!valid6){const err22 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {errors = _errs30;if(vErrors !== null){if(_errs30){vErrors.length = _errs30;}else {vErrors = null;}}}var valid5 = _errs29 === errors;}else {var valid5 = true;}if(valid5){if(data6.startAreas !== undefined){let data13 = data6.startAreas;const _errs37 = errors;if(errors === _errs37){if(data13 && typeof data13 == "object" && !Array.isArray(data13)){var valid7 = true;for(const key0 in data13){if(pattern0.test(key0)){let data14 = data13[key0];const _errs39 = errors;if(errors === _errs39){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){let missing3;if(((((data14.x === undefined) && (missing3 = "x")) || ((data14.y === undefined) && (missing3 = "y"))) || ((data14.width === undefined) && (missing3 = "width"))) || ((data14.height === undefined) && (missing3 = "height"))){const err23 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {if(data14.x !== undefined){let data15 = data14.x;const _errs41 = errors;if(!((typeof data15 == "number") && (isFinite(data15)))){const err24 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/x",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/x/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid8 = _errs41 === errors;}else {var valid8 = true;}if(valid8){if(data14.y !== undefined){let data16 = data14.y;const _errs43 = errors;if(!((typeof data16 == "number") && (isFinite(data16)))){const err25 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/y",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/y/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid8 = _errs43 === errors;}else {var valid8 = true;}if(valid8){if(data14.width !== undefined){let data17 = data14.width;const _errs45 = errors;if(!((typeof data17 == "number") && (isFinite(data17)))){const err26 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/width",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid8 = _errs45 === errors;}else {var valid8 = true;}if(valid8){if(data14.height !== undefined){let data18 = data14.height;const _errs47 = errors;if(!((typeof data18 == "number") && (isFinite(data18)))){const err27 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/height",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid8 = _errs47 === errors;}else {var valid8 = true;}}}}}}else {const err28 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var valid7 = _errs39 === errors;if(!valid7){break;}}}}else {const err29 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}var valid5 = _errs37 === errors;}else {var valid5 = true;}if(valid5){if(data6.startTime !== undefined){let data19 = data6.startTime;const _errs49 = errors;const _errs50 = errors;let valid9 = false;const _errs51 = errors;if(!(((typeof data19 == "number") && (!(data19 % 1) && !isNaN(data19))) && (isFinite(data19)))){const err30 = {instancePath:instancePath+"/data/battles/" + i0+"/startTime",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startTime/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid2 = _errs51 === errors;valid9 = valid9 || _valid2;if(!valid9){const _errs53 = errors;if(data19 !== null){const err31 = {instancePath:instancePath+"/data/battles/" + i0+"/startTime",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startTime/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid2 = _errs53 === errors;valid9 = valid9 || _valid2;}if(!valid9){const err32 = {instancePath:instancePath+"/data/battles/" + i0+"/startTime",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startTime/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data6.ip !== undefined){let data20 = data6.ip;const _errs55 = errors;const _errs56 = errors;let valid10 = false;const _errs57 = errors;if(typeof data20 !== "string"){const err33 = {instancePath:instancePath+"/data/battles/" + i0+"/ip",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/ip/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var _valid3 = _errs57 === errors;valid10 = valid10 || _valid3;if(!valid10){const _errs59 = errors;if(data20 !== null){const err34 = {instancePath:instancePath+"/data/battles/" + i0+"/ip",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/ip/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var _valid3 = _errs59 === errors;valid10 = valid10 || _valid3;}if(!valid10){const err35 = {instancePath:instancePath+"/data/battles/" + i0+"/ip",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/ip/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data6.port !== undefined){let data21 = data6.port;const _errs61 = errors;const _errs62 = errors;let valid11 = false;const _errs63 = errors;if(!(((typeof data21 == "number") && (!(data21 % 1) && !isNaN(data21))) && (isFinite(data21)))){const err36 = {instancePath:instancePath+"/data/battles/" + i0+"/port",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/port/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var _valid4 = _errs63 === errors;valid11 = valid11 || _valid4;if(!valid11){const _errs65 = errors;if(data21 !== null){const err37 = {instancePath:instancePath+"/data/battles/" + i0+"/port",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/port/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var _valid4 = _errs65 === errors;valid11 = valid11 || _valid4;}if(!valid11){const err38 = {instancePath:instancePath+"/data/battles/" + i0+"/port",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/port/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs62;if(vErrors !== null){if(_errs62){vErrors.length = _errs62;}else {vErrors = null;}}}var valid5 = _errs61 === errors;}else {var valid5 = true;}if(valid5){if(data6.scriptPassword !== undefined){let data22 = data6.scriptPassword;const _errs67 = errors;const _errs68 = errors;let valid12 = false;const _errs69 = errors;if(typeof data22 !== "string"){const err39 = {instancePath:instancePath+"/data/battles/" + i0+"/scriptPassword",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/scriptPassword/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var _valid5 = _errs69 === errors;valid12 = valid12 || _valid5;if(!valid12){const _errs71 = errors;if(data22 !== null){const err40 = {instancePath:instancePath+"/data/battles/" + i0+"/scriptPassword",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/scriptPassword/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var _valid5 = _errs71 === errors;valid12 = valid12 || _valid5;}if(!valid12){const err41 = {instancePath:instancePath+"/data/battles/" + i0+"/scriptPassword",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/scriptPassword/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}else {errors = _errs68;if(vErrors !== null){if(_errs68){vErrors.length = _errs68;}else {vErrors = null;}}}var valid5 = _errs67 === errors;}else {var valid5 = true;}if(valid5){if(data6.modOptions !== undefined){let data23 = data6.modOptions;const _errs73 = errors;if(errors === _errs73){if(!(data23 && typeof data23 == "object" && !Array.isArray(data23))){const err42 = {instancePath:instancePath+"/data/battles/" + i0+"/modOptions",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/modOptions/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}var valid5 = _errs73 === errors;}else {var valid5 = true;}if(valid5){if(data6.bots !== undefined){let data24 = data6.bots;const _errs75 = errors;if(errors === _errs75){if(Array.isArray(data24)){var valid13 = true;const len1 = data24.length;for(let i1=0; i1<len1; i1++){let data25 = data24[i1];const _errs77 = errors;if(errors === _errs77){if(data25 && typeof data25 == "object" && !Array.isArray(data25)){let missing4;if(((((((((((((data25.playerId === undefined) && (missing4 = "playerId")) || ((data25.teamId === undefined) && (missing4 = "teamId"))) || ((data25.color === undefined) && (missing4 = "color"))) || ((data25.bonus === undefined) && (missing4 = "bonus"))) || ((data25.inGame === undefined) && (missing4 = "inGame"))) || ((data25.isSpectator === undefined) && (missing4 = "isSpectator"))) || ((data25.isBot === undefined) && (missing4 = "isBot"))) || ((data25.ownerId === undefined) && (missing4 = "ownerId"))) || ((data25.aiShortName === undefined) && (missing4 = "aiShortName"))) || ((data25.name === undefined) && (missing4 = "name"))) || ((data25.aiOptions === undefined) && (missing4 = "aiOptions"))) || ((data25.faction === undefined) && (missing4 = "faction"))){const err43 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}else {if(data25.playerId !== undefined){let data26 = data25.playerId;const _errs79 = errors;if(!(((typeof data26 == "number") && (!(data26 % 1) && !isNaN(data26))) && (isFinite(data26)))){const err44 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/playerId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid14 = _errs79 === errors;}else {var valid14 = true;}if(valid14){if(data25.teamId !== undefined){let data27 = data25.teamId;const _errs81 = errors;if(!(((typeof data27 == "number") && (!(data27 % 1) && !isNaN(data27))) && (isFinite(data27)))){const err45 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/teamId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid14 = _errs81 === errors;}else {var valid14 = true;}if(valid14){if(data25.color !== undefined){const _errs83 = errors;if(typeof data25.color !== "string"){const err46 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/color",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid14 = _errs83 === errors;}else {var valid14 = true;}if(valid14){if(data25.bonus !== undefined){let data29 = data25.bonus;const _errs85 = errors;if(!((typeof data29 == "number") && (isFinite(data29)))){const err47 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/bonus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid14 = _errs85 === errors;}else {var valid14 = true;}if(valid14){if(data25.inGame !== undefined){const _errs87 = errors;if(typeof data25.inGame !== "boolean"){const err48 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/inGame",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var valid14 = _errs87 === errors;}else {var valid14 = true;}if(valid14){if(data25.isSpectator !== undefined){let data31 = data25.isSpectator;const _errs89 = errors;if(typeof data31 !== "boolean"){const err49 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if(false !== data31){const err50 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid14 = _errs89 === errors;}else {var valid14 = true;}if(valid14){if(data25.isBot !== undefined){let data32 = data25.isBot;const _errs91 = errors;if(typeof data32 !== "boolean"){const err51 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(true !== data32){const err52 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isBot/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var valid14 = _errs91 === errors;}else {var valid14 = true;}if(valid14){if(data25.ownerId !== undefined){const _errs93 = errors;if(typeof data25.ownerId !== "string"){const err53 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/ownerId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/ownerId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid14 = _errs93 === errors;}else {var valid14 = true;}if(valid14){if(data25.aiShortName !== undefined){const _errs95 = errors;if(typeof data25.aiShortName !== "string"){const err54 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/aiShortName",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/aiShortName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}var valid14 = _errs95 === errors;}else {var valid14 = true;}if(valid14){if(data25.name !== undefined){const _errs97 = errors;if(typeof data25.name !== "string"){const err55 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/name",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid14 = _errs97 === errors;}else {var valid14 = true;}if(valid14){if(data25.aiOptions !== undefined){let data36 = data25.aiOptions;const _errs99 = errors;if(errors === _errs99){if(!(data36 && typeof data36 == "object" && !Array.isArray(data36))){const err56 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/aiOptions",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/aiOptions/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}var valid14 = _errs99 === errors;}else {var valid14 = true;}if(valid14){if(data25.faction !== undefined){const _errs101 = errors;if(typeof data25.faction !== "string"){const err57 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/faction",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/faction/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid14 = _errs101 === errors;}else {var valid14 = true;}}}}}}}}}}}}}}else {const err58 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}var valid13 = _errs77 === errors;if(!valid13){break;}}}else {const err59 = {instancePath:instancePath+"/data/battles/" + i0+"/bots",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid5 = _errs75 === errors;}else {var valid5 = true;}if(valid5){if(data6.users !== undefined){let data38 = data6.users;const _errs103 = errors;if(errors === _errs103){if(Array.isArray(data38)){var valid15 = true;const len2 = data38.length;for(let i2=0; i2<len2; i2++){let data39 = data38[i2];const _errs105 = errors;if(errors === _errs105){if(data39 && typeof data39 == "object" && !Array.isArray(data39)){let missing5;if((((((((((data39.userId === undefined) && (missing5 = "userId")) || ((data39.username === undefined) && (missing5 = "username"))) || ((data39.displayName === undefined) && (missing5 = "displayName"))) || ((data39.avatarUrl === undefined) && (missing5 = "avatarUrl"))) || ((data39.clanId === undefined) && (missing5 = "clanId"))) || ((data39.partyId === undefined) && (missing5 = "partyId"))) || ((data39.scopes === undefined) && (missing5 = "scopes"))) || ((data39.status === undefined) && (missing5 = "status"))) || ((data39.battleStatus === undefined) && (missing5 = "battleStatus"))){const err60 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data39.userId !== undefined){const _errs107 = errors;if(typeof data39.userId !== "string"){const err61 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/userId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}var valid16 = _errs107 === errors;}else {var valid16 = true;}if(valid16){if(data39.username !== undefined){const _errs109 = errors;if(typeof data39.username !== "string"){const err62 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/username",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid16 = _errs109 === errors;}else {var valid16 = true;}if(valid16){if(data39.displayName !== undefined){const _errs111 = errors;if(typeof data39.displayName !== "string"){const err63 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/displayName",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}var valid16 = _errs111 === errors;}else {var valid16 = true;}if(valid16){if(data39.avatarUrl !== undefined){let data43 = data39.avatarUrl;const _errs113 = errors;const _errs114 = errors;let valid17 = false;const _errs115 = errors;if(typeof data43 !== "string"){const err64 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/avatarUrl/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var _valid6 = _errs115 === errors;valid17 = valid17 || _valid6;if(!valid17){const _errs117 = errors;if(data43 !== null){const err65 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/avatarUrl/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var _valid6 = _errs117 === errors;valid17 = valid17 || _valid6;}if(!valid17){const err66 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/avatarUrl/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {errors = _errs114;if(vErrors !== null){if(_errs114){vErrors.length = _errs114;}else {vErrors = null;}}}var valid16 = _errs113 === errors;}else {var valid16 = true;}if(valid16){if(data39.clanId !== undefined){let data44 = data39.clanId;const _errs119 = errors;const _errs120 = errors;let valid18 = false;const _errs121 = errors;if(typeof data44 !== "string"){const err67 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/clanId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid7 = _errs121 === errors;valid18 = valid18 || _valid7;if(!valid18){const _errs123 = errors;if(data44 !== null){const err68 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/clanId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}var _valid7 = _errs123 === errors;valid18 = valid18 || _valid7;}if(!valid18){const err69 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/clanId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {errors = _errs120;if(vErrors !== null){if(_errs120){vErrors.length = _errs120;}else {vErrors = null;}}}var valid16 = _errs119 === errors;}else {var valid16 = true;}if(valid16){if(data39.partyId !== undefined){let data45 = data39.partyId;const _errs125 = errors;const _errs126 = errors;let valid19 = false;const _errs127 = errors;if(typeof data45 !== "string"){const err70 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/partyId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var _valid8 = _errs127 === errors;valid19 = valid19 || _valid8;if(!valid19){const _errs129 = errors;if(data45 !== null){const err71 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/partyId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var _valid8 = _errs129 === errors;valid19 = valid19 || _valid8;}if(!valid19){const err72 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/partyId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}else {errors = _errs126;if(vErrors !== null){if(_errs126){vErrors.length = _errs126;}else {vErrors = null;}}}var valid16 = _errs125 === errors;}else {var valid16 = true;}if(valid16){if(data39.scopes !== undefined){let data46 = data39.scopes;const _errs131 = errors;if(errors === _errs131){if(Array.isArray(data46)){var valid20 = true;const len3 = data46.length;for(let i3=0; i3<len3; i3++){const _errs133 = errors;if(typeof data46[i3] !== "string"){const err73 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/scopes/" + i3,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/scopes/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var valid20 = _errs133 === errors;if(!valid20){break;}}}else {const err74 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/scopes",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/scopes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}var valid16 = _errs131 === errors;}else {var valid16 = true;}if(valid16){if(data39.countryCode !== undefined){const _errs135 = errors;if(typeof data39.countryCode !== "string"){const err75 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/countryCode",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/countryCode/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}var valid16 = _errs135 === errors;}else {var valid16 = true;}if(valid16){if(data39.status !== undefined){let data49 = data39.status;const _errs137 = errors;const _errs138 = errors;let valid21 = false;const _errs139 = errors;if(typeof data49 !== "string"){const err76 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if("offline" !== data49){const err77 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/0/const",keyword:"const",params:{allowedValue: "offline"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var _valid9 = _errs139 === errors;valid21 = valid21 || _valid9;if(!valid21){const _errs141 = errors;if(typeof data49 !== "string"){const err78 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if("menu" !== data49){const err79 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/1/const",keyword:"const",params:{allowedValue: "menu"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}var _valid9 = _errs141 === errors;valid21 = valid21 || _valid9;if(!valid21){const _errs143 = errors;if(typeof data49 !== "string"){const err80 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if("playing" !== data49){const err81 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/2/const",keyword:"const",params:{allowedValue: "playing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var _valid9 = _errs143 === errors;valid21 = valid21 || _valid9;if(!valid21){const _errs145 = errors;if(typeof data49 !== "string"){const err82 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if("lobby" !== data49){const err83 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/3/const",keyword:"const",params:{allowedValue: "lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var _valid9 = _errs145 === errors;valid21 = valid21 || _valid9;}}}if(!valid21){const err84 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {errors = _errs138;if(vErrors !== null){if(_errs138){vErrors.length = _errs138;}else {vErrors = null;}}}var valid16 = _errs137 === errors;}else {var valid16 = true;}if(valid16){if(data39.battleStatus !== undefined){let data50 = data39.battleStatus;const _errs147 = errors;const _errs148 = errors;let valid22 = false;const _errs149 = errors;const _errs150 = errors;if(errors === _errs150){if(data50 && typeof data50 == "object" && !Array.isArray(data50)){let missing6;if((data50.battleId === undefined) && (missing6 = "battleId")){const err85 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}else {if(data50.battleId !== undefined){if(typeof data50.battleId !== "string"){const err86 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/battleId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}}}else {const err87 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}var valid23 = _errs150 === errors;if(valid23){const _errs154 = errors;const _errs155 = errors;let valid25 = false;const _errs156 = errors;if(!(data50 && typeof data50 == "object" && !Array.isArray(data50))){const err88 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const _errs158 = errors;if(errors === _errs158){if(data50 && typeof data50 == "object" && !Array.isArray(data50)){let missing7;if((((((data50.playerId === undefined) && (missing7 = "playerId")) || ((data50.teamId === undefined) && (missing7 = "teamId"))) || ((data50.color === undefined) && (missing7 = "color"))) || ((data50.bonus === undefined) && (missing7 = "bonus"))) || ((data50.inGame === undefined) && (missing7 = "inGame"))){const err89 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}else {if(data50.playerId !== undefined){let data52 = data50.playerId;const _errs160 = errors;if(!(((typeof data52 == "number") && (!(data52 % 1) && !isNaN(data52))) && (isFinite(data52)))){const err90 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/playerId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}var valid27 = _errs160 === errors;}else {var valid27 = true;}if(valid27){if(data50.teamId !== undefined){let data53 = data50.teamId;const _errs162 = errors;if(!(((typeof data53 == "number") && (!(data53 % 1) && !isNaN(data53))) && (isFinite(data53)))){const err91 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/teamId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var valid27 = _errs162 === errors;}else {var valid27 = true;}if(valid27){if(data50.color !== undefined){const _errs164 = errors;if(typeof data50.color !== "string"){const err92 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/color",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}var valid27 = _errs164 === errors;}else {var valid27 = true;}if(valid27){if(data50.bonus !== undefined){let data55 = data50.bonus;const _errs166 = errors;if(!((typeof data55 == "number") && (isFinite(data55)))){const err93 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/bonus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}var valid27 = _errs166 === errors;}else {var valid27 = true;}if(valid27){if(data50.inGame !== undefined){const _errs168 = errors;if(typeof data50.inGame !== "boolean"){const err94 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/inGame",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}var valid27 = _errs168 === errors;}else {var valid27 = true;}}}}}}}else {const err95 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}var valid26 = _errs158 === errors;if(valid26){const _errs170 = errors;if(errors === _errs170){if(data50 && typeof data50 == "object" && !Array.isArray(data50)){let missing8;if(((((data50.isSpectator === undefined) && (missing8 = "isSpectator")) || ((data50.isBot === undefined) && (missing8 = "isBot"))) || ((data50.ready === undefined) && (missing8 = "ready"))) || ((data50.sync === undefined) && (missing8 = "sync"))){const err96 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {if(data50.isSpectator !== undefined){let data57 = data50.isSpectator;const _errs172 = errors;if(typeof data57 !== "boolean"){const err97 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}if(false !== data57){const err98 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}var valid28 = _errs172 === errors;}else {var valid28 = true;}if(valid28){if(data50.isBot !== undefined){let data58 = data50.isBot;const _errs174 = errors;if(typeof data58 !== "boolean"){const err99 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(false !== data58){const err100 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}var valid28 = _errs174 === errors;}else {var valid28 = true;}if(valid28){if(data50.ready !== undefined){const _errs176 = errors;if(typeof data50.ready !== "boolean"){const err101 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/ready",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/ready/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var valid28 = _errs176 === errors;}else {var valid28 = true;}if(valid28){if(data50.sync !== undefined){let data60 = data50.sync;const _errs178 = errors;if(errors === _errs178){if(data60 && typeof data60 == "object" && !Array.isArray(data60)){let missing9;if((((data60.engine === undefined) && (missing9 = "engine")) || ((data60.game === undefined) && (missing9 = "game"))) || ((data60.map === undefined) && (missing9 = "map"))){const err102 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {if(data60.engine !== undefined){let data61 = data60.engine;const _errs180 = errors;if(!((typeof data61 == "number") && (isFinite(data61)))){const err103 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync/engine",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/engine/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}var valid29 = _errs180 === errors;}else {var valid29 = true;}if(valid29){if(data60.game !== undefined){let data62 = data60.game;const _errs182 = errors;if(!((typeof data62 == "number") && (isFinite(data62)))){const err104 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync/game",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/game/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}var valid29 = _errs182 === errors;}else {var valid29 = true;}if(valid29){if(data60.map !== undefined){let data63 = data60.map;const _errs184 = errors;if(!((typeof data63 == "number") && (isFinite(data63)))){const err105 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync/map",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/map/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var valid29 = _errs184 === errors;}else {var valid29 = true;}}}}}else {const err106 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}var valid28 = _errs178 === errors;}else {var valid28 = true;}}}}}}else {const err107 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}var valid26 = _errs170 === errors;}var _valid11 = _errs156 === errors;valid25 = valid25 || _valid11;if(!valid25){const _errs186 = errors;if(errors === _errs186){if(data50 && typeof data50 == "object" && !Array.isArray(data50)){let missing10;if(((data50.isSpectator === undefined) && (missing10 = "isSpectator")) || ((data50.isBot === undefined) && (missing10 = "isBot"))){const err108 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}else {if(data50.isSpectator !== undefined){let data64 = data50.isSpectator;const _errs188 = errors;if(typeof data64 !== "boolean"){const err109 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(true !== data64){const err110 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}var valid30 = _errs188 === errors;}else {var valid30 = true;}if(valid30){if(data50.isBot !== undefined){let data65 = data50.isBot;const _errs190 = errors;if(typeof data65 !== "boolean"){const err111 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(false !== data65){const err112 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}var valid30 = _errs190 === errors;}else {var valid30 = true;}}}}else {const err113 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}var _valid11 = _errs186 === errors;valid25 = valid25 || _valid11;}if(!valid25){const err114 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {errors = _errs155;if(vErrors !== null){if(_errs155){vErrors.length = _errs155;}else {vErrors = null;}}}var valid23 = _errs154 === errors;}var _valid10 = _errs149 === errors;valid22 = valid22 || _valid10;if(!valid22){const _errs192 = errors;if(data50 !== null){const err115 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}var _valid10 = _errs192 === errors;valid22 = valid22 || _valid10;}if(!valid22){const err116 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}else {errors = _errs148;if(vErrors !== null){if(_errs148){vErrors.length = _errs148;}else {vErrors = null;}}}var valid16 = _errs147 === errors;}else {var valid16 = true;}}}}}}}}}}}}else {const err117 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}var valid15 = _errs105 === errors;if(!valid15){break;}}}else {const err118 = {instancePath:instancePath+"/data/battles/" + i0+"/users",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}var valid5 = _errs103 === errors;}else {var valid5 = true;}}}}}}}}}}}}}}}}else {const err119 = {instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}var valid4 = _errs17 === errors;if(valid4){const _errs194 = errors;if(errors === _errs194){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing11;if(((((((data6.title === undefined) && (missing11 = "title")) || ((data6.locked === undefined) && (missing11 = "locked"))) || ((data6.passworded === undefined) && (missing11 = "passworded"))) || ((data6.bossIds === undefined) && (missing11 = "bossIds"))) || ((data6.joinQueueIds === undefined) && (missing11 = "joinQueueIds"))) || ((data6.limits === undefined) && (missing11 = "limits"))){const err120 = {instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/required",keyword:"required",params:{missingProperty: missing11},message:"must have required property '"+missing11+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {if(data6.title !== undefined){const _errs196 = errors;if(typeof data6.title !== "string"){const err121 = {instancePath:instancePath+"/data/battles/" + i0+"/title",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var valid31 = _errs196 === errors;}else {var valid31 = true;}if(valid31){if(data6.locked !== undefined){const _errs198 = errors;if(typeof data6.locked !== "boolean"){const err122 = {instancePath:instancePath+"/data/battles/" + i0+"/locked",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/locked/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}var valid31 = _errs198 === errors;}else {var valid31 = true;}if(valid31){if(data6.passworded !== undefined){const _errs200 = errors;if(typeof data6.passworded !== "boolean"){const err123 = {instancePath:instancePath+"/data/battles/" + i0+"/passworded",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/passworded/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}var valid31 = _errs200 === errors;}else {var valid31 = true;}if(valid31){if(data6.bossIds !== undefined){let data69 = data6.bossIds;const _errs202 = errors;if(errors === _errs202){if(Array.isArray(data69)){var valid32 = true;const len4 = data69.length;for(let i4=0; i4<len4; i4++){const _errs204 = errors;if(typeof data69[i4] !== "string"){const err124 = {instancePath:instancePath+"/data/battles/" + i0+"/bossIds/" + i4,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/bossIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}var valid32 = _errs204 === errors;if(!valid32){break;}}}else {const err125 = {instancePath:instancePath+"/data/battles/" + i0+"/bossIds",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/bossIds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}var valid31 = _errs202 === errors;}else {var valid31 = true;}if(valid31){if(data6.joinQueueIds !== undefined){let data71 = data6.joinQueueIds;const _errs206 = errors;if(errors === _errs206){if(Array.isArray(data71)){var valid33 = true;const len5 = data71.length;for(let i5=0; i5<len5; i5++){const _errs208 = errors;if(typeof data71[i5] !== "string"){const err126 = {instancePath:instancePath+"/data/battles/" + i0+"/joinQueueIds/" + i5,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/joinQueueIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}var valid33 = _errs208 === errors;if(!valid33){break;}}}else {const err127 = {instancePath:instancePath+"/data/battles/" + i0+"/joinQueueIds",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/joinQueueIds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}var valid31 = _errs206 === errors;}else {var valid31 = true;}if(valid31){if(data6.limits !== undefined){let data73 = data6.limits;const _errs210 = errors;if(errors === _errs210){if(data73 && typeof data73 == "object" && !Array.isArray(data73)){let missing12;if(((((data73.minTeamsize === undefined) && (missing12 = "minTeamsize")) || ((data73.maxTeamsize === undefined) && (missing12 = "maxTeamsize"))) || ((data73.minRating === undefined) && (missing12 = "minRating"))) || ((data73.maxRating === undefined) && (missing12 = "maxRating"))){const err128 = {instancePath:instancePath+"/data/battles/" + i0+"/limits",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/required",keyword:"required",params:{missingProperty: missing12},message:"must have required property '"+missing12+"'"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {if(data73.minTeamsize !== undefined){let data74 = data73.minTeamsize;const _errs212 = errors;const _errs213 = errors;let valid35 = false;const _errs214 = errors;if(!(((typeof data74 == "number") && (!(data74 % 1) && !isNaN(data74))) && (isFinite(data74)))){const err129 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minTeamsize/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}var _valid12 = _errs214 === errors;valid35 = valid35 || _valid12;if(!valid35){const _errs216 = errors;if(data74 !== null){const err130 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minTeamsize/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}var _valid12 = _errs216 === errors;valid35 = valid35 || _valid12;}if(!valid35){const err131 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minTeamsize/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {errors = _errs213;if(vErrors !== null){if(_errs213){vErrors.length = _errs213;}else {vErrors = null;}}}var valid34 = _errs212 === errors;}else {var valid34 = true;}if(valid34){if(data73.maxTeamsize !== undefined){let data75 = data73.maxTeamsize;const _errs218 = errors;const _errs219 = errors;let valid36 = false;const _errs220 = errors;if(!(((typeof data75 == "number") && (!(data75 % 1) && !isNaN(data75))) && (isFinite(data75)))){const err132 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxTeamsize/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}var _valid13 = _errs220 === errors;valid36 = valid36 || _valid13;if(!valid36){const _errs222 = errors;if(data75 !== null){const err133 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxTeamsize/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}var _valid13 = _errs222 === errors;valid36 = valid36 || _valid13;}if(!valid36){const err134 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxTeamsize/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {errors = _errs219;if(vErrors !== null){if(_errs219){vErrors.length = _errs219;}else {vErrors = null;}}}var valid34 = _errs218 === errors;}else {var valid34 = true;}if(valid34){if(data73.minRating !== undefined){let data76 = data73.minRating;const _errs224 = errors;const _errs225 = errors;let valid37 = false;const _errs226 = errors;if(!(((typeof data76 == "number") && (!(data76 % 1) && !isNaN(data76))) && (isFinite(data76)))){const err135 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minRating/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}var _valid14 = _errs226 === errors;valid37 = valid37 || _valid14;if(!valid37){const _errs228 = errors;if(data76 !== null){const err136 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minRating/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}var _valid14 = _errs228 === errors;valid37 = valid37 || _valid14;}if(!valid37){const err137 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minRating/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}else {errors = _errs225;if(vErrors !== null){if(_errs225){vErrors.length = _errs225;}else {vErrors = null;}}}var valid34 = _errs224 === errors;}else {var valid34 = true;}if(valid34){if(data73.maxRating !== undefined){let data77 = data73.maxRating;const _errs230 = errors;const _errs231 = errors;let valid38 = false;const _errs232 = errors;if(!(((typeof data77 == "number") && (!(data77 % 1) && !isNaN(data77))) && (isFinite(data77)))){const err138 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxRating/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}var _valid15 = _errs232 === errors;valid38 = valid38 || _valid15;if(!valid38){const _errs234 = errors;if(data77 !== null){const err139 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxRating/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}var _valid15 = _errs234 === errors;valid38 = valid38 || _valid15;}if(!valid38){const err140 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxRating/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}else {errors = _errs231;if(vErrors !== null){if(_errs231){vErrors.length = _errs231;}else {vErrors = null;}}}var valid34 = _errs230 === errors;}else {var valid34 = true;}}}}}}else {const err141 = {instancePath:instancePath+"/data/battles/" + i0+"/limits",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var valid31 = _errs210 === errors;}else {var valid31 = true;}}}}}}}}else {const err142 = {instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var valid4 = _errs194 === errors;}var valid3 = _errs15 === errors;if(!valid3){break;}}}else {const err143 = {instancePath:instancePath+"/data/battles",schemaPath:"#/anyOf/0/properties/data/properties/battles/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}}}else {const err144 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}var valid1 = _errs11 === errors;}else {var valid1 = true;}}}}}}}else {const err145 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs236 = errors;if(errors === _errs236){if(data && typeof data == "object" && !Array.isArray(data)){let missing13;if((((((data.type === undefined) && (missing13 = "type")) || ((data.messageId === undefined) && (missing13 = "messageId"))) || ((data.commandId === undefined) && (missing13 = "commandId"))) || ((data.status === undefined) && (missing13 = "status"))) || ((data.reason === undefined) && (missing13 = "reason"))){const err146 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing13},message:"must have required property '"+missing13+"'"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}else {if(data.type !== undefined){let data78 = data.type;const _errs238 = errors;if(typeof data78 !== "string"){const err147 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if("response" !== data78){const err148 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}var valid39 = _errs238 === errors;}else {var valid39 = true;}if(valid39){if(data.messageId !== undefined){const _errs240 = errors;if(typeof data.messageId !== "string"){const err149 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}var valid39 = _errs240 === errors;}else {var valid39 = true;}if(valid39){if(data.commandId !== undefined){let data80 = data.commandId;const _errs242 = errors;if(typeof data80 !== "string"){const err150 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if("lobby/list" !== data80){const err151 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/list"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}var valid39 = _errs242 === errors;}else {var valid39 = true;}if(valid39){if(data.status !== undefined){let data81 = data.status;const _errs244 = errors;if(typeof data81 !== "string"){const err152 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if("failed" !== data81){const err153 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}var valid39 = _errs244 === errors;}else {var valid39 = true;}if(valid39){if(data.reason !== undefined){let data82 = data.reason;const _errs246 = errors;if(typeof data82 !== "string"){const err154 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if("internal_error" !== data82){const err155 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var valid39 = _errs246 === errors;}else {var valid39 = true;}}}}}}}else {const err156 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}var _valid0 = _errs236 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs248 = errors;if(errors === _errs248){if(data && typeof data == "object" && !Array.isArray(data)){let missing14;if((((((data.type === undefined) && (missing14 = "type")) || ((data.messageId === undefined) && (missing14 = "messageId"))) || ((data.commandId === undefined) && (missing14 = "commandId"))) || ((data.status === undefined) && (missing14 = "status"))) || ((data.reason === undefined) && (missing14 = "reason"))){const err157 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing14},message:"must have required property '"+missing14+"'"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {if(data.type !== undefined){let data83 = data.type;const _errs250 = errors;if(typeof data83 !== "string"){const err158 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if("response" !== data83){const err159 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}var valid40 = _errs250 === errors;}else {var valid40 = true;}if(valid40){if(data.messageId !== undefined){const _errs252 = errors;if(typeof data.messageId !== "string"){const err160 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}var valid40 = _errs252 === errors;}else {var valid40 = true;}if(valid40){if(data.commandId !== undefined){let data85 = data.commandId;const _errs254 = errors;if(typeof data85 !== "string"){const err161 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if("lobby/list" !== data85){const err162 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/list"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}var valid40 = _errs254 === errors;}else {var valid40 = true;}if(valid40){if(data.status !== undefined){let data86 = data.status;const _errs256 = errors;if(typeof data86 !== "string"){const err163 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if("failed" !== data86){const err164 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}var valid40 = _errs256 === errors;}else {var valid40 = true;}if(valid40){if(data.reason !== undefined){let data87 = data.reason;const _errs258 = errors;if(typeof data87 !== "string"){const err165 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if("unauthorized" !== data87){const err166 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}var valid40 = _errs258 === errors;}else {var valid40 = true;}}}}}}}else {const err167 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}var _valid0 = _errs248 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs260 = errors;if(errors === _errs260){if(data && typeof data == "object" && !Array.isArray(data)){let missing15;if((((((data.type === undefined) && (missing15 = "type")) || ((data.messageId === undefined) && (missing15 = "messageId"))) || ((data.commandId === undefined) && (missing15 = "commandId"))) || ((data.status === undefined) && (missing15 = "status"))) || ((data.reason === undefined) && (missing15 = "reason"))){const err168 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing15},message:"must have required property '"+missing15+"'"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}else {if(data.type !== undefined){let data88 = data.type;const _errs262 = errors;if(typeof data88 !== "string"){const err169 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if("response" !== data88){const err170 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}var valid41 = _errs262 === errors;}else {var valid41 = true;}if(valid41){if(data.messageId !== undefined){const _errs264 = errors;if(typeof data.messageId !== "string"){const err171 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}var valid41 = _errs264 === errors;}else {var valid41 = true;}if(valid41){if(data.commandId !== undefined){let data90 = data.commandId;const _errs266 = errors;if(typeof data90 !== "string"){const err172 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if("lobby/list" !== data90){const err173 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/list"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}var valid41 = _errs266 === errors;}else {var valid41 = true;}if(valid41){if(data.status !== undefined){let data91 = data.status;const _errs268 = errors;if(typeof data91 !== "string"){const err174 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if("failed" !== data91){const err175 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}var valid41 = _errs268 === errors;}else {var valid41 = true;}if(valid41){if(data.reason !== undefined){let data92 = data.reason;const _errs270 = errors;if(typeof data92 !== "string"){const err176 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if("invalid_request" !== data92){const err177 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}var valid41 = _errs270 === errors;}else {var valid41 = true;}}}}}}}else {const err178 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}var _valid0 = _errs260 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs272 = errors;if(errors === _errs272){if(data && typeof data == "object" && !Array.isArray(data)){let missing16;if((((((data.type === undefined) && (missing16 = "type")) || ((data.messageId === undefined) && (missing16 = "messageId"))) || ((data.commandId === undefined) && (missing16 = "commandId"))) || ((data.status === undefined) && (missing16 = "status"))) || ((data.reason === undefined) && (missing16 = "reason"))){const err179 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing16},message:"must have required property '"+missing16+"'"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}else {if(data.type !== undefined){let data93 = data.type;const _errs274 = errors;if(typeof data93 !== "string"){const err180 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if("response" !== data93){const err181 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}var valid42 = _errs274 === errors;}else {var valid42 = true;}if(valid42){if(data.messageId !== undefined){const _errs276 = errors;if(typeof data.messageId !== "string"){const err182 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}var valid42 = _errs276 === errors;}else {var valid42 = true;}if(valid42){if(data.commandId !== undefined){let data95 = data.commandId;const _errs278 = errors;if(typeof data95 !== "string"){const err183 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if("lobby/list" !== data95){const err184 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/list"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}var valid42 = _errs278 === errors;}else {var valid42 = true;}if(valid42){if(data.status !== undefined){let data96 = data.status;const _errs280 = errors;if(typeof data96 !== "string"){const err185 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if("failed" !== data96){const err186 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}var valid42 = _errs280 === errors;}else {var valid42 = true;}if(valid42){if(data.reason !== undefined){let data97 = data.reason;const _errs282 = errors;if(typeof data97 !== "string"){const err187 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if("command_unimplemented" !== data97){const err188 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}var valid42 = _errs282 === errors;}else {var valid42 = true;}}}}}}}else {const err189 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}var _valid0 = _errs272 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err190 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;validate29.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate29.errors = vErrors;return errors === 0;}exports.lobby_receiveMessage_event = validate30;const schema31 = {"$id":"lobby/receiveMessage/event","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"event","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/receiveMessage","type":"string"},"data":{"examples":[{"userId":27,"message":"Hello lobby!"}],"type":"object","properties":{"userId":{"type":"string"},"message":{"type":"string"}},"required":["userId","message"]}},"required":["type","messageId","commandId","data"]};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/receiveMessage/event" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate30.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate30.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("event" !== data0){validate30.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate30.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate30.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/receiveMessage" !== data2){validate30.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/receiveMessage"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.userId === undefined) && (missing1 = "userId")) || ((data3.message === undefined) && (missing1 = "message"))){validate30.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.userId !== undefined){const _errs9 = errors;if(typeof data3.userId !== "string"){validate30.errors = [{instancePath:instancePath+"/data/userId",schemaPath:"#/properties/data/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data3.message !== undefined){const _errs11 = errors;if(typeof data3.message !== "string"){validate30.errors = [{instancePath:instancePath+"/data/message",schemaPath:"#/properties/data/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs11 === errors;}else {var valid1 = true;}}}}else {validate30.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate30.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate30.errors = vErrors;return errors === 0;}exports.lobby_sendMessage_request = validate31;const schema32 = {"$id":"lobby/sendMessage/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage","type":"string"},"data":{"examples":[{"message":"Hello lobby!"}],"type":"object","properties":{"message":{"maxLength":300,"type":"string"}},"required":["message"]}},"required":["type","messageId","commandId","data"]};function validate31(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/sendMessage/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate31.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate31.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate31.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate31.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate31.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/sendMessage" !== data2){validate31.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.message === undefined) && (missing1 = "message")){validate31.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.message !== undefined){let data4 = data3.message;const _errs9 = errors;if(errors === _errs9){if(typeof data4 === "string"){if(func2(data4) > 300){validate31.errors = [{instancePath:instancePath+"/data/message",schemaPath:"#/properties/data/properties/message/maxLength",keyword:"maxLength",params:{limit: 300},message:"must NOT have more than 300 characters"}];return false;}}else {validate31.errors = [{instancePath:instancePath+"/data/message",schemaPath:"#/properties/data/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}}else {validate31.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate31.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate31.errors = vErrors;return errors === 0;}exports.lobby_sendMessage_response = validate32;const schema33 = {"$id":"lobby/sendMessage/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"not_in_lobby","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"muted","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate32(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/sendMessage/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("lobby/sendMessage" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("lobby/sendMessage" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("not_in_lobby" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "not_in_lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("lobby/sendMessage" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("muted" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "muted"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("lobby/sendMessage" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("internal_error" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("lobby/sendMessage" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("unauthorized" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs59 = errors;if(errors === _errs59){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((((((data.type === undefined) && (missing5 = "type")) || ((data.messageId === undefined) && (missing5 = "messageId"))) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err53 = {instancePath,schemaPath:"#/anyOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {if(data.type !== undefined){let data24 = data.type;const _errs61 = errors;if(typeof data24 !== "string"){const err54 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("response" !== data24){const err55 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid6 = _errs61 === errors;}else {var valid6 = true;}if(valid6){if(data.messageId !== undefined){const _errs63 = errors;if(typeof data.messageId !== "string"){const err56 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/5/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid6 = _errs63 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data26 = data.commandId;const _errs65 = errors;if(typeof data26 !== "string"){const err57 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if("lobby/sendMessage" !== data26){const err58 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid6 = _errs65 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data27 = data.status;const _errs67 = errors;if(typeof data27 !== "string"){const err59 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("failed" !== data27){const err60 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid6 = _errs67 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data28 = data.reason;const _errs69 = errors;if(typeof data28 !== "string"){const err61 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if("invalid_request" !== data28){const err62 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid6 = _errs69 === errors;}else {var valid6 = true;}}}}}}}else {const err63 = {instancePath,schemaPath:"#/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var _valid0 = _errs59 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs71 = errors;if(errors === _errs71){if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if((((((data.type === undefined) && (missing6 = "type")) || ((data.messageId === undefined) && (missing6 = "messageId"))) || ((data.commandId === undefined) && (missing6 = "commandId"))) || ((data.status === undefined) && (missing6 = "status"))) || ((data.reason === undefined) && (missing6 = "reason"))){const err64 = {instancePath,schemaPath:"#/anyOf/6/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {if(data.type !== undefined){let data29 = data.type;const _errs73 = errors;if(typeof data29 !== "string"){const err65 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/6/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if("response" !== data29){const err66 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/6/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid7 = _errs73 === errors;}else {var valid7 = true;}if(valid7){if(data.messageId !== undefined){const _errs75 = errors;if(typeof data.messageId !== "string"){const err67 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/6/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var valid7 = _errs75 === errors;}else {var valid7 = true;}if(valid7){if(data.commandId !== undefined){let data31 = data.commandId;const _errs77 = errors;if(typeof data31 !== "string"){const err68 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/6/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if("lobby/sendMessage" !== data31){const err69 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/6/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}var valid7 = _errs77 === errors;}else {var valid7 = true;}if(valid7){if(data.status !== undefined){let data32 = data.status;const _errs79 = errors;if(typeof data32 !== "string"){const err70 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/6/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if("failed" !== data32){const err71 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/6/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var valid7 = _errs79 === errors;}else {var valid7 = true;}if(valid7){if(data.reason !== undefined){let data33 = data.reason;const _errs81 = errors;if(typeof data33 !== "string"){const err72 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/6/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if("command_unimplemented" !== data33){const err73 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/6/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var valid7 = _errs81 === errors;}else {var valid7 = true;}}}}}}}else {const err74 = {instancePath,schemaPath:"#/anyOf/6/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}var _valid0 = _errs71 === errors;valid0 = valid0 || _valid0;}}}}}}if(!valid0){const err75 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;validate32.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate32.errors = vErrors;return errors === 0;}exports.lobby_subscribe_request = validate33;const schema34 = {"$id":"lobby/subscribe/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/subscribe","type":"string"},"data":{"type":"object","properties":{"battleIds":{"type":"array","items":{"type":"string"}}},"required":["battleIds"]}},"required":["type","messageId","commandId","data"]};function validate33(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/subscribe/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate33.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate33.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate33.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate33.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate33.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/subscribe" !== data2){validate33.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/subscribe"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.battleIds === undefined) && (missing1 = "battleIds")){validate33.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.battleIds !== undefined){let data4 = data3.battleIds;const _errs9 = errors;if(errors === _errs9){if(Array.isArray(data4)){var valid2 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs11 = errors;if(typeof data4[i0] !== "string"){validate33.errors = [{instancePath:instancePath+"/data/battleIds/" + i0,schemaPath:"#/properties/data/properties/battleIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs11 === errors;if(!valid2){break;}}}else {validate33.errors = [{instancePath:instancePath+"/data/battleIds",schemaPath:"#/properties/data/properties/battleIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate33.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate33.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate33.errors = vErrors;return errors === 0;}exports.lobby_subscribe_response = validate34;const schema35 = {"$id":"lobby/subscribe/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/subscribe","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/subscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/subscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/subscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/subscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/subscribe/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("lobby/subscribe" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/subscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("lobby/subscribe" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/subscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("internal_error" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("lobby/subscribe" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/subscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("unauthorized" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("lobby/subscribe" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/subscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("invalid_request" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("lobby/subscribe" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/subscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("command_unimplemented" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err53 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;validate34.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate34.errors = vErrors;return errors === 0;}exports.lobby_unsubscribe_request = validate35;const schema36 = {"$id":"lobby/unsubscribe/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/unsubscribe","type":"string"},"data":{"type":"object","properties":{"battleIds":{"type":"array","items":{"type":"string"}}}}},"required":["type","messageId","commandId","data"]};function validate35(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/unsubscribe/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate35.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate35.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate35.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate35.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate35.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/unsubscribe" !== data2){validate35.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/unsubscribe"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.battleIds !== undefined){let data4 = data3.battleIds;const _errs9 = errors;if(errors === _errs9){if(Array.isArray(data4)){var valid2 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs11 = errors;if(typeof data4[i0] !== "string"){validate35.errors = [{instancePath:instancePath+"/data/battleIds/" + i0,schemaPath:"#/properties/data/properties/battleIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs11 === errors;if(!valid2){break;}}}else {validate35.errors = [{instancePath:instancePath+"/data/battleIds",schemaPath:"#/properties/data/properties/battleIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}else {validate35.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate35.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate35.errors = vErrors;return errors === 0;}exports.lobby_unsubscribe_response = validate36;const schema37 = {"$id":"lobby/unsubscribe/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/unsubscribe","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/unsubscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"cannot_unsub_own_battle","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/unsubscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/unsubscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/unsubscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/unsubscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/unsubscribe/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("lobby/unsubscribe" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/unsubscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("lobby/unsubscribe" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/unsubscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("cannot_unsub_own_battle" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "cannot_unsub_own_battle"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("lobby/unsubscribe" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/unsubscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("internal_error" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("lobby/unsubscribe" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/unsubscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("unauthorized" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("lobby/unsubscribe" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/unsubscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("invalid_request" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs59 = errors;if(errors === _errs59){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((((((data.type === undefined) && (missing5 = "type")) || ((data.messageId === undefined) && (missing5 = "messageId"))) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err53 = {instancePath,schemaPath:"#/anyOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {if(data.type !== undefined){let data24 = data.type;const _errs61 = errors;if(typeof data24 !== "string"){const err54 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("response" !== data24){const err55 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid6 = _errs61 === errors;}else {var valid6 = true;}if(valid6){if(data.messageId !== undefined){const _errs63 = errors;if(typeof data.messageId !== "string"){const err56 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/5/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid6 = _errs63 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data26 = data.commandId;const _errs65 = errors;if(typeof data26 !== "string"){const err57 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if("lobby/unsubscribe" !== data26){const err58 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/unsubscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid6 = _errs65 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data27 = data.status;const _errs67 = errors;if(typeof data27 !== "string"){const err59 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("failed" !== data27){const err60 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid6 = _errs67 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data28 = data.reason;const _errs69 = errors;if(typeof data28 !== "string"){const err61 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if("command_unimplemented" !== data28){const err62 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid6 = _errs69 === errors;}else {var valid6 = true;}}}}}}}else {const err63 = {instancePath,schemaPath:"#/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var _valid0 = _errs59 === errors;valid0 = valid0 || _valid0;}}}}}if(!valid0){const err64 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;validate36.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate36.errors = vErrors;return errors === 0;}exports.lobby_updated_event = validate37;const schema38 = {"$id":"lobby/updated/event","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"event","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"lobby/updated","type":"string"},"data":{"type":"object","properties":{"battles":{"type":"array","items":{"examples":[{"title":"3v3 | Newbies only","limits":{"minTeamsize":3,"maxTeamsize":3,"minRating":null,"maxRating":25}}],"type":"object","allOf":[{"type":"object","properties":{"battleId":{"type":"string"},"hostId":{"type":"string"},"engine":{"type":"string"},"game":{"type":"string"},"map":{"type":"string"},"startPosType":{"anyOf":[{"description":"Fixed","const":0,"type":"number"},{"description":"Random","const":1,"type":"number"},{"description":"Boxes","const":2,"type":"number"}]},"startAreas":{"type":"object","patternProperties":{"^(0|[1-9][0-9]*)$":{"examples":[{"x":0,"y":0,"width":1,"height":0.3}],"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"}},"required":["x","y","width","height"]}}},"startTime":{"anyOf":[{"description":"Unix time","examples":[1705432698,null],"type":"integer"},{"type":"null"}]},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"port":{"anyOf":[{"type":"integer"},{"type":"null"}]},"scriptPassword":{"anyOf":[{"type":"string"},{"type":"null"}]},"modOptions":{"type":"object","patternProperties":{"^(.*)$":{}}},"bots":{"type":"array","items":{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"},"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":true,"type":"boolean"},"ownerId":{"type":"string"},"aiShortName":{"type":"string"},"name":{"type":"string"},"aiOptions":{"type":"object","patternProperties":{"^(.*)$":{}}},"faction":{"type":"string"}},"required":["playerId","teamId","color","bonus","inGame","isSpectator","isBot","ownerId","aiShortName","name","aiOptions","faction"]}},"users":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"username":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"clanId":{"anyOf":[{"type":"string"},{"type":"null"}]},"partyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string"}},"countryCode":{"type":"string"},"status":{"anyOf":[{"const":"offline","type":"string"},{"const":"menu","type":"string"},{"const":"playing","type":"string"},{"const":"lobby","type":"string"}]},"battleStatus":{"anyOf":[{"allOf":[{"type":"object","properties":{"battleId":{"type":"string"}},"required":["battleId"]},{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"}},"required":["playerId","teamId","color","bonus","inGame"]},{"type":"object","properties":{"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":false,"type":"boolean"},"ready":{"type":"boolean"},"sync":{"type":"object","properties":{"engine":{"type":"number"},"game":{"type":"number"},"map":{"type":"number"}},"required":["engine","game","map"]}},"required":["isSpectator","isBot","ready","sync"]}]},{"type":"object","properties":{"isSpectator":{"const":true,"type":"boolean"},"isBot":{"const":false,"type":"boolean"}},"required":["isSpectator","isBot"]}]}]},{"type":"null"}]}},"required":["userId","username","displayName","avatarUrl","clanId","partyId","scopes","status","battleStatus"]}}}},{"type":"object","properties":{"title":{"type":"string"},"locked":{"type":"boolean"},"passworded":{"type":"boolean"},"bossIds":{"type":"array","items":{"type":"string"}},"joinQueueIds":{"type":"array","items":{"type":"string"}},"limits":{"type":"object","properties":{"minTeamsize":{"anyOf":[{"type":"integer"},{"type":"null"}]},"maxTeamsize":{"anyOf":[{"type":"integer"},{"type":"null"}]},"minRating":{"anyOf":[{"type":"integer"},{"type":"null"}]},"maxRating":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["minTeamsize","maxTeamsize","minRating","maxRating"]}}}]}}},"required":["battles"]}},"required":["type","messageId","commandId","data"]};function validate37(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/updated/event" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate37.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate37.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("event" !== data0){validate37.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate37.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate37.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/updated" !== data2){validate37.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/updated"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.battles === undefined) && (missing1 = "battles")){validate37.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.battles !== undefined){let data4 = data3.battles;const _errs9 = errors;if(errors === _errs9){if(Array.isArray(data4)){var valid2 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];const _errs11 = errors;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/properties/data/properties/battles/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs13 = errors;if(errors === _errs13){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.battleId !== undefined){const _errs15 = errors;if(typeof data5.battleId !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/battleId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs15 === errors;}else {var valid4 = true;}if(valid4){if(data5.hostId !== undefined){const _errs17 = errors;if(typeof data5.hostId !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/hostId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/hostId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs17 === errors;}else {var valid4 = true;}if(valid4){if(data5.engine !== undefined){const _errs19 = errors;if(typeof data5.engine !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/engine",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/engine/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs19 === errors;}else {var valid4 = true;}if(valid4){if(data5.game !== undefined){const _errs21 = errors;if(typeof data5.game !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/game",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/game/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs21 === errors;}else {var valid4 = true;}if(valid4){if(data5.map !== undefined){const _errs23 = errors;if(typeof data5.map !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/map",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/map/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs23 === errors;}else {var valid4 = true;}if(valid4){if(data5.startPosType !== undefined){let data11 = data5.startPosType;const _errs25 = errors;const _errs26 = errors;let valid5 = false;const _errs27 = errors;if(!((typeof data11 == "number") && (isFinite(data11)))){const err0 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(0 !== data11){const err1 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/0/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs27 === errors;valid5 = valid5 || _valid0;if(!valid5){const _errs29 = errors;if(!((typeof data11 == "number") && (isFinite(data11)))){const err2 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(1 !== data11){const err3 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/1/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid0 = _errs29 === errors;valid5 = valid5 || _valid0;if(!valid5){const _errs31 = errors;if(!((typeof data11 == "number") && (isFinite(data11)))){const err4 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/2/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(2 !== data11){const err5 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/2/const",keyword:"const",params:{allowedValue: 2},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid0 = _errs31 === errors;valid5 = valid5 || _valid0;}}if(!valid5){const err6 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}var valid4 = _errs25 === errors;}else {var valid4 = true;}if(valid4){if(data5.startAreas !== undefined){let data12 = data5.startAreas;const _errs33 = errors;if(errors === _errs33){if(data12 && typeof data12 == "object" && !Array.isArray(data12)){var valid6 = true;for(const key0 in data12){if(pattern0.test(key0)){let data13 = data12[key0];const _errs35 = errors;if(errors === _errs35){if(data13 && typeof data13 == "object" && !Array.isArray(data13)){let missing2;if(((((data13.x === undefined) && (missing2 = "x")) || ((data13.y === undefined) && (missing2 = "y"))) || ((data13.width === undefined) && (missing2 = "width"))) || ((data13.height === undefined) && (missing2 = "height"))){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data13.x !== undefined){let data14 = data13.x;const _errs37 = errors;if(!((typeof data14 == "number") && (isFinite(data14)))){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/x",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/x/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid7 = _errs37 === errors;}else {var valid7 = true;}if(valid7){if(data13.y !== undefined){let data15 = data13.y;const _errs39 = errors;if(!((typeof data15 == "number") && (isFinite(data15)))){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/y",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/y/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid7 = _errs39 === errors;}else {var valid7 = true;}if(valid7){if(data13.width !== undefined){let data16 = data13.width;const _errs41 = errors;if(!((typeof data16 == "number") && (isFinite(data16)))){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/width",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid7 = _errs41 === errors;}else {var valid7 = true;}if(valid7){if(data13.height !== undefined){let data17 = data13.height;const _errs43 = errors;if(!((typeof data17 == "number") && (isFinite(data17)))){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/height",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid7 = _errs43 === errors;}else {var valid7 = true;}}}}}}else {validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid6 = _errs35 === errors;if(!valid6){break;}}}}else {validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/startAreas",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startAreas/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data5.startTime !== undefined){let data18 = data5.startTime;const _errs45 = errors;const _errs46 = errors;let valid8 = false;const _errs47 = errors;if(!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))){const err7 = {instancePath:instancePath+"/data/battles/" + i0+"/startTime",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startTime/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid1 = _errs47 === errors;valid8 = valid8 || _valid1;if(!valid8){const _errs49 = errors;if(data18 !== null){const err8 = {instancePath:instancePath+"/data/battles/" + i0+"/startTime",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startTime/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid1 = _errs49 === errors;valid8 = valid8 || _valid1;}if(!valid8){const err9 = {instancePath:instancePath+"/data/battles/" + i0+"/startTime",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/startTime/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}}var valid4 = _errs45 === errors;}else {var valid4 = true;}if(valid4){if(data5.ip !== undefined){let data19 = data5.ip;const _errs51 = errors;const _errs52 = errors;let valid9 = false;const _errs53 = errors;if(typeof data19 !== "string"){const err10 = {instancePath:instancePath+"/data/battles/" + i0+"/ip",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/ip/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid2 = _errs53 === errors;valid9 = valid9 || _valid2;if(!valid9){const _errs55 = errors;if(data19 !== null){const err11 = {instancePath:instancePath+"/data/battles/" + i0+"/ip",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/ip/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid2 = _errs55 === errors;valid9 = valid9 || _valid2;}if(!valid9){const err12 = {instancePath:instancePath+"/data/battles/" + i0+"/ip",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/ip/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}var valid4 = _errs51 === errors;}else {var valid4 = true;}if(valid4){if(data5.port !== undefined){let data20 = data5.port;const _errs57 = errors;const _errs58 = errors;let valid10 = false;const _errs59 = errors;if(!(((typeof data20 == "number") && (!(data20 % 1) && !isNaN(data20))) && (isFinite(data20)))){const err13 = {instancePath:instancePath+"/data/battles/" + i0+"/port",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/port/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid3 = _errs59 === errors;valid10 = valid10 || _valid3;if(!valid10){const _errs61 = errors;if(data20 !== null){const err14 = {instancePath:instancePath+"/data/battles/" + i0+"/port",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/port/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid3 = _errs61 === errors;valid10 = valid10 || _valid3;}if(!valid10){const err15 = {instancePath:instancePath+"/data/battles/" + i0+"/port",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/port/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs58;if(vErrors !== null){if(_errs58){vErrors.length = _errs58;}else {vErrors = null;}}}var valid4 = _errs57 === errors;}else {var valid4 = true;}if(valid4){if(data5.scriptPassword !== undefined){let data21 = data5.scriptPassword;const _errs63 = errors;const _errs64 = errors;let valid11 = false;const _errs65 = errors;if(typeof data21 !== "string"){const err16 = {instancePath:instancePath+"/data/battles/" + i0+"/scriptPassword",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/scriptPassword/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid4 = _errs65 === errors;valid11 = valid11 || _valid4;if(!valid11){const _errs67 = errors;if(data21 !== null){const err17 = {instancePath:instancePath+"/data/battles/" + i0+"/scriptPassword",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/scriptPassword/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid4 = _errs67 === errors;valid11 = valid11 || _valid4;}if(!valid11){const err18 = {instancePath:instancePath+"/data/battles/" + i0+"/scriptPassword",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/scriptPassword/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs64;if(vErrors !== null){if(_errs64){vErrors.length = _errs64;}else {vErrors = null;}}}var valid4 = _errs63 === errors;}else {var valid4 = true;}if(valid4){if(data5.modOptions !== undefined){let data22 = data5.modOptions;const _errs69 = errors;if(errors === _errs69){if(!(data22 && typeof data22 == "object" && !Array.isArray(data22))){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/modOptions",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/modOptions/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid4 = _errs69 === errors;}else {var valid4 = true;}if(valid4){if(data5.bots !== undefined){let data23 = data5.bots;const _errs71 = errors;if(errors === _errs71){if(Array.isArray(data23)){var valid12 = true;const len1 = data23.length;for(let i1=0; i1<len1; i1++){let data24 = data23[i1];const _errs73 = errors;if(errors === _errs73){if(data24 && typeof data24 == "object" && !Array.isArray(data24)){let missing3;if(((((((((((((data24.playerId === undefined) && (missing3 = "playerId")) || ((data24.teamId === undefined) && (missing3 = "teamId"))) || ((data24.color === undefined) && (missing3 = "color"))) || ((data24.bonus === undefined) && (missing3 = "bonus"))) || ((data24.inGame === undefined) && (missing3 = "inGame"))) || ((data24.isSpectator === undefined) && (missing3 = "isSpectator"))) || ((data24.isBot === undefined) && (missing3 = "isBot"))) || ((data24.ownerId === undefined) && (missing3 = "ownerId"))) || ((data24.aiShortName === undefined) && (missing3 = "aiShortName"))) || ((data24.name === undefined) && (missing3 = "name"))) || ((data24.aiOptions === undefined) && (missing3 = "aiOptions"))) || ((data24.faction === undefined) && (missing3 = "faction"))){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1,schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {if(data24.playerId !== undefined){let data25 = data24.playerId;const _errs75 = errors;if(!(((typeof data25 == "number") && (!(data25 % 1) && !isNaN(data25))) && (isFinite(data25)))){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/playerId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid13 = _errs75 === errors;}else {var valid13 = true;}if(valid13){if(data24.teamId !== undefined){let data26 = data24.teamId;const _errs77 = errors;if(!(((typeof data26 == "number") && (!(data26 % 1) && !isNaN(data26))) && (isFinite(data26)))){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/teamId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid13 = _errs77 === errors;}else {var valid13 = true;}if(valid13){if(data24.color !== undefined){const _errs79 = errors;if(typeof data24.color !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/color",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid13 = _errs79 === errors;}else {var valid13 = true;}if(valid13){if(data24.bonus !== undefined){let data28 = data24.bonus;const _errs81 = errors;if(!((typeof data28 == "number") && (isFinite(data28)))){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/bonus",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid13 = _errs81 === errors;}else {var valid13 = true;}if(valid13){if(data24.inGame !== undefined){const _errs83 = errors;if(typeof data24.inGame !== "boolean"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/inGame",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs83 === errors;}else {var valid13 = true;}if(valid13){if(data24.isSpectator !== undefined){let data30 = data24.isSpectator;const _errs85 = errors;if(typeof data30 !== "boolean"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isSpectator",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}if(false !== data30){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isSpectator",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"}];return false;}var valid13 = _errs85 === errors;}else {var valid13 = true;}if(valid13){if(data24.isBot !== undefined){let data31 = data24.isBot;const _errs87 = errors;if(typeof data31 !== "boolean"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isBot",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}if(true !== data31){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isBot",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isBot/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"}];return false;}var valid13 = _errs87 === errors;}else {var valid13 = true;}if(valid13){if(data24.ownerId !== undefined){const _errs89 = errors;if(typeof data24.ownerId !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/ownerId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/ownerId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid13 = _errs89 === errors;}else {var valid13 = true;}if(valid13){if(data24.aiShortName !== undefined){const _errs91 = errors;if(typeof data24.aiShortName !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/aiShortName",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/aiShortName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid13 = _errs91 === errors;}else {var valid13 = true;}if(valid13){if(data24.name !== undefined){const _errs93 = errors;if(typeof data24.name !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/name",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid13 = _errs93 === errors;}else {var valid13 = true;}if(valid13){if(data24.aiOptions !== undefined){let data35 = data24.aiOptions;const _errs95 = errors;if(errors === _errs95){if(!(data35 && typeof data35 == "object" && !Array.isArray(data35))){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/aiOptions",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/aiOptions/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid13 = _errs95 === errors;}else {var valid13 = true;}if(valid13){if(data24.faction !== undefined){const _errs97 = errors;if(typeof data24.faction !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/faction",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/faction/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid13 = _errs97 === errors;}else {var valid13 = true;}}}}}}}}}}}}}}else {validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1,schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid12 = _errs73 === errors;if(!valid12){break;}}}else {validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bots",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/bots/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid4 = _errs71 === errors;}else {var valid4 = true;}if(valid4){if(data5.users !== undefined){let data37 = data5.users;const _errs99 = errors;if(errors === _errs99){if(Array.isArray(data37)){var valid14 = true;const len2 = data37.length;for(let i2=0; i2<len2; i2++){let data38 = data37[i2];const _errs101 = errors;if(errors === _errs101){if(data38 && typeof data38 == "object" && !Array.isArray(data38)){let missing4;if((((((((((data38.userId === undefined) && (missing4 = "userId")) || ((data38.username === undefined) && (missing4 = "username"))) || ((data38.displayName === undefined) && (missing4 = "displayName"))) || ((data38.avatarUrl === undefined) && (missing4 = "avatarUrl"))) || ((data38.clanId === undefined) && (missing4 = "clanId"))) || ((data38.partyId === undefined) && (missing4 = "partyId"))) || ((data38.scopes === undefined) && (missing4 = "scopes"))) || ((data38.status === undefined) && (missing4 = "status"))) || ((data38.battleStatus === undefined) && (missing4 = "battleStatus"))){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2,schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"}];return false;}else {if(data38.userId !== undefined){const _errs103 = errors;if(typeof data38.userId !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/userId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid15 = _errs103 === errors;}else {var valid15 = true;}if(valid15){if(data38.username !== undefined){const _errs105 = errors;if(typeof data38.username !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/username",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid15 = _errs105 === errors;}else {var valid15 = true;}if(valid15){if(data38.displayName !== undefined){const _errs107 = errors;if(typeof data38.displayName !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/displayName",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid15 = _errs107 === errors;}else {var valid15 = true;}if(valid15){if(data38.avatarUrl !== undefined){let data42 = data38.avatarUrl;const _errs109 = errors;const _errs110 = errors;let valid16 = false;const _errs111 = errors;if(typeof data42 !== "string"){const err19 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/avatarUrl",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/avatarUrl/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid5 = _errs111 === errors;valid16 = valid16 || _valid5;if(!valid16){const _errs113 = errors;if(data42 !== null){const err20 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/avatarUrl",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/avatarUrl/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid5 = _errs113 === errors;valid16 = valid16 || _valid5;}if(!valid16){const err21 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/avatarUrl",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/avatarUrl/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}}var valid15 = _errs109 === errors;}else {var valid15 = true;}if(valid15){if(data38.clanId !== undefined){let data43 = data38.clanId;const _errs115 = errors;const _errs116 = errors;let valid17 = false;const _errs117 = errors;if(typeof data43 !== "string"){const err22 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/clanId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/clanId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var _valid6 = _errs117 === errors;valid17 = valid17 || _valid6;if(!valid17){const _errs119 = errors;if(data43 !== null){const err23 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/clanId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/clanId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var _valid6 = _errs119 === errors;valid17 = valid17 || _valid6;}if(!valid17){const err24 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/clanId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/clanId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}var valid15 = _errs115 === errors;}else {var valid15 = true;}if(valid15){if(data38.partyId !== undefined){let data44 = data38.partyId;const _errs121 = errors;const _errs122 = errors;let valid18 = false;const _errs123 = errors;if(typeof data44 !== "string"){const err25 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/partyId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/partyId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid7 = _errs123 === errors;valid18 = valid18 || _valid7;if(!valid18){const _errs125 = errors;if(data44 !== null){const err26 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/partyId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/partyId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var _valid7 = _errs125 === errors;valid18 = valid18 || _valid7;}if(!valid18){const err27 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/partyId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/partyId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs122;if(vErrors !== null){if(_errs122){vErrors.length = _errs122;}else {vErrors = null;}}}var valid15 = _errs121 === errors;}else {var valid15 = true;}if(valid15){if(data38.scopes !== undefined){let data45 = data38.scopes;const _errs127 = errors;if(errors === _errs127){if(Array.isArray(data45)){var valid19 = true;const len3 = data45.length;for(let i3=0; i3<len3; i3++){const _errs129 = errors;if(typeof data45[i3] !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/scopes/" + i3,schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/scopes/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid19 = _errs129 === errors;if(!valid19){break;}}}else {validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/scopes",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/scopes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid15 = _errs127 === errors;}else {var valid15 = true;}if(valid15){if(data38.countryCode !== undefined){const _errs131 = errors;if(typeof data38.countryCode !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/countryCode",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/countryCode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid15 = _errs131 === errors;}else {var valid15 = true;}if(valid15){if(data38.status !== undefined){let data48 = data38.status;const _errs133 = errors;const _errs134 = errors;let valid20 = false;const _errs135 = errors;if(typeof data48 !== "string"){const err28 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("offline" !== data48){const err29 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/0/const",keyword:"const",params:{allowedValue: "offline"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var _valid8 = _errs135 === errors;valid20 = valid20 || _valid8;if(!valid20){const _errs137 = errors;if(typeof data48 !== "string"){const err30 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("menu" !== data48){const err31 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/1/const",keyword:"const",params:{allowedValue: "menu"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid8 = _errs137 === errors;valid20 = valid20 || _valid8;if(!valid20){const _errs139 = errors;if(typeof data48 !== "string"){const err32 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("playing" !== data48){const err33 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/2/const",keyword:"const",params:{allowedValue: "playing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var _valid8 = _errs139 === errors;valid20 = valid20 || _valid8;if(!valid20){const _errs141 = errors;if(typeof data48 !== "string"){const err34 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("lobby" !== data48){const err35 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/3/const",keyword:"const",params:{allowedValue: "lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var _valid8 = _errs141 === errors;valid20 = valid20 || _valid8;}}}if(!valid20){const err36 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs134;if(vErrors !== null){if(_errs134){vErrors.length = _errs134;}else {vErrors = null;}}}var valid15 = _errs133 === errors;}else {var valid15 = true;}if(valid15){if(data38.battleStatus !== undefined){let data49 = data38.battleStatus;const _errs143 = errors;const _errs144 = errors;let valid21 = false;const _errs145 = errors;const _errs146 = errors;if(errors === _errs146){if(data49 && typeof data49 == "object" && !Array.isArray(data49)){let missing5;if((data49.battleId === undefined) && (missing5 = "battleId")){const err37 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {if(data49.battleId !== undefined){if(typeof data49.battleId !== "string"){const err38 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/battleId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}}else {const err39 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}var valid22 = _errs146 === errors;if(valid22){const _errs150 = errors;const _errs151 = errors;let valid24 = false;const _errs152 = errors;if(!(data49 && typeof data49 == "object" && !Array.isArray(data49))){const err40 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}const _errs154 = errors;if(errors === _errs154){if(data49 && typeof data49 == "object" && !Array.isArray(data49)){let missing6;if((((((data49.playerId === undefined) && (missing6 = "playerId")) || ((data49.teamId === undefined) && (missing6 = "teamId"))) || ((data49.color === undefined) && (missing6 = "color"))) || ((data49.bonus === undefined) && (missing6 = "bonus"))) || ((data49.inGame === undefined) && (missing6 = "inGame"))){const err41 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}else {if(data49.playerId !== undefined){let data51 = data49.playerId;const _errs156 = errors;if(!(((typeof data51 == "number") && (!(data51 % 1) && !isNaN(data51))) && (isFinite(data51)))){const err42 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/playerId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var valid26 = _errs156 === errors;}else {var valid26 = true;}if(valid26){if(data49.teamId !== undefined){let data52 = data49.teamId;const _errs158 = errors;if(!(((typeof data52 == "number") && (!(data52 % 1) && !isNaN(data52))) && (isFinite(data52)))){const err43 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/teamId",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid26 = _errs158 === errors;}else {var valid26 = true;}if(valid26){if(data49.color !== undefined){const _errs160 = errors;if(typeof data49.color !== "string"){const err44 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/color",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid26 = _errs160 === errors;}else {var valid26 = true;}if(valid26){if(data49.bonus !== undefined){let data54 = data49.bonus;const _errs162 = errors;if(!((typeof data54 == "number") && (isFinite(data54)))){const err45 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/bonus",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid26 = _errs162 === errors;}else {var valid26 = true;}if(valid26){if(data49.inGame !== undefined){const _errs164 = errors;if(typeof data49.inGame !== "boolean"){const err46 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/inGame",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid26 = _errs164 === errors;}else {var valid26 = true;}}}}}}}else {const err47 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}var valid25 = _errs154 === errors;if(valid25){const _errs166 = errors;if(errors === _errs166){if(data49 && typeof data49 == "object" && !Array.isArray(data49)){let missing7;if(((((data49.isSpectator === undefined) && (missing7 = "isSpectator")) || ((data49.isBot === undefined) && (missing7 = "isBot"))) || ((data49.ready === undefined) && (missing7 = "ready"))) || ((data49.sync === undefined) && (missing7 = "sync"))){const err48 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data49.isSpectator !== undefined){let data56 = data49.isSpectator;const _errs168 = errors;if(typeof data56 !== "boolean"){const err49 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if(false !== data56){const err50 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid27 = _errs168 === errors;}else {var valid27 = true;}if(valid27){if(data49.isBot !== undefined){let data57 = data49.isBot;const _errs170 = errors;if(typeof data57 !== "boolean"){const err51 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(false !== data57){const err52 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var valid27 = _errs170 === errors;}else {var valid27 = true;}if(valid27){if(data49.ready !== undefined){const _errs172 = errors;if(typeof data49.ready !== "boolean"){const err53 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/ready",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/ready/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid27 = _errs172 === errors;}else {var valid27 = true;}if(valid27){if(data49.sync !== undefined){let data59 = data49.sync;const _errs174 = errors;if(errors === _errs174){if(data59 && typeof data59 == "object" && !Array.isArray(data59)){let missing8;if((((data59.engine === undefined) && (missing8 = "engine")) || ((data59.game === undefined) && (missing8 = "game"))) || ((data59.map === undefined) && (missing8 = "map"))){const err54 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {if(data59.engine !== undefined){let data60 = data59.engine;const _errs176 = errors;if(!((typeof data60 == "number") && (isFinite(data60)))){const err55 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync/engine",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/engine/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid28 = _errs176 === errors;}else {var valid28 = true;}if(valid28){if(data59.game !== undefined){let data61 = data59.game;const _errs178 = errors;if(!((typeof data61 == "number") && (isFinite(data61)))){const err56 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync/game",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/game/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid28 = _errs178 === errors;}else {var valid28 = true;}if(valid28){if(data59.map !== undefined){let data62 = data59.map;const _errs180 = errors;if(!((typeof data62 == "number") && (isFinite(data62)))){const err57 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync/map",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/map/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid28 = _errs180 === errors;}else {var valid28 = true;}}}}}else {const err58 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}var valid27 = _errs174 === errors;}else {var valid27 = true;}}}}}}else {const err59 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid25 = _errs166 === errors;}var _valid10 = _errs152 === errors;valid24 = valid24 || _valid10;if(!valid24){const _errs182 = errors;if(errors === _errs182){if(data49 && typeof data49 == "object" && !Array.isArray(data49)){let missing9;if(((data49.isSpectator === undefined) && (missing9 = "isSpectator")) || ((data49.isBot === undefined) && (missing9 = "isBot"))){const err60 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data49.isSpectator !== undefined){let data63 = data49.isSpectator;const _errs184 = errors;if(typeof data63 !== "boolean"){const err61 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(true !== data63){const err62 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid29 = _errs184 === errors;}else {var valid29 = true;}if(valid29){if(data49.isBot !== undefined){let data64 = data49.isBot;const _errs186 = errors;if(typeof data64 !== "boolean"){const err63 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(false !== data64){const err64 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var valid29 = _errs186 === errors;}else {var valid29 = true;}}}}else {const err65 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}var _valid10 = _errs182 === errors;valid24 = valid24 || _valid10;}if(!valid24){const err66 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {errors = _errs151;if(vErrors !== null){if(_errs151){vErrors.length = _errs151;}else {vErrors = null;}}}var valid22 = _errs150 === errors;}var _valid9 = _errs145 === errors;valid21 = valid21 || _valid9;if(!valid21){const _errs188 = errors;if(data49 !== null){const err67 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid9 = _errs188 === errors;valid21 = valid21 || _valid9;}if(!valid21){const err68 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs144;if(vErrors !== null){if(_errs144){vErrors.length = _errs144;}else {vErrors = null;}}}var valid15 = _errs143 === errors;}else {var valid15 = true;}}}}}}}}}}}}else {validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2,schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid14 = _errs101 === errors;if(!valid14){break;}}}else {validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/users",schemaPath:"#/properties/data/properties/battles/items/allOf/0/properties/users/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid4 = _errs99 === errors;}else {var valid4 = true;}}}}}}}}}}}}}}}else {validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/properties/data/properties/battles/items/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs13 === errors;if(valid3){const _errs190 = errors;if(errors === _errs190){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.title !== undefined){const _errs192 = errors;if(typeof data5.title !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/title",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid30 = _errs192 === errors;}else {var valid30 = true;}if(valid30){if(data5.locked !== undefined){const _errs194 = errors;if(typeof data5.locked !== "boolean"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/locked",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/locked/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid30 = _errs194 === errors;}else {var valid30 = true;}if(valid30){if(data5.passworded !== undefined){const _errs196 = errors;if(typeof data5.passworded !== "boolean"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/passworded",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/passworded/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid30 = _errs196 === errors;}else {var valid30 = true;}if(valid30){if(data5.bossIds !== undefined){let data68 = data5.bossIds;const _errs198 = errors;if(errors === _errs198){if(Array.isArray(data68)){var valid31 = true;const len4 = data68.length;for(let i4=0; i4<len4; i4++){const _errs200 = errors;if(typeof data68[i4] !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bossIds/" + i4,schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/bossIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid31 = _errs200 === errors;if(!valid31){break;}}}else {validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/bossIds",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/bossIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid30 = _errs198 === errors;}else {var valid30 = true;}if(valid30){if(data5.joinQueueIds !== undefined){let data70 = data5.joinQueueIds;const _errs202 = errors;if(errors === _errs202){if(Array.isArray(data70)){var valid32 = true;const len5 = data70.length;for(let i5=0; i5<len5; i5++){const _errs204 = errors;if(typeof data70[i5] !== "string"){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/joinQueueIds/" + i5,schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/joinQueueIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid32 = _errs204 === errors;if(!valid32){break;}}}else {validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/joinQueueIds",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/joinQueueIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid30 = _errs202 === errors;}else {var valid30 = true;}if(valid30){if(data5.limits !== undefined){let data72 = data5.limits;const _errs206 = errors;if(errors === _errs206){if(data72 && typeof data72 == "object" && !Array.isArray(data72)){let missing10;if(((((data72.minTeamsize === undefined) && (missing10 = "minTeamsize")) || ((data72.maxTeamsize === undefined) && (missing10 = "maxTeamsize"))) || ((data72.minRating === undefined) && (missing10 = "minRating"))) || ((data72.maxRating === undefined) && (missing10 = "maxRating"))){validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/limits",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/limits/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"}];return false;}else {if(data72.minTeamsize !== undefined){let data73 = data72.minTeamsize;const _errs208 = errors;const _errs209 = errors;let valid34 = false;const _errs210 = errors;if(!(((typeof data73 == "number") && (!(data73 % 1) && !isNaN(data73))) && (isFinite(data73)))){const err69 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minTeamsize",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minTeamsize/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}var _valid11 = _errs210 === errors;valid34 = valid34 || _valid11;if(!valid34){const _errs212 = errors;if(data73 !== null){const err70 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minTeamsize",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minTeamsize/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var _valid11 = _errs212 === errors;valid34 = valid34 || _valid11;}if(!valid34){const err71 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minTeamsize",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minTeamsize/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs209;if(vErrors !== null){if(_errs209){vErrors.length = _errs209;}else {vErrors = null;}}}var valid33 = _errs208 === errors;}else {var valid33 = true;}if(valid33){if(data72.maxTeamsize !== undefined){let data74 = data72.maxTeamsize;const _errs214 = errors;const _errs215 = errors;let valid35 = false;const _errs216 = errors;if(!(((typeof data74 == "number") && (!(data74 % 1) && !isNaN(data74))) && (isFinite(data74)))){const err72 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxTeamsize",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxTeamsize/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}var _valid12 = _errs216 === errors;valid35 = valid35 || _valid12;if(!valid35){const _errs218 = errors;if(data74 !== null){const err73 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxTeamsize",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxTeamsize/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var _valid12 = _errs218 === errors;valid35 = valid35 || _valid12;}if(!valid35){const err74 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxTeamsize",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxTeamsize/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs215;if(vErrors !== null){if(_errs215){vErrors.length = _errs215;}else {vErrors = null;}}}var valid33 = _errs214 === errors;}else {var valid33 = true;}if(valid33){if(data72.minRating !== undefined){let data75 = data72.minRating;const _errs220 = errors;const _errs221 = errors;let valid36 = false;const _errs222 = errors;if(!(((typeof data75 == "number") && (!(data75 % 1) && !isNaN(data75))) && (isFinite(data75)))){const err75 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minRating",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minRating/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}var _valid13 = _errs222 === errors;valid36 = valid36 || _valid13;if(!valid36){const _errs224 = errors;if(data75 !== null){const err76 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minRating",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minRating/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}var _valid13 = _errs224 === errors;valid36 = valid36 || _valid13;}if(!valid36){const err77 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minRating",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minRating/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs221;if(vErrors !== null){if(_errs221){vErrors.length = _errs221;}else {vErrors = null;}}}var valid33 = _errs220 === errors;}else {var valid33 = true;}if(valid33){if(data72.maxRating !== undefined){let data76 = data72.maxRating;const _errs226 = errors;const _errs227 = errors;let valid37 = false;const _errs228 = errors;if(!(((typeof data76 == "number") && (!(data76 % 1) && !isNaN(data76))) && (isFinite(data76)))){const err78 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxRating",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxRating/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}var _valid14 = _errs228 === errors;valid37 = valid37 || _valid14;if(!valid37){const _errs230 = errors;if(data76 !== null){const err79 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxRating",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxRating/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}var _valid14 = _errs230 === errors;valid37 = valid37 || _valid14;}if(!valid37){const err80 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxRating",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxRating/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs227;if(vErrors !== null){if(_errs227){vErrors.length = _errs227;}else {vErrors = null;}}}var valid33 = _errs226 === errors;}else {var valid33 = true;}}}}}}else {validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0+"/limits",schemaPath:"#/properties/data/properties/battles/items/allOf/1/properties/limits/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid30 = _errs206 === errors;}else {var valid30 = true;}}}}}}}else {validate37.errors = [{instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/properties/data/properties/battles/items/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs190 === errors;}var valid2 = _errs11 === errors;if(!valid2){break;}}}else {validate37.errors = [{instancePath:instancePath+"/data/battles",schemaPath:"#/properties/data/properties/battles/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate37.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate37.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate37.errors = vErrors;return errors === 0;}exports.matchmaking_cancel_request = validate38;const schema39 = {"$id":"matchmaking/cancel/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel","type":"string"}},"required":["type","messageId","commandId"]};function validate38(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/cancel/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate38.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate38.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate38.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate38.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate38.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("matchmaking/cancel" !== data2){validate38.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate38.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate38.errors = vErrors;return errors === 0;}exports.matchmaking_cancel_response = validate39;const schema40 = {"$id":"matchmaking/cancel/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"not_queued","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate39(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/cancel/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("matchmaking/cancel" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("matchmaking/cancel" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("not_queued" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "not_queued"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("matchmaking/cancel" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("internal_error" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("matchmaking/cancel" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("unauthorized" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("matchmaking/cancel" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("invalid_request" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs59 = errors;if(errors === _errs59){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((((((data.type === undefined) && (missing5 = "type")) || ((data.messageId === undefined) && (missing5 = "messageId"))) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err53 = {instancePath,schemaPath:"#/anyOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {if(data.type !== undefined){let data24 = data.type;const _errs61 = errors;if(typeof data24 !== "string"){const err54 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("response" !== data24){const err55 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid6 = _errs61 === errors;}else {var valid6 = true;}if(valid6){if(data.messageId !== undefined){const _errs63 = errors;if(typeof data.messageId !== "string"){const err56 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/5/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid6 = _errs63 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data26 = data.commandId;const _errs65 = errors;if(typeof data26 !== "string"){const err57 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if("matchmaking/cancel" !== data26){const err58 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid6 = _errs65 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data27 = data.status;const _errs67 = errors;if(typeof data27 !== "string"){const err59 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("failed" !== data27){const err60 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid6 = _errs67 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data28 = data.reason;const _errs69 = errors;if(typeof data28 !== "string"){const err61 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if("command_unimplemented" !== data28){const err62 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid6 = _errs69 === errors;}else {var valid6 = true;}}}}}}}else {const err63 = {instancePath,schemaPath:"#/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var _valid0 = _errs59 === errors;valid0 = valid0 || _valid0;}}}}}if(!valid0){const err64 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;validate39.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate39.errors = vErrors;return errors === 0;}exports.matchmaking_declined_request = validate40;const schema41 = {"$id":"matchmaking/declined/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/declined","type":"string"}},"required":["type","messageId","commandId"]};function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/declined/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate40.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate40.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate40.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate40.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate40.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("matchmaking/declined" !== data2){validate40.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/declined"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate40.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate40.errors = vErrors;return errors === 0;}exports.matchmaking_declined_response = validate41;const schema42 = {"$id":"matchmaking/declined/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/declined","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/declined","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/declined","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/declined","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/declined","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate41(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/declined/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("matchmaking/declined" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/declined"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("matchmaking/declined" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/declined"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("internal_error" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("matchmaking/declined" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/declined"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("unauthorized" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("matchmaking/declined" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/declined"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("invalid_request" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("matchmaking/declined" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/declined"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("command_unimplemented" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err53 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;validate41.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate41.errors = vErrors;return errors === 0;}exports.matchmaking_found_event = validate42;const schema43 = {"$id":"matchmaking/found/event","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"event","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/found","type":"string"},"data":{"type":"object","properties":{"queueId":{"type":"string"},"timeoutMs":{"type":"integer"}},"required":["queueId","timeoutMs"]}},"required":["type","messageId","commandId","data"]};function validate42(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/found/event" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate42.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate42.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("event" !== data0){validate42.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate42.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate42.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("matchmaking/found" !== data2){validate42.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/found"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.queueId === undefined) && (missing1 = "queueId")) || ((data3.timeoutMs === undefined) && (missing1 = "timeoutMs"))){validate42.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.queueId !== undefined){const _errs9 = errors;if(typeof data3.queueId !== "string"){validate42.errors = [{instancePath:instancePath+"/data/queueId",schemaPath:"#/properties/data/properties/queueId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data3.timeoutMs !== undefined){let data5 = data3.timeoutMs;const _errs11 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){validate42.errors = [{instancePath:instancePath+"/data/timeoutMs",schemaPath:"#/properties/data/properties/timeoutMs/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid1 = _errs11 === errors;}else {var valid1 = true;}}}}else {validate42.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate42.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate42.errors = vErrors;return errors === 0;}exports.matchmaking_foundUpdate_event = validate43;const schema44 = {"$id":"matchmaking/foundUpdate/event","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"event","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/foundUpdate","type":"string"},"data":{"type":"object","properties":{"readyCount":{"type":"integer"}},"required":["readyCount"]}},"required":["type","messageId","commandId","data"]};function validate43(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/foundUpdate/event" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate43.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate43.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("event" !== data0){validate43.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate43.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate43.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("matchmaking/foundUpdate" !== data2){validate43.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/foundUpdate"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.readyCount === undefined) && (missing1 = "readyCount")){validate43.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.readyCount !== undefined){let data4 = data3.readyCount;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){validate43.errors = [{instancePath:instancePath+"/data/readyCount",schemaPath:"#/properties/data/properties/readyCount/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}}}}else {validate43.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate43.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate43.errors = vErrors;return errors === 0;}exports.matchmaking_list_request = validate44;const schema45 = {"$id":"matchmaking/list/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/list","type":"string"}},"required":["type","messageId","commandId"]};function validate44(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/list/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate44.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate44.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate44.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate44.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate44.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("matchmaking/list" !== data2){validate44.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/list"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate44.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate44.errors = vErrors;return errors === 0;}exports.matchmaking_list_response = validate45;const schema46 = {"$id":"matchmaking/list/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/list","type":"string"},"status":{"const":"success","type":"string"},"data":{"examples":[{"playlists":[{"id":"1v1","name":"Duel","numOfTeams":2,"teamSize":1,"ranked":true},{"id":"1v1v1","name":"3 Way FFA","numOfTeams":3,"teamSize":1,"ranked":true}]}],"type":"object","properties":{"playlists":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"numOfTeams":{"type":"integer"},"teamSize":{"type":"integer"},"ranked":{"type":"boolean"}},"required":["id","name","numOfTeams","teamSize","ranked"]}}},"required":["playlists"]}},"required":["type","messageId","commandId","status","data"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/list","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/list","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/list","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/list","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate45(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/list/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("matchmaking/list" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/list"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data4 = data.data;const _errs11 = errors;if(errors === _errs11){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing1;if((data4.playlists === undefined) && (missing1 = "playlists")){const err8 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data4.playlists !== undefined){let data5 = data4.playlists;const _errs13 = errors;if(errors === _errs13){if(Array.isArray(data5)){var valid3 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];const _errs15 = errors;if(errors === _errs15){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing2;if((((((data6.id === undefined) && (missing2 = "id")) || ((data6.name === undefined) && (missing2 = "name"))) || ((data6.numOfTeams === undefined) && (missing2 = "numOfTeams"))) || ((data6.teamSize === undefined) && (missing2 = "teamSize"))) || ((data6.ranked === undefined) && (missing2 = "ranked"))){const err9 = {instancePath:instancePath+"/data/playlists/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data6.id !== undefined){const _errs17 = errors;if(typeof data6.id !== "string"){const err10 = {instancePath:instancePath+"/data/playlists/" + i0+"/id",schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid4 = _errs17 === errors;}else {var valid4 = true;}if(valid4){if(data6.name !== undefined){const _errs19 = errors;if(typeof data6.name !== "string"){const err11 = {instancePath:instancePath+"/data/playlists/" + i0+"/name",schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid4 = _errs19 === errors;}else {var valid4 = true;}if(valid4){if(data6.numOfTeams !== undefined){let data9 = data6.numOfTeams;const _errs21 = errors;if(!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))){const err12 = {instancePath:instancePath+"/data/playlists/" + i0+"/numOfTeams",schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/properties/numOfTeams/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid4 = _errs21 === errors;}else {var valid4 = true;}if(valid4){if(data6.teamSize !== undefined){let data10 = data6.teamSize;const _errs23 = errors;if(!(((typeof data10 == "number") && (!(data10 % 1) && !isNaN(data10))) && (isFinite(data10)))){const err13 = {instancePath:instancePath+"/data/playlists/" + i0+"/teamSize",schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/properties/teamSize/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid4 = _errs23 === errors;}else {var valid4 = true;}if(valid4){if(data6.ranked !== undefined){const _errs25 = errors;if(typeof data6.ranked !== "boolean"){const err14 = {instancePath:instancePath+"/data/playlists/" + i0+"/ranked",schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/properties/ranked/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid4 = _errs25 === errors;}else {var valid4 = true;}}}}}}}else {const err15 = {instancePath:instancePath+"/data/playlists/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var valid3 = _errs15 === errors;if(!valid3){break;}}}else {const err16 = {instancePath:instancePath+"/data/playlists",schemaPath:"#/anyOf/0/properties/data/properties/playlists/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}}}else {const err17 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}var valid1 = _errs11 === errors;}else {var valid1 = true;}}}}}}}else {const err18 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs27 = errors;if(errors === _errs27){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err19 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {if(data.type !== undefined){let data12 = data.type;const _errs29 = errors;if(typeof data12 !== "string"){const err20 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("response" !== data12){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid5 = _errs29 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err22 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid5 = _errs31 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data14 = data.commandId;const _errs33 = errors;if(typeof data14 !== "string"){const err23 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("matchmaking/list" !== data14){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/list"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid5 = _errs33 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data15 = data.status;const _errs35 = errors;if(typeof data15 !== "string"){const err25 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("failed" !== data15){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid5 = _errs35 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data16 = data.reason;const _errs37 = errors;if(typeof data16 !== "string"){const err27 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("internal_error" !== data16){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid5 = _errs37 === errors;}else {var valid5 = true;}}}}}}}else {const err29 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}var _valid0 = _errs27 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs39 = errors;if(errors === _errs39){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err30 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {if(data.type !== undefined){let data17 = data.type;const _errs41 = errors;if(typeof data17 !== "string"){const err31 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("response" !== data17){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid6 = _errs41 === errors;}else {var valid6 = true;}if(valid6){if(data.messageId !== undefined){const _errs43 = errors;if(typeof data.messageId !== "string"){const err33 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid6 = _errs43 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data19 = data.commandId;const _errs45 = errors;if(typeof data19 !== "string"){const err34 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("matchmaking/list" !== data19){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/list"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid6 = _errs45 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data20 = data.status;const _errs47 = errors;if(typeof data20 !== "string"){const err36 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("failed" !== data20){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid6 = _errs47 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data21 = data.reason;const _errs49 = errors;if(typeof data21 !== "string"){const err38 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if("unauthorized" !== data21){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid6 = _errs49 === errors;}else {var valid6 = true;}}}}}}}else {const err40 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}var _valid0 = _errs39 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs51 = errors;if(errors === _errs51){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((((((data.type === undefined) && (missing5 = "type")) || ((data.messageId === undefined) && (missing5 = "messageId"))) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err41 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}else {if(data.type !== undefined){let data22 = data.type;const _errs53 = errors;if(typeof data22 !== "string"){const err42 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if("response" !== data22){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid7 = _errs53 === errors;}else {var valid7 = true;}if(valid7){if(data.messageId !== undefined){const _errs55 = errors;if(typeof data.messageId !== "string"){const err44 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid7 = _errs55 === errors;}else {var valid7 = true;}if(valid7){if(data.commandId !== undefined){let data24 = data.commandId;const _errs57 = errors;if(typeof data24 !== "string"){const err45 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if("matchmaking/list" !== data24){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/list"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid7 = _errs57 === errors;}else {var valid7 = true;}if(valid7){if(data.status !== undefined){let data25 = data.status;const _errs59 = errors;if(typeof data25 !== "string"){const err47 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if("failed" !== data25){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var valid7 = _errs59 === errors;}else {var valid7 = true;}if(valid7){if(data.reason !== undefined){let data26 = data.reason;const _errs61 = errors;if(typeof data26 !== "string"){const err49 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if("invalid_request" !== data26){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid7 = _errs61 === errors;}else {var valid7 = true;}}}}}}}else {const err51 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}var _valid0 = _errs51 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs63 = errors;if(errors === _errs63){if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if((((((data.type === undefined) && (missing6 = "type")) || ((data.messageId === undefined) && (missing6 = "messageId"))) || ((data.commandId === undefined) && (missing6 = "commandId"))) || ((data.status === undefined) && (missing6 = "status"))) || ((data.reason === undefined) && (missing6 = "reason"))){const err52 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data.type !== undefined){let data27 = data.type;const _errs65 = errors;if(typeof data27 !== "string"){const err53 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if("response" !== data27){const err54 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}var valid8 = _errs65 === errors;}else {var valid8 = true;}if(valid8){if(data.messageId !== undefined){const _errs67 = errors;if(typeof data.messageId !== "string"){const err55 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid8 = _errs67 === errors;}else {var valid8 = true;}if(valid8){if(data.commandId !== undefined){let data29 = data.commandId;const _errs69 = errors;if(typeof data29 !== "string"){const err56 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if("matchmaking/list" !== data29){const err57 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/list"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid8 = _errs69 === errors;}else {var valid8 = true;}if(valid8){if(data.status !== undefined){let data30 = data.status;const _errs71 = errors;if(typeof data30 !== "string"){const err58 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if("failed" !== data30){const err59 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid8 = _errs71 === errors;}else {var valid8 = true;}if(valid8){if(data.reason !== undefined){let data31 = data.reason;const _errs73 = errors;if(typeof data31 !== "string"){const err60 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if("command_unimplemented" !== data31){const err61 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}var valid8 = _errs73 === errors;}else {var valid8 = true;}}}}}}}else {const err62 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}var _valid0 = _errs63 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err63 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;validate45.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate45.errors = vErrors;return errors === 0;}exports.matchmaking_lost_event = validate46;const schema47 = {"$id":"matchmaking/lost/event","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"event","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/lost","type":"string"}},"required":["type","messageId","commandId"]};function validate46(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/lost/event" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate46.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate46.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("event" !== data0){validate46.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate46.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate46.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("matchmaking/lost" !== data2){validate46.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/lost"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate46.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate46.errors = vErrors;return errors === 0;}exports.matchmaking_queue_request = validate47;const schema48 = {"$id":"matchmaking/queue/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue","type":"string"},"data":{"type":"object","properties":{"queues":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["queues"]}},"required":["type","messageId","commandId","data"]};function validate47(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/queue/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate47.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate47.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate47.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate47.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate47.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("matchmaking/queue" !== data2){validate47.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.queues === undefined) && (missing1 = "queues")){validate47.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.queues !== undefined){let data4 = data3.queues;const _errs9 = errors;if(errors === _errs9){if(Array.isArray(data4)){if(data4.length < 1){validate47.errors = [{instancePath:instancePath+"/data/queues",schemaPath:"#/properties/data/properties/queues/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs11 = errors;if(typeof data4[i0] !== "string"){validate47.errors = [{instancePath:instancePath+"/data/queues/" + i0,schemaPath:"#/properties/data/properties/queues/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs11 === errors;if(!valid2){break;}}}}else {validate47.errors = [{instancePath:instancePath+"/data/queues",schemaPath:"#/properties/data/properties/queues/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate47.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate47.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate47.errors = vErrors;return errors === 0;}exports.matchmaking_queue_response = validate48;const schema49 = {"$id":"matchmaking/queue/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_queue_specified","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"already_queued","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"already_ingame","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate48(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/queue/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("matchmaking/queue" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("matchmaking/queue" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("invalid_queue_specified" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_queue_specified"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("matchmaking/queue" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("already_queued" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "already_queued"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("matchmaking/queue" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("already_ingame" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "already_ingame"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("matchmaking/queue" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("internal_error" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs59 = errors;if(errors === _errs59){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((((((data.type === undefined) && (missing5 = "type")) || ((data.messageId === undefined) && (missing5 = "messageId"))) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err53 = {instancePath,schemaPath:"#/anyOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {if(data.type !== undefined){let data24 = data.type;const _errs61 = errors;if(typeof data24 !== "string"){const err54 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("response" !== data24){const err55 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid6 = _errs61 === errors;}else {var valid6 = true;}if(valid6){if(data.messageId !== undefined){const _errs63 = errors;if(typeof data.messageId !== "string"){const err56 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/5/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid6 = _errs63 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data26 = data.commandId;const _errs65 = errors;if(typeof data26 !== "string"){const err57 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if("matchmaking/queue" !== data26){const err58 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid6 = _errs65 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data27 = data.status;const _errs67 = errors;if(typeof data27 !== "string"){const err59 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("failed" !== data27){const err60 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid6 = _errs67 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data28 = data.reason;const _errs69 = errors;if(typeof data28 !== "string"){const err61 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if("unauthorized" !== data28){const err62 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid6 = _errs69 === errors;}else {var valid6 = true;}}}}}}}else {const err63 = {instancePath,schemaPath:"#/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var _valid0 = _errs59 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs71 = errors;if(errors === _errs71){if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if((((((data.type === undefined) && (missing6 = "type")) || ((data.messageId === undefined) && (missing6 = "messageId"))) || ((data.commandId === undefined) && (missing6 = "commandId"))) || ((data.status === undefined) && (missing6 = "status"))) || ((data.reason === undefined) && (missing6 = "reason"))){const err64 = {instancePath,schemaPath:"#/anyOf/6/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {if(data.type !== undefined){let data29 = data.type;const _errs73 = errors;if(typeof data29 !== "string"){const err65 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/6/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if("response" !== data29){const err66 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/6/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid7 = _errs73 === errors;}else {var valid7 = true;}if(valid7){if(data.messageId !== undefined){const _errs75 = errors;if(typeof data.messageId !== "string"){const err67 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/6/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var valid7 = _errs75 === errors;}else {var valid7 = true;}if(valid7){if(data.commandId !== undefined){let data31 = data.commandId;const _errs77 = errors;if(typeof data31 !== "string"){const err68 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/6/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if("matchmaking/queue" !== data31){const err69 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/6/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}var valid7 = _errs77 === errors;}else {var valid7 = true;}if(valid7){if(data.status !== undefined){let data32 = data.status;const _errs79 = errors;if(typeof data32 !== "string"){const err70 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/6/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if("failed" !== data32){const err71 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/6/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var valid7 = _errs79 === errors;}else {var valid7 = true;}if(valid7){if(data.reason !== undefined){let data33 = data.reason;const _errs81 = errors;if(typeof data33 !== "string"){const err72 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/6/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if("invalid_request" !== data33){const err73 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/6/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var valid7 = _errs81 === errors;}else {var valid7 = true;}}}}}}}else {const err74 = {instancePath,schemaPath:"#/anyOf/6/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}var _valid0 = _errs71 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs83 = errors;if(errors === _errs83){if(data && typeof data == "object" && !Array.isArray(data)){let missing7;if((((((data.type === undefined) && (missing7 = "type")) || ((data.messageId === undefined) && (missing7 = "messageId"))) || ((data.commandId === undefined) && (missing7 = "commandId"))) || ((data.status === undefined) && (missing7 = "status"))) || ((data.reason === undefined) && (missing7 = "reason"))){const err75 = {instancePath,schemaPath:"#/anyOf/7/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}else {if(data.type !== undefined){let data34 = data.type;const _errs85 = errors;if(typeof data34 !== "string"){const err76 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/7/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if("response" !== data34){const err77 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/7/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var valid8 = _errs85 === errors;}else {var valid8 = true;}if(valid8){if(data.messageId !== undefined){const _errs87 = errors;if(typeof data.messageId !== "string"){const err78 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/7/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}var valid8 = _errs87 === errors;}else {var valid8 = true;}if(valid8){if(data.commandId !== undefined){let data36 = data.commandId;const _errs89 = errors;if(typeof data36 !== "string"){const err79 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/7/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if("matchmaking/queue" !== data36){const err80 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/7/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}var valid8 = _errs89 === errors;}else {var valid8 = true;}if(valid8){if(data.status !== undefined){let data37 = data.status;const _errs91 = errors;if(typeof data37 !== "string"){const err81 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/7/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}if("failed" !== data37){const err82 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/7/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var valid8 = _errs91 === errors;}else {var valid8 = true;}if(valid8){if(data.reason !== undefined){let data38 = data.reason;const _errs93 = errors;if(typeof data38 !== "string"){const err83 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/7/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("command_unimplemented" !== data38){const err84 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/7/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}var valid8 = _errs93 === errors;}else {var valid8 = true;}}}}}}}else {const err85 = {instancePath,schemaPath:"#/anyOf/7/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}var _valid0 = _errs83 === errors;valid0 = valid0 || _valid0;}}}}}}}if(!valid0){const err86 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;validate48.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate48.errors = vErrors;return errors === 0;}exports.matchmaking_queueUpdate_event = validate49;const schema50 = {"$id":"matchmaking/queueUpdate/event","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"event","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queueUpdate","type":"string"},"data":{"type":"object","properties":{"playersQueued":{"type":"string"}},"required":["playersQueued"]}},"required":["type","messageId","commandId","data"]};function validate49(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/queueUpdate/event" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate49.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate49.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("event" !== data0){validate49.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate49.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate49.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("matchmaking/queueUpdate" !== data2){validate49.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queueUpdate"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.playersQueued === undefined) && (missing1 = "playersQueued")){validate49.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.playersQueued !== undefined){if(typeof data3.playersQueued !== "string"){validate49.errors = [{instancePath:instancePath+"/data/playersQueued",schemaPath:"#/properties/data/properties/playersQueued/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate49.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate49.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate49.errors = vErrors;return errors === 0;}exports.matchmaking_ready_request = validate50;const schema51 = {"$id":"matchmaking/ready/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready","type":"string"}},"required":["type","messageId","commandId"]};function validate50(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/ready/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate50.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate50.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate50.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate50.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate50.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("matchmaking/ready" !== data2){validate50.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate50.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate50.errors = vErrors;return errors === 0;}exports.matchmaking_ready_response = validate51;const schema52 = {"$id":"matchmaking/ready/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"no_match","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate51(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/ready/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("matchmaking/ready" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("matchmaking/ready" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("no_match" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "no_match"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("matchmaking/ready" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("internal_error" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("matchmaking/ready" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("unauthorized" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("matchmaking/ready" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("invalid_request" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs59 = errors;if(errors === _errs59){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((((((data.type === undefined) && (missing5 = "type")) || ((data.messageId === undefined) && (missing5 = "messageId"))) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err53 = {instancePath,schemaPath:"#/anyOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {if(data.type !== undefined){let data24 = data.type;const _errs61 = errors;if(typeof data24 !== "string"){const err54 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("response" !== data24){const err55 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid6 = _errs61 === errors;}else {var valid6 = true;}if(valid6){if(data.messageId !== undefined){const _errs63 = errors;if(typeof data.messageId !== "string"){const err56 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/5/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid6 = _errs63 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data26 = data.commandId;const _errs65 = errors;if(typeof data26 !== "string"){const err57 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if("matchmaking/ready" !== data26){const err58 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid6 = _errs65 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data27 = data.status;const _errs67 = errors;if(typeof data27 !== "string"){const err59 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("failed" !== data27){const err60 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid6 = _errs67 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data28 = data.reason;const _errs69 = errors;if(typeof data28 !== "string"){const err61 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if("command_unimplemented" !== data28){const err62 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid6 = _errs69 === errors;}else {var valid6 = true;}}}}}}}else {const err63 = {instancePath,schemaPath:"#/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var _valid0 = _errs59 === errors;valid0 = valid0 || _valid0;}}}}}if(!valid0){const err64 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;validate51.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate51.errors = vErrors;return errors === 0;}exports.matchmaking_readyUpdate_event = validate52;const schema53 = {"$id":"matchmaking/readyUpdate/event","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"event","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/readyUpdate","type":"string"},"data":{"type":"object","properties":{"readyMax":{"type":"integer"},"readyCurrent":{"type":"integer"}},"required":["readyMax","readyCurrent"]}},"required":["type","messageId","commandId","data"]};function validate52(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/readyUpdate/event" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate52.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate52.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("event" !== data0){validate52.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate52.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate52.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("matchmaking/readyUpdate" !== data2){validate52.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/readyUpdate"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.readyMax === undefined) && (missing1 = "readyMax")) || ((data3.readyCurrent === undefined) && (missing1 = "readyCurrent"))){validate52.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.readyMax !== undefined){let data4 = data3.readyMax;const _errs9 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){validate52.errors = [{instancePath:instancePath+"/data/readyMax",schemaPath:"#/properties/data/properties/readyMax/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data3.readyCurrent !== undefined){let data5 = data3.readyCurrent;const _errs11 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){validate52.errors = [{instancePath:instancePath+"/data/readyCurrent",schemaPath:"#/properties/data/properties/readyCurrent/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid1 = _errs11 === errors;}else {var valid1 = true;}}}}else {validate52.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate52.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate52.errors = vErrors;return errors === 0;}exports.system_connected_event = validate53;const schema54 = {"$id":"system/connected/event","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"event","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"system/connected","type":"string"},"data":{"type":"object","properties":{"userId":{"type":"string"},"username":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"clanId":{"anyOf":[{"type":"string"},{"type":"null"}]},"partyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string"}},"countryCode":{"type":"string"},"status":{"anyOf":[{"const":"offline","type":"string"},{"const":"menu","type":"string"},{"const":"playing","type":"string"},{"const":"lobby","type":"string"}]},"battleStatus":{"anyOf":[{"allOf":[{"type":"object","properties":{"battleId":{"type":"string"}},"required":["battleId"]},{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"}},"required":["playerId","teamId","color","bonus","inGame"]},{"type":"object","properties":{"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":false,"type":"boolean"},"ready":{"type":"boolean"},"sync":{"type":"object","properties":{"engine":{"type":"number"},"game":{"type":"number"},"map":{"type":"number"}},"required":["engine","game","map"]}},"required":["isSpectator","isBot","ready","sync"]}]},{"type":"object","properties":{"isSpectator":{"const":true,"type":"boolean"},"isBot":{"const":false,"type":"boolean"}},"required":["isSpectator","isBot"]}]}]},{"type":"null"}]},"friendIds":{"type":"array","items":{"type":"string"}},"outgoingFriendRequestIds":{"type":"array","items":{"type":"string"}},"incomingFriendRequestIds":{"type":"array","items":{"type":"string"}},"ignoreIds":{"type":"array","items":{"type":"string"}}},"required":["userId","username","displayName","avatarUrl","clanId","partyId","scopes","status","battleStatus","friendIds","outgoingFriendRequestIds","incomingFriendRequestIds","ignoreIds"]}},"required":["type","messageId","commandId","data"]};function validate53(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="system/connected/event" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate53.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate53.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("event" !== data0){validate53.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate53.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate53.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("system/connected" !== data2){validate53.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "system/connected"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((((((((((((((data3.userId === undefined) && (missing1 = "userId")) || ((data3.username === undefined) && (missing1 = "username"))) || ((data3.displayName === undefined) && (missing1 = "displayName"))) || ((data3.avatarUrl === undefined) && (missing1 = "avatarUrl"))) || ((data3.clanId === undefined) && (missing1 = "clanId"))) || ((data3.partyId === undefined) && (missing1 = "partyId"))) || ((data3.scopes === undefined) && (missing1 = "scopes"))) || ((data3.status === undefined) && (missing1 = "status"))) || ((data3.battleStatus === undefined) && (missing1 = "battleStatus"))) || ((data3.friendIds === undefined) && (missing1 = "friendIds"))) || ((data3.outgoingFriendRequestIds === undefined) && (missing1 = "outgoingFriendRequestIds"))) || ((data3.incomingFriendRequestIds === undefined) && (missing1 = "incomingFriendRequestIds"))) || ((data3.ignoreIds === undefined) && (missing1 = "ignoreIds"))){validate53.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.userId !== undefined){const _errs9 = errors;if(typeof data3.userId !== "string"){validate53.errors = [{instancePath:instancePath+"/data/userId",schemaPath:"#/properties/data/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data3.username !== undefined){const _errs11 = errors;if(typeof data3.username !== "string"){validate53.errors = [{instancePath:instancePath+"/data/username",schemaPath:"#/properties/data/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data3.displayName !== undefined){const _errs13 = errors;if(typeof data3.displayName !== "string"){validate53.errors = [{instancePath:instancePath+"/data/displayName",schemaPath:"#/properties/data/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data3.avatarUrl !== undefined){let data7 = data3.avatarUrl;const _errs15 = errors;const _errs16 = errors;let valid2 = false;const _errs17 = errors;if(typeof data7 !== "string"){const err0 = {instancePath:instancePath+"/data/avatarUrl",schemaPath:"#/properties/data/properties/avatarUrl/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs17 === errors;valid2 = valid2 || _valid0;if(!valid2){const _errs19 = errors;if(data7 !== null){const err1 = {instancePath:instancePath+"/data/avatarUrl",schemaPath:"#/properties/data/properties/avatarUrl/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs19 === errors;valid2 = valid2 || _valid0;}if(!valid2){const err2 = {instancePath:instancePath+"/data/avatarUrl",schemaPath:"#/properties/data/properties/avatarUrl/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate53.errors = vErrors;return false;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data3.clanId !== undefined){let data8 = data3.clanId;const _errs21 = errors;const _errs22 = errors;let valid3 = false;const _errs23 = errors;if(typeof data8 !== "string"){const err3 = {instancePath:instancePath+"/data/clanId",schemaPath:"#/properties/data/properties/clanId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs23 === errors;valid3 = valid3 || _valid1;if(!valid3){const _errs25 = errors;if(data8 !== null){const err4 = {instancePath:instancePath+"/data/clanId",schemaPath:"#/properties/data/properties/clanId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs25 === errors;valid3 = valid3 || _valid1;}if(!valid3){const err5 = {instancePath:instancePath+"/data/clanId",schemaPath:"#/properties/data/properties/clanId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate53.errors = vErrors;return false;}else {errors = _errs22;if(vErrors !== null){if(_errs22){vErrors.length = _errs22;}else {vErrors = null;}}}var valid1 = _errs21 === errors;}else {var valid1 = true;}if(valid1){if(data3.partyId !== undefined){let data9 = data3.partyId;const _errs27 = errors;const _errs28 = errors;let valid4 = false;const _errs29 = errors;if(typeof data9 !== "string"){const err6 = {instancePath:instancePath+"/data/partyId",schemaPath:"#/properties/data/properties/partyId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs29 === errors;valid4 = valid4 || _valid2;if(!valid4){const _errs31 = errors;if(data9 !== null){const err7 = {instancePath:instancePath+"/data/partyId",schemaPath:"#/properties/data/properties/partyId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs31 === errors;valid4 = valid4 || _valid2;}if(!valid4){const err8 = {instancePath:instancePath+"/data/partyId",schemaPath:"#/properties/data/properties/partyId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate53.errors = vErrors;return false;}else {errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}}var valid1 = _errs27 === errors;}else {var valid1 = true;}if(valid1){if(data3.scopes !== undefined){let data10 = data3.scopes;const _errs33 = errors;if(errors === _errs33){if(Array.isArray(data10)){var valid5 = true;const len0 = data10.length;for(let i0=0; i0<len0; i0++){const _errs35 = errors;if(typeof data10[i0] !== "string"){validate53.errors = [{instancePath:instancePath+"/data/scopes/" + i0,schemaPath:"#/properties/data/properties/scopes/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs35 === errors;if(!valid5){break;}}}else {validate53.errors = [{instancePath:instancePath+"/data/scopes",schemaPath:"#/properties/data/properties/scopes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs33 === errors;}else {var valid1 = true;}if(valid1){if(data3.countryCode !== undefined){const _errs37 = errors;if(typeof data3.countryCode !== "string"){validate53.errors = [{instancePath:instancePath+"/data/countryCode",schemaPath:"#/properties/data/properties/countryCode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs37 === errors;}else {var valid1 = true;}if(valid1){if(data3.status !== undefined){let data13 = data3.status;const _errs39 = errors;const _errs40 = errors;let valid6 = false;const _errs41 = errors;if(typeof data13 !== "string"){const err9 = {instancePath:instancePath+"/data/status",schemaPath:"#/properties/data/properties/status/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("offline" !== data13){const err10 = {instancePath:instancePath+"/data/status",schemaPath:"#/properties/data/properties/status/anyOf/0/const",keyword:"const",params:{allowedValue: "offline"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs41 === errors;valid6 = valid6 || _valid3;if(!valid6){const _errs43 = errors;if(typeof data13 !== "string"){const err11 = {instancePath:instancePath+"/data/status",schemaPath:"#/properties/data/properties/status/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("menu" !== data13){const err12 = {instancePath:instancePath+"/data/status",schemaPath:"#/properties/data/properties/status/anyOf/1/const",keyword:"const",params:{allowedValue: "menu"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid3 = _errs43 === errors;valid6 = valid6 || _valid3;if(!valid6){const _errs45 = errors;if(typeof data13 !== "string"){const err13 = {instancePath:instancePath+"/data/status",schemaPath:"#/properties/data/properties/status/anyOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("playing" !== data13){const err14 = {instancePath:instancePath+"/data/status",schemaPath:"#/properties/data/properties/status/anyOf/2/const",keyword:"const",params:{allowedValue: "playing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid3 = _errs45 === errors;valid6 = valid6 || _valid3;if(!valid6){const _errs47 = errors;if(typeof data13 !== "string"){const err15 = {instancePath:instancePath+"/data/status",schemaPath:"#/properties/data/properties/status/anyOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("lobby" !== data13){const err16 = {instancePath:instancePath+"/data/status",schemaPath:"#/properties/data/properties/status/anyOf/3/const",keyword:"const",params:{allowedValue: "lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid3 = _errs47 === errors;valid6 = valid6 || _valid3;}}}if(!valid6){const err17 = {instancePath:instancePath+"/data/status",schemaPath:"#/properties/data/properties/status/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;validate53.errors = vErrors;return false;}else {errors = _errs40;if(vErrors !== null){if(_errs40){vErrors.length = _errs40;}else {vErrors = null;}}}var valid1 = _errs39 === errors;}else {var valid1 = true;}if(valid1){if(data3.battleStatus !== undefined){let data14 = data3.battleStatus;const _errs49 = errors;const _errs50 = errors;let valid7 = false;const _errs51 = errors;const _errs52 = errors;if(errors === _errs52){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){let missing2;if((data14.battleId === undefined) && (missing2 = "battleId")){const err18 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {if(data14.battleId !== undefined){if(typeof data14.battleId !== "string"){const err19 = {instancePath:instancePath+"/data/battleStatus/battleId",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}}else {const err20 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}var valid8 = _errs52 === errors;if(valid8){const _errs56 = errors;const _errs57 = errors;let valid10 = false;const _errs58 = errors;if(!(data14 && typeof data14 == "object" && !Array.isArray(data14))){const err21 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}const _errs60 = errors;if(errors === _errs60){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){let missing3;if((((((data14.playerId === undefined) && (missing3 = "playerId")) || ((data14.teamId === undefined) && (missing3 = "teamId"))) || ((data14.color === undefined) && (missing3 = "color"))) || ((data14.bonus === undefined) && (missing3 = "bonus"))) || ((data14.inGame === undefined) && (missing3 = "inGame"))){const err22 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(data14.playerId !== undefined){let data16 = data14.playerId;const _errs62 = errors;if(!(((typeof data16 == "number") && (!(data16 % 1) && !isNaN(data16))) && (isFinite(data16)))){const err23 = {instancePath:instancePath+"/data/battleStatus/playerId",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid12 = _errs62 === errors;}else {var valid12 = true;}if(valid12){if(data14.teamId !== undefined){let data17 = data14.teamId;const _errs64 = errors;if(!(((typeof data17 == "number") && (!(data17 % 1) && !isNaN(data17))) && (isFinite(data17)))){const err24 = {instancePath:instancePath+"/data/battleStatus/teamId",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid12 = _errs64 === errors;}else {var valid12 = true;}if(valid12){if(data14.color !== undefined){const _errs66 = errors;if(typeof data14.color !== "string"){const err25 = {instancePath:instancePath+"/data/battleStatus/color",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid12 = _errs66 === errors;}else {var valid12 = true;}if(valid12){if(data14.bonus !== undefined){let data19 = data14.bonus;const _errs68 = errors;if(!((typeof data19 == "number") && (isFinite(data19)))){const err26 = {instancePath:instancePath+"/data/battleStatus/bonus",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid12 = _errs68 === errors;}else {var valid12 = true;}if(valid12){if(data14.inGame !== undefined){const _errs70 = errors;if(typeof data14.inGame !== "boolean"){const err27 = {instancePath:instancePath+"/data/battleStatus/inGame",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid12 = _errs70 === errors;}else {var valid12 = true;}}}}}}}else {const err28 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var valid11 = _errs60 === errors;if(valid11){const _errs72 = errors;if(errors === _errs72){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){let missing4;if(((((data14.isSpectator === undefined) && (missing4 = "isSpectator")) || ((data14.isBot === undefined) && (missing4 = "isBot"))) || ((data14.ready === undefined) && (missing4 = "ready"))) || ((data14.sync === undefined) && (missing4 = "sync"))){const err29 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {if(data14.isSpectator !== undefined){let data21 = data14.isSpectator;const _errs74 = errors;if(typeof data21 !== "boolean"){const err30 = {instancePath:instancePath+"/data/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(false !== data21){const err31 = {instancePath:instancePath+"/data/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var valid13 = _errs74 === errors;}else {var valid13 = true;}if(valid13){if(data14.isBot !== undefined){let data22 = data14.isBot;const _errs76 = errors;if(typeof data22 !== "boolean"){const err32 = {instancePath:instancePath+"/data/battleStatus/isBot",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(false !== data22){const err33 = {instancePath:instancePath+"/data/battleStatus/isBot",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid13 = _errs76 === errors;}else {var valid13 = true;}if(valid13){if(data14.ready !== undefined){const _errs78 = errors;if(typeof data14.ready !== "boolean"){const err34 = {instancePath:instancePath+"/data/battleStatus/ready",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/ready/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid13 = _errs78 === errors;}else {var valid13 = true;}if(valid13){if(data14.sync !== undefined){let data24 = data14.sync;const _errs80 = errors;if(errors === _errs80){if(data24 && typeof data24 == "object" && !Array.isArray(data24)){let missing5;if((((data24.engine === undefined) && (missing5 = "engine")) || ((data24.game === undefined) && (missing5 = "game"))) || ((data24.map === undefined) && (missing5 = "map"))){const err35 = {instancePath:instancePath+"/data/battleStatus/sync",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {if(data24.engine !== undefined){let data25 = data24.engine;const _errs82 = errors;if(!((typeof data25 == "number") && (isFinite(data25)))){const err36 = {instancePath:instancePath+"/data/battleStatus/sync/engine",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/engine/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid14 = _errs82 === errors;}else {var valid14 = true;}if(valid14){if(data24.game !== undefined){let data26 = data24.game;const _errs84 = errors;if(!((typeof data26 == "number") && (isFinite(data26)))){const err37 = {instancePath:instancePath+"/data/battleStatus/sync/game",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/game/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid14 = _errs84 === errors;}else {var valid14 = true;}if(valid14){if(data24.map !== undefined){let data27 = data24.map;const _errs86 = errors;if(!((typeof data27 == "number") && (isFinite(data27)))){const err38 = {instancePath:instancePath+"/data/battleStatus/sync/map",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/map/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid14 = _errs86 === errors;}else {var valid14 = true;}}}}}else {const err39 = {instancePath:instancePath+"/data/battleStatus/sync",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}var valid13 = _errs80 === errors;}else {var valid13 = true;}}}}}}else {const err40 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}var valid11 = _errs72 === errors;}var _valid5 = _errs58 === errors;valid10 = valid10 || _valid5;if(!valid10){const _errs88 = errors;if(errors === _errs88){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){let missing6;if(((data14.isSpectator === undefined) && (missing6 = "isSpectator")) || ((data14.isBot === undefined) && (missing6 = "isBot"))){const err41 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}else {if(data14.isSpectator !== undefined){let data28 = data14.isSpectator;const _errs90 = errors;if(typeof data28 !== "boolean"){const err42 = {instancePath:instancePath+"/data/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(true !== data28){const err43 = {instancePath:instancePath+"/data/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid15 = _errs90 === errors;}else {var valid15 = true;}if(valid15){if(data14.isBot !== undefined){let data29 = data14.isBot;const _errs92 = errors;if(typeof data29 !== "boolean"){const err44 = {instancePath:instancePath+"/data/battleStatus/isBot",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(false !== data29){const err45 = {instancePath:instancePath+"/data/battleStatus/isBot",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid15 = _errs92 === errors;}else {var valid15 = true;}}}}else {const err46 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}var _valid5 = _errs88 === errors;valid10 = valid10 || _valid5;}if(!valid10){const err47 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {errors = _errs57;if(vErrors !== null){if(_errs57){vErrors.length = _errs57;}else {vErrors = null;}}}var valid8 = _errs56 === errors;}var _valid4 = _errs51 === errors;valid7 = valid7 || _valid4;if(!valid7){const _errs94 = errors;if(data14 !== null){const err48 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/properties/data/properties/battleStatus/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var _valid4 = _errs94 === errors;valid7 = valid7 || _valid4;}if(!valid7){const err49 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/properties/data/properties/battleStatus/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;validate53.errors = vErrors;return false;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}var valid1 = _errs49 === errors;}else {var valid1 = true;}if(valid1){if(data3.friendIds !== undefined){let data30 = data3.friendIds;const _errs96 = errors;if(errors === _errs96){if(Array.isArray(data30)){var valid16 = true;const len1 = data30.length;for(let i1=0; i1<len1; i1++){const _errs98 = errors;if(typeof data30[i1] !== "string"){validate53.errors = [{instancePath:instancePath+"/data/friendIds/" + i1,schemaPath:"#/properties/data/properties/friendIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid16 = _errs98 === errors;if(!valid16){break;}}}else {validate53.errors = [{instancePath:instancePath+"/data/friendIds",schemaPath:"#/properties/data/properties/friendIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs96 === errors;}else {var valid1 = true;}if(valid1){if(data3.outgoingFriendRequestIds !== undefined){let data32 = data3.outgoingFriendRequestIds;const _errs100 = errors;if(errors === _errs100){if(Array.isArray(data32)){var valid17 = true;const len2 = data32.length;for(let i2=0; i2<len2; i2++){const _errs102 = errors;if(typeof data32[i2] !== "string"){validate53.errors = [{instancePath:instancePath+"/data/outgoingFriendRequestIds/" + i2,schemaPath:"#/properties/data/properties/outgoingFriendRequestIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid17 = _errs102 === errors;if(!valid17){break;}}}else {validate53.errors = [{instancePath:instancePath+"/data/outgoingFriendRequestIds",schemaPath:"#/properties/data/properties/outgoingFriendRequestIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs100 === errors;}else {var valid1 = true;}if(valid1){if(data3.incomingFriendRequestIds !== undefined){let data34 = data3.incomingFriendRequestIds;const _errs104 = errors;if(errors === _errs104){if(Array.isArray(data34)){var valid18 = true;const len3 = data34.length;for(let i3=0; i3<len3; i3++){const _errs106 = errors;if(typeof data34[i3] !== "string"){validate53.errors = [{instancePath:instancePath+"/data/incomingFriendRequestIds/" + i3,schemaPath:"#/properties/data/properties/incomingFriendRequestIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid18 = _errs106 === errors;if(!valid18){break;}}}else {validate53.errors = [{instancePath:instancePath+"/data/incomingFriendRequestIds",schemaPath:"#/properties/data/properties/incomingFriendRequestIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs104 === errors;}else {var valid1 = true;}if(valid1){if(data3.ignoreIds !== undefined){let data36 = data3.ignoreIds;const _errs108 = errors;if(errors === _errs108){if(Array.isArray(data36)){var valid19 = true;const len4 = data36.length;for(let i4=0; i4<len4; i4++){const _errs110 = errors;if(typeof data36[i4] !== "string"){validate53.errors = [{instancePath:instancePath+"/data/ignoreIds/" + i4,schemaPath:"#/properties/data/properties/ignoreIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid19 = _errs110 === errors;if(!valid19){break;}}}else {validate53.errors = [{instancePath:instancePath+"/data/ignoreIds",schemaPath:"#/properties/data/properties/ignoreIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs108 === errors;}else {var valid1 = true;}}}}}}}}}}}}}}}}else {validate53.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate53.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate53.errors = vErrors;return errors === 0;}exports.system_disconnect_request = validate54;const schema55 = {"$id":"system/disconnect/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"system/disconnect","type":"string"},"data":{"type":"object","properties":{"reason":{"type":"string"}},"required":["reason"]}},"required":["type","messageId","commandId"]};function validate54(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="system/disconnect/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate54.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate54.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate54.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate54.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate54.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("system/disconnect" !== data2){validate54.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "system/disconnect"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.reason === undefined) && (missing1 = "reason")){validate54.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.reason !== undefined){if(typeof data3.reason !== "string"){validate54.errors = [{instancePath:instancePath+"/data/reason",schemaPath:"#/properties/data/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate54.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate54.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate54.errors = vErrors;return errors === 0;}exports.system_disconnect_response = validate55;const schema56 = {"$id":"system/disconnect/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"system/disconnect","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"system/disconnect","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"system/disconnect","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"system/disconnect","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"system/disconnect","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate55(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="system/disconnect/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("system/disconnect" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "system/disconnect"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("system/disconnect" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "system/disconnect"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("internal_error" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("system/disconnect" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "system/disconnect"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("unauthorized" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("system/disconnect" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "system/disconnect"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("invalid_request" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("system/disconnect" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "system/disconnect"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("command_unimplemented" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err53 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;validate55.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate55.errors = vErrors;return errors === 0;}exports.system_serverStats_request = validate56;const schema57 = {"$id":"system/serverStats/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"system/serverStats","type":"string"}},"required":["type","messageId","commandId"]};function validate56(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="system/serverStats/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate56.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate56.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate56.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate56.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate56.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("system/serverStats" !== data2){validate56.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "system/serverStats"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate56.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate56.errors = vErrors;return errors === 0;}exports.system_serverStats_response = validate57;const schema58 = {"$id":"system/serverStats/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"system/serverStats","type":"string"},"status":{"const":"success","type":"string"},"data":{"type":"object","properties":{"userCount":{"type":"integer"}},"required":["userCount"]}},"required":["type","messageId","commandId","status","data"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"system/serverStats","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"system/serverStats","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"system/serverStats","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"system/serverStats","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate57(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="system/serverStats/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("system/serverStats" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "system/serverStats"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data4 = data.data;const _errs11 = errors;if(errors === _errs11){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing1;if((data4.userCount === undefined) && (missing1 = "userCount")){const err8 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data4.userCount !== undefined){let data5 = data4.userCount;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err9 = {instancePath:instancePath+"/data/userCount",schemaPath:"#/anyOf/0/properties/data/properties/userCount/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}else {const err10 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid1 = _errs11 === errors;}else {var valid1 = true;}}}}}}}else {const err11 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs15 = errors;if(errors === _errs15){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err12 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {if(data.type !== undefined){let data6 = data.type;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("response" !== data6){const err14 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid3 = _errs17 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs19 = errors;if(typeof data.messageId !== "string"){const err15 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid3 = _errs19 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs21 = errors;if(typeof data8 !== "string"){const err16 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("system/serverStats" !== data8){const err17 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "system/serverStats"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs23 = errors;if(typeof data9 !== "string"){const err18 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("failed" !== data9){const err19 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs25 = errors;if(typeof data10 !== "string"){const err20 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("internal_error" !== data10){const err21 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}}}}}}}else {const err22 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}var _valid0 = _errs15 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs27 = errors;if(errors === _errs27){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err23 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {if(data.type !== undefined){let data11 = data.type;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("response" !== data11){const err25 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid4 = _errs29 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data13 = data.commandId;const _errs33 = errors;if(typeof data13 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("system/serverStats" !== data13){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "system/serverStats"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data14 = data.status;const _errs35 = errors;if(typeof data14 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data14){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data15 = data.reason;const _errs37 = errors;if(typeof data15 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("unauthorized" !== data15){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs27 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs39 = errors;if(errors === _errs39){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err34 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {if(data.type !== undefined){let data16 = data.type;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("response" !== data16){const err36 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs43 = errors;if(typeof data.messageId !== "string"){const err37 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid5 = _errs43 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data18 = data.commandId;const _errs45 = errors;if(typeof data18 !== "string"){const err38 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if("system/serverStats" !== data18){const err39 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "system/serverStats"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid5 = _errs45 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data19 = data.status;const _errs47 = errors;if(typeof data19 !== "string"){const err40 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("failed" !== data19){const err41 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid5 = _errs47 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data20 = data.reason;const _errs49 = errors;if(typeof data20 !== "string"){const err42 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if("invalid_request" !== data20){const err43 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}}}}}}}else {const err44 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}var _valid0 = _errs39 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs51 = errors;if(errors === _errs51){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((((((data.type === undefined) && (missing5 = "type")) || ((data.messageId === undefined) && (missing5 = "messageId"))) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err45 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}else {if(data.type !== undefined){let data21 = data.type;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("response" !== data21){const err47 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid6 = _errs53 === errors;}else {var valid6 = true;}if(valid6){if(data.messageId !== undefined){const _errs55 = errors;if(typeof data.messageId !== "string"){const err48 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var valid6 = _errs55 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data23 = data.commandId;const _errs57 = errors;if(typeof data23 !== "string"){const err49 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if("system/serverStats" !== data23){const err50 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "system/serverStats"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid6 = _errs57 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data24 = data.status;const _errs59 = errors;if(typeof data24 !== "string"){const err51 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if("failed" !== data24){const err52 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var valid6 = _errs59 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data25 = data.reason;const _errs61 = errors;if(typeof data25 !== "string"){const err53 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if("command_unimplemented" !== data25){const err54 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}var valid6 = _errs61 === errors;}else {var valid6 = true;}}}}}}}else {const err55 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var _valid0 = _errs51 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err56 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;validate57.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate57.errors = vErrors;return errors === 0;}exports.user_subscribe_request = validate58;const schema59 = {"$id":"user/subscribe/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"user/subscribe","type":"string"},"data":{"type":"object","properties":{"userIds":{"type":"array","items":{"type":"string"}}},"required":["userIds"]}},"required":["type","messageId","commandId","data"]};function validate58(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="user/subscribe/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate58.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate58.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate58.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate58.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate58.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("user/subscribe" !== data2){validate58.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "user/subscribe"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.userIds === undefined) && (missing1 = "userIds")){validate58.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.userIds !== undefined){let data4 = data3.userIds;const _errs9 = errors;if(errors === _errs9){if(Array.isArray(data4)){var valid2 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs11 = errors;if(typeof data4[i0] !== "string"){validate58.errors = [{instancePath:instancePath+"/data/userIds/" + i0,schemaPath:"#/properties/data/properties/userIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs11 === errors;if(!valid2){break;}}}else {validate58.errors = [{instancePath:instancePath+"/data/userIds",schemaPath:"#/properties/data/properties/userIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate58.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate58.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate58.errors = vErrors;return errors === 0;}exports.user_subscribe_response = validate59;const schema60 = {"$id":"user/subscribe/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"user/subscribe","type":"string"},"status":{"const":"success","type":"string"},"data":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"username":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"clanId":{"anyOf":[{"type":"string"},{"type":"null"}]},"partyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string"}},"countryCode":{"type":"string"},"status":{"anyOf":[{"const":"offline","type":"string"},{"const":"menu","type":"string"},{"const":"playing","type":"string"},{"const":"lobby","type":"string"}]},"battleStatus":{"anyOf":[{"allOf":[{"type":"object","properties":{"battleId":{"type":"string"}},"required":["battleId"]},{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"}},"required":["playerId","teamId","color","bonus","inGame"]},{"type":"object","properties":{"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":false,"type":"boolean"},"ready":{"type":"boolean"},"sync":{"type":"object","properties":{"engine":{"type":"number"},"game":{"type":"number"},"map":{"type":"number"}},"required":["engine","game","map"]}},"required":["isSpectator","isBot","ready","sync"]}]},{"type":"object","properties":{"isSpectator":{"const":true,"type":"boolean"},"isBot":{"const":false,"type":"boolean"}},"required":["isSpectator","isBot"]}]}]},{"type":"null"}]}},"required":["userId","username","displayName","avatarUrl","clanId","partyId","scopes","status","battleStatus"]}}},"required":["users"]}},"required":["type","messageId","commandId","status","data"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"user/subscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"user/subscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"user/subscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"user/subscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate59(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="user/subscribe/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("user/subscribe" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "user/subscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data4 = data.data;const _errs11 = errors;if(errors === _errs11){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing1;if((data4.users === undefined) && (missing1 = "users")){const err8 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data4.users !== undefined){let data5 = data4.users;const _errs13 = errors;if(errors === _errs13){if(Array.isArray(data5)){var valid3 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];const _errs15 = errors;if(errors === _errs15){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing2;if((((((((((data6.userId === undefined) && (missing2 = "userId")) || ((data6.username === undefined) && (missing2 = "username"))) || ((data6.displayName === undefined) && (missing2 = "displayName"))) || ((data6.avatarUrl === undefined) && (missing2 = "avatarUrl"))) || ((data6.clanId === undefined) && (missing2 = "clanId"))) || ((data6.partyId === undefined) && (missing2 = "partyId"))) || ((data6.scopes === undefined) && (missing2 = "scopes"))) || ((data6.status === undefined) && (missing2 = "status"))) || ((data6.battleStatus === undefined) && (missing2 = "battleStatus"))){const err9 = {instancePath:instancePath+"/data/users/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/users/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data6.userId !== undefined){const _errs17 = errors;if(typeof data6.userId !== "string"){const err10 = {instancePath:instancePath+"/data/users/" + i0+"/userId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid4 = _errs17 === errors;}else {var valid4 = true;}if(valid4){if(data6.username !== undefined){const _errs19 = errors;if(typeof data6.username !== "string"){const err11 = {instancePath:instancePath+"/data/users/" + i0+"/username",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid4 = _errs19 === errors;}else {var valid4 = true;}if(valid4){if(data6.displayName !== undefined){const _errs21 = errors;if(typeof data6.displayName !== "string"){const err12 = {instancePath:instancePath+"/data/users/" + i0+"/displayName",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid4 = _errs21 === errors;}else {var valid4 = true;}if(valid4){if(data6.avatarUrl !== undefined){let data10 = data6.avatarUrl;const _errs23 = errors;const _errs24 = errors;let valid5 = false;const _errs25 = errors;if(typeof data10 !== "string"){const err13 = {instancePath:instancePath+"/data/users/" + i0+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid1 = _errs25 === errors;valid5 = valid5 || _valid1;if(!valid5){const _errs27 = errors;if(data10 !== null){const err14 = {instancePath:instancePath+"/data/users/" + i0+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid1 = _errs27 === errors;valid5 = valid5 || _valid1;}if(!valid5){const err15 = {instancePath:instancePath+"/data/users/" + i0+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {errors = _errs24;if(vErrors !== null){if(_errs24){vErrors.length = _errs24;}else {vErrors = null;}}}var valid4 = _errs23 === errors;}else {var valid4 = true;}if(valid4){if(data6.clanId !== undefined){let data11 = data6.clanId;const _errs29 = errors;const _errs30 = errors;let valid6 = false;const _errs31 = errors;if(typeof data11 !== "string"){const err16 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/clanId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid2 = _errs31 === errors;valid6 = valid6 || _valid2;if(!valid6){const _errs33 = errors;if(data11 !== null){const err17 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/clanId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid2 = _errs33 === errors;valid6 = valid6 || _valid2;}if(!valid6){const err18 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/clanId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {errors = _errs30;if(vErrors !== null){if(_errs30){vErrors.length = _errs30;}else {vErrors = null;}}}var valid4 = _errs29 === errors;}else {var valid4 = true;}if(valid4){if(data6.partyId !== undefined){let data12 = data6.partyId;const _errs35 = errors;const _errs36 = errors;let valid7 = false;const _errs37 = errors;if(typeof data12 !== "string"){const err19 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/partyId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid3 = _errs37 === errors;valid7 = valid7 || _valid3;if(!valid7){const _errs39 = errors;if(data12 !== null){const err20 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/partyId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid3 = _errs39 === errors;valid7 = valid7 || _valid3;}if(!valid7){const err21 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/partyId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {errors = _errs36;if(vErrors !== null){if(_errs36){vErrors.length = _errs36;}else {vErrors = null;}}}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data6.scopes !== undefined){let data13 = data6.scopes;const _errs41 = errors;if(errors === _errs41){if(Array.isArray(data13)){var valid8 = true;const len1 = data13.length;for(let i1=0; i1<len1; i1++){const _errs43 = errors;if(typeof data13[i1] !== "string"){const err22 = {instancePath:instancePath+"/data/users/" + i0+"/scopes/" + i1,schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/scopes/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid8 = _errs43 === errors;if(!valid8){break;}}}else {const err23 = {instancePath:instancePath+"/data/users/" + i0+"/scopes",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/scopes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data6.countryCode !== undefined){const _errs45 = errors;if(typeof data6.countryCode !== "string"){const err24 = {instancePath:instancePath+"/data/users/" + i0+"/countryCode",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/countryCode/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}if(valid4){if(data6.status !== undefined){let data16 = data6.status;const _errs47 = errors;const _errs48 = errors;let valid9 = false;const _errs49 = errors;if(typeof data16 !== "string"){const err25 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("offline" !== data16){const err26 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/0/const",keyword:"const",params:{allowedValue: "offline"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var _valid4 = _errs49 === errors;valid9 = valid9 || _valid4;if(!valid9){const _errs51 = errors;if(typeof data16 !== "string"){const err27 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("menu" !== data16){const err28 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/1/const",keyword:"const",params:{allowedValue: "menu"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid4 = _errs51 === errors;valid9 = valid9 || _valid4;if(!valid9){const _errs53 = errors;if(typeof data16 !== "string"){const err29 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("playing" !== data16){const err30 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/2/const",keyword:"const",params:{allowedValue: "playing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid4 = _errs53 === errors;valid9 = valid9 || _valid4;if(!valid9){const _errs55 = errors;if(typeof data16 !== "string"){const err31 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("lobby" !== data16){const err32 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/3/const",keyword:"const",params:{allowedValue: "lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var _valid4 = _errs55 === errors;valid9 = valid9 || _valid4;}}}if(!valid9){const err33 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {errors = _errs48;if(vErrors !== null){if(_errs48){vErrors.length = _errs48;}else {vErrors = null;}}}var valid4 = _errs47 === errors;}else {var valid4 = true;}if(valid4){if(data6.battleStatus !== undefined){let data17 = data6.battleStatus;const _errs57 = errors;const _errs58 = errors;let valid10 = false;const _errs59 = errors;const _errs60 = errors;if(errors === _errs60){if(data17 && typeof data17 == "object" && !Array.isArray(data17)){let missing3;if((data17.battleId === undefined) && (missing3 = "battleId")){const err34 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {if(data17.battleId !== undefined){if(typeof data17.battleId !== "string"){const err35 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/battleId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}}}else {const err36 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var valid11 = _errs60 === errors;if(valid11){const _errs64 = errors;const _errs65 = errors;let valid13 = false;const _errs66 = errors;if(!(data17 && typeof data17 == "object" && !Array.isArray(data17))){const err37 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}const _errs68 = errors;if(errors === _errs68){if(data17 && typeof data17 == "object" && !Array.isArray(data17)){let missing4;if((((((data17.playerId === undefined) && (missing4 = "playerId")) || ((data17.teamId === undefined) && (missing4 = "teamId"))) || ((data17.color === undefined) && (missing4 = "color"))) || ((data17.bonus === undefined) && (missing4 = "bonus"))) || ((data17.inGame === undefined) && (missing4 = "inGame"))){const err38 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {if(data17.playerId !== undefined){let data19 = data17.playerId;const _errs70 = errors;if(!(((typeof data19 == "number") && (!(data19 % 1) && !isNaN(data19))) && (isFinite(data19)))){const err39 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/playerId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid15 = _errs70 === errors;}else {var valid15 = true;}if(valid15){if(data17.teamId !== undefined){let data20 = data17.teamId;const _errs72 = errors;if(!(((typeof data20 == "number") && (!(data20 % 1) && !isNaN(data20))) && (isFinite(data20)))){const err40 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/teamId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid15 = _errs72 === errors;}else {var valid15 = true;}if(valid15){if(data17.color !== undefined){const _errs74 = errors;if(typeof data17.color !== "string"){const err41 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/color",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid15 = _errs74 === errors;}else {var valid15 = true;}if(valid15){if(data17.bonus !== undefined){let data22 = data17.bonus;const _errs76 = errors;if(!((typeof data22 == "number") && (isFinite(data22)))){const err42 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/bonus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var valid15 = _errs76 === errors;}else {var valid15 = true;}if(valid15){if(data17.inGame !== undefined){const _errs78 = errors;if(typeof data17.inGame !== "boolean"){const err43 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/inGame",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid15 = _errs78 === errors;}else {var valid15 = true;}}}}}}}else {const err44 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}var valid14 = _errs68 === errors;if(valid14){const _errs80 = errors;if(errors === _errs80){if(data17 && typeof data17 == "object" && !Array.isArray(data17)){let missing5;if(((((data17.isSpectator === undefined) && (missing5 = "isSpectator")) || ((data17.isBot === undefined) && (missing5 = "isBot"))) || ((data17.ready === undefined) && (missing5 = "ready"))) || ((data17.sync === undefined) && (missing5 = "sync"))){const err45 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}else {if(data17.isSpectator !== undefined){let data24 = data17.isSpectator;const _errs82 = errors;if(typeof data24 !== "boolean"){const err46 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(false !== data24){const err47 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid16 = _errs82 === errors;}else {var valid16 = true;}if(valid16){if(data17.isBot !== undefined){let data25 = data17.isBot;const _errs84 = errors;if(typeof data25 !== "boolean"){const err48 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(false !== data25){const err49 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid16 = _errs84 === errors;}else {var valid16 = true;}if(valid16){if(data17.ready !== undefined){const _errs86 = errors;if(typeof data17.ready !== "boolean"){const err50 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/ready",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/ready/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid16 = _errs86 === errors;}else {var valid16 = true;}if(valid16){if(data17.sync !== undefined){let data27 = data17.sync;const _errs88 = errors;if(errors === _errs88){if(data27 && typeof data27 == "object" && !Array.isArray(data27)){let missing6;if((((data27.engine === undefined) && (missing6 = "engine")) || ((data27.game === undefined) && (missing6 = "game"))) || ((data27.map === undefined) && (missing6 = "map"))){const err51 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {if(data27.engine !== undefined){let data28 = data27.engine;const _errs90 = errors;if(!((typeof data28 == "number") && (isFinite(data28)))){const err52 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync/engine",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/engine/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var valid17 = _errs90 === errors;}else {var valid17 = true;}if(valid17){if(data27.game !== undefined){let data29 = data27.game;const _errs92 = errors;if(!((typeof data29 == "number") && (isFinite(data29)))){const err53 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync/game",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/game/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid17 = _errs92 === errors;}else {var valid17 = true;}if(valid17){if(data27.map !== undefined){let data30 = data27.map;const _errs94 = errors;if(!((typeof data30 == "number") && (isFinite(data30)))){const err54 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync/map",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/map/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}var valid17 = _errs94 === errors;}else {var valid17 = true;}}}}}else {const err55 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var valid16 = _errs88 === errors;}else {var valid16 = true;}}}}}}else {const err56 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}var valid14 = _errs80 === errors;}var _valid6 = _errs66 === errors;valid13 = valid13 || _valid6;if(!valid13){const _errs96 = errors;if(errors === _errs96){if(data17 && typeof data17 == "object" && !Array.isArray(data17)){let missing7;if(((data17.isSpectator === undefined) && (missing7 = "isSpectator")) || ((data17.isBot === undefined) && (missing7 = "isBot"))){const err57 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {if(data17.isSpectator !== undefined){let data31 = data17.isSpectator;const _errs98 = errors;if(typeof data31 !== "boolean"){const err58 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(true !== data31){const err59 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid18 = _errs98 === errors;}else {var valid18 = true;}if(valid18){if(data17.isBot !== undefined){let data32 = data17.isBot;const _errs100 = errors;if(typeof data32 !== "boolean"){const err60 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(false !== data32){const err61 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}var valid18 = _errs100 === errors;}else {var valid18 = true;}}}}else {const err62 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}var _valid6 = _errs96 === errors;valid13 = valid13 || _valid6;}if(!valid13){const err63 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {errors = _errs65;if(vErrors !== null){if(_errs65){vErrors.length = _errs65;}else {vErrors = null;}}}var valid11 = _errs64 === errors;}var _valid5 = _errs59 === errors;valid10 = valid10 || _valid5;if(!valid10){const _errs102 = errors;if(data17 !== null){const err64 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var _valid5 = _errs102 === errors;valid10 = valid10 || _valid5;}if(!valid10){const err65 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}else {errors = _errs58;if(vErrors !== null){if(_errs58){vErrors.length = _errs58;}else {vErrors = null;}}}var valid4 = _errs57 === errors;}else {var valid4 = true;}}}}}}}}}}}}else {const err66 = {instancePath:instancePath+"/data/users/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/users/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}var valid3 = _errs15 === errors;if(!valid3){break;}}}else {const err67 = {instancePath:instancePath+"/data/users",schemaPath:"#/anyOf/0/properties/data/properties/users/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}}}else {const err68 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}var valid1 = _errs11 === errors;}else {var valid1 = true;}}}}}}}else {const err69 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs104 = errors;if(errors === _errs104){if(data && typeof data == "object" && !Array.isArray(data)){let missing8;if((((((data.type === undefined) && (missing8 = "type")) || ((data.messageId === undefined) && (missing8 = "messageId"))) || ((data.commandId === undefined) && (missing8 = "commandId"))) || ((data.status === undefined) && (missing8 = "status"))) || ((data.reason === undefined) && (missing8 = "reason"))){const err70 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {if(data.type !== undefined){let data33 = data.type;const _errs106 = errors;if(typeof data33 !== "string"){const err71 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if("response" !== data33){const err72 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}var valid19 = _errs106 === errors;}else {var valid19 = true;}if(valid19){if(data.messageId !== undefined){const _errs108 = errors;if(typeof data.messageId !== "string"){const err73 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var valid19 = _errs108 === errors;}else {var valid19 = true;}if(valid19){if(data.commandId !== undefined){let data35 = data.commandId;const _errs110 = errors;if(typeof data35 !== "string"){const err74 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if("user/subscribe" !== data35){const err75 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "user/subscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}var valid19 = _errs110 === errors;}else {var valid19 = true;}if(valid19){if(data.status !== undefined){let data36 = data.status;const _errs112 = errors;if(typeof data36 !== "string"){const err76 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if("failed" !== data36){const err77 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var valid19 = _errs112 === errors;}else {var valid19 = true;}if(valid19){if(data.reason !== undefined){let data37 = data.reason;const _errs114 = errors;if(typeof data37 !== "string"){const err78 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if("internal_error" !== data37){const err79 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}var valid19 = _errs114 === errors;}else {var valid19 = true;}}}}}}}else {const err80 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}var _valid0 = _errs104 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs116 = errors;if(errors === _errs116){if(data && typeof data == "object" && !Array.isArray(data)){let missing9;if((((((data.type === undefined) && (missing9 = "type")) || ((data.messageId === undefined) && (missing9 = "messageId"))) || ((data.commandId === undefined) && (missing9 = "commandId"))) || ((data.status === undefined) && (missing9 = "status"))) || ((data.reason === undefined) && (missing9 = "reason"))){const err81 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {if(data.type !== undefined){let data38 = data.type;const _errs118 = errors;if(typeof data38 !== "string"){const err82 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if("response" !== data38){const err83 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var valid20 = _errs118 === errors;}else {var valid20 = true;}if(valid20){if(data.messageId !== undefined){const _errs120 = errors;if(typeof data.messageId !== "string"){const err84 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}var valid20 = _errs120 === errors;}else {var valid20 = true;}if(valid20){if(data.commandId !== undefined){let data40 = data.commandId;const _errs122 = errors;if(typeof data40 !== "string"){const err85 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if("user/subscribe" !== data40){const err86 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "user/subscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var valid20 = _errs122 === errors;}else {var valid20 = true;}if(valid20){if(data.status !== undefined){let data41 = data.status;const _errs124 = errors;if(typeof data41 !== "string"){const err87 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("failed" !== data41){const err88 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}var valid20 = _errs124 === errors;}else {var valid20 = true;}if(valid20){if(data.reason !== undefined){let data42 = data.reason;const _errs126 = errors;if(typeof data42 !== "string"){const err89 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if("unauthorized" !== data42){const err90 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}var valid20 = _errs126 === errors;}else {var valid20 = true;}}}}}}}else {const err91 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}var _valid0 = _errs116 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs128 = errors;if(errors === _errs128){if(data && typeof data == "object" && !Array.isArray(data)){let missing10;if((((((data.type === undefined) && (missing10 = "type")) || ((data.messageId === undefined) && (missing10 = "messageId"))) || ((data.commandId === undefined) && (missing10 = "commandId"))) || ((data.status === undefined) && (missing10 = "status"))) || ((data.reason === undefined) && (missing10 = "reason"))){const err92 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {if(data.type !== undefined){let data43 = data.type;const _errs130 = errors;if(typeof data43 !== "string"){const err93 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if("response" !== data43){const err94 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}var valid21 = _errs130 === errors;}else {var valid21 = true;}if(valid21){if(data.messageId !== undefined){const _errs132 = errors;if(typeof data.messageId !== "string"){const err95 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}var valid21 = _errs132 === errors;}else {var valid21 = true;}if(valid21){if(data.commandId !== undefined){let data45 = data.commandId;const _errs134 = errors;if(typeof data45 !== "string"){const err96 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if("user/subscribe" !== data45){const err97 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "user/subscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}var valid21 = _errs134 === errors;}else {var valid21 = true;}if(valid21){if(data.status !== undefined){let data46 = data.status;const _errs136 = errors;if(typeof data46 !== "string"){const err98 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if("failed" !== data46){const err99 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}var valid21 = _errs136 === errors;}else {var valid21 = true;}if(valid21){if(data.reason !== undefined){let data47 = data.reason;const _errs138 = errors;if(typeof data47 !== "string"){const err100 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if("invalid_request" !== data47){const err101 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var valid21 = _errs138 === errors;}else {var valid21 = true;}}}}}}}else {const err102 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}var _valid0 = _errs128 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs140 = errors;if(errors === _errs140){if(data && typeof data == "object" && !Array.isArray(data)){let missing11;if((((((data.type === undefined) && (missing11 = "type")) || ((data.messageId === undefined) && (missing11 = "messageId"))) || ((data.commandId === undefined) && (missing11 = "commandId"))) || ((data.status === undefined) && (missing11 = "status"))) || ((data.reason === undefined) && (missing11 = "reason"))){const err103 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing11},message:"must have required property '"+missing11+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}else {if(data.type !== undefined){let data48 = data.type;const _errs142 = errors;if(typeof data48 !== "string"){const err104 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if("response" !== data48){const err105 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var valid22 = _errs142 === errors;}else {var valid22 = true;}if(valid22){if(data.messageId !== undefined){const _errs144 = errors;if(typeof data.messageId !== "string"){const err106 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}var valid22 = _errs144 === errors;}else {var valid22 = true;}if(valid22){if(data.commandId !== undefined){let data50 = data.commandId;const _errs146 = errors;if(typeof data50 !== "string"){const err107 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if("user/subscribe" !== data50){const err108 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "user/subscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}var valid22 = _errs146 === errors;}else {var valid22 = true;}if(valid22){if(data.status !== undefined){let data51 = data.status;const _errs148 = errors;if(typeof data51 !== "string"){const err109 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if("failed" !== data51){const err110 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}var valid22 = _errs148 === errors;}else {var valid22 = true;}if(valid22){if(data.reason !== undefined){let data52 = data.reason;const _errs150 = errors;if(typeof data52 !== "string"){const err111 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if("command_unimplemented" !== data52){const err112 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}var valid22 = _errs150 === errors;}else {var valid22 = true;}}}}}}}else {const err113 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}var _valid0 = _errs140 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err114 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;validate59.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate59.errors = vErrors;return errors === 0;}exports.user_unsubscribe_request = validate60;const schema61 = {"$id":"user/unsubscribe/request","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"request","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"user/unsubscribe","type":"string"},"data":{"type":"object","properties":{"userIds":{"type":"array","items":{"type":"string"}}},"required":["userIds"]}},"required":["type","messageId","commandId","data"]};function validate60(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="user/unsubscribe/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate60.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate60.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("request" !== data0){validate60.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate60.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate60.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("user/unsubscribe" !== data2){validate60.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "user/unsubscribe"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.userIds === undefined) && (missing1 = "userIds")){validate60.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.userIds !== undefined){let data4 = data3.userIds;const _errs9 = errors;if(errors === _errs9){if(Array.isArray(data4)){var valid2 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs11 = errors;if(typeof data4[i0] !== "string"){validate60.errors = [{instancePath:instancePath+"/data/userIds/" + i0,schemaPath:"#/properties/data/properties/userIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs11 === errors;if(!valid2){break;}}}else {validate60.errors = [{instancePath:instancePath+"/data/userIds",schemaPath:"#/properties/data/properties/userIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate60.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate60.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate60.errors = vErrors;return errors === 0;}exports.user_unsubscribe_response = validate61;const schema62 = {"$id":"user/unsubscribe/response","scopes":["tachyon.lobby"],"anyOf":[{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"user/unsubscribe","type":"string"},"status":{"const":"success","type":"string"}},"required":["type","messageId","commandId","status"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"user/unsubscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"cannot_unsub_own_user","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"user/unsubscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"user/unsubscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"user/unsubscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_request","type":"string"}},"required":["type","messageId","commandId","status","reason"]},{"type":"object","properties":{"type":{"const":"response","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"user/unsubscribe","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"command_unimplemented","type":"string"}},"required":["type","messageId","commandId","status","reason"]}]};function validate61(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="user/unsubscribe/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("response" !== data0){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs5 = errors;if(typeof data.messageId !== "string"){const err3 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data2 = data.commandId;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("user/unsubscribe" !== data2){const err5 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "user/unsubscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data3 = data.status;const _errs9 = errors;if(typeof data3 !== "string"){const err6 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("success" !== data3){const err7 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs11 = errors;if(errors === _errs11){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){let data4 = data.type;const _errs13 = errors;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("response" !== data4){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("user/unsubscribe" !== data6){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "user/unsubscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data7){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("cannot_unsub_own_user" !== data8){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "cannot_unsub_own_user"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs11 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.type !== undefined){let data9 = data.type;const _errs25 = errors;if(typeof data9 !== "string"){const err21 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("response" !== data9){const err22 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err23 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err24 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("user/unsubscribe" !== data11){const err25 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "user/unsubscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid3 = _errs29 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err26 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("failed" !== data12){const err27 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err28 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("internal_error" !== data13){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid3 = _errs33 === errors;}else {var valid3 = true;}}}}}}}else {const err30 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err31 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data.type !== undefined){let data14 = data.type;const _errs37 = errors;if(typeof data14 !== "string"){const err32 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("response" !== data14){const err33 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data.messageId !== undefined){const _errs39 = errors;if(typeof data.messageId !== "string"){const err34 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data16 = data.commandId;const _errs41 = errors;if(typeof data16 !== "string"){const err35 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("user/unsubscribe" !== data16){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "user/unsubscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid4 = _errs41 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data17 = data.status;const _errs43 = errors;if(typeof data17 !== "string"){const err37 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("failed" !== data17){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data18 = data.reason;const _errs45 = errors;if(typeof data18 !== "string"){const err39 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("unauthorized" !== data18){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid4 = _errs45 === errors;}else {var valid4 = true;}}}}}}}else {const err41 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs47 = errors;if(errors === _errs47){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((((data.type === undefined) && (missing4 = "type")) || ((data.messageId === undefined) && (missing4 = "messageId"))) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err42 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data.type !== undefined){let data19 = data.type;const _errs49 = errors;if(typeof data19 !== "string"){const err43 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("response" !== data19){const err44 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid5 = _errs49 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err45 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid5 = _errs51 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data21 = data.commandId;const _errs53 = errors;if(typeof data21 !== "string"){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("user/unsubscribe" !== data21){const err47 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "user/unsubscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data22 = data.status;const _errs55 = errors;if(typeof data22 !== "string"){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("failed" !== data22){const err49 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid5 = _errs55 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data23 = data.reason;const _errs57 = errors;if(typeof data23 !== "string"){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("invalid_request" !== data23){const err51 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_request"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid5 = _errs57 === errors;}else {var valid5 = true;}}}}}}}else {const err52 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var _valid0 = _errs47 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs59 = errors;if(errors === _errs59){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if((((((data.type === undefined) && (missing5 = "type")) || ((data.messageId === undefined) && (missing5 = "messageId"))) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err53 = {instancePath,schemaPath:"#/anyOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {if(data.type !== undefined){let data24 = data.type;const _errs61 = errors;if(typeof data24 !== "string"){const err54 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("response" !== data24){const err55 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/5/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid6 = _errs61 === errors;}else {var valid6 = true;}if(valid6){if(data.messageId !== undefined){const _errs63 = errors;if(typeof data.messageId !== "string"){const err56 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/5/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid6 = _errs63 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data26 = data.commandId;const _errs65 = errors;if(typeof data26 !== "string"){const err57 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if("user/unsubscribe" !== data26){const err58 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/const",keyword:"const",params:{allowedValue: "user/unsubscribe"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid6 = _errs65 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data27 = data.status;const _errs67 = errors;if(typeof data27 !== "string"){const err59 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("failed" !== data27){const err60 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid6 = _errs67 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data28 = data.reason;const _errs69 = errors;if(typeof data28 !== "string"){const err61 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if("command_unimplemented" !== data28){const err62 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/const",keyword:"const",params:{allowedValue: "command_unimplemented"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid6 = _errs69 === errors;}else {var valid6 = true;}}}}}}}else {const err63 = {instancePath,schemaPath:"#/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var _valid0 = _errs59 === errors;valid0 = valid0 || _valid0;}}}}}if(!valid0){const err64 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;validate61.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate61.errors = vErrors;return errors === 0;}exports.user_updated_event = validate62;const schema63 = {"$id":"user/updated/event","scopes":["tachyon.lobby"],"type":"object","properties":{"type":{"const":"event","type":"string"},"messageId":{"type":"string"},"commandId":{"const":"user/updated","type":"string"},"data":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"username":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"clanId":{"anyOf":[{"type":"string"},{"type":"null"}]},"partyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string"}},"countryCode":{"type":"string"},"status":{"anyOf":[{"const":"offline","type":"string"},{"const":"menu","type":"string"},{"const":"playing","type":"string"},{"const":"lobby","type":"string"}]},"battleStatus":{"anyOf":[{"allOf":[{"type":"object","properties":{"battleId":{"type":"string"}},"required":["battleId"]},{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"}},"required":["playerId","teamId","color","bonus","inGame"]},{"type":"object","properties":{"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":false,"type":"boolean"},"ready":{"type":"boolean"},"sync":{"type":"object","properties":{"engine":{"type":"number"},"game":{"type":"number"},"map":{"type":"number"}},"required":["engine","game","map"]}},"required":["isSpectator","isBot","ready","sync"]}]},{"type":"object","properties":{"isSpectator":{"const":true,"type":"boolean"},"isBot":{"const":false,"type":"boolean"}},"required":["isSpectator","isBot"]}]}]},{"type":"null"}]},"friendIds":{"type":"array","items":{"type":"string"}},"outgoingFriendRequestIds":{"type":"array","items":{"type":"string"}},"incomingFriendRequestIds":{"type":"array","items":{"type":"string"}},"ignoreIds":{"type":"array","items":{"type":"string"}}}}}},"required":["users"]}},"required":["type","messageId","commandId","data"]};function validate62(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="user/updated/event" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate62.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){let data0 = data.type;const _errs1 = errors;if(typeof data0 !== "string"){validate62.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("event" !== data0){validate62.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){validate62.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data2 = data.commandId;const _errs5 = errors;if(typeof data2 !== "string"){validate62.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("user/updated" !== data2){validate62.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "user/updated"},message:"must be equal to constant"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs7 = errors;if(errors === _errs7){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.users === undefined) && (missing1 = "users")){validate62.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.users !== undefined){let data4 = data3.users;const _errs9 = errors;if(errors === _errs9){if(Array.isArray(data4)){var valid2 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];const _errs11 = errors;if(errors === _errs11){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.userId !== undefined){const _errs13 = errors;if(typeof data5.userId !== "string"){validate62.errors = [{instancePath:instancePath+"/data/users/" + i0+"/userId",schemaPath:"#/properties/data/properties/users/items/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs13 === errors;}else {var valid3 = true;}if(valid3){if(data5.username !== undefined){const _errs15 = errors;if(typeof data5.username !== "string"){validate62.errors = [{instancePath:instancePath+"/data/users/" + i0+"/username",schemaPath:"#/properties/data/properties/users/items/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data5.displayName !== undefined){const _errs17 = errors;if(typeof data5.displayName !== "string"){validate62.errors = [{instancePath:instancePath+"/data/users/" + i0+"/displayName",schemaPath:"#/properties/data/properties/users/items/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs17 === errors;}else {var valid3 = true;}if(valid3){if(data5.avatarUrl !== undefined){let data9 = data5.avatarUrl;const _errs19 = errors;const _errs20 = errors;let valid4 = false;const _errs21 = errors;if(typeof data9 !== "string"){const err0 = {instancePath:instancePath+"/data/users/" + i0+"/avatarUrl",schemaPath:"#/properties/data/properties/users/items/properties/avatarUrl/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs21 === errors;valid4 = valid4 || _valid0;if(!valid4){const _errs23 = errors;if(data9 !== null){const err1 = {instancePath:instancePath+"/data/users/" + i0+"/avatarUrl",schemaPath:"#/properties/data/properties/users/items/properties/avatarUrl/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs23 === errors;valid4 = valid4 || _valid0;}if(!valid4){const err2 = {instancePath:instancePath+"/data/users/" + i0+"/avatarUrl",schemaPath:"#/properties/data/properties/users/items/properties/avatarUrl/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate62.errors = vErrors;return false;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var valid3 = _errs19 === errors;}else {var valid3 = true;}if(valid3){if(data5.clanId !== undefined){let data10 = data5.clanId;const _errs25 = errors;const _errs26 = errors;let valid5 = false;const _errs27 = errors;if(typeof data10 !== "string"){const err3 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/properties/data/properties/users/items/properties/clanId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs27 === errors;valid5 = valid5 || _valid1;if(!valid5){const _errs29 = errors;if(data10 !== null){const err4 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/properties/data/properties/users/items/properties/clanId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs29 === errors;valid5 = valid5 || _valid1;}if(!valid5){const err5 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/properties/data/properties/users/items/properties/clanId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate62.errors = vErrors;return false;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data5.partyId !== undefined){let data11 = data5.partyId;const _errs31 = errors;const _errs32 = errors;let valid6 = false;const _errs33 = errors;if(typeof data11 !== "string"){const err6 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/properties/data/properties/users/items/properties/partyId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs33 === errors;valid6 = valid6 || _valid2;if(!valid6){const _errs35 = errors;if(data11 !== null){const err7 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/properties/data/properties/users/items/properties/partyId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs35 === errors;valid6 = valid6 || _valid2;}if(!valid6){const err8 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/properties/data/properties/users/items/properties/partyId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate62.errors = vErrors;return false;}else {errors = _errs32;if(vErrors !== null){if(_errs32){vErrors.length = _errs32;}else {vErrors = null;}}}var valid3 = _errs31 === errors;}else {var valid3 = true;}if(valid3){if(data5.scopes !== undefined){let data12 = data5.scopes;const _errs37 = errors;if(errors === _errs37){if(Array.isArray(data12)){var valid7 = true;const len1 = data12.length;for(let i1=0; i1<len1; i1++){const _errs39 = errors;if(typeof data12[i1] !== "string"){validate62.errors = [{instancePath:instancePath+"/data/users/" + i0+"/scopes/" + i1,schemaPath:"#/properties/data/properties/users/items/properties/scopes/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid7 = _errs39 === errors;if(!valid7){break;}}}else {validate62.errors = [{instancePath:instancePath+"/data/users/" + i0+"/scopes",schemaPath:"#/properties/data/properties/users/items/properties/scopes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid3 = _errs37 === errors;}else {var valid3 = true;}if(valid3){if(data5.countryCode !== undefined){const _errs41 = errors;if(typeof data5.countryCode !== "string"){validate62.errors = [{instancePath:instancePath+"/data/users/" + i0+"/countryCode",schemaPath:"#/properties/data/properties/users/items/properties/countryCode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs41 === errors;}else {var valid3 = true;}if(valid3){if(data5.status !== undefined){let data15 = data5.status;const _errs43 = errors;const _errs44 = errors;let valid8 = false;const _errs45 = errors;if(typeof data15 !== "string"){const err9 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("offline" !== data15){const err10 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/0/const",keyword:"const",params:{allowedValue: "offline"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs45 === errors;valid8 = valid8 || _valid3;if(!valid8){const _errs47 = errors;if(typeof data15 !== "string"){const err11 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("menu" !== data15){const err12 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/1/const",keyword:"const",params:{allowedValue: "menu"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid3 = _errs47 === errors;valid8 = valid8 || _valid3;if(!valid8){const _errs49 = errors;if(typeof data15 !== "string"){const err13 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("playing" !== data15){const err14 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/2/const",keyword:"const",params:{allowedValue: "playing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid3 = _errs49 === errors;valid8 = valid8 || _valid3;if(!valid8){const _errs51 = errors;if(typeof data15 !== "string"){const err15 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("lobby" !== data15){const err16 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf/3/const",keyword:"const",params:{allowedValue: "lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid3 = _errs51 === errors;valid8 = valid8 || _valid3;}}}if(!valid8){const err17 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/properties/data/properties/users/items/properties/status/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;validate62.errors = vErrors;return false;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}var valid3 = _errs43 === errors;}else {var valid3 = true;}if(valid3){if(data5.battleStatus !== undefined){let data16 = data5.battleStatus;const _errs53 = errors;const _errs54 = errors;let valid9 = false;const _errs55 = errors;const _errs56 = errors;if(errors === _errs56){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing2;if((data16.battleId === undefined) && (missing2 = "battleId")){const err18 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {if(data16.battleId !== undefined){if(typeof data16.battleId !== "string"){const err19 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/battleId",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}}else {const err20 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}var valid10 = _errs56 === errors;if(valid10){const _errs60 = errors;const _errs61 = errors;let valid12 = false;const _errs62 = errors;if(!(data16 && typeof data16 == "object" && !Array.isArray(data16))){const err21 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}const _errs64 = errors;if(errors === _errs64){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing3;if((((((data16.playerId === undefined) && (missing3 = "playerId")) || ((data16.teamId === undefined) && (missing3 = "teamId"))) || ((data16.color === undefined) && (missing3 = "color"))) || ((data16.bonus === undefined) && (missing3 = "bonus"))) || ((data16.inGame === undefined) && (missing3 = "inGame"))){const err22 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(data16.playerId !== undefined){let data18 = data16.playerId;const _errs66 = errors;if(!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))){const err23 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/playerId",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid14 = _errs66 === errors;}else {var valid14 = true;}if(valid14){if(data16.teamId !== undefined){let data19 = data16.teamId;const _errs68 = errors;if(!(((typeof data19 == "number") && (!(data19 % 1) && !isNaN(data19))) && (isFinite(data19)))){const err24 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/teamId",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid14 = _errs68 === errors;}else {var valid14 = true;}if(valid14){if(data16.color !== undefined){const _errs70 = errors;if(typeof data16.color !== "string"){const err25 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/color",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid14 = _errs70 === errors;}else {var valid14 = true;}if(valid14){if(data16.bonus !== undefined){let data21 = data16.bonus;const _errs72 = errors;if(!((typeof data21 == "number") && (isFinite(data21)))){const err26 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/bonus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid14 = _errs72 === errors;}else {var valid14 = true;}if(valid14){if(data16.inGame !== undefined){const _errs74 = errors;if(typeof data16.inGame !== "boolean"){const err27 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/inGame",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid14 = _errs74 === errors;}else {var valid14 = true;}}}}}}}else {const err28 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var valid13 = _errs64 === errors;if(valid13){const _errs76 = errors;if(errors === _errs76){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing4;if(((((data16.isSpectator === undefined) && (missing4 = "isSpectator")) || ((data16.isBot === undefined) && (missing4 = "isBot"))) || ((data16.ready === undefined) && (missing4 = "ready"))) || ((data16.sync === undefined) && (missing4 = "sync"))){const err29 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {if(data16.isSpectator !== undefined){let data23 = data16.isSpectator;const _errs78 = errors;if(typeof data23 !== "boolean"){const err30 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(false !== data23){const err31 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var valid15 = _errs78 === errors;}else {var valid15 = true;}if(valid15){if(data16.isBot !== undefined){let data24 = data16.isBot;const _errs80 = errors;if(typeof data24 !== "boolean"){const err32 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(false !== data24){const err33 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid15 = _errs80 === errors;}else {var valid15 = true;}if(valid15){if(data16.ready !== undefined){const _errs82 = errors;if(typeof data16.ready !== "boolean"){const err34 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/ready",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/ready/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid15 = _errs82 === errors;}else {var valid15 = true;}if(valid15){if(data16.sync !== undefined){let data26 = data16.sync;const _errs84 = errors;if(errors === _errs84){if(data26 && typeof data26 == "object" && !Array.isArray(data26)){let missing5;if((((data26.engine === undefined) && (missing5 = "engine")) || ((data26.game === undefined) && (missing5 = "game"))) || ((data26.map === undefined) && (missing5 = "map"))){const err35 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {if(data26.engine !== undefined){let data27 = data26.engine;const _errs86 = errors;if(!((typeof data27 == "number") && (isFinite(data27)))){const err36 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync/engine",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/engine/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid16 = _errs86 === errors;}else {var valid16 = true;}if(valid16){if(data26.game !== undefined){let data28 = data26.game;const _errs88 = errors;if(!((typeof data28 == "number") && (isFinite(data28)))){const err37 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync/game",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/game/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid16 = _errs88 === errors;}else {var valid16 = true;}if(valid16){if(data26.map !== undefined){let data29 = data26.map;const _errs90 = errors;if(!((typeof data29 == "number") && (isFinite(data29)))){const err38 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync/map",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/map/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid16 = _errs90 === errors;}else {var valid16 = true;}}}}}else {const err39 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}var valid15 = _errs84 === errors;}else {var valid15 = true;}}}}}}else {const err40 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}var valid13 = _errs76 === errors;}var _valid5 = _errs62 === errors;valid12 = valid12 || _valid5;if(!valid12){const _errs92 = errors;if(errors === _errs92){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing6;if(((data16.isSpectator === undefined) && (missing6 = "isSpectator")) || ((data16.isBot === undefined) && (missing6 = "isBot"))){const err41 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}else {if(data16.isSpectator !== undefined){let data30 = data16.isSpectator;const _errs94 = errors;if(typeof data30 !== "boolean"){const err42 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(true !== data30){const err43 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid17 = _errs94 === errors;}else {var valid17 = true;}if(valid17){if(data16.isBot !== undefined){let data31 = data16.isBot;const _errs96 = errors;if(typeof data31 !== "boolean"){const err44 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(false !== data31){const err45 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid17 = _errs96 === errors;}else {var valid17 = true;}}}}else {const err46 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}var _valid5 = _errs92 === errors;valid12 = valid12 || _valid5;}if(!valid12){const err47 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {errors = _errs61;if(vErrors !== null){if(_errs61){vErrors.length = _errs61;}else {vErrors = null;}}}var valid10 = _errs60 === errors;}var _valid4 = _errs55 === errors;valid9 = valid9 || _valid4;if(!valid9){const _errs98 = errors;if(data16 !== null){const err48 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var _valid4 = _errs98 === errors;valid9 = valid9 || _valid4;}if(!valid9){const err49 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/properties/data/properties/users/items/properties/battleStatus/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;validate62.errors = vErrors;return false;}else {errors = _errs54;if(vErrors !== null){if(_errs54){vErrors.length = _errs54;}else {vErrors = null;}}}var valid3 = _errs53 === errors;}else {var valid3 = true;}if(valid3){if(data5.friendIds !== undefined){let data32 = data5.friendIds;const _errs100 = errors;if(errors === _errs100){if(Array.isArray(data32)){var valid18 = true;const len2 = data32.length;for(let i2=0; i2<len2; i2++){const _errs102 = errors;if(typeof data32[i2] !== "string"){validate62.errors = [{instancePath:instancePath+"/data/users/" + i0+"/friendIds/" + i2,schemaPath:"#/properties/data/properties/users/items/properties/friendIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid18 = _errs102 === errors;if(!valid18){break;}}}else {validate62.errors = [{instancePath:instancePath+"/data/users/" + i0+"/friendIds",schemaPath:"#/properties/data/properties/users/items/properties/friendIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid3 = _errs100 === errors;}else {var valid3 = true;}if(valid3){if(data5.outgoingFriendRequestIds !== undefined){let data34 = data5.outgoingFriendRequestIds;const _errs104 = errors;if(errors === _errs104){if(Array.isArray(data34)){var valid19 = true;const len3 = data34.length;for(let i3=0; i3<len3; i3++){const _errs106 = errors;if(typeof data34[i3] !== "string"){validate62.errors = [{instancePath:instancePath+"/data/users/" + i0+"/outgoingFriendRequestIds/" + i3,schemaPath:"#/properties/data/properties/users/items/properties/outgoingFriendRequestIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid19 = _errs106 === errors;if(!valid19){break;}}}else {validate62.errors = [{instancePath:instancePath+"/data/users/" + i0+"/outgoingFriendRequestIds",schemaPath:"#/properties/data/properties/users/items/properties/outgoingFriendRequestIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid3 = _errs104 === errors;}else {var valid3 = true;}if(valid3){if(data5.incomingFriendRequestIds !== undefined){let data36 = data5.incomingFriendRequestIds;const _errs108 = errors;if(errors === _errs108){if(Array.isArray(data36)){var valid20 = true;const len4 = data36.length;for(let i4=0; i4<len4; i4++){const _errs110 = errors;if(typeof data36[i4] !== "string"){validate62.errors = [{instancePath:instancePath+"/data/users/" + i0+"/incomingFriendRequestIds/" + i4,schemaPath:"#/properties/data/properties/users/items/properties/incomingFriendRequestIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid20 = _errs110 === errors;if(!valid20){break;}}}else {validate62.errors = [{instancePath:instancePath+"/data/users/" + i0+"/incomingFriendRequestIds",schemaPath:"#/properties/data/properties/users/items/properties/incomingFriendRequestIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid3 = _errs108 === errors;}else {var valid3 = true;}if(valid3){if(data5.ignoreIds !== undefined){let data38 = data5.ignoreIds;const _errs112 = errors;if(errors === _errs112){if(Array.isArray(data38)){var valid21 = true;const len5 = data38.length;for(let i5=0; i5<len5; i5++){const _errs114 = errors;if(typeof data38[i5] !== "string"){validate62.errors = [{instancePath:instancePath+"/data/users/" + i0+"/ignoreIds/" + i5,schemaPath:"#/properties/data/properties/users/items/properties/ignoreIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid21 = _errs114 === errors;if(!valid21){break;}}}else {validate62.errors = [{instancePath:instancePath+"/data/users/" + i0+"/ignoreIds",schemaPath:"#/properties/data/properties/users/items/properties/ignoreIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid3 = _errs112 === errors;}else {var valid3 = true;}}}}}}}}}}}}}}}else {validate62.errors = [{instancePath:instancePath+"/data/users/" + i0,schemaPath:"#/properties/data/properties/users/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid2 = _errs11 === errors;if(!valid2){break;}}}else {validate62.errors = [{instancePath:instancePath+"/data/users",schemaPath:"#/properties/data/properties/users/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate62.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate62.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate62.errors = vErrors;return errors === 0;}
1
+ "use strict";exports.user_updated_event = validate10;const schema11 = {"$id":"https://schema.beyondallreason.dev/tachyon/user/updated/event.json","$schema":"http://json-schema.org/draft-07/schema#","title":"UserUpdatedEvent","tachyon":{"source":"server","target":"user","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"event"},"messageId":{"type":"string"},"commandId":{"const":"user/updated"},"data":{"title":"UserUpdatedEventData","type":"object","properties":{"users":{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"userId":{"type":"string","format":"uuid","examples":["f47a7e1e-4b2f-4d3d-3f3c-1f0f0e4b7e1e"]},"username":{"type":"string"},"displayName":{"type":"string"},"clanId":{"anyOf":[{"type":"string"},{"type":"null"}]},"partyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string"}},"countryCode":{"type":"string"},"status":{"anyOf":[{"const":"offline"},{"const":"menu"},{"const":"playing"},{"const":"lobby"}]}}},{"type":"object","properties":{"friendIds":{"type":"array","items":{"type":"string"}},"outgoingFriendRequestIds":{"type":"array","items":{"type":"string"}},"incomingFriendRequestIds":{"type":"array","items":{"type":"string"}},"ignoreIds":{"type":"array","items":{"type":"string"}}}}]}}},"required":["users"]}},"required":["type","messageId","commandId","data"]};const formats0 = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/user/updated/event.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate10.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("event" !== data.type){validate10.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate10.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("user/updated" !== data.commandId){validate10.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "user/updated"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.users === undefined) && (missing1 = "users")){validate10.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.users !== undefined){let data4 = data3.users;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data4)){var valid2 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];const _errs9 = errors;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){validate10.errors = [{instancePath:instancePath+"/data/users/" + i0,schemaPath:"#/properties/data/properties/users/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs11 = errors;if(errors === _errs11){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.userId !== undefined){let data6 = data5.userId;const _errs13 = errors;if(errors === _errs13){if(errors === _errs13){if(typeof data6 === "string"){if(!(formats0.test(data6))){validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/userId",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/userId/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/userId",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid4 = _errs13 === errors;}else {var valid4 = true;}if(valid4){if(data5.username !== undefined){const _errs15 = errors;if(typeof data5.username !== "string"){validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/username",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs15 === errors;}else {var valid4 = true;}if(valid4){if(data5.displayName !== undefined){const _errs17 = errors;if(typeof data5.displayName !== "string"){validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/displayName",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs17 === errors;}else {var valid4 = true;}if(valid4){if(data5.clanId !== undefined){let data9 = data5.clanId;const _errs19 = errors;const _errs20 = errors;let valid5 = false;const _errs21 = errors;if(typeof data9 !== "string"){const err0 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/clanId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs21 === errors;valid5 = valid5 || _valid0;if(!valid5){const _errs23 = errors;if(data9 !== null){const err1 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/clanId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs23 === errors;valid5 = valid5 || _valid0;}if(!valid5){const err2 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/clanId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate10.errors = vErrors;return false;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var valid4 = _errs19 === errors;}else {var valid4 = true;}if(valid4){if(data5.partyId !== undefined){let data10 = data5.partyId;const _errs25 = errors;const _errs26 = errors;let valid6 = false;const _errs27 = errors;if(typeof data10 !== "string"){const err3 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/partyId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs27 === errors;valid6 = valid6 || _valid1;if(!valid6){const _errs29 = errors;if(data10 !== null){const err4 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/partyId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs29 === errors;valid6 = valid6 || _valid1;}if(!valid6){const err5 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/partyId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate10.errors = vErrors;return false;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}var valid4 = _errs25 === errors;}else {var valid4 = true;}if(valid4){if(data5.scopes !== undefined){let data11 = data5.scopes;const _errs31 = errors;if(errors === _errs31){if(Array.isArray(data11)){var valid7 = true;const len1 = data11.length;for(let i1=0; i1<len1; i1++){const _errs33 = errors;if(typeof data11[i1] !== "string"){validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/scopes/" + i1,schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/scopes/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid7 = _errs33 === errors;if(!valid7){break;}}}else {validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/scopes",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/scopes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data5.countryCode !== undefined){const _errs35 = errors;if(typeof data5.countryCode !== "string"){validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/countryCode",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/countryCode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data5.status !== undefined){let data14 = data5.status;const _errs37 = errors;const _errs38 = errors;let valid8 = false;const _errs39 = errors;if("offline" !== data14){const err6 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/status/anyOf/0/const",keyword:"const",params:{allowedValue: "offline"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs39 === errors;valid8 = valid8 || _valid2;if(!valid8){const _errs40 = errors;if("menu" !== data14){const err7 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/status/anyOf/1/const",keyword:"const",params:{allowedValue: "menu"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs40 === errors;valid8 = valid8 || _valid2;if(!valid8){const _errs41 = errors;if("playing" !== data14){const err8 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/status/anyOf/2/const",keyword:"const",params:{allowedValue: "playing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid2 = _errs41 === errors;valid8 = valid8 || _valid2;if(!valid8){const _errs42 = errors;if("lobby" !== data14){const err9 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/status/anyOf/3/const",keyword:"const",params:{allowedValue: "lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid2 = _errs42 === errors;valid8 = valid8 || _valid2;}}}if(!valid8){const err10 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/properties/data/properties/users/items/allOf/0/properties/status/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;validate10.errors = vErrors;return false;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}}}}else {validate10.errors = [{instancePath:instancePath+"/data/users/" + i0,schemaPath:"#/properties/data/properties/users/items/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs11 === errors;if(valid3){const _errs43 = errors;if(errors === _errs43){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.friendIds !== undefined){let data15 = data5.friendIds;const _errs45 = errors;if(errors === _errs45){if(Array.isArray(data15)){var valid10 = true;const len2 = data15.length;for(let i2=0; i2<len2; i2++){const _errs47 = errors;if(typeof data15[i2] !== "string"){validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/friendIds/" + i2,schemaPath:"#/properties/data/properties/users/items/allOf/1/properties/friendIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs47 === errors;if(!valid10){break;}}}else {validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/friendIds",schemaPath:"#/properties/data/properties/users/items/allOf/1/properties/friendIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid9 = _errs45 === errors;}else {var valid9 = true;}if(valid9){if(data5.outgoingFriendRequestIds !== undefined){let data17 = data5.outgoingFriendRequestIds;const _errs49 = errors;if(errors === _errs49){if(Array.isArray(data17)){var valid11 = true;const len3 = data17.length;for(let i3=0; i3<len3; i3++){const _errs51 = errors;if(typeof data17[i3] !== "string"){validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/outgoingFriendRequestIds/" + i3,schemaPath:"#/properties/data/properties/users/items/allOf/1/properties/outgoingFriendRequestIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid11 = _errs51 === errors;if(!valid11){break;}}}else {validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/outgoingFriendRequestIds",schemaPath:"#/properties/data/properties/users/items/allOf/1/properties/outgoingFriendRequestIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid9 = _errs49 === errors;}else {var valid9 = true;}if(valid9){if(data5.incomingFriendRequestIds !== undefined){let data19 = data5.incomingFriendRequestIds;const _errs53 = errors;if(errors === _errs53){if(Array.isArray(data19)){var valid12 = true;const len4 = data19.length;for(let i4=0; i4<len4; i4++){const _errs55 = errors;if(typeof data19[i4] !== "string"){validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/incomingFriendRequestIds/" + i4,schemaPath:"#/properties/data/properties/users/items/allOf/1/properties/incomingFriendRequestIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid12 = _errs55 === errors;if(!valid12){break;}}}else {validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/incomingFriendRequestIds",schemaPath:"#/properties/data/properties/users/items/allOf/1/properties/incomingFriendRequestIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid9 = _errs53 === errors;}else {var valid9 = true;}if(valid9){if(data5.ignoreIds !== undefined){let data21 = data5.ignoreIds;const _errs57 = errors;if(errors === _errs57){if(Array.isArray(data21)){var valid13 = true;const len5 = data21.length;for(let i5=0; i5<len5; i5++){const _errs59 = errors;if(typeof data21[i5] !== "string"){validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/ignoreIds/" + i5,schemaPath:"#/properties/data/properties/users/items/allOf/1/properties/ignoreIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid13 = _errs59 === errors;if(!valid13){break;}}}else {validate10.errors = [{instancePath:instancePath+"/data/users/" + i0+"/ignoreIds",schemaPath:"#/properties/data/properties/users/items/allOf/1/properties/ignoreIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid9 = _errs57 === errors;}else {var valid9 = true;}}}}}else {validate10.errors = [{instancePath:instancePath+"/data/users/" + i0,schemaPath:"#/properties/data/properties/users/items/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs43 === errors;}var valid2 = _errs9 === errors;if(!valid2){break;}}}else {validate10.errors = [{instancePath:instancePath+"/data/users",schemaPath:"#/properties/data/properties/users/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate10.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate10.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate10.errors = vErrors;return errors === 0;}exports.system_serverStats_request = validate11;const schema12 = {"$id":"https://schema.beyondallreason.dev/tachyon/system/serverStats/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"SystemServerStatsRequest","tachyon":{"source":"user","target":"server","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"system/serverStats"}},"required":["type","messageId","commandId"]};function validate11(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/system/serverStats/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate11.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate11.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate11.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("system/serverStats" !== data.commandId){validate11.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "system/serverStats"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}}else {validate11.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate11.errors = vErrors;return errors === 0;}exports.system_serverStats_response = validate12;const schema13 = {"$id":"https://schema.beyondallreason.dev/tachyon/system/serverStats/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"SystemServerStatsResponse","tachyon":{"source":"server","target":"user","scopes":["tachyon.lobby"]},"anyOf":[{"title":"SystemServerStatsOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"system/serverStats"},"status":{"const":"success"},"data":{"title":"SystemServerStatsOkResponseData","type":"object","properties":{"userCount":{"type":"integer"}},"required":["userCount"]}},"required":["type","messageId","commandId","status","data"]},{"title":"SystemServerStatsFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"system/serverStats"},"status":{"const":"failed"},"reason":{"enum":["internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate12(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/system/serverStats/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("system/serverStats" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "system/serverStats"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data4 = data.data;const _errs8 = errors;if(errors === _errs8){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing1;if((data4.userCount === undefined) && (missing1 = "userCount")){const err5 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {if(data4.userCount !== undefined){let data5 = data4.userCount;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err6 = {instancePath:instancePath+"/data/userCount",schemaPath:"#/anyOf/0/properties/data/properties/userCount/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}}else {const err7 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}}}}}}}else {const err8 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs12 = errors;if(errors === _errs12){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err9 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(data.type !== undefined){const _errs14 = errors;if("response" !== data.type){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid3 = _errs14 === errors;}else {var valid3 = true;}if(valid3){if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err11 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){const _errs17 = errors;if("system/serverStats" !== data.commandId){const err12 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "system/serverStats"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid3 = _errs17 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){const _errs18 = errors;if("failed" !== data.status){const err13 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid3 = _errs18 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs19 = errors;if(!((((data10 === "internal_error") || (data10 === "unauthorized")) || (data10 === "invalid_request")) || (data10 === "command_unimplemented"))){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema13.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid3 = _errs19 === errors;}else {var valid3 = true;}}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs12 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err16 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;validate12.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate12.errors = vErrors;return errors === 0;}exports.system_disconnect_request = validate13;const schema14 = {"$id":"https://schema.beyondallreason.dev/tachyon/system/disconnect/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"SystemDisconnectRequest","tachyon":{"source":"user","target":"server","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"system/disconnect"},"data":{"title":"SystemDisconnectRequestData","type":"object","properties":{"reason":{"type":"string"}},"required":["reason"]}},"required":["type","messageId","commandId"]};function validate13(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/system/disconnect/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate13.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate13.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate13.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("system/disconnect" !== data.commandId){validate13.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "system/disconnect"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.reason === undefined) && (missing1 = "reason")){validate13.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.reason !== undefined){if(typeof data3.reason !== "string"){validate13.errors = [{instancePath:instancePath+"/data/reason",schemaPath:"#/properties/data/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate13.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate13.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate13.errors = vErrors;return errors === 0;}exports.system_disconnect_response = validate14;const schema15 = {"$id":"https://schema.beyondallreason.dev/tachyon/system/disconnect/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"SystemDisconnectResponse","tachyon":{"source":"server","target":"user","scopes":["tachyon.lobby"]},"anyOf":[{"title":"SystemDisconnectOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"system/disconnect"},"status":{"const":"success"}},"required":["type","messageId","commandId","status"]},{"title":"SystemDisconnectFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"system/disconnect"},"status":{"const":"failed"},"reason":{"enum":["internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/system/disconnect/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("system/disconnect" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "system/disconnect"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}}else {const err5 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs8 = errors;if(errors === _errs8){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err6 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.type !== undefined){const _errs10 = errors;if("response" !== data.type){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){const _errs13 = errors;if("system/disconnect" !== data.commandId){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "system/disconnect"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){const _errs14 = errors;if("failed" !== data.status){const err10 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs14 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs15 = errors;if(!((((data8 === "internal_error") || (data8 === "unauthorized")) || (data8 === "invalid_request")) || (data8 === "command_unimplemented"))){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema15.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}}}}}}}else {const err12 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err13 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate14.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}exports.matchmaking_readyUpdate_event = validate15;const schema16 = {"$id":"https://schema.beyondallreason.dev/tachyon/matchmaking/readyUpdate/event.json","$schema":"http://json-schema.org/draft-07/schema#","title":"MatchmakingReadyUpdateEvent","tachyon":{"source":"server","target":"user","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"event"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/readyUpdate"},"data":{"title":"MatchmakingReadyUpdateEventData","type":"object","properties":{"readyMax":{"type":"integer"},"readyCurrent":{"type":"integer"}},"required":["readyMax","readyCurrent"]}},"required":["type","messageId","commandId","data"]};function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/matchmaking/readyUpdate/event.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate15.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("event" !== data.type){validate15.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate15.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("matchmaking/readyUpdate" !== data.commandId){validate15.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/readyUpdate"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.readyMax === undefined) && (missing1 = "readyMax")) || ((data3.readyCurrent === undefined) && (missing1 = "readyCurrent"))){validate15.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.readyMax !== undefined){let data4 = data3.readyMax;const _errs7 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){validate15.errors = [{instancePath:instancePath+"/data/readyMax",schemaPath:"#/properties/data/properties/readyMax/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data3.readyCurrent !== undefined){let data5 = data3.readyCurrent;const _errs9 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){validate15.errors = [{instancePath:instancePath+"/data/readyCurrent",schemaPath:"#/properties/data/properties/readyCurrent/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}else {validate15.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate15.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate15.errors = vErrors;return errors === 0;}exports.matchmaking_ready_request = validate16;const schema17 = {"$id":"https://schema.beyondallreason.dev/tachyon/matchmaking/ready/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"MatchmakingReadyRequest","tachyon":{"source":"user","target":"server","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready"}},"required":["type","messageId","commandId"]};function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/matchmaking/ready/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate16.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate16.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate16.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("matchmaking/ready" !== data.commandId){validate16.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}}else {validate16.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate16.errors = vErrors;return errors === 0;}exports.matchmaking_ready_response = validate17;const schema18 = {"$id":"https://schema.beyondallreason.dev/tachyon/matchmaking/ready/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"MatchmakingReadyResponse","tachyon":{"source":"server","target":"user","scopes":["tachyon.lobby"]},"anyOf":[{"title":"MatchmakingReadyOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready"},"status":{"const":"success"}},"required":["type","messageId","commandId","status"]},{"title":"MatchmakingReadyFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready"},"status":{"const":"failed"},"reason":{"enum":["no_match","internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/matchmaking/ready/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("matchmaking/ready" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}}else {const err5 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs8 = errors;if(errors === _errs8){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err6 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.type !== undefined){const _errs10 = errors;if("response" !== data.type){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){const _errs13 = errors;if("matchmaking/ready" !== data.commandId){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){const _errs14 = errors;if("failed" !== data.status){const err10 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs14 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs15 = errors;if(!(((((data8 === "no_match") || (data8 === "internal_error")) || (data8 === "unauthorized")) || (data8 === "invalid_request")) || (data8 === "command_unimplemented"))){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema18.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}}}}}}}else {const err12 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err13 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate17.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}exports.matchmaking_queueUpdate_event = validate18;const schema19 = {"$id":"https://schema.beyondallreason.dev/tachyon/matchmaking/queueUpdate/event.json","$schema":"http://json-schema.org/draft-07/schema#","title":"MatchmakingQueueUpdateEvent","tachyon":{"source":"server","target":"user","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"event"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queueUpdate"},"data":{"title":"MatchmakingQueueUpdateEventData","type":"object","properties":{"playersQueued":{"type":"string"}},"required":["playersQueued"]}},"required":["type","messageId","commandId","data"]};function validate18(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/matchmaking/queueUpdate/event.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate18.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("event" !== data.type){validate18.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate18.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("matchmaking/queueUpdate" !== data.commandId){validate18.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queueUpdate"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.playersQueued === undefined) && (missing1 = "playersQueued")){validate18.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.playersQueued !== undefined){if(typeof data3.playersQueued !== "string"){validate18.errors = [{instancePath:instancePath+"/data/playersQueued",schemaPath:"#/properties/data/properties/playersQueued/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate18.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate18.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate18.errors = vErrors;return errors === 0;}exports.matchmaking_queue_request = validate19;const schema20 = {"$id":"https://schema.beyondallreason.dev/tachyon/matchmaking/queue/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"MatchmakingQueueRequest","tachyon":{"source":"user","target":"server","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue"},"data":{"title":"MatchmakingQueueRequestData","type":"object","properties":{"queues":{"type":"array","items":{"type":"string"},"minItems":1}},"required":["queues"]}},"required":["type","messageId","commandId","data"]};function validate19(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/matchmaking/queue/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate19.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate19.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate19.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("matchmaking/queue" !== data.commandId){validate19.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.queues === undefined) && (missing1 = "queues")){validate19.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.queues !== undefined){let data4 = data3.queues;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data4)){if(data4.length < 1){validate19.errors = [{instancePath:instancePath+"/data/queues",schemaPath:"#/properties/data/properties/queues/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs9 = errors;if(typeof data4[i0] !== "string"){validate19.errors = [{instancePath:instancePath+"/data/queues/" + i0,schemaPath:"#/properties/data/properties/queues/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs9 === errors;if(!valid2){break;}}}}else {validate19.errors = [{instancePath:instancePath+"/data/queues",schemaPath:"#/properties/data/properties/queues/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate19.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate19.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate19.errors = vErrors;return errors === 0;}exports.matchmaking_queue_response = validate20;const schema21 = {"$id":"https://schema.beyondallreason.dev/tachyon/matchmaking/queue/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"MatchmakingQueueResponse","tachyon":{"source":"server","target":"user","scopes":["tachyon.lobby"]},"anyOf":[{"title":"MatchmakingQueueOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue"},"status":{"const":"success"}},"required":["type","messageId","commandId","status"]},{"title":"MatchmakingQueueFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue"},"status":{"const":"failed"},"reason":{"enum":["invalid_queue_specified","already_queued","already_inbattle","internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/matchmaking/queue/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("matchmaking/queue" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}}else {const err5 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs8 = errors;if(errors === _errs8){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err6 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.type !== undefined){const _errs10 = errors;if("response" !== data.type){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){const _errs13 = errors;if("matchmaking/queue" !== data.commandId){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){const _errs14 = errors;if("failed" !== data.status){const err10 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs14 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs15 = errors;if(!(((((((data8 === "invalid_queue_specified") || (data8 === "already_queued")) || (data8 === "already_inbattle")) || (data8 === "internal_error")) || (data8 === "unauthorized")) || (data8 === "invalid_request")) || (data8 === "command_unimplemented"))){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema21.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}}}}}}}else {const err12 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err13 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate20.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate20.errors = vErrors;return errors === 0;}exports.matchmaking_lost_event = validate21;const schema22 = {"$id":"https://schema.beyondallreason.dev/tachyon/matchmaking/lost/event.json","$schema":"http://json-schema.org/draft-07/schema#","title":"MatchmakingLostEvent","tachyon":{"source":"server","target":"user","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"event"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/lost"}},"required":["type","messageId","commandId"]};function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/matchmaking/lost/event.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate21.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("event" !== data.type){validate21.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate21.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("matchmaking/lost" !== data.commandId){validate21.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/lost"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}}else {validate21.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate21.errors = vErrors;return errors === 0;}exports.matchmaking_list_request = validate22;const schema23 = {"$id":"https://schema.beyondallreason.dev/tachyon/matchmaking/list/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"MatchmakingListRequest","tachyon":{"source":"user","target":"server","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/list"}},"required":["type","messageId","commandId"]};function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/matchmaking/list/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate22.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate22.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate22.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("matchmaking/list" !== data.commandId){validate22.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/list"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}}else {validate22.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate22.errors = vErrors;return errors === 0;}exports.matchmaking_list_response = validate23;const schema24 = {"$id":"https://schema.beyondallreason.dev/tachyon/matchmaking/list/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"MatchmakingListResponse","tachyon":{"source":"server","target":"user","scopes":["tachyon.lobby"]},"anyOf":[{"title":"MatchmakingListOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/list"},"status":{"const":"success"},"data":{"title":"MatchmakingListOkResponseData","type":"object","properties":{"playlists":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"numOfTeams":{"type":"integer"},"teamSize":{"type":"integer"},"ranked":{"type":"boolean"}},"required":["id","name","numOfTeams","teamSize","ranked"]}}},"required":["playlists"],"examples":[{"playlists":[{"id":"1v1","name":"Duel","numOfTeams":2,"teamSize":1,"ranked":true},{"id":"1v1v1","name":"3 Way FFA","numOfTeams":3,"teamSize":1,"ranked":true}]}]}},"required":["type","messageId","commandId","status","data"]},{"title":"MatchmakingListFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/list"},"status":{"const":"failed"},"reason":{"enum":["internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/matchmaking/list/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("matchmaking/list" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/list"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data4 = data.data;const _errs8 = errors;if(errors === _errs8){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing1;if((data4.playlists === undefined) && (missing1 = "playlists")){const err5 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {if(data4.playlists !== undefined){let data5 = data4.playlists;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data5)){var valid3 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];const _errs12 = errors;if(errors === _errs12){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing2;if((((((data6.id === undefined) && (missing2 = "id")) || ((data6.name === undefined) && (missing2 = "name"))) || ((data6.numOfTeams === undefined) && (missing2 = "numOfTeams"))) || ((data6.teamSize === undefined) && (missing2 = "teamSize"))) || ((data6.ranked === undefined) && (missing2 = "ranked"))){const err6 = {instancePath:instancePath+"/data/playlists/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data6.id !== undefined){const _errs14 = errors;if(typeof data6.id !== "string"){const err7 = {instancePath:instancePath+"/data/playlists/" + i0+"/id",schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid4 = _errs14 === errors;}else {var valid4 = true;}if(valid4){if(data6.name !== undefined){const _errs16 = errors;if(typeof data6.name !== "string"){const err8 = {instancePath:instancePath+"/data/playlists/" + i0+"/name",schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid4 = _errs16 === errors;}else {var valid4 = true;}if(valid4){if(data6.numOfTeams !== undefined){let data9 = data6.numOfTeams;const _errs18 = errors;if(!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))){const err9 = {instancePath:instancePath+"/data/playlists/" + i0+"/numOfTeams",schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/properties/numOfTeams/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid4 = _errs18 === errors;}else {var valid4 = true;}if(valid4){if(data6.teamSize !== undefined){let data10 = data6.teamSize;const _errs20 = errors;if(!(((typeof data10 == "number") && (!(data10 % 1) && !isNaN(data10))) && (isFinite(data10)))){const err10 = {instancePath:instancePath+"/data/playlists/" + i0+"/teamSize",schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/properties/teamSize/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid4 = _errs20 === errors;}else {var valid4 = true;}if(valid4){if(data6.ranked !== undefined){const _errs22 = errors;if(typeof data6.ranked !== "boolean"){const err11 = {instancePath:instancePath+"/data/playlists/" + i0+"/ranked",schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/properties/ranked/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid4 = _errs22 === errors;}else {var valid4 = true;}}}}}}}else {const err12 = {instancePath:instancePath+"/data/playlists/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var valid3 = _errs12 === errors;if(!valid3){break;}}}else {const err13 = {instancePath:instancePath+"/data/playlists",schemaPath:"#/anyOf/0/properties/data/properties/playlists/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}}}else {const err14 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs24 = errors;if(errors === _errs24){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.type === undefined) && (missing3 = "type")) || ((data.messageId === undefined) && (missing3 = "messageId"))) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.type !== undefined){const _errs26 = errors;if("response" !== data.type){const err17 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid5 = _errs26 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err18 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid5 = _errs27 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){const _errs29 = errors;if("matchmaking/list" !== data.commandId){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/list"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid5 = _errs29 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){const _errs30 = errors;if("failed" !== data.status){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid5 = _errs30 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data16 = data.reason;const _errs31 = errors;if(!((((data16 === "internal_error") || (data16 === "unauthorized")) || (data16 === "invalid_request")) || (data16 === "command_unimplemented"))){const err21 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema24.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid5 = _errs31 === errors;}else {var valid5 = true;}}}}}}}else {const err22 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}var _valid0 = _errs24 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err23 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;validate23.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate23.errors = vErrors;return errors === 0;}exports.matchmaking_foundUpdate_event = validate24;const schema25 = {"$id":"https://schema.beyondallreason.dev/tachyon/matchmaking/foundUpdate/event.json","$schema":"http://json-schema.org/draft-07/schema#","title":"MatchmakingFoundUpdateEvent","tachyon":{"source":"server","target":"user","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"event"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/foundUpdate"},"data":{"title":"MatchmakingFoundUpdateEventData","type":"object","properties":{"readyCount":{"type":"integer"}},"required":["readyCount"]}},"required":["type","messageId","commandId","data"]};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/matchmaking/foundUpdate/event.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate24.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("event" !== data.type){validate24.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate24.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("matchmaking/foundUpdate" !== data.commandId){validate24.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/foundUpdate"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.readyCount === undefined) && (missing1 = "readyCount")){validate24.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.readyCount !== undefined){let data4 = data3.readyCount;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){validate24.errors = [{instancePath:instancePath+"/data/readyCount",schemaPath:"#/properties/data/properties/readyCount/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}}}}else {validate24.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate24.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate24.errors = vErrors;return errors === 0;}exports.matchmaking_found_event = validate25;const schema26 = {"$id":"https://schema.beyondallreason.dev/tachyon/matchmaking/found/event.json","$schema":"http://json-schema.org/draft-07/schema#","title":"MatchmakingFoundEvent","tachyon":{"source":"server","target":"user","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"event"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/found"},"data":{"title":"MatchmakingFoundEventData","type":"object","properties":{"queueId":{"type":"string"},"timeoutMs":{"type":"integer"}},"required":["queueId","timeoutMs"]}},"required":["type","messageId","commandId","data"]};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/matchmaking/found/event.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate25.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("event" !== data.type){validate25.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate25.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("matchmaking/found" !== data.commandId){validate25.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/found"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.queueId === undefined) && (missing1 = "queueId")) || ((data3.timeoutMs === undefined) && (missing1 = "timeoutMs"))){validate25.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.queueId !== undefined){const _errs7 = errors;if(typeof data3.queueId !== "string"){validate25.errors = [{instancePath:instancePath+"/data/queueId",schemaPath:"#/properties/data/properties/queueId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data3.timeoutMs !== undefined){let data5 = data3.timeoutMs;const _errs9 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){validate25.errors = [{instancePath:instancePath+"/data/timeoutMs",schemaPath:"#/properties/data/properties/timeoutMs/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}else {validate25.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate25.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate25.errors = vErrors;return errors === 0;}exports.matchmaking_cancel_request = validate26;const schema27 = {"$id":"https://schema.beyondallreason.dev/tachyon/matchmaking/cancel/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"MatchmakingCancelRequest","tachyon":{"source":"user","target":"server","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel"}},"required":["type","messageId","commandId"]};function validate26(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/matchmaking/cancel/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate26.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate26.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate26.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("matchmaking/cancel" !== data.commandId){validate26.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}}else {validate26.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate26.errors = vErrors;return errors === 0;}exports.matchmaking_cancel_response = validate27;const schema28 = {"$id":"https://schema.beyondallreason.dev/tachyon/matchmaking/cancel/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"MatchmakingCancelResponse","tachyon":{"source":"server","target":"user","scopes":["tachyon.lobby"]},"anyOf":[{"title":"MatchmakingCancelOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel"},"status":{"const":"success"}},"required":["type","messageId","commandId","status"]},{"title":"MatchmakingCancelFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel"},"status":{"const":"failed"},"reason":{"enum":["not_queued","internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/matchmaking/cancel/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("matchmaking/cancel" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}}else {const err5 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs8 = errors;if(errors === _errs8){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err6 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.type !== undefined){const _errs10 = errors;if("response" !== data.type){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){const _errs13 = errors;if("matchmaking/cancel" !== data.commandId){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){const _errs14 = errors;if("failed" !== data.status){const err10 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs14 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs15 = errors;if(!(((((data8 === "not_queued") || (data8 === "internal_error")) || (data8 === "unauthorized")) || (data8 === "invalid_request")) || (data8 === "command_unimplemented"))){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema28.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}}}}}}}else {const err12 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err13 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate27.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate27.errors = vErrors;return errors === 0;}exports.battle_start_request = validate28;const schema29 = {"$id":"https://schema.beyondallreason.dev/tachyon/battle/start/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"BattleStartRequest","tachyon":{"source":"server","target":"user","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"battle/start"},"data":{"title":"BattleStartRequestData","type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"},"ip":{"type":"string"},"port":{"type":"number"}},"required":["username","password","ip","port"]}},"required":["type","messageId","commandId","data"]};function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/battle/start/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate28.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate28.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate28.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("battle/start" !== data.commandId){validate28.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "battle/start"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((((data3.username === undefined) && (missing1 = "username")) || ((data3.password === undefined) && (missing1 = "password"))) || ((data3.ip === undefined) && (missing1 = "ip"))) || ((data3.port === undefined) && (missing1 = "port"))){validate28.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.username !== undefined){const _errs7 = errors;if(typeof data3.username !== "string"){validate28.errors = [{instancePath:instancePath+"/data/username",schemaPath:"#/properties/data/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data3.password !== undefined){const _errs9 = errors;if(typeof data3.password !== "string"){validate28.errors = [{instancePath:instancePath+"/data/password",schemaPath:"#/properties/data/properties/password/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data3.ip !== undefined){const _errs11 = errors;if(typeof data3.ip !== "string"){validate28.errors = [{instancePath:instancePath+"/data/ip",schemaPath:"#/properties/data/properties/ip/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data3.port !== undefined){let data7 = data3.port;const _errs13 = errors;if(!((typeof data7 == "number") && (isFinite(data7)))){validate28.errors = [{instancePath:instancePath+"/data/port",schemaPath:"#/properties/data/properties/port/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs13 === errors;}else {var valid1 = true;}}}}}}else {validate28.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate28.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate28.errors = vErrors;return errors === 0;}exports.battle_start_response = validate29;const schema30 = {"$id":"https://schema.beyondallreason.dev/tachyon/battle/start/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"BattleStartResponse","tachyon":{"source":"user","target":"server","scopes":["tachyon.lobby"]},"anyOf":[{"title":"BattleStartOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"battle/start"},"status":{"const":"success"}},"required":["type","messageId","commandId","status"]},{"title":"BattleStartFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"battle/start"},"status":{"const":"failed"},"reason":{"enum":["internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate29(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/battle/start/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("battle/start" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "battle/start"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}}else {const err5 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs8 = errors;if(errors === _errs8){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err6 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.type !== undefined){const _errs10 = errors;if("response" !== data.type){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){const _errs13 = errors;if("battle/start" !== data.commandId){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "battle/start"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){const _errs14 = errors;if("failed" !== data.status){const err10 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs14 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs15 = errors;if(!((((data8 === "internal_error") || (data8 === "unauthorized")) || (data8 === "invalid_request")) || (data8 === "command_unimplemented"))){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema30.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}}}}}}}else {const err12 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err13 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate29.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate29.errors = vErrors;return errors === 0;}exports.autohost_update_event = validate30;const schema31 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/update/event.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostUpdateEvent","tachyon":{"source":"autohost","target":"server","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"event"},"messageId":{"type":"string"},"commandId":{"const":"autohost/update"},"data":{"title":"AutohostUpdateEventData","type":"object","properties":{"battleId":{"type":"string","format":"uuid"},"time":{"$ref":"../../definitions/unixTime.json"},"update":{"anyOf":[{"title":"StartUpdate","description":"The battle has started.","type":"object","properties":{"type":{"const":"start"}},"required":["type"]},{"title":"FinishedUpdate","description":"The battle finished, generated once per every single player reporting who won.","type":"object","properties":{"type":{"const":"finished"},"userId":{"$ref":"../../definitions/userId.json"},"winningAllyTeams":{"description":"Ally team IDs","type":"array","items":{"type":"integer"},"minItems":1}},"required":["type","userId","winningAllyTeams"]},{"title":"EngineMessageUpdate","description":"A message from the engine, e.g. some ip is trying to connect.","type":"object","properties":{"type":{"const":"engine_message"},"message":{"type":"string"}},"required":["type","message"]},{"title":"EngineWarningUpdate","description":"A warning from the engine.","type":"object","properties":{"type":{"const":"engine_warning"},"message":{"type":"string"}},"required":["type","message"]},{"title":"EngineQuitUpdate","description":"The engine process for battle has quit cleanly, no more updates will be sent for this battle.","type":"object","properties":{"type":{"const":"engine_quit"}},"required":["type"]},{"title":"EngineCrashUpdate","description":"The engine process for battle has crashed, no more updates will be sent for this battle.","type":"object","properties":{"type":{"const":"engine_crash"},"details":{"description":"Optional, short, details of the crash.","type":"string"}},"required":["type"]},{"title":"PlayerJoinedUpdate","type":"object","properties":{"type":{"const":"player_joined"},"userId":{"$ref":"../../definitions/userId.json"},"playerNumber":{"description":"Player number in the game, can be useful for custom commands","type":"integer"}},"required":["type","userId","playerNumber"]},{"title":"PlayerLeftUpdate","type":"object","properties":{"type":{"const":"player_left"},"userId":{"$ref":"../../definitions/userId.json"},"reason":{"enum":["lost_connection","left","kicked"]}},"required":["type","userId","reason"]},{"title":"PlayerChatUpdate","anyOf":[{"type":"object","properties":{"type":{"const":"player_chat"},"userId":{"$ref":"../../definitions/userId.json"},"message":{"type":"string"},"destination":{"enum":["allies","all","spectators"]}},"required":["type","userId","message","destination"]},{"type":"object","properties":{"type":{"const":"player_chat"},"userId":{"$ref":"../../definitions/userId.json"},"message":{"type":"string"},"destination":{"const":"player"},"toUserId":{"$ref":"../../definitions/userId.json"}},"required":["type","userId","message","destination","toUserId"]}]},{"title":"PlayerDefeatedUpdate","type":"object","properties":{"type":{"const":"player_defeated"},"userId":{"$ref":"../../definitions/userId.json"}},"required":["type","userId"]},{"title":"LuaMsgUpdate","description":"This update is generated only for messages matching luamsgRegexp set in the battle start script.","type":"object","properties":{"type":{"const":"luamsg"},"userId":{"$ref":"../../definitions/userId.json"},"script":{"enum":["ui","game","rules"]},"uiMode":{"description":"Set when script is 'ui'","enum":["all","allies","spectators"]},"data":{"type":"string","contentEncoding":"base64","contentMediaType":"application/octet-stream"}},"required":["type","userId","script","data"]}]}},"required":["battleId","time","update"]}},"required":["type","messageId","commandId","data"]};const schema32 = {"$id":"https://schema.beyondallreason.dev/tachyon/definitions/unixTime.json","title":"UnixTime","description":"Unix timestamp in microseconds","type":"integer","examples":[1705432698000000]};const schema33 = {"$id":"https://schema.beyondallreason.dev/tachyon/definitions/userId.json","title":"UserId","type":"string","format":"uuid","examples":["f47a7e1e-4b2f-4d3d-3f3c-1f0f0e4b7e1e"]};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/update/event.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate30.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("event" !== data.type){validate30.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate30.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("autohost/update" !== data.commandId){validate30.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/update"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((((data3.battleId === undefined) && (missing1 = "battleId")) || ((data3.time === undefined) && (missing1 = "time"))) || ((data3.update === undefined) && (missing1 = "update"))){validate30.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.battleId !== undefined){let data4 = data3.battleId;const _errs7 = errors;if(errors === _errs7){if(errors === _errs7){if(typeof data4 === "string"){if(!(formats0.test(data4))){validate30.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate30.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data3.time !== undefined){let data5 = data3.time;const _errs9 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){validate30.errors = [{instancePath:instancePath+"/data/time",schemaPath:"../../definitions/unixTime.json/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data3.update !== undefined){let data6 = data3.update;const _errs12 = errors;const _errs13 = errors;let valid3 = false;const _errs14 = errors;if(errors === _errs14){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing2;if((data6.type === undefined) && (missing2 = "type")){const err0 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/0/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data6.type !== undefined){if("start" !== data6.type){const err1 = {instancePath:instancePath+"/data/update/type",schemaPath:"#/properties/data/properties/update/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "start"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}else {const err2 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var _valid0 = _errs14 === errors;valid3 = valid3 || _valid0;if(!valid3){const _errs17 = errors;if(errors === _errs17){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing3;if((((data6.type === undefined) && (missing3 = "type")) || ((data6.userId === undefined) && (missing3 = "userId"))) || ((data6.winningAllyTeams === undefined) && (missing3 = "winningAllyTeams"))){const err3 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/1/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data6.type !== undefined){const _errs19 = errors;if("finished" !== data6.type){const err4 = {instancePath:instancePath+"/data/update/type",schemaPath:"#/properties/data/properties/update/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "finished"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid5 = _errs19 === errors;}else {var valid5 = true;}if(valid5){if(data6.userId !== undefined){let data9 = data6.userId;const _errs20 = errors;const _errs21 = errors;if(errors === _errs21){if(errors === _errs21){if(typeof data9 === "string"){if(!(formats0.test(data9))){const err5 = {instancePath:instancePath+"/data/update/userId",schemaPath:"../../definitions/userId.json/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/data/update/userId",schemaPath:"../../definitions/userId.json/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}var valid5 = _errs20 === errors;}else {var valid5 = true;}if(valid5){if(data6.winningAllyTeams !== undefined){let data10 = data6.winningAllyTeams;const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data10)){if(data10.length < 1){const err7 = {instancePath:instancePath+"/data/update/winningAllyTeams",schemaPath:"#/properties/data/properties/update/anyOf/1/properties/winningAllyTeams/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {var valid7 = true;const len0 = data10.length;for(let i0=0; i0<len0; i0++){let data11 = data10[i0];const _errs25 = errors;if(!(((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11))) && (isFinite(data11)))){const err8 = {instancePath:instancePath+"/data/update/winningAllyTeams/" + i0,schemaPath:"#/properties/data/properties/update/anyOf/1/properties/winningAllyTeams/items/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid7 = _errs25 === errors;if(!valid7){break;}}}}else {const err9 = {instancePath:instancePath+"/data/update/winningAllyTeams",schemaPath:"#/properties/data/properties/update/anyOf/1/properties/winningAllyTeams/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var valid5 = _errs23 === errors;}else {var valid5 = true;}}}}}else {const err10 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var _valid0 = _errs17 === errors;valid3 = valid3 || _valid0;if(!valid3){const _errs27 = errors;if(errors === _errs27){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing4;if(((data6.type === undefined) && (missing4 = "type")) || ((data6.message === undefined) && (missing4 = "message"))){const err11 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/2/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {if(data6.type !== undefined){const _errs29 = errors;if("engine_message" !== data6.type){const err12 = {instancePath:instancePath+"/data/update/type",schemaPath:"#/properties/data/properties/update/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue: "engine_message"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid8 = _errs29 === errors;}else {var valid8 = true;}if(valid8){if(data6.message !== undefined){const _errs30 = errors;if(typeof data6.message !== "string"){const err13 = {instancePath:instancePath+"/data/update/message",schemaPath:"#/properties/data/properties/update/anyOf/2/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid8 = _errs30 === errors;}else {var valid8 = true;}}}}else {const err14 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}var _valid0 = _errs27 === errors;valid3 = valid3 || _valid0;if(!valid3){const _errs32 = errors;if(errors === _errs32){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing5;if(((data6.type === undefined) && (missing5 = "type")) || ((data6.message === undefined) && (missing5 = "message"))){const err15 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/3/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {if(data6.type !== undefined){const _errs34 = errors;if("engine_warning" !== data6.type){const err16 = {instancePath:instancePath+"/data/update/type",schemaPath:"#/properties/data/properties/update/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue: "engine_warning"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid9 = _errs34 === errors;}else {var valid9 = true;}if(valid9){if(data6.message !== undefined){const _errs35 = errors;if(typeof data6.message !== "string"){const err17 = {instancePath:instancePath+"/data/update/message",schemaPath:"#/properties/data/properties/update/anyOf/3/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid9 = _errs35 === errors;}else {var valid9 = true;}}}}else {const err18 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid0 = _errs32 === errors;valid3 = valid3 || _valid0;if(!valid3){const _errs37 = errors;if(errors === _errs37){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing6;if((data6.type === undefined) && (missing6 = "type")){const err19 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/4/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {if(data6.type !== undefined){if("engine_quit" !== data6.type){const err20 = {instancePath:instancePath+"/data/update/type",schemaPath:"#/properties/data/properties/update/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue: "engine_quit"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}}else {const err21 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}var _valid0 = _errs37 === errors;valid3 = valid3 || _valid0;if(!valid3){const _errs40 = errors;if(errors === _errs40){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing7;if((data6.type === undefined) && (missing7 = "type")){const err22 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/5/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(data6.type !== undefined){const _errs42 = errors;if("engine_crash" !== data6.type){const err23 = {instancePath:instancePath+"/data/update/type",schemaPath:"#/properties/data/properties/update/anyOf/5/properties/type/const",keyword:"const",params:{allowedValue: "engine_crash"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid11 = _errs42 === errors;}else {var valid11 = true;}if(valid11){if(data6.details !== undefined){const _errs43 = errors;if(typeof data6.details !== "string"){const err24 = {instancePath:instancePath+"/data/update/details",schemaPath:"#/properties/data/properties/update/anyOf/5/properties/details/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid11 = _errs43 === errors;}else {var valid11 = true;}}}}else {const err25 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}var _valid0 = _errs40 === errors;valid3 = valid3 || _valid0;if(!valid3){const _errs45 = errors;if(errors === _errs45){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing8;if((((data6.type === undefined) && (missing8 = "type")) || ((data6.userId === undefined) && (missing8 = "userId"))) || ((data6.playerNumber === undefined) && (missing8 = "playerNumber"))){const err26 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/6/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}else {if(data6.type !== undefined){const _errs47 = errors;if("player_joined" !== data6.type){const err27 = {instancePath:instancePath+"/data/update/type",schemaPath:"#/properties/data/properties/update/anyOf/6/properties/type/const",keyword:"const",params:{allowedValue: "player_joined"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid12 = _errs47 === errors;}else {var valid12 = true;}if(valid12){if(data6.userId !== undefined){let data20 = data6.userId;const _errs48 = errors;const _errs49 = errors;if(errors === _errs49){if(errors === _errs49){if(typeof data20 === "string"){if(!(formats0.test(data20))){const err28 = {instancePath:instancePath+"/data/update/userId",schemaPath:"../../definitions/userId.json/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/data/update/userId",schemaPath:"../../definitions/userId.json/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}var valid12 = _errs48 === errors;}else {var valid12 = true;}if(valid12){if(data6.playerNumber !== undefined){let data21 = data6.playerNumber;const _errs51 = errors;if(!(((typeof data21 == "number") && (!(data21 % 1) && !isNaN(data21))) && (isFinite(data21)))){const err30 = {instancePath:instancePath+"/data/update/playerNumber",schemaPath:"#/properties/data/properties/update/anyOf/6/properties/playerNumber/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid12 = _errs51 === errors;}else {var valid12 = true;}}}}}else {const err31 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/6/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}var _valid0 = _errs45 === errors;valid3 = valid3 || _valid0;if(!valid3){const _errs53 = errors;if(errors === _errs53){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing9;if((((data6.type === undefined) && (missing9 = "type")) || ((data6.userId === undefined) && (missing9 = "userId"))) || ((data6.reason === undefined) && (missing9 = "reason"))){const err32 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/7/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data6.type !== undefined){const _errs55 = errors;if("player_left" !== data6.type){const err33 = {instancePath:instancePath+"/data/update/type",schemaPath:"#/properties/data/properties/update/anyOf/7/properties/type/const",keyword:"const",params:{allowedValue: "player_left"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid14 = _errs55 === errors;}else {var valid14 = true;}if(valid14){if(data6.userId !== undefined){let data23 = data6.userId;const _errs56 = errors;const _errs57 = errors;if(errors === _errs57){if(errors === _errs57){if(typeof data23 === "string"){if(!(formats0.test(data23))){const err34 = {instancePath:instancePath+"/data/update/userId",schemaPath:"../../definitions/userId.json/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}else {const err35 = {instancePath:instancePath+"/data/update/userId",schemaPath:"../../definitions/userId.json/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}}var valid14 = _errs56 === errors;}else {var valid14 = true;}if(valid14){if(data6.reason !== undefined){let data24 = data6.reason;const _errs59 = errors;if(!(((data24 === "lost_connection") || (data24 === "left")) || (data24 === "kicked"))){const err36 = {instancePath:instancePath+"/data/update/reason",schemaPath:"#/properties/data/properties/update/anyOf/7/properties/reason/enum",keyword:"enum",params:{allowedValues: schema31.properties.data.properties.update.anyOf[7].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid14 = _errs59 === errors;}else {var valid14 = true;}}}}}else {const err37 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/7/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}var _valid0 = _errs53 === errors;valid3 = valid3 || _valid0;if(!valid3){const _errs60 = errors;const _errs61 = errors;let valid16 = false;const _errs62 = errors;if(errors === _errs62){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing10;if(((((data6.type === undefined) && (missing10 = "type")) || ((data6.userId === undefined) && (missing10 = "userId"))) || ((data6.message === undefined) && (missing10 = "message"))) || ((data6.destination === undefined) && (missing10 = "destination"))){const err38 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/8/anyOf/0/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {if(data6.type !== undefined){const _errs64 = errors;if("player_chat" !== data6.type){const err39 = {instancePath:instancePath+"/data/update/type",schemaPath:"#/properties/data/properties/update/anyOf/8/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "player_chat"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid17 = _errs64 === errors;}else {var valid17 = true;}if(valid17){if(data6.userId !== undefined){let data26 = data6.userId;const _errs65 = errors;const _errs66 = errors;if(errors === _errs66){if(errors === _errs66){if(typeof data26 === "string"){if(!(formats0.test(data26))){const err40 = {instancePath:instancePath+"/data/update/userId",schemaPath:"../../definitions/userId.json/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {instancePath:instancePath+"/data/update/userId",schemaPath:"../../definitions/userId.json/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var valid17 = _errs65 === errors;}else {var valid17 = true;}if(valid17){if(data6.message !== undefined){const _errs68 = errors;if(typeof data6.message !== "string"){const err42 = {instancePath:instancePath+"/data/update/message",schemaPath:"#/properties/data/properties/update/anyOf/8/anyOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var valid17 = _errs68 === errors;}else {var valid17 = true;}if(valid17){if(data6.destination !== undefined){let data28 = data6.destination;const _errs70 = errors;if(!(((data28 === "allies") || (data28 === "all")) || (data28 === "spectators"))){const err43 = {instancePath:instancePath+"/data/update/destination",schemaPath:"#/properties/data/properties/update/anyOf/8/anyOf/0/properties/destination/enum",keyword:"enum",params:{allowedValues: schema31.properties.data.properties.update.anyOf[8].anyOf[0].properties.destination.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid17 = _errs70 === errors;}else {var valid17 = true;}}}}}}else {const err44 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/8/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}var _valid1 = _errs62 === errors;valid16 = valid16 || _valid1;if(!valid16){const _errs71 = errors;if(errors === _errs71){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing11;if((((((data6.type === undefined) && (missing11 = "type")) || ((data6.userId === undefined) && (missing11 = "userId"))) || ((data6.message === undefined) && (missing11 = "message"))) || ((data6.destination === undefined) && (missing11 = "destination"))) || ((data6.toUserId === undefined) && (missing11 = "toUserId"))){const err45 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/8/anyOf/1/required",keyword:"required",params:{missingProperty: missing11},message:"must have required property '"+missing11+"'"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}else {if(data6.type !== undefined){const _errs73 = errors;if("player_chat" !== data6.type){const err46 = {instancePath:instancePath+"/data/update/type",schemaPath:"#/properties/data/properties/update/anyOf/8/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "player_chat"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid19 = _errs73 === errors;}else {var valid19 = true;}if(valid19){if(data6.userId !== undefined){let data30 = data6.userId;const _errs74 = errors;const _errs75 = errors;if(errors === _errs75){if(errors === _errs75){if(typeof data30 === "string"){if(!(formats0.test(data30))){const err47 = {instancePath:instancePath+"/data/update/userId",schemaPath:"../../definitions/userId.json/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}else {const err48 = {instancePath:instancePath+"/data/update/userId",schemaPath:"../../definitions/userId.json/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}var valid19 = _errs74 === errors;}else {var valid19 = true;}if(valid19){if(data6.message !== undefined){const _errs77 = errors;if(typeof data6.message !== "string"){const err49 = {instancePath:instancePath+"/data/update/message",schemaPath:"#/properties/data/properties/update/anyOf/8/anyOf/1/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid19 = _errs77 === errors;}else {var valid19 = true;}if(valid19){if(data6.destination !== undefined){const _errs79 = errors;if("player" !== data6.destination){const err50 = {instancePath:instancePath+"/data/update/destination",schemaPath:"#/properties/data/properties/update/anyOf/8/anyOf/1/properties/destination/const",keyword:"const",params:{allowedValue: "player"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid19 = _errs79 === errors;}else {var valid19 = true;}if(valid19){if(data6.toUserId !== undefined){let data33 = data6.toUserId;const _errs80 = errors;const _errs81 = errors;if(errors === _errs81){if(errors === _errs81){if(typeof data33 === "string"){if(!(formats0.test(data33))){const err51 = {instancePath:instancePath+"/data/update/toUserId",schemaPath:"../../definitions/userId.json/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}else {const err52 = {instancePath:instancePath+"/data/update/toUserId",schemaPath:"../../definitions/userId.json/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}var valid19 = _errs80 === errors;}else {var valid19 = true;}}}}}}}else {const err53 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/8/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}var _valid1 = _errs71 === errors;valid16 = valid16 || _valid1;}if(!valid16){const err54 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/8/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs61;if(vErrors !== null){if(_errs61){vErrors.length = _errs61;}else {vErrors = null;}}}var _valid0 = _errs60 === errors;valid3 = valid3 || _valid0;if(!valid3){const _errs83 = errors;if(errors === _errs83){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing12;if(((data6.type === undefined) && (missing12 = "type")) || ((data6.userId === undefined) && (missing12 = "userId"))){const err55 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/9/required",keyword:"required",params:{missingProperty: missing12},message:"must have required property '"+missing12+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}else {if(data6.type !== undefined){const _errs85 = errors;if("player_defeated" !== data6.type){const err56 = {instancePath:instancePath+"/data/update/type",schemaPath:"#/properties/data/properties/update/anyOf/9/properties/type/const",keyword:"const",params:{allowedValue: "player_defeated"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid22 = _errs85 === errors;}else {var valid22 = true;}if(valid22){if(data6.userId !== undefined){let data35 = data6.userId;const _errs86 = errors;const _errs87 = errors;if(errors === _errs87){if(errors === _errs87){if(typeof data35 === "string"){if(!(formats0.test(data35))){const err57 = {instancePath:instancePath+"/data/update/userId",schemaPath:"../../definitions/userId.json/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}else {const err58 = {instancePath:instancePath+"/data/update/userId",schemaPath:"../../definitions/userId.json/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}var valid22 = _errs86 === errors;}else {var valid22 = true;}}}}else {const err59 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/9/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var _valid0 = _errs83 === errors;valid3 = valid3 || _valid0;if(!valid3){const _errs89 = errors;if(errors === _errs89){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing13;if(((((data6.type === undefined) && (missing13 = "type")) || ((data6.userId === undefined) && (missing13 = "userId"))) || ((data6.script === undefined) && (missing13 = "script"))) || ((data6.data === undefined) && (missing13 = "data"))){const err60 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/10/required",keyword:"required",params:{missingProperty: missing13},message:"must have required property '"+missing13+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data6.type !== undefined){const _errs91 = errors;if("luamsg" !== data6.type){const err61 = {instancePath:instancePath+"/data/update/type",schemaPath:"#/properties/data/properties/update/anyOf/10/properties/type/const",keyword:"const",params:{allowedValue: "luamsg"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}var valid24 = _errs91 === errors;}else {var valid24 = true;}if(valid24){if(data6.userId !== undefined){let data37 = data6.userId;const _errs92 = errors;const _errs93 = errors;if(errors === _errs93){if(errors === _errs93){if(typeof data37 === "string"){if(!(formats0.test(data37))){const err62 = {instancePath:instancePath+"/data/update/userId",schemaPath:"../../definitions/userId.json/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}else {const err63 = {instancePath:instancePath+"/data/update/userId",schemaPath:"../../definitions/userId.json/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}var valid24 = _errs92 === errors;}else {var valid24 = true;}if(valid24){if(data6.script !== undefined){let data38 = data6.script;const _errs95 = errors;if(!(((data38 === "ui") || (data38 === "game")) || (data38 === "rules"))){const err64 = {instancePath:instancePath+"/data/update/script",schemaPath:"#/properties/data/properties/update/anyOf/10/properties/script/enum",keyword:"enum",params:{allowedValues: schema31.properties.data.properties.update.anyOf[10].properties.script.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var valid24 = _errs95 === errors;}else {var valid24 = true;}if(valid24){if(data6.uiMode !== undefined){let data39 = data6.uiMode;const _errs96 = errors;if(!(((data39 === "all") || (data39 === "allies")) || (data39 === "spectators"))){const err65 = {instancePath:instancePath+"/data/update/uiMode",schemaPath:"#/properties/data/properties/update/anyOf/10/properties/uiMode/enum",keyword:"enum",params:{allowedValues: schema31.properties.data.properties.update.anyOf[10].properties.uiMode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var valid24 = _errs96 === errors;}else {var valid24 = true;}if(valid24){if(data6.data !== undefined){const _errs97 = errors;if(typeof data6.data !== "string"){const err66 = {instancePath:instancePath+"/data/update/data",schemaPath:"#/properties/data/properties/update/anyOf/10/properties/data/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid24 = _errs97 === errors;}else {var valid24 = true;}}}}}}}else {const err67 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf/10/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var _valid0 = _errs89 === errors;valid3 = valid3 || _valid0;}}}}}}}}}}if(!valid3){const err68 = {instancePath:instancePath+"/data/update",schemaPath:"#/properties/data/properties/update/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;validate30.errors = vErrors;return false;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}var valid1 = _errs12 === errors;}else {var valid1 = true;}}}}}else {validate30.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate30.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate30.errors = vErrors;return errors === 0;}exports.autohost_subscribeUpdates_request = validate31;const schema41 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/subscribeUpdates/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostSubscribeUpdatesRequest","tachyon":{"source":"server","target":"autohost","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"autohost/subscribeUpdates"},"data":{"title":"AutohostSubscribeUpdatesRequestData","type":"object","properties":{"since":{"$ref":"../../definitions/unixTime.json"}},"required":["since"]}},"required":["type","messageId","commandId","data"]};function validate31(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/subscribeUpdates/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate31.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate31.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate31.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("autohost/subscribeUpdates" !== data.commandId){validate31.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/subscribeUpdates"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.since === undefined) && (missing1 = "since")){validate31.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.since !== undefined){let data4 = data3.since;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){validate31.errors = [{instancePath:instancePath+"/data/since",schemaPath:"../../definitions/unixTime.json/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}}}}else {validate31.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate31.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate31.errors = vErrors;return errors === 0;}exports.autohost_subscribeUpdates_response = validate32;const schema43 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/subscribeUpdates/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostSubscribeUpdatesResponse","tachyon":{"source":"autohost","target":"server","scopes":["tachyon.lobby"]},"anyOf":[{"title":"AutohostSubscribeUpdatesOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/subscribeUpdates"},"status":{"const":"success"}},"required":["type","messageId","commandId","status"]},{"title":"AutohostSubscribeUpdatesFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/subscribeUpdates"},"status":{"const":"failed"},"reason":{"enum":["internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate32(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/subscribeUpdates/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("autohost/subscribeUpdates" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/subscribeUpdates"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}}else {const err5 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs8 = errors;if(errors === _errs8){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err6 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.type !== undefined){const _errs10 = errors;if("response" !== data.type){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){const _errs13 = errors;if("autohost/subscribeUpdates" !== data.commandId){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/subscribeUpdates"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){const _errs14 = errors;if("failed" !== data.status){const err10 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs14 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs15 = errors;if(!((((data8 === "internal_error") || (data8 === "unauthorized")) || (data8 === "invalid_request")) || (data8 === "command_unimplemented"))){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema43.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}}}}}}}else {const err12 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err13 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate32.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate32.errors = vErrors;return errors === 0;}exports.autohost_status_event = validate33;const schema44 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/status/event.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostStatusEvent","tachyon":{"source":"autohost","target":"server","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"event"},"messageId":{"type":"string"},"commandId":{"const":"autohost/status"},"data":{"title":"AutohostStatusEventData","type":"object","properties":{"maxBattles":{"type":"integer","minimum":0},"currentBattles":{"type":"integer","minimum":0}},"required":["maxBattles","currentBattles"]}},"required":["type","messageId","commandId","data"]};function validate33(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/status/event.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate33.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("event" !== data.type){validate33.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "event"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate33.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("autohost/status" !== data.commandId){validate33.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/status"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.maxBattles === undefined) && (missing1 = "maxBattles")) || ((data3.currentBattles === undefined) && (missing1 = "currentBattles"))){validate33.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.maxBattles !== undefined){let data4 = data3.maxBattles;const _errs7 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){validate33.errors = [{instancePath:instancePath+"/data/maxBattles",schemaPath:"#/properties/data/properties/maxBattles/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs7){if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 0 || isNaN(data4)){validate33.errors = [{instancePath:instancePath+"/data/maxBattles",schemaPath:"#/properties/data/properties/maxBattles/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data3.currentBattles !== undefined){let data5 = data3.currentBattles;const _errs9 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){validate33.errors = [{instancePath:instancePath+"/data/currentBattles",schemaPath:"#/properties/data/properties/currentBattles/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs9){if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 0 || isNaN(data5)){validate33.errors = [{instancePath:instancePath+"/data/currentBattles",schemaPath:"#/properties/data/properties/currentBattles/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}else {validate33.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate33.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate33.errors = vErrors;return errors === 0;}exports.autohost_start_request = validate34;const schema45 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/start/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostStartRequest","tachyon":{"source":"server","target":"autohost","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"autohost/start"},"data":{"title":"AutohostStartRequestData","type":"object","properties":{"battleId":{"type":"string","format":"uuid"},"engineVersion":{"type":"string","pattern":"^[0-9a-zA-Z .+-]+$"},"gameName":{"type":"string"},"mapName":{"type":"string"},"gameArchiveHash":{"type":"string","pattern":"^[a-fA-F0-9]{128}$"},"mapArchiveHash":{"type":"string","pattern":"^[a-fA-F0-9]{128}$"},"startDelay":{"type":"integer"},"startPosType":{"$ref":"../../definitions/startPosType.json"},"allyTeams":{"type":"array","items":{"$ref":"../../definitions/allyTeam.json"},"minItems":1},"spectators":{"type":"array","items":{"$ref":"../../definitions/player.json"}},"mapOptions":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"gameOptions":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"restrictions":{"description":"Mapping from unitDefId to the maximum number of units of that type that can be built.","type":"object","patternProperties":{"^(.*)$":{"type":"integer","minimum":0}}},"luamsgRegexp":{"description":"When set, battle will generate updates for luamsgs matching this regexp. No updates will be generated if this is not set.","type":"string","format":"regex"}},"required":["battleId","engineVersion","gameName","mapName","startPosType","allyTeams"]}},"required":["type","messageId","commandId","data"]};const schema46 = {"$id":"https://schema.beyondallreason.dev/tachyon/definitions/startPosType.json","title":"StartPosType","enum":["fixed","random","ingame","beforegame"]};const formats26 = require("ajv-formats/dist/formats").fullFormats.regex;const pattern0 = new RegExp("^[0-9a-zA-Z .+-]+$", "u");const pattern1 = new RegExp("^[a-fA-F0-9]{128}$", "u");const pattern4 = new RegExp("^(.*)$", "u");const schema47 = {"$id":"https://schema.beyondallreason.dev/tachyon/definitions/allyTeam.json","title":"AllyTeam","type":"object","properties":{"teams":{"type":"array","items":{"$ref":"../definitions/team.json"},"minItems":1},"startBox":{"$ref":"../definitions/startBox.json"},"allies":{"description":"0-based indexes into of the other allyteams to ally with","type":"array","items":{"type":"integer"}},"customProperties":{"$ref":"../definitions/customStartScriptProperties.json"}},"required":["teams"]};const schema55 = {"$id":"https://schema.beyondallreason.dev/tachyon/definitions/startBox.json","title":"StartBox","type":"object","properties":{"top":{"type":"number","minimum":0,"maximum":1},"bottom":{"type":"number","minimum":0,"maximum":1},"left":{"type":"number","minimum":0,"maximum":1},"right":{"type":"number","minimum":0,"maximum":1}},"required":["top","bottom","left","right"]};const schema51 = {"$id":"https://schema.beyondallreason.dev/tachyon/definitions/customStartScriptProperties.json","title":"CustomStartScriptProperties","description":"Additional custom properties to set in engine StartScript for this object, must not collide with existing properties","type":"object","patternProperties":{"^[a-zA-Z0-9_-]$":{"type":"string"}}};const schema48 = {"$id":"https://schema.beyondallreason.dev/tachyon/definitions/team.json","title":"Team","type":"object","properties":{"players":{"type":"array","items":{"$ref":"../definitions/player.json"}},"bots":{"type":"array","items":{"$ref":"../definitions/bot.json"}},"advantage":{"type":"number","minimum":-1},"incomeMultiplier":{"type":"number","minimum":0},"faction":{"type":"string"},"color":{"type":"object","properties":{"r":{"type":"number","minimum":0,"maximum":1},"g":{"type":"number","minimum":0,"maximum":1},"b":{"type":"number","minimum":0,"maximum":1}},"required":["r","g","b"]},"startPos":{"type":"object","properties":{"x":{"type":"integer"},"y":{"type":"integer"}},"required":["x","y"]},"customProperties":{"$ref":"../definitions/customStartScriptProperties.json"}}};const schema49 = {"$id":"https://schema.beyondallreason.dev/tachyon/definitions/player.json","title":"Player","type":"object","properties":{"userId":{"$ref":"../definitions/userId.json"},"name":{"description":"Name of the player, must be unique just like userId","type":"string"},"password":{"type":"string"},"rank":{"type":"integer"},"countryCode":{"type":"string"},"customProperties":{"$ref":"../definitions/customStartScriptProperties.json"}},"required":["userId","name","password"]};const pattern3 = new RegExp("^[a-zA-Z0-9_-]$", "u");function validate37(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/definitions/player.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.userId === undefined) && (missing0 = "userId")) || ((data.name === undefined) && (missing0 = "name"))) || ((data.password === undefined) && (missing0 = "password"))){validate37.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.userId !== undefined){let data0 = data.userId;const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(errors === _errs2){if(typeof data0 === "string"){if(!(formats0.test(data0))){validate37.errors = [{instancePath:instancePath+"/userId",schemaPath:"../definitions/userId.json/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate37.errors = [{instancePath:instancePath+"/userId",schemaPath:"../definitions/userId.json/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.name !== undefined){const _errs4 = errors;if(typeof data.name !== "string"){validate37.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.password !== undefined){const _errs6 = errors;if(typeof data.password !== "string"){validate37.errors = [{instancePath:instancePath+"/password",schemaPath:"#/properties/password/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.rank !== undefined){let data3 = data.rank;const _errs8 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){validate37.errors = [{instancePath:instancePath+"/rank",schemaPath:"#/properties/rank/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.countryCode !== undefined){const _errs10 = errors;if(typeof data.countryCode !== "string"){validate37.errors = [{instancePath:instancePath+"/countryCode",schemaPath:"#/properties/countryCode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs10 === errors;}else {var valid0 = true;}if(valid0){if(data.customProperties !== undefined){let data5 = data.customProperties;const _errs12 = errors;const _errs13 = errors;if(errors === _errs13){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){var valid3 = true;for(const key0 in data5){if(pattern3.test(key0)){const _errs15 = errors;if(typeof data5[key0] !== "string"){validate37.errors = [{instancePath:instancePath+"/customProperties/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"../definitions/customStartScriptProperties.json/patternProperties/%5E%5Ba-zA-Z0-9_-%5D%24/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs15 === errors;if(!valid3){break;}}}}else {validate37.errors = [{instancePath:instancePath+"/customProperties",schemaPath:"../definitions/customStartScriptProperties.json/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs12 === errors;}else {var valid0 = true;}}}}}}}}else {validate37.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate37.errors = vErrors;return errors === 0;}const schema52 = {"$id":"https://schema.beyondallreason.dev/tachyon/definitions/bot.json","title":"Bot","type":"object","properties":{"hostUserId":{"description":"UserId of the player hosting this AI","type":"string","format":"uuid"},"name":{"type":"string"},"aiShortName":{"description":"Short name of the AI library","type":"string"},"aiVersion":{"type":"string"},"aiOptions":{"description":"AI-specific options","type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"customProperties":{"$ref":"../definitions/customStartScriptProperties.json"}},"required":["hostUserId","aiShortName"]};function validate39(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/definitions/bot.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.hostUserId === undefined) && (missing0 = "hostUserId")) || ((data.aiShortName === undefined) && (missing0 = "aiShortName"))){validate39.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.hostUserId !== undefined){let data0 = data.hostUserId;const _errs1 = errors;if(errors === _errs1){if(errors === _errs1){if(typeof data0 === "string"){if(!(formats0.test(data0))){validate39.errors = [{instancePath:instancePath+"/hostUserId",schemaPath:"#/properties/hostUserId/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate39.errors = [{instancePath:instancePath+"/hostUserId",schemaPath:"#/properties/hostUserId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.name !== undefined){const _errs3 = errors;if(typeof data.name !== "string"){validate39.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.aiShortName !== undefined){const _errs5 = errors;if(typeof data.aiShortName !== "string"){validate39.errors = [{instancePath:instancePath+"/aiShortName",schemaPath:"#/properties/aiShortName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.aiVersion !== undefined){const _errs7 = errors;if(typeof data.aiVersion !== "string"){validate39.errors = [{instancePath:instancePath+"/aiVersion",schemaPath:"#/properties/aiVersion/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.aiOptions !== undefined){let data4 = data.aiOptions;const _errs9 = errors;if(errors === _errs9){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){var valid1 = true;for(const key0 in data4){if(pattern4.test(key0)){const _errs11 = errors;if(typeof data4[key0] !== "string"){validate39.errors = [{instancePath:instancePath+"/aiOptions/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/aiOptions/patternProperties/%5E(.*)%24/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs11 === errors;if(!valid1){break;}}}}else {validate39.errors = [{instancePath:instancePath+"/aiOptions",schemaPath:"#/properties/aiOptions/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.customProperties !== undefined){let data6 = data.customProperties;const _errs13 = errors;const _errs14 = errors;if(errors === _errs14){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){var valid3 = true;for(const key1 in data6){if(pattern3.test(key1)){const _errs16 = errors;if(typeof data6[key1] !== "string"){validate39.errors = [{instancePath:instancePath+"/customProperties/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"../definitions/customStartScriptProperties.json/patternProperties/%5E%5Ba-zA-Z0-9_-%5D%24/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs16 === errors;if(!valid3){break;}}}}else {validate39.errors = [{instancePath:instancePath+"/customProperties",schemaPath:"../definitions/customStartScriptProperties.json/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs13 === errors;}else {var valid0 = true;}}}}}}}}else {validate39.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate39.errors = vErrors;return errors === 0;}function validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/definitions/team.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(data.players !== undefined){let data0 = data.players;const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){var valid1 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){const _errs3 = errors;if(!(validate37(data0[i0], {instancePath:instancePath+"/players/" + i0,parentData:data0,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}else {validate36.errors = [{instancePath:instancePath+"/players",schemaPath:"#/properties/players/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.bots !== undefined){let data2 = data.bots;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data2)){var valid2 = true;const len1 = data2.length;for(let i1=0; i1<len1; i1++){const _errs6 = errors;if(!(validate39(data2[i1], {instancePath:instancePath+"/bots/" + i1,parentData:data2,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);errors = vErrors.length;}var valid2 = _errs6 === errors;if(!valid2){break;}}}else {validate36.errors = [{instancePath:instancePath+"/bots",schemaPath:"#/properties/bots/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.advantage !== undefined){let data4 = data.advantage;const _errs7 = errors;if(errors === _errs7){if((typeof data4 == "number") && (isFinite(data4))){if(data4 < -1 || isNaN(data4)){validate36.errors = [{instancePath:instancePath+"/advantage",schemaPath:"#/properties/advantage/minimum",keyword:"minimum",params:{comparison: ">=", limit: -1},message:"must be >= -1"}];return false;}}else {validate36.errors = [{instancePath:instancePath+"/advantage",schemaPath:"#/properties/advantage/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.incomeMultiplier !== undefined){let data5 = data.incomeMultiplier;const _errs9 = errors;if(errors === _errs9){if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 0 || isNaN(data5)){validate36.errors = [{instancePath:instancePath+"/incomeMultiplier",schemaPath:"#/properties/incomeMultiplier/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}else {validate36.errors = [{instancePath:instancePath+"/incomeMultiplier",schemaPath:"#/properties/incomeMultiplier/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.faction !== undefined){const _errs11 = errors;if(typeof data.faction !== "string"){validate36.errors = [{instancePath:instancePath+"/faction",schemaPath:"#/properties/faction/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.color !== undefined){let data7 = data.color;const _errs13 = errors;if(errors === _errs13){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing0;if((((data7.r === undefined) && (missing0 = "r")) || ((data7.g === undefined) && (missing0 = "g"))) || ((data7.b === undefined) && (missing0 = "b"))){validate36.errors = [{instancePath:instancePath+"/color",schemaPath:"#/properties/color/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data7.r !== undefined){let data8 = data7.r;const _errs15 = errors;if(errors === _errs15){if((typeof data8 == "number") && (isFinite(data8))){if(data8 > 1 || isNaN(data8)){validate36.errors = [{instancePath:instancePath+"/color/r",schemaPath:"#/properties/color/properties/r/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1"}];return false;}else {if(data8 < 0 || isNaN(data8)){validate36.errors = [{instancePath:instancePath+"/color/r",schemaPath:"#/properties/color/properties/r/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}else {validate36.errors = [{instancePath:instancePath+"/color/r",schemaPath:"#/properties/color/properties/r/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data7.g !== undefined){let data9 = data7.g;const _errs17 = errors;if(errors === _errs17){if((typeof data9 == "number") && (isFinite(data9))){if(data9 > 1 || isNaN(data9)){validate36.errors = [{instancePath:instancePath+"/color/g",schemaPath:"#/properties/color/properties/g/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1"}];return false;}else {if(data9 < 0 || isNaN(data9)){validate36.errors = [{instancePath:instancePath+"/color/g",schemaPath:"#/properties/color/properties/g/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}else {validate36.errors = [{instancePath:instancePath+"/color/g",schemaPath:"#/properties/color/properties/g/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid3 = _errs17 === errors;}else {var valid3 = true;}if(valid3){if(data7.b !== undefined){let data10 = data7.b;const _errs19 = errors;if(errors === _errs19){if((typeof data10 == "number") && (isFinite(data10))){if(data10 > 1 || isNaN(data10)){validate36.errors = [{instancePath:instancePath+"/color/b",schemaPath:"#/properties/color/properties/b/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1"}];return false;}else {if(data10 < 0 || isNaN(data10)){validate36.errors = [{instancePath:instancePath+"/color/b",schemaPath:"#/properties/color/properties/b/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}else {validate36.errors = [{instancePath:instancePath+"/color/b",schemaPath:"#/properties/color/properties/b/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid3 = _errs19 === errors;}else {var valid3 = true;}}}}}else {validate36.errors = [{instancePath:instancePath+"/color",schemaPath:"#/properties/color/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.startPos !== undefined){let data11 = data.startPos;const _errs21 = errors;if(errors === _errs21){if(data11 && typeof data11 == "object" && !Array.isArray(data11)){let missing1;if(((data11.x === undefined) && (missing1 = "x")) || ((data11.y === undefined) && (missing1 = "y"))){validate36.errors = [{instancePath:instancePath+"/startPos",schemaPath:"#/properties/startPos/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data11.x !== undefined){let data12 = data11.x;const _errs23 = errors;if(!(((typeof data12 == "number") && (!(data12 % 1) && !isNaN(data12))) && (isFinite(data12)))){validate36.errors = [{instancePath:instancePath+"/startPos/x",schemaPath:"#/properties/startPos/properties/x/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid4 = _errs23 === errors;}else {var valid4 = true;}if(valid4){if(data11.y !== undefined){let data13 = data11.y;const _errs25 = errors;if(!(((typeof data13 == "number") && (!(data13 % 1) && !isNaN(data13))) && (isFinite(data13)))){validate36.errors = [{instancePath:instancePath+"/startPos/y",schemaPath:"#/properties/startPos/properties/y/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid4 = _errs25 === errors;}else {var valid4 = true;}}}}else {validate36.errors = [{instancePath:instancePath+"/startPos",schemaPath:"#/properties/startPos/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.customProperties !== undefined){let data14 = data.customProperties;const _errs27 = errors;const _errs28 = errors;if(errors === _errs28){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){var valid6 = true;for(const key0 in data14){if(pattern3.test(key0)){const _errs30 = errors;if(typeof data14[key0] !== "string"){validate36.errors = [{instancePath:instancePath+"/customProperties/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"../definitions/customStartScriptProperties.json/patternProperties/%5E%5Ba-zA-Z0-9_-%5D%24/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs30 === errors;if(!valid6){break;}}}}else {validate36.errors = [{instancePath:instancePath+"/customProperties",schemaPath:"../definitions/customStartScriptProperties.json/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs27 === errors;}else {var valid0 = true;}}}}}}}}}else {validate36.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate36.errors = vErrors;return errors === 0;}function validate35(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/definitions/allyTeam.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.teams === undefined) && (missing0 = "teams")){validate35.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.teams !== undefined){let data0 = data.teams;const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){if(data0.length < 1){validate35.errors = [{instancePath:instancePath+"/teams",schemaPath:"#/properties/teams/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){const _errs3 = errors;if(!(validate36(data0[i0], {instancePath:instancePath+"/teams/" + i0,parentData:data0,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}}else {validate35.errors = [{instancePath:instancePath+"/teams",schemaPath:"#/properties/teams/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.startBox !== undefined){let data2 = data.startBox;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if(((((data2.top === undefined) && (missing1 = "top")) || ((data2.bottom === undefined) && (missing1 = "bottom"))) || ((data2.left === undefined) && (missing1 = "left"))) || ((data2.right === undefined) && (missing1 = "right"))){validate35.errors = [{instancePath:instancePath+"/startBox",schemaPath:"../definitions/startBox.json/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data2.top !== undefined){let data3 = data2.top;const _errs7 = errors;if(errors === _errs7){if((typeof data3 == "number") && (isFinite(data3))){if(data3 > 1 || isNaN(data3)){validate35.errors = [{instancePath:instancePath+"/startBox/top",schemaPath:"../definitions/startBox.json/properties/top/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1"}];return false;}else {if(data3 < 0 || isNaN(data3)){validate35.errors = [{instancePath:instancePath+"/startBox/top",schemaPath:"../definitions/startBox.json/properties/top/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}else {validate35.errors = [{instancePath:instancePath+"/startBox/top",schemaPath:"../definitions/startBox.json/properties/top/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid3 = _errs7 === errors;}else {var valid3 = true;}if(valid3){if(data2.bottom !== undefined){let data4 = data2.bottom;const _errs9 = errors;if(errors === _errs9){if((typeof data4 == "number") && (isFinite(data4))){if(data4 > 1 || isNaN(data4)){validate35.errors = [{instancePath:instancePath+"/startBox/bottom",schemaPath:"../definitions/startBox.json/properties/bottom/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1"}];return false;}else {if(data4 < 0 || isNaN(data4)){validate35.errors = [{instancePath:instancePath+"/startBox/bottom",schemaPath:"../definitions/startBox.json/properties/bottom/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}else {validate35.errors = [{instancePath:instancePath+"/startBox/bottom",schemaPath:"../definitions/startBox.json/properties/bottom/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid3 = _errs9 === errors;}else {var valid3 = true;}if(valid3){if(data2.left !== undefined){let data5 = data2.left;const _errs11 = errors;if(errors === _errs11){if((typeof data5 == "number") && (isFinite(data5))){if(data5 > 1 || isNaN(data5)){validate35.errors = [{instancePath:instancePath+"/startBox/left",schemaPath:"../definitions/startBox.json/properties/left/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1"}];return false;}else {if(data5 < 0 || isNaN(data5)){validate35.errors = [{instancePath:instancePath+"/startBox/left",schemaPath:"../definitions/startBox.json/properties/left/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}else {validate35.errors = [{instancePath:instancePath+"/startBox/left",schemaPath:"../definitions/startBox.json/properties/left/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid3 = _errs11 === errors;}else {var valid3 = true;}if(valid3){if(data2.right !== undefined){let data6 = data2.right;const _errs13 = errors;if(errors === _errs13){if((typeof data6 == "number") && (isFinite(data6))){if(data6 > 1 || isNaN(data6)){validate35.errors = [{instancePath:instancePath+"/startBox/right",schemaPath:"../definitions/startBox.json/properties/right/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1"}];return false;}else {if(data6 < 0 || isNaN(data6)){validate35.errors = [{instancePath:instancePath+"/startBox/right",schemaPath:"../definitions/startBox.json/properties/right/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}else {validate35.errors = [{instancePath:instancePath+"/startBox/right",schemaPath:"../definitions/startBox.json/properties/right/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid3 = _errs13 === errors;}else {var valid3 = true;}}}}}}else {validate35.errors = [{instancePath:instancePath+"/startBox",schemaPath:"../definitions/startBox.json/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.allies !== undefined){let data7 = data.allies;const _errs15 = errors;if(errors === _errs15){if(Array.isArray(data7)){var valid4 = true;const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];const _errs17 = errors;if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){validate35.errors = [{instancePath:instancePath+"/allies/" + i1,schemaPath:"#/properties/allies/items/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid4 = _errs17 === errors;if(!valid4){break;}}}else {validate35.errors = [{instancePath:instancePath+"/allies",schemaPath:"#/properties/allies/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.customProperties !== undefined){let data9 = data.customProperties;const _errs19 = errors;const _errs20 = errors;if(errors === _errs20){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){var valid6 = true;for(const key0 in data9){if(pattern3.test(key0)){const _errs22 = errors;if(typeof data9[key0] !== "string"){validate35.errors = [{instancePath:instancePath+"/customProperties/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"../definitions/customStartScriptProperties.json/patternProperties/%5E%5Ba-zA-Z0-9_-%5D%24/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs22 === errors;if(!valid6){break;}}}}else {validate35.errors = [{instancePath:instancePath+"/customProperties",schemaPath:"../definitions/customStartScriptProperties.json/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs19 === errors;}else {var valid0 = true;}}}}}}else {validate35.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate35.errors = vErrors;return errors === 0;}function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/start/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate34.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate34.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate34.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("autohost/start" !== data.commandId){validate34.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/start"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((((((data3.battleId === undefined) && (missing1 = "battleId")) || ((data3.engineVersion === undefined) && (missing1 = "engineVersion"))) || ((data3.gameName === undefined) && (missing1 = "gameName"))) || ((data3.mapName === undefined) && (missing1 = "mapName"))) || ((data3.startPosType === undefined) && (missing1 = "startPosType"))) || ((data3.allyTeams === undefined) && (missing1 = "allyTeams"))){validate34.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.battleId !== undefined){let data4 = data3.battleId;const _errs7 = errors;if(errors === _errs7){if(errors === _errs7){if(typeof data4 === "string"){if(!(formats0.test(data4))){validate34.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate34.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data3.engineVersion !== undefined){let data5 = data3.engineVersion;const _errs9 = errors;if(errors === _errs9){if(typeof data5 === "string"){if(!pattern0.test(data5)){validate34.errors = [{instancePath:instancePath+"/data/engineVersion",schemaPath:"#/properties/data/properties/engineVersion/pattern",keyword:"pattern",params:{pattern: "^[0-9a-zA-Z .+-]+$"},message:"must match pattern \""+"^[0-9a-zA-Z .+-]+$"+"\""}];return false;}}else {validate34.errors = [{instancePath:instancePath+"/data/engineVersion",schemaPath:"#/properties/data/properties/engineVersion/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data3.gameName !== undefined){const _errs11 = errors;if(typeof data3.gameName !== "string"){validate34.errors = [{instancePath:instancePath+"/data/gameName",schemaPath:"#/properties/data/properties/gameName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data3.mapName !== undefined){const _errs13 = errors;if(typeof data3.mapName !== "string"){validate34.errors = [{instancePath:instancePath+"/data/mapName",schemaPath:"#/properties/data/properties/mapName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data3.gameArchiveHash !== undefined){let data8 = data3.gameArchiveHash;const _errs15 = errors;if(errors === _errs15){if(typeof data8 === "string"){if(!pattern1.test(data8)){validate34.errors = [{instancePath:instancePath+"/data/gameArchiveHash",schemaPath:"#/properties/data/properties/gameArchiveHash/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{128}$"},message:"must match pattern \""+"^[a-fA-F0-9]{128}$"+"\""}];return false;}}else {validate34.errors = [{instancePath:instancePath+"/data/gameArchiveHash",schemaPath:"#/properties/data/properties/gameArchiveHash/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data3.mapArchiveHash !== undefined){let data9 = data3.mapArchiveHash;const _errs17 = errors;if(errors === _errs17){if(typeof data9 === "string"){if(!pattern1.test(data9)){validate34.errors = [{instancePath:instancePath+"/data/mapArchiveHash",schemaPath:"#/properties/data/properties/mapArchiveHash/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{128}$"},message:"must match pattern \""+"^[a-fA-F0-9]{128}$"+"\""}];return false;}}else {validate34.errors = [{instancePath:instancePath+"/data/mapArchiveHash",schemaPath:"#/properties/data/properties/mapArchiveHash/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs17 === errors;}else {var valid1 = true;}if(valid1){if(data3.startDelay !== undefined){let data10 = data3.startDelay;const _errs19 = errors;if(!(((typeof data10 == "number") && (!(data10 % 1) && !isNaN(data10))) && (isFinite(data10)))){validate34.errors = [{instancePath:instancePath+"/data/startDelay",schemaPath:"#/properties/data/properties/startDelay/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid1 = _errs19 === errors;}else {var valid1 = true;}if(valid1){if(data3.startPosType !== undefined){let data11 = data3.startPosType;const _errs21 = errors;if(!((((data11 === "fixed") || (data11 === "random")) || (data11 === "ingame")) || (data11 === "beforegame"))){validate34.errors = [{instancePath:instancePath+"/data/startPosType",schemaPath:"../../definitions/startPosType.json/enum",keyword:"enum",params:{allowedValues: schema46.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs21 === errors;}else {var valid1 = true;}if(valid1){if(data3.allyTeams !== undefined){let data12 = data3.allyTeams;const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data12)){if(data12.length < 1){validate34.errors = [{instancePath:instancePath+"/data/allyTeams",schemaPath:"#/properties/data/properties/allyTeams/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid3 = true;const len0 = data12.length;for(let i0=0; i0<len0; i0++){const _errs25 = errors;if(!(validate35(data12[i0], {instancePath:instancePath+"/data/allyTeams/" + i0,parentData:data12,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);errors = vErrors.length;}var valid3 = _errs25 === errors;if(!valid3){break;}}}}else {validate34.errors = [{instancePath:instancePath+"/data/allyTeams",schemaPath:"#/properties/data/properties/allyTeams/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs23 === errors;}else {var valid1 = true;}if(valid1){if(data3.spectators !== undefined){let data14 = data3.spectators;const _errs26 = errors;if(errors === _errs26){if(Array.isArray(data14)){var valid4 = true;const len1 = data14.length;for(let i1=0; i1<len1; i1++){const _errs28 = errors;if(!(validate37(data14[i1], {instancePath:instancePath+"/data/spectators/" + i1,parentData:data14,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}var valid4 = _errs28 === errors;if(!valid4){break;}}}else {validate34.errors = [{instancePath:instancePath+"/data/spectators",schemaPath:"#/properties/data/properties/spectators/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs26 === errors;}else {var valid1 = true;}if(valid1){if(data3.mapOptions !== undefined){let data16 = data3.mapOptions;const _errs29 = errors;if(errors === _errs29){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){var valid5 = true;for(const key0 in data16){if(pattern4.test(key0)){const _errs31 = errors;if(typeof data16[key0] !== "string"){validate34.errors = [{instancePath:instancePath+"/data/mapOptions/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/data/properties/mapOptions/patternProperties/%5E(.*)%24/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs31 === errors;if(!valid5){break;}}}}else {validate34.errors = [{instancePath:instancePath+"/data/mapOptions",schemaPath:"#/properties/data/properties/mapOptions/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs29 === errors;}else {var valid1 = true;}if(valid1){if(data3.gameOptions !== undefined){let data18 = data3.gameOptions;const _errs33 = errors;if(errors === _errs33){if(data18 && typeof data18 == "object" && !Array.isArray(data18)){var valid6 = true;for(const key1 in data18){if(pattern4.test(key1)){const _errs35 = errors;if(typeof data18[key1] !== "string"){validate34.errors = [{instancePath:instancePath+"/data/gameOptions/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/data/properties/gameOptions/patternProperties/%5E(.*)%24/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs35 === errors;if(!valid6){break;}}}}else {validate34.errors = [{instancePath:instancePath+"/data/gameOptions",schemaPath:"#/properties/data/properties/gameOptions/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs33 === errors;}else {var valid1 = true;}if(valid1){if(data3.restrictions !== undefined){let data20 = data3.restrictions;const _errs37 = errors;if(errors === _errs37){if(data20 && typeof data20 == "object" && !Array.isArray(data20)){var valid7 = true;for(const key2 in data20){if(pattern4.test(key2)){let data21 = data20[key2];const _errs39 = errors;if(!(((typeof data21 == "number") && (!(data21 % 1) && !isNaN(data21))) && (isFinite(data21)))){validate34.errors = [{instancePath:instancePath+"/data/restrictions/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/data/properties/restrictions/patternProperties/%5E(.*)%24/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs39){if((typeof data21 == "number") && (isFinite(data21))){if(data21 < 0 || isNaN(data21)){validate34.errors = [{instancePath:instancePath+"/data/restrictions/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/data/properties/restrictions/patternProperties/%5E(.*)%24/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid7 = _errs39 === errors;if(!valid7){break;}}}}else {validate34.errors = [{instancePath:instancePath+"/data/restrictions",schemaPath:"#/properties/data/properties/restrictions/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs37 === errors;}else {var valid1 = true;}if(valid1){if(data3.luamsgRegexp !== undefined){let data22 = data3.luamsgRegexp;const _errs41 = errors;if(errors === _errs41){if(errors === _errs41){if(typeof data22 === "string"){if(!(formats26(data22))){validate34.errors = [{instancePath:instancePath+"/data/luamsgRegexp",schemaPath:"#/properties/data/properties/luamsgRegexp/format",keyword:"format",params:{format: "regex"},message:"must match format \""+"regex"+"\""}];return false;}}else {validate34.errors = [{instancePath:instancePath+"/data/luamsgRegexp",schemaPath:"#/properties/data/properties/luamsgRegexp/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs41 === errors;}else {var valid1 = true;}}}}}}}}}}}}}}}}else {validate34.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate34.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate34.errors = vErrors;return errors === 0;}exports.autohost_start_response = validate44;const schema57 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/start/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostStartResponse","tachyon":{"source":"autohost","target":"server","scopes":["tachyon.lobby"]},"anyOf":[{"title":"AutohostStartOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/start"},"status":{"const":"success"},"data":{"title":"AutohostStartOkResponseData","type":"object","properties":{"ips":{"type":"array","items":{"anyOf":[{"type":"string","format":"ipv4"},{"type":"string","format":"ipv6"}]}},"port":{"type":"integer","minimum":1024,"maximum":65535}},"required":["ips","port"]}},"required":["type","messageId","commandId","status","data"]},{"title":"AutohostStartFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/start"},"status":{"const":"failed"},"reason":{"enum":["battle_already_exists","engine_version_not_available","internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};const formats28 = /^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/;const formats30 = /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i;function validate44(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/start/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("autohost/start" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/start"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data4 = data.data;const _errs8 = errors;if(errors === _errs8){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing1;if(((data4.ips === undefined) && (missing1 = "ips")) || ((data4.port === undefined) && (missing1 = "port"))){const err5 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {if(data4.ips !== undefined){let data5 = data4.ips;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data5)){var valid3 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];const _errs12 = errors;const _errs13 = errors;let valid4 = false;const _errs14 = errors;if(errors === _errs14){if(errors === _errs14){if(typeof data6 === "string"){if(!(formats28.test(data6))){const err6 = {instancePath:instancePath+"/data/ips/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/ips/items/anyOf/0/format",keyword:"format",params:{format: "ipv4"},message:"must match format \""+"ipv4"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/data/ips/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/ips/items/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;valid4 = valid4 || _valid1;if(!valid4){const _errs16 = errors;if(errors === _errs16){if(errors === _errs16){if(typeof data6 === "string"){if(!(formats30.test(data6))){const err8 = {instancePath:instancePath+"/data/ips/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/ips/items/anyOf/1/format",keyword:"format",params:{format: "ipv6"},message:"must match format \""+"ipv6"+"\""};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/data/ips/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/ips/items/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}var _valid1 = _errs16 === errors;valid4 = valid4 || _valid1;}if(!valid4){const err10 = {instancePath:instancePath+"/data/ips/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/ips/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}var valid3 = _errs12 === errors;if(!valid3){break;}}}else {const err11 = {instancePath:instancePath+"/data/ips",schemaPath:"#/anyOf/0/properties/data/properties/ips/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data4.port !== undefined){let data7 = data4.port;const _errs18 = errors;if(!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))){const err12 = {instancePath:instancePath+"/data/port",schemaPath:"#/anyOf/0/properties/data/properties/port/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(errors === _errs18){if((typeof data7 == "number") && (isFinite(data7))){if(data7 > 65535 || isNaN(data7)){const err13 = {instancePath:instancePath+"/data/port",schemaPath:"#/anyOf/0/properties/data/properties/port/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {if(data7 < 1024 || isNaN(data7)){const err14 = {instancePath:instancePath+"/data/port",schemaPath:"#/anyOf/0/properties/data/properties/port/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1024},message:"must be >= 1024"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}}var valid2 = _errs18 === errors;}else {var valid2 = true;}}}}else {const err15 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}}}}}}}else {const err16 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs20 = errors;if(errors === _errs20){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.type === undefined) && (missing2 = "type")) || ((data.messageId === undefined) && (missing2 = "messageId"))) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err17 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {if(data.type !== undefined){const _errs22 = errors;if("response" !== data.type){const err18 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid5 = _errs22 === errors;}else {var valid5 = true;}if(valid5){if(data.messageId !== undefined){const _errs23 = errors;if(typeof data.messageId !== "string"){const err19 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid5 = _errs23 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){const _errs25 = errors;if("autohost/start" !== data.commandId){const err20 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/start"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid5 = _errs25 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){const _errs26 = errors;if("failed" !== data.status){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid5 = _errs26 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data12 = data.reason;const _errs27 = errors;if(!((((((data12 === "battle_already_exists") || (data12 === "engine_version_not_available")) || (data12 === "internal_error")) || (data12 === "unauthorized")) || (data12 === "invalid_request")) || (data12 === "command_unimplemented"))){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema57.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid5 = _errs27 === errors;}else {var valid5 = true;}}}}}}}else {const err23 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}var _valid0 = _errs20 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err24 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;validate44.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate44.errors = vErrors;return errors === 0;}exports.autohost_specPlayers_request = validate45;const schema58 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/specPlayers/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostSpecPlayersRequest","tachyon":{"source":"server","target":"autohost","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"autohost/specPlayers"},"data":{"title":"AutohostSpecPlayersRequestData","type":"object","properties":{"battleId":{"type":"string","format":"uuid"},"userIds":{"type":"array","items":{"$ref":"../../definitions/userId.json"}}},"required":["battleId","userIds"]}},"required":["type","messageId","commandId","data"]};function validate45(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/specPlayers/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate45.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate45.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate45.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("autohost/specPlayers" !== data.commandId){validate45.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/specPlayers"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.battleId === undefined) && (missing1 = "battleId")) || ((data3.userIds === undefined) && (missing1 = "userIds"))){validate45.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.battleId !== undefined){let data4 = data3.battleId;const _errs7 = errors;if(errors === _errs7){if(errors === _errs7){if(typeof data4 === "string"){if(!(formats0.test(data4))){validate45.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate45.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data3.userIds !== undefined){let data5 = data3.userIds;const _errs9 = errors;if(errors === _errs9){if(Array.isArray(data5)){var valid2 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];const _errs11 = errors;const _errs12 = errors;if(errors === _errs12){if(errors === _errs12){if(typeof data6 === "string"){if(!(formats0.test(data6))){validate45.errors = [{instancePath:instancePath+"/data/userIds/" + i0,schemaPath:"../../definitions/userId.json/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate45.errors = [{instancePath:instancePath+"/data/userIds/" + i0,schemaPath:"../../definitions/userId.json/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid2 = _errs11 === errors;if(!valid2){break;}}}else {validate45.errors = [{instancePath:instancePath+"/data/userIds",schemaPath:"#/properties/data/properties/userIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}else {validate45.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate45.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate45.errors = vErrors;return errors === 0;}exports.autohost_specPlayers_response = validate46;const schema60 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/specPlayers/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostSpecPlayersResponse","tachyon":{"source":"autohost","target":"server","scopes":["tachyon.lobby"]},"anyOf":[{"title":"AutohostSpecPlayersOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/specPlayers"},"status":{"const":"success"}},"required":["type","messageId","commandId","status"]},{"title":"AutohostSpecPlayersFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/specPlayers"},"status":{"const":"failed"},"reason":{"enum":["internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate46(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/specPlayers/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("autohost/specPlayers" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/specPlayers"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}}else {const err5 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs8 = errors;if(errors === _errs8){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err6 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.type !== undefined){const _errs10 = errors;if("response" !== data.type){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){const _errs13 = errors;if("autohost/specPlayers" !== data.commandId){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/specPlayers"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){const _errs14 = errors;if("failed" !== data.status){const err10 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs14 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs15 = errors;if(!((((data8 === "internal_error") || (data8 === "unauthorized")) || (data8 === "invalid_request")) || (data8 === "command_unimplemented"))){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema60.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}}}}}}}else {const err12 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err13 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate46.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate46.errors = vErrors;return errors === 0;}exports.autohost_sendMessage_request = validate47;const schema61 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/sendMessage/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostSendMessageRequest","tachyon":{"source":"server","target":"autohost","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"autohost/sendMessage"},"data":{"title":"AutohostSendMessageRequestData","type":"object","properties":{"battleId":{"type":"string","format":"uuid"},"message":{"type":"string","maxLength":127}},"required":["battleId","message"]}},"required":["type","messageId","commandId","data"]};const func2 = require("ajv/dist/runtime/ucs2length").default;function validate47(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/sendMessage/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate47.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate47.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate47.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("autohost/sendMessage" !== data.commandId){validate47.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/sendMessage"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.battleId === undefined) && (missing1 = "battleId")) || ((data3.message === undefined) && (missing1 = "message"))){validate47.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.battleId !== undefined){let data4 = data3.battleId;const _errs7 = errors;if(errors === _errs7){if(errors === _errs7){if(typeof data4 === "string"){if(!(formats0.test(data4))){validate47.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate47.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data3.message !== undefined){let data5 = data3.message;const _errs9 = errors;if(errors === _errs9){if(typeof data5 === "string"){if(func2(data5) > 127){validate47.errors = [{instancePath:instancePath+"/data/message",schemaPath:"#/properties/data/properties/message/maxLength",keyword:"maxLength",params:{limit: 127},message:"must NOT have more than 127 characters"}];return false;}}else {validate47.errors = [{instancePath:instancePath+"/data/message",schemaPath:"#/properties/data/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}else {validate47.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate47.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate47.errors = vErrors;return errors === 0;}exports.autohost_sendMessage_response = validate48;const schema62 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/sendMessage/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostSendMessageResponse","tachyon":{"source":"autohost","target":"server","scopes":["tachyon.lobby"]},"anyOf":[{"title":"AutohostSendMessageOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/sendMessage"},"status":{"const":"success"}},"required":["type","messageId","commandId","status"]},{"title":"AutohostSendMessageFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/sendMessage"},"status":{"const":"failed"},"reason":{"enum":["internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate48(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/sendMessage/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("autohost/sendMessage" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/sendMessage"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}}else {const err5 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs8 = errors;if(errors === _errs8){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err6 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.type !== undefined){const _errs10 = errors;if("response" !== data.type){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){const _errs13 = errors;if("autohost/sendMessage" !== data.commandId){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/sendMessage"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){const _errs14 = errors;if("failed" !== data.status){const err10 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs14 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs15 = errors;if(!((((data8 === "internal_error") || (data8 === "unauthorized")) || (data8 === "invalid_request")) || (data8 === "command_unimplemented"))){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema62.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}}}}}}}else {const err12 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err13 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate48.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate48.errors = vErrors;return errors === 0;}exports.autohost_sendCommand_request = validate49;const schema63 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/sendCommand/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostSendCommandRequest","tachyon":{"source":"server","target":"autohost","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"autohost/sendCommand"},"data":{"title":"AutohostSendCommandRequestData","type":"object","properties":{"battleId":{"type":"string","format":"uuid"},"command":{"type":"string"},"arguments":{"type":"array","items":{"type":"string"}}},"required":["battleId","command"]}},"required":["type","messageId","commandId","data"]};function validate49(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/sendCommand/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate49.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate49.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate49.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("autohost/sendCommand" !== data.commandId){validate49.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/sendCommand"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.battleId === undefined) && (missing1 = "battleId")) || ((data3.command === undefined) && (missing1 = "command"))){validate49.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.battleId !== undefined){let data4 = data3.battleId;const _errs7 = errors;if(errors === _errs7){if(errors === _errs7){if(typeof data4 === "string"){if(!(formats0.test(data4))){validate49.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate49.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data3.command !== undefined){const _errs9 = errors;if(typeof data3.command !== "string"){validate49.errors = [{instancePath:instancePath+"/data/command",schemaPath:"#/properties/data/properties/command/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data3.arguments !== undefined){let data6 = data3.arguments;const _errs11 = errors;if(errors === _errs11){if(Array.isArray(data6)){var valid2 = true;const len0 = data6.length;for(let i0=0; i0<len0; i0++){const _errs13 = errors;if(typeof data6[i0] !== "string"){validate49.errors = [{instancePath:instancePath+"/data/arguments/" + i0,schemaPath:"#/properties/data/properties/arguments/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs13 === errors;if(!valid2){break;}}}else {validate49.errors = [{instancePath:instancePath+"/data/arguments",schemaPath:"#/properties/data/properties/arguments/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs11 === errors;}else {var valid1 = true;}}}}}else {validate49.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate49.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate49.errors = vErrors;return errors === 0;}exports.autohost_sendCommand_response = validate50;const schema64 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/sendCommand/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostSendCommandResponse","tachyon":{"source":"autohost","target":"server","scopes":["tachyon.lobby"]},"anyOf":[{"title":"AutohostSendCommandOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/sendCommand"},"status":{"const":"success"}},"required":["type","messageId","commandId","status"]},{"title":"AutohostSendCommandFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/sendCommand"},"status":{"const":"failed"},"reason":{"enum":["internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate50(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/sendCommand/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("autohost/sendCommand" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/sendCommand"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}}else {const err5 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs8 = errors;if(errors === _errs8){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err6 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.type !== undefined){const _errs10 = errors;if("response" !== data.type){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){const _errs13 = errors;if("autohost/sendCommand" !== data.commandId){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/sendCommand"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){const _errs14 = errors;if("failed" !== data.status){const err10 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs14 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs15 = errors;if(!((((data8 === "internal_error") || (data8 === "unauthorized")) || (data8 === "invalid_request")) || (data8 === "command_unimplemented"))){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema64.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}}}}}}}else {const err12 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err13 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate50.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate50.errors = vErrors;return errors === 0;}exports.autohost_mutePlayer_request = validate51;const schema65 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/mutePlayer/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostMutePlayerRequest","tachyon":{"source":"server","target":"autohost","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"autohost/mutePlayer"},"data":{"title":"AutohostMutePlayerRequestData","type":"object","properties":{"battleId":{"type":"string","format":"uuid"},"userId":{"$ref":"../../definitions/userId.json"},"chat":{"type":"boolean"},"draw":{"type":"boolean"}},"required":["battleId","userId","chat","draw"]}},"required":["type","messageId","commandId","data"]};function validate51(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/mutePlayer/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate51.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate51.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate51.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("autohost/mutePlayer" !== data.commandId){validate51.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/mutePlayer"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((((data3.battleId === undefined) && (missing1 = "battleId")) || ((data3.userId === undefined) && (missing1 = "userId"))) || ((data3.chat === undefined) && (missing1 = "chat"))) || ((data3.draw === undefined) && (missing1 = "draw"))){validate51.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.battleId !== undefined){let data4 = data3.battleId;const _errs7 = errors;if(errors === _errs7){if(errors === _errs7){if(typeof data4 === "string"){if(!(formats0.test(data4))){validate51.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate51.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data3.userId !== undefined){let data5 = data3.userId;const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(errors === _errs10){if(typeof data5 === "string"){if(!(formats0.test(data5))){validate51.errors = [{instancePath:instancePath+"/data/userId",schemaPath:"../../definitions/userId.json/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate51.errors = [{instancePath:instancePath+"/data/userId",schemaPath:"../../definitions/userId.json/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data3.chat !== undefined){const _errs12 = errors;if(typeof data3.chat !== "boolean"){validate51.errors = [{instancePath:instancePath+"/data/chat",schemaPath:"#/properties/data/properties/chat/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}if(valid1){if(data3.draw !== undefined){const _errs14 = errors;if(typeof data3.draw !== "boolean"){validate51.errors = [{instancePath:instancePath+"/data/draw",schemaPath:"#/properties/data/properties/draw/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs14 === errors;}else {var valid1 = true;}}}}}}else {validate51.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate51.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate51.errors = vErrors;return errors === 0;}exports.autohost_mutePlayer_response = validate52;const schema67 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/mutePlayer/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostMutePlayerResponse","tachyon":{"source":"autohost","target":"server","scopes":["tachyon.lobby"]},"anyOf":[{"title":"AutohostMutePlayerOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/mutePlayer"},"status":{"const":"success"}},"required":["type","messageId","commandId","status"]},{"title":"AutohostMutePlayerFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/mutePlayer"},"status":{"const":"failed"},"reason":{"enum":["internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate52(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/mutePlayer/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("autohost/mutePlayer" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/mutePlayer"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}}else {const err5 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs8 = errors;if(errors === _errs8){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err6 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.type !== undefined){const _errs10 = errors;if("response" !== data.type){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){const _errs13 = errors;if("autohost/mutePlayer" !== data.commandId){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/mutePlayer"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){const _errs14 = errors;if("failed" !== data.status){const err10 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs14 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs15 = errors;if(!((((data8 === "internal_error") || (data8 === "unauthorized")) || (data8 === "invalid_request")) || (data8 === "command_unimplemented"))){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema67.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}}}}}}}else {const err12 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err13 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate52.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate52.errors = vErrors;return errors === 0;}exports.autohost_kill_request = validate53;const schema68 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/kill/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostKillRequest","tachyon":{"source":"server","target":"autohost","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"autohost/kill"},"data":{"title":"AutohostKillRequestData","type":"object","properties":{"battleId":{"type":"string","format":"uuid"}},"required":["battleId"]}},"required":["type","messageId","commandId","data"]};function validate53(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/kill/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate53.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate53.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate53.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("autohost/kill" !== data.commandId){validate53.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/kill"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.battleId === undefined) && (missing1 = "battleId")){validate53.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.battleId !== undefined){let data4 = data3.battleId;const _errs7 = errors;if(errors === _errs7){if(errors === _errs7){if(typeof data4 === "string"){if(!(formats0.test(data4))){validate53.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate53.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}}}else {validate53.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate53.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate53.errors = vErrors;return errors === 0;}exports.autohost_kill_response = validate54;const schema69 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/kill/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostKillResponse","tachyon":{"source":"autohost","target":"server","scopes":["tachyon.lobby"]},"anyOf":[{"title":"AutohostKillOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/kill"},"status":{"const":"success"}},"required":["type","messageId","commandId","status"]},{"title":"AutohostKillFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/kill"},"status":{"const":"failed"},"reason":{"enum":["internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate54(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/kill/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("autohost/kill" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/kill"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}}else {const err5 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs8 = errors;if(errors === _errs8){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err6 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.type !== undefined){const _errs10 = errors;if("response" !== data.type){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){const _errs13 = errors;if("autohost/kill" !== data.commandId){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/kill"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){const _errs14 = errors;if("failed" !== data.status){const err10 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs14 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs15 = errors;if(!((((data8 === "internal_error") || (data8 === "unauthorized")) || (data8 === "invalid_request")) || (data8 === "command_unimplemented"))){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema69.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}}}}}}}else {const err12 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err13 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate54.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate54.errors = vErrors;return errors === 0;}exports.autohost_kickPlayer_request = validate55;const schema70 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/kickPlayer/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostKickPlayerRequest","tachyon":{"source":"server","target":"autohost","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"autohost/kickPlayer"},"data":{"title":"AutohostKickPlayerRequestData","type":"object","properties":{"battleId":{"type":"string","format":"uuid"},"userId":{"$ref":"../../definitions/userId.json"}},"required":["battleId","userId"]}},"required":["type","messageId","commandId","data"]};function validate55(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/kickPlayer/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate55.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate55.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate55.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("autohost/kickPlayer" !== data.commandId){validate55.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/kickPlayer"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.battleId === undefined) && (missing1 = "battleId")) || ((data3.userId === undefined) && (missing1 = "userId"))){validate55.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.battleId !== undefined){let data4 = data3.battleId;const _errs7 = errors;if(errors === _errs7){if(errors === _errs7){if(typeof data4 === "string"){if(!(formats0.test(data4))){validate55.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate55.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data3.userId !== undefined){let data5 = data3.userId;const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(errors === _errs10){if(typeof data5 === "string"){if(!(formats0.test(data5))){validate55.errors = [{instancePath:instancePath+"/data/userId",schemaPath:"../../definitions/userId.json/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate55.errors = [{instancePath:instancePath+"/data/userId",schemaPath:"../../definitions/userId.json/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}else {validate55.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate55.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate55.errors = vErrors;return errors === 0;}exports.autohost_kickPlayer_response = validate56;const schema72 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/kickPlayer/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostKickPlayerResponse","tachyon":{"source":"autohost","target":"server","scopes":["tachyon.lobby"]},"anyOf":[{"title":"AutohostKickPlayerOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/kickPlayer"},"status":{"const":"success"}},"required":["type","messageId","commandId","status"]},{"title":"AutohostKickPlayerFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/kickPlayer"},"status":{"const":"failed"},"reason":{"enum":["internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate56(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/kickPlayer/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("autohost/kickPlayer" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/kickPlayer"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}}else {const err5 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs8 = errors;if(errors === _errs8){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err6 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.type !== undefined){const _errs10 = errors;if("response" !== data.type){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){const _errs13 = errors;if("autohost/kickPlayer" !== data.commandId){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/kickPlayer"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){const _errs14 = errors;if("failed" !== data.status){const err10 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs14 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs15 = errors;if(!((((data8 === "internal_error") || (data8 === "unauthorized")) || (data8 === "invalid_request")) || (data8 === "command_unimplemented"))){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema72.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}}}}}}}else {const err12 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err13 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate56.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate56.errors = vErrors;return errors === 0;}exports.autohost_addPlayer_request = validate57;const schema73 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/addPlayer/request.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostAddPlayerRequest","tachyon":{"source":"server","target":"autohost","scopes":["tachyon.lobby"]},"type":"object","properties":{"type":{"const":"request"},"messageId":{"type":"string"},"commandId":{"const":"autohost/addPlayer"},"data":{"title":"AutohostAddPlayerRequestData","type":"object","properties":{"battleId":{"type":"string","format":"uuid"},"userId":{"$ref":"../../definitions/userId.json"},"name":{"type":"string"},"password":{"type":"string"}},"required":["battleId","userId","name","password"]}},"required":["type","messageId","commandId","data"]};function validate57(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/addPlayer/request.json" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate57.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.type !== undefined){const _errs1 = errors;if("request" !== data.type){validate57.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "request"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.messageId !== undefined){const _errs2 = errors;if(typeof data.messageId !== "string"){validate57.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){const _errs4 = errors;if("autohost/addPlayer" !== data.commandId){validate57.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/addPlayer"},message:"must be equal to constant"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data3 = data.data;const _errs5 = errors;if(errors === _errs5){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((((data3.battleId === undefined) && (missing1 = "battleId")) || ((data3.userId === undefined) && (missing1 = "userId"))) || ((data3.name === undefined) && (missing1 = "name"))) || ((data3.password === undefined) && (missing1 = "password"))){validate57.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.battleId !== undefined){let data4 = data3.battleId;const _errs7 = errors;if(errors === _errs7){if(errors === _errs7){if(typeof data4 === "string"){if(!(formats0.test(data4))){validate57.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate57.errors = [{instancePath:instancePath+"/data/battleId",schemaPath:"#/properties/data/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data3.userId !== undefined){let data5 = data3.userId;const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(errors === _errs10){if(typeof data5 === "string"){if(!(formats0.test(data5))){validate57.errors = [{instancePath:instancePath+"/data/userId",schemaPath:"../../definitions/userId.json/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""}];return false;}}else {validate57.errors = [{instancePath:instancePath+"/data/userId",schemaPath:"../../definitions/userId.json/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data3.name !== undefined){const _errs12 = errors;if(typeof data3.name !== "string"){validate57.errors = [{instancePath:instancePath+"/data/name",schemaPath:"#/properties/data/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}if(valid1){if(data3.password !== undefined){const _errs14 = errors;if(typeof data3.password !== "string"){validate57.errors = [{instancePath:instancePath+"/data/password",schemaPath:"#/properties/data/properties/password/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs14 === errors;}else {var valid1 = true;}}}}}}else {validate57.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate57.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate57.errors = vErrors;return errors === 0;}exports.autohost_addPlayer_response = validate58;const schema75 = {"$id":"https://schema.beyondallreason.dev/tachyon/autohost/addPlayer/response.json","$schema":"http://json-schema.org/draft-07/schema#","title":"AutohostAddPlayerResponse","tachyon":{"source":"autohost","target":"server","scopes":["tachyon.lobby"]},"anyOf":[{"title":"AutohostAddPlayerOkResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/addPlayer"},"status":{"const":"success"}},"required":["type","messageId","commandId","status"]},{"title":"AutohostAddPlayerFailResponse","type":"object","properties":{"type":{"const":"response"},"messageId":{"type":"string"},"commandId":{"const":"autohost/addPlayer"},"status":{"const":"failed"},"reason":{"enum":["internal_error","unauthorized","invalid_request","command_unimplemented"]}},"required":["type","messageId","commandId","status","reason"]}]};function validate58(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://schema.beyondallreason.dev/tachyon/autohost/addPlayer/response.json" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.type === undefined) && (missing0 = "type")) || ((data.messageId === undefined) && (missing0 = "messageId"))) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){const _errs3 = errors;if("response" !== data.type){const err1 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/0/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.messageId !== undefined){const _errs4 = errors;if(typeof data.messageId !== "string"){const err2 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){const _errs6 = errors;if("autohost/addPlayer" !== data.commandId){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/addPlayer"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){const _errs7 = errors;if("success" !== data.status){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}}else {const err5 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs8 = errors;if(errors === _errs8){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((((data.type === undefined) && (missing1 = "type")) || ((data.messageId === undefined) && (missing1 = "messageId"))) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err6 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.type !== undefined){const _errs10 = errors;if("response" !== data.type){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue: "response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){const _errs13 = errors;if("autohost/addPlayer" !== data.commandId){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/addPlayer"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){const _errs14 = errors;if("failed" !== data.status){const err10 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs14 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data8 = data.reason;const _errs15 = errors;if(!((((data8 === "internal_error") || (data8 === "unauthorized")) || (data8 === "invalid_request")) || (data8 === "command_unimplemented"))){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/enum",keyword:"enum",params:{allowedValues: schema75.anyOf[1].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}}}}}}}else {const err12 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err13 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate58.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate58.errors = vErrors;return errors === 0;}