@mapletip/data 0.1.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.
Files changed (88) hide show
  1. package/NOTICE +52 -0
  2. package/README.md +209 -0
  3. package/client/contract-compatibility.d.mts +27 -0
  4. package/client/contract-compatibility.mjs +159 -0
  5. package/client/core.d.ts +150 -0
  6. package/client/core.js +359 -0
  7. package/client/equipment.d.ts +22 -0
  8. package/client/equipment.js +63 -0
  9. package/client/items.d.ts +22 -0
  10. package/client/items.js +63 -0
  11. package/client/media.d.ts +19 -0
  12. package/client/media.js +47 -0
  13. package/client/monster-client.d.ts +35 -0
  14. package/client/monster-client.js +155 -0
  15. package/client/monsters.d.ts +24 -0
  16. package/client/monsters.js +14 -0
  17. package/client/quests.d.ts +31 -0
  18. package/client/quests.js +124 -0
  19. package/client/release.d.ts +63 -0
  20. package/client/release.js +279 -0
  21. package/client/static-client.d.ts +40 -0
  22. package/client/static-client.js +44 -0
  23. package/client/static-domains.d.ts +48 -0
  24. package/client/static-domains.js +113 -0
  25. package/generated/contract-2-catalog-fact.d.ts +51 -0
  26. package/generated/equipment-catalog-2.d.ts +434 -0
  27. package/generated/equipment-catalog-2.validator.js +17 -0
  28. package/generated/equipment-detail-2.d.ts +350 -0
  29. package/generated/equipment-detail-2.validator.js +17 -0
  30. package/generated/equipment-evidence-pack-2.d.ts +243 -0
  31. package/generated/equipment-evidence-pack-2.validator.js +17 -0
  32. package/generated/equipment-pack-2.validator.js +17 -0
  33. package/generated/equipment-relationship-pack-2.d.ts +170 -0
  34. package/generated/equipment-relationship-pack-2.validator.js +17 -0
  35. package/generated/item-catalog-2.d.ts +366 -0
  36. package/generated/item-catalog-2.validator.js +17 -0
  37. package/generated/item-detail-2.d.ts +540 -0
  38. package/generated/item-detail-2.validator.js +17 -0
  39. package/generated/item-evidence-pack-2.d.ts +243 -0
  40. package/generated/item-evidence-pack-2.validator.js +17 -0
  41. package/generated/item-pack-2.validator.js +17 -0
  42. package/generated/item-relationship-pack-2.d.ts +170 -0
  43. package/generated/item-relationship-pack-2.validator.js +17 -0
  44. package/generated/media-catalog-2.d.ts +133 -0
  45. package/generated/media-catalog-2.validator.js +17 -0
  46. package/generated/media-detail-2.d.ts +125 -0
  47. package/generated/media-detail-2.validator.js +17 -0
  48. package/generated/media-pack-2.validator.js +17 -0
  49. package/generated/monster-catalog-2.d.ts +230 -0
  50. package/generated/monster-catalog-2.validator.js +17 -0
  51. package/generated/monster-catalog.d.ts +224 -0
  52. package/generated/monster-catalog.validator.js +1 -0
  53. package/generated/monster-core-relationship-pack-2.d.ts +208 -0
  54. package/generated/monster-core-relationship-pack-2.validator.js +17 -0
  55. package/generated/monster-detail-2.d.ts +372 -0
  56. package/generated/monster-detail-2.validator.js +17 -0
  57. package/generated/monster-detail.d.ts +799 -0
  58. package/generated/monster-detail.validator.js +17 -0
  59. package/generated/monster-evidence-pack-2.d.ts +378 -0
  60. package/generated/monster-evidence-pack-2.validator.js +17 -0
  61. package/generated/monster-evidence-pack.d.ts +269 -0
  62. package/generated/monster-evidence-pack.validator.js +17 -0
  63. package/generated/monster-location-pack-2.validator.js +1 -0
  64. package/generated/monster-pack-2.validator.js +17 -0
  65. package/generated/monster-pack.validator.js +17 -0
  66. package/generated/monster-relationship-pack.d.ts +126 -0
  67. package/generated/monster-relationship-pack.validator.js +1 -0
  68. package/generated/product-manifest.d.ts +188 -0
  69. package/generated/product-manifest.validator.js +1 -0
  70. package/generated/quest-auxiliary-pack-2.d.ts +391 -0
  71. package/generated/quest-auxiliary-pack-2.validator.js +17 -0
  72. package/generated/quest-browse-pack-2.d.ts +353 -0
  73. package/generated/quest-browse-pack-2.validator.js +17 -0
  74. package/generated/quest-catalog-2.d.ts +501 -0
  75. package/generated/quest-catalog-2.validator.js +17 -0
  76. package/generated/quest-evidence-pack-2.d.ts +269 -0
  77. package/generated/quest-evidence-pack-2.validator.js +17 -0
  78. package/generated/quest-pack-2.d.ts +410 -0
  79. package/generated/quest-pack-2.validator.js +17 -0
  80. package/generated/quest-relationship-pack-2.d.ts +868 -0
  81. package/generated/quest-relationship-pack-2.validator.js +17 -0
  82. package/generated/release-build-index.d.ts +42 -0
  83. package/generated/release-build-index.validator.js +1 -0
  84. package/generated/release-manifest.d.ts +24 -0
  85. package/generated/release-manifest.validator.js +1 -0
  86. package/generated/release-pin.d.ts +12 -0
  87. package/generated/release-pin.validator.js +1 -0
  88. package/package.json +155 -0
