@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":"QuestDetailPack","description":"Bounded pack of exact-build Quest detail records.","type":"object","properties":{"contractVersion":{"type":"string","const":"2.0"},"format":{"type":"string","const":"mapletip.quest-pack-2"},"recordKind":{"type":"string"},"records":{"type":"object","additionalProperties":{"$ref":"#/$defs/QuestDetailRecord"}},"scope":{"$ref":"#/$defs/BuildScope"}},"additionalProperties":false,"required":["format","contractVersion","scope","recordKind","records"],"$defs":{"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"},"CollectionState":{"description":"Shared collection state. `Known` is non-empty; absence requires complete\nsource coverage and is never inferred from a missing row.","oneOf":[{"description":"One or more observed items with complete collection coverage.","type":"object","properties":{"items":{"$ref":"#/$defs/NonEmptyVec_QuestSection"},"state":{"type":"string","const":"known"}},"additionalProperties":false,"required":["state","items"]},{"description":"A complete source scope contained no observations.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"One or more observations were retained, but collection coverage is partial.","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/$defs/QuestSection"}},"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"partial"}},"additionalProperties":false,"required":["state","items","reason"]},{"description":"Completeness cannot be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"The source or product does not provide this collection.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]},"CollectionState2":{"description":"Shared collection state. `Known` is non-empty; absence requires complete\nsource coverage and is never inferred from a missing row.","oneOf":[{"description":"One or more observed items with complete collection coverage.","type":"object","properties":{"items":{"$ref":"#/$defs/NonEmptyVec_QuestLocaleResidue"},"state":{"type":"string","const":"known"}},"additionalProperties":false,"required":["state","items"]},{"description":"A complete source scope contained no observations.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"One or more observations were retained, but collection coverage is partial.","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/$defs/QuestLocaleResidue"}},"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"partial"}},"additionalProperties":false,"required":["state","items","reason"]},{"description":"Completeness cannot be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"The source or product does not provide this collection.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]},"CollectionState3":{"description":"Shared collection state. `Known` is non-empty; absence requires complete\nsource coverage and is never inferred from a missing row.","oneOf":[{"description":"One or more observed items with complete collection coverage.","type":"object","properties":{"items":{"$ref":"#/$defs/NonEmptyVec_QuestPageDescriptor"},"state":{"type":"string","const":"known"}},"additionalProperties":false,"required":["state","items"]},{"description":"A complete source scope contained no observations.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"One or more observations were retained, but collection coverage is partial.","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/$defs/QuestPageDescriptor"}},"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"partial"}},"additionalProperties":false,"required":["state","items","reason"]},{"description":"Completeness cannot be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"The source or product does not provide this collection.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]},"CoverageKey":{"type":"string","minLength":1,"pattern":"\\S"},"EntityKey":{"type":"string","minLength":1,"pattern":"\\S"},"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":{"type":"string"}},"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":{"type":"array","items":{"$ref":"#/$defs/TextToken"}}},"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/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"]}]},"LogicalSourceAddress":{"type":"string","minLength":1,"pattern":"^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$"},"NonEmptyVec_QuestLocaleResidue":{"type":"array","items":{"$ref":"#/$defs/QuestLocaleResidue"},"minItems":1},"NonEmptyVec_QuestPageDescriptor":{"type":"array","items":{"$ref":"#/$defs/QuestPageDescriptor"},"minItems":1},"NonEmptyVec_QuestSection":{"type":"array","items":{"$ref":"#/$defs/QuestSection"},"minItems":1},"QuestDetailRecord":{"description":"One exact-build Quest detail record.","type":"object","properties":{"dependencies":{"$ref":"#/$defs/CollectionState3"},"dialogue":{"$ref":"#/$defs/CollectionState3"},"evidence":{"$ref":"#/$defs/CollectionState3"},"facts":{"$ref":"#/$defs/QuestVersionFacts"},"key":{"$ref":"#/$defs/EntityKey"},"localeResidues":{"$ref":"#/$defs/CollectionState2"},"requirements":{"$ref":"#/$defs/CollectionState3"},"rewards":{"$ref":"#/$defs/CollectionState3"},"sections":{"$ref":"#/$defs/CollectionState"},"sourceIdentity":{"$ref":"#/$defs/SourceIdentity"}},"additionalProperties":false,"required":["key","sourceIdentity","facts","sections","localeResidues","requirements","rewards","dependencies","dialogue","evidence"]},"QuestLocaleResidue":{"description":"Locale-specific text left outside the selected localized-text collections.","type":"object","properties":{"occurrenceKey":{"type":"string"},"reason":{"$ref":"#/$defs/FactState"}},"additionalProperties":false,"required":["occurrenceKey","reason"]},"QuestPageDescriptor":{"description":"Reference to a public page in one exact-build product.","type":"object","properties":{"key":{"type":"string"},"observedCount":{"$ref":"#/$defs/SafeInt64"}},"additionalProperties":false,"required":["key","observedCount"]},"QuestSection":{"description":"Quest section whose source root was observed.","type":"string","enum":["act","check","quest_info","say"]},"QuestVersionFacts":{"description":"Stateful facts projected from one normalized Quest version.\n\n`source_id_int` is deliberately absent (3.2-R2), and `source_layout` is\ncarried only by [`QuestEvidenceOccurrence`] (3.2-R3).","type":"object","properties":{"areaCode":{"$ref":"#/$defs/FactState3"},"autoAccept":{"$ref":"#/$defs/FactState3"},"autoComplete":{"$ref":"#/$defs/FactState3"},"autoPreComplete":{"$ref":"#/$defs/FactState3"},"autoStart":{"$ref":"#/$defs/FactState3"},"categoryKey":{"$ref":"#/$defs/FactState"},"categoryLabel":{"$ref":"#/$defs/FactState"},"dailyPlayTime":{"$ref":"#/$defs/FactState3"},"demandSummary":{"$ref":"#/$defs/FactState"},"demandSummaryTokens":{"$ref":"#/$defs/FactState2"},"medalCategory":{"$ref":"#/$defs/FactState3"},"name":{"$ref":"#/$defs/FactState"},"nameTokens":{"$ref":"#/$defs/FactState2"},"oneShot":{"$ref":"#/$defs/FactState3"},"order":{"$ref":"#/$defs/FactState3"},"parentName":{"$ref":"#/$defs/FactState"},"parentTokens":{"$ref":"#/$defs/FactState2"},"questTypeCode":{"$ref":"#/$defs/FactState3"},"resignScript":{"$ref":"#/$defs/FactState3"},"rewardSummary":{"$ref":"#/$defs/FactState"},"rewardSummaryTokens":{"$ref":"#/$defs/FactState2"},"selectedMob":{"$ref":"#/$defs/FactState3"},"selectedSkillId":{"$ref":"#/$defs/FactState3"},"selfStart":{"$ref":"#/$defs/FactState3"},"showLayerTag":{"$ref":"#/$defs/FactState3"},"sortKey":{"$ref":"#/$defs/FactState3"},"summary":{"$ref":"#/$defs/FactState"},"summaryTokens":{"$ref":"#/$defs/FactState2"},"timeLimit":{"$ref":"#/$defs/FactState3"},"timeLimit2":{"$ref":"#/$defs/FactState3"},"timerUi":{"$ref":"#/$defs/FactState3"},"viewMedalItem":{"$ref":"#/$defs/FactState3"}},"additionalProperties":false,"required":["name","nameTokens","parentName","parentTokens","summary","summaryTokens","demandSummary","demandSummaryTokens","rewardSummary","rewardSummaryTokens","areaCode","categoryKey","categoryLabel","order","questTypeCode","viewMedalItem","medalCategory","selectedMob","selectedSkillId","sortKey","timeLimit","timeLimit2","dailyPlayTime","autoStart","autoPreComplete","selfStart","autoAccept","autoComplete","oneShot","resignScript","showLayerTag","timerUi"]},"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"]}]},"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"]},"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"},"TextToken":{"description":"Lossless text token stream used by authored Quest text.","oneOf":[{"type":"object","properties":{"k":{"type":"string","const":"text"},"text":{"type":"string"}},"additionalProperties":false,"required":["k","text"]},{"type":"object","properties":{"k":{"type":"string","const":"newline"},"raw":{"type":"string"}},"additionalProperties":false,"required":["k","raw"]},{"description":"Opaque source text-format code. The website interprets display-only\nstyling; `MapleKit` preserves the exact code and token order.","type":"object","properties":{"code":{"type":"string"},"k":{"type":"string","const":"raw-code"}},"additionalProperties":false,"required":["k","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"npc"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"item"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"monster"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"map"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"skill"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"item-count"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"item-icon"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"skill-icon"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"k":{"type":"string","const":"player-name"},"variant":{"type":["string","null"]}},"additionalProperties":false,"required":["k"]},{"type":"object","properties":{"index":{"type":"string"},"k":{"type":"string","const":"choice-start"}},"additionalProperties":false,"required":["k","index"]},{"type":"object","properties":{"k":{"type":"string","const":"choice-end"}},"additionalProperties":false,"required":["k"]},{"type":"object","properties":{"k":{"type":"string","const":"progress"},"percent":{"type":"string"}},"additionalProperties":false,"required":["k","percent"]},{"type":"object","properties":{"k":{"type":"string","const":"image"},"path":{"type":"string"}},"additionalProperties":false,"required":["k","path"]}]}}};const schema78 = {"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 = {"description":"One exact-build Quest detail record.","type":"object","properties":{"dependencies":{"$ref":"#/$defs/CollectionState3"},"dialogue":{"$ref":"#/$defs/CollectionState3"},"evidence":{"$ref":"#/$defs/CollectionState3"},"facts":{"$ref":"#/$defs/QuestVersionFacts"},"key":{"$ref":"#/$defs/EntityKey"},"localeResidues":{"$ref":"#/$defs/CollectionState2"},"requirements":{"$ref":"#/$defs/CollectionState3"},"rewards":{"$ref":"#/$defs/CollectionState3"},"sections":{"$ref":"#/$defs/CollectionState"},"sourceIdentity":{"$ref":"#/$defs/SourceIdentity"}},"additionalProperties":false,"required":["key","sourceIdentity","facts","sections","localeResidues","requirements","rewards","dependencies","dialogue","evidence"]};const schema61 = {"type":"string","minLength":1,"pattern":"\\S"};const schema77 = {"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"]};const func1 = Object.prototype.hasOwnProperty;const func2 = 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 schema33 = {"description":"Shared collection state. `Known` is non-empty; absence requires complete\nsource coverage and is never inferred from a missing row.","oneOf":[{"description":"One or more observed items with complete collection coverage.","type":"object","properties":{"items":{"$ref":"#/$defs/NonEmptyVec_QuestPageDescriptor"},"state":{"type":"string","const":"known"}},"additionalProperties":false,"required":["state","items"]},{"description":"A complete source scope contained no observations.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"One or more observations were retained, but collection coverage is partial.","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/$defs/QuestPageDescriptor"}},"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"partial"}},"additionalProperties":false,"required":["state","items","reason"]},{"description":"Completeness cannot be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"The source or product does not provide this collection.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]};const schema37 = {"type":"string","minLength":1,"pattern":"\\S"};const schema38 = {"type":"string","minLength":1,"pattern":"\\S"};const schema40 = {"type":"string","minLength":1,"pattern":"\\S"};const schema34 = {"type":"array","items":{"$ref":"#/$defs/QuestPageDescriptor"},"minItems":1};const schema35 = {"description":"Reference to a public page in one exact-build product.","type":"object","properties":{"key":{"type":"string"},"observedCount":{"$ref":"#/$defs/SafeInt64"}},"additionalProperties":false,"required":["key","observedCount"]};const schema36 = {"type":"integer","format":"int64","maximum":9007199254740991,"minimum":-9007199254740991};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;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.key === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.observedCount === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "observedCount"},message:"must have required property '"+"observedCount"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "key") || (key0 === "observedCount"))){const err2 = {instancePath,schemaPath:"#/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){if(typeof data.key !== "string"){const err3 = {instancePath:instancePath+"/key",schemaPath:"#/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.observedCount !== undefined){let data1 = data.observedCount;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err4 = {instancePath:instancePath+"/observedCount",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 9007199254740991 || isNaN(data1)){const err5 = {instancePath:instancePath+"/observedCount",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data1 < -9007199254740991 || isNaN(data1)){const err6 = {instancePath:instancePath+"/observedCount",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};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++;}validate24.errors = vErrors;return errors === 0;}validate24.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(Array.isArray(data)){if(data.length < 1){const err0 = {instancePath,schemaPath:"#/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate24(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);errors = vErrors.length;}}}else {const err1 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}validate23.errors = vErrors;return errors === 0;}validate23.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};const pattern4 = new RegExp("\\S", "u");function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate22.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.items === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "items") || (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.items !== undefined){if(!(validate23(data.items, {instancePath:instancePath+"/items",parentData:data,parentDataProperty:"items",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);errors = vErrors.length;}}if(data.state !== undefined){let data1 = data.state;if(typeof data1 !== "string"){const err3 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if("known" !== data1){const err4 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = true;}const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err6 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.coverageKey === undefined){const err7 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "coverageKey"},message:"must have required property '"+"coverageKey"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}for(const key1 in data){if(!((key1 === "coverageKey") || (key1 === "state"))){const err8 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.coverageKey !== undefined){let data2 = data.coverageKey;if(typeof data2 === "string"){if(func2(data2) < 1){const err9 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(!pattern4.test(data2)){const err10 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.state !== undefined){let data3 = data.state;if(typeof data3 !== "string"){const err12 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("absent" !== data3){const err13 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid0 = _errs7 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = true;}}const _errs15 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err15 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data.items === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.reason === undefined){const err17 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}for(const key2 in data){if(!(((key2 === "items") || (key2 === "reason")) || (key2 === "state"))){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.items !== undefined){let data4 = data.items;if(Array.isArray(data4)){const len0 = data4.length;for(let i0=0; i0<len0; i0++){if(!(validate24(data4[i0], {instancePath:instancePath+"/items/" + i0,parentData:data4,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);errors = vErrors.length;}}}else {const err19 = {instancePath:instancePath+"/items",schemaPath:"#/oneOf/2/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.reason !== undefined){let data6 = data.reason;if(typeof data6 === "string"){if(func2(data6) < 1){const err20 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(!pattern4.test(data6)){const err21 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.state !== undefined){let data7 = data.state;if(typeof data7 !== "string"){const err23 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("partial" !== data7){const err24 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "partial"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}else {const err25 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid0 = _errs15 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = true;}}const _errs26 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err26 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data.reason === undefined){const err27 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}for(const key3 in data){if(!((key3 === "reason") || (key3 === "state"))){const err28 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data.reason !== undefined){let data8 = data.reason;if(typeof data8 === "string"){if(func2(data8) < 1){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(!pattern4.test(data8)){const err30 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}else {const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.state !== undefined){let data9 = data.state;if(typeof data9 !== "string"){const err32 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("unknown" !== data9){const err33 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}else {const err34 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var _valid0 = _errs26 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props0 !== true){props0 = true;}}const _errs34 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err35 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data.capability === undefined){const err36 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}for(const key4 in data){if(!((key4 === "capability") || (key4 === "state"))){const err37 = {instancePath,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data.capability !== undefined){let data10 = data.capability;if(typeof data10 === "string"){if(func2(data10) < 1){const err38 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(!pattern4.test(data10)){const err39 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data.state !== undefined){let data11 = data.state;if(typeof data11 !== "string"){const err41 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/4/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if("unsupported" !== data11){const err42 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/4/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}}else {const err43 = {instancePath,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var _valid0 = _errs34 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 4];}else {if(_valid0){valid0 = true;passing0 = 4;if(props0 !== true){props0 = true;}}}}}}if(!valid0){const err44 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate22.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate22.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema41 = {"description":"Stateful facts projected from one normalized Quest version.\n\n`source_id_int` is deliberately absent (3.2-R2), and `source_layout` is\ncarried only by [`QuestEvidenceOccurrence`] (3.2-R3).","type":"object","properties":{"areaCode":{"$ref":"#/$defs/FactState3"},"autoAccept":{"$ref":"#/$defs/FactState3"},"autoComplete":{"$ref":"#/$defs/FactState3"},"autoPreComplete":{"$ref":"#/$defs/FactState3"},"autoStart":{"$ref":"#/$defs/FactState3"},"categoryKey":{"$ref":"#/$defs/FactState"},"categoryLabel":{"$ref":"#/$defs/FactState"},"dailyPlayTime":{"$ref":"#/$defs/FactState3"},"demandSummary":{"$ref":"#/$defs/FactState"},"demandSummaryTokens":{"$ref":"#/$defs/FactState2"},"medalCategory":{"$ref":"#/$defs/FactState3"},"name":{"$ref":"#/$defs/FactState"},"nameTokens":{"$ref":"#/$defs/FactState2"},"oneShot":{"$ref":"#/$defs/FactState3"},"order":{"$ref":"#/$defs/FactState3"},"parentName":{"$ref":"#/$defs/FactState"},"parentTokens":{"$ref":"#/$defs/FactState2"},"questTypeCode":{"$ref":"#/$defs/FactState3"},"resignScript":{"$ref":"#/$defs/FactState3"},"rewardSummary":{"$ref":"#/$defs/FactState"},"rewardSummaryTokens":{"$ref":"#/$defs/FactState2"},"selectedMob":{"$ref":"#/$defs/FactState3"},"selectedSkillId":{"$ref":"#/$defs/FactState3"},"selfStart":{"$ref":"#/$defs/FactState3"},"showLayerTag":{"$ref":"#/$defs/FactState3"},"sortKey":{"$ref":"#/$defs/FactState3"},"summary":{"$ref":"#/$defs/FactState"},"summaryTokens":{"$ref":"#/$defs/FactState2"},"timeLimit":{"$ref":"#/$defs/FactState3"},"timeLimit2":{"$ref":"#/$defs/FactState3"},"timerUi":{"$ref":"#/$defs/FactState3"},"viewMedalItem":{"$ref":"#/$defs/FactState3"}},"additionalProperties":false,"required":["name","nameTokens","parentName","parentTokens","summary","summaryTokens","demandSummary","demandSummaryTokens","rewardSummary","rewardSummaryTokens","areaCode","categoryKey","categoryLabel","order","questTypeCode","viewMedalItem","medalCategory","selectedMob","selectedSkillId","sortKey","timeLimit","timeLimit2","dailyPlayTime","autoStart","autoPreComplete","selfStart","autoAccept","autoComplete","oneShot","resignScript","showLayerTag","timerUi"]};const schema42 = {"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 schema43 = {"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 schema44 = {"type":"string","minLength":1,"pattern":"^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$"};const schema45 = {"type":"string","minLength":1,"pattern":"\\S"};const pattern8 = new RegExp("^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$", "u");function validate33(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate33.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(func2(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(!pattern8.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(func2(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(!pattern4.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++;}validate33.errors = vErrors;return errors === 0;}validate33.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema46 = {"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 schema47 = {"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 validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate36.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;}}}validate36.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate36.evaluated = {"dynamicProps":true,"dynamicItems":false};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.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(!(validate36(data.scalar, {instancePath:instancePath+"/scalar",parentData:data,parentDataProperty:"scalar",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);errors = vErrors.length;}}if(data.source !== undefined){let data1 = data.source;const _errs4 = errors;let valid1 = false;const _errs5 = errors;if(!(validate33(data1, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.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++;}validate35.errors = vErrors;return errors === 0;}validate35.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate32(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate32.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(!(validate33(data0, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.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(!(validate35(data.value, {instancePath:instancePath+"/value",parentData:data,parentDataProperty:"value",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.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(func2(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(!pattern4.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(!(validate33(data4, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.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(func2(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(!pattern4.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(func2(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(!pattern4.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(!(validate33(data9, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.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;}}}validate32.errors = vErrors;evaluated0.props = props1;return errors === 0;}validate32.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema52 = {"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":{"type":"string"}},"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 validate47(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate47.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(!(validate33(data0, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.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(typeof data.value !== "string"){const err7 = {instancePath:instancePath+"/value",schemaPath:"#/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};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 props1 = true;}const _errs13 = 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.reason === undefined){const err10 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key1 in data){if(!(((key1 === "reason") || (key1 === "source")) || (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.reason !== undefined){let data3 = data.reason;if(typeof data3 === "string"){if(func2(data3) < 1){const err12 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/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(!pattern4.test(data3)){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/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+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.source !== undefined){let data4 = data.source;const _errs20 = errors;let valid5 = false;const _errs21 = errors;if(!(validate33(data4, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.errors);errors = vErrors.length;}var _valid2 = _errs21 === errors;valid5 = valid5 || _valid2;const _errs22 = errors;if(data4 !== null){const err15 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/1/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid2 = _errs22 === errors;valid5 = valid5 || _valid2;if(!valid5){const err16 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/1/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}}if(data.state !== undefined){let data5 = data.state;if(typeof data5 !== "string"){const err17 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("unknown" !== data5){const err18 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}else {const err19 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid0 = _errs13 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props1 !== true){props1 = true;}}const _errs26 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err20 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data.coverageKey === undefined){const err21 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "coverageKey"},message:"must have required property '"+"coverageKey"+"'"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}for(const key2 in data){if(!((key2 === "coverageKey") || (key2 === "state"))){const err22 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.coverageKey !== undefined){let data6 = data.coverageKey;if(typeof data6 === "string"){if(func2(data6) < 1){const err23 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(!pattern4.test(data6)){const err24 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}else {const err25 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.state !== undefined){let data7 = data.state;if(typeof data7 !== "string"){const err26 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("absent" !== data7){const err27 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}else {const err28 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid0 = _errs26 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props1 !== true){props1 = true;}}const _errs34 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err29 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data.capability === undefined){const err30 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}for(const key3 in data){if(!(((key3 === "capability") || (key3 === "source")) || (key3 === "state"))){const err31 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.capability !== undefined){let data8 = data.capability;if(typeof data8 === "string"){if(func2(data8) < 1){const err32 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(!pattern4.test(data8)){const err33 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}else {const err34 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data.source !== undefined){let data9 = data.source;const _errs41 = errors;let valid10 = false;const _errs42 = errors;if(!(validate33(data9, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.errors);errors = vErrors.length;}var _valid3 = _errs42 === errors;valid10 = valid10 || _valid3;const _errs43 = errors;if(data9 !== null){const err35 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/3/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var _valid3 = _errs43 === errors;valid10 = valid10 || _valid3;if(!valid10){const err36 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/3/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}}if(data.state !== undefined){let data10 = data.state;if(typeof data10 !== "string"){const err37 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("unsupported" !== data10){const err38 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var _valid0 = _errs34 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props1 !== true){props1 = 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;}}}validate47.errors = vErrors;evaluated0.props = props1;return errors === 0;}validate47.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema56 = {"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":{"type":"array","items":{"$ref":"#/$defs/TextToken"}}},"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 schema57 = {"description":"Lossless text token stream used by authored Quest text.","oneOf":[{"type":"object","properties":{"k":{"type":"string","const":"text"},"text":{"type":"string"}},"additionalProperties":false,"required":["k","text"]},{"type":"object","properties":{"k":{"type":"string","const":"newline"},"raw":{"type":"string"}},"additionalProperties":false,"required":["k","raw"]},{"description":"Opaque source text-format code. The website interprets display-only\nstyling; `MapleKit` preserves the exact code and token order.","type":"object","properties":{"code":{"type":"string"},"k":{"type":"string","const":"raw-code"}},"additionalProperties":false,"required":["k","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"npc"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"item"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"monster"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"map"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"skill"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"item-count"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"item-icon"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"k":{"type":"string","const":"skill-icon"}},"additionalProperties":false,"required":["k","id","code"]},{"type":"object","properties":{"k":{"type":"string","const":"player-name"},"variant":{"type":["string","null"]}},"additionalProperties":false,"required":["k"]},{"type":"object","properties":{"index":{"type":"string"},"k":{"type":"string","const":"choice-start"}},"additionalProperties":false,"required":["k","index"]},{"type":"object","properties":{"k":{"type":"string","const":"choice-end"}},"additionalProperties":false,"required":["k"]},{"type":"object","properties":{"k":{"type":"string","const":"progress"},"percent":{"type":"string"}},"additionalProperties":false,"required":["k","percent"]},{"type":"object","properties":{"k":{"type":"string","const":"image"},"path":{"type":"string"}},"additionalProperties":false,"required":["k","path"]}]};function validate55(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate55.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(!(validate33(data0, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.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(Array.isArray(data2)){const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs15 = errors;let valid6 = false;let passing1 = null;const _errs16 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err7 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/0/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data3.text === undefined){const err8 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/0/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}for(const key1 in data3){if(!((key1 === "k") || (key1 === "text"))){const err9 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data3.k !== undefined){let data4 = data3.k;if(typeof data4 !== "string"){const err10 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/0/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("text" !== data4){const err11 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/0/properties/k/const",keyword:"const",params:{allowedValue: "text"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data3.text !== undefined){if(typeof data3.text !== "string"){const err12 = {instancePath:instancePath+"/value/" + i0+"/text",schemaPath:"#/$defs/TextToken/oneOf/0/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid2 = _errs16 === errors;if(_valid2){valid6 = true;passing1 = 0;var props1 = true;}const _errs23 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err14 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/1/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data3.raw === undefined){const err15 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/1/required",keyword:"required",params:{missingProperty: "raw"},message:"must have required property '"+"raw"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}for(const key2 in data3){if(!((key2 === "k") || (key2 === "raw"))){const err16 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data3.k !== undefined){let data6 = data3.k;if(typeof data6 !== "string"){const err17 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/1/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("newline" !== data6){const err18 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/1/properties/k/const",keyword:"const",params:{allowedValue: "newline"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data3.raw !== undefined){if(typeof data3.raw !== "string"){const err19 = {instancePath:instancePath+"/value/" + i0+"/raw",schemaPath:"#/$defs/TextToken/oneOf/1/properties/raw/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}else {const err20 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid2 = _errs23 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 1];}else {if(_valid2){valid6 = true;passing1 = 1;if(props1 !== true){props1 = true;}}const _errs30 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err21 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/2/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(data3.code === undefined){const err22 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/2/required",keyword:"required",params:{missingProperty: "code"},message:"must have required property '"+"code"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}for(const key3 in data3){if(!((key3 === "code") || (key3 === "k"))){const err23 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data3.code !== undefined){if(typeof data3.code !== "string"){const err24 = {instancePath:instancePath+"/value/" + i0+"/code",schemaPath:"#/$defs/TextToken/oneOf/2/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data3.k !== undefined){let data9 = data3.k;if(typeof data9 !== "string"){const err25 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/2/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("raw-code" !== data9){const err26 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/2/properties/k/const",keyword:"const",params:{allowedValue: "raw-code"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid2 = _errs30 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 2];}else {if(_valid2){valid6 = true;passing1 = 2;if(props1 !== true){props1 = true;}}const _errs37 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err28 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/3/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data3.id === undefined){const err29 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data3.code === undefined){const err30 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/3/required",keyword:"required",params:{missingProperty: "code"},message:"must have required property '"+"code"+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}for(const key4 in data3){if(!(((key4 === "code") || (key4 === "id")) || (key4 === "k"))){const err31 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data3.code !== undefined){if(typeof data3.code !== "string"){const err32 = {instancePath:instancePath+"/value/" + i0+"/code",schemaPath:"#/$defs/TextToken/oneOf/3/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data3.id !== undefined){if(typeof data3.id !== "string"){const err33 = {instancePath:instancePath+"/value/" + i0+"/id",schemaPath:"#/$defs/TextToken/oneOf/3/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data3.k !== undefined){let data12 = data3.k;if(typeof data12 !== "string"){const err34 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/3/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("npc" !== data12){const err35 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/3/properties/k/const",keyword:"const",params:{allowedValue: "npc"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}}else {const err36 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var _valid2 = _errs37 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 3];}else {if(_valid2){valid6 = true;passing1 = 3;if(props1 !== true){props1 = true;}}const _errs46 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err37 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/4/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data3.id === undefined){const err38 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/4/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(data3.code === undefined){const err39 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/4/required",keyword:"required",params:{missingProperty: "code"},message:"must have required property '"+"code"+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}for(const key5 in data3){if(!(((key5 === "code") || (key5 === "id")) || (key5 === "k"))){const err40 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data3.code !== undefined){if(typeof data3.code !== "string"){const err41 = {instancePath:instancePath+"/value/" + i0+"/code",schemaPath:"#/$defs/TextToken/oneOf/4/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data3.id !== undefined){if(typeof data3.id !== "string"){const err42 = {instancePath:instancePath+"/value/" + i0+"/id",schemaPath:"#/$defs/TextToken/oneOf/4/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data3.k !== undefined){let data15 = data3.k;if(typeof data15 !== "string"){const err43 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/4/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("item" !== data15){const err44 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/4/properties/k/const",keyword:"const",params:{allowedValue: "item"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}else {const err45 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var _valid2 = _errs46 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 4];}else {if(_valid2){valid6 = true;passing1 = 4;if(props1 !== true){props1 = true;}}const _errs55 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err46 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/5/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data3.id === undefined){const err47 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/5/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if(data3.code === undefined){const err48 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/5/required",keyword:"required",params:{missingProperty: "code"},message:"must have required property '"+"code"+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}for(const key6 in data3){if(!(((key6 === "code") || (key6 === "id")) || (key6 === "k"))){const err49 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data3.code !== undefined){if(typeof data3.code !== "string"){const err50 = {instancePath:instancePath+"/value/" + i0+"/code",schemaPath:"#/$defs/TextToken/oneOf/5/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data3.id !== undefined){if(typeof data3.id !== "string"){const err51 = {instancePath:instancePath+"/value/" + i0+"/id",schemaPath:"#/$defs/TextToken/oneOf/5/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data3.k !== undefined){let data18 = data3.k;if(typeof data18 !== "string"){const err52 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/5/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if("monster" !== data18){const err53 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/5/properties/k/const",keyword:"const",params:{allowedValue: "monster"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}else {const err54 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}var _valid2 = _errs55 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 5];}else {if(_valid2){valid6 = true;passing1 = 5;if(props1 !== true){props1 = true;}}const _errs64 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err55 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/6/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data3.id === undefined){const err56 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/6/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data3.code === undefined){const err57 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/6/required",keyword:"required",params:{missingProperty: "code"},message:"must have required property '"+"code"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}for(const key7 in data3){if(!(((key7 === "code") || (key7 === "id")) || (key7 === "k"))){const err58 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data3.code !== undefined){if(typeof data3.code !== "string"){const err59 = {instancePath:instancePath+"/value/" + i0+"/code",schemaPath:"#/$defs/TextToken/oneOf/6/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}if(data3.id !== undefined){if(typeof data3.id !== "string"){const err60 = {instancePath:instancePath+"/value/" + i0+"/id",schemaPath:"#/$defs/TextToken/oneOf/6/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data3.k !== undefined){let data21 = data3.k;if(typeof data21 !== "string"){const err61 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/6/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if("map" !== data21){const err62 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/6/properties/k/const",keyword:"const",params:{allowedValue: "map"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}else {const err63 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/6/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}var _valid2 = _errs64 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 6];}else {if(_valid2){valid6 = true;passing1 = 6;if(props1 !== true){props1 = true;}}const _errs73 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err64 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/7/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if(data3.id === undefined){const err65 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/7/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data3.code === undefined){const err66 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/7/required",keyword:"required",params:{missingProperty: "code"},message:"must have required property '"+"code"+"'"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}for(const key8 in data3){if(!(((key8 === "code") || (key8 === "id")) || (key8 === "k"))){const err67 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data3.code !== undefined){if(typeof data3.code !== "string"){const err68 = {instancePath:instancePath+"/value/" + i0+"/code",schemaPath:"#/$defs/TextToken/oneOf/7/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data3.id !== undefined){if(typeof data3.id !== "string"){const err69 = {instancePath:instancePath+"/value/" + i0+"/id",schemaPath:"#/$defs/TextToken/oneOf/7/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data3.k !== undefined){let data24 = data3.k;if(typeof data24 !== "string"){const err70 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/7/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if("skill" !== data24){const err71 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/7/properties/k/const",keyword:"const",params:{allowedValue: "skill"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/7/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}var _valid2 = _errs73 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 7];}else {if(_valid2){valid6 = true;passing1 = 7;if(props1 !== true){props1 = true;}}const _errs82 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err73 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/8/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if(data3.id === undefined){const err74 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/8/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(data3.code === undefined){const err75 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/8/required",keyword:"required",params:{missingProperty: "code"},message:"must have required property '"+"code"+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}for(const key9 in data3){if(!(((key9 === "code") || (key9 === "id")) || (key9 === "k"))){const err76 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}if(data3.code !== undefined){if(typeof data3.code !== "string"){const err77 = {instancePath:instancePath+"/value/" + i0+"/code",schemaPath:"#/$defs/TextToken/oneOf/8/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(data3.id !== undefined){if(typeof data3.id !== "string"){const err78 = {instancePath:instancePath+"/value/" + i0+"/id",schemaPath:"#/$defs/TextToken/oneOf/8/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}if(data3.k !== undefined){let data27 = data3.k;if(typeof data27 !== "string"){const err79 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/8/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if("item-count" !== data27){const err80 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/8/properties/k/const",keyword:"const",params:{allowedValue: "item-count"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}}else {const err81 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/8/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var _valid2 = _errs82 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 8];}else {if(_valid2){valid6 = true;passing1 = 8;if(props1 !== true){props1 = true;}}const _errs91 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err82 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/9/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(data3.id === undefined){const err83 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/9/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if(data3.code === undefined){const err84 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/9/required",keyword:"required",params:{missingProperty: "code"},message:"must have required property '"+"code"+"'"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}for(const key10 in data3){if(!(((key10 === "code") || (key10 === "id")) || (key10 === "k"))){const err85 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}if(data3.code !== undefined){if(typeof data3.code !== "string"){const err86 = {instancePath:instancePath+"/value/" + i0+"/code",schemaPath:"#/$defs/TextToken/oneOf/9/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data3.id !== undefined){if(typeof data3.id !== "string"){const err87 = {instancePath:instancePath+"/value/" + i0+"/id",schemaPath:"#/$defs/TextToken/oneOf/9/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}if(data3.k !== undefined){let data30 = data3.k;if(typeof data30 !== "string"){const err88 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/9/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if("item-icon" !== data30){const err89 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/9/properties/k/const",keyword:"const",params:{allowedValue: "item-icon"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/9/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}var _valid2 = _errs91 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 9];}else {if(_valid2){valid6 = true;passing1 = 9;if(props1 !== true){props1 = true;}}const _errs100 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err91 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/10/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data3.id === undefined){const err92 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/10/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(data3.code === undefined){const err93 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/10/required",keyword:"required",params:{missingProperty: "code"},message:"must have required property '"+"code"+"'"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}for(const key11 in data3){if(!(((key11 === "code") || (key11 === "id")) || (key11 === "k"))){const err94 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}if(data3.code !== undefined){if(typeof data3.code !== "string"){const err95 = {instancePath:instancePath+"/value/" + i0+"/code",schemaPath:"#/$defs/TextToken/oneOf/10/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data3.id !== undefined){if(typeof data3.id !== "string"){const err96 = {instancePath:instancePath+"/value/" + i0+"/id",schemaPath:"#/$defs/TextToken/oneOf/10/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}if(data3.k !== undefined){let data33 = data3.k;if(typeof data33 !== "string"){const err97 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/10/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}if("skill-icon" !== data33){const err98 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/10/properties/k/const",keyword:"const",params:{allowedValue: "skill-icon"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}else {const err99 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/10/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}var _valid2 = _errs100 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 10];}else {if(_valid2){valid6 = true;passing1 = 10;if(props1 !== true){props1 = true;}}const _errs109 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err100 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/11/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}for(const key12 in data3){if(!((key12 === "k") || (key12 === "variant"))){const err101 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data3.k !== undefined){let data34 = data3.k;if(typeof data34 !== "string"){const err102 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/11/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if("player-name" !== data34){const err103 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/11/properties/k/const",keyword:"const",params:{allowedValue: "player-name"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}if(data3.variant !== undefined){let data35 = data3.variant;if((typeof data35 !== "string") && (data35 !== null)){const err104 = {instancePath:instancePath+"/value/" + i0+"/variant",schemaPath:"#/$defs/TextToken/oneOf/11/properties/variant/type",keyword:"type",params:{type: schema57.oneOf[11].properties.variant.type},message:"must be string,null"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}else {const err105 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/11/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var _valid2 = _errs109 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 11];}else {if(_valid2){valid6 = true;passing1 = 11;if(props1 !== true){props1 = true;}}const _errs116 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err106 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/12/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if(data3.index === undefined){const err107 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/12/required",keyword:"required",params:{missingProperty: "index"},message:"must have required property '"+"index"+"'"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}for(const key13 in data3){if(!((key13 === "index") || (key13 === "k"))){const err108 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data3.index !== undefined){if(typeof data3.index !== "string"){const err109 = {instancePath:instancePath+"/value/" + i0+"/index",schemaPath:"#/$defs/TextToken/oneOf/12/properties/index/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data3.k !== undefined){let data37 = data3.k;if(typeof data37 !== "string"){const err110 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/12/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if("choice-start" !== data37){const err111 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/12/properties/k/const",keyword:"const",params:{allowedValue: "choice-start"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}}else {const err112 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/12/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}var _valid2 = _errs116 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 12];}else {if(_valid2){valid6 = true;passing1 = 12;if(props1 !== true){props1 = true;}}const _errs123 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err113 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/13/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}for(const key14 in data3){if(!(key14 === "k")){const err114 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data3.k !== undefined){let data38 = data3.k;if(typeof data38 !== "string"){const err115 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/13/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if("choice-end" !== data38){const err116 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/13/properties/k/const",keyword:"const",params:{allowedValue: "choice-end"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}}else {const err117 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/13/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}var _valid2 = _errs123 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 13];}else {if(_valid2){valid6 = true;passing1 = 13;if(props1 !== true){props1 = true;}}const _errs128 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err118 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/14/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if(data3.percent === undefined){const err119 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/14/required",keyword:"required",params:{missingProperty: "percent"},message:"must have required property '"+"percent"+"'"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}for(const key15 in data3){if(!((key15 === "k") || (key15 === "percent"))){const err120 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data3.k !== undefined){let data39 = data3.k;if(typeof data39 !== "string"){const err121 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/14/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if("progress" !== data39){const err122 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/14/properties/k/const",keyword:"const",params:{allowedValue: "progress"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data3.percent !== undefined){if(typeof data3.percent !== "string"){const err123 = {instancePath:instancePath+"/value/" + i0+"/percent",schemaPath:"#/$defs/TextToken/oneOf/14/properties/percent/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}else {const err124 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/14/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}var _valid2 = _errs128 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 14];}else {if(_valid2){valid6 = true;passing1 = 14;if(props1 !== true){props1 = true;}}const _errs135 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.k === undefined){const err125 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/15/required",keyword:"required",params:{missingProperty: "k"},message:"must have required property '"+"k"+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(data3.path === undefined){const err126 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/15/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}for(const key16 in data3){if(!((key16 === "k") || (key16 === "path"))){const err127 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}if(data3.k !== undefined){let data41 = data3.k;if(typeof data41 !== "string"){const err128 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/15/properties/k/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if("image" !== data41){const err129 = {instancePath:instancePath+"/value/" + i0+"/k",schemaPath:"#/$defs/TextToken/oneOf/15/properties/k/const",keyword:"const",params:{allowedValue: "image"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}if(data3.path !== undefined){if(typeof data3.path !== "string"){const err130 = {instancePath:instancePath+"/value/" + i0+"/path",schemaPath:"#/$defs/TextToken/oneOf/15/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}else {const err131 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf/15/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}var _valid2 = _errs135 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 15];}else {if(_valid2){valid6 = true;passing1 = 15;if(props1 !== true){props1 = true;}}}}}}}}}}}}}}}}}if(!valid6){const err132 = {instancePath:instancePath+"/value/" + i0,schemaPath:"#/$defs/TextToken/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}}}else {const err133 = {instancePath:instancePath+"/value",schemaPath:"#/oneOf/0/properties/value/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}}else {const err134 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props2 = true;}const _errs142 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err135 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data.reason === undefined){const err136 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}for(const key17 in data){if(!(((key17 === "reason") || (key17 === "source")) || (key17 === "state"))){const err137 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(data.reason !== undefined){let data43 = data.reason;if(typeof data43 === "string"){if(func2(data43) < 1){const err138 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(!pattern4.test(data43)){const err139 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}else {const err140 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}if(data.source !== undefined){let data44 = data.source;const _errs149 = errors;let valid25 = false;const _errs150 = errors;if(!(validate33(data44, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.errors);errors = vErrors.length;}var _valid3 = _errs150 === errors;valid25 = valid25 || _valid3;const _errs151 = errors;if(data44 !== null){const err141 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/1/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}var _valid3 = _errs151 === errors;valid25 = valid25 || _valid3;if(!valid25){const err142 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/1/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}else {errors = _errs149;if(vErrors !== null){if(_errs149){vErrors.length = _errs149;}else {vErrors = null;}}}}if(data.state !== undefined){let data45 = data.state;if(typeof data45 !== "string"){const err143 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if("unknown" !== data45){const err144 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}}else {const err145 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}var _valid0 = _errs142 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props2 !== true){props2 = true;}}const _errs155 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err146 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if(data.coverageKey === undefined){const err147 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "coverageKey"},message:"must have required property '"+"coverageKey"+"'"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}for(const key18 in data){if(!((key18 === "coverageKey") || (key18 === "state"))){const err148 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key18},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}if(data.coverageKey !== undefined){let data46 = data.coverageKey;if(typeof data46 === "string"){if(func2(data46) < 1){const err149 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(!pattern4.test(data46)){const err150 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}else {const err151 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(data.state !== undefined){let data47 = data.state;if(typeof data47 !== "string"){const err152 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if("absent" !== data47){const err153 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}var _valid0 = _errs155 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props2 !== true){props2 = true;}}const _errs163 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err155 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(data.capability === undefined){const err156 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}for(const key19 in data){if(!(((key19 === "capability") || (key19 === "source")) || (key19 === "state"))){const err157 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key19},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data.capability !== undefined){let data48 = data.capability;if(typeof data48 === "string"){if(func2(data48) < 1){const err158 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(!pattern4.test(data48)){const err159 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}else {const err160 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data.source !== undefined){let data49 = data.source;const _errs170 = errors;let valid30 = false;const _errs171 = errors;if(!(validate33(data49, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.errors);errors = vErrors.length;}var _valid4 = _errs171 === errors;valid30 = valid30 || _valid4;const _errs172 = errors;if(data49 !== null){const err161 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/3/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}var _valid4 = _errs172 === errors;valid30 = valid30 || _valid4;if(!valid30){const err162 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/3/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}else {errors = _errs170;if(vErrors !== null){if(_errs170){vErrors.length = _errs170;}else {vErrors = null;}}}}if(data.state !== undefined){let data50 = data.state;if(typeof data50 !== "string"){const err163 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if("unsupported" !== data50){const err164 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}}else {const err165 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}var _valid0 = _errs163 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props2 !== true){props2 = true;}}}}}if(!valid0){const err166 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate55.errors = vErrors;evaluated0.props = props2;return errors === 0;}validate55.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate31(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate31.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.nameTokens === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "nameTokens"},message:"must have required property '"+"nameTokens"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.parentName === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "parentName"},message:"must have required property '"+"parentName"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.parentTokens === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "parentTokens"},message:"must have required property '"+"parentTokens"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.summary === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "summary"},message:"must have required property '"+"summary"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.summaryTokens === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "summaryTokens"},message:"must have required property '"+"summaryTokens"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.demandSummary === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "demandSummary"},message:"must have required property '"+"demandSummary"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.demandSummaryTokens === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "demandSummaryTokens"},message:"must have required property '"+"demandSummaryTokens"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.rewardSummary === undefined){const err8 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "rewardSummary"},message:"must have required property '"+"rewardSummary"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.rewardSummaryTokens === undefined){const err9 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "rewardSummaryTokens"},message:"must have required property '"+"rewardSummaryTokens"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.areaCode === undefined){const err10 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "areaCode"},message:"must have required property '"+"areaCode"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data.categoryKey === undefined){const err11 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "categoryKey"},message:"must have required property '"+"categoryKey"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data.categoryLabel === undefined){const err12 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "categoryLabel"},message:"must have required property '"+"categoryLabel"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data.order === undefined){const err13 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "order"},message:"must have required property '"+"order"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data.questTypeCode === undefined){const err14 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "questTypeCode"},message:"must have required property '"+"questTypeCode"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data.viewMedalItem === undefined){const err15 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "viewMedalItem"},message:"must have required property '"+"viewMedalItem"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data.medalCategory === undefined){const err16 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "medalCategory"},message:"must have required property '"+"medalCategory"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.selectedMob === undefined){const err17 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "selectedMob"},message:"must have required property '"+"selectedMob"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(data.selectedSkillId === undefined){const err18 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "selectedSkillId"},message:"must have required property '"+"selectedSkillId"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.sortKey === undefined){const err19 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sortKey"},message:"must have required property '"+"sortKey"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.timeLimit === undefined){const err20 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "timeLimit"},message:"must have required property '"+"timeLimit"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data.timeLimit2 === undefined){const err21 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "timeLimit2"},message:"must have required property '"+"timeLimit2"+"'"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(data.dailyPlayTime === undefined){const err22 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "dailyPlayTime"},message:"must have required property '"+"dailyPlayTime"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data.autoStart === undefined){const err23 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "autoStart"},message:"must have required property '"+"autoStart"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data.autoPreComplete === undefined){const err24 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "autoPreComplete"},message:"must have required property '"+"autoPreComplete"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(data.selfStart === undefined){const err25 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "selfStart"},message:"must have required property '"+"selfStart"+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(data.autoAccept === undefined){const err26 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "autoAccept"},message:"must have required property '"+"autoAccept"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data.autoComplete === undefined){const err27 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "autoComplete"},message:"must have required property '"+"autoComplete"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data.oneShot === undefined){const err28 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "oneShot"},message:"must have required property '"+"oneShot"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data.resignScript === undefined){const err29 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "resignScript"},message:"must have required property '"+"resignScript"+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data.showLayerTag === undefined){const err30 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "showLayerTag"},message:"must have required property '"+"showLayerTag"+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(data.timerUi === undefined){const err31 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "timerUi"},message:"must have required property '"+"timerUi"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}for(const key0 in data){if(!(func1.call(schema41.properties, key0))){const err32 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.areaCode !== undefined){if(!(validate32(data.areaCode, {instancePath:instancePath+"/areaCode",parentData:data,parentDataProperty:"areaCode",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.autoAccept !== undefined){if(!(validate32(data.autoAccept, {instancePath:instancePath+"/autoAccept",parentData:data,parentDataProperty:"autoAccept",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.autoComplete !== undefined){if(!(validate32(data.autoComplete, {instancePath:instancePath+"/autoComplete",parentData:data,parentDataProperty:"autoComplete",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.autoPreComplete !== undefined){if(!(validate32(data.autoPreComplete, {instancePath:instancePath+"/autoPreComplete",parentData:data,parentDataProperty:"autoPreComplete",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.autoStart !== undefined){if(!(validate32(data.autoStart, {instancePath:instancePath+"/autoStart",parentData:data,parentDataProperty:"autoStart",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.categoryKey !== undefined){if(!(validate47(data.categoryKey, {instancePath:instancePath+"/categoryKey",parentData:data,parentDataProperty:"categoryKey",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}}if(data.categoryLabel !== undefined){if(!(validate47(data.categoryLabel, {instancePath:instancePath+"/categoryLabel",parentData:data,parentDataProperty:"categoryLabel",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}}if(data.dailyPlayTime !== undefined){if(!(validate32(data.dailyPlayTime, {instancePath:instancePath+"/dailyPlayTime",parentData:data,parentDataProperty:"dailyPlayTime",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.demandSummary !== undefined){if(!(validate47(data.demandSummary, {instancePath:instancePath+"/demandSummary",parentData:data,parentDataProperty:"demandSummary",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}}if(data.demandSummaryTokens !== undefined){if(!(validate55(data.demandSummaryTokens, {instancePath:instancePath+"/demandSummaryTokens",parentData:data,parentDataProperty:"demandSummaryTokens",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);errors = vErrors.length;}}if(data.medalCategory !== undefined){if(!(validate32(data.medalCategory, {instancePath:instancePath+"/medalCategory",parentData:data,parentDataProperty:"medalCategory",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.name !== undefined){if(!(validate47(data.name, {instancePath:instancePath+"/name",parentData:data,parentDataProperty:"name",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}}if(data.nameTokens !== undefined){if(!(validate55(data.nameTokens, {instancePath:instancePath+"/nameTokens",parentData:data,parentDataProperty:"nameTokens",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);errors = vErrors.length;}}if(data.oneShot !== undefined){if(!(validate32(data.oneShot, {instancePath:instancePath+"/oneShot",parentData:data,parentDataProperty:"oneShot",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.order !== undefined){if(!(validate32(data.order, {instancePath:instancePath+"/order",parentData:data,parentDataProperty:"order",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.parentName !== undefined){if(!(validate47(data.parentName, {instancePath:instancePath+"/parentName",parentData:data,parentDataProperty:"parentName",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}}if(data.parentTokens !== undefined){if(!(validate55(data.parentTokens, {instancePath:instancePath+"/parentTokens",parentData:data,parentDataProperty:"parentTokens",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);errors = vErrors.length;}}if(data.questTypeCode !== undefined){if(!(validate32(data.questTypeCode, {instancePath:instancePath+"/questTypeCode",parentData:data,parentDataProperty:"questTypeCode",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.resignScript !== undefined){if(!(validate32(data.resignScript, {instancePath:instancePath+"/resignScript",parentData:data,parentDataProperty:"resignScript",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.rewardSummary !== undefined){if(!(validate47(data.rewardSummary, {instancePath:instancePath+"/rewardSummary",parentData:data,parentDataProperty:"rewardSummary",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}}if(data.rewardSummaryTokens !== undefined){if(!(validate55(data.rewardSummaryTokens, {instancePath:instancePath+"/rewardSummaryTokens",parentData:data,parentDataProperty:"rewardSummaryTokens",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);errors = vErrors.length;}}if(data.selectedMob !== undefined){if(!(validate32(data.selectedMob, {instancePath:instancePath+"/selectedMob",parentData:data,parentDataProperty:"selectedMob",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.selectedSkillId !== undefined){if(!(validate32(data.selectedSkillId, {instancePath:instancePath+"/selectedSkillId",parentData:data,parentDataProperty:"selectedSkillId",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.selfStart !== undefined){if(!(validate32(data.selfStart, {instancePath:instancePath+"/selfStart",parentData:data,parentDataProperty:"selfStart",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.showLayerTag !== undefined){if(!(validate32(data.showLayerTag, {instancePath:instancePath+"/showLayerTag",parentData:data,parentDataProperty:"showLayerTag",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.sortKey !== undefined){if(!(validate32(data.sortKey, {instancePath:instancePath+"/sortKey",parentData:data,parentDataProperty:"sortKey",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.summary !== undefined){if(!(validate47(data.summary, {instancePath:instancePath+"/summary",parentData:data,parentDataProperty:"summary",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}}if(data.summaryTokens !== undefined){if(!(validate55(data.summaryTokens, {instancePath:instancePath+"/summaryTokens",parentData:data,parentDataProperty:"summaryTokens",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);errors = vErrors.length;}}if(data.timeLimit !== undefined){if(!(validate32(data.timeLimit, {instancePath:instancePath+"/timeLimit",parentData:data,parentDataProperty:"timeLimit",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.timeLimit2 !== undefined){if(!(validate32(data.timeLimit2, {instancePath:instancePath+"/timeLimit2",parentData:data,parentDataProperty:"timeLimit2",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.timerUi !== undefined){if(!(validate32(data.timerUi, {instancePath:instancePath+"/timerUi",parentData:data,parentDataProperty:"timerUi",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}if(data.viewMedalItem !== undefined){if(!(validate32(data.viewMedalItem, {instancePath:instancePath+"/viewMedalItem",parentData:data,parentDataProperty:"viewMedalItem",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}}else {const err33 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}validate31.errors = vErrors;return errors === 0;}validate31.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema62 = {"description":"Shared collection state. `Known` is non-empty; absence requires complete\nsource coverage and is never inferred from a missing row.","oneOf":[{"description":"One or more observed items with complete collection coverage.","type":"object","properties":{"items":{"$ref":"#/$defs/NonEmptyVec_QuestLocaleResidue"},"state":{"type":"string","const":"known"}},"additionalProperties":false,"required":["state","items"]},{"description":"A complete source scope contained no observations.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"One or more observations were retained, but collection coverage is partial.","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/$defs/QuestLocaleResidue"}},"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"partial"}},"additionalProperties":false,"required":["state","items","reason"]},{"description":"Completeness cannot be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"The source or product does not provide this collection.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]};const schema63 = {"type":"array","items":{"$ref":"#/$defs/QuestLocaleResidue"},"minItems":1};const schema64 = {"description":"Locale-specific text left outside the selected localized-text collections.","type":"object","properties":{"occurrenceKey":{"type":"string"},"reason":{"$ref":"#/$defs/FactState"}},"additionalProperties":false,"required":["occurrenceKey","reason"]};function validate85(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate85.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.reason === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "occurrenceKey") || (key0 === "reason"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.occurrenceKey !== undefined){if(typeof data.occurrenceKey !== "string"){const err3 = {instancePath:instancePath+"/occurrenceKey",schemaPath:"#/properties/occurrenceKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.reason !== undefined){if(!(validate47(data.reason, {instancePath:instancePath+"/reason",parentData:data,parentDataProperty:"reason",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}}}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++;}validate85.errors = vErrors;return errors === 0;}validate85.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate84(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate84.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length < 1){const err0 = {instancePath,schemaPath:"#/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate85(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate85.errors : vErrors.concat(validate85.errors);errors = vErrors.length;}}}else {const err1 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}validate84.errors = vErrors;return errors === 0;}validate84.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate83(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate83.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.items === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "items") || (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.items !== undefined){if(!(validate84(data.items, {instancePath:instancePath+"/items",parentData:data,parentDataProperty:"items",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate84.errors : vErrors.concat(validate84.errors);errors = vErrors.length;}}if(data.state !== undefined){let data1 = data.state;if(typeof data1 !== "string"){const err3 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if("known" !== data1){const err4 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = true;}const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err6 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.coverageKey === undefined){const err7 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "coverageKey"},message:"must have required property '"+"coverageKey"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}for(const key1 in data){if(!((key1 === "coverageKey") || (key1 === "state"))){const err8 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.coverageKey !== undefined){let data2 = data.coverageKey;if(typeof data2 === "string"){if(func2(data2) < 1){const err9 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(!pattern4.test(data2)){const err10 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.state !== undefined){let data3 = data.state;if(typeof data3 !== "string"){const err12 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("absent" !== data3){const err13 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid0 = _errs7 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = true;}}const _errs15 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err15 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data.items === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.reason === undefined){const err17 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}for(const key2 in data){if(!(((key2 === "items") || (key2 === "reason")) || (key2 === "state"))){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.items !== undefined){let data4 = data.items;if(Array.isArray(data4)){const len0 = data4.length;for(let i0=0; i0<len0; i0++){if(!(validate85(data4[i0], {instancePath:instancePath+"/items/" + i0,parentData:data4,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate85.errors : vErrors.concat(validate85.errors);errors = vErrors.length;}}}else {const err19 = {instancePath:instancePath+"/items",schemaPath:"#/oneOf/2/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.reason !== undefined){let data6 = data.reason;if(typeof data6 === "string"){if(func2(data6) < 1){const err20 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(!pattern4.test(data6)){const err21 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.state !== undefined){let data7 = data.state;if(typeof data7 !== "string"){const err23 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("partial" !== data7){const err24 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "partial"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}else {const err25 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid0 = _errs15 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = true;}}const _errs26 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err26 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data.reason === undefined){const err27 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}for(const key3 in data){if(!((key3 === "reason") || (key3 === "state"))){const err28 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data.reason !== undefined){let data8 = data.reason;if(typeof data8 === "string"){if(func2(data8) < 1){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(!pattern4.test(data8)){const err30 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}else {const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.state !== undefined){let data9 = data.state;if(typeof data9 !== "string"){const err32 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("unknown" !== data9){const err33 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}else {const err34 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var _valid0 = _errs26 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props0 !== true){props0 = true;}}const _errs34 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err35 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data.capability === undefined){const err36 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}for(const key4 in data){if(!((key4 === "capability") || (key4 === "state"))){const err37 = {instancePath,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data.capability !== undefined){let data10 = data.capability;if(typeof data10 === "string"){if(func2(data10) < 1){const err38 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(!pattern4.test(data10)){const err39 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data.state !== undefined){let data11 = data.state;if(typeof data11 !== "string"){const err41 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/4/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if("unsupported" !== data11){const err42 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/4/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}}else {const err43 = {instancePath,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var _valid0 = _errs34 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 4];}else {if(_valid0){valid0 = true;passing0 = 4;if(props0 !== true){props0 = true;}}}}}}if(!valid0){const err44 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate83.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate83.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema69 = {"description":"Shared collection state. `Known` is non-empty; absence requires complete\nsource coverage and is never inferred from a missing row.","oneOf":[{"description":"One or more observed items with complete collection coverage.","type":"object","properties":{"items":{"$ref":"#/$defs/NonEmptyVec_QuestSection"},"state":{"type":"string","const":"known"}},"additionalProperties":false,"required":["state","items"]},{"description":"A complete source scope contained no observations.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"One or more observations were retained, but collection coverage is partial.","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/$defs/QuestSection"}},"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"partial"}},"additionalProperties":false,"required":["state","items","reason"]},{"description":"Completeness cannot be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"The source or product does not provide this collection.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]};const schema71 = {"description":"Quest section whose source root was observed.","type":"string","enum":["act","check","quest_info","say"]};const schema70 = {"type":"array","items":{"$ref":"#/$defs/QuestSection"},"minItems":1};function validate94(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate94.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length < 1){const err0 = {instancePath,schemaPath:"#/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/$defs/QuestSection/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(!((((data0 === "act") || (data0 === "check")) || (data0 === "quest_info")) || (data0 === "say"))){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/$defs/QuestSection/enum",keyword:"enum",params:{allowedValues: schema71.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}else {const err3 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}validate94.errors = vErrors;return errors === 0;}validate94.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate93(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate93.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.items === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "items") || (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.items !== undefined){if(!(validate94(data.items, {instancePath:instancePath+"/items",parentData:data,parentDataProperty:"items",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate94.errors : vErrors.concat(validate94.errors);errors = vErrors.length;}}if(data.state !== undefined){let data1 = data.state;if(typeof data1 !== "string"){const err3 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if("known" !== data1){const err4 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = true;}const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err6 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.coverageKey === undefined){const err7 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "coverageKey"},message:"must have required property '"+"coverageKey"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}for(const key1 in data){if(!((key1 === "coverageKey") || (key1 === "state"))){const err8 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.coverageKey !== undefined){let data2 = data.coverageKey;if(typeof data2 === "string"){if(func2(data2) < 1){const err9 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(!pattern4.test(data2)){const err10 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.state !== undefined){let data3 = data.state;if(typeof data3 !== "string"){const err12 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("absent" !== data3){const err13 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid0 = _errs7 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = true;}}const _errs15 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err15 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data.items === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.reason === undefined){const err17 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}for(const key2 in data){if(!(((key2 === "items") || (key2 === "reason")) || (key2 === "state"))){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.items !== undefined){let data4 = data.items;if(Array.isArray(data4)){const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];if(typeof data5 !== "string"){const err19 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/QuestSection/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(!((((data5 === "act") || (data5 === "check")) || (data5 === "quest_info")) || (data5 === "say"))){const err20 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/QuestSection/enum",keyword:"enum",params:{allowedValues: schema71.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}else {const err21 = {instancePath:instancePath+"/items",schemaPath:"#/oneOf/2/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.reason !== undefined){let data6 = data.reason;if(typeof data6 === "string"){if(func2(data6) < 1){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/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(!pattern4.test(data6)){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/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+"/reason",schemaPath:"#/$defs/StateReason/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("partial" !== data7){const err26 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "partial"},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 = _errs15 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = true;}}const _errs28 = 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 data8 = data.reason;if(typeof data8 === "string"){if(func2(data8) < 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(!pattern4.test(data8)){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 data9 = data.state;if(typeof data9 !== "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("unknown" !== data9){const err35 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},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 = _errs28 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props0 !== true){props0 = true;}}const _errs36 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err37 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data.capability === undefined){const err38 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}for(const key4 in data){if(!((key4 === "capability") || (key4 === "state"))){const err39 = {instancePath,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.capability !== undefined){let data10 = data.capability;if(typeof data10 === "string"){if(func2(data10) < 1){const err40 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(!pattern4.test(data10)){const err41 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}else {const err42 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data.state !== undefined){let data11 = data.state;if(typeof data11 !== "string"){const err43 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/4/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("unsupported" !== data11){const err44 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/4/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}else {const err45 = {instancePath,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var _valid0 = _errs36 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 4];}else {if(_valid0){valid0 = true;passing0 = 4;if(props0 !== true){props0 = true;}}}}}}if(!valid0){const err46 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate93.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate93.evaluated = {"dynamicProps":true,"dynamicItems":false};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.key === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.sourceIdentity === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceIdentity"},message:"must have required property '"+"sourceIdentity"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.facts === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "facts"},message:"must have required property '"+"facts"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.sections === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sections"},message:"must have required property '"+"sections"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.localeResidues === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "localeResidues"},message:"must have required property '"+"localeResidues"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.requirements === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "requirements"},message:"must have required property '"+"requirements"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.rewards === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "rewards"},message:"must have required property '"+"rewards"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.dependencies === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "dependencies"},message:"must have required property '"+"dependencies"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.dialogue === undefined){const err8 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "dialogue"},message:"must have required property '"+"dialogue"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.evidence === undefined){const err9 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "evidence"},message:"must have required property '"+"evidence"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}for(const key0 in data){if(!(func1.call(schema32.properties, key0))){const err10 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.dependencies !== undefined){if(!(validate22(data.dependencies, {instancePath:instancePath+"/dependencies",parentData:data,parentDataProperty:"dependencies",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}if(data.dialogue !== undefined){if(!(validate22(data.dialogue, {instancePath:instancePath+"/dialogue",parentData:data,parentDataProperty:"dialogue",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}if(data.evidence !== undefined){if(!(validate22(data.evidence, {instancePath:instancePath+"/evidence",parentData:data,parentDataProperty:"evidence",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}if(data.facts !== undefined){if(!(validate31(data.facts, {instancePath:instancePath+"/facts",parentData:data,parentDataProperty:"facts",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);errors = vErrors.length;}}if(data.key !== undefined){let data4 = data.key;if(typeof data4 === "string"){if(func2(data4) < 1){const err11 = {instancePath:instancePath+"/key",schemaPath:"#/$defs/EntityKey/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(!pattern4.test(data4)){const err12 = {instancePath:instancePath+"/key",schemaPath:"#/$defs/EntityKey/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+"/key",schemaPath:"#/$defs/EntityKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.localeResidues !== undefined){if(!(validate83(data.localeResidues, {instancePath:instancePath+"/localeResidues",parentData:data,parentDataProperty:"localeResidues",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors);errors = vErrors.length;}}if(data.requirements !== undefined){if(!(validate22(data.requirements, {instancePath:instancePath+"/requirements",parentData:data,parentDataProperty:"requirements",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}if(data.rewards !== undefined){if(!(validate22(data.rewards, {instancePath:instancePath+"/rewards",parentData:data,parentDataProperty:"rewards",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}if(data.sections !== undefined){if(!(validate93(data.sections, {instancePath:instancePath+"/sections",parentData:data,parentDataProperty:"sections",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors);errors = vErrors.length;}}if(data.sourceIdentity !== undefined){let data9 = data.sourceIdentity;if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.id === undefined){const err14 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/$defs/SourceIdentity/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data9.discriminator !== undefined){let data10 = data9.discriminator;if((typeof data10 !== "string") && (data10 !== null)){const err15 = {instancePath:instancePath+"/sourceIdentity/discriminator",schemaPath:"#/$defs/SourceIdentity/properties/discriminator/type",keyword:"type",params:{type: schema77.properties.discriminator.type},message:"must be string,null"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data9.id !== undefined){if(typeof data9.id !== "string"){const err16 = {instancePath:instancePath+"/sourceIdentity/id",schemaPath:"#/$defs/SourceIdentity/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data9.namespace !== undefined){let data12 = data9.namespace;if((typeof data12 !== "string") && (data12 !== null)){const err17 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/$defs/SourceIdentity/properties/namespace/type",keyword:"type",params:{type: schema77.properties.namespace.type},message:"must be string,null"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}else {const err18 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/$defs/SourceIdentity/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++;}validate21.errors = vErrors;return errors === 0;}validate21.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 === "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.quest-pack-2" !== data1){const err9 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/const",keyword:"const",params:{allowedValue: "mapletip.quest-pack-2"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.recordKind !== undefined){if(typeof data.recordKind !== "string"){const err10 = {instancePath:instancePath+"/recordKind",schemaPath:"#/properties/recordKind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.records !== undefined){let data3 = data.records;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){for(const key1 in data3){if(!(validate21(data3[key1], {instancePath:instancePath+"/records/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data3,parentDataProperty:key1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}}else {const err11 = {instancePath:instancePath+"/records",schemaPath:"#/properties/records/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.scope !== undefined){let data5 = data.scope;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.family_id === undefined){const err12 = {instancePath:instancePath+"/scope",schemaPath:"#/$defs/BuildScope/required",keyword:"required",params:{missingProperty: "family_id"},message:"must have required property '"+"family_id"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data5.build_id === undefined){const err13 = {instancePath:instancePath+"/scope",schemaPath:"#/$defs/BuildScope/required",keyword:"required",params:{missingProperty: "build_id"},message:"must have required property '"+"build_id"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data5.build_id !== undefined){if(typeof data5.build_id !== "string"){const err14 = {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 = [err14];}else {vErrors.push(err14);}errors++;}}if(data5.family_id !== undefined){if(typeof data5.family_id !== "string"){const err15 = {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 = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/scope",schemaPath:"#/$defs/BuildScope/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};