@lincs.project/webannotation-schema 1.9.0 → 1.10.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";module.exports = validate10;module.exports.default = validate10;const schema11 = {"$id":"https://wa.lincsproject.ca/v1/schema.jsonld","type":"object","description":"Web Annotation","properties":{"@context":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"http://www.w3.org/ns/anno.jsonld"},{"type":"string","const":"https://wa.lincsproject.ca/v1/ns/anno.jsonld"}],"description":"The context that determines the meaning of the JSON as an Annotation. The itens should point to a URI containing the defiintion used in this schema."},"id":{"type":"string","format":"uri","description":"The type of the Annotation."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Annotation"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The type of the Annotation."},"motivation":{"type":"string","enum":["oa:identifying","oa:describing","correcting","oa:tagging","oa:classifying","oa:linking","citing"],"description":"The relationship between an Annotation and a Motivation."},"created":{"type":"string","format":"date-time","description":"The time at which the resource was created."},"modified":{"type":"string","format":"date-time","description":"The time at which the resource was modified, after creation."},"creator":{"$ref":"defs.jsonld#/definitions/creator"},"contributor":{"type":"array","items":{"$ref":"defs.jsonld#/definitions/creator"},"minItems":1},"generator":{"$ref":"defs.jsonld#/definitions/software"},"target":{"$ref":"defs.jsonld#/definitions/target"},"body":{"oneOf":[{"$ref":"defs.jsonld#/definitions/bodyChoice"},{"$ref":"defs.jsonld#/definitions/body"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"},"minItems":1}]},"certainty":{"type":"string","enum":["edit:qualityLow","edit:qualityMedium","edit:qualityHigh","edit:qualityUnknown"],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},"precision":{"type":"string","enum":["edit:qualityLow","edit:qualityMedium","edit:qualityHigh","edit:qualityUnknown"],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."},"label":{"type":"string"},"status":{"type":"string","enum":["edit:statusDraft","edit:statusApproved","edit:statusPublished"]}},"required":["@context","id","type","motivation","created","generator","target","body"],"additionalProperties":false,"allOf":[{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"oneOf":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"cwrc:place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cwrc:place"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E89_Propositional_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"string","const":"wikidata:Q15831596"}]}]},{"oneOf":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"string","const":"wikidata:Q15831596"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E5_Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:identifying"}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"string","const":"crm:E33_Linguistic_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:describing"}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"correcting"}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:tagging"}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crmdig:D1_Digital_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:classifying"}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"string","const":"crmdig:D1_Digital_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:linking"}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"citing"}}}}}}}}}}]};const schema13 = {"type":"object","description":"Software Agent","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the agent (Creator or Contributor)."},"type":{"type":"string","const":"crm:E21_Person"},"name":{"type":"string","minLength":1,"description":"The name of the agent."}},"required":["id","type","name"]};const schema15 = {"type":"object","description":"Software Agent","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the agent (software)."},"type":{"type":"string","const":"Software"},"usedSpecificObject":{"type":"string","format":"uri"},"label":{"type":"string","minLength":1,"description":"The name of the software."},"softwareVersion":{"type":"string","description":"The software version."}},"required":["id","type","label"]};const schema35 = {"type":"object","description":"Web Annotation Body","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Body resource."},"type":{"type":"string","const":"TextualBody"},"entityType":{"oneOf":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"cwrc:place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cwrc:place"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E89_Propositional_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"string","const":"wikidata:Q15831596"}]}]},{"oneOf":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"string","const":"wikidata:Q15831596"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"string","const":"crm:E33_Linguistic_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crmdig:D1_Digital_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"string","const":"crmdig:D1_Digital_Object"},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E5_Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]}]},"additionalType":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"value":{"type":"string"},"label":{"type":"string","minLength":1,"description":"The title or name of a linked resource or named entity."},"modeExistence":{"oneOf":[{"type":"string","const":"edit:modeReal","description":"An indication that an entity or thing, such as a person, place or text, is understood to be part of lived or historical existence."},{"type":"string","const":"edit:modeFictional","description":"An indication that an entity or a thing, such as a person, place or text, is invented or imagined."},{"type":"string","const":"edit:modeIdentifiable","description":"An indication that an entity or a thing is understood as both existing and imagined, for instance a character in a work of literature that corresponds to a historical person or a place represented under another name that can be identified as a real place."}],"description":"An indication of the state of being of an entity or thing (OED)."},"description":{"type":"string","description":"Short description of the linked resources or named entity."}},"required":["id","entityType"],"anyOf":[{"if":{"type":"object","properties":{"entityType":{"anyOf":[{"const":"crm:E33_Linguistic_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"xsd:date"},{"const":"crm:E52_Time-Span"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"fabio:Correction"},{"const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"crm:E55_Type"},{"const":"crm:E33_Linguistic_Object"}]}]}}},"then":{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","const":"TextualBody"}},"if":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"xsd:date"},{"const":"crm:E52_Time-Span"}]}}},"then":{"type":"object","properties":{"value":{"type":"string","pattern":"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"}}},"else":{"type":"object","properties":{"value":{"type":"string"}}}}}],"additionalProperties":false};const func2 = Object.prototype.hasOwnProperty;const func3 = require("ajv/dist/runtime/ucs2length").default;const formats0 = require("ajv-formats/dist/formats").fullFormats.uri;const formats2 = require("ajv-formats/dist/formats").fullFormats["date-time"];const schema16 = {"type":"object","description":"Web Annotation Target","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Target resource."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"SpecificResource"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Specific Resource."},"source":{"type":"object","description":"Web Annotation Target's source","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Target source."},"type":{"type":"string","const":"crm:D1_Digital_Object"},"format":{"type":["string","array"],"nullable":true,"anyOf":[{"type":"string","description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.","minLength":1},{"type":"array","minItems":1,"items":{"type":"string","description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.","minLength":1},"description":"The formats of the Web Resource's content. The value of the property should and array of media-types of the format, following the [rfc6838] specification."}]},"identifiedBy":{"type":"object","description":"indentifyBy","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"string","const":"crm:E33_E41_Linguistic_Appellation"},"title":{"type":"string","minLength":1,"description":"The title of the document being annotated."}},"required":["id","type","title"],"nullable":true},"language":{"type":["string","array"],"nullable":true,"anyOf":[{"type":"string","description":"The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.","minLength":2,"maxLength":3},{"type":"array","minItems":1,"items":{"type":"string","description":"The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.","minLength":2,"maxLength":3},"description":"The languages of the Web Resource's content. The value of the property should be an array of language code following the [bcp47] specification."}]},"title":{"type":"string","minLength":1,"nullable":true,"description":"The title of the document being annotated."}},"required":["id","type"]},"renderedVia":{"$ref":"defs.jsonld#/definitions/software","description":"The relationship between the Specific Resource that represents the Target in the annotation, and the piece of software or other system that was used to render the Target when the annotation was created."},"selector":{"anyOf":[{"type":"object","oneOf":[{"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","exact","prefix","suffix"]},{"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","start","end"]},{"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","value"]},{"type":"object","description":"Range Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"startSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"},"endSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"}},"required":["id","type","startSelector","endSelector"]}],"required":[]},{"type":"array","items":{"type":"object","oneOf":[{"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","exact","prefix","suffix"]},{"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","start","end"]},{"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","value"]},{"type":"object","description":"Range Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"startSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"},"endSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"}},"required":["id","type","startSelector","endSelector"]}],"required":[]},"minItems":1}]}},"required":["id","type","source"],"allOf":[{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["id","type","exact","prefix","suffix"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","startSelector","endSelector"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","value"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","start","end"]}}}}]};const schema18 = {"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."}},"required":["id","type","start","end"]};const schema19 = {"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."}},"required":["id","type","exact","prefix","suffix"]};const schema24 = {"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"}},"required":["id","type","value"]};function validate12(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(errors === _errs3){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data0 = data.selector;const _errs5 = errors;if(errors === _errs5){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.type !== undefined){let data1 = data0.type;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data1)){if(data1.length > 2){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data1.length < 2){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const len0 = data1.length;if(len0 > 0){let data2 = data1[0];const _errs9 = errors;if(typeof data2 !== "string"){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("TextQuoteSelector" !== data2){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid4 = _errs9 === errors;}if(valid4){if(len0 > 1){let data3 = data1[1];const _errs11 = errors;if(typeof data3 !== "string"){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("crm:E33_Linguistic_Object" !== data3){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid4 = _errs11 === errors;}}}}}else {const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}}else {const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}else {const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data4 = data.selector;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.id === undefined){const err9 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data4.type === undefined){const err10 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data4.exact === undefined){const err11 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data4.prefix === undefined){const err12 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data4.suffix === undefined){const err13 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}else {const err15 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid0 = _errs13 === errors;valid1 = _valid0;}if(!valid1){const err16 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}const _errs18 = errors;let valid6 = true;const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data5 = data.selector;const _errs21 = errors;if(errors === _errs21){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.type !== undefined){let data6 = data5.type;const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data6)){if(data6.length > 2){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {if(data6.length < 2){const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {const len1 = data6.length;if(len1 > 0){let data7 = data6[0];const _errs25 = errors;if(typeof data7 !== "string"){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("RangeSelector" !== data7){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid9 = _errs25 === errors;}if(valid9){if(len1 > 1){let data8 = data6[1];const _errs27 = errors;if(typeof data8 !== "string"){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("crm:E73_Information_Object" !== data8){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid9 = _errs27 === errors;}}}}}else {const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}}else {const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}}else {const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}var _valid1 = _errs19 === errors;errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}if(_valid1){const _errs29 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data9 = data.selector;if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.type === undefined){const err26 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data9.startSelector === undefined){const err27 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data9.endSelector === undefined){const err28 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath,schemaPath:"#/allOf/1/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid1 = _errs29 === errors;valid6 = _valid1;}if(!valid6){const err31 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}const _errs34 = errors;let valid11 = true;const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data10 = data.selector;const _errs37 = errors;if(errors === _errs37){if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.type !== undefined){let data11 = data10.type;const _errs39 = errors;if(errors === _errs39){if(Array.isArray(data11)){if(data11.length > 2){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data11.length < 2){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const len2 = data11.length;if(len2 > 0){let data12 = data11[0];const _errs41 = errors;if(typeof data12 !== "string"){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("XPathSelector" !== data12){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid14 = _errs41 === errors;}if(valid14){if(len2 > 1){let data13 = data11[1];const _errs43 = errors;if(typeof data13 !== "string"){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("crm:E73_Information_Object" !== data13){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid14 = _errs43 === errors;}}}}}else {const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}}else {const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}}else {const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}var _valid2 = _errs35 === errors;errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}if(_valid2){const _errs45 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data14 = data.selector;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.type === undefined){const err41 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data14.value === undefined){const err42 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {instancePath,schemaPath:"#/allOf/2/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var _valid2 = _errs45 === errors;valid11 = _valid2;}if(!valid11){const err45 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}const _errs50 = errors;let valid16 = true;const _errs51 = errors;if(errors === _errs51){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data15 = data.selector;const _errs53 = errors;if(errors === _errs53){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.type !== undefined){let data16 = data15.type;const _errs55 = errors;if(errors === _errs55){if(Array.isArray(data16)){if(data16.length > 2){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {if(data16.length < 2){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {const len3 = data16.length;if(len3 > 0){let data17 = data16[0];const _errs57 = errors;if(typeof data17 !== "string"){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("TextPositionSelector" !== data17){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid19 = _errs57 === errors;}if(valid19){if(len3 > 1){let data18 = data16[1];const _errs59 = errors;if(typeof data18 !== "string"){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("crm:E73_Information_Object" !== data18){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid19 = _errs59 === errors;}}}}}else {const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}}else {const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}}else {const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}var _valid3 = _errs51 === errors;errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}if(_valid3){const _errs61 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data19 = data.selector;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.type === undefined){const err55 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data19.start === undefined){const err56 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data19.end === undefined){const err57 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}else {const err58 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}else {const err59 = {instancePath,schemaPath:"#/allOf/3/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var _valid3 = _errs61 === errors;valid16 = _valid3;}if(!valid16){const err60 = {instancePath,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err61 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(data.type === undefined){const err62 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(data.source === undefined){const err63 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(data.id !== undefined){let data20 = data.id;if(typeof data20 === "string"){if(!(formats0(data20))){const err64 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}else {const err65 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data.type !== undefined){let data21 = data.type;if(Array.isArray(data21)){if(data21.length > 2){const err66 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}if(data21.length < 2){const err67 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}const len4 = data21.length;if(len4 > 0){let data22 = data21[0];if(typeof data22 !== "string"){const err68 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if("SpecificResource" !== data22){const err69 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "SpecificResource"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(len4 > 1){let data23 = data21[1];if(typeof data23 !== "string"){const err70 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if("crm:E73_Information_Object" !== data23){const err71 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data.source !== undefined){let data24 = data.source;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(data24.id === undefined){const err73 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if(data24.type === undefined){const err74 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(data24.id !== undefined){let data25 = data24.id;if(typeof data25 === "string"){if(!(formats0(data25))){const err75 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}else {const err76 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}if(data24.type !== undefined){let data26 = data24.type;if(typeof data26 !== "string"){const err77 = {instancePath:instancePath+"/source/type",schemaPath:"#/properties/source/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if("crm:D1_Digital_Object" !== data26){const err78 = {instancePath:instancePath+"/source/type",schemaPath:"#/properties/source/properties/type/const",keyword:"const",params:{allowedValue: "crm:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}if(data24.format !== undefined){let data27 = data24.format;if(((typeof data27 !== "string") && (!(Array.isArray(data27)))) && (data27 !== null)){const err79 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/type",keyword:"type",params:{type: schema16.properties.source.properties.format.type},message:"must be string,array,null"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}const _errs82 = errors;let valid24 = false;const _errs83 = errors;if(typeof data27 === "string"){if(func3(data27) < 1){const err80 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}else {const err81 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var _valid4 = _errs83 === errors;valid24 = valid24 || _valid4;if(!valid24){const _errs85 = errors;if(Array.isArray(data27)){if(data27.length < 1){const err82 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}const len5 = data27.length;for(let i0=0; i0<len5; i0++){let data28 = data27[i0];if(typeof data28 === "string"){if(func3(data28) < 1){const err83 = {instancePath:instancePath+"/source/format/" + i0,schemaPath:"#/properties/source/properties/format/anyOf/1/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/source/format/" + i0,schemaPath:"#/properties/source/properties/format/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid4 = _errs85 === errors;valid24 = valid24 || _valid4;}if(!valid24){const err86 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}}if(data24.identifiedBy !== undefined){let data29 = data24.identifiedBy;if((!(data29 && typeof data29 == "object" && !Array.isArray(data29))) && (data29 !== null)){const err87 = {instancePath:instancePath+"/source/identifiedBy",schemaPath:"#/properties/source/properties/identifiedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.id === undefined){const err88 = {instancePath:instancePath+"/source/identifiedBy",schemaPath:"#/properties/source/properties/identifiedBy/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(data29.type === undefined){const err89 = {instancePath:instancePath+"/source/identifiedBy",schemaPath:"#/properties/source/properties/identifiedBy/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(data29.title === undefined){const err90 = {instancePath:instancePath+"/source/identifiedBy",schemaPath:"#/properties/source/properties/identifiedBy/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(data29.id !== undefined){let data30 = data29.id;if(typeof data30 === "string"){if(!(formats0(data30))){const err91 = {instancePath:instancePath+"/source/identifiedBy/id",schemaPath:"#/properties/source/properties/identifiedBy/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}else {const err92 = {instancePath:instancePath+"/source/identifiedBy/id",schemaPath:"#/properties/source/properties/identifiedBy/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}if(data29.type !== undefined){let data31 = data29.type;if(typeof data31 !== "string"){const err93 = {instancePath:instancePath+"/source/identifiedBy/type",schemaPath:"#/properties/source/properties/identifiedBy/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if("crm:E33_E41_Linguistic_Appellation" !== data31){const err94 = {instancePath:instancePath+"/source/identifiedBy/type",schemaPath:"#/properties/source/properties/identifiedBy/properties/type/const",keyword:"const",params:{allowedValue: "crm:E33_E41_Linguistic_Appellation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}if(data29.title !== undefined){let data32 = data29.title;if(typeof data32 === "string"){if(func3(data32) < 1){const err95 = {instancePath:instancePath+"/source/identifiedBy/title",schemaPath:"#/properties/source/properties/identifiedBy/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}else {const err96 = {instancePath:instancePath+"/source/identifiedBy/title",schemaPath:"#/properties/source/properties/identifiedBy/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}}if(data24.language !== undefined){let data33 = data24.language;if(((typeof data33 !== "string") && (!(Array.isArray(data33)))) && (data33 !== null)){const err97 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/type",keyword:"type",params:{type: schema16.properties.source.properties.language.type},message:"must be string,array,null"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const _errs101 = errors;let valid28 = false;const _errs102 = errors;if(typeof data33 === "string"){if(func3(data33) > 3){const err98 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 3},message:"must NOT have more than 3 characters"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(func3(data33) < 2){const err99 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}else {const err100 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}var _valid5 = _errs102 === errors;valid28 = valid28 || _valid5;if(!valid28){const _errs104 = errors;if(Array.isArray(data33)){if(data33.length < 1){const err101 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}const len6 = data33.length;for(let i1=0; i1<len6; i1++){let data34 = data33[i1];if(typeof data34 === "string"){if(func3(data34) > 3){const err102 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/maxLength",keyword:"maxLength",params:{limit: 3},message:"must NOT have more than 3 characters"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(func3(data34) < 2){const err103 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}else {const err104 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}else {const err105 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var _valid5 = _errs104 === errors;valid28 = valid28 || _valid5;}if(!valid28){const err106 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {errors = _errs101;if(vErrors !== null){if(_errs101){vErrors.length = _errs101;}else {vErrors = null;}}}}if(data24.title !== undefined){let data35 = data24.title;if((typeof data35 !== "string") && (data35 !== null)){const err107 = {instancePath:instancePath+"/source/title",schemaPath:"#/properties/source/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if(typeof data35 === "string"){if(func3(data35) < 1){const err108 = {instancePath:instancePath+"/source/title",schemaPath:"#/properties/source/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}else {const err109 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data.renderedVia !== undefined){let data36 = data.renderedVia;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.id === undefined){const err110 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data36.type === undefined){const err111 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(data36.label === undefined){const err112 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if(data36.id !== undefined){let data37 = data36.id;if(typeof data37 === "string"){if(!(formats0(data37))){const err113 = {instancePath:instancePath+"/renderedVia/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}else {const err114 = {instancePath:instancePath+"/renderedVia/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data36.type !== undefined){let data38 = data36.type;if(typeof data38 !== "string"){const err115 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if("Software" !== data38){const err116 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/const",keyword:"const",params:{allowedValue: "Software"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data36.usedSpecificObject !== undefined){let data39 = data36.usedSpecificObject;if(typeof data39 === "string"){if(!(formats0(data39))){const err117 = {instancePath:instancePath+"/renderedVia/usedSpecificObject",schemaPath:"defs.jsonld#/definitions/software/properties/usedSpecificObject/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}else {const err118 = {instancePath:instancePath+"/renderedVia/usedSpecificObject",schemaPath:"defs.jsonld#/definitions/software/properties/usedSpecificObject/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}if(data36.label !== undefined){let data40 = data36.label;if(typeof data40 === "string"){if(func3(data40) < 1){const err119 = {instancePath:instancePath+"/renderedVia/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/renderedVia/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data36.softwareVersion !== undefined){if(typeof data36.softwareVersion !== "string"){const err121 = {instancePath:instancePath+"/renderedVia/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}}else {const err122 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data.selector !== undefined){let data42 = data.selector;const _errs125 = errors;let valid33 = false;const _errs126 = errors;const _errs128 = errors;let valid34 = false;let passing0 = null;const _errs129 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.id === undefined){const err123 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if(data42.type === undefined){const err124 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(data42.exact === undefined){const err125 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(data42.prefix === undefined){const err126 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if(data42.suffix === undefined){const err127 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data42.id !== undefined){let data43 = data42.id;if(typeof data43 === "string"){if(!(formats0(data43))){const err128 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}else {const err129 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}if(data42.type !== undefined){let data44 = data42.type;if(Array.isArray(data44)){if(data44.length > 2){const err130 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if(data44.length < 2){const err131 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}const len7 = data44.length;if(len7 > 0){let data45 = data44[0];if(typeof data45 !== "string"){const err132 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if("TextQuoteSelector" !== data45){const err133 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}if(len7 > 1){let data46 = data44[1];if(typeof data46 !== "string"){const err134 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}if("crm:E33_Linguistic_Object" !== data46){const err135 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}}else {const err136 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(data42.exact !== undefined){if(typeof data42.exact !== "string"){const err137 = {instancePath:instancePath+"/selector/exact",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(data42.prefix !== undefined){if(typeof data42.prefix !== "string"){const err138 = {instancePath:instancePath+"/selector/prefix",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data42.suffix !== undefined){if(typeof data42.suffix !== "string"){const err139 = {instancePath:instancePath+"/selector/suffix",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}if(data42.refinedBy !== undefined){let data50 = data42.refinedBy;const _errs147 = errors;let valid37 = false;let passing1 = null;const _errs148 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.id === undefined){const err140 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data50.type === undefined){const err141 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data50.start === undefined){const err142 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if(data50.end === undefined){const err143 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(data50.id !== undefined){let data51 = data50.id;if(typeof data51 === "string"){if(!(formats0(data51))){const err144 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}else {const err145 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data50.type !== undefined){let data52 = data50.type;if(Array.isArray(data52)){if(data52.length > 2){const err146 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if(data52.length < 2){const err147 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}const len8 = data52.length;if(len8 > 0){let data53 = data52[0];if(typeof data53 !== "string"){const err148 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if("TextPositionSelector" !== data53){const err149 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}if(len8 > 1){let data54 = data52[1];if(typeof data54 !== "string"){const err150 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if("crm:E73_Information_Object" !== data54){const err151 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}else {const err152 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}if(data50.start !== undefined){let data55 = data50.start;if((typeof data55 == "number") && (isFinite(data55))){if(data55 < 0 || isNaN(data55)){const err153 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}else {const err154 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}if(data50.end !== undefined){let data56 = data50.end;if((typeof data56 == "number") && (isFinite(data56))){if(data56 < 0 || isNaN(data56)){const err155 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}else {const err156 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}}else {const err157 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}var _valid8 = _errs148 === errors;if(_valid8){valid37 = true;passing1 = 0;}const _errs163 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.id === undefined){const err158 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data50.type === undefined){const err159 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data50.exact === undefined){const err160 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(data50.prefix === undefined){const err161 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if(data50.suffix === undefined){const err162 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(data50.id !== undefined){let data57 = data50.id;if(typeof data57 === "string"){if(!(formats0(data57))){const err163 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}else {const err164 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data50.type !== undefined){let data58 = data50.type;if(Array.isArray(data58)){if(data58.length > 2){const err165 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data58.length < 2){const err166 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}const len9 = data58.length;if(len9 > 0){let data59 = data58[0];if(typeof data59 !== "string"){const err167 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if("TextQuoteSelector" !== data59){const err168 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(len9 > 1){let data60 = data58[1];if(typeof data60 !== "string"){const err169 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if("crm:E33_Linguistic_Object" !== data60){const err170 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}else {const err171 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}if(data50.exact !== undefined){if(typeof data50.exact !== "string"){const err172 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data50.prefix !== undefined){if(typeof data50.prefix !== "string"){const err173 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data50.suffix !== undefined){if(typeof data50.suffix !== "string"){const err174 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}}else {const err175 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}var _valid8 = _errs163 === errors;if(_valid8 && valid37){valid37 = false;passing1 = [passing1, 1];}else {if(_valid8){valid37 = true;passing1 = 1;}}if(!valid37){const err176 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}if(!(data50 && typeof data50 == "object" && !Array.isArray(data50))){const err177 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}}else {const err178 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}var _valid7 = _errs129 === errors;if(_valid7){valid34 = true;passing0 = 0;}const _errs180 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.id === undefined){const err179 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if(data42.type === undefined){const err180 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(data42.start === undefined){const err181 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if(data42.end === undefined){const err182 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}if(data42.id !== undefined){let data64 = data42.id;if(typeof data64 === "string"){if(!(formats0(data64))){const err183 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}else {const err184 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}if(data42.type !== undefined){let data65 = data42.type;if(Array.isArray(data65)){if(data65.length > 2){const err185 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if(data65.length < 2){const err186 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}const len10 = data65.length;if(len10 > 0){let data66 = data65[0];if(typeof data66 !== "string"){const err187 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if("TextPositionSelector" !== data66){const err188 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(len10 > 1){let data67 = data65[1];if(typeof data67 !== "string"){const err189 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if("crm:E73_Information_Object" !== data67){const err190 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}else {const err191 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data42.start !== undefined){let data68 = data42.start;if((typeof data68 == "number") && (isFinite(data68))){if(data68 < 0 || isNaN(data68)){const err192 = {instancePath:instancePath+"/selector/start",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}else {const err193 = {instancePath:instancePath+"/selector/start",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(data42.end !== undefined){let data69 = data42.end;if((typeof data69 == "number") && (isFinite(data69))){if(data69 < 0 || isNaN(data69)){const err194 = {instancePath:instancePath+"/selector/end",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}else {const err195 = {instancePath:instancePath+"/selector/end",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}if(data42.refinedBy !== undefined){let data70 = data42.refinedBy;const _errs196 = errors;let valid46 = false;let passing2 = null;const _errs197 = errors;if(data70 && typeof data70 == "object" && !Array.isArray(data70)){if(data70.id === undefined){const err196 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(data70.type === undefined){const err197 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(data70.start === undefined){const err198 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}if(data70.end === undefined){const err199 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if(data70.id !== undefined){let data71 = data70.id;if(typeof data71 === "string"){if(!(formats0(data71))){const err200 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}else {const err201 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data70.type !== undefined){let data72 = data70.type;if(Array.isArray(data72)){if(data72.length > 2){const err202 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}if(data72.length < 2){const err203 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}const len11 = data72.length;if(len11 > 0){let data73 = data72[0];if(typeof data73 !== "string"){const err204 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}if("TextPositionSelector" !== data73){const err205 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}if(len11 > 1){let data74 = data72[1];if(typeof data74 !== "string"){const err206 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}if("crm:E73_Information_Object" !== data74){const err207 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}}else {const err208 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}if(data70.start !== undefined){let data75 = data70.start;if((typeof data75 == "number") && (isFinite(data75))){if(data75 < 0 || isNaN(data75)){const err209 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}else {const err210 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(data70.end !== undefined){let data76 = data70.end;if((typeof data76 == "number") && (isFinite(data76))){if(data76 < 0 || isNaN(data76)){const err211 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}else {const err212 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}}else {const err213 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}var _valid9 = _errs197 === errors;if(_valid9){valid46 = true;passing2 = 0;}const _errs212 = errors;if(data70 && typeof data70 == "object" && !Array.isArray(data70)){if(data70.id === undefined){const err214 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}if(data70.type === undefined){const err215 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if(data70.exact === undefined){const err216 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}if(data70.prefix === undefined){const err217 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}if(data70.suffix === undefined){const err218 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}if(data70.id !== undefined){let data77 = data70.id;if(typeof data77 === "string"){if(!(formats0(data77))){const err219 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}else {const err220 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(data70.type !== undefined){let data78 = data70.type;if(Array.isArray(data78)){if(data78.length > 2){const err221 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}if(data78.length < 2){const err222 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}const len12 = data78.length;if(len12 > 0){let data79 = data78[0];if(typeof data79 !== "string"){const err223 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}if("TextQuoteSelector" !== data79){const err224 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}if(len12 > 1){let data80 = data78[1];if(typeof data80 !== "string"){const err225 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}if("crm:E33_Linguistic_Object" !== data80){const err226 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}}else {const err227 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}if(data70.exact !== undefined){if(typeof data70.exact !== "string"){const err228 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(data70.prefix !== undefined){if(typeof data70.prefix !== "string"){const err229 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}if(data70.suffix !== undefined){if(typeof data70.suffix !== "string"){const err230 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}else {const err231 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var _valid9 = _errs212 === errors;if(_valid9 && valid46){valid46 = false;passing2 = [passing2, 1];}else {if(_valid9){valid46 = true;passing2 = 1;}}if(!valid46){const err232 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}else {errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}}if(!(data70 && typeof data70 == "object" && !Array.isArray(data70))){const err233 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}else {const err234 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}var _valid7 = _errs180 === errors;if(_valid7 && valid34){valid34 = false;passing0 = [passing0, 1];}else {if(_valid7){valid34 = true;passing0 = 1;}const _errs229 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.id === undefined){const err235 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if(data42.type === undefined){const err236 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}if(data42.value === undefined){const err237 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}if(data42.id !== undefined){let data84 = data42.id;if(typeof data84 === "string"){if(!(formats0(data84))){const err238 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}else {const err239 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}}if(data42.type !== undefined){let data85 = data42.type;if(Array.isArray(data85)){if(data85.length > 2){const err240 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}if(data85.length < 2){const err241 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}const len13 = data85.length;if(len13 > 0){let data86 = data85[0];if(typeof data86 !== "string"){const err242 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}if("XPathSelector" !== data86){const err243 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}if(len13 > 1){let data87 = data85[1];if(typeof data87 !== "string"){const err244 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}if("crm:E73_Information_Object" !== data87){const err245 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}}else {const err246 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}if(data42.value !== undefined){if(typeof data42.value !== "string"){const err247 = {instancePath:instancePath+"/selector/value",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}if(data42.refinedBy !== undefined){let data89 = data42.refinedBy;const _errs243 = errors;let valid55 = false;const _errs244 = errors;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.id === undefined){const err248 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data89.type === undefined){const err249 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}if(data89.start === undefined){const err250 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}if(data89.end === undefined){const err251 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}if(data89.id !== undefined){let data90 = data89.id;if(typeof data90 === "string"){if(!(formats0(data90))){const err252 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}}else {const err253 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}if(data89.type !== undefined){let data91 = data89.type;if(Array.isArray(data91)){if(data91.length > 2){const err254 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}if(data91.length < 2){const err255 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}const len14 = data91.length;if(len14 > 0){let data92 = data91[0];if(typeof data92 !== "string"){const err256 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}if("TextPositionSelector" !== data92){const err257 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}}if(len14 > 1){let data93 = data91[1];if(typeof data93 !== "string"){const err258 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}if("crm:E73_Information_Object" !== data93){const err259 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}}else {const err260 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}if(data89.start !== undefined){let data94 = data89.start;if((typeof data94 == "number") && (isFinite(data94))){if(data94 < 0 || isNaN(data94)){const err261 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}}else {const err262 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}}if(data89.end !== undefined){let data95 = data89.end;if((typeof data95 == "number") && (isFinite(data95))){if(data95 < 0 || isNaN(data95)){const err263 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}else {const err264 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}}else {const err265 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}var _valid10 = _errs244 === errors;valid55 = valid55 || _valid10;if(!valid55){const _errs259 = errors;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.id === undefined){const err266 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if(data89.type === undefined){const err267 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}if(data89.exact === undefined){const err268 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}if(data89.prefix === undefined){const err269 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}if(data89.suffix === undefined){const err270 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}if(data89.id !== undefined){let data96 = data89.id;if(typeof data96 === "string"){if(!(formats0(data96))){const err271 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}else {const err272 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}if(data89.type !== undefined){let data97 = data89.type;if(Array.isArray(data97)){if(data97.length > 2){const err273 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}if(data97.length < 2){const err274 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}const len15 = data97.length;if(len15 > 0){let data98 = data97[0];if(typeof data98 !== "string"){const err275 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}if("TextQuoteSelector" !== data98){const err276 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}if(len15 > 1){let data99 = data97[1];if(typeof data99 !== "string"){const err277 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}if("crm:E33_Linguistic_Object" !== data99){const err278 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}}else {const err279 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}if(data89.exact !== undefined){if(typeof data89.exact !== "string"){const err280 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}if(data89.prefix !== undefined){if(typeof data89.prefix !== "string"){const err281 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}if(data89.suffix !== undefined){if(typeof data89.suffix !== "string"){const err282 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}}else {const err283 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var _valid10 = _errs259 === errors;valid55 = valid55 || _valid10;}if(!valid55){const err284 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}else {errors = _errs243;if(vErrors !== null){if(_errs243){vErrors.length = _errs243;}else {vErrors = null;}}}if(!(data89 && typeof data89 == "object" && !Array.isArray(data89))){const err285 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}}}else {const err286 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}var _valid7 = _errs229 === errors;if(_valid7 && valid34){valid34 = false;passing0 = [passing0, 2];}else {if(_valid7){valid34 = true;passing0 = 2;}const _errs276 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.id === undefined){const err287 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}if(data42.type === undefined){const err288 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}if(data42.startSelector === undefined){const err289 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}if(data42.endSelector === undefined){const err290 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}if(data42.id !== undefined){let data103 = data42.id;if(typeof data103 === "string"){if(!(formats0(data103))){const err291 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}else {const err292 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}if(data42.type !== undefined){let data104 = data42.type;if(Array.isArray(data104)){if(data104.length > 2){const err293 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}if(data104.length < 2){const err294 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}const len16 = data104.length;if(len16 > 0){let data105 = data104[0];if(typeof data105 !== "string"){const err295 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}if("RangeSelector" !== data105){const err296 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}if(len16 > 1){let data106 = data104[1];if(typeof data106 !== "string"){const err297 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}if("crm:E73_Information_Object" !== data106){const err298 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}}else {const err299 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}if(data42.startSelector !== undefined){let data107 = data42.startSelector;if(data107 && typeof data107 == "object" && !Array.isArray(data107)){if(data107.id === undefined){const err300 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}if(data107.type === undefined){const err301 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}if(data107.value === undefined){const err302 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}if(data107.id !== undefined){let data108 = data107.id;if(typeof data108 === "string"){if(!(formats0(data108))){const err303 = {instancePath:instancePath+"/selector/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}else {const err304 = {instancePath:instancePath+"/selector/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}}if(data107.type !== undefined){let data109 = data107.type;if(Array.isArray(data109)){if(data109.length > 2){const err305 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}if(data109.length < 2){const err306 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}const len17 = data109.length;if(len17 > 0){let data110 = data109[0];if(typeof data110 !== "string"){const err307 = {instancePath:instancePath+"/selector/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if("XPathSelector" !== data110){const err308 = {instancePath:instancePath+"/selector/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}if(len17 > 1){let data111 = data109[1];if(typeof data111 !== "string"){const err309 = {instancePath:instancePath+"/selector/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}if("crm:E73_Information_Object" !== data111){const err310 = {instancePath:instancePath+"/selector/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}}}else {const err311 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}}if(data107.value !== undefined){if(typeof data107.value !== "string"){const err312 = {instancePath:instancePath+"/selector/startSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}}}else {const err313 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}}if(data42.endSelector !== undefined){let data113 = data42.endSelector;if(data113 && typeof data113 == "object" && !Array.isArray(data113)){if(data113.id === undefined){const err314 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}if(data113.type === undefined){const err315 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}if(data113.value === undefined){const err316 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}if(data113.id !== undefined){let data114 = data113.id;if(typeof data114 === "string"){if(!(formats0(data114))){const err317 = {instancePath:instancePath+"/selector/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}}else {const err318 = {instancePath:instancePath+"/selector/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}}if(data113.type !== undefined){let data115 = data113.type;if(Array.isArray(data115)){if(data115.length > 2){const err319 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}if(data115.length < 2){const err320 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}const len18 = data115.length;if(len18 > 0){let data116 = data115[0];if(typeof data116 !== "string"){const err321 = {instancePath:instancePath+"/selector/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}if("XPathSelector" !== data116){const err322 = {instancePath:instancePath+"/selector/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}}if(len18 > 1){let data117 = data115[1];if(typeof data117 !== "string"){const err323 = {instancePath:instancePath+"/selector/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}if("crm:E73_Information_Object" !== data117){const err324 = {instancePath:instancePath+"/selector/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}}}else {const err325 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}}if(data113.value !== undefined){if(typeof data113.value !== "string"){const err326 = {instancePath:instancePath+"/selector/endSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}}}else {const err327 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}}}else {const err328 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}var _valid7 = _errs276 === errors;if(_valid7 && valid34){valid34 = false;passing0 = [passing0, 3];}else {if(_valid7){valid34 = true;passing0 = 3;}}}}if(!valid34){const err329 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}else {errors = _errs128;if(vErrors !== null){if(_errs128){vErrors.length = _errs128;}else {vErrors = null;}}}if(!(data42 && typeof data42 == "object" && !Array.isArray(data42))){const err330 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}var _valid6 = _errs126 === errors;valid33 = valid33 || _valid6;if(!valid33){const _errs312 = errors;if(Array.isArray(data42)){if(data42.length < 1){const err331 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}const len19 = data42.length;for(let i2=0; i2<len19; i2++){let data119 = data42[i2];const _errs316 = errors;let valid72 = false;let passing3 = null;const _errs317 = errors;if(data119 && typeof data119 == "object" && !Array.isArray(data119)){if(data119.id === undefined){const err332 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}if(data119.type === undefined){const err333 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}if(data119.exact === undefined){const err334 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}if(data119.prefix === undefined){const err335 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}if(data119.suffix === undefined){const err336 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}if(data119.id !== undefined){let data120 = data119.id;if(typeof data120 === "string"){if(!(formats0(data120))){const err337 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}}else {const err338 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}}if(data119.type !== undefined){let data121 = data119.type;if(Array.isArray(data121)){if(data121.length > 2){const err339 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}if(data121.length < 2){const err340 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}const len20 = data121.length;if(len20 > 0){let data122 = data121[0];if(typeof data122 !== "string"){const err341 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}if("TextQuoteSelector" !== data122){const err342 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}}if(len20 > 1){let data123 = data121[1];if(typeof data123 !== "string"){const err343 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}if("crm:E33_Linguistic_Object" !== data123){const err344 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}}}else {const err345 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}}if(data119.exact !== undefined){if(typeof data119.exact !== "string"){const err346 = {instancePath:instancePath+"/selector/" + i2+"/exact",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}}if(data119.prefix !== undefined){if(typeof data119.prefix !== "string"){const err347 = {instancePath:instancePath+"/selector/" + i2+"/prefix",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}}if(data119.suffix !== undefined){if(typeof data119.suffix !== "string"){const err348 = {instancePath:instancePath+"/selector/" + i2+"/suffix",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}}if(data119.refinedBy !== undefined){let data127 = data119.refinedBy;const _errs335 = errors;let valid75 = false;let passing4 = null;const _errs336 = errors;if(data127 && typeof data127 == "object" && !Array.isArray(data127)){if(data127.id === undefined){const err349 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}if(data127.type === undefined){const err350 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}if(data127.start === undefined){const err351 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}if(data127.end === undefined){const err352 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}if(data127.id !== undefined){let data128 = data127.id;if(typeof data128 === "string"){if(!(formats0(data128))){const err353 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}}else {const err354 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}}if(data127.type !== undefined){let data129 = data127.type;if(Array.isArray(data129)){if(data129.length > 2){const err355 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}if(data129.length < 2){const err356 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}const len21 = data129.length;if(len21 > 0){let data130 = data129[0];if(typeof data130 !== "string"){const err357 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}if("TextPositionSelector" !== data130){const err358 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}}if(len21 > 1){let data131 = data129[1];if(typeof data131 !== "string"){const err359 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}if("crm:E73_Information_Object" !== data131){const err360 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}}}else {const err361 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}if(data127.start !== undefined){let data132 = data127.start;if((typeof data132 == "number") && (isFinite(data132))){if(data132 < 0 || isNaN(data132)){const err362 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}}else {const err363 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}}if(data127.end !== undefined){let data133 = data127.end;if((typeof data133 == "number") && (isFinite(data133))){if(data133 < 0 || isNaN(data133)){const err364 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}}else {const err365 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}}}else {const err366 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}var _valid12 = _errs336 === errors;if(_valid12){valid75 = true;passing4 = 0;}const _errs351 = errors;if(data127 && typeof data127 == "object" && !Array.isArray(data127)){if(data127.id === undefined){const err367 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}if(data127.type === undefined){const err368 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}if(data127.exact === undefined){const err369 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}if(data127.prefix === undefined){const err370 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}if(data127.suffix === undefined){const err371 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}if(data127.id !== undefined){let data134 = data127.id;if(typeof data134 === "string"){if(!(formats0(data134))){const err372 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}}else {const err373 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}}if(data127.type !== undefined){let data135 = data127.type;if(Array.isArray(data135)){if(data135.length > 2){const err374 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}if(data135.length < 2){const err375 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}const len22 = data135.length;if(len22 > 0){let data136 = data135[0];if(typeof data136 !== "string"){const err376 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}if("TextQuoteSelector" !== data136){const err377 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}}if(len22 > 1){let data137 = data135[1];if(typeof data137 !== "string"){const err378 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}if("crm:E33_Linguistic_Object" !== data137){const err379 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}}}else {const err380 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}}if(data127.exact !== undefined){if(typeof data127.exact !== "string"){const err381 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}}if(data127.prefix !== undefined){if(typeof data127.prefix !== "string"){const err382 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}}if(data127.suffix !== undefined){if(typeof data127.suffix !== "string"){const err383 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}}else {const err384 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}var _valid12 = _errs351 === errors;if(_valid12 && valid75){valid75 = false;passing4 = [passing4, 1];}else {if(_valid12){valid75 = true;passing4 = 1;}}if(!valid75){const err385 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}else {errors = _errs335;if(vErrors !== null){if(_errs335){vErrors.length = _errs335;}else {vErrors = null;}}}if(!(data127 && typeof data127 == "object" && !Array.isArray(data127))){const err386 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}}}else {const err387 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}var _valid11 = _errs317 === errors;if(_valid11){valid72 = true;passing3 = 0;}const _errs368 = errors;if(data119 && typeof data119 == "object" && !Array.isArray(data119)){if(data119.id === undefined){const err388 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}if(data119.type === undefined){const err389 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}if(data119.start === undefined){const err390 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}if(data119.end === undefined){const err391 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}if(data119.id !== undefined){let data141 = data119.id;if(typeof data141 === "string"){if(!(formats0(data141))){const err392 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}}else {const err393 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}}if(data119.type !== undefined){let data142 = data119.type;if(Array.isArray(data142)){if(data142.length > 2){const err394 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}if(data142.length < 2){const err395 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}const len23 = data142.length;if(len23 > 0){let data143 = data142[0];if(typeof data143 !== "string"){const err396 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}if("TextPositionSelector" !== data143){const err397 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}}if(len23 > 1){let data144 = data142[1];if(typeof data144 !== "string"){const err398 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}if("crm:E73_Information_Object" !== data144){const err399 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}}}else {const err400 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}}if(data119.start !== undefined){let data145 = data119.start;if((typeof data145 == "number") && (isFinite(data145))){if(data145 < 0 || isNaN(data145)){const err401 = {instancePath:instancePath+"/selector/" + i2+"/start",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}}else {const err402 = {instancePath:instancePath+"/selector/" + i2+"/start",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}}if(data119.end !== undefined){let data146 = data119.end;if((typeof data146 == "number") && (isFinite(data146))){if(data146 < 0 || isNaN(data146)){const err403 = {instancePath:instancePath+"/selector/" + i2+"/end",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}}else {const err404 = {instancePath:instancePath+"/selector/" + i2+"/end",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}}if(data119.refinedBy !== undefined){let data147 = data119.refinedBy;const _errs384 = errors;let valid84 = false;let passing5 = null;const _errs385 = errors;if(data147 && typeof data147 == "object" && !Array.isArray(data147)){if(data147.id === undefined){const err405 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}if(data147.type === undefined){const err406 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}if(data147.start === undefined){const err407 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}if(data147.end === undefined){const err408 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}if(data147.id !== undefined){let data148 = data147.id;if(typeof data148 === "string"){if(!(formats0(data148))){const err409 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}}else {const err410 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}}if(data147.type !== undefined){let data149 = data147.type;if(Array.isArray(data149)){if(data149.length > 2){const err411 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}if(data149.length < 2){const err412 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}const len24 = data149.length;if(len24 > 0){let data150 = data149[0];if(typeof data150 !== "string"){const err413 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}if("TextPositionSelector" !== data150){const err414 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}}if(len24 > 1){let data151 = data149[1];if(typeof data151 !== "string"){const err415 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}if("crm:E73_Information_Object" !== data151){const err416 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}}}else {const err417 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}}if(data147.start !== undefined){let data152 = data147.start;if((typeof data152 == "number") && (isFinite(data152))){if(data152 < 0 || isNaN(data152)){const err418 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}}else {const err419 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}}if(data147.end !== undefined){let data153 = data147.end;if((typeof data153 == "number") && (isFinite(data153))){if(data153 < 0 || isNaN(data153)){const err420 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}}else {const err421 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}}}else {const err422 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}var _valid13 = _errs385 === errors;if(_valid13){valid84 = true;passing5 = 0;}const _errs400 = errors;if(data147 && typeof data147 == "object" && !Array.isArray(data147)){if(data147.id === undefined){const err423 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}if(data147.type === undefined){const err424 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}if(data147.exact === undefined){const err425 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}if(data147.prefix === undefined){const err426 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}if(data147.suffix === undefined){const err427 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}if(data147.id !== undefined){let data154 = data147.id;if(typeof data154 === "string"){if(!(formats0(data154))){const err428 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}}else {const err429 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}}if(data147.type !== undefined){let data155 = data147.type;if(Array.isArray(data155)){if(data155.length > 2){const err430 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}if(data155.length < 2){const err431 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}const len25 = data155.length;if(len25 > 0){let data156 = data155[0];if(typeof data156 !== "string"){const err432 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}if("TextQuoteSelector" !== data156){const err433 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}}if(len25 > 1){let data157 = data155[1];if(typeof data157 !== "string"){const err434 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}if("crm:E33_Linguistic_Object" !== data157){const err435 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}}}else {const err436 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}}if(data147.exact !== undefined){if(typeof data147.exact !== "string"){const err437 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}}if(data147.prefix !== undefined){if(typeof data147.prefix !== "string"){const err438 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}}if(data147.suffix !== undefined){if(typeof data147.suffix !== "string"){const err439 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}}}else {const err440 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}var _valid13 = _errs400 === errors;if(_valid13 && valid84){valid84 = false;passing5 = [passing5, 1];}else {if(_valid13){valid84 = true;passing5 = 1;}}if(!valid84){const err441 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}else {errors = _errs384;if(vErrors !== null){if(_errs384){vErrors.length = _errs384;}else {vErrors = null;}}}if(!(data147 && typeof data147 == "object" && !Array.isArray(data147))){const err442 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}}}else {const err443 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}var _valid11 = _errs368 === errors;if(_valid11 && valid72){valid72 = false;passing3 = [passing3, 1];}else {if(_valid11){valid72 = true;passing3 = 1;}const _errs417 = errors;if(data119 && typeof data119 == "object" && !Array.isArray(data119)){if(data119.id === undefined){const err444 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}if(data119.type === undefined){const err445 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}if(data119.value === undefined){const err446 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}if(data119.id !== undefined){let data161 = data119.id;if(typeof data161 === "string"){if(!(formats0(data161))){const err447 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}}else {const err448 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}}if(data119.type !== undefined){let data162 = data119.type;if(Array.isArray(data162)){if(data162.length > 2){const err449 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}if(data162.length < 2){const err450 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}const len26 = data162.length;if(len26 > 0){let data163 = data162[0];if(typeof data163 !== "string"){const err451 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}if("XPathSelector" !== data163){const err452 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}}if(len26 > 1){let data164 = data162[1];if(typeof data164 !== "string"){const err453 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}if("crm:E73_Information_Object" !== data164){const err454 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}}}else {const err455 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}}if(data119.value !== undefined){if(typeof data119.value !== "string"){const err456 = {instancePath:instancePath+"/selector/" + i2+"/value",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}}if(data119.refinedBy !== undefined){let data166 = data119.refinedBy;const _errs431 = errors;let valid93 = false;const _errs432 = errors;if(data166 && typeof data166 == "object" && !Array.isArray(data166)){if(data166.id === undefined){const err457 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}if(data166.type === undefined){const err458 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}if(data166.start === undefined){const err459 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}if(data166.end === undefined){const err460 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}if(data166.id !== undefined){let data167 = data166.id;if(typeof data167 === "string"){if(!(formats0(data167))){const err461 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}}else {const err462 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}if(data166.type !== undefined){let data168 = data166.type;if(Array.isArray(data168)){if(data168.length > 2){const err463 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}if(data168.length < 2){const err464 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}const len27 = data168.length;if(len27 > 0){let data169 = data168[0];if(typeof data169 !== "string"){const err465 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}if("TextPositionSelector" !== data169){const err466 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}}if(len27 > 1){let data170 = data168[1];if(typeof data170 !== "string"){const err467 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}if("crm:E73_Information_Object" !== data170){const err468 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}}}else {const err469 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}}if(data166.start !== undefined){let data171 = data166.start;if((typeof data171 == "number") && (isFinite(data171))){if(data171 < 0 || isNaN(data171)){const err470 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}}else {const err471 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}}if(data166.end !== undefined){let data172 = data166.end;if((typeof data172 == "number") && (isFinite(data172))){if(data172 < 0 || isNaN(data172)){const err472 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}else {const err473 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}}}else {const err474 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}var _valid14 = _errs432 === errors;valid93 = valid93 || _valid14;if(!valid93){const _errs447 = errors;if(data166 && typeof data166 == "object" && !Array.isArray(data166)){if(data166.id === undefined){const err475 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}if(data166.type === undefined){const err476 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}if(data166.exact === undefined){const err477 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}if(data166.prefix === undefined){const err478 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}if(data166.suffix === undefined){const err479 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}if(data166.id !== undefined){let data173 = data166.id;if(typeof data173 === "string"){if(!(formats0(data173))){const err480 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}}else {const err481 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}}if(data166.type !== undefined){let data174 = data166.type;if(Array.isArray(data174)){if(data174.length > 2){const err482 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}if(data174.length < 2){const err483 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}const len28 = data174.length;if(len28 > 0){let data175 = data174[0];if(typeof data175 !== "string"){const err484 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}if("TextQuoteSelector" !== data175){const err485 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}}if(len28 > 1){let data176 = data174[1];if(typeof data176 !== "string"){const err486 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}if("crm:E33_Linguistic_Object" !== data176){const err487 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}}}else {const err488 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}}if(data166.exact !== undefined){if(typeof data166.exact !== "string"){const err489 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}}if(data166.prefix !== undefined){if(typeof data166.prefix !== "string"){const err490 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}}if(data166.suffix !== undefined){if(typeof data166.suffix !== "string"){const err491 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}}}else {const err492 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}var _valid14 = _errs447 === errors;valid93 = valid93 || _valid14;}if(!valid93){const err493 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}else {errors = _errs431;if(vErrors !== null){if(_errs431){vErrors.length = _errs431;}else {vErrors = null;}}}if(!(data166 && typeof data166 == "object" && !Array.isArray(data166))){const err494 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}}}else {const err495 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}var _valid11 = _errs417 === errors;if(_valid11 && valid72){valid72 = false;passing3 = [passing3, 2];}else {if(_valid11){valid72 = true;passing3 = 2;}const _errs464 = errors;if(data119 && typeof data119 == "object" && !Array.isArray(data119)){if(data119.id === undefined){const err496 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}if(data119.type === undefined){const err497 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}if(data119.startSelector === undefined){const err498 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}if(data119.endSelector === undefined){const err499 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}if(data119.id !== undefined){let data180 = data119.id;if(typeof data180 === "string"){if(!(formats0(data180))){const err500 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}}else {const err501 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}}if(data119.type !== undefined){let data181 = data119.type;if(Array.isArray(data181)){if(data181.length > 2){const err502 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}if(data181.length < 2){const err503 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}const len29 = data181.length;if(len29 > 0){let data182 = data181[0];if(typeof data182 !== "string"){const err504 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}if("RangeSelector" !== data182){const err505 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}}if(len29 > 1){let data183 = data181[1];if(typeof data183 !== "string"){const err506 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}if("crm:E73_Information_Object" !== data183){const err507 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}}}else {const err508 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}if(data119.startSelector !== undefined){let data184 = data119.startSelector;if(data184 && typeof data184 == "object" && !Array.isArray(data184)){if(data184.id === undefined){const err509 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}if(data184.type === undefined){const err510 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}if(data184.value === undefined){const err511 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}if(data184.id !== undefined){let data185 = data184.id;if(typeof data185 === "string"){if(!(formats0(data185))){const err512 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}}else {const err513 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}}if(data184.type !== undefined){let data186 = data184.type;if(Array.isArray(data186)){if(data186.length > 2){const err514 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}if(data186.length < 2){const err515 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}const len30 = data186.length;if(len30 > 0){let data187 = data186[0];if(typeof data187 !== "string"){const err516 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}if("XPathSelector" !== data187){const err517 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}}if(len30 > 1){let data188 = data186[1];if(typeof data188 !== "string"){const err518 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}if("crm:E73_Information_Object" !== data188){const err519 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}}}else {const err520 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}}if(data184.value !== undefined){if(typeof data184.value !== "string"){const err521 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}}}else {const err522 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}}if(data119.endSelector !== undefined){let data190 = data119.endSelector;if(data190 && typeof data190 == "object" && !Array.isArray(data190)){if(data190.id === undefined){const err523 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}if(data190.type === undefined){const err524 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}if(data190.value === undefined){const err525 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}if(data190.id !== undefined){let data191 = data190.id;if(typeof data191 === "string"){if(!(formats0(data191))){const err526 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}}else {const err527 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}}if(data190.type !== undefined){let data192 = data190.type;if(Array.isArray(data192)){if(data192.length > 2){const err528 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}if(data192.length < 2){const err529 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}const len31 = data192.length;if(len31 > 0){let data193 = data192[0];if(typeof data193 !== "string"){const err530 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}if("XPathSelector" !== data193){const err531 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}}if(len31 > 1){let data194 = data192[1];if(typeof data194 !== "string"){const err532 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}if("crm:E73_Information_Object" !== data194){const err533 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}}}else {const err534 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}}if(data190.value !== undefined){if(typeof data190.value !== "string"){const err535 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}}}else {const err536 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}}}else {const err537 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}var _valid11 = _errs464 === errors;if(_valid11 && valid72){valid72 = false;passing3 = [passing3, 3];}else {if(_valid11){valid72 = true;passing3 = 3;}}}}if(!valid72){const err538 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}else {errors = _errs316;if(vErrors !== null){if(_errs316){vErrors.length = _errs316;}else {vErrors = null;}}}if(!(data119 && typeof data119 == "object" && !Array.isArray(data119))){const err539 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}}}else {const err540 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}var _valid6 = _errs312 === errors;valid33 = valid33 || _valid6;}if(!valid33){const err541 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}else {errors = _errs125;if(vErrors !== null){if(_errs125){vErrors.length = _errs125;}else {vErrors = null;}}}}}else {const err542 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}validate12.errors = vErrors;return errors === 0;}const schema34 = {"type":"object","description":"Web Annotation Body","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Body resource."},"type":{"type":"string","const":"Choice"},"entityType":{"oneOf":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"cwrc:place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cwrc:place"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E89_Propositional_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"string","const":"wikidata:Q15831596"}]}]},{"oneOf":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"string","const":"wikidata:Q15831596"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"string","const":"crm:E33_Linguistic_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crmdig:D1_Digital_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"string","const":"crmdig:D1_Digital_Object"},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E5_Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]}]},"label":{"type":"string","minLength":1,"description":"The title or name of a linked resource or named entity."},"items":{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"}}},"required":["id","type","entityType","items"],"additionalProperties":false};const pattern0 = new RegExp("^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$", "u");function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.entityType === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.items === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!(((((key0 === "id") || (key0 === "type")) || (key0 === "entityType")) || (key0 === "label")) || (key0 === "items"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!(formats0(data0))){const err5 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.type !== undefined){let data1 = data.type;if(typeof data1 !== "string"){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if("Choice" !== data1){const err8 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "Choice"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.entityType !== undefined){let data2 = data.entityType;const _errs7 = errors;let valid1 = false;let passing0 = null;const _errs8 = errors;const _errs9 = errors;let valid2 = false;let passing1 = null;const _errs10 = errors;if(typeof data2 !== "string"){const err9 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("crm:E21_Person" !== data2){const err10 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid1 = _errs10 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs12 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err11 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data2.length < 2){const err12 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}const len0 = data2.length;if(len0 > 0){let data3 = data2[0];if(typeof data3 !== "string"){const err13 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("foaf:Person" !== data3){const err14 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(len0 > 1){let data4 = data2[1];if(typeof data4 !== "string"){const err15 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("crm:E89_Propositional_Object" !== data4){const err16 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid1 = _errs12 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}}if(!valid2){const err18 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var _valid0 = _errs8 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs18 = errors;const _errs19 = errors;let valid4 = false;let passing2 = null;const _errs20 = errors;if(typeof data2 !== "string"){const err19 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("cwrc:place" !== data2){const err20 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid2 = _errs20 === errors;if(_valid2){valid4 = true;passing2 = 0;}const _errs22 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err21 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(data2.length < 2){const err22 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}const len1 = data2.length;if(len1 > 0){let data5 = data2[0];if(typeof data5 !== "string"){const err23 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("cwrc:place" !== data5){const err24 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(len1 > 1){let data6 = data2[1];if(typeof data6 !== "string"){const err25 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("crm:E89_Propositional_Object" !== data6){const err26 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid2 = _errs22 === errors;if(_valid2 && valid4){valid4 = false;passing2 = [passing2, 1];}else {if(_valid2){valid4 = true;passing2 = 1;}}if(!valid4){const err28 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {errors = _errs19;if(vErrors !== null){if(_errs19){vErrors.length = _errs19;}else {vErrors = null;}}}var _valid0 = _errs18 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 1];}else {if(_valid0){valid1 = true;passing0 = 1;}const _errs28 = errors;const _errs29 = errors;let valid6 = false;let passing3 = null;const _errs30 = errors;if(typeof data2 !== "string"){const err29 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("crm:E74_Group" !== data2){const err30 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid3 = _errs30 === errors;if(_valid3){valid6 = true;passing3 = 0;}const _errs32 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err31 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data2.length < 2){const err32 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const len2 = data2.length;if(len2 > 0){let data7 = data2[0];if(typeof data7 !== "string"){const err33 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if("foaf:Organization" !== data7){const err34 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(len2 > 1){let data8 = data2[1];if(typeof data8 !== "string"){const err35 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("crm:E89_Propositional_Object" !== data8){const err36 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var _valid3 = _errs32 === errors;if(_valid3 && valid6){valid6 = false;passing3 = [passing3, 1];}else {if(_valid3){valid6 = true;passing3 = 1;}}if(!valid6){const err38 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}var _valid0 = _errs28 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 2];}else {if(_valid0){valid1 = true;passing0 = 2;}const _errs38 = errors;const _errs39 = errors;let valid8 = false;let passing4 = null;const _errs40 = errors;if(typeof data2 !== "string"){const err39 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("crm:E89_Propositional_Object" !== data2){const err40 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var _valid4 = _errs40 === errors;if(_valid4){valid8 = true;passing4 = 0;}const _errs42 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err41 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data2.length < 2){const err42 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}const len3 = data2.length;if(len3 > 0){let data9 = data2[0];if(typeof data9 !== "string"){const err43 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("frbroo:F1" !== data9){const err44 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(len3 > 1){let data10 = data2[1];if(typeof data10 !== "string"){const err45 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if("wikidata:Q15306849" !== data10){const err46 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}else {const err47 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var _valid4 = _errs42 === errors;if(_valid4 && valid8){valid8 = false;passing4 = [passing4, 1];}else {if(_valid4){valid8 = true;passing4 = 1;}}if(!valid8){const err48 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}var _valid0 = _errs38 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 3];}else {if(_valid0){valid1 = true;passing0 = 3;}const _errs48 = errors;const _errs49 = errors;let valid10 = false;let passing5 = null;const _errs50 = errors;if(typeof data2 !== "string"){const err49 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if("crm:E18_Physical_Thing" !== data2){const err50 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var _valid5 = _errs50 === errors;if(_valid5){valid10 = true;passing5 = 0;}const _errs52 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err51 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(data2.length < 2){const err52 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}const len4 = data2.length;if(len4 > 0){let data11 = data2[0];if(typeof data11 !== "string"){const err53 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if("crm:E18_Physical_Thing" !== data11){const err54 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(len4 > 1){let data12 = data2[1];if(typeof data12 !== "string"){const err55 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if("wikidata:Q15831596" !== data12){const err56 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var _valid5 = _errs52 === errors;if(_valid5 && valid10){valid10 = false;passing5 = [passing5, 1];}else {if(_valid5){valid10 = true;passing5 = 1;}}if(!valid10){const err58 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}var _valid0 = _errs48 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 4];}else {if(_valid0){valid1 = true;passing0 = 4;}const _errs58 = errors;const _errs59 = errors;let valid12 = false;let passing6 = null;const _errs60 = errors;if(typeof data2 !== "string"){const err59 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("crm:E28_Conceptual_Object" !== data2){const err60 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var _valid6 = _errs60 === errors;if(_valid6){valid12 = true;passing6 = 0;}const _errs62 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err61 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(data2.length < 2){const err62 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}const len5 = data2.length;if(len5 > 0){let data13 = data2[0];if(typeof data13 !== "string"){const err63 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if("crm:E28_Conceptual_Object" !== data13){const err64 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(len5 > 1){let data14 = data2[1];if(typeof data14 !== "string"){const err65 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if("wikidata:Q15831596" !== data14){const err66 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}else {const err67 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid6 = _errs62 === errors;if(_valid6 && valid12){valid12 = false;passing6 = [passing6, 1];}else {if(_valid6){valid12 = true;passing6 = 1;}}if(!valid12){const err68 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs59;if(vErrors !== null){if(_errs59){vErrors.length = _errs59;}else {vErrors = null;}}}var _valid0 = _errs58 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 5];}else {if(_valid0){valid1 = true;passing0 = 5;}const _errs68 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err69 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data2.length < 2){const err70 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}const len6 = data2.length;if(len6 > 0){let data15 = data2[0];if(typeof data15 !== "string"){const err71 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if("cito:Citation" !== data15){const err72 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(len6 > 1){let data16 = data2[1];if(typeof data16 !== "string"){const err73 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if("crm:E73_Information_Object" !== data16){const err74 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}}else {const err75 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}var _valid0 = _errs68 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 6];}else {if(_valid0){valid1 = true;passing0 = 6;}const _errs74 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err76 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(data2.length < 2){const err77 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}const len7 = data2.length;if(len7 > 0){let data17 = data2[0];if(typeof data17 !== "string"){const err78 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if("xsd:date" !== data17){const err79 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(len7 > 1){let data18 = data2[1];if(typeof data18 !== "string"){const err80 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if("crm:E52_Time-Span" !== data18){const err81 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}else {const err82 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var _valid0 = _errs74 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 7];}else {if(_valid0){valid1 = true;passing0 = 7;}const _errs80 = errors;if(typeof data2 !== "string"){const err83 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("crm:E33_Linguistic_Object" !== data2){const err84 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}var _valid0 = _errs80 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 8];}else {if(_valid0){valid1 = true;passing0 = 8;}const _errs82 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err85 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(data2.length < 2){const err86 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const len8 = data2.length;if(len8 > 0){let data19 = data2[0];if(typeof data19 !== "string"){const err87 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("fabio:Correction" !== data19){const err88 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(len8 > 1){let data20 = data2[1];if(typeof data20 !== "string"){const err89 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if("crm:E33_Linguistic_Object" !== data20){const err90 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var _valid0 = _errs82 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 9];}else {if(_valid0){valid1 = true;passing0 = 9;}const _errs88 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err92 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(data2.length < 2){const err93 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}const len9 = data2.length;if(len9 > 0){let data21 = data2[0];if(typeof data21 !== "string"){const err94 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if("crm:E55_Type" !== data21){const err95 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(len9 > 1){let data22 = data2[1];if(typeof data22 !== "string"){const err96 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if("crmdig:D1_Digital_Object" !== data22){const err97 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}else {const err98 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}var _valid0 = _errs88 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 10];}else {if(_valid0){valid1 = true;passing0 = 10;}const _errs94 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err99 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data2.length < 2){const err100 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const len10 = data2.length;if(len10 > 0){let data23 = data2[0];if(typeof data23 !== "string"){const err101 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if("crm:E55_Type" !== data23){const err102 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(len10 > 1){let data24 = data2[1];if(typeof data24 !== "string"){const err103 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if("crm:E33_Linguistic_Object" !== data24){const err104 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}else {const err105 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var _valid0 = _errs94 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 11];}else {if(_valid0){valid1 = true;passing0 = 11;}const _errs100 = errors;if(typeof data2 !== "string"){const err106 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if("crmdig:D1_Digital_Object" !== data2){const err107 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}var _valid0 = _errs100 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 12];}else {if(_valid0){valid1 = true;passing0 = 12;}const _errs102 = errors;const _errs103 = errors;let valid19 = false;let passing7 = null;const _errs104 = errors;if(typeof data2 !== "string"){const err108 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if("crm:E5_Event" !== data2){const err109 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}var _valid7 = _errs104 === errors;if(_valid7){valid19 = true;passing7 = 0;}const _errs106 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err110 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data2.length < 2){const err111 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const len11 = data2.length;if(len11 > 0){let data25 = data2[0];if(typeof data25 !== "string"){const err112 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if("crm:E5_Event" !== data25){const err113 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(len11 > 1){let data26 = data2[1];if(typeof data26 !== "string"){const err114 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if("crm:E89_Propositional_Object" !== data26){const err115 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}else {const err116 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}var _valid7 = _errs106 === errors;if(_valid7 && valid19){valid19 = false;passing7 = [passing7, 1];}else {if(_valid7){valid19 = true;passing7 = 1;}}if(!valid19){const err117 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf",keyword:"oneOf",params:{passingSchemas: passing7},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {errors = _errs103;if(vErrors !== null){if(_errs103){vErrors.length = _errs103;}else {vErrors = null;}}}var _valid0 = _errs102 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 13];}else {if(_valid0){valid1 = true;passing0 = 13;}}}}}}}}}}}}}}if(!valid1){const err118 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}}if(data.label !== undefined){let data27 = data.label;if(typeof data27 === "string"){if(func3(data27) < 1){const err119 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data.items !== undefined){let data28 = data.items;if(Array.isArray(data28)){const len12 = data28.length;for(let i0=0; i0<len12; i0++){let data29 = data28[i0];const _errs119 = errors;let valid24 = false;const _errs120 = errors;const _errs121 = errors;let valid25 = true;const _errs122 = errors;if(errors === _errs122){if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.entityType !== undefined){let data30 = data29.entityType;const _errs125 = errors;let valid27 = false;const _errs126 = errors;if("crm:E33_Linguistic_Object" !== data30){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var _valid10 = _errs126 === errors;valid27 = valid27 || _valid10;if(!valid27){const _errs127 = errors;if(errors === _errs127){if(Array.isArray(data30)){if(data30.length > 2){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {if(data30.length < 2){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}else {const len13 = data30.length;if(len13 > 0){const _errs129 = errors;if("xsd:date" !== data30[0]){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}var valid28 = _errs129 === errors;}if(valid28){if(len13 > 1){const _errs130 = errors;if("crm:E52_Time-Span" !== data30[1]){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var valid28 = _errs130 === errors;}}}}}else {const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}var _valid10 = _errs127 === errors;valid27 = valid27 || _valid10;if(!valid27){const _errs131 = errors;if(errors === _errs131){if(Array.isArray(data30)){if(data30.length > 2){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {if(data30.length < 2){const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {const len14 = data30.length;if(len14 > 0){const _errs133 = errors;if("fabio:Correction" !== data30[0]){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}var valid29 = _errs133 === errors;}if(valid29){if(len14 > 1){const _errs134 = errors;if("crm:E33_Linguistic_Object" !== data30[1]){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}var valid29 = _errs134 === errors;}}}}}else {const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}var _valid10 = _errs131 === errors;valid27 = valid27 || _valid10;if(!valid27){const _errs135 = errors;if(errors === _errs135){if(Array.isArray(data30)){if(data30.length > 2){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}else {if(data30.length < 2){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {const len15 = data30.length;if(len15 > 0){const _errs137 = errors;if("crm:E55_Type" !== data30[0]){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var valid30 = _errs137 === errors;}if(valid30){if(len15 > 1){const _errs138 = errors;if("crm:E33_Linguistic_Object" !== data30[1]){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}var valid30 = _errs138 === errors;}}}}}else {const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}var _valid10 = _errs135 === errors;valid27 = valid27 || _valid10;}}}if(!valid27){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}else {errors = _errs125;if(vErrors !== null){if(_errs125){vErrors.length = _errs125;}else {vErrors = null;}}}}}else {const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var _valid9 = _errs122 === errors;errors = _errs121;if(vErrors !== null){if(_errs121){vErrors.length = _errs121;}else {vErrors = null;}}if(_valid9){const _errs139 = errors;const _errs141 = errors;let valid31 = true;const _errs142 = errors;if(errors === _errs142){if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.entityType !== undefined){let data37 = data29.entityType;const _errs144 = errors;if(errors === _errs144){if(Array.isArray(data37)){if(data37.length > 2){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}else {if(data37.length < 2){const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}else {const len16 = data37.length;if(len16 > 0){const _errs146 = errors;if("xsd:date" !== data37[0]){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}var valid33 = _errs146 === errors;}if(valid33){if(len16 > 1){const _errs147 = errors;if("crm:E52_Time-Span" !== data37[1]){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}var valid33 = _errs147 === errors;}}}}}else {const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}}else {const err144 = {};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}var _valid11 = _errs142 === errors;errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}let ifClause0;if(_valid11){const _errs148 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.value !== undefined){let data40 = data29.value;if(typeof data40 === "string"){if(!pattern0.test(data40)){const err145 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}else {const err146 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}var _valid11 = _errs148 === errors;valid31 = _valid11;ifClause0 = "then";}else {const _errs152 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.value !== undefined){if(typeof data29.value !== "string"){const err148 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}var _valid11 = _errs152 === errors;valid31 = _valid11;ifClause0 = "else";}if(!valid31){const err150 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.type === undefined){const err151 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(data29.value === undefined){const err152 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(data29.type !== undefined){let data42 = data29.type;if(typeof data42 !== "string"){const err153 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if("TextualBody" !== data42){const err154 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}else {const err155 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var _valid9 = _errs139 === errors;valid25 = _valid9;}if(!valid25){const err156 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}var _valid8 = _errs120 === errors;valid24 = valid24 || _valid8;if(!valid24){const err157 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.id === undefined){const err158 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data29.entityType === undefined){const err159 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}for(const key1 in data29){if(!((((((((key1 === "id") || (key1 === "type")) || (key1 === "entityType")) || (key1 === "additionalType")) || (key1 === "value")) || (key1 === "label")) || (key1 === "modeExistence")) || (key1 === "description"))){const err160 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data29.id !== undefined){let data43 = data29.id;if(typeof data43 === "string"){if(!(formats0(data43))){const err161 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}else {const err162 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data29.type !== undefined){let data44 = data29.type;if(typeof data44 !== "string"){const err163 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if("TextualBody" !== data44){const err164 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data29.entityType !== undefined){let data45 = data29.entityType;const _errs164 = errors;let valid38 = false;let passing8 = null;const _errs165 = errors;const _errs166 = errors;let valid39 = false;let passing9 = null;const _errs167 = errors;if(typeof data45 !== "string"){const err165 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if("crm:E21_Person" !== data45){const err166 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}var _valid13 = _errs167 === errors;if(_valid13){valid39 = true;passing9 = 0;}const _errs169 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err167 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(data45.length < 2){const err168 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}const len17 = data45.length;if(len17 > 0){let data46 = data45[0];if(typeof data46 !== "string"){const err169 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if("foaf:Person" !== data46){const err170 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}if(len17 > 1){let data47 = data45[1];if(typeof data47 !== "string"){const err171 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if("crm:E89_Propositional_Object" !== data47){const err172 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}}else {const err173 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}var _valid13 = _errs169 === errors;if(_valid13 && valid39){valid39 = false;passing9 = [passing9, 1];}else {if(_valid13){valid39 = true;passing9 = 1;}}if(!valid39){const err174 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing9},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}}var _valid12 = _errs165 === errors;if(_valid12){valid38 = true;passing8 = 0;}const _errs175 = errors;const _errs176 = errors;let valid41 = false;let passing10 = null;const _errs177 = errors;if(typeof data45 !== "string"){const err175 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}if("cwrc:place" !== data45){const err176 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}var _valid14 = _errs177 === errors;if(_valid14){valid41 = true;passing10 = 0;}const _errs179 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err177 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if(data45.length < 2){const err178 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}const len18 = data45.length;if(len18 > 0){let data48 = data45[0];if(typeof data48 !== "string"){const err179 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if("cwrc:place" !== data48){const err180 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(len18 > 1){let data49 = data45[1];if(typeof data49 !== "string"){const err181 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if("crm:E89_Propositional_Object" !== data49){const err182 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}else {const err183 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}var _valid14 = _errs179 === errors;if(_valid14 && valid41){valid41 = false;passing10 = [passing10, 1];}else {if(_valid14){valid41 = true;passing10 = 1;}}if(!valid41){const err184 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing10},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}else {errors = _errs176;if(vErrors !== null){if(_errs176){vErrors.length = _errs176;}else {vErrors = null;}}}var _valid12 = _errs175 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 1];}else {if(_valid12){valid38 = true;passing8 = 1;}const _errs185 = errors;const _errs186 = errors;let valid43 = false;let passing11 = null;const _errs187 = errors;if(typeof data45 !== "string"){const err185 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if("crm:E74_Group" !== data45){const err186 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}var _valid15 = _errs187 === errors;if(_valid15){valid43 = true;passing11 = 0;}const _errs189 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err187 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(data45.length < 2){const err188 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}const len19 = data45.length;if(len19 > 0){let data50 = data45[0];if(typeof data50 !== "string"){const err189 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if("foaf:Organization" !== data50){const err190 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(len19 > 1){let data51 = data45[1];if(typeof data51 !== "string"){const err191 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if("crm:E89_Propositional_Object" !== data51){const err192 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}}else {const err193 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}var _valid15 = _errs189 === errors;if(_valid15 && valid43){valid43 = false;passing11 = [passing11, 1];}else {if(_valid15){valid43 = true;passing11 = 1;}}if(!valid43){const err194 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing11},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}else {errors = _errs186;if(vErrors !== null){if(_errs186){vErrors.length = _errs186;}else {vErrors = null;}}}var _valid12 = _errs185 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 2];}else {if(_valid12){valid38 = true;passing8 = 2;}const _errs195 = errors;const _errs196 = errors;let valid45 = false;let passing12 = null;const _errs197 = errors;if(typeof data45 !== "string"){const err195 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if("crm:E89_Propositional_Object" !== data45){const err196 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}var _valid16 = _errs197 === errors;if(_valid16){valid45 = true;passing12 = 0;}const _errs199 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err197 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(data45.length < 2){const err198 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}const len20 = data45.length;if(len20 > 0){let data52 = data45[0];if(typeof data52 !== "string"){const err199 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if("frbroo:F1" !== data52){const err200 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(len20 > 1){let data53 = data45[1];if(typeof data53 !== "string"){const err201 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}if("wikidata:Q15306849" !== data53){const err202 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}}else {const err203 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}var _valid16 = _errs199 === errors;if(_valid16 && valid45){valid45 = false;passing12 = [passing12, 1];}else {if(_valid16){valid45 = true;passing12 = 1;}}if(!valid45){const err204 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing12},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}else {errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}}var _valid12 = _errs195 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 3];}else {if(_valid12){valid38 = true;passing8 = 3;}const _errs205 = errors;const _errs206 = errors;let valid47 = false;let passing13 = null;const _errs207 = errors;if(typeof data45 !== "string"){const err205 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if("crm:E18_Physical_Thing" !== data45){const err206 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}var _valid17 = _errs207 === errors;if(_valid17){valid47 = true;passing13 = 0;}const _errs209 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err207 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(data45.length < 2){const err208 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}const len21 = data45.length;if(len21 > 0){let data54 = data45[0];if(typeof data54 !== "string"){const err209 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}if("crm:E18_Physical_Thing" !== data54){const err210 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(len21 > 1){let data55 = data45[1];if(typeof data55 !== "string"){const err211 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if("wikidata:Q15831596" !== data55){const err212 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}}else {const err213 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}var _valid17 = _errs209 === errors;if(_valid17 && valid47){valid47 = false;passing13 = [passing13, 1];}else {if(_valid17){valid47 = true;passing13 = 1;}}if(!valid47){const err214 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing13},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}else {errors = _errs206;if(vErrors !== null){if(_errs206){vErrors.length = _errs206;}else {vErrors = null;}}}var _valid12 = _errs205 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 4];}else {if(_valid12){valid38 = true;passing8 = 4;}const _errs215 = errors;const _errs216 = errors;let valid49 = false;let passing14 = null;const _errs217 = errors;if(typeof data45 !== "string"){const err215 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if("crm:E28_Conceptual_Object" !== data45){const err216 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}var _valid18 = _errs217 === errors;if(_valid18){valid49 = true;passing14 = 0;}const _errs219 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err217 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}if(data45.length < 2){const err218 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}const len22 = data45.length;if(len22 > 0){let data56 = data45[0];if(typeof data56 !== "string"){const err219 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}if("crm:E28_Conceptual_Object" !== data56){const err220 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(len22 > 1){let data57 = data45[1];if(typeof data57 !== "string"){const err221 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}if("wikidata:Q15831596" !== data57){const err222 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}else {const err223 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}var _valid18 = _errs219 === errors;if(_valid18 && valid49){valid49 = false;passing14 = [passing14, 1];}else {if(_valid18){valid49 = true;passing14 = 1;}}if(!valid49){const err224 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing14},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {errors = _errs216;if(vErrors !== null){if(_errs216){vErrors.length = _errs216;}else {vErrors = null;}}}var _valid12 = _errs215 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 5];}else {if(_valid12){valid38 = true;passing8 = 5;}const _errs225 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err225 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}if(data45.length < 2){const err226 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}const len23 = data45.length;if(len23 > 0){let data58 = data45[0];if(typeof data58 !== "string"){const err227 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}if("cito:Citation" !== data58){const err228 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(len23 > 1){let data59 = data45[1];if(typeof data59 !== "string"){const err229 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}if("crm:E73_Information_Object" !== data59){const err230 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}else {const err231 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var _valid12 = _errs225 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 6];}else {if(_valid12){valid38 = true;passing8 = 6;}const _errs231 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err232 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}if(data45.length < 2){const err233 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}const len24 = data45.length;if(len24 > 0){let data60 = data45[0];if(typeof data60 !== "string"){const err234 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}if("xsd:date" !== data60){const err235 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}if(len24 > 1){let data61 = data45[1];if(typeof data61 !== "string"){const err236 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}if("crm:E52_Time-Span" !== data61){const err237 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}}else {const err238 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}var _valid12 = _errs231 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 7];}else {if(_valid12){valid38 = true;passing8 = 7;}const _errs237 = errors;if(typeof data45 !== "string"){const err239 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if("crm:E33_Linguistic_Object" !== data45){const err240 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}var _valid12 = _errs237 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 8];}else {if(_valid12){valid38 = true;passing8 = 8;}const _errs239 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err241 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}if(data45.length < 2){const err242 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}const len25 = data45.length;if(len25 > 0){let data62 = data45[0];if(typeof data62 !== "string"){const err243 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}if("fabio:Correction" !== data62){const err244 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}if(len25 > 1){let data63 = data45[1];if(typeof data63 !== "string"){const err245 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if("crm:E33_Linguistic_Object" !== data63){const err246 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}}else {const err247 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}var _valid12 = _errs239 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 9];}else {if(_valid12){valid38 = true;passing8 = 9;}const _errs245 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err248 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data45.length < 2){const err249 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}const len26 = data45.length;if(len26 > 0){let data64 = data45[0];if(typeof data64 !== "string"){const err250 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}if("crm:E55_Type" !== data64){const err251 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}if(len26 > 1){let data65 = data45[1];if(typeof data65 !== "string"){const err252 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}if("crmdig:D1_Digital_Object" !== data65){const err253 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}}else {const err254 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}var _valid12 = _errs245 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 10];}else {if(_valid12){valid38 = true;passing8 = 10;}const _errs251 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err255 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}if(data45.length < 2){const err256 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}const len27 = data45.length;if(len27 > 0){let data66 = data45[0];if(typeof data66 !== "string"){const err257 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}if("crm:E55_Type" !== data66){const err258 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}if(len27 > 1){let data67 = data45[1];if(typeof data67 !== "string"){const err259 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}if("crm:E33_Linguistic_Object" !== data67){const err260 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}}else {const err261 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}var _valid12 = _errs251 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 11];}else {if(_valid12){valid38 = true;passing8 = 11;}const _errs257 = errors;if(typeof data45 !== "string"){const err262 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if("crmdig:D1_Digital_Object" !== data45){const err263 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}var _valid12 = _errs257 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 12];}else {if(_valid12){valid38 = true;passing8 = 12;}const _errs259 = errors;const _errs260 = errors;let valid56 = false;let passing15 = null;const _errs261 = errors;if(typeof data45 !== "string"){const err264 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}if("crm:E5_Event" !== data45){const err265 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}var _valid19 = _errs261 === errors;if(_valid19){valid56 = true;passing15 = 0;}const _errs263 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err266 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if(data45.length < 2){const err267 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}const len28 = data45.length;if(len28 > 0){let data68 = data45[0];if(typeof data68 !== "string"){const err268 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}if("crm:E5_Event" !== data68){const err269 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}}if(len28 > 1){let data69 = data45[1];if(typeof data69 !== "string"){const err270 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}if("crm:E89_Propositional_Object" !== data69){const err271 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}}else {const err272 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}var _valid19 = _errs263 === errors;if(_valid19 && valid56){valid56 = false;passing15 = [passing15, 1];}else {if(_valid19){valid56 = true;passing15 = 1;}}if(!valid56){const err273 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf",keyword:"oneOf",params:{passingSchemas: passing15},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}else {errors = _errs260;if(vErrors !== null){if(_errs260){vErrors.length = _errs260;}else {vErrors = null;}}}var _valid12 = _errs259 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 13];}else {if(_valid12){valid38 = true;passing8 = 13;}}}}}}}}}}}}}}if(!valid38){const err274 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing8},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}}if(data29.additionalType !== undefined){let data70 = data29.additionalType;const _errs270 = errors;let valid58 = false;const _errs271 = errors;if(typeof data70 !== "string"){const err275 = {instancePath:instancePath+"/items/" + i0+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}var _valid20 = _errs271 === errors;valid58 = valid58 || _valid20;if(!valid58){const _errs273 = errors;if(Array.isArray(data70)){const len29 = data70.length;for(let i1=0; i1<len29; i1++){if(typeof data70[i1] !== "string"){const err276 = {instancePath:instancePath+"/items/" + i0+"/additionalType/" + i1,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}}else {const err277 = {instancePath:instancePath+"/items/" + i0+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}var _valid20 = _errs273 === errors;valid58 = valid58 || _valid20;}if(!valid58){const err278 = {instancePath:instancePath+"/items/" + i0+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}else {errors = _errs270;if(vErrors !== null){if(_errs270){vErrors.length = _errs270;}else {vErrors = null;}}}}if(data29.value !== undefined){if(typeof data29.value !== "string"){const err279 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}if(data29.label !== undefined){let data73 = data29.label;if(typeof data73 === "string"){if(func3(data73) < 1){const err280 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}else {const err281 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}if(data29.modeExistence !== undefined){let data74 = data29.modeExistence;const _errs282 = errors;let valid61 = false;let passing16 = null;const _errs283 = errors;if(typeof data74 !== "string"){const err282 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}if("edit:modeReal" !== data74){const err283 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:modeReal"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var _valid21 = _errs283 === errors;if(_valid21){valid61 = true;passing16 = 0;}const _errs285 = errors;if(typeof data74 !== "string"){const err284 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if("edit:modeFictional" !== data74){const err285 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:modeFictional"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}var _valid21 = _errs285 === errors;if(_valid21 && valid61){valid61 = false;passing16 = [passing16, 1];}else {if(_valid21){valid61 = true;passing16 = 1;}const _errs287 = errors;if(typeof data74 !== "string"){const err286 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if("edit:modeIdentifiable" !== data74){const err287 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:modeIdentifiable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}var _valid21 = _errs287 === errors;if(_valid21 && valid61){valid61 = false;passing16 = [passing16, 2];}else {if(_valid21){valid61 = true;passing16 = 2;}}}if(!valid61){const err288 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf",keyword:"oneOf",params:{passingSchemas: passing16},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}else {errors = _errs282;if(vErrors !== null){if(_errs282){vErrors.length = _errs282;}else {vErrors = null;}}}}if(data29.description !== undefined){if(typeof data29.description !== "string"){const err289 = {instancePath:instancePath+"/items/" + i0+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}}else {const err290 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}}else {const err291 = {instancePath:instancePath+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}}else {const err292 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}validate14.errors = vErrors;return errors === 0;}function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://wa.lincsproject.ca/v1/schema.jsonld" */;let vErrors = null;let errors = 0;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(errors === _errs3){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data0 = data.body;const _errs5 = errors;if(errors === _errs5){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.entityType !== undefined){let data1 = data0.entityType;const _errs8 = errors;let valid4 = false;let passing0 = null;const _errs9 = errors;const _errs10 = errors;let valid5 = false;let passing1 = null;const _errs11 = errors;if(typeof data1 !== "string"){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if("crm:E21_Person" !== data1){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid2 = _errs11 === errors;if(_valid2){valid5 = true;passing1 = 0;}const _errs13 = errors;if(errors === _errs13){if(Array.isArray(data1)){if(data1.length > 2){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {if(data1.length < 2){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {const len0 = data1.length;if(len0 > 0){let data2 = data1[0];const _errs15 = errors;if(typeof data2 !== "string"){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("foaf:Person" !== data2){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid6 = _errs15 === errors;}if(valid6){if(len0 > 1){let data3 = data1[1];const _errs17 = errors;if(typeof data3 !== "string"){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("crm:E89_Propositional_Object" !== data3){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid6 = _errs17 === errors;}}}}}else {const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid2 = _errs13 === errors;if(_valid2 && valid5){valid5 = false;passing1 = [passing1, 1];}else {if(_valid2){valid5 = true;passing1 = 1;}}if(!valid5){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}var _valid1 = _errs9 === errors;if(_valid1){valid4 = true;passing0 = 0;}const _errs19 = errors;const _errs20 = errors;let valid7 = false;let passing2 = null;const _errs21 = errors;if(typeof data1 !== "string"){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("cwrc:place" !== data1){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid3 = _errs21 === errors;if(_valid3){valid7 = true;passing2 = 0;}const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data1)){if(data1.length > 2){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {if(data1.length < 2){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {const len1 = data1.length;if(len1 > 0){let data4 = data1[0];const _errs25 = errors;if(typeof data4 !== "string"){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if("cwrc:place" !== data4){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid8 = _errs25 === errors;}if(valid8){if(len1 > 1){let data5 = data1[1];const _errs27 = errors;if(typeof data5 !== "string"){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("crm:E89_Propositional_Object" !== data5){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid8 = _errs27 === errors;}}}}}else {const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid3 = _errs23 === errors;if(_valid3 && valid7){valid7 = false;passing2 = [passing2, 1];}else {if(_valid3){valid7 = true;passing2 = 1;}}if(!valid7){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var _valid1 = _errs19 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 1];}else {if(_valid1){valid4 = true;passing0 = 1;}const _errs29 = errors;const _errs30 = errors;let valid9 = false;let passing3 = null;const _errs31 = errors;if(typeof data1 !== "string"){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("crm:E74_Group" !== data1){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid4 = _errs31 === errors;if(_valid4){valid9 = true;passing3 = 0;}const _errs33 = errors;if(errors === _errs33){if(Array.isArray(data1)){if(data1.length > 2){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(data1.length < 2){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {const len2 = data1.length;if(len2 > 0){let data6 = data1[0];const _errs35 = errors;if(typeof data6 !== "string"){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("foaf:Organization" !== data6){const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid10 = _errs35 === errors;}if(valid10){if(len2 > 1){let data7 = data1[1];const _errs37 = errors;if(typeof data7 !== "string"){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("crm:E89_Propositional_Object" !== data7){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid10 = _errs37 === errors;}}}}}else {const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var _valid4 = _errs33 === errors;if(_valid4 && valid9){valid9 = false;passing3 = [passing3, 1];}else {if(_valid4){valid9 = true;passing3 = 1;}}if(!valid9){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs30;if(vErrors !== null){if(_errs30){vErrors.length = _errs30;}else {vErrors = null;}}}var _valid1 = _errs29 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 2];}else {if(_valid1){valid4 = true;passing0 = 2;}const _errs39 = errors;const _errs40 = errors;let valid11 = false;let passing4 = null;const _errs41 = errors;if(typeof data1 !== "string"){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("crm:E89_Propositional_Object" !== data1){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid5 = _errs41 === errors;if(_valid5){valid11 = true;passing4 = 0;}const _errs43 = errors;if(errors === _errs43){if(Array.isArray(data1)){if(data1.length > 2){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data1.length < 2){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const len3 = data1.length;if(len3 > 0){let data8 = data1[0];const _errs45 = errors;if(typeof data8 !== "string"){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("frbroo:F1" !== data8){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid12 = _errs45 === errors;}if(valid12){if(len3 > 1){let data9 = data1[1];const _errs47 = errors;if(typeof data9 !== "string"){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("wikidata:Q15306849" !== data9){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid12 = _errs47 === errors;}}}}}else {const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}var _valid5 = _errs43 === errors;if(_valid5 && valid11){valid11 = false;passing4 = [passing4, 1];}else {if(_valid5){valid11 = true;passing4 = 1;}}if(!valid11){const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs40;if(vErrors !== null){if(_errs40){vErrors.length = _errs40;}else {vErrors = null;}}}var _valid1 = _errs39 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 3];}else {if(_valid1){valid4 = true;passing0 = 3;}const _errs49 = errors;const _errs50 = errors;let valid13 = false;let passing5 = null;const _errs51 = errors;if(typeof data1 !== "string"){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("crm:E18_Physical_Thing" !== data1){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var _valid6 = _errs51 === errors;if(_valid6){valid13 = true;passing5 = 0;}const _errs53 = errors;if(errors === _errs53){if(Array.isArray(data1)){if(data1.length > 2){const err42 = {};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data1.length < 2){const err43 = {};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}else {const len4 = data1.length;if(len4 > 0){let data10 = data1[0];const _errs55 = errors;if(typeof data10 !== "string"){const err44 = {};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if("crm:E18_Physical_Thing" !== data10){const err45 = {};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid14 = _errs55 === errors;}if(valid14){if(len4 > 1){let data11 = data1[1];const _errs57 = errors;if(typeof data11 !== "string"){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("wikidata:Q15831596" !== data11){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid14 = _errs57 === errors;}}}}}else {const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}var _valid6 = _errs53 === errors;if(_valid6 && valid13){valid13 = false;passing5 = [passing5, 1];}else {if(_valid6){valid13 = true;passing5 = 1;}}if(!valid13){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}var _valid1 = _errs49 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 4];}else {if(_valid1){valid4 = true;passing0 = 4;}const _errs59 = errors;const _errs60 = errors;let valid15 = false;let passing6 = null;const _errs61 = errors;if(typeof data1 !== "string"){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("crm:E28_Conceptual_Object" !== data1){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var _valid7 = _errs61 === errors;if(_valid7){valid15 = true;passing6 = 0;}const _errs63 = errors;if(errors === _errs63){if(Array.isArray(data1)){if(data1.length > 2){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data1.length < 2){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {const len5 = data1.length;if(len5 > 0){let data12 = data1[0];const _errs65 = errors;if(typeof data12 !== "string"){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("crm:E28_Conceptual_Object" !== data12){const err55 = {};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid16 = _errs65 === errors;}if(valid16){if(len5 > 1){let data13 = data1[1];const _errs67 = errors;if(typeof data13 !== "string"){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if("wikidata:Q15831596" !== data13){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid16 = _errs67 === errors;}}}}}else {const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}var _valid7 = _errs63 === errors;if(_valid7 && valid15){valid15 = false;passing6 = [passing6, 1];}else {if(_valid7){valid15 = true;passing6 = 1;}}if(!valid15){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}else {errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}}var _valid1 = _errs59 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 5];}else {if(_valid1){valid4 = true;passing0 = 5;}const _errs69 = errors;if(errors === _errs69){if(Array.isArray(data1)){if(data1.length > 2){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data1.length < 2){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {const len6 = data1.length;if(len6 > 0){let data14 = data1[0];const _errs71 = errors;if(typeof data14 !== "string"){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if("xsd:date" !== data14){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}var valid17 = _errs71 === errors;}if(valid17){if(len6 > 1){let data15 = data1[1];const _errs73 = errors;if(typeof data15 !== "string"){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if("crm:E52_Time-Span" !== data15){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var valid17 = _errs73 === errors;}}}}}else {const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}var _valid1 = _errs69 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 6];}else {if(_valid1){valid4 = true;passing0 = 6;}const _errs75 = errors;const _errs76 = errors;let valid18 = false;let passing7 = null;const _errs77 = errors;if(typeof data1 !== "string"){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if("crm:E5_Event" !== data1){const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}var _valid8 = _errs77 === errors;if(_valid8){valid18 = true;passing7 = 0;}const _errs79 = errors;if(errors === _errs79){if(Array.isArray(data1)){if(data1.length > 2){const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {if(data1.length < 2){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {const len7 = data1.length;if(len7 > 0){let data16 = data1[0];const _errs81 = errors;if(typeof data16 !== "string"){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if("crm:E5_Event" !== data16){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}var valid19 = _errs81 === errors;}if(valid19){if(len7 > 1){let data17 = data1[1];const _errs83 = errors;if(typeof data17 !== "string"){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if("crm:E89_Propositional_Object" !== data17){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var valid19 = _errs83 === errors;}}}}}else {const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}var _valid8 = _errs79 === errors;if(_valid8 && valid18){valid18 = false;passing7 = [passing7, 1];}else {if(_valid8){valid18 = true;passing7 = 1;}}if(!valid18){const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}else {errors = _errs76;if(vErrors !== null){if(_errs76){vErrors.length = _errs76;}else {vErrors = null;}}}var _valid1 = _errs75 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 7];}else {if(_valid1){valid4 = true;passing0 = 7;}}}}}}}}if(!valid4){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}}}else {const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}}else {const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs85 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data18 = data.motivation;if(typeof data18 !== "string"){const err80 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if("oa:identifying" !== data18){const err81 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:identifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}else {const err82 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var _valid0 = _errs85 === errors;valid1 = _valid0;ifClause0 = "then";}else {const _errs89 = errors;const _errs90 = errors;let valid21 = true;const _errs91 = errors;if(errors === _errs91){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data19 = data.body;const _errs93 = errors;if(errors === _errs93){if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.entityType !== undefined){let data20 = data19.entityType;if(typeof data20 !== "string"){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("crm:E33_Linguistic_Object" !== data20){const err84 = {};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}}else {const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}var _valid9 = _errs91 === errors;errors = _errs90;if(vErrors !== null){if(_errs90){vErrors.length = _errs90;}else {vErrors = null;}}let ifClause1;if(_valid9){const _errs97 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data21 = data.motivation;if(typeof data21 !== "string"){const err87 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("oa:describing" !== data21){const err88 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:describing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}else {const err89 = {instancePath,schemaPath:"#/allOf/0/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}var _valid9 = _errs97 === errors;valid21 = _valid9;ifClause1 = "then";}else {const _errs101 = errors;const _errs102 = errors;let valid25 = true;const _errs103 = errors;if(errors === _errs103){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data22 = data.body;const _errs105 = errors;if(errors === _errs105){if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(data22.entityType !== undefined){let data23 = data22.entityType;const _errs107 = errors;if(errors === _errs107){if(Array.isArray(data23)){if(data23.length > 2){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}else {if(data23.length < 2){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {const len8 = data23.length;if(len8 > 0){let data24 = data23[0];const _errs109 = errors;if(typeof data24 !== "string"){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if("fabio:Correction" !== data24){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}var valid28 = _errs109 === errors;}if(valid28){if(len8 > 1){let data25 = data23[1];const _errs111 = errors;if(typeof data25 !== "string"){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if("crm:E33_Linguistic_Object" !== data25){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}var valid28 = _errs111 === errors;}}}}}else {const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}}else {const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}}else {const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}var _valid10 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}let ifClause2;if(_valid10){const _errs113 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data26 = data.motivation;if(typeof data26 !== "string"){const err99 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if("correcting" !== data26){const err100 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "correcting"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}else {const err101 = {instancePath,schemaPath:"#/allOf/0/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var _valid10 = _errs113 === errors;valid25 = _valid10;ifClause2 = "then";}else {const _errs117 = errors;const _errs118 = errors;let valid30 = true;const _errs119 = errors;if(errors === _errs119){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data27 = data.body;const _errs121 = errors;if(errors === _errs121){if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.entityType !== undefined){let data28 = data27.entityType;const _errs123 = errors;if(errors === _errs123){if(Array.isArray(data28)){if(data28.length > 2){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {if(data28.length < 2){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}else {const len9 = data28.length;if(len9 > 0){let data29 = data28[0];const _errs125 = errors;if(typeof data29 !== "string"){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if("crm:E55_Type" !== data29){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var valid33 = _errs125 === errors;}if(valid33){if(len9 > 1){let data30 = data28[1];const _errs127 = errors;if(typeof data30 !== "string"){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if("crm:E33_Linguistic_Object" !== data30){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}var valid33 = _errs127 === errors;}}}}}else {const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}else {const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}}}else {const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}var _valid11 = _errs119 === errors;errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}let ifClause3;if(_valid11){const _errs129 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data31 = data.motivation;if(typeof data31 !== "string"){const err111 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if("oa:tagging" !== data31){const err112 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:tagging"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}else {const err113 = {instancePath,schemaPath:"#/allOf/0/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}var _valid11 = _errs129 === errors;valid30 = _valid11;ifClause3 = "then";}else {const _errs133 = errors;const _errs134 = errors;let valid35 = true;const _errs135 = errors;if(errors === _errs135){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data32 = data.body;const _errs137 = errors;if(errors === _errs137){if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.entityType !== undefined){let data33 = data32.entityType;const _errs139 = errors;if(errors === _errs139){if(Array.isArray(data33)){if(data33.length > 2){const err114 = {};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {if(data33.length < 2){const err115 = {};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}else {const len10 = data33.length;if(len10 > 0){let data34 = data33[0];const _errs141 = errors;if(typeof data34 !== "string"){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}if("crm:E55_Type" !== data34){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}var valid38 = _errs141 === errors;}if(valid38){if(len10 > 1){let data35 = data33[1];const _errs143 = errors;if(typeof data35 !== "string"){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if("crmdig:D1_Digital_Object" !== data35){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}var valid38 = _errs143 === errors;}}}}}else {const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}}}else {const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}}}else {const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}var _valid12 = _errs135 === errors;errors = _errs134;if(vErrors !== null){if(_errs134){vErrors.length = _errs134;}else {vErrors = null;}}let ifClause4;if(_valid12){const _errs145 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data36 = data.motivation;if(typeof data36 !== "string"){const err123 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if("oa:classifying" !== data36){const err124 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:classifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}else {const err125 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var _valid12 = _errs145 === errors;valid35 = _valid12;ifClause4 = "then";}else {const _errs149 = errors;const _errs150 = errors;let valid40 = true;const _errs151 = errors;if(errors === _errs151){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data37 = data.body;const _errs153 = errors;if(errors === _errs153){if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.entityType !== undefined){let data38 = data37.entityType;if(typeof data38 !== "string"){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if("crmdig:D1_Digital_Object" !== data38){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}}else {const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}}else {const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}var _valid13 = _errs151 === errors;errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}let ifClause5;if(_valid13){const _errs157 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data39 = data.motivation;if(typeof data39 !== "string"){const err130 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if("oa:linking" !== data39){const err131 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:linking"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}}else {const err132 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}var _valid13 = _errs157 === errors;valid40 = _valid13;ifClause5 = "then";}else {const _errs161 = errors;const _errs162 = errors;let valid44 = true;const _errs163 = errors;if(errors === _errs163){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data40 = data.body;const _errs165 = errors;if(errors === _errs165){if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.entityType !== undefined){let data41 = data40.entityType;const _errs167 = errors;if(errors === _errs167){if(Array.isArray(data41)){if(data41.length > 2){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {if(data41.length < 2){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {const len11 = data41.length;if(len11 > 0){let data42 = data41[0];const _errs169 = errors;if(typeof data42 !== "string"){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if("cito:Citation" !== data42){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}var valid47 = _errs169 === errors;}if(valid47){if(len11 > 1){let data43 = data41[1];const _errs171 = errors;if(typeof data43 !== "string"){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if("crm:E73_Information_Object" !== data43){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}var valid47 = _errs171 === errors;}}}}}else {const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}}else {const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}}}else {const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid14 = _errs163 === errors;errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}if(_valid14){const _errs173 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data44 = data.motivation;if(typeof data44 !== "string"){const err142 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if("citing" !== data44){const err143 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "citing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}else {const err144 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}var _valid14 = _errs173 === errors;valid44 = _valid14;}if(!valid44){const err145 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}var _valid13 = _errs161 === errors;valid40 = _valid13;ifClause5 = "else";}if(!valid40){const err146 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}var _valid12 = _errs149 === errors;valid35 = _valid12;ifClause4 = "else";}if(!valid35){const err147 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}var _valid11 = _errs133 === errors;valid30 = _valid11;ifClause3 = "else";}if(!valid30){const err148 = {instancePath,schemaPath:"#/allOf/0/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}var _valid10 = _errs117 === errors;valid25 = _valid10;ifClause2 = "else";}if(!valid25){const err149 = {instancePath,schemaPath:"#/allOf/0/else/else/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}var _valid9 = _errs101 === errors;valid21 = _valid9;ifClause1 = "else";}if(!valid21){const err150 = {instancePath,schemaPath:"#/allOf/0/else/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}var _valid0 = _errs89 === errors;valid1 = _valid0;ifClause0 = "else";}if(!valid1){const err151 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data["@context"] === undefined){const err152 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "@context"},message:"must have required property '"+"@context"+"'"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(data.id === undefined){const err153 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if(data.type === undefined){const err154 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if(data.motivation === undefined){const err155 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "motivation"},message:"must have required property '"+"motivation"+"'"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(data.created === undefined){const err156 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "created"},message:"must have required property '"+"created"+"'"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(data.generator === undefined){const err157 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "generator"},message:"must have required property '"+"generator"+"'"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if(data.target === undefined){const err158 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data.body === undefined){const err159 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "body"},message:"must have required property '"+"body"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}for(const key0 in data){if(!(func2.call(schema11.properties, key0))){const err160 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data["@context"] !== undefined){let data45 = data["@context"];if(Array.isArray(data45)){if(data45.length > 2){const err161 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if(data45.length < 2){const err162 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}const len12 = data45.length;if(len12 > 0){let data46 = data45[0];if(typeof data46 !== "string"){const err163 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if("http://www.w3.org/ns/anno.jsonld" !== data46){const err164 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/const",keyword:"const",params:{allowedValue: "http://www.w3.org/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(len12 > 1){let data47 = data45[1];if(typeof data47 !== "string"){const err165 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if("https://wa.lincsproject.ca/v1/ns/anno.jsonld" !== data47){const err166 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/const",keyword:"const",params:{allowedValue: "https://wa.lincsproject.ca/v1/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}}else {const err167 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(data.id !== undefined){let data48 = data.id;if(typeof data48 === "string"){if(!(formats0(data48))){const err168 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}else {const err169 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}if(data.type !== undefined){let data49 = data.type;if(Array.isArray(data49)){if(data49.length > 2){const err170 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(data49.length < 2){const err171 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}const len13 = data49.length;if(len13 > 0){let data50 = data49[0];if(typeof data50 !== "string"){const err172 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if("Annotation" !== data50){const err173 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Annotation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(len13 > 1){let data51 = data49[1];if(typeof data51 !== "string"){const err174 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if("crm:E33_Linguistic_Object" !== data51){const err175 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}}else {const err176 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data.motivation !== undefined){let data52 = data.motivation;if(typeof data52 !== "string"){const err177 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if(!(((((((data52 === "oa:identifying") || (data52 === "oa:describing")) || (data52 === "correcting")) || (data52 === "oa:tagging")) || (data52 === "oa:classifying")) || (data52 === "oa:linking")) || (data52 === "citing"))){const err178 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/enum",keyword:"enum",params:{allowedValues: schema11.properties.motivation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data.created !== undefined){let data53 = data.created;if(typeof data53 === "string"){if(!(formats2.validate(data53))){const err179 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}else {const err180 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data.modified !== undefined){let data54 = data.modified;if(typeof data54 === "string"){if(!(formats2.validate(data54))){const err181 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}else {const err182 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data.creator !== undefined){let data55 = data.creator;if(data55 && typeof data55 == "object" && !Array.isArray(data55)){if(data55.id === undefined){const err183 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(data55.type === undefined){const err184 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}if(data55.name === undefined){const err185 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if(data55.id !== undefined){let data56 = data55.id;if(typeof data56 === "string"){if(!(formats0(data56))){const err186 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}else {const err187 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}if(data55.type !== undefined){let data57 = data55.type;if(typeof data57 !== "string"){const err188 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if("crm:E21_Person" !== data57){const err189 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data55.name !== undefined){let data58 = data55.name;if(typeof data58 === "string"){if(func3(data58) < 1){const err190 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}else {const err191 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}}else {const err192 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}if(data.contributor !== undefined){let data59 = data.contributor;if(Array.isArray(data59)){if(data59.length < 1){const err193 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}const len14 = data59.length;for(let i0=0; i0<len14; i0++){let data60 = data59[i0];if(data60 && typeof data60 == "object" && !Array.isArray(data60)){if(data60.id === undefined){const err194 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}if(data60.type === undefined){const err195 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(data60.name === undefined){const err196 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(data60.id !== undefined){let data61 = data60.id;if(typeof data61 === "string"){if(!(formats0(data61))){const err197 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}else {const err198 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data60.type !== undefined){let data62 = data60.type;if(typeof data62 !== "string"){const err199 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if("crm:E21_Person" !== data62){const err200 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data60.name !== undefined){let data63 = data60.name;if(typeof data63 === "string"){if(func3(data63) < 1){const err201 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}else {const err202 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}}else {const err203 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}}else {const err204 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}if(data.generator !== undefined){let data64 = data.generator;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if(data64.id === undefined){const err205 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if(data64.type === undefined){const err206 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}if(data64.label === undefined){const err207 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(data64.id !== undefined){let data65 = data64.id;if(typeof data65 === "string"){if(!(formats0(data65))){const err208 = {instancePath:instancePath+"/generator/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}else {const err209 = {instancePath:instancePath+"/generator/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}if(data64.type !== undefined){let data66 = data64.type;if(typeof data66 !== "string"){const err210 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}if("Software" !== data66){const err211 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/const",keyword:"const",params:{allowedValue: "Software"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}if(data64.usedSpecificObject !== undefined){let data67 = data64.usedSpecificObject;if(typeof data67 === "string"){if(!(formats0(data67))){const err212 = {instancePath:instancePath+"/generator/usedSpecificObject",schemaPath:"defs.jsonld#/definitions/software/properties/usedSpecificObject/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}else {const err213 = {instancePath:instancePath+"/generator/usedSpecificObject",schemaPath:"defs.jsonld#/definitions/software/properties/usedSpecificObject/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data64.label !== undefined){let data68 = data64.label;if(typeof data68 === "string"){if(func3(data68) < 1){const err214 = {instancePath:instancePath+"/generator/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}else {const err215 = {instancePath:instancePath+"/generator/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(data64.softwareVersion !== undefined){if(typeof data64.softwareVersion !== "string"){const err216 = {instancePath:instancePath+"/generator/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}}else {const err217 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data.target !== undefined){if(!(validate12(data.target, {instancePath:instancePath+"/target",parentData:data,parentDataProperty:"target",rootData}))){vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);errors = vErrors.length;}}if(data.body !== undefined){let data71 = data.body;const _errs233 = errors;let valid60 = false;let passing8 = null;const _errs234 = errors;if(!(validate14(data71, {instancePath:instancePath+"/body",parentData:data,parentDataProperty:"body",rootData}))){vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);errors = vErrors.length;}var _valid15 = _errs234 === errors;if(_valid15){valid60 = true;passing8 = 0;}const _errs235 = errors;const _errs238 = errors;let valid62 = false;const _errs239 = errors;const _errs240 = errors;let valid63 = true;const _errs241 = errors;if(errors === _errs241){if(data71 && typeof data71 == "object" && !Array.isArray(data71)){if(data71.entityType !== undefined){let data72 = data71.entityType;const _errs244 = errors;let valid65 = false;const _errs245 = errors;if("crm:E33_Linguistic_Object" !== data72){const err218 = {};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}var _valid18 = _errs245 === errors;valid65 = valid65 || _valid18;if(!valid65){const _errs246 = errors;if(errors === _errs246){if(Array.isArray(data72)){if(data72.length > 2){const err219 = {};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}else {if(data72.length < 2){const err220 = {};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}else {const len15 = data72.length;if(len15 > 0){const _errs248 = errors;if("xsd:date" !== data72[0]){const err221 = {};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}var valid66 = _errs248 === errors;}if(valid66){if(len15 > 1){const _errs249 = errors;if("crm:E52_Time-Span" !== data72[1]){const err222 = {};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}var valid66 = _errs249 === errors;}}}}}else {const err223 = {};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}var _valid18 = _errs246 === errors;valid65 = valid65 || _valid18;if(!valid65){const _errs250 = errors;if(errors === _errs250){if(Array.isArray(data72)){if(data72.length > 2){const err224 = {};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {if(data72.length < 2){const err225 = {};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}else {const len16 = data72.length;if(len16 > 0){const _errs252 = errors;if("fabio:Correction" !== data72[0]){const err226 = {};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}var valid67 = _errs252 === errors;}if(valid67){if(len16 > 1){const _errs253 = errors;if("crm:E33_Linguistic_Object" !== data72[1]){const err227 = {};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}var valid67 = _errs253 === errors;}}}}}else {const err228 = {};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}var _valid18 = _errs250 === errors;valid65 = valid65 || _valid18;if(!valid65){const _errs254 = errors;if(errors === _errs254){if(Array.isArray(data72)){if(data72.length > 2){const err229 = {};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}else {if(data72.length < 2){const err230 = {};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}else {const len17 = data72.length;if(len17 > 0){const _errs256 = errors;if("crm:E55_Type" !== data72[0]){const err231 = {};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var valid68 = _errs256 === errors;}if(valid68){if(len17 > 1){const _errs257 = errors;if("crm:E33_Linguistic_Object" !== data72[1]){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}var valid68 = _errs257 === errors;}}}}}else {const err233 = {};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}var _valid18 = _errs254 === errors;valid65 = valid65 || _valid18;}}}if(!valid65){const err234 = {};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}else {errors = _errs244;if(vErrors !== null){if(_errs244){vErrors.length = _errs244;}else {vErrors = null;}}}}}else {const err235 = {};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}var _valid17 = _errs241 === errors;errors = _errs240;if(vErrors !== null){if(_errs240){vErrors.length = _errs240;}else {vErrors = null;}}if(_valid17){const _errs258 = errors;const _errs260 = errors;let valid69 = true;const _errs261 = errors;if(errors === _errs261){if(data71 && typeof data71 == "object" && !Array.isArray(data71)){if(data71.entityType !== undefined){let data79 = data71.entityType;const _errs263 = errors;if(errors === _errs263){if(Array.isArray(data79)){if(data79.length > 2){const err236 = {};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}else {if(data79.length < 2){const err237 = {};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}else {const len18 = data79.length;if(len18 > 0){const _errs265 = errors;if("xsd:date" !== data79[0]){const err238 = {};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}var valid71 = _errs265 === errors;}if(valid71){if(len18 > 1){const _errs266 = errors;if("crm:E52_Time-Span" !== data79[1]){const err239 = {};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}var valid71 = _errs266 === errors;}}}}}else {const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}}}}else {const err241 = {};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}}var _valid19 = _errs261 === errors;errors = _errs260;if(vErrors !== null){if(_errs260){vErrors.length = _errs260;}else {vErrors = null;}}let ifClause6;if(_valid19){const _errs267 = errors;if(data71 && typeof data71 == "object" && !Array.isArray(data71)){if(data71.value !== undefined){let data82 = data71.value;if(typeof data82 === "string"){if(!pattern0.test(data82)){const err242 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}else {const err243 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}}else {const err244 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}var _valid19 = _errs267 === errors;valid69 = _valid19;ifClause6 = "then";}else {const _errs271 = errors;if(data71 && typeof data71 == "object" && !Array.isArray(data71)){if(data71.value !== undefined){if(typeof data71.value !== "string"){const err245 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}}else {const err246 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}var _valid19 = _errs271 === errors;valid69 = _valid19;ifClause6 = "else";}if(!valid69){const err247 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: ifClause6},message:"must match \""+ifClause6+"\" schema"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}if(data71 && typeof data71 == "object" && !Array.isArray(data71)){if(data71.type === undefined){const err248 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data71.value === undefined){const err249 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}if(data71.type !== undefined){let data84 = data71.type;if(typeof data84 !== "string"){const err250 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}if("TextualBody" !== data84){const err251 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}}else {const err252 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}var _valid17 = _errs258 === errors;valid63 = _valid17;}if(!valid63){const err253 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}var _valid16 = _errs239 === errors;valid62 = valid62 || _valid16;if(!valid62){const err254 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}else {errors = _errs238;if(vErrors !== null){if(_errs238){vErrors.length = _errs238;}else {vErrors = null;}}}if(data71 && typeof data71 == "object" && !Array.isArray(data71)){if(data71.id === undefined){const err255 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}if(data71.entityType === undefined){const err256 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}for(const key1 in data71){if(!((((((((key1 === "id") || (key1 === "type")) || (key1 === "entityType")) || (key1 === "additionalType")) || (key1 === "value")) || (key1 === "label")) || (key1 === "modeExistence")) || (key1 === "description"))){const err257 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}}if(data71.id !== undefined){let data85 = data71.id;if(typeof data85 === "string"){if(!(formats0(data85))){const err258 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}else {const err259 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}if(data71.type !== undefined){let data86 = data71.type;if(typeof data86 !== "string"){const err260 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}if("TextualBody" !== data86){const err261 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}}if(data71.entityType !== undefined){let data87 = data71.entityType;const _errs283 = errors;let valid76 = false;let passing9 = null;const _errs284 = errors;const _errs285 = errors;let valid77 = false;let passing10 = null;const _errs286 = errors;if(typeof data87 !== "string"){const err262 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if("crm:E21_Person" !== data87){const err263 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}var _valid21 = _errs286 === errors;if(_valid21){valid77 = true;passing10 = 0;}const _errs288 = errors;if(Array.isArray(data87)){if(data87.length > 2){const err264 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}if(data87.length < 2){const err265 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}const len19 = data87.length;if(len19 > 0){let data88 = data87[0];if(typeof data88 !== "string"){const err266 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if("foaf:Person" !== data88){const err267 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}if(len19 > 1){let data89 = data87[1];if(typeof data89 !== "string"){const err268 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}if("crm:E89_Propositional_Object" !== data89){const err269 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}}}else {const err270 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}var _valid21 = _errs288 === errors;if(_valid21 && valid77){valid77 = false;passing10 = [passing10, 1];}else {if(_valid21){valid77 = true;passing10 = 1;}}if(!valid77){const err271 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing10},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}else {errors = _errs285;if(vErrors !== null){if(_errs285){vErrors.length = _errs285;}else {vErrors = null;}}}var _valid20 = _errs284 === errors;if(_valid20){valid76 = true;passing9 = 0;}const _errs294 = errors;const _errs295 = errors;let valid79 = false;let passing11 = null;const _errs296 = errors;if(typeof data87 !== "string"){const err272 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}if("cwrc:place" !== data87){const err273 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}var _valid22 = _errs296 === errors;if(_valid22){valid79 = true;passing11 = 0;}const _errs298 = errors;if(Array.isArray(data87)){if(data87.length > 2){const err274 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}if(data87.length < 2){const err275 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}const len20 = data87.length;if(len20 > 0){let data90 = data87[0];if(typeof data90 !== "string"){const err276 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}if("cwrc:place" !== data90){const err277 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}if(len20 > 1){let data91 = data87[1];if(typeof data91 !== "string"){const err278 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}if("crm:E89_Propositional_Object" !== data91){const err279 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}}else {const err280 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}var _valid22 = _errs298 === errors;if(_valid22 && valid79){valid79 = false;passing11 = [passing11, 1];}else {if(_valid22){valid79 = true;passing11 = 1;}}if(!valid79){const err281 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing11},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}else {errors = _errs295;if(vErrors !== null){if(_errs295){vErrors.length = _errs295;}else {vErrors = null;}}}var _valid20 = _errs294 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 1];}else {if(_valid20){valid76 = true;passing9 = 1;}const _errs304 = errors;const _errs305 = errors;let valid81 = false;let passing12 = null;const _errs306 = errors;if(typeof data87 !== "string"){const err282 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}if("crm:E74_Group" !== data87){const err283 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var _valid23 = _errs306 === errors;if(_valid23){valid81 = true;passing12 = 0;}const _errs308 = errors;if(Array.isArray(data87)){if(data87.length > 2){const err284 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if(data87.length < 2){const err285 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}const len21 = data87.length;if(len21 > 0){let data92 = data87[0];if(typeof data92 !== "string"){const err286 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if("foaf:Organization" !== data92){const err287 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}if(len21 > 1){let data93 = data87[1];if(typeof data93 !== "string"){const err288 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}if("crm:E89_Propositional_Object" !== data93){const err289 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}}else {const err290 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}var _valid23 = _errs308 === errors;if(_valid23 && valid81){valid81 = false;passing12 = [passing12, 1];}else {if(_valid23){valid81 = true;passing12 = 1;}}if(!valid81){const err291 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing12},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}else {errors = _errs305;if(vErrors !== null){if(_errs305){vErrors.length = _errs305;}else {vErrors = null;}}}var _valid20 = _errs304 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 2];}else {if(_valid20){valid76 = true;passing9 = 2;}const _errs314 = errors;const _errs315 = errors;let valid83 = false;let passing13 = null;const _errs316 = errors;if(typeof data87 !== "string"){const err292 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}if("crm:E89_Propositional_Object" !== data87){const err293 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}var _valid24 = _errs316 === errors;if(_valid24){valid83 = true;passing13 = 0;}const _errs318 = errors;if(Array.isArray(data87)){if(data87.length > 2){const err294 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}if(data87.length < 2){const err295 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}const len22 = data87.length;if(len22 > 0){let data94 = data87[0];if(typeof data94 !== "string"){const err296 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}if("frbroo:F1" !== data94){const err297 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}}if(len22 > 1){let data95 = data87[1];if(typeof data95 !== "string"){const err298 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}if("wikidata:Q15306849" !== data95){const err299 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}}else {const err300 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}var _valid24 = _errs318 === errors;if(_valid24 && valid83){valid83 = false;passing13 = [passing13, 1];}else {if(_valid24){valid83 = true;passing13 = 1;}}if(!valid83){const err301 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing13},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}else {errors = _errs315;if(vErrors !== null){if(_errs315){vErrors.length = _errs315;}else {vErrors = null;}}}var _valid20 = _errs314 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 3];}else {if(_valid20){valid76 = true;passing9 = 3;}const _errs324 = errors;const _errs325 = errors;let valid85 = false;let passing14 = null;const _errs326 = errors;if(typeof data87 !== "string"){const err302 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}if("crm:E18_Physical_Thing" !== data87){const err303 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}var _valid25 = _errs326 === errors;if(_valid25){valid85 = true;passing14 = 0;}const _errs328 = errors;if(Array.isArray(data87)){if(data87.length > 2){const err304 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}if(data87.length < 2){const err305 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}const len23 = data87.length;if(len23 > 0){let data96 = data87[0];if(typeof data96 !== "string"){const err306 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}if("crm:E18_Physical_Thing" !== data96){const err307 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}}if(len23 > 1){let data97 = data87[1];if(typeof data97 !== "string"){const err308 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}if("wikidata:Q15831596" !== data97){const err309 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}}else {const err310 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}var _valid25 = _errs328 === errors;if(_valid25 && valid85){valid85 = false;passing14 = [passing14, 1];}else {if(_valid25){valid85 = true;passing14 = 1;}}if(!valid85){const err311 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing14},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}else {errors = _errs325;if(vErrors !== null){if(_errs325){vErrors.length = _errs325;}else {vErrors = null;}}}var _valid20 = _errs324 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 4];}else {if(_valid20){valid76 = true;passing9 = 4;}const _errs334 = errors;const _errs335 = errors;let valid87 = false;let passing15 = null;const _errs336 = errors;if(typeof data87 !== "string"){const err312 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}if("crm:E28_Conceptual_Object" !== data87){const err313 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}var _valid26 = _errs336 === errors;if(_valid26){valid87 = true;passing15 = 0;}const _errs338 = errors;if(Array.isArray(data87)){if(data87.length > 2){const err314 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}if(data87.length < 2){const err315 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}const len24 = data87.length;if(len24 > 0){let data98 = data87[0];if(typeof data98 !== "string"){const err316 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}if("crm:E28_Conceptual_Object" !== data98){const err317 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}}if(len24 > 1){let data99 = data87[1];if(typeof data99 !== "string"){const err318 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}if("wikidata:Q15831596" !== data99){const err319 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}}}else {const err320 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}var _valid26 = _errs338 === errors;if(_valid26 && valid87){valid87 = false;passing15 = [passing15, 1];}else {if(_valid26){valid87 = true;passing15 = 1;}}if(!valid87){const err321 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing15},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}else {errors = _errs335;if(vErrors !== null){if(_errs335){vErrors.length = _errs335;}else {vErrors = null;}}}var _valid20 = _errs334 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 5];}else {if(_valid20){valid76 = true;passing9 = 5;}const _errs344 = errors;if(Array.isArray(data87)){if(data87.length > 2){const err322 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}if(data87.length < 2){const err323 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}const len25 = data87.length;if(len25 > 0){let data100 = data87[0];if(typeof data100 !== "string"){const err324 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}if("cito:Citation" !== data100){const err325 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}}if(len25 > 1){let data101 = data87[1];if(typeof data101 !== "string"){const err326 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}if("crm:E73_Information_Object" !== data101){const err327 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}}}else {const err328 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}var _valid20 = _errs344 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 6];}else {if(_valid20){valid76 = true;passing9 = 6;}const _errs350 = errors;if(Array.isArray(data87)){if(data87.length > 2){const err329 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}if(data87.length < 2){const err330 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}const len26 = data87.length;if(len26 > 0){let data102 = data87[0];if(typeof data102 !== "string"){const err331 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}if("xsd:date" !== data102){const err332 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}}if(len26 > 1){let data103 = data87[1];if(typeof data103 !== "string"){const err333 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}if("crm:E52_Time-Span" !== data103){const err334 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}}}else {const err335 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}var _valid20 = _errs350 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 7];}else {if(_valid20){valid76 = true;passing9 = 7;}const _errs356 = errors;if(typeof data87 !== "string"){const err336 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}if("crm:E33_Linguistic_Object" !== data87){const err337 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}var _valid20 = _errs356 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 8];}else {if(_valid20){valid76 = true;passing9 = 8;}const _errs358 = errors;if(Array.isArray(data87)){if(data87.length > 2){const err338 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}if(data87.length < 2){const err339 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}const len27 = data87.length;if(len27 > 0){let data104 = data87[0];if(typeof data104 !== "string"){const err340 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}if("fabio:Correction" !== data104){const err341 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}}if(len27 > 1){let data105 = data87[1];if(typeof data105 !== "string"){const err342 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}if("crm:E33_Linguistic_Object" !== data105){const err343 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}}}else {const err344 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}var _valid20 = _errs358 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 9];}else {if(_valid20){valid76 = true;passing9 = 9;}const _errs364 = errors;if(Array.isArray(data87)){if(data87.length > 2){const err345 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}if(data87.length < 2){const err346 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}const len28 = data87.length;if(len28 > 0){let data106 = data87[0];if(typeof data106 !== "string"){const err347 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}if("crm:E55_Type" !== data106){const err348 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}}if(len28 > 1){let data107 = data87[1];if(typeof data107 !== "string"){const err349 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}if("crmdig:D1_Digital_Object" !== data107){const err350 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}}}else {const err351 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}var _valid20 = _errs364 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 10];}else {if(_valid20){valid76 = true;passing9 = 10;}const _errs370 = errors;if(Array.isArray(data87)){if(data87.length > 2){const err352 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}if(data87.length < 2){const err353 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}const len29 = data87.length;if(len29 > 0){let data108 = data87[0];if(typeof data108 !== "string"){const err354 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}if("crm:E55_Type" !== data108){const err355 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}}if(len29 > 1){let data109 = data87[1];if(typeof data109 !== "string"){const err356 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}if("crm:E33_Linguistic_Object" !== data109){const err357 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}}}else {const err358 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}var _valid20 = _errs370 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 11];}else {if(_valid20){valid76 = true;passing9 = 11;}const _errs376 = errors;if(typeof data87 !== "string"){const err359 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}if("crmdig:D1_Digital_Object" !== data87){const err360 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}var _valid20 = _errs376 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 12];}else {if(_valid20){valid76 = true;passing9 = 12;}const _errs378 = errors;const _errs379 = errors;let valid94 = false;let passing16 = null;const _errs380 = errors;if(typeof data87 !== "string"){const err361 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}if("crm:E5_Event" !== data87){const err362 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}var _valid27 = _errs380 === errors;if(_valid27){valid94 = true;passing16 = 0;}const _errs382 = errors;if(Array.isArray(data87)){if(data87.length > 2){const err363 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}if(data87.length < 2){const err364 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}const len30 = data87.length;if(len30 > 0){let data110 = data87[0];if(typeof data110 !== "string"){const err365 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}if("crm:E5_Event" !== data110){const err366 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}}if(len30 > 1){let data111 = data87[1];if(typeof data111 !== "string"){const err367 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}if("crm:E89_Propositional_Object" !== data111){const err368 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}}}else {const err369 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}var _valid27 = _errs382 === errors;if(_valid27 && valid94){valid94 = false;passing16 = [passing16, 1];}else {if(_valid27){valid94 = true;passing16 = 1;}}if(!valid94){const err370 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf",keyword:"oneOf",params:{passingSchemas: passing16},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}else {errors = _errs379;if(vErrors !== null){if(_errs379){vErrors.length = _errs379;}else {vErrors = null;}}}var _valid20 = _errs378 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 13];}else {if(_valid20){valid76 = true;passing9 = 13;}}}}}}}}}}}}}}if(!valid76){const err371 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing9},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}else {errors = _errs283;if(vErrors !== null){if(_errs283){vErrors.length = _errs283;}else {vErrors = null;}}}}if(data71.additionalType !== undefined){let data112 = data71.additionalType;const _errs389 = errors;let valid96 = false;const _errs390 = errors;if(typeof data112 !== "string"){const err372 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}var _valid28 = _errs390 === errors;valid96 = valid96 || _valid28;if(!valid96){const _errs392 = errors;if(Array.isArray(data112)){const len31 = data112.length;for(let i1=0; i1<len31; i1++){if(typeof data112[i1] !== "string"){const err373 = {instancePath:instancePath+"/body/additionalType/" + i1,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}}}else {const err374 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}var _valid28 = _errs392 === errors;valid96 = valid96 || _valid28;}if(!valid96){const err375 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}else {errors = _errs389;if(vErrors !== null){if(_errs389){vErrors.length = _errs389;}else {vErrors = null;}}}}if(data71.value !== undefined){if(typeof data71.value !== "string"){const err376 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}}if(data71.label !== undefined){let data115 = data71.label;if(typeof data115 === "string"){if(func3(data115) < 1){const err377 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}}else {const err378 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}}if(data71.modeExistence !== undefined){let data116 = data71.modeExistence;const _errs401 = errors;let valid99 = false;let passing17 = null;const _errs402 = errors;if(typeof data116 !== "string"){const err379 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}if("edit:modeReal" !== data116){const err380 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:modeReal"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}var _valid29 = _errs402 === errors;if(_valid29){valid99 = true;passing17 = 0;}const _errs404 = errors;if(typeof data116 !== "string"){const err381 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}if("edit:modeFictional" !== data116){const err382 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:modeFictional"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}var _valid29 = _errs404 === errors;if(_valid29 && valid99){valid99 = false;passing17 = [passing17, 1];}else {if(_valid29){valid99 = true;passing17 = 1;}const _errs406 = errors;if(typeof data116 !== "string"){const err383 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}if("edit:modeIdentifiable" !== data116){const err384 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:modeIdentifiable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}var _valid29 = _errs406 === errors;if(_valid29 && valid99){valid99 = false;passing17 = [passing17, 2];}else {if(_valid29){valid99 = true;passing17 = 2;}}}if(!valid99){const err385 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf",keyword:"oneOf",params:{passingSchemas: passing17},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}else {errors = _errs401;if(vErrors !== null){if(_errs401){vErrors.length = _errs401;}else {vErrors = null;}}}}if(data71.description !== undefined){if(typeof data71.description !== "string"){const err386 = {instancePath:instancePath+"/body/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}}}else {const err387 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}var _valid15 = _errs235 === errors;if(_valid15 && valid60){valid60 = false;passing8 = [passing8, 1];}else {if(_valid15){valid60 = true;passing8 = 1;}const _errs410 = errors;if(Array.isArray(data71)){if(data71.length < 1){const err388 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf/2/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}const len32 = data71.length;for(let i2=0; i2<len32; i2++){let data118 = data71[i2];const _errs415 = errors;let valid103 = false;const _errs416 = errors;const _errs417 = errors;let valid104 = true;const _errs418 = errors;if(errors === _errs418){if(data118 && typeof data118 == "object" && !Array.isArray(data118)){if(data118.entityType !== undefined){let data119 = data118.entityType;const _errs421 = errors;let valid106 = false;const _errs422 = errors;if("crm:E33_Linguistic_Object" !== data119){const err389 = {};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}var _valid32 = _errs422 === errors;valid106 = valid106 || _valid32;if(!valid106){const _errs423 = errors;if(errors === _errs423){if(Array.isArray(data119)){if(data119.length > 2){const err390 = {};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}else {if(data119.length < 2){const err391 = {};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}else {const len33 = data119.length;if(len33 > 0){const _errs425 = errors;if("xsd:date" !== data119[0]){const err392 = {};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}var valid107 = _errs425 === errors;}if(valid107){if(len33 > 1){const _errs426 = errors;if("crm:E52_Time-Span" !== data119[1]){const err393 = {};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}var valid107 = _errs426 === errors;}}}}}else {const err394 = {};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}}var _valid32 = _errs423 === errors;valid106 = valid106 || _valid32;if(!valid106){const _errs427 = errors;if(errors === _errs427){if(Array.isArray(data119)){if(data119.length > 2){const err395 = {};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}else {if(data119.length < 2){const err396 = {};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}else {const len34 = data119.length;if(len34 > 0){const _errs429 = errors;if("fabio:Correction" !== data119[0]){const err397 = {};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}var valid108 = _errs429 === errors;}if(valid108){if(len34 > 1){const _errs430 = errors;if("crm:E33_Linguistic_Object" !== data119[1]){const err398 = {};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}var valid108 = _errs430 === errors;}}}}}else {const err399 = {};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}}var _valid32 = _errs427 === errors;valid106 = valid106 || _valid32;if(!valid106){const _errs431 = errors;if(errors === _errs431){if(Array.isArray(data119)){if(data119.length > 2){const err400 = {};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}else {if(data119.length < 2){const err401 = {};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}else {const len35 = data119.length;if(len35 > 0){const _errs433 = errors;if("crm:E55_Type" !== data119[0]){const err402 = {};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}var valid109 = _errs433 === errors;}if(valid109){if(len35 > 1){const _errs434 = errors;if("crm:E33_Linguistic_Object" !== data119[1]){const err403 = {};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}var valid109 = _errs434 === errors;}}}}}else {const err404 = {};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}}var _valid32 = _errs431 === errors;valid106 = valid106 || _valid32;}}}if(!valid106){const err405 = {};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}else {errors = _errs421;if(vErrors !== null){if(_errs421){vErrors.length = _errs421;}else {vErrors = null;}}}}}else {const err406 = {};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}}var _valid31 = _errs418 === errors;errors = _errs417;if(vErrors !== null){if(_errs417){vErrors.length = _errs417;}else {vErrors = null;}}if(_valid31){const _errs435 = errors;const _errs437 = errors;let valid110 = true;const _errs438 = errors;if(errors === _errs438){if(data118 && typeof data118 == "object" && !Array.isArray(data118)){if(data118.entityType !== undefined){let data126 = data118.entityType;const _errs440 = errors;if(errors === _errs440){if(Array.isArray(data126)){if(data126.length > 2){const err407 = {};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}else {if(data126.length < 2){const err408 = {};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}else {const len36 = data126.length;if(len36 > 0){const _errs442 = errors;if("xsd:date" !== data126[0]){const err409 = {};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}var valid112 = _errs442 === errors;}if(valid112){if(len36 > 1){const _errs443 = errors;if("crm:E52_Time-Span" !== data126[1]){const err410 = {};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}var valid112 = _errs443 === errors;}}}}}else {const err411 = {};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}}}}else {const err412 = {};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}}var _valid33 = _errs438 === errors;errors = _errs437;if(vErrors !== null){if(_errs437){vErrors.length = _errs437;}else {vErrors = null;}}let ifClause7;if(_valid33){const _errs444 = errors;if(data118 && typeof data118 == "object" && !Array.isArray(data118)){if(data118.value !== undefined){let data129 = data118.value;if(typeof data129 === "string"){if(!pattern0.test(data129)){const err413 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}}else {const err414 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}}}else {const err415 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}var _valid33 = _errs444 === errors;valid110 = _valid33;ifClause7 = "then";}else {const _errs448 = errors;if(data118 && typeof data118 == "object" && !Array.isArray(data118)){if(data118.value !== undefined){if(typeof data118.value !== "string"){const err416 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}}}else {const err417 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}var _valid33 = _errs448 === errors;valid110 = _valid33;ifClause7 = "else";}if(!valid110){const err418 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: ifClause7},message:"must match \""+ifClause7+"\" schema"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}if(data118 && typeof data118 == "object" && !Array.isArray(data118)){if(data118.type === undefined){const err419 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}if(data118.value === undefined){const err420 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}if(data118.type !== undefined){let data131 = data118.type;if(typeof data131 !== "string"){const err421 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}if("TextualBody" !== data131){const err422 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}}}else {const err423 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}var _valid31 = _errs435 === errors;valid104 = _valid31;}if(!valid104){const err424 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}var _valid30 = _errs416 === errors;valid103 = valid103 || _valid30;if(!valid103){const err425 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}else {errors = _errs415;if(vErrors !== null){if(_errs415){vErrors.length = _errs415;}else {vErrors = null;}}}if(data118 && typeof data118 == "object" && !Array.isArray(data118)){if(data118.id === undefined){const err426 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}if(data118.entityType === undefined){const err427 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}for(const key2 in data118){if(!((((((((key2 === "id") || (key2 === "type")) || (key2 === "entityType")) || (key2 === "additionalType")) || (key2 === "value")) || (key2 === "label")) || (key2 === "modeExistence")) || (key2 === "description"))){const err428 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}}if(data118.id !== undefined){let data132 = data118.id;if(typeof data132 === "string"){if(!(formats0(data132))){const err429 = {instancePath:instancePath+"/body/" + i2+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}}else {const err430 = {instancePath:instancePath+"/body/" + i2+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}}if(data118.type !== undefined){let data133 = data118.type;if(typeof data133 !== "string"){const err431 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}if("TextualBody" !== data133){const err432 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}}if(data118.entityType !== undefined){let data134 = data118.entityType;const _errs460 = errors;let valid117 = false;let passing18 = null;const _errs461 = errors;const _errs462 = errors;let valid118 = false;let passing19 = null;const _errs463 = errors;if(typeof data134 !== "string"){const err433 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}if("crm:E21_Person" !== data134){const err434 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}var _valid35 = _errs463 === errors;if(_valid35){valid118 = true;passing19 = 0;}const _errs465 = errors;if(Array.isArray(data134)){if(data134.length > 2){const err435 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}if(data134.length < 2){const err436 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}const len37 = data134.length;if(len37 > 0){let data135 = data134[0];if(typeof data135 !== "string"){const err437 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}if("foaf:Person" !== data135){const err438 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}}if(len37 > 1){let data136 = data134[1];if(typeof data136 !== "string"){const err439 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}if("crm:E89_Propositional_Object" !== data136){const err440 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}}}else {const err441 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}var _valid35 = _errs465 === errors;if(_valid35 && valid118){valid118 = false;passing19 = [passing19, 1];}else {if(_valid35){valid118 = true;passing19 = 1;}}if(!valid118){const err442 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing19},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}else {errors = _errs462;if(vErrors !== null){if(_errs462){vErrors.length = _errs462;}else {vErrors = null;}}}var _valid34 = _errs461 === errors;if(_valid34){valid117 = true;passing18 = 0;}const _errs471 = errors;const _errs472 = errors;let valid120 = false;let passing20 = null;const _errs473 = errors;if(typeof data134 !== "string"){const err443 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}if("cwrc:place" !== data134){const err444 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}var _valid36 = _errs473 === errors;if(_valid36){valid120 = true;passing20 = 0;}const _errs475 = errors;if(Array.isArray(data134)){if(data134.length > 2){const err445 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}if(data134.length < 2){const err446 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}const len38 = data134.length;if(len38 > 0){let data137 = data134[0];if(typeof data137 !== "string"){const err447 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}if("cwrc:place" !== data137){const err448 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}}if(len38 > 1){let data138 = data134[1];if(typeof data138 !== "string"){const err449 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}if("crm:E89_Propositional_Object" !== data138){const err450 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}}}else {const err451 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}var _valid36 = _errs475 === errors;if(_valid36 && valid120){valid120 = false;passing20 = [passing20, 1];}else {if(_valid36){valid120 = true;passing20 = 1;}}if(!valid120){const err452 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing20},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}else {errors = _errs472;if(vErrors !== null){if(_errs472){vErrors.length = _errs472;}else {vErrors = null;}}}var _valid34 = _errs471 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 1];}else {if(_valid34){valid117 = true;passing18 = 1;}const _errs481 = errors;const _errs482 = errors;let valid122 = false;let passing21 = null;const _errs483 = errors;if(typeof data134 !== "string"){const err453 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}if("crm:E74_Group" !== data134){const err454 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}var _valid37 = _errs483 === errors;if(_valid37){valid122 = true;passing21 = 0;}const _errs485 = errors;if(Array.isArray(data134)){if(data134.length > 2){const err455 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}if(data134.length < 2){const err456 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}const len39 = data134.length;if(len39 > 0){let data139 = data134[0];if(typeof data139 !== "string"){const err457 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}if("foaf:Organization" !== data139){const err458 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}}if(len39 > 1){let data140 = data134[1];if(typeof data140 !== "string"){const err459 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}if("crm:E89_Propositional_Object" !== data140){const err460 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}}}else {const err461 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}var _valid37 = _errs485 === errors;if(_valid37 && valid122){valid122 = false;passing21 = [passing21, 1];}else {if(_valid37){valid122 = true;passing21 = 1;}}if(!valid122){const err462 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing21},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}else {errors = _errs482;if(vErrors !== null){if(_errs482){vErrors.length = _errs482;}else {vErrors = null;}}}var _valid34 = _errs481 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 2];}else {if(_valid34){valid117 = true;passing18 = 2;}const _errs491 = errors;const _errs492 = errors;let valid124 = false;let passing22 = null;const _errs493 = errors;if(typeof data134 !== "string"){const err463 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}if("crm:E89_Propositional_Object" !== data134){const err464 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}var _valid38 = _errs493 === errors;if(_valid38){valid124 = true;passing22 = 0;}const _errs495 = errors;if(Array.isArray(data134)){if(data134.length > 2){const err465 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}if(data134.length < 2){const err466 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}const len40 = data134.length;if(len40 > 0){let data141 = data134[0];if(typeof data141 !== "string"){const err467 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}if("frbroo:F1" !== data141){const err468 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}}if(len40 > 1){let data142 = data134[1];if(typeof data142 !== "string"){const err469 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}if("wikidata:Q15306849" !== data142){const err470 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}}}else {const err471 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}var _valid38 = _errs495 === errors;if(_valid38 && valid124){valid124 = false;passing22 = [passing22, 1];}else {if(_valid38){valid124 = true;passing22 = 1;}}if(!valid124){const err472 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing22},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}else {errors = _errs492;if(vErrors !== null){if(_errs492){vErrors.length = _errs492;}else {vErrors = null;}}}var _valid34 = _errs491 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 3];}else {if(_valid34){valid117 = true;passing18 = 3;}const _errs501 = errors;const _errs502 = errors;let valid126 = false;let passing23 = null;const _errs503 = errors;if(typeof data134 !== "string"){const err473 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}if("crm:E18_Physical_Thing" !== data134){const err474 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}var _valid39 = _errs503 === errors;if(_valid39){valid126 = true;passing23 = 0;}const _errs505 = errors;if(Array.isArray(data134)){if(data134.length > 2){const err475 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}if(data134.length < 2){const err476 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}const len41 = data134.length;if(len41 > 0){let data143 = data134[0];if(typeof data143 !== "string"){const err477 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}if("crm:E18_Physical_Thing" !== data143){const err478 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}}if(len41 > 1){let data144 = data134[1];if(typeof data144 !== "string"){const err479 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}if("wikidata:Q15831596" !== data144){const err480 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}}}else {const err481 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}var _valid39 = _errs505 === errors;if(_valid39 && valid126){valid126 = false;passing23 = [passing23, 1];}else {if(_valid39){valid126 = true;passing23 = 1;}}if(!valid126){const err482 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing23},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}else {errors = _errs502;if(vErrors !== null){if(_errs502){vErrors.length = _errs502;}else {vErrors = null;}}}var _valid34 = _errs501 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 4];}else {if(_valid34){valid117 = true;passing18 = 4;}const _errs511 = errors;const _errs512 = errors;let valid128 = false;let passing24 = null;const _errs513 = errors;if(typeof data134 !== "string"){const err483 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}if("crm:E28_Conceptual_Object" !== data134){const err484 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}var _valid40 = _errs513 === errors;if(_valid40){valid128 = true;passing24 = 0;}const _errs515 = errors;if(Array.isArray(data134)){if(data134.length > 2){const err485 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}if(data134.length < 2){const err486 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}const len42 = data134.length;if(len42 > 0){let data145 = data134[0];if(typeof data145 !== "string"){const err487 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}if("crm:E28_Conceptual_Object" !== data145){const err488 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}}if(len42 > 1){let data146 = data134[1];if(typeof data146 !== "string"){const err489 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}if("wikidata:Q15831596" !== data146){const err490 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}}}else {const err491 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}var _valid40 = _errs515 === errors;if(_valid40 && valid128){valid128 = false;passing24 = [passing24, 1];}else {if(_valid40){valid128 = true;passing24 = 1;}}if(!valid128){const err492 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing24},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}else {errors = _errs512;if(vErrors !== null){if(_errs512){vErrors.length = _errs512;}else {vErrors = null;}}}var _valid34 = _errs511 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 5];}else {if(_valid34){valid117 = true;passing18 = 5;}const _errs521 = errors;if(Array.isArray(data134)){if(data134.length > 2){const err493 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}if(data134.length < 2){const err494 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}const len43 = data134.length;if(len43 > 0){let data147 = data134[0];if(typeof data147 !== "string"){const err495 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}if("cito:Citation" !== data147){const err496 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}}if(len43 > 1){let data148 = data134[1];if(typeof data148 !== "string"){const err497 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}if("crm:E73_Information_Object" !== data148){const err498 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}}}else {const err499 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}var _valid34 = _errs521 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 6];}else {if(_valid34){valid117 = true;passing18 = 6;}const _errs527 = errors;if(Array.isArray(data134)){if(data134.length > 2){const err500 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}if(data134.length < 2){const err501 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}const len44 = data134.length;if(len44 > 0){let data149 = data134[0];if(typeof data149 !== "string"){const err502 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}if("xsd:date" !== data149){const err503 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}}if(len44 > 1){let data150 = data134[1];if(typeof data150 !== "string"){const err504 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}if("crm:E52_Time-Span" !== data150){const err505 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}}}else {const err506 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}var _valid34 = _errs527 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 7];}else {if(_valid34){valid117 = true;passing18 = 7;}const _errs533 = errors;if(typeof data134 !== "string"){const err507 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}if("crm:E33_Linguistic_Object" !== data134){const err508 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}var _valid34 = _errs533 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 8];}else {if(_valid34){valid117 = true;passing18 = 8;}const _errs535 = errors;if(Array.isArray(data134)){if(data134.length > 2){const err509 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}if(data134.length < 2){const err510 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}const len45 = data134.length;if(len45 > 0){let data151 = data134[0];if(typeof data151 !== "string"){const err511 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}if("fabio:Correction" !== data151){const err512 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}}if(len45 > 1){let data152 = data134[1];if(typeof data152 !== "string"){const err513 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}if("crm:E33_Linguistic_Object" !== data152){const err514 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}}}else {const err515 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}var _valid34 = _errs535 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 9];}else {if(_valid34){valid117 = true;passing18 = 9;}const _errs541 = errors;if(Array.isArray(data134)){if(data134.length > 2){const err516 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}if(data134.length < 2){const err517 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}const len46 = data134.length;if(len46 > 0){let data153 = data134[0];if(typeof data153 !== "string"){const err518 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}if("crm:E55_Type" !== data153){const err519 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}}if(len46 > 1){let data154 = data134[1];if(typeof data154 !== "string"){const err520 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}if("crmdig:D1_Digital_Object" !== data154){const err521 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}}}else {const err522 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}var _valid34 = _errs541 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 10];}else {if(_valid34){valid117 = true;passing18 = 10;}const _errs547 = errors;if(Array.isArray(data134)){if(data134.length > 2){const err523 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}if(data134.length < 2){const err524 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}const len47 = data134.length;if(len47 > 0){let data155 = data134[0];if(typeof data155 !== "string"){const err525 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}if("crm:E55_Type" !== data155){const err526 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}}if(len47 > 1){let data156 = data134[1];if(typeof data156 !== "string"){const err527 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}if("crm:E33_Linguistic_Object" !== data156){const err528 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}}}else {const err529 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}var _valid34 = _errs547 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 11];}else {if(_valid34){valid117 = true;passing18 = 11;}const _errs553 = errors;if(typeof data134 !== "string"){const err530 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}if("crmdig:D1_Digital_Object" !== data134){const err531 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}var _valid34 = _errs553 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 12];}else {if(_valid34){valid117 = true;passing18 = 12;}const _errs555 = errors;const _errs556 = errors;let valid135 = false;let passing25 = null;const _errs557 = errors;if(typeof data134 !== "string"){const err532 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}if("crm:E5_Event" !== data134){const err533 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}var _valid41 = _errs557 === errors;if(_valid41){valid135 = true;passing25 = 0;}const _errs559 = errors;if(Array.isArray(data134)){if(data134.length > 2){const err534 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}if(data134.length < 2){const err535 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}const len48 = data134.length;if(len48 > 0){let data157 = data134[0];if(typeof data157 !== "string"){const err536 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}if("crm:E5_Event" !== data157){const err537 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}}if(len48 > 1){let data158 = data134[1];if(typeof data158 !== "string"){const err538 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}if("crm:E89_Propositional_Object" !== data158){const err539 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}}}else {const err540 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}var _valid41 = _errs559 === errors;if(_valid41 && valid135){valid135 = false;passing25 = [passing25, 1];}else {if(_valid41){valid135 = true;passing25 = 1;}}if(!valid135){const err541 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf",keyword:"oneOf",params:{passingSchemas: passing25},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}else {errors = _errs556;if(vErrors !== null){if(_errs556){vErrors.length = _errs556;}else {vErrors = null;}}}var _valid34 = _errs555 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 13];}else {if(_valid34){valid117 = true;passing18 = 13;}}}}}}}}}}}}}}if(!valid117){const err542 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing18},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}else {errors = _errs460;if(vErrors !== null){if(_errs460){vErrors.length = _errs460;}else {vErrors = null;}}}}if(data118.additionalType !== undefined){let data159 = data118.additionalType;const _errs566 = errors;let valid137 = false;const _errs567 = errors;if(typeof data159 !== "string"){const err543 = {instancePath:instancePath+"/body/" + i2+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err543];}else {vErrors.push(err543);}errors++;}var _valid42 = _errs567 === errors;valid137 = valid137 || _valid42;if(!valid137){const _errs569 = errors;if(Array.isArray(data159)){const len49 = data159.length;for(let i3=0; i3<len49; i3++){if(typeof data159[i3] !== "string"){const err544 = {instancePath:instancePath+"/body/" + i2+"/additionalType/" + i3,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}}}else {const err545 = {instancePath:instancePath+"/body/" + i2+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err545];}else {vErrors.push(err545);}errors++;}var _valid42 = _errs569 === errors;valid137 = valid137 || _valid42;}if(!valid137){const err546 = {instancePath:instancePath+"/body/" + i2+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err546];}else {vErrors.push(err546);}errors++;}else {errors = _errs566;if(vErrors !== null){if(_errs566){vErrors.length = _errs566;}else {vErrors = null;}}}}if(data118.value !== undefined){if(typeof data118.value !== "string"){const err547 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err547];}else {vErrors.push(err547);}errors++;}}if(data118.label !== undefined){let data162 = data118.label;if(typeof data162 === "string"){if(func3(data162) < 1){const err548 = {instancePath:instancePath+"/body/" + i2+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err548];}else {vErrors.push(err548);}errors++;}}else {const err549 = {instancePath:instancePath+"/body/" + i2+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err549];}else {vErrors.push(err549);}errors++;}}if(data118.modeExistence !== undefined){let data163 = data118.modeExistence;const _errs578 = errors;let valid140 = false;let passing26 = null;const _errs579 = errors;if(typeof data163 !== "string"){const err550 = {instancePath:instancePath+"/body/" + i2+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err550];}else {vErrors.push(err550);}errors++;}if("edit:modeReal" !== data163){const err551 = {instancePath:instancePath+"/body/" + i2+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:modeReal"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err551];}else {vErrors.push(err551);}errors++;}var _valid43 = _errs579 === errors;if(_valid43){valid140 = true;passing26 = 0;}const _errs581 = errors;if(typeof data163 !== "string"){const err552 = {instancePath:instancePath+"/body/" + i2+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err552];}else {vErrors.push(err552);}errors++;}if("edit:modeFictional" !== data163){const err553 = {instancePath:instancePath+"/body/" + i2+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:modeFictional"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err553];}else {vErrors.push(err553);}errors++;}var _valid43 = _errs581 === errors;if(_valid43 && valid140){valid140 = false;passing26 = [passing26, 1];}else {if(_valid43){valid140 = true;passing26 = 1;}const _errs583 = errors;if(typeof data163 !== "string"){const err554 = {instancePath:instancePath+"/body/" + i2+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err554];}else {vErrors.push(err554);}errors++;}if("edit:modeIdentifiable" !== data163){const err555 = {instancePath:instancePath+"/body/" + i2+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:modeIdentifiable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err555];}else {vErrors.push(err555);}errors++;}var _valid43 = _errs583 === errors;if(_valid43 && valid140){valid140 = false;passing26 = [passing26, 2];}else {if(_valid43){valid140 = true;passing26 = 2;}}}if(!valid140){const err556 = {instancePath:instancePath+"/body/" + i2+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf",keyword:"oneOf",params:{passingSchemas: passing26},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err556];}else {vErrors.push(err556);}errors++;}else {errors = _errs578;if(vErrors !== null){if(_errs578){vErrors.length = _errs578;}else {vErrors = null;}}}}if(data118.description !== undefined){if(typeof data118.description !== "string"){const err557 = {instancePath:instancePath+"/body/" + i2+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err557];}else {vErrors.push(err557);}errors++;}}}else {const err558 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err558];}else {vErrors.push(err558);}errors++;}}}else {const err559 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err559];}else {vErrors.push(err559);}errors++;}var _valid15 = _errs410 === errors;if(_valid15 && valid60){valid60 = false;passing8 = [passing8, 2];}else {if(_valid15){valid60 = true;passing8 = 2;}}}if(!valid60){const err560 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf",keyword:"oneOf",params:{passingSchemas: passing8},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err560];}else {vErrors.push(err560);}errors++;}else {errors = _errs233;if(vErrors !== null){if(_errs233){vErrors.length = _errs233;}else {vErrors = null;}}}}if(data.certainty !== undefined){let data165 = data.certainty;if(typeof data165 !== "string"){const err561 = {instancePath:instancePath+"/certainty",schemaPath:"#/properties/certainty/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err561];}else {vErrors.push(err561);}errors++;}if(!((((data165 === "edit:qualityLow") || (data165 === "edit:qualityMedium")) || (data165 === "edit:qualityHigh")) || (data165 === "edit:qualityUnknown"))){const err562 = {instancePath:instancePath+"/certainty",schemaPath:"#/properties/certainty/enum",keyword:"enum",params:{allowedValues: schema11.properties.certainty.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err562];}else {vErrors.push(err562);}errors++;}}if(data.precision !== undefined){let data166 = data.precision;if(typeof data166 !== "string"){const err563 = {instancePath:instancePath+"/precision",schemaPath:"#/properties/precision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err563];}else {vErrors.push(err563);}errors++;}if(!((((data166 === "edit:qualityLow") || (data166 === "edit:qualityMedium")) || (data166 === "edit:qualityHigh")) || (data166 === "edit:qualityUnknown"))){const err564 = {instancePath:instancePath+"/precision",schemaPath:"#/properties/precision/enum",keyword:"enum",params:{allowedValues: schema11.properties.precision.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err564];}else {vErrors.push(err564);}errors++;}}if(data.label !== undefined){if(typeof data.label !== "string"){const err565 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err565];}else {vErrors.push(err565);}errors++;}}if(data.status !== undefined){let data168 = data.status;if(typeof data168 !== "string"){const err566 = {instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err566];}else {vErrors.push(err566);}errors++;}if(!(((data168 === "edit:statusDraft") || (data168 === "edit:statusApproved")) || (data168 === "edit:statusPublished"))){const err567 = {instancePath:instancePath+"/status",schemaPath:"#/properties/status/enum",keyword:"enum",params:{allowedValues: schema11.properties.status.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err567];}else {vErrors.push(err567);}errors++;}}}else {const err568 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}validate10.errors = vErrors;return errors === 0;}
1
+ "use strict";module.exports = validate10;module.exports.default = validate10;const schema11 = {"$id":"https://wa.lincsproject.ca/v1/schema.jsonld","type":"object","description":"Web Annotation","properties":{"@context":{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"http://www.w3.org/ns/anno.jsonld"},{"type":"string","const":"https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld"},{"type":"string","const":"https://wa.lincsproject.ca/v1/ns/anno.jsonld"}],"description":"The context that determines the meaning of the JSON as an Annotation. The itens should point to a URI containing the defiintion used in this schema."},"id":{"type":"string","format":"uri","description":"The type of the Annotation."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Annotation"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The type of the Annotation."},"motivation":{"type":"string","enum":["oa:identifying","oa:describing","correcting","oa:tagging","oa:classifying","oa:linking","citing"],"description":"The relationship between an Annotation and a Motivation."},"created":{"type":"string","format":"date-time","description":"The time at which the resource was created."},"modified":{"type":"string","format":"date-time","description":"The time at which the resource was modified, after creation."},"creator":{"$ref":"defs.jsonld#/definitions/creator"},"contributor":{"type":"array","items":{"$ref":"defs.jsonld#/definitions/creator"},"minItems":1},"generator":{"$ref":"defs.jsonld#/definitions/software"},"target":{"$ref":"defs.jsonld#/definitions/target"},"body":{"oneOf":[{"$ref":"defs.jsonld#/definitions/bodyChoice"},{"$ref":"defs.jsonld#/definitions/body"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"},"minItems":1}]},"certainty":{"type":"string","enum":["edit:qualityLow","edit:qualityMedium","edit:qualityHigh","edit:qualityUnknown"],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},"precision":{"type":"string","enum":["edit:qualityLow","edit:qualityMedium","edit:qualityHigh","edit:qualityUnknown"],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."},"label":{"type":"string"},"P2_has_type":{"oneOf":[{"type":"string","minLength":3},{"type":"array","minItems":1,"items":{"type":"string","minLength":3},"uniqueItems":true}]}},"required":["@context","id","type","motivation","created","generator","target","body"],"additionalProperties":false,"allOf":[{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"oneOf":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"cwrc:place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cwrc:place"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E89_Propositional_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"string","const":"wikidata:Q15831596"}]}]},{"oneOf":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"string","const":"wikidata:Q15831596"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E5_Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:identifying"}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"string","const":"crm:E33_Linguistic_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:describing"}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"correcting"}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:tagging"}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crmdig:D1_Digital_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:classifying"}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"string","const":"crmdig:D1_Digital_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:linking"}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"citing"}}}}}}}}}}]};const schema13 = {"type":"object","description":"Software Agent","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the agent (Creator or Contributor)."},"type":{"type":"string","const":"crm:E21_Person"},"name":{"type":"string","minLength":1,"description":"The name of the agent."}},"required":["id","type","name"]};const schema15 = {"type":"object","description":"Software Agent","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the agent (software)."},"type":{"type":"string","const":"Software"},"P16_used_specific_object":{"type":"string","format":"uri"},"label":{"type":"string","minLength":1,"description":"The name of the software."},"softwareVersion":{"type":"string","description":"The software version."}},"required":["id","type","label"]};const schema35 = {"type":"object","description":"Web Annotation Body","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Body resource."},"type":{"type":"string","const":"TextualBody"},"entityType":{"oneOf":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"cwrc:place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cwrc:place"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E89_Propositional_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"string","const":"wikidata:Q15831596"}]}]},{"oneOf":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"string","const":"wikidata:Q15831596"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"string","const":"crm:E33_Linguistic_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crmdig:D1_Digital_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"string","const":"crmdig:D1_Digital_Object"},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E5_Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]}]},"additionalType":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"value":{"type":"string"},"label":{"type":"string","minLength":1,"description":"The title or name of a linked resource or named entity."},"modeExistence":{"oneOf":[{"type":"string","const":"edit:modeReal","description":"An indication that an entity or thing, such as a person, place or text, is understood to be part of lived or historical existence."},{"type":"string","const":"edit:modeFictional","description":"An indication that an entity or a thing, such as a person, place or text, is invented or imagined."},{"type":"string","const":"edit:modeIdentifiable","description":"An indication that an entity or a thing is understood as both existing and imagined, for instance a character in a work of literature that corresponds to a historical person or a place represented under another name that can be identified as a real place."}],"description":"An indication of the state of being of an entity or thing (OED)."},"description":{"type":"string","description":"Short description of the linked resources or named entity."}},"required":["id","entityType"],"anyOf":[{"if":{"type":"object","properties":{"entityType":{"anyOf":[{"const":"crm:E33_Linguistic_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"xsd:date"},{"const":"crm:E52_Time-Span"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"fabio:Correction"},{"const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"crm:E55_Type"},{"const":"crm:E33_Linguistic_Object"}]}]}}},"then":{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","const":"TextualBody"}},"if":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"xsd:date"},{"const":"crm:E52_Time-Span"}]}}},"then":{"type":"object","properties":{"value":{"type":"string","pattern":"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"}}},"else":{"type":"object","properties":{"value":{"type":"string"}}}}}],"additionalProperties":false};const func2 = Object.prototype.hasOwnProperty;const func3 = require("ajv/dist/runtime/ucs2length").default;const formats0 = require("ajv-formats/dist/formats").fullFormats.uri;const formats2 = require("ajv-formats/dist/formats").fullFormats["date-time"];const schema16 = {"type":"object","description":"Web Annotation Target","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Target resource."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"SpecificResource"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Specific Resource."},"source":{"type":"object","description":"Web Annotation Target's source","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Target source."},"type":{"type":"string","const":"crm:D1_Digital_Object"},"format":{"type":["string","array"],"nullable":true,"anyOf":[{"type":"string","description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.","minLength":1},{"type":"array","minItems":1,"items":{"type":"string","description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.","minLength":1},"description":"The formats of the Web Resource's content. The value of the property should and array of media-types of the format, following the [rfc6838] specification."}]},"P1_is_identified_by":{"type":"object","description":"indentifyBy","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"string","const":"crm:E33_E41_Linguistic_Appellation"},"title":{"type":"string","minLength":1,"description":"The title of the document being annotated."}},"required":["id","type","title"],"nullable":true},"language":{"type":["string","array"],"nullable":true,"anyOf":[{"type":"string","description":"The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.","minLength":2,"maxLength":3},{"type":"array","minItems":1,"items":{"type":"string","description":"The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.","minLength":2,"maxLength":3},"description":"The languages of the Web Resource's content. The value of the property should be an array of language code following the [bcp47] specification."}]},"title":{"type":"string","minLength":1,"nullable":true,"description":"The title of the document being annotated."}},"required":["id","type"]},"renderedVia":{"$ref":"defs.jsonld#/definitions/software","description":"The relationship between the Specific Resource that represents the Target in the annotation, and the piece of software or other system that was used to render the Target when the annotation was created."},"selector":{"anyOf":[{"type":"object","oneOf":[{"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","exact","prefix","suffix"]},{"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","start","end"]},{"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","value"]},{"type":"object","description":"Range Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"startSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"},"endSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"}},"required":["id","type","startSelector","endSelector"]}],"required":[]},{"type":"array","items":{"type":"object","oneOf":[{"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","exact","prefix","suffix"]},{"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","start","end"]},{"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","value"]},{"type":"object","description":"Range Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"startSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"},"endSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"}},"required":["id","type","startSelector","endSelector"]}],"required":[]},"minItems":1}]}},"required":["id","type","source"],"allOf":[{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["id","type","exact","prefix","suffix"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","startSelector","endSelector"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","value"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","start","end"]}}}}]};const schema18 = {"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."}},"required":["id","type","start","end"]};const schema19 = {"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."}},"required":["id","type","exact","prefix","suffix"]};const schema24 = {"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"}},"required":["id","type","value"]};function validate12(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(errors === _errs3){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data0 = data.selector;const _errs5 = errors;if(errors === _errs5){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.type !== undefined){let data1 = data0.type;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data1)){if(data1.length > 2){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data1.length < 2){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const len0 = data1.length;if(len0 > 0){let data2 = data1[0];const _errs9 = errors;if(typeof data2 !== "string"){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("TextQuoteSelector" !== data2){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid4 = _errs9 === errors;}if(valid4){if(len0 > 1){let data3 = data1[1];const _errs11 = errors;if(typeof data3 !== "string"){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("crm:E33_Linguistic_Object" !== data3){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid4 = _errs11 === errors;}}}}}else {const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}}else {const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}else {const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data4 = data.selector;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.id === undefined){const err9 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data4.type === undefined){const err10 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data4.exact === undefined){const err11 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data4.prefix === undefined){const err12 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data4.suffix === undefined){const err13 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}else {const err15 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid0 = _errs13 === errors;valid1 = _valid0;}if(!valid1){const err16 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}const _errs18 = errors;let valid6 = true;const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data5 = data.selector;const _errs21 = errors;if(errors === _errs21){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.type !== undefined){let data6 = data5.type;const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data6)){if(data6.length > 2){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {if(data6.length < 2){const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {const len1 = data6.length;if(len1 > 0){let data7 = data6[0];const _errs25 = errors;if(typeof data7 !== "string"){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("RangeSelector" !== data7){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid9 = _errs25 === errors;}if(valid9){if(len1 > 1){let data8 = data6[1];const _errs27 = errors;if(typeof data8 !== "string"){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("crm:E73_Information_Object" !== data8){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid9 = _errs27 === errors;}}}}}else {const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}}else {const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}}else {const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}var _valid1 = _errs19 === errors;errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}if(_valid1){const _errs29 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data9 = data.selector;if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.type === undefined){const err26 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data9.startSelector === undefined){const err27 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data9.endSelector === undefined){const err28 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath,schemaPath:"#/allOf/1/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid1 = _errs29 === errors;valid6 = _valid1;}if(!valid6){const err31 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}const _errs34 = errors;let valid11 = true;const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data10 = data.selector;const _errs37 = errors;if(errors === _errs37){if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.type !== undefined){let data11 = data10.type;const _errs39 = errors;if(errors === _errs39){if(Array.isArray(data11)){if(data11.length > 2){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data11.length < 2){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const len2 = data11.length;if(len2 > 0){let data12 = data11[0];const _errs41 = errors;if(typeof data12 !== "string"){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("XPathSelector" !== data12){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid14 = _errs41 === errors;}if(valid14){if(len2 > 1){let data13 = data11[1];const _errs43 = errors;if(typeof data13 !== "string"){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("crm:E73_Information_Object" !== data13){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid14 = _errs43 === errors;}}}}}else {const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}}else {const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}}else {const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}var _valid2 = _errs35 === errors;errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}if(_valid2){const _errs45 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data14 = data.selector;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.type === undefined){const err41 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data14.value === undefined){const err42 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {instancePath,schemaPath:"#/allOf/2/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var _valid2 = _errs45 === errors;valid11 = _valid2;}if(!valid11){const err45 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}const _errs50 = errors;let valid16 = true;const _errs51 = errors;if(errors === _errs51){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data15 = data.selector;const _errs53 = errors;if(errors === _errs53){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.type !== undefined){let data16 = data15.type;const _errs55 = errors;if(errors === _errs55){if(Array.isArray(data16)){if(data16.length > 2){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {if(data16.length < 2){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {const len3 = data16.length;if(len3 > 0){let data17 = data16[0];const _errs57 = errors;if(typeof data17 !== "string"){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("TextPositionSelector" !== data17){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid19 = _errs57 === errors;}if(valid19){if(len3 > 1){let data18 = data16[1];const _errs59 = errors;if(typeof data18 !== "string"){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("crm:E73_Information_Object" !== data18){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid19 = _errs59 === errors;}}}}}else {const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}}else {const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}}else {const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}var _valid3 = _errs51 === errors;errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}if(_valid3){const _errs61 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data19 = data.selector;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.type === undefined){const err55 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data19.start === undefined){const err56 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data19.end === undefined){const err57 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}else {const err58 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}else {const err59 = {instancePath,schemaPath:"#/allOf/3/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var _valid3 = _errs61 === errors;valid16 = _valid3;}if(!valid16){const err60 = {instancePath,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err61 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(data.type === undefined){const err62 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(data.source === undefined){const err63 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(data.id !== undefined){let data20 = data.id;if(typeof data20 === "string"){if(!(formats0(data20))){const err64 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}else {const err65 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data.type !== undefined){let data21 = data.type;if(Array.isArray(data21)){if(data21.length > 2){const err66 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}if(data21.length < 2){const err67 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}const len4 = data21.length;if(len4 > 0){let data22 = data21[0];if(typeof data22 !== "string"){const err68 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if("SpecificResource" !== data22){const err69 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "SpecificResource"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(len4 > 1){let data23 = data21[1];if(typeof data23 !== "string"){const err70 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if("crm:E73_Information_Object" !== data23){const err71 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data.source !== undefined){let data24 = data.source;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(data24.id === undefined){const err73 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if(data24.type === undefined){const err74 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(data24.id !== undefined){let data25 = data24.id;if(typeof data25 === "string"){if(!(formats0(data25))){const err75 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}else {const err76 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}if(data24.type !== undefined){let data26 = data24.type;if(typeof data26 !== "string"){const err77 = {instancePath:instancePath+"/source/type",schemaPath:"#/properties/source/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if("crm:D1_Digital_Object" !== data26){const err78 = {instancePath:instancePath+"/source/type",schemaPath:"#/properties/source/properties/type/const",keyword:"const",params:{allowedValue: "crm:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}if(data24.format !== undefined){let data27 = data24.format;if(((typeof data27 !== "string") && (!(Array.isArray(data27)))) && (data27 !== null)){const err79 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/type",keyword:"type",params:{type: schema16.properties.source.properties.format.type},message:"must be string,array,null"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}const _errs82 = errors;let valid24 = false;const _errs83 = errors;if(typeof data27 === "string"){if(func3(data27) < 1){const err80 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}else {const err81 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var _valid4 = _errs83 === errors;valid24 = valid24 || _valid4;if(!valid24){const _errs85 = errors;if(Array.isArray(data27)){if(data27.length < 1){const err82 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}const len5 = data27.length;for(let i0=0; i0<len5; i0++){let data28 = data27[i0];if(typeof data28 === "string"){if(func3(data28) < 1){const err83 = {instancePath:instancePath+"/source/format/" + i0,schemaPath:"#/properties/source/properties/format/anyOf/1/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/source/format/" + i0,schemaPath:"#/properties/source/properties/format/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid4 = _errs85 === errors;valid24 = valid24 || _valid4;}if(!valid24){const err86 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}}if(data24.P1_is_identified_by !== undefined){let data29 = data24.P1_is_identified_by;if((!(data29 && typeof data29 == "object" && !Array.isArray(data29))) && (data29 !== null)){const err87 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.id === undefined){const err88 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(data29.type === undefined){const err89 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(data29.title === undefined){const err90 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(data29.id !== undefined){let data30 = data29.id;if(typeof data30 === "string"){if(!(formats0(data30))){const err91 = {instancePath:instancePath+"/source/P1_is_identified_by/id",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}else {const err92 = {instancePath:instancePath+"/source/P1_is_identified_by/id",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}if(data29.type !== undefined){let data31 = data29.type;if(typeof data31 !== "string"){const err93 = {instancePath:instancePath+"/source/P1_is_identified_by/type",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if("crm:E33_E41_Linguistic_Appellation" !== data31){const err94 = {instancePath:instancePath+"/source/P1_is_identified_by/type",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/type/const",keyword:"const",params:{allowedValue: "crm:E33_E41_Linguistic_Appellation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}if(data29.title !== undefined){let data32 = data29.title;if(typeof data32 === "string"){if(func3(data32) < 1){const err95 = {instancePath:instancePath+"/source/P1_is_identified_by/title",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}else {const err96 = {instancePath:instancePath+"/source/P1_is_identified_by/title",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}}if(data24.language !== undefined){let data33 = data24.language;if(((typeof data33 !== "string") && (!(Array.isArray(data33)))) && (data33 !== null)){const err97 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/type",keyword:"type",params:{type: schema16.properties.source.properties.language.type},message:"must be string,array,null"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const _errs101 = errors;let valid28 = false;const _errs102 = errors;if(typeof data33 === "string"){if(func3(data33) > 3){const err98 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 3},message:"must NOT have more than 3 characters"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(func3(data33) < 2){const err99 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}else {const err100 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}var _valid5 = _errs102 === errors;valid28 = valid28 || _valid5;if(!valid28){const _errs104 = errors;if(Array.isArray(data33)){if(data33.length < 1){const err101 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}const len6 = data33.length;for(let i1=0; i1<len6; i1++){let data34 = data33[i1];if(typeof data34 === "string"){if(func3(data34) > 3){const err102 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/maxLength",keyword:"maxLength",params:{limit: 3},message:"must NOT have more than 3 characters"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(func3(data34) < 2){const err103 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}else {const err104 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}else {const err105 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var _valid5 = _errs104 === errors;valid28 = valid28 || _valid5;}if(!valid28){const err106 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {errors = _errs101;if(vErrors !== null){if(_errs101){vErrors.length = _errs101;}else {vErrors = null;}}}}if(data24.title !== undefined){let data35 = data24.title;if((typeof data35 !== "string") && (data35 !== null)){const err107 = {instancePath:instancePath+"/source/title",schemaPath:"#/properties/source/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if(typeof data35 === "string"){if(func3(data35) < 1){const err108 = {instancePath:instancePath+"/source/title",schemaPath:"#/properties/source/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}else {const err109 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data.renderedVia !== undefined){let data36 = data.renderedVia;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.id === undefined){const err110 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data36.type === undefined){const err111 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(data36.label === undefined){const err112 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if(data36.id !== undefined){let data37 = data36.id;if(typeof data37 === "string"){if(!(formats0(data37))){const err113 = {instancePath:instancePath+"/renderedVia/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}else {const err114 = {instancePath:instancePath+"/renderedVia/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data36.type !== undefined){let data38 = data36.type;if(typeof data38 !== "string"){const err115 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if("Software" !== data38){const err116 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/const",keyword:"const",params:{allowedValue: "Software"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data36.P16_used_specific_object !== undefined){let data39 = data36.P16_used_specific_object;if(typeof data39 === "string"){if(!(formats0(data39))){const err117 = {instancePath:instancePath+"/renderedVia/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}else {const err118 = {instancePath:instancePath+"/renderedVia/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}if(data36.label !== undefined){let data40 = data36.label;if(typeof data40 === "string"){if(func3(data40) < 1){const err119 = {instancePath:instancePath+"/renderedVia/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/renderedVia/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data36.softwareVersion !== undefined){if(typeof data36.softwareVersion !== "string"){const err121 = {instancePath:instancePath+"/renderedVia/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}}else {const err122 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data.selector !== undefined){let data42 = data.selector;const _errs125 = errors;let valid33 = false;const _errs126 = errors;const _errs128 = errors;let valid34 = false;let passing0 = null;const _errs129 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.id === undefined){const err123 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if(data42.type === undefined){const err124 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(data42.exact === undefined){const err125 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(data42.prefix === undefined){const err126 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if(data42.suffix === undefined){const err127 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data42.id !== undefined){let data43 = data42.id;if(typeof data43 === "string"){if(!(formats0(data43))){const err128 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}else {const err129 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}if(data42.type !== undefined){let data44 = data42.type;if(Array.isArray(data44)){if(data44.length > 2){const err130 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if(data44.length < 2){const err131 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}const len7 = data44.length;if(len7 > 0){let data45 = data44[0];if(typeof data45 !== "string"){const err132 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if("TextQuoteSelector" !== data45){const err133 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}if(len7 > 1){let data46 = data44[1];if(typeof data46 !== "string"){const err134 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}if("crm:E33_Linguistic_Object" !== data46){const err135 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}}else {const err136 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(data42.exact !== undefined){if(typeof data42.exact !== "string"){const err137 = {instancePath:instancePath+"/selector/exact",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(data42.prefix !== undefined){if(typeof data42.prefix !== "string"){const err138 = {instancePath:instancePath+"/selector/prefix",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data42.suffix !== undefined){if(typeof data42.suffix !== "string"){const err139 = {instancePath:instancePath+"/selector/suffix",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}if(data42.refinedBy !== undefined){let data50 = data42.refinedBy;const _errs147 = errors;let valid37 = false;let passing1 = null;const _errs148 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.id === undefined){const err140 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data50.type === undefined){const err141 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data50.start === undefined){const err142 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if(data50.end === undefined){const err143 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(data50.id !== undefined){let data51 = data50.id;if(typeof data51 === "string"){if(!(formats0(data51))){const err144 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}else {const err145 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data50.type !== undefined){let data52 = data50.type;if(Array.isArray(data52)){if(data52.length > 2){const err146 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if(data52.length < 2){const err147 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}const len8 = data52.length;if(len8 > 0){let data53 = data52[0];if(typeof data53 !== "string"){const err148 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if("TextPositionSelector" !== data53){const err149 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}if(len8 > 1){let data54 = data52[1];if(typeof data54 !== "string"){const err150 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if("crm:E73_Information_Object" !== data54){const err151 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}else {const err152 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}if(data50.start !== undefined){let data55 = data50.start;if((typeof data55 == "number") && (isFinite(data55))){if(data55 < 0 || isNaN(data55)){const err153 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}else {const err154 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}if(data50.end !== undefined){let data56 = data50.end;if((typeof data56 == "number") && (isFinite(data56))){if(data56 < 0 || isNaN(data56)){const err155 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}else {const err156 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}}else {const err157 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}var _valid8 = _errs148 === errors;if(_valid8){valid37 = true;passing1 = 0;}const _errs163 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.id === undefined){const err158 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data50.type === undefined){const err159 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data50.exact === undefined){const err160 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(data50.prefix === undefined){const err161 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if(data50.suffix === undefined){const err162 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(data50.id !== undefined){let data57 = data50.id;if(typeof data57 === "string"){if(!(formats0(data57))){const err163 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}else {const err164 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data50.type !== undefined){let data58 = data50.type;if(Array.isArray(data58)){if(data58.length > 2){const err165 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data58.length < 2){const err166 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}const len9 = data58.length;if(len9 > 0){let data59 = data58[0];if(typeof data59 !== "string"){const err167 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if("TextQuoteSelector" !== data59){const err168 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(len9 > 1){let data60 = data58[1];if(typeof data60 !== "string"){const err169 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if("crm:E33_Linguistic_Object" !== data60){const err170 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}else {const err171 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}if(data50.exact !== undefined){if(typeof data50.exact !== "string"){const err172 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data50.prefix !== undefined){if(typeof data50.prefix !== "string"){const err173 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data50.suffix !== undefined){if(typeof data50.suffix !== "string"){const err174 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}}else {const err175 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}var _valid8 = _errs163 === errors;if(_valid8 && valid37){valid37 = false;passing1 = [passing1, 1];}else {if(_valid8){valid37 = true;passing1 = 1;}}if(!valid37){const err176 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}if(!(data50 && typeof data50 == "object" && !Array.isArray(data50))){const err177 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}}else {const err178 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}var _valid7 = _errs129 === errors;if(_valid7){valid34 = true;passing0 = 0;}const _errs180 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.id === undefined){const err179 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if(data42.type === undefined){const err180 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(data42.start === undefined){const err181 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if(data42.end === undefined){const err182 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}if(data42.id !== undefined){let data64 = data42.id;if(typeof data64 === "string"){if(!(formats0(data64))){const err183 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}else {const err184 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}if(data42.type !== undefined){let data65 = data42.type;if(Array.isArray(data65)){if(data65.length > 2){const err185 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if(data65.length < 2){const err186 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}const len10 = data65.length;if(len10 > 0){let data66 = data65[0];if(typeof data66 !== "string"){const err187 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if("TextPositionSelector" !== data66){const err188 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(len10 > 1){let data67 = data65[1];if(typeof data67 !== "string"){const err189 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if("crm:E73_Information_Object" !== data67){const err190 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}else {const err191 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data42.start !== undefined){let data68 = data42.start;if((typeof data68 == "number") && (isFinite(data68))){if(data68 < 0 || isNaN(data68)){const err192 = {instancePath:instancePath+"/selector/start",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}else {const err193 = {instancePath:instancePath+"/selector/start",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(data42.end !== undefined){let data69 = data42.end;if((typeof data69 == "number") && (isFinite(data69))){if(data69 < 0 || isNaN(data69)){const err194 = {instancePath:instancePath+"/selector/end",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}else {const err195 = {instancePath:instancePath+"/selector/end",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}if(data42.refinedBy !== undefined){let data70 = data42.refinedBy;const _errs196 = errors;let valid46 = false;let passing2 = null;const _errs197 = errors;if(data70 && typeof data70 == "object" && !Array.isArray(data70)){if(data70.id === undefined){const err196 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(data70.type === undefined){const err197 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(data70.start === undefined){const err198 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}if(data70.end === undefined){const err199 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if(data70.id !== undefined){let data71 = data70.id;if(typeof data71 === "string"){if(!(formats0(data71))){const err200 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}else {const err201 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data70.type !== undefined){let data72 = data70.type;if(Array.isArray(data72)){if(data72.length > 2){const err202 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}if(data72.length < 2){const err203 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}const len11 = data72.length;if(len11 > 0){let data73 = data72[0];if(typeof data73 !== "string"){const err204 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}if("TextPositionSelector" !== data73){const err205 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}if(len11 > 1){let data74 = data72[1];if(typeof data74 !== "string"){const err206 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}if("crm:E73_Information_Object" !== data74){const err207 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}}else {const err208 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}if(data70.start !== undefined){let data75 = data70.start;if((typeof data75 == "number") && (isFinite(data75))){if(data75 < 0 || isNaN(data75)){const err209 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}else {const err210 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(data70.end !== undefined){let data76 = data70.end;if((typeof data76 == "number") && (isFinite(data76))){if(data76 < 0 || isNaN(data76)){const err211 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}else {const err212 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}}else {const err213 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}var _valid9 = _errs197 === errors;if(_valid9){valid46 = true;passing2 = 0;}const _errs212 = errors;if(data70 && typeof data70 == "object" && !Array.isArray(data70)){if(data70.id === undefined){const err214 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}if(data70.type === undefined){const err215 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if(data70.exact === undefined){const err216 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}if(data70.prefix === undefined){const err217 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}if(data70.suffix === undefined){const err218 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}if(data70.id !== undefined){let data77 = data70.id;if(typeof data77 === "string"){if(!(formats0(data77))){const err219 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}else {const err220 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(data70.type !== undefined){let data78 = data70.type;if(Array.isArray(data78)){if(data78.length > 2){const err221 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}if(data78.length < 2){const err222 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}const len12 = data78.length;if(len12 > 0){let data79 = data78[0];if(typeof data79 !== "string"){const err223 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}if("TextQuoteSelector" !== data79){const err224 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}if(len12 > 1){let data80 = data78[1];if(typeof data80 !== "string"){const err225 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}if("crm:E33_Linguistic_Object" !== data80){const err226 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}}else {const err227 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}if(data70.exact !== undefined){if(typeof data70.exact !== "string"){const err228 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(data70.prefix !== undefined){if(typeof data70.prefix !== "string"){const err229 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}if(data70.suffix !== undefined){if(typeof data70.suffix !== "string"){const err230 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}else {const err231 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var _valid9 = _errs212 === errors;if(_valid9 && valid46){valid46 = false;passing2 = [passing2, 1];}else {if(_valid9){valid46 = true;passing2 = 1;}}if(!valid46){const err232 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}else {errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}}if(!(data70 && typeof data70 == "object" && !Array.isArray(data70))){const err233 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}else {const err234 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}var _valid7 = _errs180 === errors;if(_valid7 && valid34){valid34 = false;passing0 = [passing0, 1];}else {if(_valid7){valid34 = true;passing0 = 1;}const _errs229 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.id === undefined){const err235 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if(data42.type === undefined){const err236 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}if(data42.value === undefined){const err237 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}if(data42.id !== undefined){let data84 = data42.id;if(typeof data84 === "string"){if(!(formats0(data84))){const err238 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}else {const err239 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}}if(data42.type !== undefined){let data85 = data42.type;if(Array.isArray(data85)){if(data85.length > 2){const err240 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}if(data85.length < 2){const err241 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}const len13 = data85.length;if(len13 > 0){let data86 = data85[0];if(typeof data86 !== "string"){const err242 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}if("XPathSelector" !== data86){const err243 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}if(len13 > 1){let data87 = data85[1];if(typeof data87 !== "string"){const err244 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}if("crm:E73_Information_Object" !== data87){const err245 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}}else {const err246 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}if(data42.value !== undefined){if(typeof data42.value !== "string"){const err247 = {instancePath:instancePath+"/selector/value",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}if(data42.refinedBy !== undefined){let data89 = data42.refinedBy;const _errs243 = errors;let valid55 = false;const _errs244 = errors;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.id === undefined){const err248 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data89.type === undefined){const err249 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}if(data89.start === undefined){const err250 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}if(data89.end === undefined){const err251 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}if(data89.id !== undefined){let data90 = data89.id;if(typeof data90 === "string"){if(!(formats0(data90))){const err252 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}}else {const err253 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}if(data89.type !== undefined){let data91 = data89.type;if(Array.isArray(data91)){if(data91.length > 2){const err254 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}if(data91.length < 2){const err255 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}const len14 = data91.length;if(len14 > 0){let data92 = data91[0];if(typeof data92 !== "string"){const err256 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}if("TextPositionSelector" !== data92){const err257 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}}if(len14 > 1){let data93 = data91[1];if(typeof data93 !== "string"){const err258 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}if("crm:E73_Information_Object" !== data93){const err259 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}}else {const err260 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}if(data89.start !== undefined){let data94 = data89.start;if((typeof data94 == "number") && (isFinite(data94))){if(data94 < 0 || isNaN(data94)){const err261 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}}else {const err262 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}}if(data89.end !== undefined){let data95 = data89.end;if((typeof data95 == "number") && (isFinite(data95))){if(data95 < 0 || isNaN(data95)){const err263 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}else {const err264 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}}else {const err265 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}var _valid10 = _errs244 === errors;valid55 = valid55 || _valid10;if(!valid55){const _errs259 = errors;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.id === undefined){const err266 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if(data89.type === undefined){const err267 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}if(data89.exact === undefined){const err268 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}if(data89.prefix === undefined){const err269 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}if(data89.suffix === undefined){const err270 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}if(data89.id !== undefined){let data96 = data89.id;if(typeof data96 === "string"){if(!(formats0(data96))){const err271 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}else {const err272 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}if(data89.type !== undefined){let data97 = data89.type;if(Array.isArray(data97)){if(data97.length > 2){const err273 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}if(data97.length < 2){const err274 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}const len15 = data97.length;if(len15 > 0){let data98 = data97[0];if(typeof data98 !== "string"){const err275 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}if("TextQuoteSelector" !== data98){const err276 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}if(len15 > 1){let data99 = data97[1];if(typeof data99 !== "string"){const err277 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}if("crm:E33_Linguistic_Object" !== data99){const err278 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}}else {const err279 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}if(data89.exact !== undefined){if(typeof data89.exact !== "string"){const err280 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}if(data89.prefix !== undefined){if(typeof data89.prefix !== "string"){const err281 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}if(data89.suffix !== undefined){if(typeof data89.suffix !== "string"){const err282 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}}else {const err283 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var _valid10 = _errs259 === errors;valid55 = valid55 || _valid10;}if(!valid55){const err284 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}else {errors = _errs243;if(vErrors !== null){if(_errs243){vErrors.length = _errs243;}else {vErrors = null;}}}if(!(data89 && typeof data89 == "object" && !Array.isArray(data89))){const err285 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}}}else {const err286 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}var _valid7 = _errs229 === errors;if(_valid7 && valid34){valid34 = false;passing0 = [passing0, 2];}else {if(_valid7){valid34 = true;passing0 = 2;}const _errs276 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.id === undefined){const err287 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}if(data42.type === undefined){const err288 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}if(data42.startSelector === undefined){const err289 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}if(data42.endSelector === undefined){const err290 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}if(data42.id !== undefined){let data103 = data42.id;if(typeof data103 === "string"){if(!(formats0(data103))){const err291 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}else {const err292 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}if(data42.type !== undefined){let data104 = data42.type;if(Array.isArray(data104)){if(data104.length > 2){const err293 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}if(data104.length < 2){const err294 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}const len16 = data104.length;if(len16 > 0){let data105 = data104[0];if(typeof data105 !== "string"){const err295 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}if("RangeSelector" !== data105){const err296 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}if(len16 > 1){let data106 = data104[1];if(typeof data106 !== "string"){const err297 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}if("crm:E73_Information_Object" !== data106){const err298 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}}else {const err299 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}if(data42.startSelector !== undefined){let data107 = data42.startSelector;if(data107 && typeof data107 == "object" && !Array.isArray(data107)){if(data107.id === undefined){const err300 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}if(data107.type === undefined){const err301 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}if(data107.value === undefined){const err302 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}if(data107.id !== undefined){let data108 = data107.id;if(typeof data108 === "string"){if(!(formats0(data108))){const err303 = {instancePath:instancePath+"/selector/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}else {const err304 = {instancePath:instancePath+"/selector/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}}if(data107.type !== undefined){let data109 = data107.type;if(Array.isArray(data109)){if(data109.length > 2){const err305 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}if(data109.length < 2){const err306 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}const len17 = data109.length;if(len17 > 0){let data110 = data109[0];if(typeof data110 !== "string"){const err307 = {instancePath:instancePath+"/selector/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if("XPathSelector" !== data110){const err308 = {instancePath:instancePath+"/selector/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}if(len17 > 1){let data111 = data109[1];if(typeof data111 !== "string"){const err309 = {instancePath:instancePath+"/selector/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}if("crm:E73_Information_Object" !== data111){const err310 = {instancePath:instancePath+"/selector/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}}}else {const err311 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}}if(data107.value !== undefined){if(typeof data107.value !== "string"){const err312 = {instancePath:instancePath+"/selector/startSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}}}else {const err313 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}}if(data42.endSelector !== undefined){let data113 = data42.endSelector;if(data113 && typeof data113 == "object" && !Array.isArray(data113)){if(data113.id === undefined){const err314 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}if(data113.type === undefined){const err315 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}if(data113.value === undefined){const err316 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}if(data113.id !== undefined){let data114 = data113.id;if(typeof data114 === "string"){if(!(formats0(data114))){const err317 = {instancePath:instancePath+"/selector/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}}else {const err318 = {instancePath:instancePath+"/selector/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}}if(data113.type !== undefined){let data115 = data113.type;if(Array.isArray(data115)){if(data115.length > 2){const err319 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}if(data115.length < 2){const err320 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}const len18 = data115.length;if(len18 > 0){let data116 = data115[0];if(typeof data116 !== "string"){const err321 = {instancePath:instancePath+"/selector/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}if("XPathSelector" !== data116){const err322 = {instancePath:instancePath+"/selector/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}}if(len18 > 1){let data117 = data115[1];if(typeof data117 !== "string"){const err323 = {instancePath:instancePath+"/selector/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}if("crm:E73_Information_Object" !== data117){const err324 = {instancePath:instancePath+"/selector/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}}}else {const err325 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}}if(data113.value !== undefined){if(typeof data113.value !== "string"){const err326 = {instancePath:instancePath+"/selector/endSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}}}else {const err327 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}}}else {const err328 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}var _valid7 = _errs276 === errors;if(_valid7 && valid34){valid34 = false;passing0 = [passing0, 3];}else {if(_valid7){valid34 = true;passing0 = 3;}}}}if(!valid34){const err329 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}else {errors = _errs128;if(vErrors !== null){if(_errs128){vErrors.length = _errs128;}else {vErrors = null;}}}if(!(data42 && typeof data42 == "object" && !Array.isArray(data42))){const err330 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}var _valid6 = _errs126 === errors;valid33 = valid33 || _valid6;if(!valid33){const _errs312 = errors;if(Array.isArray(data42)){if(data42.length < 1){const err331 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}const len19 = data42.length;for(let i2=0; i2<len19; i2++){let data119 = data42[i2];const _errs316 = errors;let valid72 = false;let passing3 = null;const _errs317 = errors;if(data119 && typeof data119 == "object" && !Array.isArray(data119)){if(data119.id === undefined){const err332 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}if(data119.type === undefined){const err333 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}if(data119.exact === undefined){const err334 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}if(data119.prefix === undefined){const err335 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}if(data119.suffix === undefined){const err336 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}if(data119.id !== undefined){let data120 = data119.id;if(typeof data120 === "string"){if(!(formats0(data120))){const err337 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}}else {const err338 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}}if(data119.type !== undefined){let data121 = data119.type;if(Array.isArray(data121)){if(data121.length > 2){const err339 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}if(data121.length < 2){const err340 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}const len20 = data121.length;if(len20 > 0){let data122 = data121[0];if(typeof data122 !== "string"){const err341 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}if("TextQuoteSelector" !== data122){const err342 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}}if(len20 > 1){let data123 = data121[1];if(typeof data123 !== "string"){const err343 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}if("crm:E33_Linguistic_Object" !== data123){const err344 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}}}else {const err345 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}}if(data119.exact !== undefined){if(typeof data119.exact !== "string"){const err346 = {instancePath:instancePath+"/selector/" + i2+"/exact",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}}if(data119.prefix !== undefined){if(typeof data119.prefix !== "string"){const err347 = {instancePath:instancePath+"/selector/" + i2+"/prefix",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}}if(data119.suffix !== undefined){if(typeof data119.suffix !== "string"){const err348 = {instancePath:instancePath+"/selector/" + i2+"/suffix",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}}if(data119.refinedBy !== undefined){let data127 = data119.refinedBy;const _errs335 = errors;let valid75 = false;let passing4 = null;const _errs336 = errors;if(data127 && typeof data127 == "object" && !Array.isArray(data127)){if(data127.id === undefined){const err349 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}if(data127.type === undefined){const err350 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}if(data127.start === undefined){const err351 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}if(data127.end === undefined){const err352 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}if(data127.id !== undefined){let data128 = data127.id;if(typeof data128 === "string"){if(!(formats0(data128))){const err353 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}}else {const err354 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}}if(data127.type !== undefined){let data129 = data127.type;if(Array.isArray(data129)){if(data129.length > 2){const err355 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}if(data129.length < 2){const err356 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}const len21 = data129.length;if(len21 > 0){let data130 = data129[0];if(typeof data130 !== "string"){const err357 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}if("TextPositionSelector" !== data130){const err358 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}}if(len21 > 1){let data131 = data129[1];if(typeof data131 !== "string"){const err359 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}if("crm:E73_Information_Object" !== data131){const err360 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}}}else {const err361 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}if(data127.start !== undefined){let data132 = data127.start;if((typeof data132 == "number") && (isFinite(data132))){if(data132 < 0 || isNaN(data132)){const err362 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}}else {const err363 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}}if(data127.end !== undefined){let data133 = data127.end;if((typeof data133 == "number") && (isFinite(data133))){if(data133 < 0 || isNaN(data133)){const err364 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}}else {const err365 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}}}else {const err366 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}var _valid12 = _errs336 === errors;if(_valid12){valid75 = true;passing4 = 0;}const _errs351 = errors;if(data127 && typeof data127 == "object" && !Array.isArray(data127)){if(data127.id === undefined){const err367 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}if(data127.type === undefined){const err368 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}if(data127.exact === undefined){const err369 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}if(data127.prefix === undefined){const err370 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}if(data127.suffix === undefined){const err371 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}if(data127.id !== undefined){let data134 = data127.id;if(typeof data134 === "string"){if(!(formats0(data134))){const err372 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}}else {const err373 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}}if(data127.type !== undefined){let data135 = data127.type;if(Array.isArray(data135)){if(data135.length > 2){const err374 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}if(data135.length < 2){const err375 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}const len22 = data135.length;if(len22 > 0){let data136 = data135[0];if(typeof data136 !== "string"){const err376 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}if("TextQuoteSelector" !== data136){const err377 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}}if(len22 > 1){let data137 = data135[1];if(typeof data137 !== "string"){const err378 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}if("crm:E33_Linguistic_Object" !== data137){const err379 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}}}else {const err380 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}}if(data127.exact !== undefined){if(typeof data127.exact !== "string"){const err381 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}}if(data127.prefix !== undefined){if(typeof data127.prefix !== "string"){const err382 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}}if(data127.suffix !== undefined){if(typeof data127.suffix !== "string"){const err383 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}}else {const err384 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}var _valid12 = _errs351 === errors;if(_valid12 && valid75){valid75 = false;passing4 = [passing4, 1];}else {if(_valid12){valid75 = true;passing4 = 1;}}if(!valid75){const err385 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}else {errors = _errs335;if(vErrors !== null){if(_errs335){vErrors.length = _errs335;}else {vErrors = null;}}}if(!(data127 && typeof data127 == "object" && !Array.isArray(data127))){const err386 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}}}else {const err387 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}var _valid11 = _errs317 === errors;if(_valid11){valid72 = true;passing3 = 0;}const _errs368 = errors;if(data119 && typeof data119 == "object" && !Array.isArray(data119)){if(data119.id === undefined){const err388 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}if(data119.type === undefined){const err389 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}if(data119.start === undefined){const err390 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}if(data119.end === undefined){const err391 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}if(data119.id !== undefined){let data141 = data119.id;if(typeof data141 === "string"){if(!(formats0(data141))){const err392 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}}else {const err393 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}}if(data119.type !== undefined){let data142 = data119.type;if(Array.isArray(data142)){if(data142.length > 2){const err394 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}if(data142.length < 2){const err395 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}const len23 = data142.length;if(len23 > 0){let data143 = data142[0];if(typeof data143 !== "string"){const err396 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}if("TextPositionSelector" !== data143){const err397 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}}if(len23 > 1){let data144 = data142[1];if(typeof data144 !== "string"){const err398 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}if("crm:E73_Information_Object" !== data144){const err399 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}}}else {const err400 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}}if(data119.start !== undefined){let data145 = data119.start;if((typeof data145 == "number") && (isFinite(data145))){if(data145 < 0 || isNaN(data145)){const err401 = {instancePath:instancePath+"/selector/" + i2+"/start",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}}else {const err402 = {instancePath:instancePath+"/selector/" + i2+"/start",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}}if(data119.end !== undefined){let data146 = data119.end;if((typeof data146 == "number") && (isFinite(data146))){if(data146 < 0 || isNaN(data146)){const err403 = {instancePath:instancePath+"/selector/" + i2+"/end",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}}else {const err404 = {instancePath:instancePath+"/selector/" + i2+"/end",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}}if(data119.refinedBy !== undefined){let data147 = data119.refinedBy;const _errs384 = errors;let valid84 = false;let passing5 = null;const _errs385 = errors;if(data147 && typeof data147 == "object" && !Array.isArray(data147)){if(data147.id === undefined){const err405 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}if(data147.type === undefined){const err406 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}if(data147.start === undefined){const err407 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}if(data147.end === undefined){const err408 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}if(data147.id !== undefined){let data148 = data147.id;if(typeof data148 === "string"){if(!(formats0(data148))){const err409 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}}else {const err410 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}}if(data147.type !== undefined){let data149 = data147.type;if(Array.isArray(data149)){if(data149.length > 2){const err411 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}if(data149.length < 2){const err412 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}const len24 = data149.length;if(len24 > 0){let data150 = data149[0];if(typeof data150 !== "string"){const err413 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}if("TextPositionSelector" !== data150){const err414 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}}if(len24 > 1){let data151 = data149[1];if(typeof data151 !== "string"){const err415 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}if("crm:E73_Information_Object" !== data151){const err416 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}}}else {const err417 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}}if(data147.start !== undefined){let data152 = data147.start;if((typeof data152 == "number") && (isFinite(data152))){if(data152 < 0 || isNaN(data152)){const err418 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}}else {const err419 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}}if(data147.end !== undefined){let data153 = data147.end;if((typeof data153 == "number") && (isFinite(data153))){if(data153 < 0 || isNaN(data153)){const err420 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}}else {const err421 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}}}else {const err422 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}var _valid13 = _errs385 === errors;if(_valid13){valid84 = true;passing5 = 0;}const _errs400 = errors;if(data147 && typeof data147 == "object" && !Array.isArray(data147)){if(data147.id === undefined){const err423 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}if(data147.type === undefined){const err424 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}if(data147.exact === undefined){const err425 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}if(data147.prefix === undefined){const err426 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}if(data147.suffix === undefined){const err427 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}if(data147.id !== undefined){let data154 = data147.id;if(typeof data154 === "string"){if(!(formats0(data154))){const err428 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}}else {const err429 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}}if(data147.type !== undefined){let data155 = data147.type;if(Array.isArray(data155)){if(data155.length > 2){const err430 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}if(data155.length < 2){const err431 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}const len25 = data155.length;if(len25 > 0){let data156 = data155[0];if(typeof data156 !== "string"){const err432 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}if("TextQuoteSelector" !== data156){const err433 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}}if(len25 > 1){let data157 = data155[1];if(typeof data157 !== "string"){const err434 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}if("crm:E33_Linguistic_Object" !== data157){const err435 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}}}else {const err436 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}}if(data147.exact !== undefined){if(typeof data147.exact !== "string"){const err437 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}}if(data147.prefix !== undefined){if(typeof data147.prefix !== "string"){const err438 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}}if(data147.suffix !== undefined){if(typeof data147.suffix !== "string"){const err439 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}}}else {const err440 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}var _valid13 = _errs400 === errors;if(_valid13 && valid84){valid84 = false;passing5 = [passing5, 1];}else {if(_valid13){valid84 = true;passing5 = 1;}}if(!valid84){const err441 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}else {errors = _errs384;if(vErrors !== null){if(_errs384){vErrors.length = _errs384;}else {vErrors = null;}}}if(!(data147 && typeof data147 == "object" && !Array.isArray(data147))){const err442 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}}}else {const err443 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}var _valid11 = _errs368 === errors;if(_valid11 && valid72){valid72 = false;passing3 = [passing3, 1];}else {if(_valid11){valid72 = true;passing3 = 1;}const _errs417 = errors;if(data119 && typeof data119 == "object" && !Array.isArray(data119)){if(data119.id === undefined){const err444 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}if(data119.type === undefined){const err445 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}if(data119.value === undefined){const err446 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}if(data119.id !== undefined){let data161 = data119.id;if(typeof data161 === "string"){if(!(formats0(data161))){const err447 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}}else {const err448 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}}if(data119.type !== undefined){let data162 = data119.type;if(Array.isArray(data162)){if(data162.length > 2){const err449 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}if(data162.length < 2){const err450 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}const len26 = data162.length;if(len26 > 0){let data163 = data162[0];if(typeof data163 !== "string"){const err451 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}if("XPathSelector" !== data163){const err452 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}}if(len26 > 1){let data164 = data162[1];if(typeof data164 !== "string"){const err453 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}if("crm:E73_Information_Object" !== data164){const err454 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}}}else {const err455 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}}if(data119.value !== undefined){if(typeof data119.value !== "string"){const err456 = {instancePath:instancePath+"/selector/" + i2+"/value",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}}if(data119.refinedBy !== undefined){let data166 = data119.refinedBy;const _errs431 = errors;let valid93 = false;const _errs432 = errors;if(data166 && typeof data166 == "object" && !Array.isArray(data166)){if(data166.id === undefined){const err457 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}if(data166.type === undefined){const err458 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}if(data166.start === undefined){const err459 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}if(data166.end === undefined){const err460 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}if(data166.id !== undefined){let data167 = data166.id;if(typeof data167 === "string"){if(!(formats0(data167))){const err461 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}}else {const err462 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}if(data166.type !== undefined){let data168 = data166.type;if(Array.isArray(data168)){if(data168.length > 2){const err463 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}if(data168.length < 2){const err464 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}const len27 = data168.length;if(len27 > 0){let data169 = data168[0];if(typeof data169 !== "string"){const err465 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}if("TextPositionSelector" !== data169){const err466 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}}if(len27 > 1){let data170 = data168[1];if(typeof data170 !== "string"){const err467 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}if("crm:E73_Information_Object" !== data170){const err468 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}}}else {const err469 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}}if(data166.start !== undefined){let data171 = data166.start;if((typeof data171 == "number") && (isFinite(data171))){if(data171 < 0 || isNaN(data171)){const err470 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}}else {const err471 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}}if(data166.end !== undefined){let data172 = data166.end;if((typeof data172 == "number") && (isFinite(data172))){if(data172 < 0 || isNaN(data172)){const err472 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}else {const err473 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}}}else {const err474 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}var _valid14 = _errs432 === errors;valid93 = valid93 || _valid14;if(!valid93){const _errs447 = errors;if(data166 && typeof data166 == "object" && !Array.isArray(data166)){if(data166.id === undefined){const err475 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}if(data166.type === undefined){const err476 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}if(data166.exact === undefined){const err477 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}if(data166.prefix === undefined){const err478 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}if(data166.suffix === undefined){const err479 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}if(data166.id !== undefined){let data173 = data166.id;if(typeof data173 === "string"){if(!(formats0(data173))){const err480 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}}else {const err481 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}}if(data166.type !== undefined){let data174 = data166.type;if(Array.isArray(data174)){if(data174.length > 2){const err482 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}if(data174.length < 2){const err483 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}const len28 = data174.length;if(len28 > 0){let data175 = data174[0];if(typeof data175 !== "string"){const err484 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}if("TextQuoteSelector" !== data175){const err485 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}}if(len28 > 1){let data176 = data174[1];if(typeof data176 !== "string"){const err486 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}if("crm:E33_Linguistic_Object" !== data176){const err487 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}}}else {const err488 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}}if(data166.exact !== undefined){if(typeof data166.exact !== "string"){const err489 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}}if(data166.prefix !== undefined){if(typeof data166.prefix !== "string"){const err490 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}}if(data166.suffix !== undefined){if(typeof data166.suffix !== "string"){const err491 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}}}else {const err492 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}var _valid14 = _errs447 === errors;valid93 = valid93 || _valid14;}if(!valid93){const err493 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}else {errors = _errs431;if(vErrors !== null){if(_errs431){vErrors.length = _errs431;}else {vErrors = null;}}}if(!(data166 && typeof data166 == "object" && !Array.isArray(data166))){const err494 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}}}else {const err495 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}var _valid11 = _errs417 === errors;if(_valid11 && valid72){valid72 = false;passing3 = [passing3, 2];}else {if(_valid11){valid72 = true;passing3 = 2;}const _errs464 = errors;if(data119 && typeof data119 == "object" && !Array.isArray(data119)){if(data119.id === undefined){const err496 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}if(data119.type === undefined){const err497 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}if(data119.startSelector === undefined){const err498 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}if(data119.endSelector === undefined){const err499 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}if(data119.id !== undefined){let data180 = data119.id;if(typeof data180 === "string"){if(!(formats0(data180))){const err500 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}}else {const err501 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}}if(data119.type !== undefined){let data181 = data119.type;if(Array.isArray(data181)){if(data181.length > 2){const err502 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}if(data181.length < 2){const err503 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}const len29 = data181.length;if(len29 > 0){let data182 = data181[0];if(typeof data182 !== "string"){const err504 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}if("RangeSelector" !== data182){const err505 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}}if(len29 > 1){let data183 = data181[1];if(typeof data183 !== "string"){const err506 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}if("crm:E73_Information_Object" !== data183){const err507 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}}}else {const err508 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}if(data119.startSelector !== undefined){let data184 = data119.startSelector;if(data184 && typeof data184 == "object" && !Array.isArray(data184)){if(data184.id === undefined){const err509 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}if(data184.type === undefined){const err510 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}if(data184.value === undefined){const err511 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}if(data184.id !== undefined){let data185 = data184.id;if(typeof data185 === "string"){if(!(formats0(data185))){const err512 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}}else {const err513 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}}if(data184.type !== undefined){let data186 = data184.type;if(Array.isArray(data186)){if(data186.length > 2){const err514 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}if(data186.length < 2){const err515 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}const len30 = data186.length;if(len30 > 0){let data187 = data186[0];if(typeof data187 !== "string"){const err516 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}if("XPathSelector" !== data187){const err517 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}}if(len30 > 1){let data188 = data186[1];if(typeof data188 !== "string"){const err518 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}if("crm:E73_Information_Object" !== data188){const err519 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}}}else {const err520 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}}if(data184.value !== undefined){if(typeof data184.value !== "string"){const err521 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}}}else {const err522 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}}if(data119.endSelector !== undefined){let data190 = data119.endSelector;if(data190 && typeof data190 == "object" && !Array.isArray(data190)){if(data190.id === undefined){const err523 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}if(data190.type === undefined){const err524 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}if(data190.value === undefined){const err525 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}if(data190.id !== undefined){let data191 = data190.id;if(typeof data191 === "string"){if(!(formats0(data191))){const err526 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}}else {const err527 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}}if(data190.type !== undefined){let data192 = data190.type;if(Array.isArray(data192)){if(data192.length > 2){const err528 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}if(data192.length < 2){const err529 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}const len31 = data192.length;if(len31 > 0){let data193 = data192[0];if(typeof data193 !== "string"){const err530 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}if("XPathSelector" !== data193){const err531 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}}if(len31 > 1){let data194 = data192[1];if(typeof data194 !== "string"){const err532 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}if("crm:E73_Information_Object" !== data194){const err533 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}}}else {const err534 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}}if(data190.value !== undefined){if(typeof data190.value !== "string"){const err535 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}}}else {const err536 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}}}else {const err537 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}var _valid11 = _errs464 === errors;if(_valid11 && valid72){valid72 = false;passing3 = [passing3, 3];}else {if(_valid11){valid72 = true;passing3 = 3;}}}}if(!valid72){const err538 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}else {errors = _errs316;if(vErrors !== null){if(_errs316){vErrors.length = _errs316;}else {vErrors = null;}}}if(!(data119 && typeof data119 == "object" && !Array.isArray(data119))){const err539 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}}}else {const err540 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}var _valid6 = _errs312 === errors;valid33 = valid33 || _valid6;}if(!valid33){const err541 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}else {errors = _errs125;if(vErrors !== null){if(_errs125){vErrors.length = _errs125;}else {vErrors = null;}}}}}else {const err542 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}validate12.errors = vErrors;return errors === 0;}const schema34 = {"type":"object","description":"Web Annotation Body","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Body resource."},"type":{"type":"string","const":"Choice"},"entityType":{"oneOf":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"cwrc:place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cwrc:place"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E89_Propositional_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"string","const":"wikidata:Q15831596"}]}]},{"oneOf":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"string","const":"wikidata:Q15831596"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"string","const":"crm:E33_Linguistic_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crmdig:D1_Digital_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"string","const":"crmdig:D1_Digital_Object"},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E5_Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]}]},"label":{"type":"string","minLength":1,"description":"The title or name of a linked resource or named entity."},"items":{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"}}},"required":["id","type","entityType","items"],"additionalProperties":false};const pattern0 = new RegExp("^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$", "u");function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.entityType === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.items === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!(((((key0 === "id") || (key0 === "type")) || (key0 === "entityType")) || (key0 === "label")) || (key0 === "items"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!(formats0(data0))){const err5 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.type !== undefined){let data1 = data.type;if(typeof data1 !== "string"){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if("Choice" !== data1){const err8 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "Choice"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.entityType !== undefined){let data2 = data.entityType;const _errs7 = errors;let valid1 = false;let passing0 = null;const _errs8 = errors;const _errs9 = errors;let valid2 = false;let passing1 = null;const _errs10 = errors;if(typeof data2 !== "string"){const err9 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("crm:E21_Person" !== data2){const err10 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid1 = _errs10 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs12 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err11 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data2.length < 2){const err12 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}const len0 = data2.length;if(len0 > 0){let data3 = data2[0];if(typeof data3 !== "string"){const err13 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("foaf:Person" !== data3){const err14 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(len0 > 1){let data4 = data2[1];if(typeof data4 !== "string"){const err15 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("crm:E89_Propositional_Object" !== data4){const err16 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid1 = _errs12 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}}if(!valid2){const err18 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var _valid0 = _errs8 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs18 = errors;const _errs19 = errors;let valid4 = false;let passing2 = null;const _errs20 = errors;if(typeof data2 !== "string"){const err19 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("cwrc:place" !== data2){const err20 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid2 = _errs20 === errors;if(_valid2){valid4 = true;passing2 = 0;}const _errs22 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err21 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(data2.length < 2){const err22 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}const len1 = data2.length;if(len1 > 0){let data5 = data2[0];if(typeof data5 !== "string"){const err23 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("cwrc:place" !== data5){const err24 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(len1 > 1){let data6 = data2[1];if(typeof data6 !== "string"){const err25 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("crm:E89_Propositional_Object" !== data6){const err26 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid2 = _errs22 === errors;if(_valid2 && valid4){valid4 = false;passing2 = [passing2, 1];}else {if(_valid2){valid4 = true;passing2 = 1;}}if(!valid4){const err28 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {errors = _errs19;if(vErrors !== null){if(_errs19){vErrors.length = _errs19;}else {vErrors = null;}}}var _valid0 = _errs18 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 1];}else {if(_valid0){valid1 = true;passing0 = 1;}const _errs28 = errors;const _errs29 = errors;let valid6 = false;let passing3 = null;const _errs30 = errors;if(typeof data2 !== "string"){const err29 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("crm:E74_Group" !== data2){const err30 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid3 = _errs30 === errors;if(_valid3){valid6 = true;passing3 = 0;}const _errs32 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err31 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data2.length < 2){const err32 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const len2 = data2.length;if(len2 > 0){let data7 = data2[0];if(typeof data7 !== "string"){const err33 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if("foaf:Organization" !== data7){const err34 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(len2 > 1){let data8 = data2[1];if(typeof data8 !== "string"){const err35 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("crm:E89_Propositional_Object" !== data8){const err36 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var _valid3 = _errs32 === errors;if(_valid3 && valid6){valid6 = false;passing3 = [passing3, 1];}else {if(_valid3){valid6 = true;passing3 = 1;}}if(!valid6){const err38 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}var _valid0 = _errs28 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 2];}else {if(_valid0){valid1 = true;passing0 = 2;}const _errs38 = errors;const _errs39 = errors;let valid8 = false;let passing4 = null;const _errs40 = errors;if(typeof data2 !== "string"){const err39 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("crm:E89_Propositional_Object" !== data2){const err40 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var _valid4 = _errs40 === errors;if(_valid4){valid8 = true;passing4 = 0;}const _errs42 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err41 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data2.length < 2){const err42 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}const len3 = data2.length;if(len3 > 0){let data9 = data2[0];if(typeof data9 !== "string"){const err43 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("frbroo:F1" !== data9){const err44 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(len3 > 1){let data10 = data2[1];if(typeof data10 !== "string"){const err45 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if("wikidata:Q15306849" !== data10){const err46 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}else {const err47 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var _valid4 = _errs42 === errors;if(_valid4 && valid8){valid8 = false;passing4 = [passing4, 1];}else {if(_valid4){valid8 = true;passing4 = 1;}}if(!valid8){const err48 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}var _valid0 = _errs38 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 3];}else {if(_valid0){valid1 = true;passing0 = 3;}const _errs48 = errors;const _errs49 = errors;let valid10 = false;let passing5 = null;const _errs50 = errors;if(typeof data2 !== "string"){const err49 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if("crm:E18_Physical_Thing" !== data2){const err50 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var _valid5 = _errs50 === errors;if(_valid5){valid10 = true;passing5 = 0;}const _errs52 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err51 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(data2.length < 2){const err52 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}const len4 = data2.length;if(len4 > 0){let data11 = data2[0];if(typeof data11 !== "string"){const err53 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if("crm:E18_Physical_Thing" !== data11){const err54 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(len4 > 1){let data12 = data2[1];if(typeof data12 !== "string"){const err55 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if("wikidata:Q15831596" !== data12){const err56 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var _valid5 = _errs52 === errors;if(_valid5 && valid10){valid10 = false;passing5 = [passing5, 1];}else {if(_valid5){valid10 = true;passing5 = 1;}}if(!valid10){const err58 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}var _valid0 = _errs48 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 4];}else {if(_valid0){valid1 = true;passing0 = 4;}const _errs58 = errors;const _errs59 = errors;let valid12 = false;let passing6 = null;const _errs60 = errors;if(typeof data2 !== "string"){const err59 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("crm:E28_Conceptual_Object" !== data2){const err60 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var _valid6 = _errs60 === errors;if(_valid6){valid12 = true;passing6 = 0;}const _errs62 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err61 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(data2.length < 2){const err62 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}const len5 = data2.length;if(len5 > 0){let data13 = data2[0];if(typeof data13 !== "string"){const err63 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if("crm:E28_Conceptual_Object" !== data13){const err64 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(len5 > 1){let data14 = data2[1];if(typeof data14 !== "string"){const err65 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if("wikidata:Q15831596" !== data14){const err66 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}else {const err67 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid6 = _errs62 === errors;if(_valid6 && valid12){valid12 = false;passing6 = [passing6, 1];}else {if(_valid6){valid12 = true;passing6 = 1;}}if(!valid12){const err68 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs59;if(vErrors !== null){if(_errs59){vErrors.length = _errs59;}else {vErrors = null;}}}var _valid0 = _errs58 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 5];}else {if(_valid0){valid1 = true;passing0 = 5;}const _errs68 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err69 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data2.length < 2){const err70 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}const len6 = data2.length;if(len6 > 0){let data15 = data2[0];if(typeof data15 !== "string"){const err71 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if("cito:Citation" !== data15){const err72 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(len6 > 1){let data16 = data2[1];if(typeof data16 !== "string"){const err73 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if("crm:E73_Information_Object" !== data16){const err74 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}}else {const err75 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}var _valid0 = _errs68 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 6];}else {if(_valid0){valid1 = true;passing0 = 6;}const _errs74 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err76 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(data2.length < 2){const err77 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}const len7 = data2.length;if(len7 > 0){let data17 = data2[0];if(typeof data17 !== "string"){const err78 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if("xsd:date" !== data17){const err79 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(len7 > 1){let data18 = data2[1];if(typeof data18 !== "string"){const err80 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if("crm:E52_Time-Span" !== data18){const err81 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}else {const err82 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var _valid0 = _errs74 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 7];}else {if(_valid0){valid1 = true;passing0 = 7;}const _errs80 = errors;if(typeof data2 !== "string"){const err83 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("crm:E33_Linguistic_Object" !== data2){const err84 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}var _valid0 = _errs80 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 8];}else {if(_valid0){valid1 = true;passing0 = 8;}const _errs82 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err85 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(data2.length < 2){const err86 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const len8 = data2.length;if(len8 > 0){let data19 = data2[0];if(typeof data19 !== "string"){const err87 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("fabio:Correction" !== data19){const err88 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(len8 > 1){let data20 = data2[1];if(typeof data20 !== "string"){const err89 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if("crm:E33_Linguistic_Object" !== data20){const err90 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var _valid0 = _errs82 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 9];}else {if(_valid0){valid1 = true;passing0 = 9;}const _errs88 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err92 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(data2.length < 2){const err93 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}const len9 = data2.length;if(len9 > 0){let data21 = data2[0];if(typeof data21 !== "string"){const err94 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if("crm:E55_Type" !== data21){const err95 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(len9 > 1){let data22 = data2[1];if(typeof data22 !== "string"){const err96 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if("crmdig:D1_Digital_Object" !== data22){const err97 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}else {const err98 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}var _valid0 = _errs88 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 10];}else {if(_valid0){valid1 = true;passing0 = 10;}const _errs94 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err99 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data2.length < 2){const err100 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const len10 = data2.length;if(len10 > 0){let data23 = data2[0];if(typeof data23 !== "string"){const err101 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if("crm:E55_Type" !== data23){const err102 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(len10 > 1){let data24 = data2[1];if(typeof data24 !== "string"){const err103 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if("crm:E33_Linguistic_Object" !== data24){const err104 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}else {const err105 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var _valid0 = _errs94 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 11];}else {if(_valid0){valid1 = true;passing0 = 11;}const _errs100 = errors;if(typeof data2 !== "string"){const err106 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if("crmdig:D1_Digital_Object" !== data2){const err107 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}var _valid0 = _errs100 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 12];}else {if(_valid0){valid1 = true;passing0 = 12;}const _errs102 = errors;const _errs103 = errors;let valid19 = false;let passing7 = null;const _errs104 = errors;if(typeof data2 !== "string"){const err108 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if("crm:E5_Event" !== data2){const err109 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}var _valid7 = _errs104 === errors;if(_valid7){valid19 = true;passing7 = 0;}const _errs106 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err110 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data2.length < 2){const err111 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const len11 = data2.length;if(len11 > 0){let data25 = data2[0];if(typeof data25 !== "string"){const err112 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if("crm:E5_Event" !== data25){const err113 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(len11 > 1){let data26 = data2[1];if(typeof data26 !== "string"){const err114 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if("crm:E89_Propositional_Object" !== data26){const err115 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}else {const err116 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}var _valid7 = _errs106 === errors;if(_valid7 && valid19){valid19 = false;passing7 = [passing7, 1];}else {if(_valid7){valid19 = true;passing7 = 1;}}if(!valid19){const err117 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf",keyword:"oneOf",params:{passingSchemas: passing7},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {errors = _errs103;if(vErrors !== null){if(_errs103){vErrors.length = _errs103;}else {vErrors = null;}}}var _valid0 = _errs102 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 13];}else {if(_valid0){valid1 = true;passing0 = 13;}}}}}}}}}}}}}}if(!valid1){const err118 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}}if(data.label !== undefined){let data27 = data.label;if(typeof data27 === "string"){if(func3(data27) < 1){const err119 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data.items !== undefined){let data28 = data.items;if(Array.isArray(data28)){const len12 = data28.length;for(let i0=0; i0<len12; i0++){let data29 = data28[i0];const _errs119 = errors;let valid24 = false;const _errs120 = errors;const _errs121 = errors;let valid25 = true;const _errs122 = errors;if(errors === _errs122){if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.entityType !== undefined){let data30 = data29.entityType;const _errs125 = errors;let valid27 = false;const _errs126 = errors;if("crm:E33_Linguistic_Object" !== data30){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var _valid10 = _errs126 === errors;valid27 = valid27 || _valid10;if(!valid27){const _errs127 = errors;if(errors === _errs127){if(Array.isArray(data30)){if(data30.length > 2){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {if(data30.length < 2){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}else {const len13 = data30.length;if(len13 > 0){const _errs129 = errors;if("xsd:date" !== data30[0]){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}var valid28 = _errs129 === errors;}if(valid28){if(len13 > 1){const _errs130 = errors;if("crm:E52_Time-Span" !== data30[1]){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var valid28 = _errs130 === errors;}}}}}else {const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}var _valid10 = _errs127 === errors;valid27 = valid27 || _valid10;if(!valid27){const _errs131 = errors;if(errors === _errs131){if(Array.isArray(data30)){if(data30.length > 2){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {if(data30.length < 2){const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {const len14 = data30.length;if(len14 > 0){const _errs133 = errors;if("fabio:Correction" !== data30[0]){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}var valid29 = _errs133 === errors;}if(valid29){if(len14 > 1){const _errs134 = errors;if("crm:E33_Linguistic_Object" !== data30[1]){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}var valid29 = _errs134 === errors;}}}}}else {const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}var _valid10 = _errs131 === errors;valid27 = valid27 || _valid10;if(!valid27){const _errs135 = errors;if(errors === _errs135){if(Array.isArray(data30)){if(data30.length > 2){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}else {if(data30.length < 2){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {const len15 = data30.length;if(len15 > 0){const _errs137 = errors;if("crm:E55_Type" !== data30[0]){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var valid30 = _errs137 === errors;}if(valid30){if(len15 > 1){const _errs138 = errors;if("crm:E33_Linguistic_Object" !== data30[1]){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}var valid30 = _errs138 === errors;}}}}}else {const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}var _valid10 = _errs135 === errors;valid27 = valid27 || _valid10;}}}if(!valid27){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}else {errors = _errs125;if(vErrors !== null){if(_errs125){vErrors.length = _errs125;}else {vErrors = null;}}}}}else {const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var _valid9 = _errs122 === errors;errors = _errs121;if(vErrors !== null){if(_errs121){vErrors.length = _errs121;}else {vErrors = null;}}if(_valid9){const _errs139 = errors;const _errs141 = errors;let valid31 = true;const _errs142 = errors;if(errors === _errs142){if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.entityType !== undefined){let data37 = data29.entityType;const _errs144 = errors;if(errors === _errs144){if(Array.isArray(data37)){if(data37.length > 2){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}else {if(data37.length < 2){const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}else {const len16 = data37.length;if(len16 > 0){const _errs146 = errors;if("xsd:date" !== data37[0]){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}var valid33 = _errs146 === errors;}if(valid33){if(len16 > 1){const _errs147 = errors;if("crm:E52_Time-Span" !== data37[1]){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}var valid33 = _errs147 === errors;}}}}}else {const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}}else {const err144 = {};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}var _valid11 = _errs142 === errors;errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}let ifClause0;if(_valid11){const _errs148 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.value !== undefined){let data40 = data29.value;if(typeof data40 === "string"){if(!pattern0.test(data40)){const err145 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}else {const err146 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}var _valid11 = _errs148 === errors;valid31 = _valid11;ifClause0 = "then";}else {const _errs152 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.value !== undefined){if(typeof data29.value !== "string"){const err148 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}var _valid11 = _errs152 === errors;valid31 = _valid11;ifClause0 = "else";}if(!valid31){const err150 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.type === undefined){const err151 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(data29.value === undefined){const err152 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(data29.type !== undefined){let data42 = data29.type;if(typeof data42 !== "string"){const err153 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if("TextualBody" !== data42){const err154 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}else {const err155 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var _valid9 = _errs139 === errors;valid25 = _valid9;}if(!valid25){const err156 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}var _valid8 = _errs120 === errors;valid24 = valid24 || _valid8;if(!valid24){const err157 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.id === undefined){const err158 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data29.entityType === undefined){const err159 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}for(const key1 in data29){if(!((((((((key1 === "id") || (key1 === "type")) || (key1 === "entityType")) || (key1 === "additionalType")) || (key1 === "value")) || (key1 === "label")) || (key1 === "modeExistence")) || (key1 === "description"))){const err160 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data29.id !== undefined){let data43 = data29.id;if(typeof data43 === "string"){if(!(formats0(data43))){const err161 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}else {const err162 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data29.type !== undefined){let data44 = data29.type;if(typeof data44 !== "string"){const err163 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if("TextualBody" !== data44){const err164 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data29.entityType !== undefined){let data45 = data29.entityType;const _errs164 = errors;let valid38 = false;let passing8 = null;const _errs165 = errors;const _errs166 = errors;let valid39 = false;let passing9 = null;const _errs167 = errors;if(typeof data45 !== "string"){const err165 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if("crm:E21_Person" !== data45){const err166 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}var _valid13 = _errs167 === errors;if(_valid13){valid39 = true;passing9 = 0;}const _errs169 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err167 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(data45.length < 2){const err168 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}const len17 = data45.length;if(len17 > 0){let data46 = data45[0];if(typeof data46 !== "string"){const err169 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if("foaf:Person" !== data46){const err170 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}if(len17 > 1){let data47 = data45[1];if(typeof data47 !== "string"){const err171 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if("crm:E89_Propositional_Object" !== data47){const err172 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}}else {const err173 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}var _valid13 = _errs169 === errors;if(_valid13 && valid39){valid39 = false;passing9 = [passing9, 1];}else {if(_valid13){valid39 = true;passing9 = 1;}}if(!valid39){const err174 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing9},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}}var _valid12 = _errs165 === errors;if(_valid12){valid38 = true;passing8 = 0;}const _errs175 = errors;const _errs176 = errors;let valid41 = false;let passing10 = null;const _errs177 = errors;if(typeof data45 !== "string"){const err175 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}if("cwrc:place" !== data45){const err176 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}var _valid14 = _errs177 === errors;if(_valid14){valid41 = true;passing10 = 0;}const _errs179 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err177 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if(data45.length < 2){const err178 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}const len18 = data45.length;if(len18 > 0){let data48 = data45[0];if(typeof data48 !== "string"){const err179 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if("cwrc:place" !== data48){const err180 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(len18 > 1){let data49 = data45[1];if(typeof data49 !== "string"){const err181 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if("crm:E89_Propositional_Object" !== data49){const err182 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}else {const err183 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}var _valid14 = _errs179 === errors;if(_valid14 && valid41){valid41 = false;passing10 = [passing10, 1];}else {if(_valid14){valid41 = true;passing10 = 1;}}if(!valid41){const err184 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing10},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}else {errors = _errs176;if(vErrors !== null){if(_errs176){vErrors.length = _errs176;}else {vErrors = null;}}}var _valid12 = _errs175 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 1];}else {if(_valid12){valid38 = true;passing8 = 1;}const _errs185 = errors;const _errs186 = errors;let valid43 = false;let passing11 = null;const _errs187 = errors;if(typeof data45 !== "string"){const err185 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if("crm:E74_Group" !== data45){const err186 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}var _valid15 = _errs187 === errors;if(_valid15){valid43 = true;passing11 = 0;}const _errs189 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err187 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(data45.length < 2){const err188 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}const len19 = data45.length;if(len19 > 0){let data50 = data45[0];if(typeof data50 !== "string"){const err189 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if("foaf:Organization" !== data50){const err190 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(len19 > 1){let data51 = data45[1];if(typeof data51 !== "string"){const err191 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if("crm:E89_Propositional_Object" !== data51){const err192 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}}else {const err193 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}var _valid15 = _errs189 === errors;if(_valid15 && valid43){valid43 = false;passing11 = [passing11, 1];}else {if(_valid15){valid43 = true;passing11 = 1;}}if(!valid43){const err194 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing11},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}else {errors = _errs186;if(vErrors !== null){if(_errs186){vErrors.length = _errs186;}else {vErrors = null;}}}var _valid12 = _errs185 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 2];}else {if(_valid12){valid38 = true;passing8 = 2;}const _errs195 = errors;const _errs196 = errors;let valid45 = false;let passing12 = null;const _errs197 = errors;if(typeof data45 !== "string"){const err195 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if("crm:E89_Propositional_Object" !== data45){const err196 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}var _valid16 = _errs197 === errors;if(_valid16){valid45 = true;passing12 = 0;}const _errs199 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err197 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(data45.length < 2){const err198 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}const len20 = data45.length;if(len20 > 0){let data52 = data45[0];if(typeof data52 !== "string"){const err199 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if("frbroo:F1" !== data52){const err200 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(len20 > 1){let data53 = data45[1];if(typeof data53 !== "string"){const err201 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}if("wikidata:Q15306849" !== data53){const err202 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}}else {const err203 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}var _valid16 = _errs199 === errors;if(_valid16 && valid45){valid45 = false;passing12 = [passing12, 1];}else {if(_valid16){valid45 = true;passing12 = 1;}}if(!valid45){const err204 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing12},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}else {errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}}var _valid12 = _errs195 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 3];}else {if(_valid12){valid38 = true;passing8 = 3;}const _errs205 = errors;const _errs206 = errors;let valid47 = false;let passing13 = null;const _errs207 = errors;if(typeof data45 !== "string"){const err205 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if("crm:E18_Physical_Thing" !== data45){const err206 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}var _valid17 = _errs207 === errors;if(_valid17){valid47 = true;passing13 = 0;}const _errs209 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err207 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(data45.length < 2){const err208 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}const len21 = data45.length;if(len21 > 0){let data54 = data45[0];if(typeof data54 !== "string"){const err209 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}if("crm:E18_Physical_Thing" !== data54){const err210 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(len21 > 1){let data55 = data45[1];if(typeof data55 !== "string"){const err211 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if("wikidata:Q15831596" !== data55){const err212 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}}else {const err213 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}var _valid17 = _errs209 === errors;if(_valid17 && valid47){valid47 = false;passing13 = [passing13, 1];}else {if(_valid17){valid47 = true;passing13 = 1;}}if(!valid47){const err214 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing13},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}else {errors = _errs206;if(vErrors !== null){if(_errs206){vErrors.length = _errs206;}else {vErrors = null;}}}var _valid12 = _errs205 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 4];}else {if(_valid12){valid38 = true;passing8 = 4;}const _errs215 = errors;const _errs216 = errors;let valid49 = false;let passing14 = null;const _errs217 = errors;if(typeof data45 !== "string"){const err215 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if("crm:E28_Conceptual_Object" !== data45){const err216 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}var _valid18 = _errs217 === errors;if(_valid18){valid49 = true;passing14 = 0;}const _errs219 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err217 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}if(data45.length < 2){const err218 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}const len22 = data45.length;if(len22 > 0){let data56 = data45[0];if(typeof data56 !== "string"){const err219 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}if("crm:E28_Conceptual_Object" !== data56){const err220 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(len22 > 1){let data57 = data45[1];if(typeof data57 !== "string"){const err221 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}if("wikidata:Q15831596" !== data57){const err222 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}else {const err223 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}var _valid18 = _errs219 === errors;if(_valid18 && valid49){valid49 = false;passing14 = [passing14, 1];}else {if(_valid18){valid49 = true;passing14 = 1;}}if(!valid49){const err224 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing14},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {errors = _errs216;if(vErrors !== null){if(_errs216){vErrors.length = _errs216;}else {vErrors = null;}}}var _valid12 = _errs215 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 5];}else {if(_valid12){valid38 = true;passing8 = 5;}const _errs225 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err225 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}if(data45.length < 2){const err226 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}const len23 = data45.length;if(len23 > 0){let data58 = data45[0];if(typeof data58 !== "string"){const err227 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}if("cito:Citation" !== data58){const err228 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(len23 > 1){let data59 = data45[1];if(typeof data59 !== "string"){const err229 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}if("crm:E73_Information_Object" !== data59){const err230 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}else {const err231 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var _valid12 = _errs225 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 6];}else {if(_valid12){valid38 = true;passing8 = 6;}const _errs231 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err232 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}if(data45.length < 2){const err233 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}const len24 = data45.length;if(len24 > 0){let data60 = data45[0];if(typeof data60 !== "string"){const err234 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}if("xsd:date" !== data60){const err235 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}if(len24 > 1){let data61 = data45[1];if(typeof data61 !== "string"){const err236 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}if("crm:E52_Time-Span" !== data61){const err237 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}}else {const err238 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}var _valid12 = _errs231 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 7];}else {if(_valid12){valid38 = true;passing8 = 7;}const _errs237 = errors;if(typeof data45 !== "string"){const err239 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if("crm:E33_Linguistic_Object" !== data45){const err240 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}var _valid12 = _errs237 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 8];}else {if(_valid12){valid38 = true;passing8 = 8;}const _errs239 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err241 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}if(data45.length < 2){const err242 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}const len25 = data45.length;if(len25 > 0){let data62 = data45[0];if(typeof data62 !== "string"){const err243 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}if("fabio:Correction" !== data62){const err244 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}if(len25 > 1){let data63 = data45[1];if(typeof data63 !== "string"){const err245 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if("crm:E33_Linguistic_Object" !== data63){const err246 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}}else {const err247 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}var _valid12 = _errs239 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 9];}else {if(_valid12){valid38 = true;passing8 = 9;}const _errs245 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err248 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data45.length < 2){const err249 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}const len26 = data45.length;if(len26 > 0){let data64 = data45[0];if(typeof data64 !== "string"){const err250 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}if("crm:E55_Type" !== data64){const err251 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}if(len26 > 1){let data65 = data45[1];if(typeof data65 !== "string"){const err252 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}if("crmdig:D1_Digital_Object" !== data65){const err253 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}}else {const err254 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}var _valid12 = _errs245 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 10];}else {if(_valid12){valid38 = true;passing8 = 10;}const _errs251 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err255 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}if(data45.length < 2){const err256 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}const len27 = data45.length;if(len27 > 0){let data66 = data45[0];if(typeof data66 !== "string"){const err257 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}if("crm:E55_Type" !== data66){const err258 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}if(len27 > 1){let data67 = data45[1];if(typeof data67 !== "string"){const err259 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}if("crm:E33_Linguistic_Object" !== data67){const err260 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}}else {const err261 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}var _valid12 = _errs251 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 11];}else {if(_valid12){valid38 = true;passing8 = 11;}const _errs257 = errors;if(typeof data45 !== "string"){const err262 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if("crmdig:D1_Digital_Object" !== data45){const err263 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}var _valid12 = _errs257 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 12];}else {if(_valid12){valid38 = true;passing8 = 12;}const _errs259 = errors;const _errs260 = errors;let valid56 = false;let passing15 = null;const _errs261 = errors;if(typeof data45 !== "string"){const err264 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}if("crm:E5_Event" !== data45){const err265 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}var _valid19 = _errs261 === errors;if(_valid19){valid56 = true;passing15 = 0;}const _errs263 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err266 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if(data45.length < 2){const err267 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}const len28 = data45.length;if(len28 > 0){let data68 = data45[0];if(typeof data68 !== "string"){const err268 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}if("crm:E5_Event" !== data68){const err269 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}}if(len28 > 1){let data69 = data45[1];if(typeof data69 !== "string"){const err270 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}if("crm:E89_Propositional_Object" !== data69){const err271 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}}else {const err272 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}var _valid19 = _errs263 === errors;if(_valid19 && valid56){valid56 = false;passing15 = [passing15, 1];}else {if(_valid19){valid56 = true;passing15 = 1;}}if(!valid56){const err273 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf",keyword:"oneOf",params:{passingSchemas: passing15},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}else {errors = _errs260;if(vErrors !== null){if(_errs260){vErrors.length = _errs260;}else {vErrors = null;}}}var _valid12 = _errs259 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 13];}else {if(_valid12){valid38 = true;passing8 = 13;}}}}}}}}}}}}}}if(!valid38){const err274 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing8},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}}if(data29.additionalType !== undefined){let data70 = data29.additionalType;const _errs270 = errors;let valid58 = false;const _errs271 = errors;if(typeof data70 !== "string"){const err275 = {instancePath:instancePath+"/items/" + i0+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}var _valid20 = _errs271 === errors;valid58 = valid58 || _valid20;if(!valid58){const _errs273 = errors;if(Array.isArray(data70)){const len29 = data70.length;for(let i1=0; i1<len29; i1++){if(typeof data70[i1] !== "string"){const err276 = {instancePath:instancePath+"/items/" + i0+"/additionalType/" + i1,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}}else {const err277 = {instancePath:instancePath+"/items/" + i0+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}var _valid20 = _errs273 === errors;valid58 = valid58 || _valid20;}if(!valid58){const err278 = {instancePath:instancePath+"/items/" + i0+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}else {errors = _errs270;if(vErrors !== null){if(_errs270){vErrors.length = _errs270;}else {vErrors = null;}}}}if(data29.value !== undefined){if(typeof data29.value !== "string"){const err279 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}if(data29.label !== undefined){let data73 = data29.label;if(typeof data73 === "string"){if(func3(data73) < 1){const err280 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}else {const err281 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}if(data29.modeExistence !== undefined){let data74 = data29.modeExistence;const _errs282 = errors;let valid61 = false;let passing16 = null;const _errs283 = errors;if(typeof data74 !== "string"){const err282 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}if("edit:modeReal" !== data74){const err283 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:modeReal"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var _valid21 = _errs283 === errors;if(_valid21){valid61 = true;passing16 = 0;}const _errs285 = errors;if(typeof data74 !== "string"){const err284 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if("edit:modeFictional" !== data74){const err285 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:modeFictional"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}var _valid21 = _errs285 === errors;if(_valid21 && valid61){valid61 = false;passing16 = [passing16, 1];}else {if(_valid21){valid61 = true;passing16 = 1;}const _errs287 = errors;if(typeof data74 !== "string"){const err286 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if("edit:modeIdentifiable" !== data74){const err287 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:modeIdentifiable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}var _valid21 = _errs287 === errors;if(_valid21 && valid61){valid61 = false;passing16 = [passing16, 2];}else {if(_valid21){valid61 = true;passing16 = 2;}}}if(!valid61){const err288 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf",keyword:"oneOf",params:{passingSchemas: passing16},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}else {errors = _errs282;if(vErrors !== null){if(_errs282){vErrors.length = _errs282;}else {vErrors = null;}}}}if(data29.description !== undefined){if(typeof data29.description !== "string"){const err289 = {instancePath:instancePath+"/items/" + i0+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}}else {const err290 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}}else {const err291 = {instancePath:instancePath+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}}else {const err292 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}validate14.errors = vErrors;return errors === 0;}function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://wa.lincsproject.ca/v1/schema.jsonld" */;let vErrors = null;let errors = 0;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(errors === _errs3){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data0 = data.body;const _errs5 = errors;if(errors === _errs5){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.entityType !== undefined){let data1 = data0.entityType;const _errs8 = errors;let valid4 = false;let passing0 = null;const _errs9 = errors;const _errs10 = errors;let valid5 = false;let passing1 = null;const _errs11 = errors;if(typeof data1 !== "string"){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if("crm:E21_Person" !== data1){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid2 = _errs11 === errors;if(_valid2){valid5 = true;passing1 = 0;}const _errs13 = errors;if(errors === _errs13){if(Array.isArray(data1)){if(data1.length > 2){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {if(data1.length < 2){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {const len0 = data1.length;if(len0 > 0){let data2 = data1[0];const _errs15 = errors;if(typeof data2 !== "string"){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("foaf:Person" !== data2){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid6 = _errs15 === errors;}if(valid6){if(len0 > 1){let data3 = data1[1];const _errs17 = errors;if(typeof data3 !== "string"){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("crm:E89_Propositional_Object" !== data3){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid6 = _errs17 === errors;}}}}}else {const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid2 = _errs13 === errors;if(_valid2 && valid5){valid5 = false;passing1 = [passing1, 1];}else {if(_valid2){valid5 = true;passing1 = 1;}}if(!valid5){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}var _valid1 = _errs9 === errors;if(_valid1){valid4 = true;passing0 = 0;}const _errs19 = errors;const _errs20 = errors;let valid7 = false;let passing2 = null;const _errs21 = errors;if(typeof data1 !== "string"){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("cwrc:place" !== data1){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid3 = _errs21 === errors;if(_valid3){valid7 = true;passing2 = 0;}const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data1)){if(data1.length > 2){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {if(data1.length < 2){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {const len1 = data1.length;if(len1 > 0){let data4 = data1[0];const _errs25 = errors;if(typeof data4 !== "string"){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if("cwrc:place" !== data4){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid8 = _errs25 === errors;}if(valid8){if(len1 > 1){let data5 = data1[1];const _errs27 = errors;if(typeof data5 !== "string"){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("crm:E89_Propositional_Object" !== data5){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid8 = _errs27 === errors;}}}}}else {const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid3 = _errs23 === errors;if(_valid3 && valid7){valid7 = false;passing2 = [passing2, 1];}else {if(_valid3){valid7 = true;passing2 = 1;}}if(!valid7){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var _valid1 = _errs19 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 1];}else {if(_valid1){valid4 = true;passing0 = 1;}const _errs29 = errors;const _errs30 = errors;let valid9 = false;let passing3 = null;const _errs31 = errors;if(typeof data1 !== "string"){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("crm:E74_Group" !== data1){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid4 = _errs31 === errors;if(_valid4){valid9 = true;passing3 = 0;}const _errs33 = errors;if(errors === _errs33){if(Array.isArray(data1)){if(data1.length > 2){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(data1.length < 2){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {const len2 = data1.length;if(len2 > 0){let data6 = data1[0];const _errs35 = errors;if(typeof data6 !== "string"){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("foaf:Organization" !== data6){const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid10 = _errs35 === errors;}if(valid10){if(len2 > 1){let data7 = data1[1];const _errs37 = errors;if(typeof data7 !== "string"){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("crm:E89_Propositional_Object" !== data7){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid10 = _errs37 === errors;}}}}}else {const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var _valid4 = _errs33 === errors;if(_valid4 && valid9){valid9 = false;passing3 = [passing3, 1];}else {if(_valid4){valid9 = true;passing3 = 1;}}if(!valid9){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs30;if(vErrors !== null){if(_errs30){vErrors.length = _errs30;}else {vErrors = null;}}}var _valid1 = _errs29 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 2];}else {if(_valid1){valid4 = true;passing0 = 2;}const _errs39 = errors;const _errs40 = errors;let valid11 = false;let passing4 = null;const _errs41 = errors;if(typeof data1 !== "string"){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("crm:E89_Propositional_Object" !== data1){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid5 = _errs41 === errors;if(_valid5){valid11 = true;passing4 = 0;}const _errs43 = errors;if(errors === _errs43){if(Array.isArray(data1)){if(data1.length > 2){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data1.length < 2){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const len3 = data1.length;if(len3 > 0){let data8 = data1[0];const _errs45 = errors;if(typeof data8 !== "string"){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("frbroo:F1" !== data8){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid12 = _errs45 === errors;}if(valid12){if(len3 > 1){let data9 = data1[1];const _errs47 = errors;if(typeof data9 !== "string"){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("wikidata:Q15306849" !== data9){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid12 = _errs47 === errors;}}}}}else {const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}var _valid5 = _errs43 === errors;if(_valid5 && valid11){valid11 = false;passing4 = [passing4, 1];}else {if(_valid5){valid11 = true;passing4 = 1;}}if(!valid11){const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs40;if(vErrors !== null){if(_errs40){vErrors.length = _errs40;}else {vErrors = null;}}}var _valid1 = _errs39 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 3];}else {if(_valid1){valid4 = true;passing0 = 3;}const _errs49 = errors;const _errs50 = errors;let valid13 = false;let passing5 = null;const _errs51 = errors;if(typeof data1 !== "string"){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("crm:E18_Physical_Thing" !== data1){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var _valid6 = _errs51 === errors;if(_valid6){valid13 = true;passing5 = 0;}const _errs53 = errors;if(errors === _errs53){if(Array.isArray(data1)){if(data1.length > 2){const err42 = {};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data1.length < 2){const err43 = {};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}else {const len4 = data1.length;if(len4 > 0){let data10 = data1[0];const _errs55 = errors;if(typeof data10 !== "string"){const err44 = {};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if("crm:E18_Physical_Thing" !== data10){const err45 = {};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid14 = _errs55 === errors;}if(valid14){if(len4 > 1){let data11 = data1[1];const _errs57 = errors;if(typeof data11 !== "string"){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("wikidata:Q15831596" !== data11){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid14 = _errs57 === errors;}}}}}else {const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}var _valid6 = _errs53 === errors;if(_valid6 && valid13){valid13 = false;passing5 = [passing5, 1];}else {if(_valid6){valid13 = true;passing5 = 1;}}if(!valid13){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}var _valid1 = _errs49 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 4];}else {if(_valid1){valid4 = true;passing0 = 4;}const _errs59 = errors;const _errs60 = errors;let valid15 = false;let passing6 = null;const _errs61 = errors;if(typeof data1 !== "string"){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("crm:E28_Conceptual_Object" !== data1){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var _valid7 = _errs61 === errors;if(_valid7){valid15 = true;passing6 = 0;}const _errs63 = errors;if(errors === _errs63){if(Array.isArray(data1)){if(data1.length > 2){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data1.length < 2){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {const len5 = data1.length;if(len5 > 0){let data12 = data1[0];const _errs65 = errors;if(typeof data12 !== "string"){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("crm:E28_Conceptual_Object" !== data12){const err55 = {};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid16 = _errs65 === errors;}if(valid16){if(len5 > 1){let data13 = data1[1];const _errs67 = errors;if(typeof data13 !== "string"){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if("wikidata:Q15831596" !== data13){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid16 = _errs67 === errors;}}}}}else {const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}var _valid7 = _errs63 === errors;if(_valid7 && valid15){valid15 = false;passing6 = [passing6, 1];}else {if(_valid7){valid15 = true;passing6 = 1;}}if(!valid15){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}else {errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}}var _valid1 = _errs59 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 5];}else {if(_valid1){valid4 = true;passing0 = 5;}const _errs69 = errors;if(errors === _errs69){if(Array.isArray(data1)){if(data1.length > 2){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data1.length < 2){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {const len6 = data1.length;if(len6 > 0){let data14 = data1[0];const _errs71 = errors;if(typeof data14 !== "string"){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if("xsd:date" !== data14){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}var valid17 = _errs71 === errors;}if(valid17){if(len6 > 1){let data15 = data1[1];const _errs73 = errors;if(typeof data15 !== "string"){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if("crm:E52_Time-Span" !== data15){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var valid17 = _errs73 === errors;}}}}}else {const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}var _valid1 = _errs69 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 6];}else {if(_valid1){valid4 = true;passing0 = 6;}const _errs75 = errors;const _errs76 = errors;let valid18 = false;let passing7 = null;const _errs77 = errors;if(typeof data1 !== "string"){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if("crm:E5_Event" !== data1){const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}var _valid8 = _errs77 === errors;if(_valid8){valid18 = true;passing7 = 0;}const _errs79 = errors;if(errors === _errs79){if(Array.isArray(data1)){if(data1.length > 2){const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {if(data1.length < 2){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {const len7 = data1.length;if(len7 > 0){let data16 = data1[0];const _errs81 = errors;if(typeof data16 !== "string"){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if("crm:E5_Event" !== data16){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}var valid19 = _errs81 === errors;}if(valid19){if(len7 > 1){let data17 = data1[1];const _errs83 = errors;if(typeof data17 !== "string"){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if("crm:E89_Propositional_Object" !== data17){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var valid19 = _errs83 === errors;}}}}}else {const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}var _valid8 = _errs79 === errors;if(_valid8 && valid18){valid18 = false;passing7 = [passing7, 1];}else {if(_valid8){valid18 = true;passing7 = 1;}}if(!valid18){const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}else {errors = _errs76;if(vErrors !== null){if(_errs76){vErrors.length = _errs76;}else {vErrors = null;}}}var _valid1 = _errs75 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 7];}else {if(_valid1){valid4 = true;passing0 = 7;}}}}}}}}if(!valid4){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}}}else {const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}}else {const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs85 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data18 = data.motivation;if(typeof data18 !== "string"){const err80 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if("oa:identifying" !== data18){const err81 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:identifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}else {const err82 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var _valid0 = _errs85 === errors;valid1 = _valid0;ifClause0 = "then";}else {const _errs89 = errors;const _errs90 = errors;let valid21 = true;const _errs91 = errors;if(errors === _errs91){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data19 = data.body;const _errs93 = errors;if(errors === _errs93){if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.entityType !== undefined){let data20 = data19.entityType;if(typeof data20 !== "string"){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("crm:E33_Linguistic_Object" !== data20){const err84 = {};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}}else {const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}var _valid9 = _errs91 === errors;errors = _errs90;if(vErrors !== null){if(_errs90){vErrors.length = _errs90;}else {vErrors = null;}}let ifClause1;if(_valid9){const _errs97 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data21 = data.motivation;if(typeof data21 !== "string"){const err87 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("oa:describing" !== data21){const err88 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:describing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}else {const err89 = {instancePath,schemaPath:"#/allOf/0/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}var _valid9 = _errs97 === errors;valid21 = _valid9;ifClause1 = "then";}else {const _errs101 = errors;const _errs102 = errors;let valid25 = true;const _errs103 = errors;if(errors === _errs103){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data22 = data.body;const _errs105 = errors;if(errors === _errs105){if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(data22.entityType !== undefined){let data23 = data22.entityType;const _errs107 = errors;if(errors === _errs107){if(Array.isArray(data23)){if(data23.length > 2){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}else {if(data23.length < 2){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {const len8 = data23.length;if(len8 > 0){let data24 = data23[0];const _errs109 = errors;if(typeof data24 !== "string"){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if("fabio:Correction" !== data24){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}var valid28 = _errs109 === errors;}if(valid28){if(len8 > 1){let data25 = data23[1];const _errs111 = errors;if(typeof data25 !== "string"){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if("crm:E33_Linguistic_Object" !== data25){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}var valid28 = _errs111 === errors;}}}}}else {const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}}else {const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}}else {const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}var _valid10 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}let ifClause2;if(_valid10){const _errs113 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data26 = data.motivation;if(typeof data26 !== "string"){const err99 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if("correcting" !== data26){const err100 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "correcting"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}else {const err101 = {instancePath,schemaPath:"#/allOf/0/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var _valid10 = _errs113 === errors;valid25 = _valid10;ifClause2 = "then";}else {const _errs117 = errors;const _errs118 = errors;let valid30 = true;const _errs119 = errors;if(errors === _errs119){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data27 = data.body;const _errs121 = errors;if(errors === _errs121){if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.entityType !== undefined){let data28 = data27.entityType;const _errs123 = errors;if(errors === _errs123){if(Array.isArray(data28)){if(data28.length > 2){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {if(data28.length < 2){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}else {const len9 = data28.length;if(len9 > 0){let data29 = data28[0];const _errs125 = errors;if(typeof data29 !== "string"){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if("crm:E55_Type" !== data29){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var valid33 = _errs125 === errors;}if(valid33){if(len9 > 1){let data30 = data28[1];const _errs127 = errors;if(typeof data30 !== "string"){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if("crm:E33_Linguistic_Object" !== data30){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}var valid33 = _errs127 === errors;}}}}}else {const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}else {const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}}}else {const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}var _valid11 = _errs119 === errors;errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}let ifClause3;if(_valid11){const _errs129 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data31 = data.motivation;if(typeof data31 !== "string"){const err111 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if("oa:tagging" !== data31){const err112 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:tagging"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}else {const err113 = {instancePath,schemaPath:"#/allOf/0/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}var _valid11 = _errs129 === errors;valid30 = _valid11;ifClause3 = "then";}else {const _errs133 = errors;const _errs134 = errors;let valid35 = true;const _errs135 = errors;if(errors === _errs135){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data32 = data.body;const _errs137 = errors;if(errors === _errs137){if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.entityType !== undefined){let data33 = data32.entityType;const _errs139 = errors;if(errors === _errs139){if(Array.isArray(data33)){if(data33.length > 2){const err114 = {};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {if(data33.length < 2){const err115 = {};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}else {const len10 = data33.length;if(len10 > 0){let data34 = data33[0];const _errs141 = errors;if(typeof data34 !== "string"){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}if("crm:E55_Type" !== data34){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}var valid38 = _errs141 === errors;}if(valid38){if(len10 > 1){let data35 = data33[1];const _errs143 = errors;if(typeof data35 !== "string"){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if("crmdig:D1_Digital_Object" !== data35){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}var valid38 = _errs143 === errors;}}}}}else {const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}}}else {const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}}}else {const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}var _valid12 = _errs135 === errors;errors = _errs134;if(vErrors !== null){if(_errs134){vErrors.length = _errs134;}else {vErrors = null;}}let ifClause4;if(_valid12){const _errs145 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data36 = data.motivation;if(typeof data36 !== "string"){const err123 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if("oa:classifying" !== data36){const err124 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:classifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}else {const err125 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var _valid12 = _errs145 === errors;valid35 = _valid12;ifClause4 = "then";}else {const _errs149 = errors;const _errs150 = errors;let valid40 = true;const _errs151 = errors;if(errors === _errs151){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data37 = data.body;const _errs153 = errors;if(errors === _errs153){if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.entityType !== undefined){let data38 = data37.entityType;if(typeof data38 !== "string"){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if("crmdig:D1_Digital_Object" !== data38){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}}else {const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}}else {const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}var _valid13 = _errs151 === errors;errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}let ifClause5;if(_valid13){const _errs157 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data39 = data.motivation;if(typeof data39 !== "string"){const err130 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if("oa:linking" !== data39){const err131 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:linking"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}}else {const err132 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}var _valid13 = _errs157 === errors;valid40 = _valid13;ifClause5 = "then";}else {const _errs161 = errors;const _errs162 = errors;let valid44 = true;const _errs163 = errors;if(errors === _errs163){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data40 = data.body;const _errs165 = errors;if(errors === _errs165){if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.entityType !== undefined){let data41 = data40.entityType;const _errs167 = errors;if(errors === _errs167){if(Array.isArray(data41)){if(data41.length > 2){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {if(data41.length < 2){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {const len11 = data41.length;if(len11 > 0){let data42 = data41[0];const _errs169 = errors;if(typeof data42 !== "string"){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if("cito:Citation" !== data42){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}var valid47 = _errs169 === errors;}if(valid47){if(len11 > 1){let data43 = data41[1];const _errs171 = errors;if(typeof data43 !== "string"){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if("crm:E73_Information_Object" !== data43){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}var valid47 = _errs171 === errors;}}}}}else {const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}}else {const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}}}else {const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid14 = _errs163 === errors;errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}if(_valid14){const _errs173 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data44 = data.motivation;if(typeof data44 !== "string"){const err142 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if("citing" !== data44){const err143 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "citing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}else {const err144 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}var _valid14 = _errs173 === errors;valid44 = _valid14;}if(!valid44){const err145 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}var _valid13 = _errs161 === errors;valid40 = _valid13;ifClause5 = "else";}if(!valid40){const err146 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}var _valid12 = _errs149 === errors;valid35 = _valid12;ifClause4 = "else";}if(!valid35){const err147 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}var _valid11 = _errs133 === errors;valid30 = _valid11;ifClause3 = "else";}if(!valid30){const err148 = {instancePath,schemaPath:"#/allOf/0/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}var _valid10 = _errs117 === errors;valid25 = _valid10;ifClause2 = "else";}if(!valid25){const err149 = {instancePath,schemaPath:"#/allOf/0/else/else/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}var _valid9 = _errs101 === errors;valid21 = _valid9;ifClause1 = "else";}if(!valid21){const err150 = {instancePath,schemaPath:"#/allOf/0/else/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}var _valid0 = _errs89 === errors;valid1 = _valid0;ifClause0 = "else";}if(!valid1){const err151 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data["@context"] === undefined){const err152 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "@context"},message:"must have required property '"+"@context"+"'"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(data.id === undefined){const err153 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if(data.type === undefined){const err154 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if(data.motivation === undefined){const err155 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "motivation"},message:"must have required property '"+"motivation"+"'"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(data.created === undefined){const err156 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "created"},message:"must have required property '"+"created"+"'"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(data.generator === undefined){const err157 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "generator"},message:"must have required property '"+"generator"+"'"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if(data.target === undefined){const err158 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data.body === undefined){const err159 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "body"},message:"must have required property '"+"body"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}for(const key0 in data){if(!(func2.call(schema11.properties, key0))){const err160 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data["@context"] !== undefined){let data45 = data["@context"];if(Array.isArray(data45)){if(data45.length > 3){const err161 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if(data45.length < 3){const err162 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}const len12 = data45.length;if(len12 > 0){let data46 = data45[0];if(typeof data46 !== "string"){const err163 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if("http://www.w3.org/ns/anno.jsonld" !== data46){const err164 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/const",keyword:"const",params:{allowedValue: "http://www.w3.org/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(len12 > 1){let data47 = data45[1];if(typeof data47 !== "string"){const err165 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if("https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld" !== data47){const err166 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/const",keyword:"const",params:{allowedValue: "https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}if(len12 > 2){let data48 = data45[2];if(typeof data48 !== "string"){const err167 = {instancePath:instancePath+"/@context/2",schemaPath:"#/properties/%40context/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if("https://wa.lincsproject.ca/v1/ns/anno.jsonld" !== data48){const err168 = {instancePath:instancePath+"/@context/2",schemaPath:"#/properties/%40context/items/2/const",keyword:"const",params:{allowedValue: "https://wa.lincsproject.ca/v1/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}}else {const err169 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}if(data.id !== undefined){let data49 = data.id;if(typeof data49 === "string"){if(!(formats0(data49))){const err170 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}else {const err171 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}if(data.type !== undefined){let data50 = data.type;if(Array.isArray(data50)){if(data50.length > 2){const err172 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if(data50.length < 2){const err173 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}const len13 = data50.length;if(len13 > 0){let data51 = data50[0];if(typeof data51 !== "string"){const err174 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if("Annotation" !== data51){const err175 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Annotation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(len13 > 1){let data52 = data50[1];if(typeof data52 !== "string"){const err176 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if("crm:E33_Linguistic_Object" !== data52){const err177 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}}else {const err178 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data.motivation !== undefined){let data53 = data.motivation;if(typeof data53 !== "string"){const err179 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if(!(((((((data53 === "oa:identifying") || (data53 === "oa:describing")) || (data53 === "correcting")) || (data53 === "oa:tagging")) || (data53 === "oa:classifying")) || (data53 === "oa:linking")) || (data53 === "citing"))){const err180 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/enum",keyword:"enum",params:{allowedValues: schema11.properties.motivation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data.created !== undefined){let data54 = data.created;if(typeof data54 === "string"){if(!(formats2.validate(data54))){const err181 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}else {const err182 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data.modified !== undefined){let data55 = data.modified;if(typeof data55 === "string"){if(!(formats2.validate(data55))){const err183 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}else {const err184 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}if(data.creator !== undefined){let data56 = data.creator;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.id === undefined){const err185 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if(data56.type === undefined){const err186 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(data56.name === undefined){const err187 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(data56.id !== undefined){let data57 = data56.id;if(typeof data57 === "string"){if(!(formats0(data57))){const err188 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}else {const err189 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data56.type !== undefined){let data58 = data56.type;if(typeof data58 !== "string"){const err190 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if("crm:E21_Person" !== data58){const err191 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data56.name !== undefined){let data59 = data56.name;if(typeof data59 === "string"){if(func3(data59) < 1){const err192 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}else {const err193 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}}else {const err194 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}if(data.contributor !== undefined){let data60 = data.contributor;if(Array.isArray(data60)){if(data60.length < 1){const err195 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}const len14 = data60.length;for(let i0=0; i0<len14; i0++){let data61 = data60[i0];if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.id === undefined){const err196 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(data61.type === undefined){const err197 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(data61.name === undefined){const err198 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}if(data61.id !== undefined){let data62 = data61.id;if(typeof data62 === "string"){if(!(formats0(data62))){const err199 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}else {const err200 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data61.type !== undefined){let data63 = data61.type;if(typeof data63 !== "string"){const err201 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}if("crm:E21_Person" !== data63){const err202 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data61.name !== undefined){let data64 = data61.name;if(typeof data64 === "string"){if(func3(data64) < 1){const err203 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}else {const err204 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}}else {const err205 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}}else {const err206 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}if(data.generator !== undefined){let data65 = data.generator;if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if(data65.id === undefined){const err207 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(data65.type === undefined){const err208 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}if(data65.label === undefined){const err209 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}if(data65.id !== undefined){let data66 = data65.id;if(typeof data66 === "string"){if(!(formats0(data66))){const err210 = {instancePath:instancePath+"/generator/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}else {const err211 = {instancePath:instancePath+"/generator/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}if(data65.type !== undefined){let data67 = data65.type;if(typeof data67 !== "string"){const err212 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}if("Software" !== data67){const err213 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/const",keyword:"const",params:{allowedValue: "Software"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data65.P16_used_specific_object !== undefined){let data68 = data65.P16_used_specific_object;if(typeof data68 === "string"){if(!(formats0(data68))){const err214 = {instancePath:instancePath+"/generator/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}else {const err215 = {instancePath:instancePath+"/generator/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(data65.label !== undefined){let data69 = data65.label;if(typeof data69 === "string"){if(func3(data69) < 1){const err216 = {instancePath:instancePath+"/generator/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}else {const err217 = {instancePath:instancePath+"/generator/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data65.softwareVersion !== undefined){if(typeof data65.softwareVersion !== "string"){const err218 = {instancePath:instancePath+"/generator/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}}else {const err219 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}if(data.target !== undefined){if(!(validate12(data.target, {instancePath:instancePath+"/target",parentData:data,parentDataProperty:"target",rootData}))){vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);errors = vErrors.length;}}if(data.body !== undefined){let data72 = data.body;const _errs235 = errors;let valid60 = false;let passing8 = null;const _errs236 = errors;if(!(validate14(data72, {instancePath:instancePath+"/body",parentData:data,parentDataProperty:"body",rootData}))){vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);errors = vErrors.length;}var _valid15 = _errs236 === errors;if(_valid15){valid60 = true;passing8 = 0;}const _errs237 = errors;const _errs240 = errors;let valid62 = false;const _errs241 = errors;const _errs242 = errors;let valid63 = true;const _errs243 = errors;if(errors === _errs243){if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.entityType !== undefined){let data73 = data72.entityType;const _errs246 = errors;let valid65 = false;const _errs247 = errors;if("crm:E33_Linguistic_Object" !== data73){const err220 = {};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}var _valid18 = _errs247 === errors;valid65 = valid65 || _valid18;if(!valid65){const _errs248 = errors;if(errors === _errs248){if(Array.isArray(data73)){if(data73.length > 2){const err221 = {};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}else {if(data73.length < 2){const err222 = {};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}else {const len15 = data73.length;if(len15 > 0){const _errs250 = errors;if("xsd:date" !== data73[0]){const err223 = {};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}var valid66 = _errs250 === errors;}if(valid66){if(len15 > 1){const _errs251 = errors;if("crm:E52_Time-Span" !== data73[1]){const err224 = {};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}var valid66 = _errs251 === errors;}}}}}else {const err225 = {};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}var _valid18 = _errs248 === errors;valid65 = valid65 || _valid18;if(!valid65){const _errs252 = errors;if(errors === _errs252){if(Array.isArray(data73)){if(data73.length > 2){const err226 = {};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}else {if(data73.length < 2){const err227 = {};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}else {const len16 = data73.length;if(len16 > 0){const _errs254 = errors;if("fabio:Correction" !== data73[0]){const err228 = {};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}var valid67 = _errs254 === errors;}if(valid67){if(len16 > 1){const _errs255 = errors;if("crm:E33_Linguistic_Object" !== data73[1]){const err229 = {};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}var valid67 = _errs255 === errors;}}}}}else {const err230 = {};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}var _valid18 = _errs252 === errors;valid65 = valid65 || _valid18;if(!valid65){const _errs256 = errors;if(errors === _errs256){if(Array.isArray(data73)){if(data73.length > 2){const err231 = {};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}else {if(data73.length < 2){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}else {const len17 = data73.length;if(len17 > 0){const _errs258 = errors;if("crm:E55_Type" !== data73[0]){const err233 = {};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}var valid68 = _errs258 === errors;}if(valid68){if(len17 > 1){const _errs259 = errors;if("crm:E33_Linguistic_Object" !== data73[1]){const err234 = {};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}var valid68 = _errs259 === errors;}}}}}else {const err235 = {};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}var _valid18 = _errs256 === errors;valid65 = valid65 || _valid18;}}}if(!valid65){const err236 = {};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}else {errors = _errs246;if(vErrors !== null){if(_errs246){vErrors.length = _errs246;}else {vErrors = null;}}}}}else {const err237 = {};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}var _valid17 = _errs243 === errors;errors = _errs242;if(vErrors !== null){if(_errs242){vErrors.length = _errs242;}else {vErrors = null;}}if(_valid17){const _errs260 = errors;const _errs262 = errors;let valid69 = true;const _errs263 = errors;if(errors === _errs263){if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.entityType !== undefined){let data80 = data72.entityType;const _errs265 = errors;if(errors === _errs265){if(Array.isArray(data80)){if(data80.length > 2){const err238 = {};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}else {if(data80.length < 2){const err239 = {};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}else {const len18 = data80.length;if(len18 > 0){const _errs267 = errors;if("xsd:date" !== data80[0]){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}var valid71 = _errs267 === errors;}if(valid71){if(len18 > 1){const _errs268 = errors;if("crm:E52_Time-Span" !== data80[1]){const err241 = {};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}var valid71 = _errs268 === errors;}}}}}else {const err242 = {};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}}}else {const err243 = {};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}var _valid19 = _errs263 === errors;errors = _errs262;if(vErrors !== null){if(_errs262){vErrors.length = _errs262;}else {vErrors = null;}}let ifClause6;if(_valid19){const _errs269 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.value !== undefined){let data83 = data72.value;if(typeof data83 === "string"){if(!pattern0.test(data83)){const err244 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}else {const err245 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}}else {const err246 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}var _valid19 = _errs269 === errors;valid69 = _valid19;ifClause6 = "then";}else {const _errs273 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.value !== undefined){if(typeof data72.value !== "string"){const err247 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}}else {const err248 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}var _valid19 = _errs273 === errors;valid69 = _valid19;ifClause6 = "else";}if(!valid69){const err249 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: ifClause6},message:"must match \""+ifClause6+"\" schema"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.type === undefined){const err250 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}if(data72.value === undefined){const err251 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}if(data72.type !== undefined){let data85 = data72.type;if(typeof data85 !== "string"){const err252 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}if("TextualBody" !== data85){const err253 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}}else {const err254 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}var _valid17 = _errs260 === errors;valid63 = _valid17;}if(!valid63){const err255 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}var _valid16 = _errs241 === errors;valid62 = valid62 || _valid16;if(!valid62){const err256 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}else {errors = _errs240;if(vErrors !== null){if(_errs240){vErrors.length = _errs240;}else {vErrors = null;}}}if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.id === undefined){const err257 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}if(data72.entityType === undefined){const err258 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}for(const key1 in data72){if(!((((((((key1 === "id") || (key1 === "type")) || (key1 === "entityType")) || (key1 === "additionalType")) || (key1 === "value")) || (key1 === "label")) || (key1 === "modeExistence")) || (key1 === "description"))){const err259 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}if(data72.id !== undefined){let data86 = data72.id;if(typeof data86 === "string"){if(!(formats0(data86))){const err260 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}else {const err261 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}}if(data72.type !== undefined){let data87 = data72.type;if(typeof data87 !== "string"){const err262 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if("TextualBody" !== data87){const err263 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}if(data72.entityType !== undefined){let data88 = data72.entityType;const _errs285 = errors;let valid76 = false;let passing9 = null;const _errs286 = errors;const _errs287 = errors;let valid77 = false;let passing10 = null;const _errs288 = errors;if(typeof data88 !== "string"){const err264 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}if("crm:E21_Person" !== data88){const err265 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}var _valid21 = _errs288 === errors;if(_valid21){valid77 = true;passing10 = 0;}const _errs290 = errors;if(Array.isArray(data88)){if(data88.length > 2){const err266 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if(data88.length < 2){const err267 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}const len19 = data88.length;if(len19 > 0){let data89 = data88[0];if(typeof data89 !== "string"){const err268 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}if("foaf:Person" !== data89){const err269 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}}if(len19 > 1){let data90 = data88[1];if(typeof data90 !== "string"){const err270 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}if("crm:E89_Propositional_Object" !== data90){const err271 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}}else {const err272 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}var _valid21 = _errs290 === errors;if(_valid21 && valid77){valid77 = false;passing10 = [passing10, 1];}else {if(_valid21){valid77 = true;passing10 = 1;}}if(!valid77){const err273 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing10},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}else {errors = _errs287;if(vErrors !== null){if(_errs287){vErrors.length = _errs287;}else {vErrors = null;}}}var _valid20 = _errs286 === errors;if(_valid20){valid76 = true;passing9 = 0;}const _errs296 = errors;const _errs297 = errors;let valid79 = false;let passing11 = null;const _errs298 = errors;if(typeof data88 !== "string"){const err274 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}if("cwrc:place" !== data88){const err275 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}var _valid22 = _errs298 === errors;if(_valid22){valid79 = true;passing11 = 0;}const _errs300 = errors;if(Array.isArray(data88)){if(data88.length > 2){const err276 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}if(data88.length < 2){const err277 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}const len20 = data88.length;if(len20 > 0){let data91 = data88[0];if(typeof data91 !== "string"){const err278 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}if("cwrc:place" !== data91){const err279 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}if(len20 > 1){let data92 = data88[1];if(typeof data92 !== "string"){const err280 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}if("crm:E89_Propositional_Object" !== data92){const err281 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}}else {const err282 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}var _valid22 = _errs300 === errors;if(_valid22 && valid79){valid79 = false;passing11 = [passing11, 1];}else {if(_valid22){valid79 = true;passing11 = 1;}}if(!valid79){const err283 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing11},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}else {errors = _errs297;if(vErrors !== null){if(_errs297){vErrors.length = _errs297;}else {vErrors = null;}}}var _valid20 = _errs296 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 1];}else {if(_valid20){valid76 = true;passing9 = 1;}const _errs306 = errors;const _errs307 = errors;let valid81 = false;let passing12 = null;const _errs308 = errors;if(typeof data88 !== "string"){const err284 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if("crm:E74_Group" !== data88){const err285 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}var _valid23 = _errs308 === errors;if(_valid23){valid81 = true;passing12 = 0;}const _errs310 = errors;if(Array.isArray(data88)){if(data88.length > 2){const err286 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if(data88.length < 2){const err287 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}const len21 = data88.length;if(len21 > 0){let data93 = data88[0];if(typeof data93 !== "string"){const err288 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}if("foaf:Organization" !== data93){const err289 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}if(len21 > 1){let data94 = data88[1];if(typeof data94 !== "string"){const err290 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}if("crm:E89_Propositional_Object" !== data94){const err291 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}}else {const err292 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}var _valid23 = _errs310 === errors;if(_valid23 && valid81){valid81 = false;passing12 = [passing12, 1];}else {if(_valid23){valid81 = true;passing12 = 1;}}if(!valid81){const err293 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing12},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}else {errors = _errs307;if(vErrors !== null){if(_errs307){vErrors.length = _errs307;}else {vErrors = null;}}}var _valid20 = _errs306 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 2];}else {if(_valid20){valid76 = true;passing9 = 2;}const _errs316 = errors;const _errs317 = errors;let valid83 = false;let passing13 = null;const _errs318 = errors;if(typeof data88 !== "string"){const err294 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}if("crm:E89_Propositional_Object" !== data88){const err295 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}var _valid24 = _errs318 === errors;if(_valid24){valid83 = true;passing13 = 0;}const _errs320 = errors;if(Array.isArray(data88)){if(data88.length > 2){const err296 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}if(data88.length < 2){const err297 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}const len22 = data88.length;if(len22 > 0){let data95 = data88[0];if(typeof data95 !== "string"){const err298 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}if("frbroo:F1" !== data95){const err299 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}if(len22 > 1){let data96 = data88[1];if(typeof data96 !== "string"){const err300 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}if("wikidata:Q15306849" !== data96){const err301 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}}else {const err302 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}var _valid24 = _errs320 === errors;if(_valid24 && valid83){valid83 = false;passing13 = [passing13, 1];}else {if(_valid24){valid83 = true;passing13 = 1;}}if(!valid83){const err303 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing13},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}else {errors = _errs317;if(vErrors !== null){if(_errs317){vErrors.length = _errs317;}else {vErrors = null;}}}var _valid20 = _errs316 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 3];}else {if(_valid20){valid76 = true;passing9 = 3;}const _errs326 = errors;const _errs327 = errors;let valid85 = false;let passing14 = null;const _errs328 = errors;if(typeof data88 !== "string"){const err304 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}if("crm:E18_Physical_Thing" !== data88){const err305 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}var _valid25 = _errs328 === errors;if(_valid25){valid85 = true;passing14 = 0;}const _errs330 = errors;if(Array.isArray(data88)){if(data88.length > 2){const err306 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}if(data88.length < 2){const err307 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}const len23 = data88.length;if(len23 > 0){let data97 = data88[0];if(typeof data97 !== "string"){const err308 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}if("crm:E18_Physical_Thing" !== data97){const err309 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}if(len23 > 1){let data98 = data88[1];if(typeof data98 !== "string"){const err310 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}if("wikidata:Q15831596" !== data98){const err311 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}}}else {const err312 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}var _valid25 = _errs330 === errors;if(_valid25 && valid85){valid85 = false;passing14 = [passing14, 1];}else {if(_valid25){valid85 = true;passing14 = 1;}}if(!valid85){const err313 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing14},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}else {errors = _errs327;if(vErrors !== null){if(_errs327){vErrors.length = _errs327;}else {vErrors = null;}}}var _valid20 = _errs326 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 4];}else {if(_valid20){valid76 = true;passing9 = 4;}const _errs336 = errors;const _errs337 = errors;let valid87 = false;let passing15 = null;const _errs338 = errors;if(typeof data88 !== "string"){const err314 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}if("crm:E28_Conceptual_Object" !== data88){const err315 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}var _valid26 = _errs338 === errors;if(_valid26){valid87 = true;passing15 = 0;}const _errs340 = errors;if(Array.isArray(data88)){if(data88.length > 2){const err316 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}if(data88.length < 2){const err317 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}const len24 = data88.length;if(len24 > 0){let data99 = data88[0];if(typeof data99 !== "string"){const err318 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}if("crm:E28_Conceptual_Object" !== data99){const err319 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}}if(len24 > 1){let data100 = data88[1];if(typeof data100 !== "string"){const err320 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}if("wikidata:Q15831596" !== data100){const err321 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}}}else {const err322 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}var _valid26 = _errs340 === errors;if(_valid26 && valid87){valid87 = false;passing15 = [passing15, 1];}else {if(_valid26){valid87 = true;passing15 = 1;}}if(!valid87){const err323 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing15},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}else {errors = _errs337;if(vErrors !== null){if(_errs337){vErrors.length = _errs337;}else {vErrors = null;}}}var _valid20 = _errs336 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 5];}else {if(_valid20){valid76 = true;passing9 = 5;}const _errs346 = errors;if(Array.isArray(data88)){if(data88.length > 2){const err324 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}if(data88.length < 2){const err325 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}const len25 = data88.length;if(len25 > 0){let data101 = data88[0];if(typeof data101 !== "string"){const err326 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}if("cito:Citation" !== data101){const err327 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}}if(len25 > 1){let data102 = data88[1];if(typeof data102 !== "string"){const err328 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}if("crm:E73_Information_Object" !== data102){const err329 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}}else {const err330 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}var _valid20 = _errs346 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 6];}else {if(_valid20){valid76 = true;passing9 = 6;}const _errs352 = errors;if(Array.isArray(data88)){if(data88.length > 2){const err331 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}if(data88.length < 2){const err332 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}const len26 = data88.length;if(len26 > 0){let data103 = data88[0];if(typeof data103 !== "string"){const err333 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}if("xsd:date" !== data103){const err334 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}}if(len26 > 1){let data104 = data88[1];if(typeof data104 !== "string"){const err335 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}if("crm:E52_Time-Span" !== data104){const err336 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}}}else {const err337 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}var _valid20 = _errs352 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 7];}else {if(_valid20){valid76 = true;passing9 = 7;}const _errs358 = errors;if(typeof data88 !== "string"){const err338 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}if("crm:E33_Linguistic_Object" !== data88){const err339 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}var _valid20 = _errs358 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 8];}else {if(_valid20){valid76 = true;passing9 = 8;}const _errs360 = errors;if(Array.isArray(data88)){if(data88.length > 2){const err340 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}if(data88.length < 2){const err341 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}const len27 = data88.length;if(len27 > 0){let data105 = data88[0];if(typeof data105 !== "string"){const err342 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}if("fabio:Correction" !== data105){const err343 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}}if(len27 > 1){let data106 = data88[1];if(typeof data106 !== "string"){const err344 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}if("crm:E33_Linguistic_Object" !== data106){const err345 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}}}else {const err346 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}var _valid20 = _errs360 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 9];}else {if(_valid20){valid76 = true;passing9 = 9;}const _errs366 = errors;if(Array.isArray(data88)){if(data88.length > 2){const err347 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}if(data88.length < 2){const err348 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}const len28 = data88.length;if(len28 > 0){let data107 = data88[0];if(typeof data107 !== "string"){const err349 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}if("crm:E55_Type" !== data107){const err350 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}}if(len28 > 1){let data108 = data88[1];if(typeof data108 !== "string"){const err351 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}if("crmdig:D1_Digital_Object" !== data108){const err352 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}}}else {const err353 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}var _valid20 = _errs366 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 10];}else {if(_valid20){valid76 = true;passing9 = 10;}const _errs372 = errors;if(Array.isArray(data88)){if(data88.length > 2){const err354 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}if(data88.length < 2){const err355 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}const len29 = data88.length;if(len29 > 0){let data109 = data88[0];if(typeof data109 !== "string"){const err356 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}if("crm:E55_Type" !== data109){const err357 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}}if(len29 > 1){let data110 = data88[1];if(typeof data110 !== "string"){const err358 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}if("crm:E33_Linguistic_Object" !== data110){const err359 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}}}else {const err360 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}var _valid20 = _errs372 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 11];}else {if(_valid20){valid76 = true;passing9 = 11;}const _errs378 = errors;if(typeof data88 !== "string"){const err361 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}if("crmdig:D1_Digital_Object" !== data88){const err362 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}var _valid20 = _errs378 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 12];}else {if(_valid20){valid76 = true;passing9 = 12;}const _errs380 = errors;const _errs381 = errors;let valid94 = false;let passing16 = null;const _errs382 = errors;if(typeof data88 !== "string"){const err363 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}if("crm:E5_Event" !== data88){const err364 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}var _valid27 = _errs382 === errors;if(_valid27){valid94 = true;passing16 = 0;}const _errs384 = errors;if(Array.isArray(data88)){if(data88.length > 2){const err365 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}if(data88.length < 2){const err366 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}const len30 = data88.length;if(len30 > 0){let data111 = data88[0];if(typeof data111 !== "string"){const err367 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}if("crm:E5_Event" !== data111){const err368 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}}if(len30 > 1){let data112 = data88[1];if(typeof data112 !== "string"){const err369 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}if("crm:E89_Propositional_Object" !== data112){const err370 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}}}else {const err371 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}var _valid27 = _errs384 === errors;if(_valid27 && valid94){valid94 = false;passing16 = [passing16, 1];}else {if(_valid27){valid94 = true;passing16 = 1;}}if(!valid94){const err372 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf",keyword:"oneOf",params:{passingSchemas: passing16},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}else {errors = _errs381;if(vErrors !== null){if(_errs381){vErrors.length = _errs381;}else {vErrors = null;}}}var _valid20 = _errs380 === errors;if(_valid20 && valid76){valid76 = false;passing9 = [passing9, 13];}else {if(_valid20){valid76 = true;passing9 = 13;}}}}}}}}}}}}}}if(!valid76){const err373 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing9},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}else {errors = _errs285;if(vErrors !== null){if(_errs285){vErrors.length = _errs285;}else {vErrors = null;}}}}if(data72.additionalType !== undefined){let data113 = data72.additionalType;const _errs391 = errors;let valid96 = false;const _errs392 = errors;if(typeof data113 !== "string"){const err374 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}var _valid28 = _errs392 === errors;valid96 = valid96 || _valid28;if(!valid96){const _errs394 = errors;if(Array.isArray(data113)){const len31 = data113.length;for(let i1=0; i1<len31; i1++){if(typeof data113[i1] !== "string"){const err375 = {instancePath:instancePath+"/body/additionalType/" + i1,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}}}else {const err376 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}var _valid28 = _errs394 === errors;valid96 = valid96 || _valid28;}if(!valid96){const err377 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}else {errors = _errs391;if(vErrors !== null){if(_errs391){vErrors.length = _errs391;}else {vErrors = null;}}}}if(data72.value !== undefined){if(typeof data72.value !== "string"){const err378 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}}if(data72.label !== undefined){let data116 = data72.label;if(typeof data116 === "string"){if(func3(data116) < 1){const err379 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}}else {const err380 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}}if(data72.modeExistence !== undefined){let data117 = data72.modeExistence;const _errs403 = errors;let valid99 = false;let passing17 = null;const _errs404 = errors;if(typeof data117 !== "string"){const err381 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}if("edit:modeReal" !== data117){const err382 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:modeReal"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}var _valid29 = _errs404 === errors;if(_valid29){valid99 = true;passing17 = 0;}const _errs406 = errors;if(typeof data117 !== "string"){const err383 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}if("edit:modeFictional" !== data117){const err384 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:modeFictional"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}var _valid29 = _errs406 === errors;if(_valid29 && valid99){valid99 = false;passing17 = [passing17, 1];}else {if(_valid29){valid99 = true;passing17 = 1;}const _errs408 = errors;if(typeof data117 !== "string"){const err385 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}if("edit:modeIdentifiable" !== data117){const err386 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:modeIdentifiable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}var _valid29 = _errs408 === errors;if(_valid29 && valid99){valid99 = false;passing17 = [passing17, 2];}else {if(_valid29){valid99 = true;passing17 = 2;}}}if(!valid99){const err387 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf",keyword:"oneOf",params:{passingSchemas: passing17},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}else {errors = _errs403;if(vErrors !== null){if(_errs403){vErrors.length = _errs403;}else {vErrors = null;}}}}if(data72.description !== undefined){if(typeof data72.description !== "string"){const err388 = {instancePath:instancePath+"/body/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}}}else {const err389 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}var _valid15 = _errs237 === errors;if(_valid15 && valid60){valid60 = false;passing8 = [passing8, 1];}else {if(_valid15){valid60 = true;passing8 = 1;}const _errs412 = errors;if(Array.isArray(data72)){if(data72.length < 1){const err390 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf/2/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}const len32 = data72.length;for(let i2=0; i2<len32; i2++){let data119 = data72[i2];const _errs417 = errors;let valid103 = false;const _errs418 = errors;const _errs419 = errors;let valid104 = true;const _errs420 = errors;if(errors === _errs420){if(data119 && typeof data119 == "object" && !Array.isArray(data119)){if(data119.entityType !== undefined){let data120 = data119.entityType;const _errs423 = errors;let valid106 = false;const _errs424 = errors;if("crm:E33_Linguistic_Object" !== data120){const err391 = {};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}var _valid32 = _errs424 === errors;valid106 = valid106 || _valid32;if(!valid106){const _errs425 = errors;if(errors === _errs425){if(Array.isArray(data120)){if(data120.length > 2){const err392 = {};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}else {if(data120.length < 2){const err393 = {};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}else {const len33 = data120.length;if(len33 > 0){const _errs427 = errors;if("xsd:date" !== data120[0]){const err394 = {};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}var valid107 = _errs427 === errors;}if(valid107){if(len33 > 1){const _errs428 = errors;if("crm:E52_Time-Span" !== data120[1]){const err395 = {};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}var valid107 = _errs428 === errors;}}}}}else {const err396 = {};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}}var _valid32 = _errs425 === errors;valid106 = valid106 || _valid32;if(!valid106){const _errs429 = errors;if(errors === _errs429){if(Array.isArray(data120)){if(data120.length > 2){const err397 = {};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}else {if(data120.length < 2){const err398 = {};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}else {const len34 = data120.length;if(len34 > 0){const _errs431 = errors;if("fabio:Correction" !== data120[0]){const err399 = {};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}var valid108 = _errs431 === errors;}if(valid108){if(len34 > 1){const _errs432 = errors;if("crm:E33_Linguistic_Object" !== data120[1]){const err400 = {};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}var valid108 = _errs432 === errors;}}}}}else {const err401 = {};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}}var _valid32 = _errs429 === errors;valid106 = valid106 || _valid32;if(!valid106){const _errs433 = errors;if(errors === _errs433){if(Array.isArray(data120)){if(data120.length > 2){const err402 = {};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}else {if(data120.length < 2){const err403 = {};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}else {const len35 = data120.length;if(len35 > 0){const _errs435 = errors;if("crm:E55_Type" !== data120[0]){const err404 = {};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}var valid109 = _errs435 === errors;}if(valid109){if(len35 > 1){const _errs436 = errors;if("crm:E33_Linguistic_Object" !== data120[1]){const err405 = {};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}var valid109 = _errs436 === errors;}}}}}else {const err406 = {};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}}var _valid32 = _errs433 === errors;valid106 = valid106 || _valid32;}}}if(!valid106){const err407 = {};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}else {errors = _errs423;if(vErrors !== null){if(_errs423){vErrors.length = _errs423;}else {vErrors = null;}}}}}else {const err408 = {};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}}var _valid31 = _errs420 === errors;errors = _errs419;if(vErrors !== null){if(_errs419){vErrors.length = _errs419;}else {vErrors = null;}}if(_valid31){const _errs437 = errors;const _errs439 = errors;let valid110 = true;const _errs440 = errors;if(errors === _errs440){if(data119 && typeof data119 == "object" && !Array.isArray(data119)){if(data119.entityType !== undefined){let data127 = data119.entityType;const _errs442 = errors;if(errors === _errs442){if(Array.isArray(data127)){if(data127.length > 2){const err409 = {};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}else {if(data127.length < 2){const err410 = {};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}else {const len36 = data127.length;if(len36 > 0){const _errs444 = errors;if("xsd:date" !== data127[0]){const err411 = {};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}var valid112 = _errs444 === errors;}if(valid112){if(len36 > 1){const _errs445 = errors;if("crm:E52_Time-Span" !== data127[1]){const err412 = {};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}var valid112 = _errs445 === errors;}}}}}else {const err413 = {};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}}}}else {const err414 = {};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}}var _valid33 = _errs440 === errors;errors = _errs439;if(vErrors !== null){if(_errs439){vErrors.length = _errs439;}else {vErrors = null;}}let ifClause7;if(_valid33){const _errs446 = errors;if(data119 && typeof data119 == "object" && !Array.isArray(data119)){if(data119.value !== undefined){let data130 = data119.value;if(typeof data130 === "string"){if(!pattern0.test(data130)){const err415 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}}else {const err416 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}}}else {const err417 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}var _valid33 = _errs446 === errors;valid110 = _valid33;ifClause7 = "then";}else {const _errs450 = errors;if(data119 && typeof data119 == "object" && !Array.isArray(data119)){if(data119.value !== undefined){if(typeof data119.value !== "string"){const err418 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}}}else {const err419 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}var _valid33 = _errs450 === errors;valid110 = _valid33;ifClause7 = "else";}if(!valid110){const err420 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: ifClause7},message:"must match \""+ifClause7+"\" schema"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}if(data119 && typeof data119 == "object" && !Array.isArray(data119)){if(data119.type === undefined){const err421 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}if(data119.value === undefined){const err422 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}if(data119.type !== undefined){let data132 = data119.type;if(typeof data132 !== "string"){const err423 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}if("TextualBody" !== data132){const err424 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}}}else {const err425 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}var _valid31 = _errs437 === errors;valid104 = _valid31;}if(!valid104){const err426 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}var _valid30 = _errs418 === errors;valid103 = valid103 || _valid30;if(!valid103){const err427 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}else {errors = _errs417;if(vErrors !== null){if(_errs417){vErrors.length = _errs417;}else {vErrors = null;}}}if(data119 && typeof data119 == "object" && !Array.isArray(data119)){if(data119.id === undefined){const err428 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}if(data119.entityType === undefined){const err429 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}for(const key2 in data119){if(!((((((((key2 === "id") || (key2 === "type")) || (key2 === "entityType")) || (key2 === "additionalType")) || (key2 === "value")) || (key2 === "label")) || (key2 === "modeExistence")) || (key2 === "description"))){const err430 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}}if(data119.id !== undefined){let data133 = data119.id;if(typeof data133 === "string"){if(!(formats0(data133))){const err431 = {instancePath:instancePath+"/body/" + i2+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}}else {const err432 = {instancePath:instancePath+"/body/" + i2+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}}if(data119.type !== undefined){let data134 = data119.type;if(typeof data134 !== "string"){const err433 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}if("TextualBody" !== data134){const err434 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}}if(data119.entityType !== undefined){let data135 = data119.entityType;const _errs462 = errors;let valid117 = false;let passing18 = null;const _errs463 = errors;const _errs464 = errors;let valid118 = false;let passing19 = null;const _errs465 = errors;if(typeof data135 !== "string"){const err435 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}if("crm:E21_Person" !== data135){const err436 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}var _valid35 = _errs465 === errors;if(_valid35){valid118 = true;passing19 = 0;}const _errs467 = errors;if(Array.isArray(data135)){if(data135.length > 2){const err437 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}if(data135.length < 2){const err438 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}const len37 = data135.length;if(len37 > 0){let data136 = data135[0];if(typeof data136 !== "string"){const err439 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}if("foaf:Person" !== data136){const err440 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}}if(len37 > 1){let data137 = data135[1];if(typeof data137 !== "string"){const err441 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}if("crm:E89_Propositional_Object" !== data137){const err442 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}}}else {const err443 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}var _valid35 = _errs467 === errors;if(_valid35 && valid118){valid118 = false;passing19 = [passing19, 1];}else {if(_valid35){valid118 = true;passing19 = 1;}}if(!valid118){const err444 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing19},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}else {errors = _errs464;if(vErrors !== null){if(_errs464){vErrors.length = _errs464;}else {vErrors = null;}}}var _valid34 = _errs463 === errors;if(_valid34){valid117 = true;passing18 = 0;}const _errs473 = errors;const _errs474 = errors;let valid120 = false;let passing20 = null;const _errs475 = errors;if(typeof data135 !== "string"){const err445 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}if("cwrc:place" !== data135){const err446 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}var _valid36 = _errs475 === errors;if(_valid36){valid120 = true;passing20 = 0;}const _errs477 = errors;if(Array.isArray(data135)){if(data135.length > 2){const err447 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}if(data135.length < 2){const err448 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}const len38 = data135.length;if(len38 > 0){let data138 = data135[0];if(typeof data138 !== "string"){const err449 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}if("cwrc:place" !== data138){const err450 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}}if(len38 > 1){let data139 = data135[1];if(typeof data139 !== "string"){const err451 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}if("crm:E89_Propositional_Object" !== data139){const err452 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}}}else {const err453 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}var _valid36 = _errs477 === errors;if(_valid36 && valid120){valid120 = false;passing20 = [passing20, 1];}else {if(_valid36){valid120 = true;passing20 = 1;}}if(!valid120){const err454 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing20},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}else {errors = _errs474;if(vErrors !== null){if(_errs474){vErrors.length = _errs474;}else {vErrors = null;}}}var _valid34 = _errs473 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 1];}else {if(_valid34){valid117 = true;passing18 = 1;}const _errs483 = errors;const _errs484 = errors;let valid122 = false;let passing21 = null;const _errs485 = errors;if(typeof data135 !== "string"){const err455 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}if("crm:E74_Group" !== data135){const err456 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}var _valid37 = _errs485 === errors;if(_valid37){valid122 = true;passing21 = 0;}const _errs487 = errors;if(Array.isArray(data135)){if(data135.length > 2){const err457 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}if(data135.length < 2){const err458 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}const len39 = data135.length;if(len39 > 0){let data140 = data135[0];if(typeof data140 !== "string"){const err459 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}if("foaf:Organization" !== data140){const err460 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}}if(len39 > 1){let data141 = data135[1];if(typeof data141 !== "string"){const err461 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}if("crm:E89_Propositional_Object" !== data141){const err462 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}}else {const err463 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}var _valid37 = _errs487 === errors;if(_valid37 && valid122){valid122 = false;passing21 = [passing21, 1];}else {if(_valid37){valid122 = true;passing21 = 1;}}if(!valid122){const err464 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing21},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}else {errors = _errs484;if(vErrors !== null){if(_errs484){vErrors.length = _errs484;}else {vErrors = null;}}}var _valid34 = _errs483 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 2];}else {if(_valid34){valid117 = true;passing18 = 2;}const _errs493 = errors;const _errs494 = errors;let valid124 = false;let passing22 = null;const _errs495 = errors;if(typeof data135 !== "string"){const err465 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}if("crm:E89_Propositional_Object" !== data135){const err466 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}var _valid38 = _errs495 === errors;if(_valid38){valid124 = true;passing22 = 0;}const _errs497 = errors;if(Array.isArray(data135)){if(data135.length > 2){const err467 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}if(data135.length < 2){const err468 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}const len40 = data135.length;if(len40 > 0){let data142 = data135[0];if(typeof data142 !== "string"){const err469 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}if("frbroo:F1" !== data142){const err470 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}}if(len40 > 1){let data143 = data135[1];if(typeof data143 !== "string"){const err471 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}if("wikidata:Q15306849" !== data143){const err472 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}}else {const err473 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}var _valid38 = _errs497 === errors;if(_valid38 && valid124){valid124 = false;passing22 = [passing22, 1];}else {if(_valid38){valid124 = true;passing22 = 1;}}if(!valid124){const err474 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing22},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}else {errors = _errs494;if(vErrors !== null){if(_errs494){vErrors.length = _errs494;}else {vErrors = null;}}}var _valid34 = _errs493 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 3];}else {if(_valid34){valid117 = true;passing18 = 3;}const _errs503 = errors;const _errs504 = errors;let valid126 = false;let passing23 = null;const _errs505 = errors;if(typeof data135 !== "string"){const err475 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}if("crm:E18_Physical_Thing" !== data135){const err476 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}var _valid39 = _errs505 === errors;if(_valid39){valid126 = true;passing23 = 0;}const _errs507 = errors;if(Array.isArray(data135)){if(data135.length > 2){const err477 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}if(data135.length < 2){const err478 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}const len41 = data135.length;if(len41 > 0){let data144 = data135[0];if(typeof data144 !== "string"){const err479 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}if("crm:E18_Physical_Thing" !== data144){const err480 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}}if(len41 > 1){let data145 = data135[1];if(typeof data145 !== "string"){const err481 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}if("wikidata:Q15831596" !== data145){const err482 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}}}else {const err483 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}var _valid39 = _errs507 === errors;if(_valid39 && valid126){valid126 = false;passing23 = [passing23, 1];}else {if(_valid39){valid126 = true;passing23 = 1;}}if(!valid126){const err484 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing23},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}else {errors = _errs504;if(vErrors !== null){if(_errs504){vErrors.length = _errs504;}else {vErrors = null;}}}var _valid34 = _errs503 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 4];}else {if(_valid34){valid117 = true;passing18 = 4;}const _errs513 = errors;const _errs514 = errors;let valid128 = false;let passing24 = null;const _errs515 = errors;if(typeof data135 !== "string"){const err485 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}if("crm:E28_Conceptual_Object" !== data135){const err486 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}var _valid40 = _errs515 === errors;if(_valid40){valid128 = true;passing24 = 0;}const _errs517 = errors;if(Array.isArray(data135)){if(data135.length > 2){const err487 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}if(data135.length < 2){const err488 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}const len42 = data135.length;if(len42 > 0){let data146 = data135[0];if(typeof data146 !== "string"){const err489 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}if("crm:E28_Conceptual_Object" !== data146){const err490 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}}if(len42 > 1){let data147 = data135[1];if(typeof data147 !== "string"){const err491 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}if("wikidata:Q15831596" !== data147){const err492 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}}}else {const err493 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}var _valid40 = _errs517 === errors;if(_valid40 && valid128){valid128 = false;passing24 = [passing24, 1];}else {if(_valid40){valid128 = true;passing24 = 1;}}if(!valid128){const err494 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing24},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}else {errors = _errs514;if(vErrors !== null){if(_errs514){vErrors.length = _errs514;}else {vErrors = null;}}}var _valid34 = _errs513 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 5];}else {if(_valid34){valid117 = true;passing18 = 5;}const _errs523 = errors;if(Array.isArray(data135)){if(data135.length > 2){const err495 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}if(data135.length < 2){const err496 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}const len43 = data135.length;if(len43 > 0){let data148 = data135[0];if(typeof data148 !== "string"){const err497 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}if("cito:Citation" !== data148){const err498 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}}if(len43 > 1){let data149 = data135[1];if(typeof data149 !== "string"){const err499 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}if("crm:E73_Information_Object" !== data149){const err500 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}}}else {const err501 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}var _valid34 = _errs523 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 6];}else {if(_valid34){valid117 = true;passing18 = 6;}const _errs529 = errors;if(Array.isArray(data135)){if(data135.length > 2){const err502 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}if(data135.length < 2){const err503 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}const len44 = data135.length;if(len44 > 0){let data150 = data135[0];if(typeof data150 !== "string"){const err504 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}if("xsd:date" !== data150){const err505 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}}if(len44 > 1){let data151 = data135[1];if(typeof data151 !== "string"){const err506 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}if("crm:E52_Time-Span" !== data151){const err507 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}}}else {const err508 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}var _valid34 = _errs529 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 7];}else {if(_valid34){valid117 = true;passing18 = 7;}const _errs535 = errors;if(typeof data135 !== "string"){const err509 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}if("crm:E33_Linguistic_Object" !== data135){const err510 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}var _valid34 = _errs535 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 8];}else {if(_valid34){valid117 = true;passing18 = 8;}const _errs537 = errors;if(Array.isArray(data135)){if(data135.length > 2){const err511 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}if(data135.length < 2){const err512 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}const len45 = data135.length;if(len45 > 0){let data152 = data135[0];if(typeof data152 !== "string"){const err513 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}if("fabio:Correction" !== data152){const err514 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}}if(len45 > 1){let data153 = data135[1];if(typeof data153 !== "string"){const err515 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}if("crm:E33_Linguistic_Object" !== data153){const err516 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}}}else {const err517 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}var _valid34 = _errs537 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 9];}else {if(_valid34){valid117 = true;passing18 = 9;}const _errs543 = errors;if(Array.isArray(data135)){if(data135.length > 2){const err518 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}if(data135.length < 2){const err519 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}const len46 = data135.length;if(len46 > 0){let data154 = data135[0];if(typeof data154 !== "string"){const err520 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}if("crm:E55_Type" !== data154){const err521 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}}if(len46 > 1){let data155 = data135[1];if(typeof data155 !== "string"){const err522 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}if("crmdig:D1_Digital_Object" !== data155){const err523 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}}}else {const err524 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}var _valid34 = _errs543 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 10];}else {if(_valid34){valid117 = true;passing18 = 10;}const _errs549 = errors;if(Array.isArray(data135)){if(data135.length > 2){const err525 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}if(data135.length < 2){const err526 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}const len47 = data135.length;if(len47 > 0){let data156 = data135[0];if(typeof data156 !== "string"){const err527 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}if("crm:E55_Type" !== data156){const err528 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}}if(len47 > 1){let data157 = data135[1];if(typeof data157 !== "string"){const err529 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}if("crm:E33_Linguistic_Object" !== data157){const err530 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}}}else {const err531 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}var _valid34 = _errs549 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 11];}else {if(_valid34){valid117 = true;passing18 = 11;}const _errs555 = errors;if(typeof data135 !== "string"){const err532 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}if("crmdig:D1_Digital_Object" !== data135){const err533 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}var _valid34 = _errs555 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 12];}else {if(_valid34){valid117 = true;passing18 = 12;}const _errs557 = errors;const _errs558 = errors;let valid135 = false;let passing25 = null;const _errs559 = errors;if(typeof data135 !== "string"){const err534 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}if("crm:E5_Event" !== data135){const err535 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}var _valid41 = _errs559 === errors;if(_valid41){valid135 = true;passing25 = 0;}const _errs561 = errors;if(Array.isArray(data135)){if(data135.length > 2){const err536 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}if(data135.length < 2){const err537 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}const len48 = data135.length;if(len48 > 0){let data158 = data135[0];if(typeof data158 !== "string"){const err538 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}if("crm:E5_Event" !== data158){const err539 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}}if(len48 > 1){let data159 = data135[1];if(typeof data159 !== "string"){const err540 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}if("crm:E89_Propositional_Object" !== data159){const err541 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}}}else {const err542 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}var _valid41 = _errs561 === errors;if(_valid41 && valid135){valid135 = false;passing25 = [passing25, 1];}else {if(_valid41){valid135 = true;passing25 = 1;}}if(!valid135){const err543 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf",keyword:"oneOf",params:{passingSchemas: passing25},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err543];}else {vErrors.push(err543);}errors++;}else {errors = _errs558;if(vErrors !== null){if(_errs558){vErrors.length = _errs558;}else {vErrors = null;}}}var _valid34 = _errs557 === errors;if(_valid34 && valid117){valid117 = false;passing18 = [passing18, 13];}else {if(_valid34){valid117 = true;passing18 = 13;}}}}}}}}}}}}}}if(!valid117){const err544 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing18},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}else {errors = _errs462;if(vErrors !== null){if(_errs462){vErrors.length = _errs462;}else {vErrors = null;}}}}if(data119.additionalType !== undefined){let data160 = data119.additionalType;const _errs568 = errors;let valid137 = false;const _errs569 = errors;if(typeof data160 !== "string"){const err545 = {instancePath:instancePath+"/body/" + i2+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err545];}else {vErrors.push(err545);}errors++;}var _valid42 = _errs569 === errors;valid137 = valid137 || _valid42;if(!valid137){const _errs571 = errors;if(Array.isArray(data160)){const len49 = data160.length;for(let i3=0; i3<len49; i3++){if(typeof data160[i3] !== "string"){const err546 = {instancePath:instancePath+"/body/" + i2+"/additionalType/" + i3,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err546];}else {vErrors.push(err546);}errors++;}}}else {const err547 = {instancePath:instancePath+"/body/" + i2+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err547];}else {vErrors.push(err547);}errors++;}var _valid42 = _errs571 === errors;valid137 = valid137 || _valid42;}if(!valid137){const err548 = {instancePath:instancePath+"/body/" + i2+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err548];}else {vErrors.push(err548);}errors++;}else {errors = _errs568;if(vErrors !== null){if(_errs568){vErrors.length = _errs568;}else {vErrors = null;}}}}if(data119.value !== undefined){if(typeof data119.value !== "string"){const err549 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err549];}else {vErrors.push(err549);}errors++;}}if(data119.label !== undefined){let data163 = data119.label;if(typeof data163 === "string"){if(func3(data163) < 1){const err550 = {instancePath:instancePath+"/body/" + i2+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err550];}else {vErrors.push(err550);}errors++;}}else {const err551 = {instancePath:instancePath+"/body/" + i2+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err551];}else {vErrors.push(err551);}errors++;}}if(data119.modeExistence !== undefined){let data164 = data119.modeExistence;const _errs580 = errors;let valid140 = false;let passing26 = null;const _errs581 = errors;if(typeof data164 !== "string"){const err552 = {instancePath:instancePath+"/body/" + i2+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err552];}else {vErrors.push(err552);}errors++;}if("edit:modeReal" !== data164){const err553 = {instancePath:instancePath+"/body/" + i2+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:modeReal"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err553];}else {vErrors.push(err553);}errors++;}var _valid43 = _errs581 === errors;if(_valid43){valid140 = true;passing26 = 0;}const _errs583 = errors;if(typeof data164 !== "string"){const err554 = {instancePath:instancePath+"/body/" + i2+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err554];}else {vErrors.push(err554);}errors++;}if("edit:modeFictional" !== data164){const err555 = {instancePath:instancePath+"/body/" + i2+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:modeFictional"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err555];}else {vErrors.push(err555);}errors++;}var _valid43 = _errs583 === errors;if(_valid43 && valid140){valid140 = false;passing26 = [passing26, 1];}else {if(_valid43){valid140 = true;passing26 = 1;}const _errs585 = errors;if(typeof data164 !== "string"){const err556 = {instancePath:instancePath+"/body/" + i2+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err556];}else {vErrors.push(err556);}errors++;}if("edit:modeIdentifiable" !== data164){const err557 = {instancePath:instancePath+"/body/" + i2+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:modeIdentifiable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err557];}else {vErrors.push(err557);}errors++;}var _valid43 = _errs585 === errors;if(_valid43 && valid140){valid140 = false;passing26 = [passing26, 2];}else {if(_valid43){valid140 = true;passing26 = 2;}}}if(!valid140){const err558 = {instancePath:instancePath+"/body/" + i2+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf",keyword:"oneOf",params:{passingSchemas: passing26},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err558];}else {vErrors.push(err558);}errors++;}else {errors = _errs580;if(vErrors !== null){if(_errs580){vErrors.length = _errs580;}else {vErrors = null;}}}}if(data119.description !== undefined){if(typeof data119.description !== "string"){const err559 = {instancePath:instancePath+"/body/" + i2+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err559];}else {vErrors.push(err559);}errors++;}}}else {const err560 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err560];}else {vErrors.push(err560);}errors++;}}}else {const err561 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err561];}else {vErrors.push(err561);}errors++;}var _valid15 = _errs412 === errors;if(_valid15 && valid60){valid60 = false;passing8 = [passing8, 2];}else {if(_valid15){valid60 = true;passing8 = 2;}}}if(!valid60){const err562 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf",keyword:"oneOf",params:{passingSchemas: passing8},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err562];}else {vErrors.push(err562);}errors++;}else {errors = _errs235;if(vErrors !== null){if(_errs235){vErrors.length = _errs235;}else {vErrors = null;}}}}if(data.certainty !== undefined){let data166 = data.certainty;if(typeof data166 !== "string"){const err563 = {instancePath:instancePath+"/certainty",schemaPath:"#/properties/certainty/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err563];}else {vErrors.push(err563);}errors++;}if(!((((data166 === "edit:qualityLow") || (data166 === "edit:qualityMedium")) || (data166 === "edit:qualityHigh")) || (data166 === "edit:qualityUnknown"))){const err564 = {instancePath:instancePath+"/certainty",schemaPath:"#/properties/certainty/enum",keyword:"enum",params:{allowedValues: schema11.properties.certainty.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err564];}else {vErrors.push(err564);}errors++;}}if(data.precision !== undefined){let data167 = data.precision;if(typeof data167 !== "string"){const err565 = {instancePath:instancePath+"/precision",schemaPath:"#/properties/precision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err565];}else {vErrors.push(err565);}errors++;}if(!((((data167 === "edit:qualityLow") || (data167 === "edit:qualityMedium")) || (data167 === "edit:qualityHigh")) || (data167 === "edit:qualityUnknown"))){const err566 = {instancePath:instancePath+"/precision",schemaPath:"#/properties/precision/enum",keyword:"enum",params:{allowedValues: schema11.properties.precision.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err566];}else {vErrors.push(err566);}errors++;}}if(data.label !== undefined){if(typeof data.label !== "string"){const err567 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err567];}else {vErrors.push(err567);}errors++;}}if(data.P2_has_type !== undefined){let data169 = data.P2_has_type;const _errs596 = errors;let valid141 = false;let passing27 = null;const _errs597 = errors;if(typeof data169 === "string"){if(func3(data169) < 3){const err568 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/oneOf/0/minLength",keyword:"minLength",params:{limit: 3},message:"must NOT have fewer than 3 characters"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}}else {const err569 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err569];}else {vErrors.push(err569);}errors++;}var _valid44 = _errs597 === errors;if(_valid44){valid141 = true;passing27 = 0;}const _errs599 = errors;if(Array.isArray(data169)){if(data169.length < 1){const err570 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/oneOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err570];}else {vErrors.push(err570);}errors++;}const len50 = data169.length;for(let i4=0; i4<len50; i4++){let data170 = data169[i4];if(typeof data170 === "string"){if(func3(data170) < 3){const err571 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/properties/P2_has_type/oneOf/1/items/minLength",keyword:"minLength",params:{limit: 3},message:"must NOT have fewer than 3 characters"};if(vErrors === null){vErrors = [err571];}else {vErrors.push(err571);}errors++;}}else {const err572 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/properties/P2_has_type/oneOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err572];}else {vErrors.push(err572);}errors++;}}let i5 = data169.length;let j0;if(i5 > 1){const indices0 = {};for(;i5--;){let item0 = data169[i5];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j0 = indices0[item0];const err573 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/oneOf/1/uniqueItems",keyword:"uniqueItems",params:{i: i5, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i5+" are identical)"};if(vErrors === null){vErrors = [err573];}else {vErrors.push(err573);}errors++;break;}indices0[item0] = i5;}}}else {const err574 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err574];}else {vErrors.push(err574);}errors++;}var _valid44 = _errs599 === errors;if(_valid44 && valid141){valid141 = false;passing27 = [passing27, 1];}else {if(_valid44){valid141 = true;passing27 = 1;}}if(!valid141){const err575 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/oneOf",keyword:"oneOf",params:{passingSchemas: passing27},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err575];}else {vErrors.push(err575);}errors++;}else {errors = _errs596;if(vErrors !== null){if(_errs596){vErrors.length = _errs596;}else {vErrors = null;}}}}}else {const err576 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err576];}else {vErrors.push(err576);}errors++;}validate10.errors = vErrors;return errors === 0;}