@@ -0,0 +1,17 @@
1
+ "use strict";export const validate = validate20;export default validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","title":"MonsterEvidencePackV2","type":"object","properties":{"contractVersion":{"type":"string","const":"2.0"},"format":{"type":"string","const":"mapletip.monster-evidence-pack-2"},"historicalOverlayPin":{"anyOf":[{"$ref":"#/$defs/ProductHistoricalOverlay"},{"type":"null"}]},"recordKind":{"type":"string"},"records":{"type":"object","additionalProperties":{"$ref":"#/$defs/MonsterEvidencePageV2"}},"scope":{"$ref":"#/$defs/BuildScope"}},"additionalProperties":false,"required":["format","contractVersion","scope","recordKind","records"],"$defs":{"AssociationState":{"description":"Canonical association state supplied by the B1 normalizer.","type":"string","enum":["resolved","unresolved","ambiguous","unknown","unsupported"]},"BuildScope":{"description":"Build scope specifying the game family and concrete build identity.","type":"object","properties":{"build_id":{"description":"Exact build identity (e.g., 'gms-v83', 'cw-cot2').","type":"string"},"family_id":{"description":"Family identity (e.g., 'gms', 'classic-world').","type":"string"}},"required":["family_id","build_id"]},"Capability":{"type":"string","minLength":1,"pattern":"\\S"},"CatalogueMembership":{"description":"Independent catalogue membership state.","type":"string","enum":["present","verified-absent","unknown"]},"Coverage":{"description":"Universal completeness and coverage indicator (contracts.md § Shared semantic shapes).","oneOf":[{"description":"100% of upstream source records represented.","type":"string","const":"complete"},{"description":"Bounded or deliberate subset.","type":"string","const":"partial"},{"description":"Upstream source completeness cannot be certified.","type":"string","const":"unknown"},{"description":"Domain or capability not provided by upstream.","type":"string","const":"unsupported"}]},"CoverageKey":{"type":"string","minLength":1,"pattern":"\\S"},"DropEvidenceAttribution":{"description":"One source `MonsterBook` assertion retained on a deduplicated CW pair.","type":"object","properties":{"attribution":{"type":"string"},"confidence":{"$ref":"#/$defs/HistoricalDropConfidence"},"crosswalkInputSha256":{"type":"string"},"evidenceKey":{"type":"string"},"evidenceKind":{"$ref":"#/$defs/DropEvidenceKind"},"propertyPath":{"type":"string"},"reviewReference":{"type":"string"},"sourceBuild":{"type":"string"},"sourceIdentity":{"$ref":"#/$defs/SourceIdentity"},"sourceInputSha256":{"type":"string"},"sourceRecordKey":{"type":"string"},"transform":{"type":"string"}},"required":["evidenceKey","evidenceKind","sourceBuild","sourceIdentity","sourceRecordKey","propertyPath","transform","confidence","attribution","reviewReference","sourceInputSha256","crosswalkInputSha256"]},"DropEvidenceKind":{"description":"Kind of evidence attribution attached to a Monster drop pair.","type":"string","enum":["native","supplemental-historical"]},"EntityKey":{"type":"string","minLength":1,"pattern":"\\S"},"EntityRef":{"description":"Shared entity-reference states. The generic parameter brands resolved keys\nfor the target domain without changing their JSON representation.","oneOf":[{"description":"Target has a canonical key in the exact build.","type":"object","properties":{"key":{"$ref":"#/$defs/EntityKey"},"state":{"type":"string","const":"resolved"}},"additionalProperties":false,"required":["state","key"]},{"description":"The source observation exists but does not resolve to a canonical key.","type":"object","properties":{"sourceId":{"$ref":"#/$defs/RawSourceId"},"state":{"type":"string","const":"unresolved"}},"additionalProperties":false,"required":["state","sourceId"]},{"description":"More than one canonical target remains possible; none is selected.","type":"object","properties":{"candidateKeys":{"type":"array","items":{"$ref":"#/$defs/EntityKey"}},"state":{"type":"string","const":"ambiguous"}},"additionalProperties":false,"required":["state","candidateKeys"]},{"description":"The target product or target identity is unavailable for a named reason.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unavailable"}},"additionalProperties":false,"required":["state","reason"]}]},"FactState":{"description":"Shared fact state. SQL NULL is represented by `Unknown` with reason\n`source-null`; only `Absent` carries a complete-coverage witness.","oneOf":[{"description":"A positively observed value.","type":"object","properties":{"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"known"},"value":{"$ref":"#/$defs/LogicalSourceAddress"}},"additionalProperties":false,"required":["state","value"]},{"description":"A value that was not observed or could not be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"No value was present under the source scope named by complete coverage.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"The named source or product cannot provide this fact.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]},"FactState2":{"description":"Shared fact state. SQL NULL is represented by `Unknown` with reason\n`source-null`; only `Absent` carries a complete-coverage witness.","oneOf":[{"description":"A positively observed value.","type":"object","properties":{"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"known"},"value":{"$ref":"#/$defs/RawValue"}},"additionalProperties":false,"required":["state","value"]},{"description":"A value that was not observed or could not be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"No value was present under the source scope named by complete coverage.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"The named source or product cannot provide this fact.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]},"FactState3":{"description":"Shared fact state. SQL NULL is represented by `Unknown` with reason\n`source-null`; only `Absent` carries a complete-coverage witness.","oneOf":[{"description":"A positively observed value.","type":"object","properties":{"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"known"},"value":{"$ref":"#/$defs/EntityRef"}},"additionalProperties":false,"required":["state","value"]},{"description":"A value that was not observed or could not be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"No value was present under the source scope named by complete coverage.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"The named source or product cannot provide this fact.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]},"HistoricalDropConfidence":{"description":"Confidence in a historical assertion as evidence about a target build.","type":"string","enum":["maybe"]},"HistoricalEvidenceAttribution":{"description":"Group of source assertions supporting one exact public Monster/item pair.","type":"object","properties":{"assertions":{"type":"array","items":{"$ref":"#/$defs/DropEvidenceAttribution"}}},"required":["assertions"]},"LogicalSourceAddress":{"type":"string","minLength":1,"pattern":"^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$"},"MonsterCoreOccurrenceV2":{"description":"One source occurrence retained by a selected Monster-core collection.","type":"object","properties":{"fields":{"description":"Selected source and normalized fields, keyed by inventory field name.","type":"object","additionalProperties":{"$ref":"#/$defs/FactState2"}},"occurrenceKey":{"description":"Stable key derived from build, source identity, collection and occurrence address.","type":"string"},"ownerKey":{"description":"Stable public key of the occurrence's Monster, `MobSkill`, or group owner.","type":["string","null"]},"references":{"description":"Canonical target references; raw source IDs remain in `fields`.","type":"object","additionalProperties":{"$ref":"#/$defs/FactState3"}},"sourcePath":{"description":"Exact logical source path when it was retained by normalization.","$ref":"#/$defs/FactState"}},"additionalProperties":false,"required":["occurrenceKey","sourcePath","fields","references"]},"MonsterDropAssertionV2":{"oneOf":[{"description":"Native evidence from the product's own exact build input.","type":"object","properties":{"assertionKind":{"type":"string","const":"native"},"evidenceKey":{"type":"string"},"monsterKey":{"type":"string"},"occurrence":{"$ref":"#/$defs/MonsterDropEntryV2"},"sourceBuild":{"type":"string"},"sourceInput":{"$ref":"#/$defs/ProductInputPin"}},"required":["assertionKind","evidenceKey","monsterKey","sourceBuild","sourceInput","occurrence"]},{"description":"One assertion from the separately pinned GMS v83 to CW Launch overlay.","type":"object","properties":{"assertionKind":{"type":"string","const":"historical-overlay"},"attribution":{"$ref":"#/$defs/DropEvidenceAttribution"},"category":{"type":["string","null"]},"evidenceKey":{"type":"string"},"itemClass":{"type":["string","null"]},"itemKey":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemSourceId":{"type":"string"},"monsterKey":{"type":"string"},"sourceBuild":{"type":"string"}},"required":["assertionKind","evidenceKey","monsterKey","sourceBuild","attribution","itemSourceId"]}]},"MonsterDropEntryV2":{"description":"Monster 2.0 evidence occurrence with an artifact-independent target reference.","type":"object","properties":{"category":{"type":["string","null"]},"conditions":{"type":["string","null"]},"evidenceAttribution":{"anyOf":[{"$ref":"#/$defs/HistoricalEvidenceAttribution"},{"type":"null"}]},"evidenceId":{"type":"string"},"evidenceSource":{"type":"string"},"itemClass":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemRef":{"$ref":"#/$defs/MonsterEntityRefV2"},"ordinal":{"type":"integer","format":"uint","maximum":9007199254740991,"minimum":0},"quantityMax":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}]},"quantityMin":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}]},"rate":{"type":["number","null"],"format":"double"},"rateDenominator":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}]},"sourcePath":{"type":"string"}},"additionalProperties":false,"required":["evidenceId","evidenceSource","sourcePath","ordinal","itemRef"]},"MonsterEntityRefV2":{"description":"Monster 2.0 target reference. Product availability belongs to the release envelope and is\ndeliberately omitted from this immutable product record.","type":"object","properties":{"associationState":{"$ref":"#/$defs/AssociationState"},"candidateCount":{"type":["integer","null"],"format":"uint","maximum":9007199254740991,"minimum":0},"candidateCoverage":{"$ref":"#/$defs/Coverage"},"catalogueMembership":{"$ref":"#/$defs/CatalogueMembership"},"evidenceKey":{"type":["string","null"]},"key":{"type":["string","null"]},"kind":{"type":"string"},"namespace":{"type":["string","null"]},"sourceIdentity":{"$ref":"#/$defs/SourceIdentity"},"state":{"$ref":"#/$defs/RefState"},"typedVersion":{"$ref":"#/$defs/TypedVersionState"}},"additionalProperties":false,"required":["state","kind","sourceIdentity","associationState","catalogueMembership","typedVersion","candidateCoverage"]},"MonsterEvidencePageV2":{"type":"object","properties":{"collection":{"type":"string"},"dropAssertions":{"type":"array","items":{"$ref":"#/$defs/MonsterDropAssertionV2"}},"monsterKey":{"type":["string","null"]},"quests":{"type":"array","items":{"$ref":"#/$defs/MonsterQuestEntryV2"}},"sourceEvidence":{"type":"array","items":{"$ref":"#/$defs/MonsterCoreOccurrenceV2"}}},"additionalProperties":false,"required":["collection"]},"MonsterQuestEntryV2":{"description":"Monster 2.0 quest occurrence with an artifact-independent target reference.","type":"object","properties":{"countGroupId":{"type":["string","null"]},"killCount":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}]},"memberOrdinal":{"type":["integer","null"],"format":"uint","maximum":9007199254740991,"minimum":0},"occurrenceKey":{"type":"string"},"phase":{"$ref":"#/$defs/Nullable_string"},"questName":{"type":["string","null"]},"questRef":{"$ref":"#/$defs/MonsterEntityRefV2"},"questSourceId":{"type":"string"},"requirementKind":{"type":"string"},"requirementOrdinal":{"type":"integer","format":"uint","maximum":9007199254740991,"minimum":0},"sourcePath":{"type":"string"},"stateKey":{"$ref":"#/$defs/SafeInt64"}},"additionalProperties":false,"required":["occurrenceKey","stateKey","requirementKind","questRef","questSourceId","sourcePath","requirementOrdinal","phase"]},"Nullable_string":{"type":["string","null"]},"ProductHistoricalOverlay":{"type":"object","properties":{"artifactSha256":{"type":"string"},"crosswalkManifestSha256":{"type":"string"},"enabled":{"type":"boolean"},"format":{"type":"string"},"reviewReference":{"type":"string"},"sourceInput":{"$ref":"#/$defs/ProductInputPin"},"targetInput":{"$ref":"#/$defs/ProductInputPin"},"transform":{"type":"string"}},"required":["enabled","format","artifactSha256","sourceInput","targetInput","crosswalkManifestSha256","transform","reviewReference"]},"ProductInputPin":{"type":"object","properties":{"buildId":{"type":"string"},"familyId":{"type":"string"},"fileSha256":{"type":"string"},"snapshotRoot":{"type":"string"},"snapshotScheme":{"type":"string"}},"required":["familyId","buildId","fileSha256","snapshotScheme","snapshotRoot"]},"RawScalar":{"description":"A scalar source observation that preserves the source value kind.","oneOf":[{"description":"Source integer, constrained to the JavaScript safe-integer range.","type":"object","properties":{"kind":{"type":"string","const":"integer"},"value":{"$ref":"#/$defs/SafeInt64"}},"additionalProperties":false,"required":["kind","value"]},{"description":"Source floating-point value; JSON serialization rejects non-finite values.","type":"object","properties":{"kind":{"type":"string","const":"real"},"value":{"type":"number","format":"double"}},"additionalProperties":false,"required":["kind","value"]},{"description":"Source text, with lexical spelling preserved.","type":"object","properties":{"kind":{"type":"string","const":"text"},"value":{"type":"string"}},"additionalProperties":false,"required":["kind","value"]},{"description":"Source boolean.","type":"object","properties":{"kind":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"additionalProperties":false,"required":["kind","value"]},{"description":"Source bytes, preserved as an ordered byte array.","type":"object","properties":{"kind":{"type":"string","const":"bytes"},"value":{"type":"array","items":{"type":"integer","format":"uint8","maximum":255,"minimum":0}}},"additionalProperties":false,"required":["kind","value"]},{"description":"A source format explicitly recorded a null scalar.","type":"object","properties":{"kind":{"type":"string","const":"source-null"}},"additionalProperties":false,"required":["kind"]}]},"RawSourceId":{"type":"string","minLength":1,"pattern":"\\S"},"RawValue":{"description":"A raw value and its optional source attribution.","type":"object","properties":{"scalar":{"$ref":"#/$defs/RawScalar"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]}},"additionalProperties":false,"required":["scalar"]},"RefState":{"description":"Projection state for a public reference.","type":"string","enum":["resolved","unresolved","ambiguous","unknown","absent","unsupported"]},"SafeInt64":{"type":"integer","format":"int64","maximum":9007199254740991,"minimum":-9007199254740991},"SourceIdentity":{"description":"Upstream source identity coordinates.","type":"object","properties":{"discriminator":{"description":"Explicit source discriminator when one ID has multiple records (empty or omitted when unused).","type":["string","null"]},"id":{"description":"Exact upstream source identifier (e.g., '0100100').","type":"string"},"namespace":{"description":"Source namespace (e.g., 'wz.mob', 'wz.item', 'wz.map'). None when missing or ambiguous.","type":["string","null"]}},"required":["id"]},"SourceKind":{"type":"string","minLength":1,"pattern":"\\S"},"SourceRef":{"description":"Source attribution for a fact or raw observation.","type":"object","properties":{"logicalAddress":{"description":"Optional logical address within the source; never a local file path.","anyOf":[{"$ref":"#/$defs/LogicalSourceAddress"},{"type":"null"}]},"sourceKind":{"description":"Source family or source kind, preserved as supplied by the producer.","$ref":"#/$defs/SourceKind"}},"additionalProperties":false,"required":["sourceKind"]},"StateReason":{"type":"string","minLength":1,"pattern":"\\S"},"TypedVersionState":{"description":"Independent typed-version availability state.","type":"string","enum":["available","unavailable","unknown"]}}};const schema83 = {"description":"Build scope specifying the game family and concrete build identity.","type":"object","properties":{"build_id":{"description":"Exact build identity (e.g., 'gms-v83', 'cw-cot2').","type":"string"},"family_id":{"description":"Family identity (e.g., 'gms', 'classic-world').","type":"string"}},"required":["family_id","build_id"]};const schema32 = {"type":"object","properties":{"artifactSha256":{"type":"string"},"crosswalkManifestSha256":{"type":"string"},"enabled":{"type":"boolean"},"format":{"type":"string"},"reviewReference":{"type":"string"},"sourceInput":{"$ref":"#/$defs/ProductInputPin"},"targetInput":{"$ref":"#/$defs/ProductInputPin"},"transform":{"type":"string"}},"required":["enabled","format","artifactSha256","sourceInput","targetInput","crosswalkManifestSha256","transform","reviewReference"]};const schema33 = {"type":"object","properties":{"buildId":{"type":"string"},"familyId":{"type":"string"},"fileSha256":{"type":"string"},"snapshotRoot":{"type":"string"},"snapshotScheme":{"type":"string"}},"required":["familyId","buildId","fileSha256","snapshotScheme","snapshotRoot"]};function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate21.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.enabled === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "enabled"},message:"must have required property '"+"enabled"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.format === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.artifactSha256 === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "artifactSha256"},message:"must have required property '"+"artifactSha256"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.sourceInput === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceInput"},message:"must have required property '"+"sourceInput"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.targetInput === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "targetInput"},message:"must have required property '"+"targetInput"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.crosswalkManifestSha256 === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "crosswalkManifestSha256"},message:"must have required property '"+"crosswalkManifestSha256"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.transform === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "transform"},message:"must have required property '"+"transform"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.reviewReference === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "reviewReference"},message:"must have required property '"+"reviewReference"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.artifactSha256 !== undefined){if(typeof data.artifactSha256 !== "string"){const err8 = {instancePath:instancePath+"/artifactSha256",schemaPath:"#/properties/artifactSha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.crosswalkManifestSha256 !== undefined){if(typeof data.crosswalkManifestSha256 !== "string"){const err9 = {instancePath:instancePath+"/crosswalkManifestSha256",schemaPath:"#/properties/crosswalkManifestSha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.enabled !== undefined){if(typeof data.enabled !== "boolean"){const err10 = {instancePath:instancePath+"/enabled",schemaPath:"#/properties/enabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.format !== undefined){if(typeof data.format !== "string"){const err11 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.reviewReference !== undefined){if(typeof data.reviewReference !== "string"){const err12 = {instancePath:instancePath+"/reviewReference",schemaPath:"#/properties/reviewReference/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.sourceInput !== undefined){let data5 = data.sourceInput;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.familyId === undefined){const err13 = {instancePath:instancePath+"/sourceInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "familyId"},message:"must have required property '"+"familyId"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data5.buildId === undefined){const err14 = {instancePath:instancePath+"/sourceInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "buildId"},message:"must have required property '"+"buildId"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data5.fileSha256 === undefined){const err15 = {instancePath:instancePath+"/sourceInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "fileSha256"},message:"must have required property '"+"fileSha256"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data5.snapshotScheme === undefined){const err16 = {instancePath:instancePath+"/sourceInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "snapshotScheme"},message:"must have required property '"+"snapshotScheme"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data5.snapshotRoot === undefined){const err17 = {instancePath:instancePath+"/sourceInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "snapshotRoot"},message:"must have required property '"+"snapshotRoot"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(data5.buildId !== undefined){if(typeof data5.buildId !== "string"){const err18 = {instancePath:instancePath+"/sourceInput/buildId",schemaPath:"#/$defs/ProductInputPin/properties/buildId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data5.familyId !== undefined){if(typeof data5.familyId !== "string"){const err19 = {instancePath:instancePath+"/sourceInput/familyId",schemaPath:"#/$defs/ProductInputPin/properties/familyId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data5.fileSha256 !== undefined){if(typeof data5.fileSha256 !== "string"){const err20 = {instancePath:instancePath+"/sourceInput/fileSha256",schemaPath:"#/$defs/ProductInputPin/properties/fileSha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data5.snapshotRoot !== undefined){if(typeof data5.snapshotRoot !== "string"){const err21 = {instancePath:instancePath+"/sourceInput/snapshotRoot",schemaPath:"#/$defs/ProductInputPin/properties/snapshotRoot/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data5.snapshotScheme !== undefined){if(typeof data5.snapshotScheme !== "string"){const err22 = {instancePath:instancePath+"/sourceInput/snapshotScheme",schemaPath:"#/$defs/ProductInputPin/properties/snapshotScheme/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}else {const err23 = {instancePath:instancePath+"/sourceInput",schemaPath:"#/$defs/ProductInputPin/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data.targetInput !== undefined){let data11 = data.targetInput;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.familyId === undefined){const err24 = {instancePath:instancePath+"/targetInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "familyId"},message:"must have required property '"+"familyId"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(data11.buildId === undefined){const err25 = {instancePath:instancePath+"/targetInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "buildId"},message:"must have required property '"+"buildId"+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(data11.fileSha256 === undefined){const err26 = {instancePath:instancePath+"/targetInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "fileSha256"},message:"must have required property '"+"fileSha256"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data11.snapshotScheme === undefined){const err27 = {instancePath:instancePath+"/targetInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "snapshotScheme"},message:"must have required property '"+"snapshotScheme"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data11.snapshotRoot === undefined){const err28 = {instancePath:instancePath+"/targetInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "snapshotRoot"},message:"must have required property '"+"snapshotRoot"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data11.buildId !== undefined){if(typeof data11.buildId !== "string"){const err29 = {instancePath:instancePath+"/targetInput/buildId",schemaPath:"#/$defs/ProductInputPin/properties/buildId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data11.familyId !== undefined){if(typeof data11.familyId !== "string"){const err30 = {instancePath:instancePath+"/targetInput/familyId",schemaPath:"#/$defs/ProductInputPin/properties/familyId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data11.fileSha256 !== undefined){if(typeof data11.fileSha256 !== "string"){const err31 = {instancePath:instancePath+"/targetInput/fileSha256",schemaPath:"#/$defs/ProductInputPin/properties/fileSha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data11.snapshotRoot !== undefined){if(typeof data11.snapshotRoot !== "string"){const err32 = {instancePath:instancePath+"/targetInput/snapshotRoot",schemaPath:"#/$defs/ProductInputPin/properties/snapshotRoot/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data11.snapshotScheme !== undefined){if(typeof data11.snapshotScheme !== "string"){const err33 = {instancePath:instancePath+"/targetInput/snapshotScheme",schemaPath:"#/$defs/ProductInputPin/properties/snapshotScheme/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}else {const err34 = {instancePath:instancePath+"/targetInput",schemaPath:"#/$defs/ProductInputPin/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data.transform !== undefined){if(typeof data.transform !== "string"){const err35 = {instancePath:instancePath+"/transform",schemaPath:"#/properties/transform/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}}else {const err36 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}validate21.errors = vErrors;return errors === 0;}validate21.evaluated = {"props":{"artifactSha256":true,"crosswalkManifestSha256":true,"enabled":true,"format":true,"reviewReference":true,"sourceInput":true,"targetInput":true,"transform":true},"dynamicProps":false,"dynamicItems":false};const schema35 = {"type":"object","properties":{"collection":{"type":"string"},"dropAssertions":{"type":"array","items":{"$ref":"#/$defs/MonsterDropAssertionV2"}},"monsterKey":{"type":["string","null"]},"quests":{"type":"array","items":{"$ref":"#/$defs/MonsterQuestEntryV2"}},"sourceEvidence":{"type":"array","items":{"$ref":"#/$defs/MonsterCoreOccurrenceV2"}}},"additionalProperties":false,"required":["collection"]};const schema36 = {"oneOf":[{"description":"Native evidence from the product's own exact build input.","type":"object","properties":{"assertionKind":{"type":"string","const":"native"},"evidenceKey":{"type":"string"},"monsterKey":{"type":"string"},"occurrence":{"$ref":"#/$defs/MonsterDropEntryV2"},"sourceBuild":{"type":"string"},"sourceInput":{"$ref":"#/$defs/ProductInputPin"}},"required":["assertionKind","evidenceKey","monsterKey","sourceBuild","sourceInput","occurrence"]},{"description":"One assertion from the separately pinned GMS v83 to CW Launch overlay.","type":"object","properties":{"assertionKind":{"type":"string","const":"historical-overlay"},"attribution":{"$ref":"#/$defs/DropEvidenceAttribution"},"category":{"type":["string","null"]},"evidenceKey":{"type":"string"},"itemClass":{"type":["string","null"]},"itemKey":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemSourceId":{"type":"string"},"monsterKey":{"type":"string"},"sourceBuild":{"type":"string"}},"required":["assertionKind","evidenceKey","monsterKey","sourceBuild","attribution","itemSourceId"]}]};const schema37 = {"description":"Monster 2.0 evidence occurrence with an artifact-independent target reference.","type":"object","properties":{"category":{"type":["string","null"]},"conditions":{"type":["string","null"]},"evidenceAttribution":{"anyOf":[{"$ref":"#/$defs/HistoricalEvidenceAttribution"},{"type":"null"}]},"evidenceId":{"type":"string"},"evidenceSource":{"type":"string"},"itemClass":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemRef":{"$ref":"#/$defs/MonsterEntityRefV2"},"ordinal":{"type":"integer","format":"uint","maximum":9007199254740991,"minimum":0},"quantityMax":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}]},"quantityMin":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}]},"rate":{"type":["number","null"],"format":"double"},"rateDenominator":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}]},"sourcePath":{"type":"string"}},"additionalProperties":false,"required":["evidenceId","evidenceSource","sourcePath","ordinal","itemRef"]};const schema50 = {"type":"integer","format":"int64","maximum":9007199254740991,"minimum":-9007199254740991};const func1 = Object.prototype.hasOwnProperty;const schema38 = {"description":"Group of source assertions supporting one exact public Monster/item pair.","type":"object","properties":{"assertions":{"type":"array","items":{"$ref":"#/$defs/DropEvidenceAttribution"}}},"required":["assertions"]};const schema39 = {"description":"One source `MonsterBook` assertion retained on a deduplicated CW pair.","type":"object","properties":{"attribution":{"type":"string"},"confidence":{"$ref":"#/$defs/HistoricalDropConfidence"},"crosswalkInputSha256":{"type":"string"},"evidenceKey":{"type":"string"},"evidenceKind":{"$ref":"#/$defs/DropEvidenceKind"},"propertyPath":{"type":"string"},"reviewReference":{"type":"string"},"sourceBuild":{"type":"string"},"sourceIdentity":{"$ref":"#/$defs/SourceIdentity"},"sourceInputSha256":{"type":"string"},"sourceRecordKey":{"type":"string"},"transform":{"type":"string"}},"required":["evidenceKey","evidenceKind","sourceBuild","sourceIdentity","sourceRecordKey","propertyPath","transform","confidence","attribution","reviewReference","sourceInputSha256","crosswalkInputSha256"]};const schema40 = {"description":"Confidence in a historical assertion as evidence about a target build.","type":"string","enum":["maybe"]};const schema41 = {"description":"Kind of evidence attribution attached to a Monster drop pair.","type":"string","enum":["native","supplemental-historical"]};const schema42 = {"description":"Upstream source identity coordinates.","type":"object","properties":{"discriminator":{"description":"Explicit source discriminator when one ID has multiple records (empty or omitted when unused).","type":["string","null"]},"id":{"description":"Exact upstream source identifier (e.g., '0100100').","type":"string"},"namespace":{"description":"Source namespace (e.g., 'wz.mob', 'wz.item', 'wz.map'). None when missing or ambiguous.","type":["string","null"]}},"required":["id"]};function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate27.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.evidenceKey === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "evidenceKey"},message:"must have required property '"+"evidenceKey"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.evidenceKind === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "evidenceKind"},message:"must have required property '"+"evidenceKind"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.sourceBuild === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceBuild"},message:"must have required property '"+"sourceBuild"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.sourceIdentity === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceIdentity"},message:"must have required property '"+"sourceIdentity"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.sourceRecordKey === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceRecordKey"},message:"must have required property '"+"sourceRecordKey"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.propertyPath === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "propertyPath"},message:"must have required property '"+"propertyPath"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.transform === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "transform"},message:"must have required property '"+"transform"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.confidence === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "confidence"},message:"must have required property '"+"confidence"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.attribution === undefined){const err8 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "attribution"},message:"must have required property '"+"attribution"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.reviewReference === undefined){const err9 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "reviewReference"},message:"must have required property '"+"reviewReference"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.sourceInputSha256 === undefined){const err10 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceInputSha256"},message:"must have required property '"+"sourceInputSha256"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data.crosswalkInputSha256 === undefined){const err11 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "crosswalkInputSha256"},message:"must have required property '"+"crosswalkInputSha256"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data.attribution !== undefined){if(typeof data.attribution !== "string"){const err12 = {instancePath:instancePath+"/attribution",schemaPath:"#/properties/attribution/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.confidence !== undefined){let data1 = data.confidence;if(typeof data1 !== "string"){const err13 = {instancePath:instancePath+"/confidence",schemaPath:"#/$defs/HistoricalDropConfidence/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(!(data1 === "maybe")){const err14 = {instancePath:instancePath+"/confidence",schemaPath:"#/$defs/HistoricalDropConfidence/enum",keyword:"enum",params:{allowedValues: schema40.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.crosswalkInputSha256 !== undefined){if(typeof data.crosswalkInputSha256 !== "string"){const err15 = {instancePath:instancePath+"/crosswalkInputSha256",schemaPath:"#/properties/crosswalkInputSha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data.evidenceKey !== undefined){if(typeof data.evidenceKey !== "string"){const err16 = {instancePath:instancePath+"/evidenceKey",schemaPath:"#/properties/evidenceKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.evidenceKind !== undefined){let data4 = data.evidenceKind;if(typeof data4 !== "string"){const err17 = {instancePath:instancePath+"/evidenceKind",schemaPath:"#/$defs/DropEvidenceKind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(!((data4 === "native") || (data4 === "supplemental-historical"))){const err18 = {instancePath:instancePath+"/evidenceKind",schemaPath:"#/$defs/DropEvidenceKind/enum",keyword:"enum",params:{allowedValues: schema41.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.propertyPath !== undefined){if(typeof data.propertyPath !== "string"){const err19 = {instancePath:instancePath+"/propertyPath",schemaPath:"#/properties/propertyPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.reviewReference !== undefined){if(typeof data.reviewReference !== "string"){const err20 = {instancePath:instancePath+"/reviewReference",schemaPath:"#/properties/reviewReference/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.sourceBuild !== undefined){if(typeof data.sourceBuild !== "string"){const err21 = {instancePath:instancePath+"/sourceBuild",schemaPath:"#/properties/sourceBuild/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.sourceIdentity !== undefined){let data8 = data.sourceIdentity;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.id === undefined){const err22 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/$defs/SourceIdentity/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data8.discriminator !== undefined){let data9 = data8.discriminator;if((typeof data9 !== "string") && (data9 !== null)){const err23 = {instancePath:instancePath+"/sourceIdentity/discriminator",schemaPath:"#/$defs/SourceIdentity/properties/discriminator/type",keyword:"type",params:{type: schema42.properties.discriminator.type},message:"must be string,null"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data8.id !== undefined){if(typeof data8.id !== "string"){const err24 = {instancePath:instancePath+"/sourceIdentity/id",schemaPath:"#/$defs/SourceIdentity/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data8.namespace !== undefined){let data11 = data8.namespace;if((typeof data11 !== "string") && (data11 !== null)){const err25 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/$defs/SourceIdentity/properties/namespace/type",keyword:"type",params:{type: schema42.properties.namespace.type},message:"must be string,null"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}else {const err26 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/$defs/SourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data.sourceInputSha256 !== undefined){if(typeof data.sourceInputSha256 !== "string"){const err27 = {instancePath:instancePath+"/sourceInputSha256",schemaPath:"#/properties/sourceInputSha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data.sourceRecordKey !== undefined){if(typeof data.sourceRecordKey !== "string"){const err28 = {instancePath:instancePath+"/sourceRecordKey",schemaPath:"#/properties/sourceRecordKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data.transform !== undefined){if(typeof data.transform !== "string"){const err29 = {instancePath:instancePath+"/transform",schemaPath:"#/properties/transform/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}validate27.errors = vErrors;return errors === 0;}validate27.evaluated = {"props":{"attribution":true,"confidence":true,"crosswalkInputSha256":true,"evidenceKey":true,"evidenceKind":true,"propertyPath":true,"reviewReference":true,"sourceBuild":true,"sourceIdentity":true,"sourceInputSha256":true,"sourceRecordKey":true,"transform":true},"dynamicProps":false,"dynamicItems":false};function validate26(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate26.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.assertions === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "assertions"},message:"must have required property '"+"assertions"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.assertions !== undefined){let data0 = data.assertions;if(Array.isArray(data0)){const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(!(validate27(data0[i0], {instancePath:instancePath+"/assertions/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);errors = vErrors.length;}}}else {const err1 = {instancePath:instancePath+"/assertions",schemaPath:"#/properties/assertions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}else {const err2 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}validate26.errors = vErrors;return errors === 0;}validate26.evaluated = {"props":{"assertions":true},"dynamicProps":false,"dynamicItems":false};const schema43 = {"description":"Monster 2.0 target reference. Product availability belongs to the release envelope and is\ndeliberately omitted from this immutable product record.","type":"object","properties":{"associationState":{"$ref":"#/$defs/AssociationState"},"candidateCount":{"type":["integer","null"],"format":"uint","maximum":9007199254740991,"minimum":0},"candidateCoverage":{"$ref":"#/$defs/Coverage"},"catalogueMembership":{"$ref":"#/$defs/CatalogueMembership"},"evidenceKey":{"type":["string","null"]},"key":{"type":["string","null"]},"kind":{"type":"string"},"namespace":{"type":["string","null"]},"sourceIdentity":{"$ref":"#/$defs/SourceIdentity"},"state":{"$ref":"#/$defs/RefState"},"typedVersion":{"$ref":"#/$defs/TypedVersionState"}},"additionalProperties":false,"required":["state","kind","sourceIdentity","associationState","catalogueMembership","typedVersion","candidateCoverage"]};const schema44 = {"description":"Canonical association state supplied by the B1 normalizer.","type":"string","enum":["resolved","unresolved","ambiguous","unknown","unsupported"]};const schema45 = {"description":"Universal completeness and coverage indicator (contracts.md § Shared semantic shapes).","oneOf":[{"description":"100% of upstream source records represented.","type":"string","const":"complete"},{"description":"Bounded or deliberate subset.","type":"string","const":"partial"},{"description":"Upstream source completeness cannot be certified.","type":"string","const":"unknown"},{"description":"Domain or capability not provided by upstream.","type":"string","const":"unsupported"}]};const schema46 = {"description":"Independent catalogue membership state.","type":"string","enum":["present","verified-absent","unknown"]};const schema48 = {"description":"Projection state for a public reference.","type":"string","enum":["resolved","unresolved","ambiguous","unknown","absent","unsupported"]};const schema49 = {"description":"Independent typed-version availability state.","type":"string","enum":["available","unavailable","unknown"]};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate30.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.kind === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.sourceIdentity === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceIdentity"},message:"must have required property '"+"sourceIdentity"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.associationState === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "associationState"},message:"must have required property '"+"associationState"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.catalogueMembership === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "catalogueMembership"},message:"must have required property '"+"catalogueMembership"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.typedVersion === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "typedVersion"},message:"must have required property '"+"typedVersion"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.candidateCoverage === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "candidateCoverage"},message:"must have required property '"+"candidateCoverage"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}for(const key0 in data){if(!(func1.call(schema43.properties, key0))){const err7 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.associationState !== undefined){let data0 = data.associationState;if(typeof data0 !== "string"){const err8 = {instancePath:instancePath+"/associationState",schemaPath:"#/$defs/AssociationState/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(!(((((data0 === "resolved") || (data0 === "unresolved")) || (data0 === "ambiguous")) || (data0 === "unknown")) || (data0 === "unsupported"))){const err9 = {instancePath:instancePath+"/associationState",schemaPath:"#/$defs/AssociationState/enum",keyword:"enum",params:{allowedValues: schema44.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.candidateCount !== undefined){let data1 = data.candidateCount;if((!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))) && (data1 !== null)){const err10 = {instancePath:instancePath+"/candidateCount",schemaPath:"#/properties/candidateCount/type",keyword:"type",params:{type: schema43.properties.candidateCount.type},message:"must be integer,null"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 9007199254740991 || isNaN(data1)){const err11 = {instancePath:instancePath+"/candidateCount",schemaPath:"#/properties/candidateCount/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data1 < 0 || isNaN(data1)){const err12 = {instancePath:instancePath+"/candidateCount",schemaPath:"#/properties/candidateCount/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}if(data.candidateCoverage !== undefined){let data2 = data.candidateCoverage;const _errs9 = errors;let valid3 = false;let passing0 = null;const _errs10 = errors;if(typeof data2 !== "string"){const err13 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("complete" !== data2){const err14 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/0/const",keyword:"const",params:{allowedValue: "complete"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid0 = _errs10 === errors;if(_valid0){valid3 = true;passing0 = 0;}const _errs12 = errors;if(typeof data2 !== "string"){const err15 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("partial" !== data2){const err16 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/1/const",keyword:"const",params:{allowedValue: "partial"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid0 = _errs12 === errors;if(_valid0 && valid3){valid3 = false;passing0 = [passing0, 1];}else {if(_valid0){valid3 = true;passing0 = 1;}const _errs14 = errors;if(typeof data2 !== "string"){const err17 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("unknown" !== data2){const err18 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/2/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid0 = _errs14 === errors;if(_valid0 && valid3){valid3 = false;passing0 = [passing0, 2];}else {if(_valid0){valid3 = true;passing0 = 2;}const _errs16 = errors;if(typeof data2 !== "string"){const err19 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("unsupported" !== data2){const err20 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/3/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid0 = _errs16 === errors;if(_valid0 && valid3){valid3 = false;passing0 = [passing0, 3];}else {if(_valid0){valid3 = true;passing0 = 3;}}}}if(!valid3){const err21 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}}if(data.catalogueMembership !== undefined){let data3 = data.catalogueMembership;if(typeof data3 !== "string"){const err22 = {instancePath:instancePath+"/catalogueMembership",schemaPath:"#/$defs/CatalogueMembership/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(!(((data3 === "present") || (data3 === "verified-absent")) || (data3 === "unknown"))){const err23 = {instancePath:instancePath+"/catalogueMembership",schemaPath:"#/$defs/CatalogueMembership/enum",keyword:"enum",params:{allowedValues: schema46.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data.evidenceKey !== undefined){let data4 = data.evidenceKey;if((typeof data4 !== "string") && (data4 !== null)){const err24 = {instancePath:instancePath+"/evidenceKey",schemaPath:"#/properties/evidenceKey/type",keyword:"type",params:{type: schema43.properties.evidenceKey.type},message:"must be string,null"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.key !== undefined){let data5 = data.key;if((typeof data5 !== "string") && (data5 !== null)){const err25 = {instancePath:instancePath+"/key",schemaPath:"#/properties/key/type",keyword:"type",params:{type: schema43.properties.key.type},message:"must be string,null"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.kind !== undefined){if(typeof data.kind !== "string"){const err26 = {instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data.namespace !== undefined){let data7 = data.namespace;if((typeof data7 !== "string") && (data7 !== null)){const err27 = {instancePath:instancePath+"/namespace",schemaPath:"#/properties/namespace/type",keyword:"type",params:{type: schema43.properties.namespace.type},message:"must be string,null"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data.sourceIdentity !== undefined){let data8 = data.sourceIdentity;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.id === undefined){const err28 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/$defs/SourceIdentity/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data8.discriminator !== undefined){let data9 = data8.discriminator;if((typeof data9 !== "string") && (data9 !== null)){const err29 = {instancePath:instancePath+"/sourceIdentity/discriminator",schemaPath:"#/$defs/SourceIdentity/properties/discriminator/type",keyword:"type",params:{type: schema42.properties.discriminator.type},message:"must be string,null"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data8.id !== undefined){if(typeof data8.id !== "string"){const err30 = {instancePath:instancePath+"/sourceIdentity/id",schemaPath:"#/$defs/SourceIdentity/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data8.namespace !== undefined){let data11 = data8.namespace;if((typeof data11 !== "string") && (data11 !== null)){const err31 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/$defs/SourceIdentity/properties/namespace/type",keyword:"type",params:{type: schema42.properties.namespace.type},message:"must be string,null"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}else {const err32 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/$defs/SourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.state !== undefined){let data12 = data.state;if(typeof data12 !== "string"){const err33 = {instancePath:instancePath+"/state",schemaPath:"#/$defs/RefState/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(!((((((data12 === "resolved") || (data12 === "unresolved")) || (data12 === "ambiguous")) || (data12 === "unknown")) || (data12 === "absent")) || (data12 === "unsupported"))){const err34 = {instancePath:instancePath+"/state",schemaPath:"#/$defs/RefState/enum",keyword:"enum",params:{allowedValues: schema48.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data.typedVersion !== undefined){let data13 = data.typedVersion;if(typeof data13 !== "string"){const err35 = {instancePath:instancePath+"/typedVersion",schemaPath:"#/$defs/TypedVersionState/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(!(((data13 === "available") || (data13 === "unavailable")) || (data13 === "unknown"))){const err36 = {instancePath:instancePath+"/typedVersion",schemaPath:"#/$defs/TypedVersionState/enum",keyword:"enum",params:{allowedValues: schema49.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}validate30.errors = vErrors;return errors === 0;}validate30.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate25.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.evidenceId === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "evidenceId"},message:"must have required property '"+"evidenceId"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.evidenceSource === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "evidenceSource"},message:"must have required property '"+"evidenceSource"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.sourcePath === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourcePath"},message:"must have required property '"+"sourcePath"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.ordinal === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "ordinal"},message:"must have required property '"+"ordinal"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.itemRef === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "itemRef"},message:"must have required property '"+"itemRef"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key0 in data){if(!(func1.call(schema37.properties, key0))){const err5 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.category !== undefined){let data0 = data.category;if((typeof data0 !== "string") && (data0 !== null)){const err6 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/type",keyword:"type",params:{type: schema37.properties.category.type},message:"must be string,null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.conditions !== undefined){let data1 = data.conditions;if((typeof data1 !== "string") && (data1 !== null)){const err7 = {instancePath:instancePath+"/conditions",schemaPath:"#/properties/conditions/type",keyword:"type",params:{type: schema37.properties.conditions.type},message:"must be string,null"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.evidenceAttribution !== undefined){let data2 = data.evidenceAttribution;const _errs7 = errors;let valid1 = false;const _errs8 = errors;if(!(validate26(data2, {instancePath:instancePath+"/evidenceAttribution",parentData:data,parentDataProperty:"evidenceAttribution",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);errors = vErrors.length;}var _valid0 = _errs8 === errors;valid1 = valid1 || _valid0;if(_valid0){var props0 = {};props0.assertions = true;}const _errs9 = errors;if(data2 !== null){const err8 = {instancePath:instancePath+"/evidenceAttribution",schemaPath:"#/properties/evidenceAttribution/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid0 = _errs9 === errors;valid1 = valid1 || _valid0;if(!valid1){const err9 = {instancePath:instancePath+"/evidenceAttribution",schemaPath:"#/properties/evidenceAttribution/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}}if(data.evidenceId !== undefined){if(typeof data.evidenceId !== "string"){const err10 = {instancePath:instancePath+"/evidenceId",schemaPath:"#/properties/evidenceId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.evidenceSource !== undefined){if(typeof data.evidenceSource !== "string"){const err11 = {instancePath:instancePath+"/evidenceSource",schemaPath:"#/properties/evidenceSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.itemClass !== undefined){let data5 = data.itemClass;if((typeof data5 !== "string") && (data5 !== null)){const err12 = {instancePath:instancePath+"/itemClass",schemaPath:"#/properties/itemClass/type",keyword:"type",params:{type: schema37.properties.itemClass.type},message:"must be string,null"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.itemName !== undefined){let data6 = data.itemName;if((typeof data6 !== "string") && (data6 !== null)){const err13 = {instancePath:instancePath+"/itemName",schemaPath:"#/properties/itemName/type",keyword:"type",params:{type: schema37.properties.itemName.type},message:"must be string,null"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.itemRef !== undefined){if(!(validate30(data.itemRef, {instancePath:instancePath+"/itemRef",parentData:data,parentDataProperty:"itemRef",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}if(data.ordinal !== undefined){let data8 = data.ordinal;if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){const err14 = {instancePath:instancePath+"/ordinal",schemaPath:"#/properties/ordinal/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if((typeof data8 == "number") && (isFinite(data8))){if(data8 > 9007199254740991 || isNaN(data8)){const err15 = {instancePath:instancePath+"/ordinal",schemaPath:"#/properties/ordinal/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data8 < 0 || isNaN(data8)){const err16 = {instancePath:instancePath+"/ordinal",schemaPath:"#/properties/ordinal/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}if(data.quantityMax !== undefined){let data9 = data.quantityMax;const _errs23 = errors;let valid2 = false;const _errs24 = errors;if(!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))){const err17 = {instancePath:instancePath+"/quantityMax",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if((typeof data9 == "number") && (isFinite(data9))){if(data9 > 9007199254740991 || isNaN(data9)){const err18 = {instancePath:instancePath+"/quantityMax",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data9 < -9007199254740991 || isNaN(data9)){const err19 = {instancePath:instancePath+"/quantityMax",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid1 = _errs24 === errors;valid2 = valid2 || _valid1;const _errs27 = errors;if(data9 !== null){const err20 = {instancePath:instancePath+"/quantityMax",schemaPath:"#/properties/quantityMax/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid1 = _errs27 === errors;valid2 = valid2 || _valid1;if(!valid2){const err21 = {instancePath:instancePath+"/quantityMax",schemaPath:"#/properties/quantityMax/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}}if(data.quantityMin !== undefined){let data10 = data.quantityMin;const _errs30 = errors;let valid4 = false;const _errs31 = errors;if(!(((typeof data10 == "number") && (!(data10 % 1) && !isNaN(data10))) && (isFinite(data10)))){const err22 = {instancePath:instancePath+"/quantityMin",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if((typeof data10 == "number") && (isFinite(data10))){if(data10 > 9007199254740991 || isNaN(data10)){const err23 = {instancePath:instancePath+"/quantityMin",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data10 < -9007199254740991 || isNaN(data10)){const err24 = {instancePath:instancePath+"/quantityMin",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid2 = _errs31 === errors;valid4 = valid4 || _valid2;const _errs34 = errors;if(data10 !== null){const err25 = {instancePath:instancePath+"/quantityMin",schemaPath:"#/properties/quantityMin/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid2 = _errs34 === errors;valid4 = valid4 || _valid2;if(!valid4){const err26 = {instancePath:instancePath+"/quantityMin",schemaPath:"#/properties/quantityMin/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}else {errors = _errs30;if(vErrors !== null){if(_errs30){vErrors.length = _errs30;}else {vErrors = null;}}}}if(data.rate !== undefined){let data11 = data.rate;if((!((typeof data11 == "number") && (isFinite(data11)))) && (data11 !== null)){const err27 = {instancePath:instancePath+"/rate",schemaPath:"#/properties/rate/type",keyword:"type",params:{type: schema37.properties.rate.type},message:"must be number,null"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data.rateDenominator !== undefined){let data12 = data.rateDenominator;const _errs39 = errors;let valid6 = false;const _errs40 = errors;if(!(((typeof data12 == "number") && (!(data12 % 1) && !isNaN(data12))) && (isFinite(data12)))){const err28 = {instancePath:instancePath+"/rateDenominator",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if((typeof data12 == "number") && (isFinite(data12))){if(data12 > 9007199254740991 || isNaN(data12)){const err29 = {instancePath:instancePath+"/rateDenominator",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data12 < -9007199254740991 || isNaN(data12)){const err30 = {instancePath:instancePath+"/rateDenominator",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid3 = _errs40 === errors;valid6 = valid6 || _valid3;const _errs43 = errors;if(data12 !== null){const err31 = {instancePath:instancePath+"/rateDenominator",schemaPath:"#/properties/rateDenominator/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid3 = _errs43 === errors;valid6 = valid6 || _valid3;if(!valid6){const err32 = {instancePath:instancePath+"/rateDenominator",schemaPath:"#/properties/rateDenominator/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}}if(data.sourcePath !== undefined){if(typeof data.sourcePath !== "string"){const err33 = {instancePath:instancePath+"/sourcePath",schemaPath:"#/properties/sourcePath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}else {const err34 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}validate25.errors = vErrors;return errors === 0;}validate25.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate24.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.assertionKind === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "assertionKind"},message:"must have required property '"+"assertionKind"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.evidenceKey === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "evidenceKey"},message:"must have required property '"+"evidenceKey"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.monsterKey === undefined){const err2 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "monsterKey"},message:"must have required property '"+"monsterKey"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.sourceBuild === undefined){const err3 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "sourceBuild"},message:"must have required property '"+"sourceBuild"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.sourceInput === undefined){const err4 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "sourceInput"},message:"must have required property '"+"sourceInput"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.occurrence === undefined){const err5 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "occurrence"},message:"must have required property '"+"occurrence"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.assertionKind !== undefined){let data0 = data.assertionKind;if(typeof data0 !== "string"){const err6 = {instancePath:instancePath+"/assertionKind",schemaPath:"#/oneOf/0/properties/assertionKind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("native" !== data0){const err7 = {instancePath:instancePath+"/assertionKind",schemaPath:"#/oneOf/0/properties/assertionKind/const",keyword:"const",params:{allowedValue: "native"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.evidenceKey !== undefined){if(typeof data.evidenceKey !== "string"){const err8 = {instancePath:instancePath+"/evidenceKey",schemaPath:"#/oneOf/0/properties/evidenceKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.monsterKey !== undefined){if(typeof data.monsterKey !== "string"){const err9 = {instancePath:instancePath+"/monsterKey",schemaPath:"#/oneOf/0/properties/monsterKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.occurrence !== undefined){if(!(validate25(data.occurrence, {instancePath:instancePath+"/occurrence",parentData:data,parentDataProperty:"occurrence",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}}if(data.sourceBuild !== undefined){if(typeof data.sourceBuild !== "string"){const err10 = {instancePath:instancePath+"/sourceBuild",schemaPath:"#/oneOf/0/properties/sourceBuild/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.sourceInput !== undefined){let data5 = data.sourceInput;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.familyId === undefined){const err11 = {instancePath:instancePath+"/sourceInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "familyId"},message:"must have required property '"+"familyId"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data5.buildId === undefined){const err12 = {instancePath:instancePath+"/sourceInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "buildId"},message:"must have required property '"+"buildId"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data5.fileSha256 === undefined){const err13 = {instancePath:instancePath+"/sourceInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "fileSha256"},message:"must have required property '"+"fileSha256"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data5.snapshotScheme === undefined){const err14 = {instancePath:instancePath+"/sourceInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "snapshotScheme"},message:"must have required property '"+"snapshotScheme"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data5.snapshotRoot === undefined){const err15 = {instancePath:instancePath+"/sourceInput",schemaPath:"#/$defs/ProductInputPin/required",keyword:"required",params:{missingProperty: "snapshotRoot"},message:"must have required property '"+"snapshotRoot"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data5.buildId !== undefined){if(typeof data5.buildId !== "string"){const err16 = {instancePath:instancePath+"/sourceInput/buildId",schemaPath:"#/$defs/ProductInputPin/properties/buildId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data5.familyId !== undefined){if(typeof data5.familyId !== "string"){const err17 = {instancePath:instancePath+"/sourceInput/familyId",schemaPath:"#/$defs/ProductInputPin/properties/familyId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data5.fileSha256 !== undefined){if(typeof data5.fileSha256 !== "string"){const err18 = {instancePath:instancePath+"/sourceInput/fileSha256",schemaPath:"#/$defs/ProductInputPin/properties/fileSha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data5.snapshotRoot !== undefined){if(typeof data5.snapshotRoot !== "string"){const err19 = {instancePath:instancePath+"/sourceInput/snapshotRoot",schemaPath:"#/$defs/ProductInputPin/properties/snapshotRoot/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data5.snapshotScheme !== undefined){if(typeof data5.snapshotScheme !== "string"){const err20 = {instancePath:instancePath+"/sourceInput/snapshotScheme",schemaPath:"#/$defs/ProductInputPin/properties/snapshotScheme/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}else {const err21 = {instancePath:instancePath+"/sourceInput",schemaPath:"#/$defs/ProductInputPin/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = {};props0.assertionKind = true;props0.evidenceKey = true;props0.monsterKey = true;props0.occurrence = true;props0.sourceBuild = true;props0.sourceInput = true;}const _errs25 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.assertionKind === undefined){const err23 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "assertionKind"},message:"must have required property '"+"assertionKind"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data.evidenceKey === undefined){const err24 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "evidenceKey"},message:"must have required property '"+"evidenceKey"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(data.monsterKey === undefined){const err25 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "monsterKey"},message:"must have required property '"+"monsterKey"+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(data.sourceBuild === undefined){const err26 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "sourceBuild"},message:"must have required property '"+"sourceBuild"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data.attribution === undefined){const err27 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "attribution"},message:"must have required property '"+"attribution"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data.itemSourceId === undefined){const err28 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "itemSourceId"},message:"must have required property '"+"itemSourceId"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data.assertionKind !== undefined){let data11 = data.assertionKind;if(typeof data11 !== "string"){const err29 = {instancePath:instancePath+"/assertionKind",schemaPath:"#/oneOf/1/properties/assertionKind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("historical-overlay" !== data11){const err30 = {instancePath:instancePath+"/assertionKind",schemaPath:"#/oneOf/1/properties/assertionKind/const",keyword:"const",params:{allowedValue: "historical-overlay"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.attribution !== undefined){if(!(validate27(data.attribution, {instancePath:instancePath+"/attribution",parentData:data,parentDataProperty:"attribution",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);errors = vErrors.length;}}if(data.category !== undefined){let data13 = data.category;if((typeof data13 !== "string") && (data13 !== null)){const err31 = {instancePath:instancePath+"/category",schemaPath:"#/oneOf/1/properties/category/type",keyword:"type",params:{type: schema36.oneOf[1].properties.category.type},message:"must be string,null"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.evidenceKey !== undefined){if(typeof data.evidenceKey !== "string"){const err32 = {instancePath:instancePath+"/evidenceKey",schemaPath:"#/oneOf/1/properties/evidenceKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.itemClass !== undefined){let data15 = data.itemClass;if((typeof data15 !== "string") && (data15 !== null)){const err33 = {instancePath:instancePath+"/itemClass",schemaPath:"#/oneOf/1/properties/itemClass/type",keyword:"type",params:{type: schema36.oneOf[1].properties.itemClass.type},message:"must be string,null"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.itemKey !== undefined){let data16 = data.itemKey;if((typeof data16 !== "string") && (data16 !== null)){const err34 = {instancePath:instancePath+"/itemKey",schemaPath:"#/oneOf/1/properties/itemKey/type",keyword:"type",params:{type: schema36.oneOf[1].properties.itemKey.type},message:"must be string,null"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data.itemName !== undefined){let data17 = data.itemName;if((typeof data17 !== "string") && (data17 !== null)){const err35 = {instancePath:instancePath+"/itemName",schemaPath:"#/oneOf/1/properties/itemName/type",keyword:"type",params:{type: schema36.oneOf[1].properties.itemName.type},message:"must be string,null"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data.itemSourceId !== undefined){if(typeof data.itemSourceId !== "string"){const err36 = {instancePath:instancePath+"/itemSourceId",schemaPath:"#/oneOf/1/properties/itemSourceId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data.monsterKey !== undefined){if(typeof data.monsterKey !== "string"){const err37 = {instancePath:instancePath+"/monsterKey",schemaPath:"#/oneOf/1/properties/monsterKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data.sourceBuild !== undefined){if(typeof data.sourceBuild !== "string"){const err38 = {instancePath:instancePath+"/sourceBuild",schemaPath:"#/oneOf/1/properties/sourceBuild/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var _valid0 = _errs25 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = props0 || {};props0.assertionKind = true;props0.attribution = true;props0.category = true;props0.evidenceKey = true;props0.itemClass = true;props0.itemKey = true;props0.itemName = true;props0.itemSourceId = true;props0.monsterKey = true;props0.sourceBuild = true;}}}if(!valid0){const err40 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate24.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate24.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema54 = {"description":"Monster 2.0 quest occurrence with an artifact-independent target reference.","type":"object","properties":{"countGroupId":{"type":["string","null"]},"killCount":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}]},"memberOrdinal":{"type":["integer","null"],"format":"uint","maximum":9007199254740991,"minimum":0},"occurrenceKey":{"type":"string"},"phase":{"$ref":"#/$defs/Nullable_string"},"questName":{"type":["string","null"]},"questRef":{"$ref":"#/$defs/MonsterEntityRefV2"},"questSourceId":{"type":"string"},"requirementKind":{"type":"string"},"requirementOrdinal":{"type":"integer","format":"uint","maximum":9007199254740991,"minimum":0},"sourcePath":{"type":"string"},"stateKey":{"$ref":"#/$defs/SafeInt64"}},"additionalProperties":false,"required":["occurrenceKey","stateKey","requirementKind","questRef","questSourceId","sourcePath","requirementOrdinal","phase"]};const schema56 = {"type":["string","null"]};function validate35(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate35.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.occurrenceKey === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "occurrenceKey"},message:"must have required property '"+"occurrenceKey"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.stateKey === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "stateKey"},message:"must have required property '"+"stateKey"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.requirementKind === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "requirementKind"},message:"must have required property '"+"requirementKind"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.questRef === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "questRef"},message:"must have required property '"+"questRef"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.questSourceId === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "questSourceId"},message:"must have required property '"+"questSourceId"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.sourcePath === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourcePath"},message:"must have required property '"+"sourcePath"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.requirementOrdinal === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "requirementOrdinal"},message:"must have required property '"+"requirementOrdinal"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.phase === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "phase"},message:"must have required property '"+"phase"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}for(const key0 in data){if(!(func1.call(schema54.properties, key0))){const err8 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.countGroupId !== undefined){let data0 = data.countGroupId;if((typeof data0 !== "string") && (data0 !== null)){const err9 = {instancePath:instancePath+"/countGroupId",schemaPath:"#/properties/countGroupId/type",keyword:"type",params:{type: schema54.properties.countGroupId.type},message:"must be string,null"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.killCount !== undefined){let data1 = data.killCount;const _errs5 = errors;let valid1 = false;const _errs6 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err10 = {instancePath:instancePath+"/killCount",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 9007199254740991 || isNaN(data1)){const err11 = {instancePath:instancePath+"/killCount",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data1 < -9007199254740991 || isNaN(data1)){const err12 = {instancePath:instancePath+"/killCount",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs6 === errors;valid1 = valid1 || _valid0;const _errs9 = errors;if(data1 !== null){const err13 = {instancePath:instancePath+"/killCount",schemaPath:"#/properties/killCount/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid0 = _errs9 === errors;valid1 = valid1 || _valid0;if(!valid1){const err14 = {instancePath:instancePath+"/killCount",schemaPath:"#/properties/killCount/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}}if(data.memberOrdinal !== undefined){let data2 = data.memberOrdinal;if((!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))) && (data2 !== null)){const err15 = {instancePath:instancePath+"/memberOrdinal",schemaPath:"#/properties/memberOrdinal/type",keyword:"type",params:{type: schema54.properties.memberOrdinal.type},message:"must be integer,null"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 > 9007199254740991 || isNaN(data2)){const err16 = {instancePath:instancePath+"/memberOrdinal",schemaPath:"#/properties/memberOrdinal/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data2 < 0 || isNaN(data2)){const err17 = {instancePath:instancePath+"/memberOrdinal",schemaPath:"#/properties/memberOrdinal/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}if(data.occurrenceKey !== undefined){if(typeof data.occurrenceKey !== "string"){const err18 = {instancePath:instancePath+"/occurrenceKey",schemaPath:"#/properties/occurrenceKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.phase !== undefined){let data4 = data.phase;if((typeof data4 !== "string") && (data4 !== null)){const err19 = {instancePath:instancePath+"/phase",schemaPath:"#/$defs/Nullable_string/type",keyword:"type",params:{type: schema56.type},message:"must be string,null"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.questName !== undefined){let data5 = data.questName;if((typeof data5 !== "string") && (data5 !== null)){const err20 = {instancePath:instancePath+"/questName",schemaPath:"#/properties/questName/type",keyword:"type",params:{type: schema54.properties.questName.type},message:"must be string,null"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.questRef !== undefined){if(!(validate30(data.questRef, {instancePath:instancePath+"/questRef",parentData:data,parentDataProperty:"questRef",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}if(data.questSourceId !== undefined){if(typeof data.questSourceId !== "string"){const err21 = {instancePath:instancePath+"/questSourceId",schemaPath:"#/properties/questSourceId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.requirementKind !== undefined){if(typeof data.requirementKind !== "string"){const err22 = {instancePath:instancePath+"/requirementKind",schemaPath:"#/properties/requirementKind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.requirementOrdinal !== undefined){let data9 = data.requirementOrdinal;if(!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))){const err23 = {instancePath:instancePath+"/requirementOrdinal",schemaPath:"#/properties/requirementOrdinal/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if((typeof data9 == "number") && (isFinite(data9))){if(data9 > 9007199254740991 || isNaN(data9)){const err24 = {instancePath:instancePath+"/requirementOrdinal",schemaPath:"#/properties/requirementOrdinal/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(data9 < 0 || isNaN(data9)){const err25 = {instancePath:instancePath+"/requirementOrdinal",schemaPath:"#/properties/requirementOrdinal/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}if(data.sourcePath !== undefined){if(typeof data.sourcePath !== "string"){const err26 = {instancePath:instancePath+"/sourcePath",schemaPath:"#/properties/sourcePath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data.stateKey !== undefined){let data11 = data.stateKey;if(!(((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11))) && (isFinite(data11)))){const err27 = {instancePath:instancePath+"/stateKey",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if((typeof data11 == "number") && (isFinite(data11))){if(data11 > 9007199254740991 || isNaN(data11)){const err28 = {instancePath:instancePath+"/stateKey",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data11 < -9007199254740991 || isNaN(data11)){const err29 = {instancePath:instancePath+"/stateKey",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}}else {const err30 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}validate35.errors = vErrors;return errors === 0;}validate35.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema58 = {"description":"One source occurrence retained by a selected Monster-core collection.","type":"object","properties":{"fields":{"description":"Selected source and normalized fields, keyed by inventory field name.","type":"object","additionalProperties":{"$ref":"#/$defs/FactState2"}},"occurrenceKey":{"description":"Stable key derived from build, source identity, collection and occurrence address.","type":"string"},"ownerKey":{"description":"Stable public key of the occurrence's Monster, `MobSkill`, or group owner.","type":["string","null"]},"references":{"description":"Canonical target references; raw source IDs remain in `fields`.","type":"object","additionalProperties":{"$ref":"#/$defs/FactState3"}},"sourcePath":{"description":"Exact logical source path when it was retained by normalization.","$ref":"#/$defs/FactState"}},"additionalProperties":false,"required":["occurrenceKey","sourcePath","fields","references"]};const schema59 = {"description":"Shared fact state. SQL NULL is represented by `Unknown` with reason\n`source-null`; only `Absent` carries a complete-coverage witness.","oneOf":[{"description":"A positively observed value.","type":"object","properties":{"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"known"},"value":{"$ref":"#/$defs/RawValue"}},"additionalProperties":false,"required":["state","value"]},{"description":"A value that was not observed or could not be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"No value was present under the source scope named by complete coverage.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"The named source or product cannot provide this fact.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]};const schema66 = {"type":"string","minLength":1,"pattern":"\\S"};const schema67 = {"type":"string","minLength":1,"pattern":"\\S"};const schema68 = {"type":"string","minLength":1,"pattern":"\\S"};const schema60 = {"description":"Source attribution for a fact or raw observation.","type":"object","properties":{"logicalAddress":{"description":"Optional logical address within the source; never a local file path.","anyOf":[{"$ref":"#/$defs/LogicalSourceAddress"},{"type":"null"}]},"sourceKind":{"description":"Source family or source kind, preserved as supplied by the producer.","$ref":"#/$defs/SourceKind"}},"additionalProperties":false,"required":["sourceKind"]};const schema61 = {"type":"string","minLength":1,"pattern":"^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$"};const schema62 = {"type":"string","minLength":1,"pattern":"\\S"};const func4 = function ucs2length(str) {
2
+ const len = str.length;
3
+ let length = 0;
4
+ let pos = 0;
5
+ let value;
6
+ while (pos < len) {
7
+ length++;
8
+ value = str.charCodeAt(pos++);
9
+ if (value >= 0xd800 && value <= 0xdbff && pos < len) {
10
+ // high surrogate, and there is a next character
11
+ value = str.charCodeAt(pos);
12
+ if ((value & 0xfc00) === 0xdc00)
13
+ pos++; // low surrogate
14
+ }
15
+ }
16
+ return length;
17
+ };const pattern4 = new RegExp("^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$", "u");const pattern5 = new RegExp("\\S", "u");function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate40.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.sourceKind === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceKind"},message:"must have required property '"+"sourceKind"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "logicalAddress") || (key0 === "sourceKind"))){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.logicalAddress !== undefined){let data0 = data.logicalAddress;const _errs3 = errors;let valid1 = false;const _errs4 = errors;if(typeof data0 === "string"){if(func4(data0) < 1){const err2 = {instancePath:instancePath+"/logicalAddress",schemaPath:"#/$defs/LogicalSourceAddress/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(!pattern4.test(data0)){const err3 = {instancePath:instancePath+"/logicalAddress",schemaPath:"#/$defs/LogicalSourceAddress/pattern",keyword:"pattern",params:{pattern: "^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$"},message:"must match pattern \""+"^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/logicalAddress",schemaPath:"#/$defs/LogicalSourceAddress/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid0 = _errs4 === errors;valid1 = valid1 || _valid0;const _errs7 = errors;if(data0 !== null){const err5 = {instancePath:instancePath+"/logicalAddress",schemaPath:"#/properties/logicalAddress/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid0 = _errs7 === errors;valid1 = valid1 || _valid0;if(!valid1){const err6 = {instancePath:instancePath+"/logicalAddress",schemaPath:"#/properties/logicalAddress/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}}if(data.sourceKind !== undefined){let data1 = data.sourceKind;if(typeof data1 === "string"){if(func4(data1) < 1){const err7 = {instancePath:instancePath+"/sourceKind",schemaPath:"#/$defs/SourceKind/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(!pattern5.test(data1)){const err8 = {instancePath:instancePath+"/sourceKind",schemaPath:"#/$defs/SourceKind/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/sourceKind",schemaPath:"#/$defs/SourceKind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}else {const err10 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}validate40.errors = vErrors;return errors === 0;}validate40.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema63 = {"description":"A raw value and its optional source attribution.","type":"object","properties":{"scalar":{"$ref":"#/$defs/RawScalar"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]}},"additionalProperties":false,"required":["scalar"]};const schema64 = {"description":"A scalar source observation that preserves the source value kind.","oneOf":[{"description":"Source integer, constrained to the JavaScript safe-integer range.","type":"object","properties":{"kind":{"type":"string","const":"integer"},"value":{"$ref":"#/$defs/SafeInt64"}},"additionalProperties":false,"required":["kind","value"]},{"description":"Source floating-point value; JSON serialization rejects non-finite values.","type":"object","properties":{"kind":{"type":"string","const":"real"},"value":{"type":"number","format":"double"}},"additionalProperties":false,"required":["kind","value"]},{"description":"Source text, with lexical spelling preserved.","type":"object","properties":{"kind":{"type":"string","const":"text"},"value":{"type":"string"}},"additionalProperties":false,"required":["kind","value"]},{"description":"Source boolean.","type":"object","properties":{"kind":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"additionalProperties":false,"required":["kind","value"]},{"description":"Source bytes, preserved as an ordered byte array.","type":"object","properties":{"kind":{"type":"string","const":"bytes"},"value":{"type":"array","items":{"type":"integer","format":"uint8","maximum":255,"minimum":0}}},"additionalProperties":false,"required":["kind","value"]},{"description":"A source format explicitly recorded a null scalar.","type":"object","properties":{"kind":{"type":"string","const":"source-null"}},"additionalProperties":false,"required":["kind"]}]};function validate43(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate43.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.value === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "kind") || (key0 === "value"))){const err2 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.kind !== undefined){let data0 = data.kind;if(typeof data0 !== "string"){const err3 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/0/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if("integer" !== data0){const err4 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/0/properties/kind/const",keyword:"const",params:{allowedValue: "integer"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.value !== undefined){let data1 = data.value;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err5 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 9007199254740991 || isNaN(data1)){const err6 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data1 < -9007199254740991 || isNaN(data1)){const err7 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}else {const err8 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = true;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind === undefined){const err9 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.value === undefined){const err10 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key1 in data){if(!((key1 === "kind") || (key1 === "value"))){const err11 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.kind !== undefined){let data2 = data.kind;if(typeof data2 !== "string"){const err12 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/1/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("real" !== data2){const err13 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/1/properties/kind/const",keyword:"const",params:{allowedValue: "real"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.value !== undefined){let data3 = data.value;if(!((typeof data3 == "number") && (isFinite(data3)))){const err14 = {instancePath:instancePath+"/value",schemaPath:"#/oneOf/1/properties/value/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}else {const err15 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid0 = _errs9 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = true;}}const _errs16 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.value === undefined){const err17 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}for(const key2 in data){if(!((key2 === "kind") || (key2 === "value"))){const err18 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.kind !== undefined){let data4 = data.kind;if(typeof data4 !== "string"){const err19 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/2/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("text" !== data4){const err20 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/2/properties/kind/const",keyword:"const",params:{allowedValue: "text"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.value !== undefined){if(typeof data.value !== "string"){const err21 = {instancePath:instancePath+"/value",schemaPath:"#/oneOf/2/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var _valid0 = _errs16 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = true;}}const _errs23 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind === undefined){const err23 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data.value === undefined){const err24 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}for(const key3 in data){if(!((key3 === "kind") || (key3 === "value"))){const err25 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.kind !== undefined){let data6 = data.kind;if(typeof data6 !== "string"){const err26 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/3/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("boolean" !== data6){const err27 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/3/properties/kind/const",keyword:"const",params:{allowedValue: "boolean"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data.value !== undefined){if(typeof data.value !== "boolean"){const err28 = {instancePath:instancePath+"/value",schemaPath:"#/oneOf/3/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var _valid0 = _errs23 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props0 !== true){props0 = true;}}const _errs30 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind === undefined){const err30 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(data.value === undefined){const err31 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}for(const key4 in data){if(!((key4 === "kind") || (key4 === "value"))){const err32 = {instancePath,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.kind !== undefined){let data8 = data.kind;if(typeof data8 !== "string"){const err33 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/4/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if("bytes" !== data8){const err34 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/4/properties/kind/const",keyword:"const",params:{allowedValue: "bytes"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data.value !== undefined){let data9 = data.value;if(Array.isArray(data9)){const len0 = data9.length;for(let i0=0; i0<len0; i0++){let data10 = data9[i0];if(!(((typeof data10 == "number") && (!(data10 % 1) && !isNaN(data10))) && (isFinite(data10)))){const err35 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/oneOf/4/properties/value/items/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if((typeof data10 == "number") && (isFinite(data10))){if(data10 > 255 || isNaN(data10)){const err36 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/oneOf/4/properties/value/items/maximum",keyword:"maximum",params:{comparison: "<=", limit: 255},message:"must be <= 255"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if(data10 < 0 || isNaN(data10)){const err37 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/oneOf/4/properties/value/items/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}}else {const err38 = {instancePath:instancePath+"/value",schemaPath:"#/oneOf/4/properties/value/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var _valid0 = _errs30 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 4];}else {if(_valid0){valid0 = true;passing0 = 4;if(props0 !== true){props0 = true;}}const _errs39 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind === undefined){const err40 = {instancePath,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}for(const key5 in data){if(!(key5 === "kind")){const err41 = {instancePath,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data.kind !== undefined){let data11 = data.kind;if(typeof data11 !== "string"){const err42 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/5/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if("source-null" !== data11){const err43 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/5/properties/kind/const",keyword:"const",params:{allowedValue: "source-null"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {instancePath,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var _valid0 = _errs39 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 5];}else {if(_valid0){valid0 = true;passing0 = 5;if(props0 !== true){props0 = true;}}}}}}}if(!valid0){const err45 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate43.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate43.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate42(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate42.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.scalar === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "scalar"},message:"must have required property '"+"scalar"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "scalar") || (key0 === "source"))){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.scalar !== undefined){if(!(validate43(data.scalar, {instancePath:instancePath+"/scalar",parentData:data,parentDataProperty:"scalar",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate43.errors : vErrors.concat(validate43.errors);errors = vErrors.length;}}if(data.source !== undefined){let data1 = data.source;const _errs4 = errors;let valid1 = false;const _errs5 = errors;if(!(validate40(data1, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}var _valid0 = _errs5 === errors;valid1 = valid1 || _valid0;const _errs6 = errors;if(data1 !== null){const err2 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var _valid0 = _errs6 === errors;valid1 = valid1 || _valid0;if(!valid1){const err3 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}}}}else {const err4 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}validate42.errors = vErrors;return errors === 0;}validate42.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate39(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate39.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.value === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "source") || (key0 === "state")) || (key0 === "value"))){const err2 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.source !== undefined){let data0 = data.source;const _errs5 = errors;let valid2 = false;const _errs6 = errors;if(!(validate40(data0, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}var _valid1 = _errs6 === errors;valid2 = valid2 || _valid1;const _errs7 = errors;if(data0 !== null){const err3 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/0/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs7 === errors;valid2 = valid2 || _valid1;if(!valid2){const err4 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/0/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}}if(data.state !== undefined){let data1 = data.state;if(typeof data1 !== "string"){const err5 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if("known" !== data1){const err6 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.value !== undefined){if(!(validate42(data.value, {instancePath:instancePath+"/value",parentData:data,parentDataProperty:"value",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);errors = vErrors.length;}}}else {const err7 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props1 = true;}const _errs12 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err8 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.reason === undefined){const err9 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}for(const key1 in data){if(!(((key1 === "reason") || (key1 === "source")) || (key1 === "state"))){const err10 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.reason !== undefined){let data3 = data.reason;if(typeof data3 === "string"){if(func4(data3) < 1){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(!pattern5.test(data3)){const err12 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.source !== undefined){let data4 = data.source;const _errs19 = errors;let valid5 = false;const _errs20 = errors;if(!(validate40(data4, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}var _valid2 = _errs20 === errors;valid5 = valid5 || _valid2;const _errs21 = errors;if(data4 !== null){const err14 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/1/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid2 = _errs21 === errors;valid5 = valid5 || _valid2;if(!valid5){const err15 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/1/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {errors = _errs19;if(vErrors !== null){if(_errs19){vErrors.length = _errs19;}else {vErrors = null;}}}}if(data.state !== undefined){let data5 = data.state;if(typeof data5 !== "string"){const err16 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("unknown" !== data5){const err17 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}else {const err18 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid0 = _errs12 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props1 !== true){props1 = true;}}const _errs25 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err19 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.coverageKey === undefined){const err20 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "coverageKey"},message:"must have required property '"+"coverageKey"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}for(const key2 in data){if(!((key2 === "coverageKey") || (key2 === "state"))){const err21 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.coverageKey !== undefined){let data6 = data.coverageKey;if(typeof data6 === "string"){if(func4(data6) < 1){const err22 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(!pattern5.test(data6)){const err23 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}else {const err24 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.state !== undefined){let data7 = data.state;if(typeof data7 !== "string"){const err25 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("absent" !== data7){const err26 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid0 = _errs25 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props1 !== true){props1 = true;}}const _errs33 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err28 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data.capability === undefined){const err29 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}for(const key3 in data){if(!(((key3 === "capability") || (key3 === "source")) || (key3 === "state"))){const err30 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.capability !== undefined){let data8 = data.capability;if(typeof data8 === "string"){if(func4(data8) < 1){const err31 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(!pattern5.test(data8)){const err32 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.source !== undefined){let data9 = data.source;const _errs40 = errors;let valid10 = false;const _errs41 = errors;if(!(validate40(data9, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}var _valid3 = _errs41 === errors;valid10 = valid10 || _valid3;const _errs42 = errors;if(data9 !== null){const err34 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/3/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var _valid3 = _errs42 === errors;valid10 = valid10 || _valid3;if(!valid10){const err35 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/3/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {errors = _errs40;if(vErrors !== null){if(_errs40){vErrors.length = _errs40;}else {vErrors = null;}}}}if(data.state !== undefined){let data10 = data.state;if(typeof data10 !== "string"){const err36 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("unsupported" !== data10){const err37 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}else {const err38 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var _valid0 = _errs33 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props1 !== true){props1 = true;}}}}}if(!valid0){const err39 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate39.errors = vErrors;evaluated0.props = props1;return errors === 0;}validate39.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema69 = {"description":"Shared fact state. SQL NULL is represented by `Unknown` with reason\n`source-null`; only `Absent` carries a complete-coverage witness.","oneOf":[{"description":"A positively observed value.","type":"object","properties":{"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"known"},"value":{"$ref":"#/$defs/EntityRef"}},"additionalProperties":false,"required":["state","value"]},{"description":"A value that was not observed or could not be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"No value was present under the source scope named by complete coverage.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"The named source or product cannot provide this fact.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]};const schema70 = {"description":"Shared entity-reference states. The generic parameter brands resolved keys\nfor the target domain without changing their JSON representation.","oneOf":[{"description":"Target has a canonical key in the exact build.","type":"object","properties":{"key":{"$ref":"#/$defs/EntityKey"},"state":{"type":"string","const":"resolved"}},"additionalProperties":false,"required":["state","key"]},{"description":"The source observation exists but does not resolve to a canonical key.","type":"object","properties":{"sourceId":{"$ref":"#/$defs/RawSourceId"},"state":{"type":"string","const":"unresolved"}},"additionalProperties":false,"required":["state","sourceId"]},{"description":"More than one canonical target remains possible; none is selected.","type":"object","properties":{"candidateKeys":{"type":"array","items":{"$ref":"#/$defs/EntityKey"}},"state":{"type":"string","const":"ambiguous"}},"additionalProperties":false,"required":["state","candidateKeys"]},{"description":"The target product or target identity is unavailable for a named reason.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unavailable"}},"additionalProperties":false,"required":["state","reason"]}]};const schema71 = {"type":"string","minLength":1,"pattern":"\\S"};const schema72 = {"type":"string","minLength":1,"pattern":"\\S"};function validate52(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate52.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.key === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "key") || (key0 === "state"))){const err2 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.key !== undefined){let data0 = data.key;if(typeof data0 === "string"){if(func4(data0) < 1){const err3 = {instancePath:instancePath+"/key",schemaPath:"#/$defs/EntityKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(!pattern5.test(data0)){const err4 = {instancePath:instancePath+"/key",schemaPath:"#/$defs/EntityKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/key",schemaPath:"#/$defs/EntityKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.state !== undefined){let data1 = data.state;if(typeof data1 !== "string"){const err6 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("resolved" !== data1){const err7 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "resolved"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = true;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err9 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.sourceId === undefined){const err10 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "sourceId"},message:"must have required property '"+"sourceId"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key1 in data){if(!((key1 === "sourceId") || (key1 === "state"))){const err11 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.sourceId !== undefined){let data2 = data.sourceId;if(typeof data2 === "string"){if(func4(data2) < 1){const err12 = {instancePath:instancePath+"/sourceId",schemaPath:"#/$defs/RawSourceId/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(!pattern5.test(data2)){const err13 = {instancePath:instancePath+"/sourceId",schemaPath:"#/$defs/RawSourceId/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/sourceId",schemaPath:"#/$defs/RawSourceId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.state !== undefined){let data3 = data.state;if(typeof data3 !== "string"){const err15 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("unresolved" !== data3){const err16 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "unresolved"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid0 = _errs9 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = true;}}const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err18 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.candidateKeys === undefined){const err19 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "candidateKeys"},message:"must have required property '"+"candidateKeys"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}for(const key2 in data){if(!((key2 === "candidateKeys") || (key2 === "state"))){const err20 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.candidateKeys !== undefined){let data4 = data.candidateKeys;if(Array.isArray(data4)){const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];if(typeof data5 === "string"){if(func4(data5) < 1){const err21 = {instancePath:instancePath+"/candidateKeys/" + i0,schemaPath:"#/$defs/EntityKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(!pattern5.test(data5)){const err22 = {instancePath:instancePath+"/candidateKeys/" + i0,schemaPath:"#/$defs/EntityKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}else {const err23 = {instancePath:instancePath+"/candidateKeys/" + i0,schemaPath:"#/$defs/EntityKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}else {const err24 = {instancePath:instancePath+"/candidateKeys",schemaPath:"#/oneOf/2/properties/candidateKeys/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.state !== undefined){let data6 = data.state;if(typeof data6 !== "string"){const err25 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("ambiguous" !== data6){const err26 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "ambiguous"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid0 = _errs17 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = true;}}const _errs27 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err28 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data.reason === undefined){const err29 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}for(const key3 in data){if(!((key3 === "reason") || (key3 === "state"))){const err30 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.reason !== undefined){let data7 = data.reason;if(typeof data7 === "string"){if(func4(data7) < 1){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(!pattern5.test(data7)){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.state !== undefined){let data8 = data.state;if(typeof data8 !== "string"){const err34 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("unavailable" !== data8){const err35 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unavailable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}}else {const err36 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var _valid0 = _errs27 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props0 !== true){props0 = true;}}}}}if(!valid0){const err37 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate52.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate52.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate50(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate50.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.value === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "source") || (key0 === "state")) || (key0 === "value"))){const err2 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.source !== undefined){let data0 = data.source;const _errs5 = errors;let valid2 = false;const _errs6 = errors;if(!(validate40(data0, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}var _valid1 = _errs6 === errors;valid2 = valid2 || _valid1;const _errs7 = errors;if(data0 !== null){const err3 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/0/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs7 === errors;valid2 = valid2 || _valid1;if(!valid2){const err4 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/0/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}}if(data.state !== undefined){let data1 = data.state;if(typeof data1 !== "string"){const err5 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if("known" !== data1){const err6 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.value !== undefined){if(!(validate52(data.value, {instancePath:instancePath+"/value",parentData:data,parentDataProperty:"value",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate52.errors : vErrors.concat(validate52.errors);errors = vErrors.length;}}}else {const err7 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props2 = true;}const _errs12 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err8 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.reason === undefined){const err9 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}for(const key1 in data){if(!(((key1 === "reason") || (key1 === "source")) || (key1 === "state"))){const err10 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.reason !== undefined){let data3 = data.reason;if(typeof data3 === "string"){if(func4(data3) < 1){const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(!pattern5.test(data3)){const err12 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.source !== undefined){let data4 = data.source;const _errs19 = errors;let valid5 = false;const _errs20 = errors;if(!(validate40(data4, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}var _valid2 = _errs20 === errors;valid5 = valid5 || _valid2;const _errs21 = errors;if(data4 !== null){const err14 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/1/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid2 = _errs21 === errors;valid5 = valid5 || _valid2;if(!valid5){const err15 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/1/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {errors = _errs19;if(vErrors !== null){if(_errs19){vErrors.length = _errs19;}else {vErrors = null;}}}}if(data.state !== undefined){let data5 = data.state;if(typeof data5 !== "string"){const err16 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("unknown" !== data5){const err17 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}else {const err18 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid0 = _errs12 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props2 !== true){props2 = true;}}const _errs25 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err19 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.coverageKey === undefined){const err20 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "coverageKey"},message:"must have required property '"+"coverageKey"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}for(const key2 in data){if(!((key2 === "coverageKey") || (key2 === "state"))){const err21 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.coverageKey !== undefined){let data6 = data.coverageKey;if(typeof data6 === "string"){if(func4(data6) < 1){const err22 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(!pattern5.test(data6)){const err23 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}else {const err24 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.state !== undefined){let data7 = data.state;if(typeof data7 !== "string"){const err25 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("absent" !== data7){const err26 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid0 = _errs25 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props2 !== true){props2 = true;}}const _errs33 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err28 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data.capability === undefined){const err29 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}for(const key3 in data){if(!(((key3 === "capability") || (key3 === "source")) || (key3 === "state"))){const err30 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.capability !== undefined){let data8 = data.capability;if(typeof data8 === "string"){if(func4(data8) < 1){const err31 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(!pattern5.test(data8)){const err32 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.source !== undefined){let data9 = data.source;const _errs40 = errors;let valid10 = false;const _errs41 = errors;if(!(validate40(data9, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}var _valid3 = _errs41 === errors;valid10 = valid10 || _valid3;const _errs42 = errors;if(data9 !== null){const err34 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/3/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var _valid3 = _errs42 === errors;valid10 = valid10 || _valid3;if(!valid10){const err35 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/3/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {errors = _errs40;if(vErrors !== null){if(_errs40){vErrors.length = _errs40;}else {vErrors = null;}}}}if(data.state !== undefined){let data10 = data.state;if(typeof data10 !== "string"){const err36 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("unsupported" !== data10){const err37 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}else {const err38 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var _valid0 = _errs33 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props2 !== true){props2 = true;}}}}}if(!valid0){const err39 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate50.errors = vErrors;evaluated0.props = props2;return errors === 0;}validate50.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema78 = {"description":"Shared fact state. SQL NULL is represented by `Unknown` with reason\n`source-null`; only `Absent` carries a complete-coverage witness.","oneOf":[{"description":"A positively observed value.","type":"object","properties":{"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"known"},"value":{"$ref":"#/$defs/LogicalSourceAddress"}},"additionalProperties":false,"required":["state","value"]},{"description":"A value that was not observed or could not be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"No value was present under the source scope named by complete coverage.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"The named source or product cannot provide this fact.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]};function validate57(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate57.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.value === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "source") || (key0 === "state")) || (key0 === "value"))){const err2 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.source !== undefined){let data0 = data.source;const _errs5 = errors;let valid2 = false;const _errs6 = errors;if(!(validate40(data0, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}var _valid1 = _errs6 === errors;valid2 = valid2 || _valid1;const _errs7 = errors;if(data0 !== null){const err3 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/0/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs7 === errors;valid2 = valid2 || _valid1;if(!valid2){const err4 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/0/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}}if(data.state !== undefined){let data1 = data.state;if(typeof data1 !== "string"){const err5 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if("known" !== data1){const err6 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.value !== undefined){let data2 = data.value;if(typeof data2 === "string"){if(func4(data2) < 1){const err7 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/LogicalSourceAddress/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(!pattern4.test(data2)){const err8 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/LogicalSourceAddress/pattern",keyword:"pattern",params:{pattern: "^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$"},message:"must match pattern \""+"^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$"+"\""};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/LogicalSourceAddress/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}else {const err10 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props1 = true;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err11 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data.reason === undefined){const err12 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}for(const key1 in data){if(!(((key1 === "reason") || (key1 === "source")) || (key1 === "state"))){const err13 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.reason !== undefined){let data3 = data.reason;if(typeof data3 === "string"){if(func4(data3) < 1){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(!pattern5.test(data3)){const err15 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.source !== undefined){let data4 = data.source;const _errs21 = errors;let valid6 = false;const _errs22 = errors;if(!(validate40(data4, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}var _valid2 = _errs22 === errors;valid6 = valid6 || _valid2;const _errs23 = errors;if(data4 !== null){const err17 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/1/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid2 = _errs23 === errors;valid6 = valid6 || _valid2;if(!valid6){const err18 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/1/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}}if(data.state !== undefined){let data5 = data.state;if(typeof data5 !== "string"){const err19 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("unknown" !== data5){const err20 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}else {const err21 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid0 = _errs14 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props1 !== true){props1 = true;}}const _errs27 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err22 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data.coverageKey === undefined){const err23 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "coverageKey"},message:"must have required property '"+"coverageKey"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}for(const key2 in data){if(!((key2 === "coverageKey") || (key2 === "state"))){const err24 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.coverageKey !== undefined){let data6 = data.coverageKey;if(typeof data6 === "string"){if(func4(data6) < 1){const err25 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(!pattern5.test(data6)){const err26 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}else {const err27 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data.state !== undefined){let data7 = data.state;if(typeof data7 !== "string"){const err28 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("absent" !== data7){const err29 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid0 = _errs27 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props1 !== true){props1 = true;}}const _errs35 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err31 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data.capability === undefined){const err32 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}for(const key3 in data){if(!(((key3 === "capability") || (key3 === "source")) || (key3 === "state"))){const err33 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.capability !== undefined){let data8 = data.capability;if(typeof data8 === "string"){if(func4(data8) < 1){const err34 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if(!pattern5.test(data8)){const err35 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}else {const err36 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data.source !== undefined){let data9 = data.source;const _errs42 = errors;let valid11 = false;const _errs43 = errors;if(!(validate40(data9, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}var _valid3 = _errs43 === errors;valid11 = valid11 || _valid3;const _errs44 = errors;if(data9 !== null){const err37 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/3/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var _valid3 = _errs44 === errors;valid11 = valid11 || _valid3;if(!valid11){const err38 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/3/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}}}if(data.state !== undefined){let data10 = data.state;if(typeof data10 !== "string"){const err39 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("unsupported" !== data10){const err40 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}}else {const err41 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var _valid0 = _errs35 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props1 !== true){props1 = true;}}}}}if(!valid0){const err42 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate57.errors = vErrors;evaluated0.props = props1;return errors === 0;}validate57.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate38(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate38.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.occurrenceKey === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "occurrenceKey"},message:"must have required property '"+"occurrenceKey"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.sourcePath === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourcePath"},message:"must have required property '"+"sourcePath"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.fields === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "fields"},message:"must have required property '"+"fields"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.references === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "references"},message:"must have required property '"+"references"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!(((((key0 === "fields") || (key0 === "occurrenceKey")) || (key0 === "ownerKey")) || (key0 === "references")) || (key0 === "sourcePath"))){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.fields !== undefined){let data0 = data.fields;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){for(const key1 in data0){if(!(validate39(data0[key1], {instancePath:instancePath+"/fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data0,parentDataProperty:key1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);errors = vErrors.length;}}}else {const err5 = {instancePath:instancePath+"/fields",schemaPath:"#/properties/fields/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.occurrenceKey !== undefined){if(typeof data.occurrenceKey !== "string"){const err6 = {instancePath:instancePath+"/occurrenceKey",schemaPath:"#/properties/occurrenceKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.ownerKey !== undefined){let data3 = data.ownerKey;if((typeof data3 !== "string") && (data3 !== null)){const err7 = {instancePath:instancePath+"/ownerKey",schemaPath:"#/properties/ownerKey/type",keyword:"type",params:{type: schema58.properties.ownerKey.type},message:"must be string,null"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.references !== undefined){let data4 = data.references;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){for(const key2 in data4){if(!(validate50(data4[key2], {instancePath:instancePath+"/references/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data4,parentDataProperty:key2,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);errors = vErrors.length;}}}else {const err8 = {instancePath:instancePath+"/references",schemaPath:"#/properties/references/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.sourcePath !== undefined){if(!(validate57(data.sourcePath, {instancePath:instancePath+"/sourcePath",parentData:data,parentDataProperty:"sourcePath",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);errors = vErrors.length;}}}else {const err9 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}validate38.errors = vErrors;return errors === 0;}validate38.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate23.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.collection === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "collection"},message:"must have required property '"+"collection"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(((((key0 === "collection") || (key0 === "dropAssertions")) || (key0 === "monsterKey")) || (key0 === "quests")) || (key0 === "sourceEvidence"))){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.collection !== undefined){if(typeof data.collection !== "string"){const err2 = {instancePath:instancePath+"/collection",schemaPath:"#/properties/collection/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.dropAssertions !== undefined){let data1 = data.dropAssertions;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){if(!(validate24(data1[i0], {instancePath:instancePath+"/dropAssertions/" + i0,parentData:data1,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);errors = vErrors.length;}}}else {const err3 = {instancePath:instancePath+"/dropAssertions",schemaPath:"#/properties/dropAssertions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.monsterKey !== undefined){let data3 = data.monsterKey;if((typeof data3 !== "string") && (data3 !== null)){const err4 = {instancePath:instancePath+"/monsterKey",schemaPath:"#/properties/monsterKey/type",keyword:"type",params:{type: schema35.properties.monsterKey.type},message:"must be string,null"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.quests !== undefined){let data4 = data.quests;if(Array.isArray(data4)){const len1 = data4.length;for(let i1=0; i1<len1; i1++){if(!(validate35(data4[i1], {instancePath:instancePath+"/quests/" + i1,parentData:data4,parentDataProperty:i1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);errors = vErrors.length;}}}else {const err5 = {instancePath:instancePath+"/quests",schemaPath:"#/properties/quests/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.sourceEvidence !== undefined){let data6 = data.sourceEvidence;if(Array.isArray(data6)){const len2 = data6.length;for(let i2=0; i2<len2; i2++){if(!(validate38(data6[i2], {instancePath:instancePath+"/sourceEvidence/" + i2,parentData:data6,parentDataProperty:i2,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);errors = vErrors.length;}}}else {const err6 = {instancePath:instancePath+"/sourceEvidence",schemaPath:"#/properties/sourceEvidence/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate23.errors = vErrors;return errors === 0;}validate23.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.format === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.contractVersion === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "contractVersion"},message:"must have required property '"+"contractVersion"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.scope === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "scope"},message:"must have required property '"+"scope"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.recordKind === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "recordKind"},message:"must have required property '"+"recordKind"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.records === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "records"},message:"must have required property '"+"records"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key0 in data){if(!((((((key0 === "contractVersion") || (key0 === "format")) || (key0 === "historicalOverlayPin")) || (key0 === "recordKind")) || (key0 === "records")) || (key0 === "scope"))){const err5 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.contractVersion !== undefined){let data0 = data.contractVersion;if(typeof data0 !== "string"){const err6 = {instancePath:instancePath+"/contractVersion",schemaPath:"#/properties/contractVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("2.0" !== data0){const err7 = {instancePath:instancePath+"/contractVersion",schemaPath:"#/properties/contractVersion/const",keyword:"const",params:{allowedValue: "2.0"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.format !== undefined){let data1 = data.format;if(typeof data1 !== "string"){const err8 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if("mapletip.monster-evidence-pack-2" !== data1){const err9 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/const",keyword:"const",params:{allowedValue: "mapletip.monster-evidence-pack-2"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.historicalOverlayPin !== undefined){let data2 = data.historicalOverlayPin;const _errs7 = errors;let valid1 = false;const _errs8 = errors;if(!(validate21(data2, {instancePath:instancePath+"/historicalOverlayPin",parentData:data,parentDataProperty:"historicalOverlayPin",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}var _valid0 = _errs8 === errors;valid1 = valid1 || _valid0;if(_valid0){var props0 = {};props0.artifactSha256 = true;props0.crosswalkManifestSha256 = true;props0.enabled = true;props0.format = true;props0.reviewReference = true;props0.sourceInput = true;props0.targetInput = true;props0.transform = true;}const _errs9 = errors;if(data2 !== null){const err10 = {instancePath:instancePath+"/historicalOverlayPin",schemaPath:"#/properties/historicalOverlayPin/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid0 = _errs9 === errors;valid1 = valid1 || _valid0;if(!valid1){const err11 = {instancePath:instancePath+"/historicalOverlayPin",schemaPath:"#/properties/historicalOverlayPin/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}}if(data.recordKind !== undefined){if(typeof data.recordKind !== "string"){const err12 = {instancePath:instancePath+"/recordKind",schemaPath:"#/properties/recordKind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.records !== undefined){let data4 = data.records;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){for(const key1 in data4){if(!(validate23(data4[key1], {instancePath:instancePath+"/records/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data4,parentDataProperty:key1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);errors = vErrors.length;}}}else {const err13 = {instancePath:instancePath+"/records",schemaPath:"#/properties/records/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.scope !== undefined){let data6 = data.scope;if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.family_id === undefined){const err14 = {instancePath:instancePath+"/scope",schemaPath:"#/$defs/BuildScope/required",keyword:"required",params:{missingProperty: "family_id"},message:"must have required property '"+"family_id"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data6.build_id === undefined){const err15 = {instancePath:instancePath+"/scope",schemaPath:"#/$defs/BuildScope/required",keyword:"required",params:{missingProperty: "build_id"},message:"must have required property '"+"build_id"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data6.build_id !== undefined){if(typeof data6.build_id !== "string"){const err16 = {instancePath:instancePath+"/scope/build_id",schemaPath:"#/$defs/BuildScope/properties/build_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data6.family_id !== undefined){if(typeof data6.family_id !== "string"){const err17 = {instancePath:instancePath+"/scope/family_id",schemaPath:"#/$defs/BuildScope/properties/family_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}else {const err18 = {instancePath:instancePath+"/scope",schemaPath:"#/$defs/BuildScope/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}else {const err19 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};