@meantjs/profile 0.2.0 → 0.4.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.
- package/CHANGELOG.md +24 -0
- package/README.md +12 -4
- package/data/packs/dai-permit.profile.json +117 -0
- package/data/packs/erc20.profile.json +10 -2
- package/data/packs/erc2612.profile.json +204 -0
- package/data/packs/icrc1.profile.json +5 -1
- package/data/packs/icrc2.profile.json +8 -1
- package/data/packs/permit2.profile.json +451 -0
- package/data/profile-v0.schema.json +204 -9
- package/data/profile-v0.validate.mjs +11 -2
- package/package.json +1 -1
- package/src/abi-iface.mjs +49 -7
- package/src/abi-pack.mjs +5 -2
- package/src/abi.mjs +111 -4
- package/src/analyze.mjs +40 -6
- package/src/browser.mjs +6 -1
- package/src/checks.mjs +70 -1
- package/src/evm.d.mts +18 -3
- package/src/evm.mjs +5 -1
- package/src/resolve.mjs +45 -7
- package/src/resolved.mjs +14 -2
- package/src/validate.mjs +8 -4
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
// Generated by packages/resolver/scripts/data.mjs from spec/profile-v0.schema.json with ajv 8.18.0 (standalone code).
|
|
2
2
|
// Do not edit: run `npm run data -w packages/resolver`. The validator generates no code at run time.
|
|
3
|
-
"use strict";export const validate = validate20;export default validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"urn:candid-profile:v0:schema","title":"Candid Profile v0","description":"Meaning for positions in a Candid interface (units, formats, intent, risk, idempotency, outcome classes). Normative prose: docs/profile-v0.md. Structural checks only; address resolution and tag applicability are checked by scripts/validate.mjs.","type":"object","required":["format","format_version","kind","name","origin","binds","annotations"],"additionalProperties":false,"properties":{"format":{"const":"candid-profile"},"format_version":{"const":0},"kind":{"enum":["canister","pack","contract"]},"name":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"},"origin":{"enum":["author","third_party","pack","inferred"]},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$","default":"en"},"description":{"type":"string"},"binds":{"type":"object"},"annotations":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/annotation"}}},"allOf":[{"if":{"properties":{"kind":{"const":"pack"}}},"then":{"properties":{"origin":{"const":"pack"},"binds":{"$ref":"#/$defs/pack_binds"}}}},{"if":{"properties":{"kind":{"const":"canister"}}},"then":{"properties":{"origin":{"enum":["author","third_party","inferred"]},"binds":{"$ref":"#/$defs/canister_binds"}}}},{"if":{"properties":{"kind":{"const":"contract"}}},"then":{"properties":{"origin":{"enum":["author","third_party","inferred"]},"binds":{"$ref":"#/$defs/contract_binds"}}}}],"$defs":{"pack_binds":{"type":"object","required":["standard"],"additionalProperties":false,"properties":{"standard":{"type":"string","pattern":"^[A-Z]+-[0-9]+$"},"spec_url":{"type":"string","pattern":"^https://"},"requires":{"type":"string","minLength":10,"description":"A Candid service fragment. The pack applies to a canister whose service type is a subtype of this fragment."},"abi":{"$ref":"#/$defs/evm_abi","description":"An EVM pack (spec section 15, experimental): the functions it applies to. The pack applies to a contract that has each of them, with the same selector, outputs and kind of call."}},"oneOf":[{"required":["requires"],"properties":{"requires":true}},{"required":["abi"],"properties":{"abi":true}}]},"canister_binds":{"type":"object","required":["interface_id"],"additionalProperties":false,"properties":{"interface_id":{"type":"string","pattern":"^candid-core:interface:v1:sha256:[0-9a-f]{64}$"},"contract_id":{"type":"string","pattern":"^candid-core:contract:v1:sha256:[0-9a-f]{64}$"},"canister_id":{"type":"string","pattern":"^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"}}},"contract_binds":{"type":"object","description":"An EVM contract (spec section 15, experimental): its ABI, and where it is deployed.","required":["abi"],"additionalProperties":false,"properties":{"abi":{"$ref":"#/$defs/evm_abi"},"deployments":{"type":"array","minItems":1,"description":"The chain ids and addresses the profile describes (ERC-7730 context.contract.deployments). A consumer applies the profile to a call only when its target is listed.","items":{"type":"object","required":["chain_id","address"],"additionalProperties":false,"properties":{"chain_id":{"type":"integer","minimum":1},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}}}}},"evm_abi":{"type":"array","minItems":1,"description":"EVM ABI function fragments: human-readable (`function transfer(address to, uint256 value) returns (bool)`) or JSON ABI entries. Only functions are read; events, errors, the constructor, fallback and receive are skipped. Parameter names are what addresses use.","items":{"oneOf":[{"type":"string","pattern":"^\\s*(function|event|error|constructor|fallback|receive)\\b"},{"type":"object","required":["type"],"properties":{"type":{"enum":["function","event","error","constructor","fallback","receive"]}}}]}},"value_address":{"type":"string","description":"METHOD(i)path | METHOD->(i)path | type:DECL path. Paths: .label, .#id, [] (vec element). opt is transparent.","pattern":"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},"method_address":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"relpath":{"type":"string","description":"Path relative to a method's argument tuple (or result tuple, for outcome/list.next/list.items). Starts with (i) when the tuple has more than one element; otherwise relative to element 0.","pattern":"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$","minLength":1},"int_string":{"type":"string","pattern":"^(0|-?[1-9][0-9]*)$"},"dynamic":{"type":"object","required":["from"],"additionalProperties":false,"properties":{"from":{"type":"string","pattern":"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"}}},"time_unit":{"enum":["ns","us","ms","s"]},"outcome_class":{"enum":["success","already_done","retry_same","retry_new","fix_input","fail"]},"annotation":{"type":"object","required":["at","tag","args"],"additionalProperties":false,"properties":{"at":{"type":"string"},"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","describe","ui","intent","effect","idempotency","outcome","list","names","named"]},"args":{"type":"object"},"note":{"type":"string"}},"allOf":[{"if":{"properties":{"tag":{"enum":["idempotency","outcome","list","names"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/method_address"}}}},{"if":{"properties":{"tag":{"enum":["intent","effect"]}}},"then":{"properties":{"at":{"anyOf":[{"$ref":"#/$defs/method_address"},{"$ref":"#/$defs/value_address"}]}}}},{"if":{"properties":{"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","ui","named"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/value_address"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"at":{"anyOf":[{"$ref":"#/$defs/value_address"},{"$ref":"#/$defs/method_address"}]}}}},{"if":{"properties":{"tag":{"const":"amount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_amount"}}}},{"if":{"properties":{"tag":{"const":"timestamp"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_timestamp"}}}},{"if":{"properties":{"tag":{"const":"duration"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_duration"}}}},{"if":{"properties":{"tag":{"const":"account"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_account"}}}},{"if":{"properties":{"tag":{"const":"subaccount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_empty"}}}},{"if":{"properties":{"tag":{"const":"bytes"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_bytes"}}}},{"if":{"properties":{"tag":{"const":"text"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_text"}}}},{"if":{"properties":{"tag":{"const":"range"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_range"}}}},{"if":{"properties":{"tag":{"const":"default"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_default"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_describe"}}}},{"if":{"properties":{"tag":{"const":"ui"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_ui"}}}},{"if":{"properties":{"tag":{"const":"intent"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_intent"}}}},{"if":{"properties":{"tag":{"const":"effect"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_effect"}}}},{"if":{"properties":{"tag":{"const":"idempotency"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_idempotency"}}}},{"if":{"properties":{"tag":{"const":"outcome"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_outcome"}}}},{"if":{"properties":{"tag":{"const":"list"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_list"}}}},{"if":{"properties":{"tag":{"const":"names"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_names"}}}},{"if":{"properties":{"tag":{"const":"named"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_named"}}}}]},"args_empty":{"type":"object","additionalProperties":false,"maxProperties":0},"args_amount":{"type":"object","required":["decimals"],"additionalProperties":false,"properties":{"decimals":{"oneOf":[{"type":"integer","minimum":0,"maximum":255},{"$ref":"#/$defs/dynamic"}]},"symbol":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"$ref":"#/$defs/dynamic"}]},"threshold":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$","description":"Display only: a value at or above this (base units, a decimal string) displays as `message` and the symbol, for example \"Unlimited USDC\" (spec section 5.3)."},"message":{"type":"string","minLength":1,"maxLength":32,"description":"What a value at or above `threshold` displays as (default \"Unlimited\")."}},"dependentRequired":{"message":["threshold"]}},"args_timestamp":{"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"},"epoch":{"const":"unix"}}},"args_duration":{"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"}}},"args_account":{"type":"object","additionalProperties":false,"properties":{"encoding":{"const":"icrc1"}}},"args_bytes":{"type":"object","required":["encoding"],"additionalProperties":false,"properties":{"encoding":{"enum":["utf8","hex","base64"]},"max_len":{"type":"integer","minimum":0}}},"args_text":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"format":{"enum":["plain","markdown","email","url"]},"max_len":{"type":"integer","minimum":0},"pattern":{"type":"string"}}},"args_range":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"min":{"$ref":"#/$defs/int_string"},"max":{"$ref":"#/$defs/int_string"},"min_len":{"type":"integer","minimum":0},"max_len":{"type":"integer","minimum":0}}},"args_default":{"type":"object","required":["value","mode"],"additionalProperties":false,"properties":{"value":{"oneOf":[{"type":"string","description":"Candid textual literal, e.g. \"null\" or \"opt 0\""},{"$ref":"#/$defs/dynamic"}]},"mode":{"enum":["auto","suggest"]}}},"args_describe":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"label":{"type":"string","minLength":1,"maxLength":80},"help":{"type":"string","minLength":1,"maxLength":2000}}},"args_ui":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"order":{"type":"integer"},"group":{"type":"string"},"hidden":{"type":"boolean"},"widget":{"type":"string"}}},"args_intent":{"type":"object","required":["title","template"],"additionalProperties":false,"properties":{"title":{"type":"string","minLength":1,"maxLength":60},"template":{"type":"string","minLength":1,"maxLength":500}}},"args_effect":{"type":"object","required":["kind","irreversible"],"additionalProperties":false,"properties":{"kind":{"enum":["read","write","transfer","approve","admin","destroy"]},"irreversible":{"type":"boolean"},"replicated":{"type":"boolean"}}},"args_idempotency":{"type":"object","required":["mode","stamp"],"additionalProperties":false,"properties":{"mode":{"const":"replay_same_payload"},"stamp":{"$ref":"#/$defs/relpath"}}},"args_outcome":{"type":"object","description":"classes, default or both: a result with no variant to select has default alone (spec 5.3, D-049)","minProperties":1,"additionalProperties":false,"properties":{"classes":{"type":"object","minProperties":1,"propertyNames":{"$ref":"#/$defs/relpath"},"additionalProperties":{"$ref":"#/$defs/outcome_class"}},"default":{"$ref":"#/$defs/outcome_class"}}},"args_list":{"type":"object","required":["cursor","next","items"],"additionalProperties":false,"properties":{"cursor":{"$ref":"#/$defs/relpath"},"next":{"$ref":"#/$defs/relpath"},"items":{"$ref":"#/$defs/relpath"}}},"set_name":{"type":"string","pattern":"^[a-z][a-z0-9_]*$","maxLength":64,"description":"A names set's name, which named tags refer to."},"args_names":{"type":"object","required":["set","items","name","value"],"additionalProperties":false,"description":"A method that lists named things (spec 5.3, D-045). items is a results relpath to a vec of records; name, value, show and kind are paths inside one item.","properties":{"set":{"$ref":"#/$defs/set_name"},"items":{"$ref":"#/$defs/relpath"},"name":{"$ref":"#/$defs/relpath"},"value":{"$ref":"#/$defs/relpath"},"show":{"$ref":"#/$defs/relpath"},"kind":{"$ref":"#/$defs/relpath"}}},"args_named":{"type":"object","required":["set"],"additionalProperties":false,"description":"A position a name from a names set can stand for (spec 5.3, D-045).","properties":{"set":{"$ref":"#/$defs/set_name"},"by":{"enum":["value","show"]}}}}};const schema34 = {"type":"object","required":["interface_id"],"additionalProperties":false,"properties":{"interface_id":{"type":"string","pattern":"^candid-core:interface:v1:sha256:[0-9a-f]{64}$"},"contract_id":{"type":"string","pattern":"^candid-core:contract:v1:sha256:[0-9a-f]{64}$"},"canister_id":{"type":"string","pattern":"^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"}}};const schema32 = {"type":"object","required":["standard"],"additionalProperties":false,"properties":{"standard":{"type":"string","pattern":"^[A-Z]+-[0-9]+$"},"spec_url":{"type":"string","pattern":"^https://"},"requires":{"type":"string","minLength":10,"description":"A Candid service fragment. The pack applies to a canister whose service type is a subtype of this fragment."},"abi":{"$ref":"#/$defs/evm_abi","description":"An EVM pack (spec section 15, experimental): the functions it applies to. The pack applies to a contract that has each of them, with the same selector, outputs and kind of call."}},"oneOf":[{"required":["requires"],"properties":{"requires":true}},{"required":["abi"],"properties":{"abi":true}}]};const schema33 = {"type":"array","minItems":1,"description":"EVM ABI function fragments: human-readable (`function transfer(address to, uint256 value) returns (bool)`) or JSON ABI entries. Only functions are read; events, errors, the constructor, fallback and receive are skipped. Parameter names are what addresses use.","items":{"oneOf":[{"type":"string","pattern":"^\\s*(function|event|error|constructor|fallback|receive)\\b"},{"type":"object","required":["type"],"properties":{"type":{"enum":["function","event","error","constructor","fallback","receive"]}}}]}};const pattern4 = new RegExp("^[A-Z]+-[0-9]+$", "u");const pattern5 = new RegExp("^https://", "u");const pattern6 = new RegExp("^\\s*(function|event|error|constructor|fallback|receive)\\b", "u");const func1 = ucs2length;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;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.requires === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "requires"},message:"must have required property '"+"requires"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = {};props0.requires = true;}const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.abi === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "abi"},message:"must have required property '"+"abi"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = props0 || {};props0.abi = true;}}}if(!valid0){const err2 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.standard === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "standard"},message:"must have required property '"+"standard"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!((((key0 === "standard") || (key0 === "spec_url")) || (key0 === "requires")) || (key0 === "abi"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.standard !== undefined){let data0 = data.standard;if(typeof data0 === "string"){if(!pattern4.test(data0)){const err5 = {instancePath:instancePath+"/standard",schemaPath:"#/properties/standard/pattern",keyword:"pattern",params:{pattern: "^[A-Z]+-[0-9]+$"},message:"must match pattern \""+"^[A-Z]+-[0-9]+$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/standard",schemaPath:"#/properties/standard/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.spec_url !== undefined){let data1 = data.spec_url;if(typeof data1 === "string"){if(!pattern5.test(data1)){const err7 = {instancePath:instancePath+"/spec_url",schemaPath:"#/properties/spec_url/pattern",keyword:"pattern",params:{pattern: "^https://"},message:"must match pattern \""+"^https://"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/spec_url",schemaPath:"#/properties/spec_url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.requires !== undefined){let data2 = data.requires;if(typeof data2 === "string"){if(func1(data2) < 10){const err9 = {instancePath:instancePath+"/requires",schemaPath:"#/properties/requires/minLength",keyword:"minLength",params:{limit: 10},message:"must NOT have fewer than 10 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/requires",schemaPath:"#/properties/requires/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.abi !== undefined){let data3 = data.abi;if(Array.isArray(data3)){if(data3.length < 1){const err11 = {instancePath:instancePath+"/abi",schemaPath:"#/$defs/evm_abi/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];const _errs15 = errors;let valid5 = false;let passing1 = null;const _errs16 = errors;if(typeof data4 === "string"){if(!pattern6.test(data4)){const err12 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/0/pattern",keyword:"pattern",params:{pattern: "^\\s*(function|event|error|constructor|fallback|receive)\\b"},message:"must match pattern \""+"^\\s*(function|event|error|constructor|fallback|receive)\\b"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid1 = _errs16 === errors;if(_valid1){valid5 = true;passing1 = 0;}const _errs18 = errors;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.type === undefined){const err14 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data4.type !== undefined){let data5 = data4.type;if(!((((((data5 === "function") || (data5 === "event")) || (data5 === "error")) || (data5 === "constructor")) || (data5 === "fallback")) || (data5 === "receive"))){const err15 = {instancePath:instancePath+"/abi/" + i0+"/type",schemaPath:"#/$defs/evm_abi/items/oneOf/1/properties/type/enum",keyword:"enum",params:{allowedValues: schema33.items.oneOf[1].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid1 = _errs18 === errors;if(_valid1 && valid5){valid5 = false;passing1 = [passing1, 1];}else {if(_valid1){valid5 = true;passing1 = 1;var props1 = {};props1.type = true;}}if(!valid5){const err17 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}}}else {const err18 = {instancePath:instancePath+"/abi",schemaPath:"#/$defs/evm_abi/type",keyword:"type",params:{type: "array"},message:"must be array"};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};const schema35 = {"type":"object","description":"An EVM contract (spec section 15, experimental): its ABI, and where it is deployed.","required":["abi"],"additionalProperties":false,"properties":{"abi":{"$ref":"#/$defs/evm_abi"},"deployments":{"type":"array","minItems":1,"description":"The chain ids and addresses the profile describes (ERC-7730 context.contract.deployments). A consumer applies the profile to a call only when its target is listed.","items":{"type":"object","required":["chain_id","address"],"additionalProperties":false,"properties":{"chain_id":{"type":"integer","minimum":1},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}}}}};const pattern11 = new RegExp("^0x[0-9a-fA-F]{40}$", "u");function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate23.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.abi === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "abi"},message:"must have required property '"+"abi"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "abi") || (key0 === "deployments"))){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.abi !== undefined){let data0 = data.abi;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/abi",schemaPath:"#/$defs/evm_abi/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){let data1 = data0[i0];const _errs6 = errors;let valid4 = false;let passing0 = null;const _errs7 = errors;if(typeof data1 === "string"){if(!pattern6.test(data1)){const err3 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/0/pattern",keyword:"pattern",params:{pattern: "^\\s*(function|event|error|constructor|fallback|receive)\\b"},message:"must match pattern \""+"^\\s*(function|event|error|constructor|fallback|receive)\\b"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid0 = _errs7 === errors;if(_valid0){valid4 = true;passing0 = 0;}const _errs9 = errors;if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.type === undefined){const err5 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data1.type !== undefined){let data2 = data1.type;if(!((((((data2 === "function") || (data2 === "event")) || (data2 === "error")) || (data2 === "constructor")) || (data2 === "fallback")) || (data2 === "receive"))){const err6 = {instancePath:instancePath+"/abi/" + i0+"/type",schemaPath:"#/$defs/evm_abi/items/oneOf/1/properties/type/enum",keyword:"enum",params:{allowedValues: schema33.items.oneOf[1].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid0 = _errs9 === errors;if(_valid0 && valid4){valid4 = false;passing0 = [passing0, 1];}else {if(_valid0){valid4 = true;passing0 = 1;var props0 = {};props0.type = true;}}if(!valid4){const err8 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}}}else {const err9 = {instancePath:instancePath+"/abi",schemaPath:"#/$defs/evm_abi/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.deployments !== undefined){let data3 = data.deployments;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/deployments",schemaPath:"#/properties/deployments/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.chain_id === undefined){const err11 = {instancePath:instancePath+"/deployments/" + i1,schemaPath:"#/properties/deployments/items/required",keyword:"required",params:{missingProperty: "chain_id"},message:"must have required property '"+"chain_id"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data4.address === undefined){const err12 = {instancePath:instancePath+"/deployments/" + i1,schemaPath:"#/properties/deployments/items/required",keyword:"required",params:{missingProperty: "address"},message:"must have required property '"+"address"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}for(const key1 in data4){if(!((key1 === "chain_id") || (key1 === "address"))){const err13 = {instancePath:instancePath+"/deployments/" + i1,schemaPath:"#/properties/deployments/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data4.chain_id !== undefined){let data5 = data4.chain_id;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err14 = {instancePath:instancePath+"/deployments/" + i1+"/chain_id",schemaPath:"#/properties/deployments/items/properties/chain_id/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 1 || isNaN(data5)){const err15 = {instancePath:instancePath+"/deployments/" + i1+"/chain_id",schemaPath:"#/properties/deployments/items/properties/chain_id/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}if(data4.address !== undefined){let data6 = data4.address;if(typeof data6 === "string"){if(!pattern11.test(data6)){const err16 = {instancePath:instancePath+"/deployments/" + i1+"/address",schemaPath:"#/properties/deployments/items/properties/address/pattern",keyword:"pattern",params:{pattern: "^0x[0-9a-fA-F]{40}$"},message:"must match pattern \""+"^0x[0-9a-fA-F]{40}$"+"\""};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}else {const err17 = {instancePath:instancePath+"/deployments/" + i1+"/address",schemaPath:"#/properties/deployments/items/properties/address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}else {const err18 = {instancePath:instancePath+"/deployments/" + i1,schemaPath:"#/properties/deployments/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}else {const err19 = {instancePath:instancePath+"/deployments",schemaPath:"#/properties/deployments/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}else {const err20 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}validate23.errors = vErrors;return errors === 0;}validate23.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema37 = {"type":"object","required":["at","tag","args"],"additionalProperties":false,"properties":{"at":{"type":"string"},"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","describe","ui","intent","effect","idempotency","outcome","list","names","named"]},"args":{"type":"object"},"note":{"type":"string"}},"allOf":[{"if":{"properties":{"tag":{"enum":["idempotency","outcome","list","names"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/method_address"}}}},{"if":{"properties":{"tag":{"enum":["intent","effect"]}}},"then":{"properties":{"at":{"anyOf":[{"$ref":"#/$defs/method_address"},{"$ref":"#/$defs/value_address"}]}}}},{"if":{"properties":{"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","ui","named"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/value_address"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"at":{"anyOf":[{"$ref":"#/$defs/value_address"},{"$ref":"#/$defs/method_address"}]}}}},{"if":{"properties":{"tag":{"const":"amount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_amount"}}}},{"if":{"properties":{"tag":{"const":"timestamp"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_timestamp"}}}},{"if":{"properties":{"tag":{"const":"duration"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_duration"}}}},{"if":{"properties":{"tag":{"const":"account"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_account"}}}},{"if":{"properties":{"tag":{"const":"subaccount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_empty"}}}},{"if":{"properties":{"tag":{"const":"bytes"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_bytes"}}}},{"if":{"properties":{"tag":{"const":"text"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_text"}}}},{"if":{"properties":{"tag":{"const":"range"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_range"}}}},{"if":{"properties":{"tag":{"const":"default"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_default"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_describe"}}}},{"if":{"properties":{"tag":{"const":"ui"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_ui"}}}},{"if":{"properties":{"tag":{"const":"intent"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_intent"}}}},{"if":{"properties":{"tag":{"const":"effect"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_effect"}}}},{"if":{"properties":{"tag":{"const":"idempotency"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_idempotency"}}}},{"if":{"properties":{"tag":{"const":"outcome"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_outcome"}}}},{"if":{"properties":{"tag":{"const":"list"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_list"}}}},{"if":{"properties":{"tag":{"const":"names"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_names"}}}},{"if":{"properties":{"tag":{"const":"named"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_named"}}}}]};const schema38 = {"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"};const schema40 = {"type":"string","description":"METHOD(i)path | METHOD->(i)path | type:DECL path. Paths: .label, .#id, [] (vec element). opt is transparent.","pattern":"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"};const schema51 = {"type":"object","additionalProperties":false,"properties":{"encoding":{"const":"icrc1"}}};const schema52 = {"type":"object","additionalProperties":false,"maxProperties":0};const schema53 = {"type":"object","required":["encoding"],"additionalProperties":false,"properties":{"encoding":{"enum":["utf8","hex","base64"]},"max_len":{"type":"integer","minimum":0}}};const schema54 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"format":{"enum":["plain","markdown","email","url"]},"max_len":{"type":"integer","minimum":0},"pattern":{"type":"string"}}};const schema60 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"label":{"type":"string","minLength":1,"maxLength":80},"help":{"type":"string","minLength":1,"maxLength":2000}}};const schema61 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"order":{"type":"integer"},"group":{"type":"string"},"hidden":{"type":"boolean"},"widget":{"type":"string"}}};const schema62 = {"type":"object","required":["title","template"],"additionalProperties":false,"properties":{"title":{"type":"string","minLength":1,"maxLength":60},"template":{"type":"string","minLength":1,"maxLength":500}}};const schema63 = {"type":"object","required":["kind","irreversible"],"additionalProperties":false,"properties":{"kind":{"enum":["read","write","transfer","approve","admin","destroy"]},"irreversible":{"type":"boolean"},"replicated":{"type":"boolean"}}};const pattern14 = new RegExp("^[A-Za-z_][A-Za-z0-9_]*$", "u");const pattern16 = new RegExp("^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$", "u");const schema44 = {"type":"object","required":["decimals"],"additionalProperties":false,"properties":{"decimals":{"oneOf":[{"type":"integer","minimum":0,"maximum":255},{"$ref":"#/$defs/dynamic"}]},"symbol":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"$ref":"#/$defs/dynamic"}]},"threshold":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$","description":"Display only: a value at or above this (base units, a decimal string) displays as `message` and the symbol, for example \"Unlimited USDC\" (spec section 5.3)."},"message":{"type":"string","minLength":1,"maxLength":32,"description":"What a value at or above `threshold` displays as (default \"Unlimited\")."}},"dependentRequired":{"message":["threshold"]}};const schema45 = {"type":"object","required":["from"],"additionalProperties":false,"properties":{"from":{"type":"string","pattern":"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"}}};const pattern20 = new RegExp("^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$", "u");const pattern22 = new RegExp("^(0|[1-9][0-9]{0,77})$", "u");function validate26(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate26.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.decimals === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "decimals"},message:"must have required property '"+"decimals"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((((key0 === "decimals") || (key0 === "symbol")) || (key0 === "threshold")) || (key0 === "message"))){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.decimals !== undefined){let data0 = data.decimals;const _errs3 = errors;let valid1 = false;let passing0 = null;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err2 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if((typeof data0 == "number") && (isFinite(data0))){if(data0 > 255 || isNaN(data0)){const err3 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf/0/maximum",keyword:"maximum",params:{comparison: "<=", limit: 255},message:"must be <= 255"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data0 < 0 || isNaN(data0)){const err4 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var _valid0 = _errs4 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.from === undefined){const err5 = {instancePath:instancePath+"/decimals",schemaPath:"#/$defs/dynamic/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key1 in data0){if(!(key1 === "from")){const err6 = {instancePath:instancePath+"/decimals",schemaPath:"#/$defs/dynamic/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.from !== undefined){let data1 = data0.from;if(typeof data1 === "string"){if(!pattern20.test(data1)){const err7 = {instancePath:instancePath+"/decimals/from",schemaPath:"#/$defs/dynamic/properties/from/pattern",keyword:"pattern",params:{pattern: "^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"},message:"must match pattern \""+"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/decimals/from",schemaPath:"#/$defs/dynamic/properties/from/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}else {const err9 = {instancePath:instancePath+"/decimals",schemaPath:"#/$defs/dynamic/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid0 = _errs6 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 1];}else {if(_valid0){valid1 = true;passing0 = 1;}}if(!valid1){const err10 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}}if(data.symbol !== undefined){let data2 = data.symbol;const _errs13 = errors;let valid4 = false;let passing1 = null;const _errs14 = errors;if(typeof data2 === "string"){if(func1(data2) > 32){const err11 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 32},message:"must NOT have more than 32 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(func1(data2) < 1){const err12 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid1 = _errs14 === errors;if(_valid1){valid4 = true;passing1 = 0;}const _errs16 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.from === undefined){const err14 = {instancePath:instancePath+"/symbol",schemaPath:"#/$defs/dynamic/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}for(const key2 in data2){if(!(key2 === "from")){const err15 = {instancePath:instancePath+"/symbol",schemaPath:"#/$defs/dynamic/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.from !== undefined){let data3 = data2.from;if(typeof data3 === "string"){if(!pattern20.test(data3)){const err16 = {instancePath:instancePath+"/symbol/from",schemaPath:"#/$defs/dynamic/properties/from/pattern",keyword:"pattern",params:{pattern: "^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"},message:"must match pattern \""+"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"+"\""};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}else {const err17 = {instancePath:instancePath+"/symbol/from",schemaPath:"#/$defs/dynamic/properties/from/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}else {const err18 = {instancePath:instancePath+"/symbol",schemaPath:"#/$defs/dynamic/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid1 = _errs16 === errors;if(_valid1 && valid4){valid4 = false;passing1 = [passing1, 1];}else {if(_valid1){valid4 = true;passing1 = 1;}}if(!valid4){const err19 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}}if(data.threshold !== undefined){let data4 = data.threshold;if(typeof data4 === "string"){if(!pattern22.test(data4)){const err20 = {instancePath:instancePath+"/threshold",schemaPath:"#/properties/threshold/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]{0,77})$"},message:"must match pattern \""+"^(0|[1-9][0-9]{0,77})$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {instancePath:instancePath+"/threshold",schemaPath:"#/properties/threshold/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.message !== undefined){let data5 = data.message;if(typeof data5 === "string"){if(func1(data5) > 32){const err22 = {instancePath:instancePath+"/message",schemaPath:"#/properties/message/maxLength",keyword:"maxLength",params:{limit: 32},message:"must NOT have more than 32 characters"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(func1(data5) < 1){const err23 = {instancePath:instancePath+"/message",schemaPath:"#/properties/message/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}else {const err24 = {instancePath:instancePath+"/message",schemaPath:"#/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.message !== undefined){if(data.threshold === undefined){const err25 = {instancePath,schemaPath:"#/dependentRequired",keyword:"dependentRequired",params:{property: "message",
|
|
3
|
+
"use strict";export const validate = validate20;export default validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"urn:candid-profile:v0:schema","title":"Candid Profile v0","description":"Meaning for positions in a Candid interface (units, formats, intent, risk, idempotency, outcome classes). Normative prose: docs/profile-v0.md. Structural checks only; address resolution and tag applicability are checked by scripts/validate.mjs.","type":"object","required":["format","format_version","kind","name","origin","binds","annotations"],"additionalProperties":false,"properties":{"format":{"const":"candid-profile"},"format_version":{"const":0},"kind":{"enum":["canister","pack","contract"]},"name":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"},"origin":{"enum":["author","third_party","pack","inferred"]},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$","default":"en"},"description":{"type":"string"},"binds":{"type":"object"},"annotations":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/annotation"}}},"allOf":[{"if":{"properties":{"kind":{"const":"pack"}}},"then":{"properties":{"origin":{"const":"pack"},"binds":{"$ref":"#/$defs/pack_binds"}}}},{"if":{"properties":{"kind":{"const":"canister"}}},"then":{"properties":{"origin":{"enum":["author","third_party","inferred"]},"binds":{"$ref":"#/$defs/canister_binds"}}}},{"if":{"properties":{"kind":{"const":"contract"}}},"then":{"properties":{"origin":{"enum":["author","third_party","inferred"]},"binds":{"$ref":"#/$defs/contract_binds"}}}}],"$defs":{"pack_binds":{"type":"object","required":["standard"],"additionalProperties":false,"properties":{"standard":{"type":"string","pattern":"^[A-Z]+-[0-9]+$"},"spec_url":{"type":"string","pattern":"^https://"},"requires":{"type":"string","minLength":10,"description":"A Candid service fragment. The pack applies to a canister whose service type is a subtype of this fragment."},"abi":{"$ref":"#/$defs/evm_abi","description":"An EVM pack (spec section 15, experimental): the functions it applies to. The pack applies to a contract that has each of them, with the same selector, outputs and kind of call."},"eip712":{"$ref":"#/$defs/eip712","description":"An EVM pack's EIP-712 messages (spec section 15.9), beside its binds.abi."}},"oneOf":[{"required":["requires"],"properties":{"requires":true}},{"required":["abi"],"properties":{"abi":true}}],"dependentRequired":{"eip712":["abi"]}},"canister_binds":{"type":"object","required":["interface_id"],"additionalProperties":false,"properties":{"interface_id":{"type":"string","pattern":"^candid-core:interface:v1:sha256:[0-9a-f]{64}$"},"contract_id":{"type":"string","pattern":"^candid-core:contract:v1:sha256:[0-9a-f]{64}$"},"canister_id":{"type":"string","pattern":"^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"}}},"contract_binds":{"type":"object","description":"An EVM contract (spec section 15, experimental): its ABI, the EIP-712 messages it verifies (section 15.9), and where it is deployed.","additionalProperties":false,"properties":{"abi":{"$ref":"#/$defs/evm_abi"},"deployments":{"type":"array","minItems":1,"description":"The chain ids and addresses the profile describes (ERC-7730 context.contract.deployments). A consumer applies the profile to a call only when its target is listed.","items":{"type":"object","required":["chain_id","address"],"additionalProperties":false,"properties":{"chain_id":{"type":"integer","minimum":1},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}}},"eip712":{"$ref":"#/$defs/eip712"}},"anyOf":[{"required":["abi"],"properties":{"abi":true}},{"required":["eip712"],"properties":{"eip712":true}}]},"evm_abi":{"type":"array","minItems":1,"description":"EVM ABI function fragments: human-readable (`function transfer(address to, uint256 value) returns (bool)`) or JSON ABI entries. Only functions are read; events, errors, the constructor, fallback and receive are skipped. Parameter names are what addresses use.","items":{"oneOf":[{"type":"string","pattern":"^\\s*(function|event|error|constructor|fallback|receive)\\b"},{"type":"object","required":["type"],"properties":{"type":{"enum":["function","event","error","constructor","fallback","receive"]}}}]}},"eip712":{"type":"object","description":"EIP-712 typed messages (spec section 15.9, experimental): the struct types, in the JSON shape of an eth_signTypedData request without EIP712Domain, and the domain's name and version. A type whose name the profile tags with intent is a message; chainId and verifyingContract come from binds.deployments.","required":["types"],"additionalProperties":false,"properties":{"domain":{"type":"object","minProperties":1,"additionalProperties":false,"description":"Each value must equal the request's domain value of the same name (ERC-7730 context.eip712.domain).","properties":{"name":{"type":"string","minLength":1},"version":{"type":"string","minLength":1}}},"types":{"type":"object","minProperties":1,"propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"additionalProperties":{"type":"array","minItems":1,"items":{"type":"object","required":["name","type"],"additionalProperties":false,"properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"type":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*(\\[([1-9][0-9]*)?\\])*$"}}}}}}},"value_address":{"type":"string","description":"METHOD(i)path | METHOD->(i)path | type:DECL path. Paths: .label, .#id, [] (vec element). opt is transparent.","pattern":"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},"method_address":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"relpath":{"type":"string","description":"Path relative to a method's argument tuple (or result tuple, for outcome/list.next/list.items). Starts with (i) when the tuple has more than one element; otherwise relative to element 0.","pattern":"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$","minLength":1},"int_string":{"type":"string","pattern":"^(0|-?[1-9][0-9]*)$"},"dynamic":{"type":"object","required":["from"],"additionalProperties":false,"properties":{"from":{"type":"string","pattern":"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"}}},"time_unit":{"enum":["ns","us","ms","s"]},"outcome_class":{"enum":["success","already_done","retry_same","retry_new","fix_input","fail"]},"annotation":{"type":"object","required":["at","tag","args"],"additionalProperties":false,"properties":{"at":{"type":"string"},"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","describe","ui","intent","effect","idempotency","outcome","list","names","named"]},"args":{"type":"object"},"note":{"type":"string"}},"allOf":[{"if":{"properties":{"tag":{"enum":["idempotency","outcome","list","names"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/method_address"}}}},{"if":{"properties":{"tag":{"enum":["intent","effect"]}}},"then":{"properties":{"at":{"anyOf":[{"$ref":"#/$defs/method_address"},{"$ref":"#/$defs/value_address"}]}}}},{"if":{"properties":{"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","ui","named"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/value_address"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"at":{"anyOf":[{"$ref":"#/$defs/value_address"},{"$ref":"#/$defs/method_address"}]}}}},{"if":{"properties":{"tag":{"const":"amount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_amount"}}}},{"if":{"properties":{"tag":{"const":"timestamp"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_timestamp"}}}},{"if":{"properties":{"tag":{"const":"duration"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_duration"}}}},{"if":{"properties":{"tag":{"const":"account"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_account"}}}},{"if":{"properties":{"tag":{"const":"subaccount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_empty"}}}},{"if":{"properties":{"tag":{"const":"bytes"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_bytes"}}}},{"if":{"properties":{"tag":{"const":"text"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_text"}}}},{"if":{"properties":{"tag":{"const":"range"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_range"}}}},{"if":{"properties":{"tag":{"const":"default"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_default"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_describe"}}}},{"if":{"properties":{"tag":{"const":"ui"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_ui"}}}},{"if":{"properties":{"tag":{"const":"intent"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_intent"}}}},{"if":{"properties":{"tag":{"const":"effect"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_effect"}}}},{"if":{"properties":{"tag":{"const":"idempotency"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_idempotency"}}}},{"if":{"properties":{"tag":{"const":"outcome"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_outcome"}}}},{"if":{"properties":{"tag":{"const":"list"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_list"}}}},{"if":{"properties":{"tag":{"const":"names"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_names"}}}},{"if":{"properties":{"tag":{"const":"named"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_named"}}}}]},"args_empty":{"type":"object","additionalProperties":false,"maxProperties":0},"args_amount":{"type":"object","additionalProperties":false,"properties":{"decimals":{"oneOf":[{"type":"integer","minimum":0,"maximum":255},{"$ref":"#/$defs/dynamic"}]},"symbol":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"$ref":"#/$defs/dynamic"}]},"token":{"$ref":"#/$defs/relpath","description":"An EVM amount in a token another field names (spec section 15.9): the relative path to that address, in the same array element as the amount. Its decimals and symbol are the token's, which the consumer supplies; decimals and symbol are then left out."},"threshold":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$","description":"Display only: a value at or above this (base units, a decimal string) displays as `message` and the symbol, for example \"Unlimited USDC\" (spec section 5.3)."},"message":{"type":"string","minLength":1,"maxLength":32,"description":"What a value at or above `threshold` displays as (default \"Unlimited\")."}},"dependentRequired":{"message":["threshold"]},"anyOf":[{"required":["decimals"],"properties":{"decimals":true}},{"required":["token"],"properties":{"token":true}}],"dependentSchemas":{"token":{"properties":{"decimals":false,"symbol":false}}}},"args_timestamp":{"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"},"epoch":{"const":"unix"},"threshold":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$","description":"Display only: a value at or above this (in the tagged unit, a decimal string) displays as `message`, for example \"Never\" for a deadline of uint256 max (spec section 15.9)."},"message":{"type":"string","minLength":1,"maxLength":32,"description":"What a value at or above `threshold` displays as."},"labels":{"type":"object","minProperties":1,"maxProperties":16,"propertyNames":{"pattern":"^(0|[1-9][0-9]{0,77})$"},"additionalProperties":{"type":"string","minLength":1,"maxLength":32},"description":"Display only: words for exact values (in the tagged unit), for example { \"0\": \"Only in the block it is used\" } (spec section 15.9)."}},"dependentRequired":{"message":["threshold"],"threshold":["message"]}},"args_duration":{"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"}}},"args_account":{"type":"object","additionalProperties":false,"properties":{"encoding":{"const":"icrc1"}}},"args_bytes":{"type":"object","required":["encoding"],"additionalProperties":false,"properties":{"encoding":{"enum":["utf8","hex","base64"]},"max_len":{"type":"integer","minimum":0}}},"args_text":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"format":{"enum":["plain","markdown","email","url"]},"max_len":{"type":"integer","minimum":0},"pattern":{"type":"string"}}},"args_range":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"min":{"$ref":"#/$defs/int_string"},"max":{"$ref":"#/$defs/int_string"},"min_len":{"type":"integer","minimum":0},"max_len":{"type":"integer","minimum":0}}},"args_default":{"type":"object","required":["value","mode"],"additionalProperties":false,"properties":{"value":{"oneOf":[{"type":"string","description":"Candid textual literal, e.g. \"null\" or \"opt 0\""},{"$ref":"#/$defs/dynamic"}]},"mode":{"enum":["auto","suggest"]}}},"args_describe":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"label":{"type":"string","minLength":1,"maxLength":80},"help":{"type":"string","minLength":1,"maxLength":2000}}},"args_ui":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"order":{"type":"integer"},"group":{"type":"string"},"hidden":{"type":"boolean"},"widget":{"type":"string"}}},"args_intent":{"type":"object","required":["title","template"],"additionalProperties":false,"properties":{"title":{"type":"string","minLength":1,"maxLength":60},"template":{"type":"string","minLength":1,"maxLength":500}}},"args_effect":{"type":"object","required":["kind","irreversible"],"additionalProperties":false,"properties":{"kind":{"enum":["read","write","transfer","approve","admin","destroy"]},"irreversible":{"type":"boolean"},"replicated":{"type":"boolean"},"grant":{"$ref":"#/$defs/grant","description":"What a transfer or approve lets someone take (spec section 5.3, D-056), for a check against terms the user confirmed."}}},"grant":{"type":"object","description":"Who may take the tokens, how many and until when, as relative paths into the method's arguments (spec section 5.3, D-056). Exactly one of spender and to.","required":["amount"],"additionalProperties":false,"properties":{"spender":{"$ref":"#/$defs/relpath","description":"Who may take the tokens through an allowance, or with a signature someone else submits: an address, or a position with an account tag."},"to":{"$ref":"#/$defs/relpath","description":"Who a transfer pays directly: an address, or a position with an account tag."},"amount":{"$ref":"#/$defs/relpath","description":"A position with an amount tag, whose threshold means unlimited; or a bool, where true is unlimited and false grants nothing."},"ends":{"type":"array","minItems":1,"maxItems":8,"items":{"$ref":"#/$defs/relpath"},"description":"Positions with a timestamp tag; the grant ends at the latest of them, and one at its threshold or left out means never. Without ends, an approve never ends and a transfer ends when it is done."}},"oneOf":[{"required":["spender"],"properties":{"spender":true}},{"required":["to"],"properties":{"to":true}}]},"args_idempotency":{"type":"object","required":["mode","stamp"],"additionalProperties":false,"properties":{"mode":{"const":"replay_same_payload"},"stamp":{"$ref":"#/$defs/relpath"}}},"args_outcome":{"type":"object","description":"classes, default or both: a result with no variant to select has default alone (spec 5.3, D-049)","minProperties":1,"additionalProperties":false,"properties":{"classes":{"type":"object","minProperties":1,"propertyNames":{"$ref":"#/$defs/relpath"},"additionalProperties":{"$ref":"#/$defs/outcome_class"}},"default":{"$ref":"#/$defs/outcome_class"}}},"args_list":{"type":"object","required":["cursor","next","items"],"additionalProperties":false,"properties":{"cursor":{"$ref":"#/$defs/relpath"},"next":{"$ref":"#/$defs/relpath"},"items":{"$ref":"#/$defs/relpath"}}},"set_name":{"type":"string","pattern":"^[a-z][a-z0-9_]*$","maxLength":64,"description":"A names set's name, which named tags refer to."},"args_names":{"type":"object","required":["set","items","name","value"],"additionalProperties":false,"description":"A method that lists named things (spec 5.3, D-045). items is a results relpath to a vec of records; name, value, show and kind are paths inside one item.","properties":{"set":{"$ref":"#/$defs/set_name"},"items":{"$ref":"#/$defs/relpath"},"name":{"$ref":"#/$defs/relpath"},"value":{"$ref":"#/$defs/relpath"},"show":{"$ref":"#/$defs/relpath"},"kind":{"$ref":"#/$defs/relpath"}}},"args_named":{"type":"object","required":["set"],"additionalProperties":false,"description":"A position a name from a names set can stand for (spec 5.3, D-045).","properties":{"set":{"$ref":"#/$defs/set_name"},"by":{"enum":["value","show"]}}}}};const schema35 = {"type":"object","required":["interface_id"],"additionalProperties":false,"properties":{"interface_id":{"type":"string","pattern":"^candid-core:interface:v1:sha256:[0-9a-f]{64}$"},"contract_id":{"type":"string","pattern":"^candid-core:contract:v1:sha256:[0-9a-f]{64}$"},"canister_id":{"type":"string","pattern":"^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"}}};const schema32 = {"type":"object","required":["standard"],"additionalProperties":false,"properties":{"standard":{"type":"string","pattern":"^[A-Z]+-[0-9]+$"},"spec_url":{"type":"string","pattern":"^https://"},"requires":{"type":"string","minLength":10,"description":"A Candid service fragment. The pack applies to a canister whose service type is a subtype of this fragment."},"abi":{"$ref":"#/$defs/evm_abi","description":"An EVM pack (spec section 15, experimental): the functions it applies to. The pack applies to a contract that has each of them, with the same selector, outputs and kind of call."},"eip712":{"$ref":"#/$defs/eip712","description":"An EVM pack's EIP-712 messages (spec section 15.9), beside its binds.abi."}},"oneOf":[{"required":["requires"],"properties":{"requires":true}},{"required":["abi"],"properties":{"abi":true}}],"dependentRequired":{"eip712":["abi"]}};const schema33 = {"type":"array","minItems":1,"description":"EVM ABI function fragments: human-readable (`function transfer(address to, uint256 value) returns (bool)`) or JSON ABI entries. Only functions are read; events, errors, the constructor, fallback and receive are skipped. Parameter names are what addresses use.","items":{"oneOf":[{"type":"string","pattern":"^\\s*(function|event|error|constructor|fallback|receive)\\b"},{"type":"object","required":["type"],"properties":{"type":{"enum":["function","event","error","constructor","fallback","receive"]}}}]}};const schema34 = {"type":"object","description":"EIP-712 typed messages (spec section 15.9, experimental): the struct types, in the JSON shape of an eth_signTypedData request without EIP712Domain, and the domain's name and version. A type whose name the profile tags with intent is a message; chainId and verifyingContract come from binds.deployments.","required":["types"],"additionalProperties":false,"properties":{"domain":{"type":"object","minProperties":1,"additionalProperties":false,"description":"Each value must equal the request's domain value of the same name (ERC-7730 context.eip712.domain).","properties":{"name":{"type":"string","minLength":1},"version":{"type":"string","minLength":1}}},"types":{"type":"object","minProperties":1,"propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"additionalProperties":{"type":"array","minItems":1,"items":{"type":"object","required":["name","type"],"additionalProperties":false,"properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"type":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*(\\[([1-9][0-9]*)?\\])*$"}}}}}}};const pattern4 = new RegExp("^[A-Z]+-[0-9]+$", "u");const pattern5 = new RegExp("^https://", "u");const pattern6 = new RegExp("^\\s*(function|event|error|constructor|fallback|receive)\\b", "u");const pattern7 = new RegExp("^[A-Za-z_][A-Za-z0-9_]*$", "u");const pattern9 = new RegExp("^[A-Za-z_][A-Za-z0-9_]*(\\[([1-9][0-9]*)?\\])*$", "u");const func1 = ucs2length;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;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.requires === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "requires"},message:"must have required property '"+"requires"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = {};props0.requires = true;}const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.abi === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "abi"},message:"must have required property '"+"abi"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = props0 || {};props0.abi = true;}}}if(!valid0){const err2 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.standard === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "standard"},message:"must have required property '"+"standard"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!(((((key0 === "standard") || (key0 === "spec_url")) || (key0 === "requires")) || (key0 === "abi")) || (key0 === "eip712"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.standard !== undefined){let data0 = data.standard;if(typeof data0 === "string"){if(!pattern4.test(data0)){const err5 = {instancePath:instancePath+"/standard",schemaPath:"#/properties/standard/pattern",keyword:"pattern",params:{pattern: "^[A-Z]+-[0-9]+$"},message:"must match pattern \""+"^[A-Z]+-[0-9]+$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/standard",schemaPath:"#/properties/standard/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.spec_url !== undefined){let data1 = data.spec_url;if(typeof data1 === "string"){if(!pattern5.test(data1)){const err7 = {instancePath:instancePath+"/spec_url",schemaPath:"#/properties/spec_url/pattern",keyword:"pattern",params:{pattern: "^https://"},message:"must match pattern \""+"^https://"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/spec_url",schemaPath:"#/properties/spec_url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.requires !== undefined){let data2 = data.requires;if(typeof data2 === "string"){if(func1(data2) < 10){const err9 = {instancePath:instancePath+"/requires",schemaPath:"#/properties/requires/minLength",keyword:"minLength",params:{limit: 10},message:"must NOT have fewer than 10 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/requires",schemaPath:"#/properties/requires/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.abi !== undefined){let data3 = data.abi;if(Array.isArray(data3)){if(data3.length < 1){const err11 = {instancePath:instancePath+"/abi",schemaPath:"#/$defs/evm_abi/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];const _errs15 = errors;let valid5 = false;let passing1 = null;const _errs16 = errors;if(typeof data4 === "string"){if(!pattern6.test(data4)){const err12 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/0/pattern",keyword:"pattern",params:{pattern: "^\\s*(function|event|error|constructor|fallback|receive)\\b"},message:"must match pattern \""+"^\\s*(function|event|error|constructor|fallback|receive)\\b"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid1 = _errs16 === errors;if(_valid1){valid5 = true;passing1 = 0;}const _errs18 = errors;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.type === undefined){const err14 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data4.type !== undefined){let data5 = data4.type;if(!((((((data5 === "function") || (data5 === "event")) || (data5 === "error")) || (data5 === "constructor")) || (data5 === "fallback")) || (data5 === "receive"))){const err15 = {instancePath:instancePath+"/abi/" + i0+"/type",schemaPath:"#/$defs/evm_abi/items/oneOf/1/properties/type/enum",keyword:"enum",params:{allowedValues: schema33.items.oneOf[1].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid1 = _errs18 === errors;if(_valid1 && valid5){valid5 = false;passing1 = [passing1, 1];}else {if(_valid1){valid5 = true;passing1 = 1;var props1 = {};props1.type = true;}}if(!valid5){const err17 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}}}else {const err18 = {instancePath:instancePath+"/abi",schemaPath:"#/$defs/evm_abi/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.eip712 !== undefined){let data6 = data.eip712;if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.types === undefined){const err19 = {instancePath:instancePath+"/eip712",schemaPath:"#/$defs/eip712/required",keyword:"required",params:{missingProperty: "types"},message:"must have required property '"+"types"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}for(const key1 in data6){if(!((key1 === "domain") || (key1 === "types"))){const err20 = {instancePath:instancePath+"/eip712",schemaPath:"#/$defs/eip712/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data6.domain !== undefined){let data7 = data6.domain;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(Object.keys(data7).length < 1){const err21 = {instancePath:instancePath+"/eip712/domain",schemaPath:"#/$defs/eip712/properties/domain/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}for(const key2 in data7){if(!((key2 === "name") || (key2 === "version"))){const err22 = {instancePath:instancePath+"/eip712/domain",schemaPath:"#/$defs/eip712/properties/domain/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data7.name !== undefined){let data8 = data7.name;if(typeof data8 === "string"){if(func1(data8) < 1){const err23 = {instancePath:instancePath+"/eip712/domain/name",schemaPath:"#/$defs/eip712/properties/domain/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}else {const err24 = {instancePath:instancePath+"/eip712/domain/name",schemaPath:"#/$defs/eip712/properties/domain/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data7.version !== undefined){let data9 = data7.version;if(typeof data9 === "string"){if(func1(data9) < 1){const err25 = {instancePath:instancePath+"/eip712/domain/version",schemaPath:"#/$defs/eip712/properties/domain/properties/version/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}else {const err26 = {instancePath:instancePath+"/eip712/domain/version",schemaPath:"#/$defs/eip712/properties/domain/properties/version/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath:instancePath+"/eip712/domain",schemaPath:"#/$defs/eip712/properties/domain/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data6.types !== undefined){let data10 = data6.types;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(Object.keys(data10).length < 1){const err28 = {instancePath:instancePath+"/eip712/types",schemaPath:"#/$defs/eip712/properties/types/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}for(const key3 in data10){const _errs34 = errors;if(typeof key3 === "string"){if(!pattern7.test(key3)){const err29 = {instancePath:instancePath+"/eip712/types",schemaPath:"#/$defs/eip712/properties/types/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\"",propertyName:key3};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}var valid10 = _errs34 === errors;if(!valid10){const err30 = {instancePath:instancePath+"/eip712/types",schemaPath:"#/$defs/eip712/properties/types/propertyNames",keyword:"propertyNames",params:{propertyName: key3},message:"property name must be valid"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}for(const key4 in data10){let data11 = data10[key4];if(Array.isArray(data11)){if(data11.length < 1){const err31 = {instancePath:instancePath+"/eip712/types/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/$defs/eip712/properties/types/additionalProperties/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}const len1 = data11.length;for(let i1=0; i1<len1; i1++){let data12 = data11[i1];if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.name === undefined){const err32 = {instancePath:instancePath+"/eip712/types/" + key4.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i1,schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data12.type === undefined){const err33 = {instancePath:instancePath+"/eip712/types/" + key4.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i1,schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}for(const key5 in data12){if(!((key5 === "name") || (key5 === "type"))){const err34 = {instancePath:instancePath+"/eip712/types/" + key4.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i1,schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data12.name !== undefined){let data13 = data12.name;if(typeof data13 === "string"){if(!pattern7.test(data13)){const err35 = {instancePath:instancePath+"/eip712/types/" + key4.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i1+"/name",schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/properties/name/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}else {const err36 = {instancePath:instancePath+"/eip712/types/" + key4.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i1+"/name",schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data12.type !== undefined){let data14 = data12.type;if(typeof data14 === "string"){if(!pattern9.test(data14)){const err37 = {instancePath:instancePath+"/eip712/types/" + key4.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i1+"/type",schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/properties/type/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*(\\[([1-9][0-9]*)?\\])*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*(\\[([1-9][0-9]*)?\\])*$"+"\""};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}else {const err38 = {instancePath:instancePath+"/eip712/types/" + key4.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i1+"/type",schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/eip712/types/" + key4.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i1,schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}else {const err40 = {instancePath:instancePath+"/eip712/types/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/$defs/eip712/properties/types/additionalProperties/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}}else {const err41 = {instancePath:instancePath+"/eip712/types",schemaPath:"#/$defs/eip712/properties/types/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}else {const err42 = {instancePath:instancePath+"/eip712",schemaPath:"#/$defs/eip712/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data.eip712 !== undefined){if(data.abi === undefined){const err43 = {instancePath,schemaPath:"#/dependentRequired",keyword:"dependentRequired",params:{property: "eip712",
|
|
4
|
+
missingProperty: "abi",
|
|
5
|
+
depsCount: 1,
|
|
6
|
+
deps: "abi"},message:"must have property abi when property eip712 is present"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}validate21.errors = vErrors;return errors === 0;}validate21.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema36 = {"type":"object","description":"An EVM contract (spec section 15, experimental): its ABI, the EIP-712 messages it verifies (section 15.9), and where it is deployed.","additionalProperties":false,"properties":{"abi":{"$ref":"#/$defs/evm_abi"},"deployments":{"type":"array","minItems":1,"description":"The chain ids and addresses the profile describes (ERC-7730 context.contract.deployments). A consumer applies the profile to a call only when its target is listed.","items":{"type":"object","required":["chain_id","address"],"additionalProperties":false,"properties":{"chain_id":{"type":"integer","minimum":1},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}}},"eip712":{"$ref":"#/$defs/eip712"}},"anyOf":[{"required":["abi"],"properties":{"abi":true}},{"required":["eip712"],"properties":{"eip712":true}}]};const pattern14 = new RegExp("^0x[0-9a-fA-F]{40}$", "u");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;}const _errs1 = errors;let valid0 = false;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.abi === undefined){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: "abi"},message:"must have required property '"+"abi"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var _valid0 = _errs2 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = {};props0.abi = true;}const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.eip712 === undefined){const err1 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: "eip712"},message:"must have required property '"+"eip712"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var _valid0 = _errs3 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.eip712 = true;}}if(!valid0){const err2 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){for(const key0 in data){if(!(((key0 === "abi") || (key0 === "deployments")) || (key0 === "eip712"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.abi !== undefined){let data0 = data.abi;if(Array.isArray(data0)){if(data0.length < 1){const err4 = {instancePath:instancePath+"/abi",schemaPath:"#/$defs/evm_abi/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){let data1 = data0[i0];const _errs9 = errors;let valid5 = false;let passing0 = null;const _errs10 = errors;if(typeof data1 === "string"){if(!pattern6.test(data1)){const err5 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/0/pattern",keyword:"pattern",params:{pattern: "^\\s*(function|event|error|constructor|fallback|receive)\\b"},message:"must match pattern \""+"^\\s*(function|event|error|constructor|fallback|receive)\\b"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid1 = _errs10 === errors;if(_valid1){valid5 = true;passing0 = 0;}const _errs12 = errors;if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.type === undefined){const err7 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data1.type !== undefined){let data2 = data1.type;if(!((((((data2 === "function") || (data2 === "event")) || (data2 === "error")) || (data2 === "constructor")) || (data2 === "fallback")) || (data2 === "receive"))){const err8 = {instancePath:instancePath+"/abi/" + i0+"/type",schemaPath:"#/$defs/evm_abi/items/oneOf/1/properties/type/enum",keyword:"enum",params:{allowedValues: schema33.items.oneOf[1].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}else {const err9 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid1 = _errs12 === errors;if(_valid1 && valid5){valid5 = false;passing0 = [passing0, 1];}else {if(_valid1){valid5 = true;passing0 = 1;var props1 = {};props1.type = true;}}if(!valid5){const err10 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}}}else {const err11 = {instancePath:instancePath+"/abi",schemaPath:"#/$defs/evm_abi/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.deployments !== undefined){let data3 = data.deployments;if(Array.isArray(data3)){if(data3.length < 1){const err12 = {instancePath:instancePath+"/deployments",schemaPath:"#/properties/deployments/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.chain_id === undefined){const err13 = {instancePath:instancePath+"/deployments/" + i1,schemaPath:"#/properties/deployments/items/required",keyword:"required",params:{missingProperty: "chain_id"},message:"must have required property '"+"chain_id"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data4.address === undefined){const err14 = {instancePath:instancePath+"/deployments/" + i1,schemaPath:"#/properties/deployments/items/required",keyword:"required",params:{missingProperty: "address"},message:"must have required property '"+"address"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}for(const key1 in data4){if(!((key1 === "chain_id") || (key1 === "address"))){const err15 = {instancePath:instancePath+"/deployments/" + i1,schemaPath:"#/properties/deployments/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data4.chain_id !== undefined){let data5 = data4.chain_id;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err16 = {instancePath:instancePath+"/deployments/" + i1+"/chain_id",schemaPath:"#/properties/deployments/items/properties/chain_id/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 1 || isNaN(data5)){const err17 = {instancePath:instancePath+"/deployments/" + i1+"/chain_id",schemaPath:"#/properties/deployments/items/properties/chain_id/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}if(data4.address !== undefined){let data6 = data4.address;if(typeof data6 === "string"){if(!pattern14.test(data6)){const err18 = {instancePath:instancePath+"/deployments/" + i1+"/address",schemaPath:"#/properties/deployments/items/properties/address/pattern",keyword:"pattern",params:{pattern: "^0x[0-9a-fA-F]{40}$"},message:"must match pattern \""+"^0x[0-9a-fA-F]{40}$"+"\""};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}else {const err19 = {instancePath:instancePath+"/deployments/" + i1+"/address",schemaPath:"#/properties/deployments/items/properties/address/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+"/deployments/" + i1,schemaPath:"#/properties/deployments/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}else {const err21 = {instancePath:instancePath+"/deployments",schemaPath:"#/properties/deployments/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.eip712 !== undefined){let data7 = data.eip712;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.types === undefined){const err22 = {instancePath:instancePath+"/eip712",schemaPath:"#/$defs/eip712/required",keyword:"required",params:{missingProperty: "types"},message:"must have required property '"+"types"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}for(const key2 in data7){if(!((key2 === "domain") || (key2 === "types"))){const err23 = {instancePath:instancePath+"/eip712",schemaPath:"#/$defs/eip712/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data7.domain !== undefined){let data8 = data7.domain;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(Object.keys(data8).length < 1){const err24 = {instancePath:instancePath+"/eip712/domain",schemaPath:"#/$defs/eip712/properties/domain/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}for(const key3 in data8){if(!((key3 === "name") || (key3 === "version"))){const err25 = {instancePath:instancePath+"/eip712/domain",schemaPath:"#/$defs/eip712/properties/domain/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data8.name !== undefined){let data9 = data8.name;if(typeof data9 === "string"){if(func1(data9) < 1){const err26 = {instancePath:instancePath+"/eip712/domain/name",schemaPath:"#/$defs/eip712/properties/domain/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}else {const err27 = {instancePath:instancePath+"/eip712/domain/name",schemaPath:"#/$defs/eip712/properties/domain/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data8.version !== undefined){let data10 = data8.version;if(typeof data10 === "string"){if(func1(data10) < 1){const err28 = {instancePath:instancePath+"/eip712/domain/version",schemaPath:"#/$defs/eip712/properties/domain/properties/version/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/eip712/domain/version",schemaPath:"#/$defs/eip712/properties/domain/properties/version/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath:instancePath+"/eip712/domain",schemaPath:"#/$defs/eip712/properties/domain/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data7.types !== undefined){let data11 = data7.types;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(Object.keys(data11).length < 1){const err31 = {instancePath:instancePath+"/eip712/types",schemaPath:"#/$defs/eip712/properties/types/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}for(const key4 in data11){const _errs37 = errors;if(typeof key4 === "string"){if(!pattern7.test(key4)){const err32 = {instancePath:instancePath+"/eip712/types",schemaPath:"#/$defs/eip712/properties/types/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\"",propertyName:key4};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var valid13 = _errs37 === errors;if(!valid13){const err33 = {instancePath:instancePath+"/eip712/types",schemaPath:"#/$defs/eip712/properties/types/propertyNames",keyword:"propertyNames",params:{propertyName: key4},message:"property name must be valid"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}for(const key5 in data11){let data12 = data11[key5];if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/eip712/types/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/$defs/eip712/properties/types/additionalProperties/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.name === undefined){const err35 = {instancePath:instancePath+"/eip712/types/" + key5.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i2,schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.type === undefined){const err36 = {instancePath:instancePath+"/eip712/types/" + key5.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i2,schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}for(const key6 in data13){if(!((key6 === "name") || (key6 === "type"))){const err37 = {instancePath:instancePath+"/eip712/types/" + key5.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i2,schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data13.name !== undefined){let data14 = data13.name;if(typeof data14 === "string"){if(!pattern7.test(data14)){const err38 = {instancePath:instancePath+"/eip712/types/" + key5.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i2+"/name",schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/properties/name/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}else {const err39 = {instancePath:instancePath+"/eip712/types/" + key5.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i2+"/name",schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data13.type !== undefined){let data15 = data13.type;if(typeof data15 === "string"){if(!pattern9.test(data15)){const err40 = {instancePath:instancePath+"/eip712/types/" + key5.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i2+"/type",schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/properties/type/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*(\\[([1-9][0-9]*)?\\])*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*(\\[([1-9][0-9]*)?\\])*$"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {instancePath:instancePath+"/eip712/types/" + key5.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i2+"/type",schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}else {const err42 = {instancePath:instancePath+"/eip712/types/" + key5.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i2,schemaPath:"#/$defs/eip712/properties/types/additionalProperties/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}}else {const err43 = {instancePath:instancePath+"/eip712/types/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/$defs/eip712/properties/types/additionalProperties/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {instancePath:instancePath+"/eip712/types",schemaPath:"#/$defs/eip712/properties/types/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}else {const err45 = {instancePath:instancePath+"/eip712",schemaPath:"#/$defs/eip712/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}validate23.errors = vErrors;return errors === 0;}validate23.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema39 = {"type":"object","required":["at","tag","args"],"additionalProperties":false,"properties":{"at":{"type":"string"},"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","describe","ui","intent","effect","idempotency","outcome","list","names","named"]},"args":{"type":"object"},"note":{"type":"string"}},"allOf":[{"if":{"properties":{"tag":{"enum":["idempotency","outcome","list","names"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/method_address"}}}},{"if":{"properties":{"tag":{"enum":["intent","effect"]}}},"then":{"properties":{"at":{"anyOf":[{"$ref":"#/$defs/method_address"},{"$ref":"#/$defs/value_address"}]}}}},{"if":{"properties":{"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","ui","named"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/value_address"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"at":{"anyOf":[{"$ref":"#/$defs/value_address"},{"$ref":"#/$defs/method_address"}]}}}},{"if":{"properties":{"tag":{"const":"amount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_amount"}}}},{"if":{"properties":{"tag":{"const":"timestamp"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_timestamp"}}}},{"if":{"properties":{"tag":{"const":"duration"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_duration"}}}},{"if":{"properties":{"tag":{"const":"account"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_account"}}}},{"if":{"properties":{"tag":{"const":"subaccount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_empty"}}}},{"if":{"properties":{"tag":{"const":"bytes"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_bytes"}}}},{"if":{"properties":{"tag":{"const":"text"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_text"}}}},{"if":{"properties":{"tag":{"const":"range"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_range"}}}},{"if":{"properties":{"tag":{"const":"default"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_default"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_describe"}}}},{"if":{"properties":{"tag":{"const":"ui"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_ui"}}}},{"if":{"properties":{"tag":{"const":"intent"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_intent"}}}},{"if":{"properties":{"tag":{"const":"effect"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_effect"}}}},{"if":{"properties":{"tag":{"const":"idempotency"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_idempotency"}}}},{"if":{"properties":{"tag":{"const":"outcome"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_outcome"}}}},{"if":{"properties":{"tag":{"const":"list"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_list"}}}},{"if":{"properties":{"tag":{"const":"names"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_names"}}}},{"if":{"properties":{"tag":{"const":"named"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_named"}}}}]};const schema40 = {"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"};const schema42 = {"type":"string","description":"METHOD(i)path | METHOD->(i)path | type:DECL path. Paths: .label, .#id, [] (vec element). opt is transparent.","pattern":"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"};const schema54 = {"type":"object","additionalProperties":false,"properties":{"encoding":{"const":"icrc1"}}};const schema55 = {"type":"object","additionalProperties":false,"maxProperties":0};const schema56 = {"type":"object","required":["encoding"],"additionalProperties":false,"properties":{"encoding":{"enum":["utf8","hex","base64"]},"max_len":{"type":"integer","minimum":0}}};const schema57 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"format":{"enum":["plain","markdown","email","url"]},"max_len":{"type":"integer","minimum":0},"pattern":{"type":"string"}}};const schema63 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"label":{"type":"string","minLength":1,"maxLength":80},"help":{"type":"string","minLength":1,"maxLength":2000}}};const schema64 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"order":{"type":"integer"},"group":{"type":"string"},"hidden":{"type":"boolean"},"widget":{"type":"string"}}};const schema65 = {"type":"object","required":["title","template"],"additionalProperties":false,"properties":{"title":{"type":"string","minLength":1,"maxLength":60},"template":{"type":"string","minLength":1,"maxLength":500}}};const pattern22 = new RegExp("^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$", "u");const schema46 = {"type":"object","additionalProperties":false,"properties":{"decimals":{"oneOf":[{"type":"integer","minimum":0,"maximum":255},{"$ref":"#/$defs/dynamic"}]},"symbol":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"$ref":"#/$defs/dynamic"}]},"token":{"$ref":"#/$defs/relpath","description":"An EVM amount in a token another field names (spec section 15.9): the relative path to that address, in the same array element as the amount. Its decimals and symbol are the token's, which the consumer supplies; decimals and symbol are then left out."},"threshold":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$","description":"Display only: a value at or above this (base units, a decimal string) displays as `message` and the symbol, for example \"Unlimited USDC\" (spec section 5.3)."},"message":{"type":"string","minLength":1,"maxLength":32,"description":"What a value at or above `threshold` displays as (default \"Unlimited\")."}},"dependentRequired":{"message":["threshold"]},"anyOf":[{"required":["decimals"],"properties":{"decimals":true}},{"required":["token"],"properties":{"token":true}}],"dependentSchemas":{"token":{"properties":{"decimals":false,"symbol":false}}}};const schema47 = {"type":"object","required":["from"],"additionalProperties":false,"properties":{"from":{"type":"string","pattern":"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"}}};const schema49 = {"type":"string","description":"Path relative to a method's argument tuple (or result tuple, for outcome/list.next/list.items). Starts with (i) when the tuple has more than one element; otherwise relative to element 0.","pattern":"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$","minLength":1};const pattern26 = new RegExp("^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$", "u");const pattern28 = new RegExp("^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$", "u");const pattern29 = new RegExp("^(0|[1-9][0-9]{0,77})$", "u");function validate26(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate26.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;let valid0 = false;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.decimals === undefined){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: "decimals"},message:"must have required property '"+"decimals"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var _valid0 = _errs2 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = {};props0.decimals = true;}const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.token === undefined){const err1 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: "token"},message:"must have required property '"+"token"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var _valid0 = _errs3 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.token = true;}}if(!valid0){const err2 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){for(const key0 in data){if(!(((((key0 === "decimals") || (key0 === "symbol")) || (key0 === "token")) || (key0 === "threshold")) || (key0 === "message"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.decimals !== undefined){let data0 = data.decimals;const _errs6 = errors;let valid2 = false;let passing0 = null;const _errs7 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err4 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if((typeof data0 == "number") && (isFinite(data0))){if(data0 > 255 || isNaN(data0)){const err5 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf/0/maximum",keyword:"maximum",params:{comparison: "<=", limit: 255},message:"must be <= 255"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data0 < 0 || isNaN(data0)){const err6 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid1 = _errs7 === errors;if(_valid1){valid2 = true;passing0 = 0;}const _errs9 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.from === undefined){const err7 = {instancePath:instancePath+"/decimals",schemaPath:"#/$defs/dynamic/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}for(const key1 in data0){if(!(key1 === "from")){const err8 = {instancePath:instancePath+"/decimals",schemaPath:"#/$defs/dynamic/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data0.from !== undefined){let data1 = data0.from;if(typeof data1 === "string"){if(!pattern26.test(data1)){const err9 = {instancePath:instancePath+"/decimals/from",schemaPath:"#/$defs/dynamic/properties/from/pattern",keyword:"pattern",params:{pattern: "^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"},message:"must match pattern \""+"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/decimals/from",schemaPath:"#/$defs/dynamic/properties/from/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath:instancePath+"/decimals",schemaPath:"#/$defs/dynamic/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing0 = [passing0, 1];}else {if(_valid1){valid2 = true;passing0 = 1;}}if(!valid2){const err12 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}}if(data.symbol !== undefined){let data2 = data.symbol;const _errs16 = errors;let valid5 = false;let passing1 = null;const _errs17 = errors;if(typeof data2 === "string"){if(func1(data2) > 32){const err13 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 32},message:"must NOT have more than 32 characters"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(func1(data2) < 1){const err14 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid2 = _errs17 === errors;if(_valid2){valid5 = true;passing1 = 0;}const _errs19 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.from === undefined){const err16 = {instancePath:instancePath+"/symbol",schemaPath:"#/$defs/dynamic/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}for(const key2 in data2){if(!(key2 === "from")){const err17 = {instancePath:instancePath+"/symbol",schemaPath:"#/$defs/dynamic/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data2.from !== undefined){let data3 = data2.from;if(typeof data3 === "string"){if(!pattern26.test(data3)){const err18 = {instancePath:instancePath+"/symbol/from",schemaPath:"#/$defs/dynamic/properties/from/pattern",keyword:"pattern",params:{pattern: "^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"},message:"must match pattern \""+"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"+"\""};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}else {const err19 = {instancePath:instancePath+"/symbol/from",schemaPath:"#/$defs/dynamic/properties/from/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+"/symbol",schemaPath:"#/$defs/dynamic/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid2 = _errs19 === errors;if(_valid2 && valid5){valid5 = false;passing1 = [passing1, 1];}else {if(_valid2){valid5 = true;passing1 = 1;}}if(!valid5){const err21 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}}if(data.token !== undefined){let data4 = data.token;if(typeof data4 === "string"){if(func1(data4) < 1){const err22 = {instancePath:instancePath+"/token",schemaPath:"#/$defs/relpath/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(!pattern28.test(data4)){const err23 = {instancePath:instancePath+"/token",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}else {const err24 = {instancePath:instancePath+"/token",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.threshold !== undefined){let data5 = data.threshold;if(typeof data5 === "string"){if(!pattern29.test(data5)){const err25 = {instancePath:instancePath+"/threshold",schemaPath:"#/properties/threshold/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]{0,77})$"},message:"must match pattern \""+"^(0|[1-9][0-9]{0,77})$"+"\""};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}else {const err26 = {instancePath:instancePath+"/threshold",schemaPath:"#/properties/threshold/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data.message !== undefined){let data6 = data.message;if(typeof data6 === "string"){if(func1(data6) > 32){const err27 = {instancePath:instancePath+"/message",schemaPath:"#/properties/message/maxLength",keyword:"maxLength",params:{limit: 32},message:"must NOT have more than 32 characters"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(func1(data6) < 1){const err28 = {instancePath:instancePath+"/message",schemaPath:"#/properties/message/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/message",schemaPath:"#/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.message !== undefined){if(data.threshold === undefined){const err30 = {instancePath,schemaPath:"#/dependentRequired",keyword:"dependentRequired",params:{property: "message",
|
|
7
|
+
missingProperty: "threshold",
|
|
8
|
+
depsCount: 1,
|
|
9
|
+
deps: "threshold"},message:"must have property threshold when property message is present"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.token !== undefined){if(data && typeof data == "object" && !Array.isArray(data)){if(data.decimals !== undefined){const err31 = {instancePath:instancePath+"/decimals",schemaPath:"#/dependentSchemas/token/properties/decimals/false schema",keyword:"false schema",params:{},message:"boolean schema is false"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data.symbol !== undefined){const err32 = {instancePath:instancePath+"/symbol",schemaPath:"#/dependentSchemas/token/properties/symbol/false schema",keyword:"false schema",params:{},message:"boolean schema is false"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}}}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++;}validate26.errors = vErrors;return errors === 0;}validate26.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema50 = {"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"},"epoch":{"const":"unix"},"threshold":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$","description":"Display only: a value at or above this (in the tagged unit, a decimal string) displays as `message`, for example \"Never\" for a deadline of uint256 max (spec section 15.9)."},"message":{"type":"string","minLength":1,"maxLength":32,"description":"What a value at or above `threshold` displays as."},"labels":{"type":"object","minProperties":1,"maxProperties":16,"propertyNames":{"pattern":"^(0|[1-9][0-9]{0,77})$"},"additionalProperties":{"type":"string","minLength":1,"maxLength":32},"description":"Display only: words for exact values (in the tagged unit), for example { \"0\": \"Only in the block it is used\" } (spec section 15.9)."}},"dependentRequired":{"message":["threshold"],"threshold":["message"]}};const schema51 = {"enum":["ns","us","ms","s"]};function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate28.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.unit === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "unit"},message:"must have required property '"+"unit"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(((((key0 === "unit") || (key0 === "epoch")) || (key0 === "threshold")) || (key0 === "message")) || (key0 === "labels"))){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.unit !== undefined){let data0 = data.unit;if(!((((data0 === "ns") || (data0 === "us")) || (data0 === "ms")) || (data0 === "s"))){const err2 = {instancePath:instancePath+"/unit",schemaPath:"#/$defs/time_unit/enum",keyword:"enum",params:{allowedValues: schema51.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.epoch !== undefined){if("unix" !== data.epoch){const err3 = {instancePath:instancePath+"/epoch",schemaPath:"#/properties/epoch/const",keyword:"const",params:{allowedValue: "unix"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.threshold !== undefined){let data2 = data.threshold;if(typeof data2 === "string"){if(!pattern29.test(data2)){const err4 = {instancePath:instancePath+"/threshold",schemaPath:"#/properties/threshold/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]{0,77})$"},message:"must match pattern \""+"^(0|[1-9][0-9]{0,77})$"+"\""};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/threshold",schemaPath:"#/properties/threshold/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.message !== undefined){let data3 = data.message;if(typeof data3 === "string"){if(func1(data3) > 32){const err6 = {instancePath:instancePath+"/message",schemaPath:"#/properties/message/maxLength",keyword:"maxLength",params:{limit: 32},message:"must NOT have more than 32 characters"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(func1(data3) < 1){const err7 = {instancePath:instancePath+"/message",schemaPath:"#/properties/message/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/message",schemaPath:"#/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.labels !== undefined){let data4 = data.labels;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(Object.keys(data4).length > 16){const err9 = {instancePath:instancePath+"/labels",schemaPath:"#/properties/labels/maxProperties",keyword:"maxProperties",params:{limit: 16},message:"must NOT have more than 16 properties"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(Object.keys(data4).length < 1){const err10 = {instancePath:instancePath+"/labels",schemaPath:"#/properties/labels/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key1 in data4){const _errs11 = errors;if(typeof key1 === "string"){if(!pattern29.test(key1)){const err11 = {instancePath:instancePath+"/labels",schemaPath:"#/properties/labels/propertyNames/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]{0,77})$"},message:"must match pattern \""+"^(0|[1-9][0-9]{0,77})$"+"\"",propertyName:key1};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var valid2 = _errs11 === errors;if(!valid2){const err12 = {instancePath:instancePath+"/labels",schemaPath:"#/properties/labels/propertyNames",keyword:"propertyNames",params:{propertyName: key1},message:"property name must be valid"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}for(const key2 in data4){let data5 = data4[key2];if(typeof data5 === "string"){if(func1(data5) > 32){const err13 = {instancePath:instancePath+"/labels/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/labels/additionalProperties/maxLength",keyword:"maxLength",params:{limit: 32},message:"must NOT have more than 32 characters"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(func1(data5) < 1){const err14 = {instancePath:instancePath+"/labels/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/labels/additionalProperties/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/labels/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/labels/additionalProperties/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+"/labels",schemaPath:"#/properties/labels/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.message !== undefined){if(data.threshold === undefined){const err17 = {instancePath,schemaPath:"#/dependentRequired",keyword:"dependentRequired",params:{property: "message",
|
|
4
10
|
missingProperty: "threshold",
|
|
5
11
|
depsCount: 1,
|
|
6
|
-
deps: "threshold"},message:"must have property threshold when property message is present"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}else {const err26 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}validate26.errors = vErrors;return errors === 0;}validate26.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema47 = {"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"},"epoch":{"const":"unix"}}};const schema48 = {"enum":["ns","us","ms","s"]};function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate28.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.unit === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "unit"},message:"must have required property '"+"unit"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "unit") || (key0 === "epoch"))){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.unit !== undefined){let data0 = data.unit;if(!((((data0 === "ns") || (data0 === "us")) || (data0 === "ms")) || (data0 === "s"))){const err2 = {instancePath:instancePath+"/unit",schemaPath:"#/$defs/time_unit/enum",keyword:"enum",params:{allowedValues: schema48.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.epoch !== undefined){if("unix" !== data.epoch){const err3 = {instancePath:instancePath+"/epoch",schemaPath:"#/properties/epoch/const",keyword:"const",params:{allowedValue: "unix"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}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++;}validate28.errors = vErrors;return errors === 0;}validate28.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema49 = {"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"}}};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate30.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.unit === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "unit"},message:"must have required property '"+"unit"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "unit")){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.unit !== undefined){let data0 = data.unit;if(!((((data0 === "ns") || (data0 === "us")) || (data0 === "ms")) || (data0 === "s"))){const err2 = {instancePath:instancePath+"/unit",schemaPath:"#/$defs/time_unit/enum",keyword:"enum",params:{allowedValues: schema48.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: "object"},message:"must be object"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}validate30.errors = vErrors;return errors === 0;}validate30.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema55 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"min":{"$ref":"#/$defs/int_string"},"max":{"$ref":"#/$defs/int_string"},"min_len":{"type":"integer","minimum":0},"max_len":{"type":"integer","minimum":0}}};const schema56 = {"type":"string","pattern":"^(0|-?[1-9][0-9]*)$"};const pattern23 = new RegExp("^(0|-?[1-9][0-9]*)$", "u");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;}if(data && typeof data == "object" && !Array.isArray(data)){if(Object.keys(data).length < 1){const err0 = {instancePath,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((((key0 === "min") || (key0 === "max")) || (key0 === "min_len")) || (key0 === "max_len"))){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.min !== undefined){let data0 = data.min;if(typeof data0 === "string"){if(!pattern23.test(data0)){const err2 = {instancePath:instancePath+"/min",schemaPath:"#/$defs/int_string/pattern",keyword:"pattern",params:{pattern: "^(0|-?[1-9][0-9]*)$"},message:"must match pattern \""+"^(0|-?[1-9][0-9]*)$"+"\""};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}else {const err3 = {instancePath:instancePath+"/min",schemaPath:"#/$defs/int_string/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.max !== undefined){let data1 = data.max;if(typeof data1 === "string"){if(!pattern23.test(data1)){const err4 = {instancePath:instancePath+"/max",schemaPath:"#/$defs/int_string/pattern",keyword:"pattern",params:{pattern: "^(0|-?[1-9][0-9]*)$"},message:"must match pattern \""+"^(0|-?[1-9][0-9]*)$"+"\""};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/max",schemaPath:"#/$defs/int_string/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.min_len !== undefined){let data2 = data.min_len;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err6 = {instancePath:instancePath+"/min_len",schemaPath:"#/properties/min_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 0 || isNaN(data2)){const err7 = {instancePath:instancePath+"/min_len",schemaPath:"#/properties/min_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}if(data.max_len !== undefined){let data3 = data.max_len;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err8 = {instancePath:instancePath+"/max_len",schemaPath:"#/properties/max_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){const err9 = {instancePath:instancePath+"/max_len",schemaPath:"#/properties/max_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};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++;}validate32.errors = vErrors;return errors === 0;}validate32.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema58 = {"type":"object","required":["value","mode"],"additionalProperties":false,"properties":{"value":{"oneOf":[{"type":"string","description":"Candid textual literal, e.g. \"null\" or \"opt 0\""},{"$ref":"#/$defs/dynamic"}]},"mode":{"enum":["auto","suggest"]}}};function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate34.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.value === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.mode === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "mode"},message:"must have required property '"+"mode"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "value") || (key0 === "mode"))){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.value !== undefined){let data0 = data.value;const _errs3 = errors;let valid1 = false;let passing0 = null;const _errs4 = errors;if(typeof data0 !== "string"){const err3 = {instancePath:instancePath+"/value",schemaPath:"#/properties/value/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid0 = _errs4 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.from === undefined){const err4 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/dynamic/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key1 in data0){if(!(key1 === "from")){const err5 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/dynamic/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data0.from !== undefined){let data1 = data0.from;if(typeof data1 === "string"){if(!pattern20.test(data1)){const err6 = {instancePath:instancePath+"/value/from",schemaPath:"#/$defs/dynamic/properties/from/pattern",keyword:"pattern",params:{pattern: "^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"},message:"must match pattern \""+"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/value/from",schemaPath:"#/$defs/dynamic/properties/from/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/dynamic/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid0 = _errs6 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 1];}else {if(_valid0){valid1 = true;passing0 = 1;}}if(!valid1){const err9 = {instancePath:instancePath+"/value",schemaPath:"#/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}}if(data.mode !== undefined){let data2 = data.mode;if(!((data2 === "auto") || (data2 === "suggest"))){const err10 = {instancePath:instancePath+"/mode",schemaPath:"#/properties/mode/enum",keyword:"enum",params:{allowedValues: schema58.properties.mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate34.errors = vErrors;return errors === 0;}validate34.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema64 = {"type":"object","required":["mode","stamp"],"additionalProperties":false,"properties":{"mode":{"const":"replay_same_payload"},"stamp":{"$ref":"#/$defs/relpath"}}};const schema65 = {"type":"string","description":"Path relative to a method's argument tuple (or result tuple, for outcome/list.next/list.items). Starts with (i) when the tuple has more than one element; otherwise relative to element 0.","pattern":"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$","minLength":1};const pattern26 = new RegExp("^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$", "u");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;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.mode === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "mode"},message:"must have required property '"+"mode"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.stamp === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "stamp"},message:"must have required property '"+"stamp"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "mode") || (key0 === "stamp"))){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.mode !== undefined){if("replay_same_payload" !== data.mode){const err3 = {instancePath:instancePath+"/mode",schemaPath:"#/properties/mode/const",keyword:"const",params:{allowedValue: "replay_same_payload"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.stamp !== undefined){let data1 = data.stamp;if(typeof data1 === "string"){if(func1(data1) < 1){const err4 = {instancePath:instancePath+"/stamp",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(!pattern26.test(data1)){const err5 = {instancePath:instancePath+"/stamp",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/stamp",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};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++;}validate36.errors = vErrors;return errors === 0;}validate36.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema66 = {"type":"object","description":"classes, default or both: a result with no variant to select has default alone (spec 5.3, D-049)","minProperties":1,"additionalProperties":false,"properties":{"classes":{"type":"object","minProperties":1,"propertyNames":{"$ref":"#/$defs/relpath"},"additionalProperties":{"$ref":"#/$defs/outcome_class"}},"default":{"$ref":"#/$defs/outcome_class"}}};const schema68 = {"enum":["success","already_done","retry_same","retry_new","fix_input","fail"]};function validate38(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate38.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(Object.keys(data).length < 1){const err0 = {instancePath,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "classes") || (key0 === "default"))){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.classes !== undefined){let data0 = data.classes;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(Object.keys(data0).length < 1){const err2 = {instancePath:instancePath+"/classes",schemaPath:"#/properties/classes/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key1 in data0){const _errs4 = errors;if(typeof key1 === "string"){if(func1(key1) < 1){const err3 = {instancePath:instancePath+"/classes",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key1};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(!pattern26.test(key1)){const err4 = {instancePath:instancePath+"/classes",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\"",propertyName:key1};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/classes",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key1};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs4 === errors;if(!valid1){const err6 = {instancePath:instancePath+"/classes",schemaPath:"#/properties/classes/propertyNames",keyword:"propertyNames",params:{propertyName: key1},message:"property name must be valid"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}for(const key2 in data0){let data1 = data0[key2];if(!((((((data1 === "success") || (data1 === "already_done")) || (data1 === "retry_same")) || (data1 === "retry_new")) || (data1 === "fix_input")) || (data1 === "fail"))){const err7 = {instancePath:instancePath+"/classes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/$defs/outcome_class/enum",keyword:"enum",params:{allowedValues: schema68.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath:instancePath+"/classes",schemaPath:"#/properties/classes/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.default !== undefined){let data2 = data.default;if(!((((((data2 === "success") || (data2 === "already_done")) || (data2 === "retry_same")) || (data2 === "retry_new")) || (data2 === "fix_input")) || (data2 === "fail"))){const err9 = {instancePath:instancePath+"/default",schemaPath:"#/$defs/outcome_class/enum",keyword:"enum",params:{allowedValues: schema68.enum},message:"must be equal to one of the allowed values"};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++;}validate38.errors = vErrors;return errors === 0;}validate38.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema70 = {"type":"object","required":["cursor","next","items"],"additionalProperties":false,"properties":{"cursor":{"$ref":"#/$defs/relpath"},"next":{"$ref":"#/$defs/relpath"},"items":{"$ref":"#/$defs/relpath"}}};function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate40.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.cursor === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "cursor"},message:"must have required property '"+"cursor"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.next === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "next"},message:"must have required property '"+"next"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.items === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!(((key0 === "cursor") || (key0 === "next")) || (key0 === "items"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.cursor !== undefined){let data0 = data.cursor;if(typeof data0 === "string"){if(func1(data0) < 1){const err4 = {instancePath:instancePath+"/cursor",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(!pattern26.test(data0)){const err5 = {instancePath:instancePath+"/cursor",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/cursor",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.next !== undefined){let data1 = data.next;if(typeof data1 === "string"){if(func1(data1) < 1){const err7 = {instancePath:instancePath+"/next",schemaPath:"#/$defs/relpath/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(!pattern26.test(data1)){const err8 = {instancePath:instancePath+"/next",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/next",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.items !== undefined){let data2 = data.items;if(typeof data2 === "string"){if(func1(data2) < 1){const err10 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(!pattern26.test(data2)){const err11 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}validate40.errors = vErrors;return errors === 0;}validate40.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema74 = {"type":"object","required":["set","items","name","value"],"additionalProperties":false,"description":"A method that lists named things (spec 5.3, D-045). items is a results relpath to a vec of records; name, value, show and kind are paths inside one item.","properties":{"set":{"$ref":"#/$defs/set_name"},"items":{"$ref":"#/$defs/relpath"},"name":{"$ref":"#/$defs/relpath"},"value":{"$ref":"#/$defs/relpath"},"show":{"$ref":"#/$defs/relpath"},"kind":{"$ref":"#/$defs/relpath"}}};const schema75 = {"type":"string","pattern":"^[a-z][a-z0-9_]*$","maxLength":64,"description":"A names set's name, which named tags refer to."};const pattern31 = new RegExp("^[a-z][a-z0-9_]*$", "u");function validate42(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate42.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.set === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "set"},message:"must have required property '"+"set"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.items === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.name === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.value === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!((((((key0 === "set") || (key0 === "items")) || (key0 === "name")) || (key0 === "value")) || (key0 === "show")) || (key0 === "kind"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.set !== undefined){let data0 = data.set;if(typeof data0 === "string"){if(func1(data0) > 64){const err5 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(!pattern31.test(data0)){const err6 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_]*$"},message:"must match pattern \""+"^[a-z][a-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.items !== undefined){let data1 = data.items;if(typeof data1 === "string"){if(func1(data1) < 1){const err8 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(!pattern26.test(data1)){const err9 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.name !== undefined){let data2 = data.name;if(typeof data2 === "string"){if(func1(data2) < 1){const err11 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/relpath/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(!pattern26.test(data2)){const err12 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.value !== undefined){let data3 = data.value;if(typeof data3 === "string"){if(func1(data3) < 1){const err14 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(!pattern26.test(data3)){const err15 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.show !== undefined){let data4 = data.show;if(typeof data4 === "string"){if(func1(data4) < 1){const err17 = {instancePath:instancePath+"/show",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(!pattern26.test(data4)){const err18 = {instancePath:instancePath+"/show",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}else {const err19 = {instancePath:instancePath+"/show",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.kind !== undefined){let data5 = data.kind;if(typeof data5 === "string"){if(func1(data5) < 1){const err20 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/relpath/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(!pattern26.test(data5)){const err21 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}else {const err23 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}validate42.errors = vErrors;return errors === 0;}validate42.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema81 = {"type":"object","required":["set"],"additionalProperties":false,"description":"A position a name from a names set can stand for (spec 5.3, D-045).","properties":{"set":{"$ref":"#/$defs/set_name"},"by":{"enum":["value","show"]}}};function validate44(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate44.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.set === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "set"},message:"must have required property '"+"set"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "set") || (key0 === "by"))){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.set !== undefined){let data0 = data.set;if(typeof data0 === "string"){if(func1(data0) > 64){const err2 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(!pattern31.test(data0)){const err3 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_]*$"},message:"must match pattern \""+"^[a-z][a-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.by !== undefined){let data1 = data.by;if(!((data1 === "value") || (data1 === "show"))){const err5 = {instancePath:instancePath+"/by",schemaPath:"#/properties/by/enum",keyword:"enum",params:{allowedValues: schema81.properties.by.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate44.errors = vErrors;return errors === 0;}validate44.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate25.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){let data0 = data.tag;if(!((((data0 === "idempotency") || (data0 === "outcome")) || (data0 === "list")) || (data0 === "names"))){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data1 = data.at;if(typeof data1 === "string"){if(!pattern14.test(data1)){const err1 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}else {const err2 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.at = true;props0.tag = true;}}if(!valid1){const err3 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}const _errs10 = errors;let valid5 = true;const _errs11 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){let data2 = data.tag;if(!((data2 === "intent") || (data2 === "effect"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}var _valid1 = _errs11 === errors;errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}if(_valid1){const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data3 = data.at;const _errs15 = errors;let valid8 = false;const _errs16 = errors;if(typeof data3 === "string"){if(!pattern14.test(data3)){const err5 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs16 === errors;valid8 = valid8 || _valid2;const _errs19 = errors;if(typeof data3 === "string"){if(!pattern16.test(data3)){const err7 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/pattern",keyword:"pattern",params:{pattern: "^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid2 = _errs19 === errors;valid8 = valid8 || _valid2;if(!valid8){const err9 = {instancePath:instancePath+"/at",schemaPath:"#/allOf/1/then/properties/at/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}}}var _valid1 = _errs13 === errors;valid5 = _valid1;if(valid5){var props1 = {};props1.at = true;props1.tag = true;}}if(!valid5){const err10 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}const _errs23 = errors;let valid11 = true;const _errs24 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){let data4 = data.tag;if(!(((((((((((data4 === "amount") || (data4 === "timestamp")) || (data4 === "duration")) || (data4 === "account")) || (data4 === "subaccount")) || (data4 === "bytes")) || (data4 === "text")) || (data4 === "range")) || (data4 === "default")) || (data4 === "ui")) || (data4 === "named"))){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}var _valid3 = _errs24 === errors;errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}if(_valid3){const _errs26 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data5 = data.at;if(typeof data5 === "string"){if(!pattern16.test(data5)){const err12 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/pattern",keyword:"pattern",params:{pattern: "^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}var _valid3 = _errs26 === errors;valid11 = _valid3;if(valid11){var props2 = {};props2.at = true;props2.tag = true;}}if(!valid11){const err14 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(props0 !== true && props2 !== undefined){if(props2 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props2);}}const _errs31 = errors;let valid15 = true;const _errs32 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("describe" !== data.tag){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}var _valid4 = _errs32 === errors;errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}if(_valid4){const _errs34 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data7 = data.at;const _errs36 = errors;let valid18 = false;const _errs37 = errors;if(typeof data7 === "string"){if(!pattern16.test(data7)){const err16 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/pattern",keyword:"pattern",params:{pattern: "^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}else {const err17 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid5 = _errs37 === errors;valid18 = valid18 || _valid5;const _errs40 = errors;if(typeof data7 === "string"){if(!pattern14.test(data7)){const err18 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}else {const err19 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid5 = _errs40 === errors;valid18 = valid18 || _valid5;if(!valid18){const err20 = {instancePath:instancePath+"/at",schemaPath:"#/allOf/3/then/properties/at/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {errors = _errs36;if(vErrors !== null){if(_errs36){vErrors.length = _errs36;}else {vErrors = null;}}}}}var _valid4 = _errs34 === errors;valid15 = _valid4;if(valid15){var props3 = {};props3.at = true;props3.tag = true;}}if(!valid15){const err21 = {instancePath,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(props0 !== true && props3 !== undefined){if(props3 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props3);}}const _errs44 = errors;let valid21 = true;const _errs45 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("amount" !== data.tag){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid6 = _errs45 === errors;errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}if(_valid6){const _errs47 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate26(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);errors = vErrors.length;}}}var _valid6 = _errs47 === errors;valid21 = _valid6;if(valid21){var props4 = {};props4.args = true;props4.tag = true;}}if(!valid21){const err23 = {instancePath,schemaPath:"#/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(props0 !== true && props4 !== undefined){if(props4 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props4);}}const _errs50 = errors;let valid24 = true;const _errs51 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("timestamp" !== data.tag){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid7 = _errs51 === errors;errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}if(_valid7){const _errs53 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate28(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);errors = vErrors.length;}}}var _valid7 = _errs53 === errors;valid24 = _valid7;if(valid24){var props5 = {};props5.args = true;props5.tag = true;}}if(!valid24){const err25 = {instancePath,schemaPath:"#/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(props0 !== true && props5 !== undefined){if(props5 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props5);}}const _errs56 = errors;let valid27 = true;const _errs57 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("duration" !== data.tag){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}var _valid8 = _errs57 === errors;errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}if(_valid8){const _errs59 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate30(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}}var _valid8 = _errs59 === errors;valid27 = _valid8;if(valid27){var props6 = {};props6.args = true;props6.tag = true;}}if(!valid27){const err27 = {instancePath,schemaPath:"#/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(props0 !== true && props6 !== undefined){if(props6 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props6);}}const _errs62 = errors;let valid30 = true;const _errs63 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("account" !== data.tag){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}var _valid9 = _errs63 === errors;errors = _errs62;if(vErrors !== null){if(_errs62){vErrors.length = _errs62;}else {vErrors = null;}}if(_valid9){const _errs65 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data15 = data.args;if(data15 && typeof data15 == "object" && !Array.isArray(data15)){for(const key0 in data15){if(!(key0 === "encoding")){const err29 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_account/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data15.encoding !== undefined){if("icrc1" !== data15.encoding){const err30 = {instancePath:instancePath+"/args/encoding",schemaPath:"#/$defs/args_account/properties/encoding/const",keyword:"const",params:{allowedValue: "icrc1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}}else {const err31 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_account/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}var _valid9 = _errs65 === errors;valid30 = _valid9;if(valid30){var props7 = {};props7.args = true;props7.tag = true;}}if(!valid30){const err32 = {instancePath,schemaPath:"#/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(props0 !== true && props7 !== undefined){if(props7 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props7);}}const _errs72 = errors;let valid35 = true;const _errs73 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("subaccount" !== data.tag){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid10 = _errs73 === errors;errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}if(_valid10){const _errs75 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data18 = data.args;if(data18 && typeof data18 == "object" && !Array.isArray(data18)){if(Object.keys(data18).length > 0){const err34 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_empty/maxProperties",keyword:"maxProperties",params:{limit: 0},message:"must NOT have more than 0 properties"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}for(const key1 in data18){const err35 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_empty/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}else {const err36 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_empty/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid10 = _errs75 === errors;valid35 = _valid10;if(valid35){var props8 = {};props8.args = true;props8.tag = true;}}if(!valid35){const err37 = {instancePath,schemaPath:"#/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(props0 !== true && props8 !== undefined){if(props8 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props8);}}const _errs81 = errors;let valid39 = true;const _errs82 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("bytes" !== data.tag){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}var _valid11 = _errs82 === errors;errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}if(_valid11){const _errs84 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data20 = data.args;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(data20.encoding === undefined){const err39 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_bytes/required",keyword:"required",params:{missingProperty: "encoding"},message:"must have required property '"+"encoding"+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}for(const key2 in data20){if(!((key2 === "encoding") || (key2 === "max_len"))){const err40 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_bytes/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data20.encoding !== undefined){let data21 = data20.encoding;if(!(((data21 === "utf8") || (data21 === "hex")) || (data21 === "base64"))){const err41 = {instancePath:instancePath+"/args/encoding",schemaPath:"#/$defs/args_bytes/properties/encoding/enum",keyword:"enum",params:{allowedValues: schema53.properties.encoding.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data20.max_len !== undefined){let data22 = data20.max_len;if(!(((typeof data22 == "number") && (!(data22 % 1) && !isNaN(data22))) && (isFinite(data22)))){const err42 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_bytes/properties/max_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if((typeof data22 == "number") && (isFinite(data22))){if(data22 < 0 || isNaN(data22)){const err43 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_bytes/properties/max_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}}else {const err44 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_bytes/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}var _valid11 = _errs84 === errors;valid39 = _valid11;if(valid39){var props9 = {};props9.args = true;props9.tag = true;}}if(!valid39){const err45 = {instancePath,schemaPath:"#/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(props0 !== true && props9 !== undefined){if(props9 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props9);}}const _errs93 = errors;let valid44 = true;const _errs94 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("text" !== data.tag){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}var _valid12 = _errs94 === errors;errors = _errs93;if(vErrors !== null){if(_errs93){vErrors.length = _errs93;}else {vErrors = null;}}if(_valid12){const _errs96 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data24 = data.args;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(Object.keys(data24).length < 1){const err47 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_text/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}for(const key3 in data24){if(!(((key3 === "format") || (key3 === "max_len")) || (key3 === "pattern"))){const err48 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_text/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data24.format !== undefined){let data25 = data24.format;if(!((((data25 === "plain") || (data25 === "markdown")) || (data25 === "email")) || (data25 === "url"))){const err49 = {instancePath:instancePath+"/args/format",schemaPath:"#/$defs/args_text/properties/format/enum",keyword:"enum",params:{allowedValues: schema54.properties.format.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data24.max_len !== undefined){let data26 = data24.max_len;if(!(((typeof data26 == "number") && (!(data26 % 1) && !isNaN(data26))) && (isFinite(data26)))){const err50 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_text/properties/max_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if((typeof data26 == "number") && (isFinite(data26))){if(data26 < 0 || isNaN(data26)){const err51 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_text/properties/max_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}if(data24.pattern !== undefined){if(typeof data24.pattern !== "string"){const err52 = {instancePath:instancePath+"/args/pattern",schemaPath:"#/$defs/args_text/properties/pattern/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}else {const err53 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_text/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}var _valid12 = _errs96 === errors;valid44 = _valid12;if(valid44){var props10 = {};props10.args = true;props10.tag = true;}}if(!valid44){const err54 = {instancePath,schemaPath:"#/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(props0 !== true && props10 !== undefined){if(props10 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props10);}}const _errs107 = errors;let valid49 = true;const _errs108 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("range" !== data.tag){const err55 = {};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid13 = _errs108 === errors;errors = _errs107;if(vErrors !== null){if(_errs107){vErrors.length = _errs107;}else {vErrors = null;}}if(_valid13){const _errs110 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate32(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}}var _valid13 = _errs110 === errors;valid49 = _valid13;if(valid49){var props11 = {};props11.args = true;props11.tag = true;}}if(!valid49){const err56 = {instancePath,schemaPath:"#/allOf/11/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(props0 !== true && props11 !== undefined){if(props11 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props11);}}const _errs113 = errors;let valid52 = true;const _errs114 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("default" !== data.tag){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}var _valid14 = _errs114 === errors;errors = _errs113;if(vErrors !== null){if(_errs113){vErrors.length = _errs113;}else {vErrors = null;}}if(_valid14){const _errs116 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate34(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);errors = vErrors.length;}}}var _valid14 = _errs116 === errors;valid52 = _valid14;if(valid52){var props12 = {};props12.args = true;props12.tag = true;}}if(!valid52){const err58 = {instancePath,schemaPath:"#/allOf/12/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(props0 !== true && props12 !== undefined){if(props12 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props12);}}const _errs119 = errors;let valid55 = true;const _errs120 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("describe" !== data.tag){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}var _valid15 = _errs120 === errors;errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}if(_valid15){const _errs122 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data33 = data.args;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(Object.keys(data33).length < 1){const err60 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_describe/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}for(const key4 in data33){if(!((key4 === "label") || (key4 === "help"))){const err61 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_describe/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data33.label !== undefined){let data34 = data33.label;if(typeof data34 === "string"){if(func1(data34) > 80){const err62 = {instancePath:instancePath+"/args/label",schemaPath:"#/$defs/args_describe/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(func1(data34) < 1){const err63 = {instancePath:instancePath+"/args/label",schemaPath:"#/$defs/args_describe/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}else {const err64 = {instancePath:instancePath+"/args/label",schemaPath:"#/$defs/args_describe/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data33.help !== undefined){let data35 = data33.help;if(typeof data35 === "string"){if(func1(data35) > 2000){const err65 = {instancePath:instancePath+"/args/help",schemaPath:"#/$defs/args_describe/properties/help/maxLength",keyword:"maxLength",params:{limit: 2000},message:"must NOT have more than 2000 characters"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(func1(data35) < 1){const err66 = {instancePath:instancePath+"/args/help",schemaPath:"#/$defs/args_describe/properties/help/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}else {const err67 = {instancePath:instancePath+"/args/help",schemaPath:"#/$defs/args_describe/properties/help/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}else {const err68 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_describe/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}var _valid15 = _errs122 === errors;valid55 = _valid15;if(valid55){var props13 = {};props13.args = true;props13.tag = true;}}if(!valid55){const err69 = {instancePath,schemaPath:"#/allOf/13/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(props0 !== true && props13 !== undefined){if(props13 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props13);}}const _errs132 = errors;let valid60 = true;const _errs133 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("ui" !== data.tag){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}var _valid16 = _errs133 === errors;errors = _errs132;if(vErrors !== null){if(_errs132){vErrors.length = _errs132;}else {vErrors = null;}}if(_valid16){const _errs135 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data37 = data.args;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(Object.keys(data37).length < 1){const err71 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_ui/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}for(const key5 in data37){if(!((((key5 === "order") || (key5 === "group")) || (key5 === "hidden")) || (key5 === "widget"))){const err72 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_ui/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data37.order !== undefined){let data38 = data37.order;if(!(((typeof data38 == "number") && (!(data38 % 1) && !isNaN(data38))) && (isFinite(data38)))){const err73 = {instancePath:instancePath+"/args/order",schemaPath:"#/$defs/args_ui/properties/order/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data37.group !== undefined){if(typeof data37.group !== "string"){const err74 = {instancePath:instancePath+"/args/group",schemaPath:"#/$defs/args_ui/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data37.hidden !== undefined){if(typeof data37.hidden !== "boolean"){const err75 = {instancePath:instancePath+"/args/hidden",schemaPath:"#/$defs/args_ui/properties/hidden/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(data37.widget !== undefined){if(typeof data37.widget !== "string"){const err76 = {instancePath:instancePath+"/args/widget",schemaPath:"#/$defs/args_ui/properties/widget/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}}else {const err77 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_ui/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}var _valid16 = _errs135 === errors;valid60 = _valid16;if(valid60){var props14 = {};props14.args = true;props14.tag = true;}}if(!valid60){const err78 = {instancePath,schemaPath:"#/allOf/14/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(props0 !== true && props14 !== undefined){if(props14 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props14);}}const _errs149 = errors;let valid65 = true;const _errs150 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("intent" !== data.tag){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}var _valid17 = _errs150 === errors;errors = _errs149;if(vErrors !== null){if(_errs149){vErrors.length = _errs149;}else {vErrors = null;}}if(_valid17){const _errs152 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data43 = data.args;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.title === undefined){const err80 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data43.template === undefined){const err81 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/required",keyword:"required",params:{missingProperty: "template"},message:"must have required property '"+"template"+"'"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}for(const key6 in data43){if(!((key6 === "title") || (key6 === "template"))){const err82 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data43.title !== undefined){let data44 = data43.title;if(typeof data44 === "string"){if(func1(data44) > 60){const err83 = {instancePath:instancePath+"/args/title",schemaPath:"#/$defs/args_intent/properties/title/maxLength",keyword:"maxLength",params:{limit: 60},message:"must NOT have more than 60 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if(func1(data44) < 1){const err84 = {instancePath:instancePath+"/args/title",schemaPath:"#/$defs/args_intent/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}else {const err85 = {instancePath:instancePath+"/args/title",schemaPath:"#/$defs/args_intent/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}if(data43.template !== undefined){let data45 = data43.template;if(typeof data45 === "string"){if(func1(data45) > 500){const err86 = {instancePath:instancePath+"/args/template",schemaPath:"#/$defs/args_intent/properties/template/maxLength",keyword:"maxLength",params:{limit: 500},message:"must NOT have more than 500 characters"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(func1(data45) < 1){const err87 = {instancePath:instancePath+"/args/template",schemaPath:"#/$defs/args_intent/properties/template/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}else {const err88 = {instancePath:instancePath+"/args/template",schemaPath:"#/$defs/args_intent/properties/template/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}else {const err89 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}var _valid17 = _errs152 === errors;valid65 = _valid17;if(valid65){var props15 = {};props15.args = true;props15.tag = true;}}if(!valid65){const err90 = {instancePath,schemaPath:"#/allOf/15/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(props0 !== true && props15 !== undefined){if(props15 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props15);}}const _errs162 = errors;let valid70 = true;const _errs163 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("effect" !== data.tag){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}}var _valid18 = _errs163 === errors;errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}if(_valid18){const _errs165 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data47 = data.args;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.kind === undefined){const err92 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_effect/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(data47.irreversible === undefined){const err93 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_effect/required",keyword:"required",params:{missingProperty: "irreversible"},message:"must have required property '"+"irreversible"+"'"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}for(const key7 in data47){if(!(((key7 === "kind") || (key7 === "irreversible")) || (key7 === "replicated"))){const err94 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_effect/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}if(data47.kind !== undefined){let data48 = data47.kind;if(!((((((data48 === "read") || (data48 === "write")) || (data48 === "transfer")) || (data48 === "approve")) || (data48 === "admin")) || (data48 === "destroy"))){const err95 = {instancePath:instancePath+"/args/kind",schemaPath:"#/$defs/args_effect/properties/kind/enum",keyword:"enum",params:{allowedValues: schema63.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data47.irreversible !== undefined){if(typeof data47.irreversible !== "boolean"){const err96 = {instancePath:instancePath+"/args/irreversible",schemaPath:"#/$defs/args_effect/properties/irreversible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}if(data47.replicated !== undefined){if(typeof data47.replicated !== "boolean"){const err97 = {instancePath:instancePath+"/args/replicated",schemaPath:"#/$defs/args_effect/properties/replicated/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}else {const err98 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_effect/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}var _valid18 = _errs165 === errors;valid70 = _valid18;if(valid70){var props16 = {};props16.args = true;props16.tag = true;}}if(!valid70){const err99 = {instancePath,schemaPath:"#/allOf/16/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(props0 !== true && props16 !== undefined){if(props16 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props16);}}const _errs176 = errors;let valid75 = true;const _errs177 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("idempotency" !== data.tag){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}var _valid19 = _errs177 === errors;errors = _errs176;if(vErrors !== null){if(_errs176){vErrors.length = _errs176;}else {vErrors = null;}}if(_valid19){const _errs179 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate36(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);errors = vErrors.length;}}}var _valid19 = _errs179 === errors;valid75 = _valid19;if(valid75){var props17 = {};props17.args = true;props17.tag = true;}}if(!valid75){const err101 = {instancePath,schemaPath:"#/allOf/17/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(props0 !== true && props17 !== undefined){if(props17 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props17);}}const _errs182 = errors;let valid78 = true;const _errs183 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("outcome" !== data.tag){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}var _valid20 = _errs183 === errors;errors = _errs182;if(vErrors !== null){if(_errs182){vErrors.length = _errs182;}else {vErrors = null;}}if(_valid20){const _errs185 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate38(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);errors = vErrors.length;}}}var _valid20 = _errs185 === errors;valid78 = _valid20;if(valid78){var props18 = {};props18.args = true;props18.tag = true;}}if(!valid78){const err103 = {instancePath,schemaPath:"#/allOf/18/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(props0 !== true && props18 !== undefined){if(props18 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props18);}}const _errs188 = errors;let valid81 = true;const _errs189 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("list" !== data.tag){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}var _valid21 = _errs189 === errors;errors = _errs188;if(vErrors !== null){if(_errs188){vErrors.length = _errs188;}else {vErrors = null;}}if(_valid21){const _errs191 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate40(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}}}var _valid21 = _errs191 === errors;valid81 = _valid21;if(valid81){var props19 = {};props19.args = true;props19.tag = true;}}if(!valid81){const err105 = {instancePath,schemaPath:"#/allOf/19/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(props0 !== true && props19 !== undefined){if(props19 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props19);}}const _errs194 = errors;let valid84 = true;const _errs195 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("names" !== data.tag){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}var _valid22 = _errs195 === errors;errors = _errs194;if(vErrors !== null){if(_errs194){vErrors.length = _errs194;}else {vErrors = null;}}if(_valid22){const _errs197 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate42(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);errors = vErrors.length;}}}var _valid22 = _errs197 === errors;valid84 = _valid22;if(valid84){var props20 = {};props20.args = true;props20.tag = true;}}if(!valid84){const err107 = {instancePath,schemaPath:"#/allOf/20/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if(props0 !== true && props20 !== undefined){if(props20 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props20);}}const _errs200 = errors;let valid87 = true;const _errs201 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("named" !== data.tag){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}var _valid23 = _errs201 === errors;errors = _errs200;if(vErrors !== null){if(_errs200){vErrors.length = _errs200;}else {vErrors = null;}}if(_valid23){const _errs203 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate44(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate44.errors : vErrors.concat(validate44.errors);errors = vErrors.length;}}}var _valid23 = _errs203 === errors;valid87 = _valid23;if(valid87){var props21 = {};props21.args = true;props21.tag = true;}}if(!valid87){const err109 = {instancePath,schemaPath:"#/allOf/21/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(props0 !== true && props21 !== undefined){if(props21 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props21);}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.at === undefined){const err110 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "at"},message:"must have required property '"+"at"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data.tag === undefined){const err111 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "tag"},message:"must have required property '"+"tag"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(data.args === undefined){const err112 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "args"},message:"must have required property '"+"args"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}for(const key8 in data){if(!((((key8 === "at") || (key8 === "tag")) || (key8 === "args")) || (key8 === "note"))){const err113 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(data.at !== undefined){if(typeof data.at !== "string"){const err114 = {instancePath:instancePath+"/at",schemaPath:"#/properties/at/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data.tag !== undefined){let data62 = data.tag;if(!((((((((((((((((((data62 === "amount") || (data62 === "timestamp")) || (data62 === "duration")) || (data62 === "account")) || (data62 === "subaccount")) || (data62 === "bytes")) || (data62 === "text")) || (data62 === "range")) || (data62 === "default")) || (data62 === "describe")) || (data62 === "ui")) || (data62 === "intent")) || (data62 === "effect")) || (data62 === "idempotency")) || (data62 === "outcome")) || (data62 === "list")) || (data62 === "names")) || (data62 === "named"))){const err115 = {instancePath:instancePath+"/tag",schemaPath:"#/properties/tag/enum",keyword:"enum",params:{allowedValues: schema37.properties.tag.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}if(data.args !== undefined){let data63 = data.args;if(!(data63 && typeof data63 == "object" && !Array.isArray(data63))){const err116 = {instancePath:instancePath+"/args",schemaPath:"#/properties/args/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data.note !== undefined){if(typeof data.note !== "string"){const err117 = {instancePath:instancePath+"/note",schemaPath:"#/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}}else {const err118 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}validate25.errors = vErrors;return errors === 0;}validate25.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const pattern7 = new RegExp("^candid-core:interface:v1:sha256:[0-9a-f]{64}$", "u");const pattern8 = new RegExp("^candid-core:contract:v1:sha256:[0-9a-f]{64}$", "u");const pattern9 = new RegExp("^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$", "u");const pattern12 = new RegExp("^[a-z0-9][a-z0-9_.-]{0,63}$", "u");const pattern13 = new RegExp("^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$", "u");const func2 = Object.prototype.hasOwnProperty;function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="urn:candid-profile:v0:schema" */;let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("pack" !== data.kind){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.origin !== undefined){if("pack" !== data.origin){const err1 = {instancePath:instancePath+"/origin",schemaPath:"#/allOf/0/then/properties/origin/const",keyword:"const",params:{allowedValue: "pack"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.binds !== undefined){if(!(validate21(data.binds, {instancePath:instancePath+"/binds",parentData:data,parentDataProperty:"binds",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.origin = true;props0.binds = true;props0.kind = true;}}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const _errs9 = errors;let valid4 = true;const _errs10 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("canister" !== data.kind){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}var _valid1 = _errs10 === errors;errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}if(_valid1){const _errs12 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.origin !== undefined){let data4 = data.origin;if(!(((data4 === "author") || (data4 === "third_party")) || (data4 === "inferred"))){const err4 = {instancePath:instancePath+"/origin",schemaPath:"#/allOf/1/then/properties/origin/enum",keyword:"enum",params:{allowedValues: schema31.allOf[1].then.properties.origin.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.binds !== undefined){let data5 = data.binds;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.interface_id === undefined){const err5 = {instancePath:instancePath+"/binds",schemaPath:"#/$defs/canister_binds/required",keyword:"required",params:{missingProperty: "interface_id"},message:"must have required property '"+"interface_id"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data5){if(!(((key0 === "interface_id") || (key0 === "contract_id")) || (key0 === "canister_id"))){const err6 = {instancePath:instancePath+"/binds",schemaPath:"#/$defs/canister_binds/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data5.interface_id !== undefined){let data6 = data5.interface_id;if(typeof data6 === "string"){if(!pattern7.test(data6)){const err7 = {instancePath:instancePath+"/binds/interface_id",schemaPath:"#/$defs/canister_binds/properties/interface_id/pattern",keyword:"pattern",params:{pattern: "^candid-core:interface:v1:sha256:[0-9a-f]{64}$"},message:"must match pattern \""+"^candid-core:interface:v1:sha256:[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/binds/interface_id",schemaPath:"#/$defs/canister_binds/properties/interface_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data5.contract_id !== undefined){let data7 = data5.contract_id;if(typeof data7 === "string"){if(!pattern8.test(data7)){const err9 = {instancePath:instancePath+"/binds/contract_id",schemaPath:"#/$defs/canister_binds/properties/contract_id/pattern",keyword:"pattern",params:{pattern: "^candid-core:contract:v1:sha256:[0-9a-f]{64}$"},message:"must match pattern \""+"^candid-core:contract:v1:sha256:[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/binds/contract_id",schemaPath:"#/$defs/canister_binds/properties/contract_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.canister_id !== undefined){let data8 = data5.canister_id;if(typeof data8 === "string"){if(!pattern9.test(data8)){const err11 = {instancePath:instancePath+"/binds/canister_id",schemaPath:"#/$defs/canister_binds/properties/canister_id/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"},message:"must match pattern \""+"^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/binds/canister_id",schemaPath:"#/$defs/canister_binds/properties/canister_id/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+"/binds",schemaPath:"#/$defs/canister_binds/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}var _valid1 = _errs12 === errors;valid4 = _valid1;if(valid4){var props1 = {};props1.origin = true;props1.binds = true;props1.kind = true;}}if(!valid4){const err14 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}const _errs25 = errors;let valid9 = true;const _errs26 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("contract" !== data.kind){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}var _valid2 = _errs26 === errors;errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}if(_valid2){const _errs28 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.origin !== undefined){let data10 = data.origin;if(!(((data10 === "author") || (data10 === "third_party")) || (data10 === "inferred"))){const err16 = {instancePath:instancePath+"/origin",schemaPath:"#/allOf/2/then/properties/origin/enum",keyword:"enum",params:{allowedValues: schema31.allOf[2].then.properties.origin.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.binds !== undefined){if(!(validate23(data.binds, {instancePath:instancePath+"/binds",parentData:data,parentDataProperty:"binds",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);errors = vErrors.length;}}}var _valid2 = _errs28 === errors;valid9 = _valid2;if(valid9){var props2 = {};props2.origin = true;props2.binds = true;props2.kind = true;}}if(!valid9){const err17 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(props0 !== true && props2 !== undefined){if(props2 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props2);}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.format === undefined){const err18 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.format_version === undefined){const err19 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format_version"},message:"must have required property '"+"format_version"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.kind === undefined){const err20 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data.name === undefined){const err21 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(data.origin === undefined){const err22 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "origin"},message:"must have required property '"+"origin"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data.binds === undefined){const err23 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "binds"},message:"must have required property '"+"binds"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data.annotations === undefined){const err24 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "annotations"},message:"must have required property '"+"annotations"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}for(const key1 in data){if(!(func2.call(schema31.properties, key1))){const err25 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.format !== undefined){if("candid-profile" !== data.format){const err26 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/const",keyword:"const",params:{allowedValue: "candid-profile"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data.format_version !== undefined){if(0 !== data.format_version){const err27 = {instancePath:instancePath+"/format_version",schemaPath:"#/properties/format_version/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data.kind !== undefined){let data14 = data.kind;if(!(((data14 === "canister") || (data14 === "pack")) || (data14 === "contract"))){const err28 = {instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues: schema31.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data.name !== undefined){let data15 = data.name;if(typeof data15 === "string"){if(!pattern12.test(data15)){const err29 = {instancePath:instancePath+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9][a-z0-9_.-]{0,63}$"},message:"must match pattern \""+"^[a-z0-9][a-z0-9_.-]{0,63}$"+"\""};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}else {const err30 = {instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.origin !== undefined){let data16 = data.origin;if(!((((data16 === "author") || (data16 === "third_party")) || (data16 === "pack")) || (data16 === "inferred"))){const err31 = {instancePath:instancePath+"/origin",schemaPath:"#/properties/origin/enum",keyword:"enum",params:{allowedValues: schema31.properties.origin.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.language !== undefined){let data17 = data.language;if(typeof data17 === "string"){if(!pattern13.test(data17)){const err32 = {instancePath:instancePath+"/language",schemaPath:"#/properties/language/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/language",schemaPath:"#/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err34 = {instancePath:instancePath+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data.binds !== undefined){let data19 = data.binds;if(!(data19 && typeof data19 == "object" && !Array.isArray(data19))){const err35 = {instancePath:instancePath+"/binds",schemaPath:"#/properties/binds/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data.annotations !== undefined){let data20 = data.annotations;if(Array.isArray(data20)){if(data20.length < 1){const err36 = {instancePath:instancePath+"/annotations",schemaPath:"#/properties/annotations/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}const len0 = data20.length;for(let i0=0; i0<len0; i0++){if(!(validate25(data20[i0], {instancePath:instancePath+"/annotations/" + i0,parentData:data20,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}}}else {const err37 = {instancePath:instancePath+"/annotations",schemaPath:"#/properties/annotations/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}else {const err38 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};
|
|
12
|
+
deps: "threshold"},message:"must have property threshold when property message is present"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data.threshold !== undefined){if(data.message === undefined){const err18 = {instancePath,schemaPath:"#/dependentRequired",keyword:"dependentRequired",params:{property: "threshold",
|
|
13
|
+
missingProperty: "message",
|
|
14
|
+
depsCount: 1,
|
|
15
|
+
deps: "message"},message:"must have property message when property threshold is present"};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++;}validate28.errors = vErrors;return errors === 0;}validate28.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema52 = {"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"}}};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate30.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.unit === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "unit"},message:"must have required property '"+"unit"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "unit")){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.unit !== undefined){let data0 = data.unit;if(!((((data0 === "ns") || (data0 === "us")) || (data0 === "ms")) || (data0 === "s"))){const err2 = {instancePath:instancePath+"/unit",schemaPath:"#/$defs/time_unit/enum",keyword:"enum",params:{allowedValues: schema51.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: "object"},message:"must be object"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}validate30.errors = vErrors;return errors === 0;}validate30.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema58 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"min":{"$ref":"#/$defs/int_string"},"max":{"$ref":"#/$defs/int_string"},"min_len":{"type":"integer","minimum":0},"max_len":{"type":"integer","minimum":0}}};const schema59 = {"type":"string","pattern":"^(0|-?[1-9][0-9]*)$"};const pattern32 = new RegExp("^(0|-?[1-9][0-9]*)$", "u");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;}if(data && typeof data == "object" && !Array.isArray(data)){if(Object.keys(data).length < 1){const err0 = {instancePath,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((((key0 === "min") || (key0 === "max")) || (key0 === "min_len")) || (key0 === "max_len"))){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.min !== undefined){let data0 = data.min;if(typeof data0 === "string"){if(!pattern32.test(data0)){const err2 = {instancePath:instancePath+"/min",schemaPath:"#/$defs/int_string/pattern",keyword:"pattern",params:{pattern: "^(0|-?[1-9][0-9]*)$"},message:"must match pattern \""+"^(0|-?[1-9][0-9]*)$"+"\""};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}else {const err3 = {instancePath:instancePath+"/min",schemaPath:"#/$defs/int_string/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.max !== undefined){let data1 = data.max;if(typeof data1 === "string"){if(!pattern32.test(data1)){const err4 = {instancePath:instancePath+"/max",schemaPath:"#/$defs/int_string/pattern",keyword:"pattern",params:{pattern: "^(0|-?[1-9][0-9]*)$"},message:"must match pattern \""+"^(0|-?[1-9][0-9]*)$"+"\""};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/max",schemaPath:"#/$defs/int_string/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.min_len !== undefined){let data2 = data.min_len;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err6 = {instancePath:instancePath+"/min_len",schemaPath:"#/properties/min_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 0 || isNaN(data2)){const err7 = {instancePath:instancePath+"/min_len",schemaPath:"#/properties/min_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}if(data.max_len !== undefined){let data3 = data.max_len;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err8 = {instancePath:instancePath+"/max_len",schemaPath:"#/properties/max_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){const err9 = {instancePath:instancePath+"/max_len",schemaPath:"#/properties/max_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};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++;}validate32.errors = vErrors;return errors === 0;}validate32.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema61 = {"type":"object","required":["value","mode"],"additionalProperties":false,"properties":{"value":{"oneOf":[{"type":"string","description":"Candid textual literal, e.g. \"null\" or \"opt 0\""},{"$ref":"#/$defs/dynamic"}]},"mode":{"enum":["auto","suggest"]}}};function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate34.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.value === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.mode === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "mode"},message:"must have required property '"+"mode"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "value") || (key0 === "mode"))){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.value !== undefined){let data0 = data.value;const _errs3 = errors;let valid1 = false;let passing0 = null;const _errs4 = errors;if(typeof data0 !== "string"){const err3 = {instancePath:instancePath+"/value",schemaPath:"#/properties/value/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid0 = _errs4 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.from === undefined){const err4 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/dynamic/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key1 in data0){if(!(key1 === "from")){const err5 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/dynamic/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data0.from !== undefined){let data1 = data0.from;if(typeof data1 === "string"){if(!pattern26.test(data1)){const err6 = {instancePath:instancePath+"/value/from",schemaPath:"#/$defs/dynamic/properties/from/pattern",keyword:"pattern",params:{pattern: "^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"},message:"must match pattern \""+"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/value/from",schemaPath:"#/$defs/dynamic/properties/from/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/dynamic/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid0 = _errs6 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 1];}else {if(_valid0){valid1 = true;passing0 = 1;}}if(!valid1){const err9 = {instancePath:instancePath+"/value",schemaPath:"#/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}}if(data.mode !== undefined){let data2 = data.mode;if(!((data2 === "auto") || (data2 === "suggest"))){const err10 = {instancePath:instancePath+"/mode",schemaPath:"#/properties/mode/enum",keyword:"enum",params:{allowedValues: schema61.properties.mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate34.errors = vErrors;return errors === 0;}validate34.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema66 = {"type":"object","required":["kind","irreversible"],"additionalProperties":false,"properties":{"kind":{"enum":["read","write","transfer","approve","admin","destroy"]},"irreversible":{"type":"boolean"},"replicated":{"type":"boolean"},"grant":{"$ref":"#/$defs/grant","description":"What a transfer or approve lets someone take (spec section 5.3, D-056), for a check against terms the user confirmed."}}};const schema67 = {"type":"object","description":"Who may take the tokens, how many and until when, as relative paths into the method's arguments (spec section 5.3, D-056). Exactly one of spender and to.","required":["amount"],"additionalProperties":false,"properties":{"spender":{"$ref":"#/$defs/relpath","description":"Who may take the tokens through an allowance, or with a signature someone else submits: an address, or a position with an account tag."},"to":{"$ref":"#/$defs/relpath","description":"Who a transfer pays directly: an address, or a position with an account tag."},"amount":{"$ref":"#/$defs/relpath","description":"A position with an amount tag, whose threshold means unlimited; or a bool, where true is unlimited and false grants nothing."},"ends":{"type":"array","minItems":1,"maxItems":8,"items":{"$ref":"#/$defs/relpath"},"description":"Positions with a timestamp tag; the grant ends at the latest of them, and one at its threshold or left out means never. Without ends, an approve never ends and a transfer ends when it is done."}},"oneOf":[{"required":["spender"],"properties":{"spender":true}},{"required":["to"],"properties":{"to":true}}]};function validate37(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate37.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.spender === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "spender"},message:"must have required property '"+"spender"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = {};props0.spender = true;}const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.to === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = props0 || {};props0.to = true;}}}if(!valid0){const err2 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.amount === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "amount"},message:"must have required property '"+"amount"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!((((key0 === "spender") || (key0 === "to")) || (key0 === "amount")) || (key0 === "ends"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.spender !== undefined){let data0 = data.spender;if(typeof data0 === "string"){if(func1(data0) < 1){const err5 = {instancePath:instancePath+"/spender",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(!pattern28.test(data0)){const err6 = {instancePath:instancePath+"/spender",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/spender",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.to !== undefined){let data1 = data.to;if(typeof data1 === "string"){if(func1(data1) < 1){const err8 = {instancePath:instancePath+"/to",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(!pattern28.test(data1)){const err9 = {instancePath:instancePath+"/to",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/to",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.amount !== undefined){let data2 = data.amount;if(typeof data2 === "string"){if(func1(data2) < 1){const err11 = {instancePath:instancePath+"/amount",schemaPath:"#/$defs/relpath/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(!pattern28.test(data2)){const err12 = {instancePath:instancePath+"/amount",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/amount",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.ends !== undefined){let data3 = data.ends;if(Array.isArray(data3)){if(data3.length > 8){const err14 = {instancePath:instancePath+"/ends",schemaPath:"#/properties/ends/maxItems",keyword:"maxItems",params:{limit: 8},message:"must NOT have more than 8 items"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data3.length < 1){const err15 = {instancePath:instancePath+"/ends",schemaPath:"#/properties/ends/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];if(typeof data4 === "string"){if(func1(data4) < 1){const err16 = {instancePath:instancePath+"/ends/" + i0,schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(!pattern28.test(data4)){const err17 = {instancePath:instancePath+"/ends/" + i0,schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}else {const err18 = {instancePath:instancePath+"/ends/" + i0,schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}else {const err19 = {instancePath:instancePath+"/ends",schemaPath:"#/properties/ends/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}else {const err20 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}validate37.errors = vErrors;return errors === 0;}validate37.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};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;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.irreversible === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "irreversible"},message:"must have required property '"+"irreversible"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((((key0 === "kind") || (key0 === "irreversible")) || (key0 === "replicated")) || (key0 === "grant"))){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.kind !== undefined){let data0 = data.kind;if(!((((((data0 === "read") || (data0 === "write")) || (data0 === "transfer")) || (data0 === "approve")) || (data0 === "admin")) || (data0 === "destroy"))){const err3 = {instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues: schema66.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.irreversible !== undefined){if(typeof data.irreversible !== "boolean"){const err4 = {instancePath:instancePath+"/irreversible",schemaPath:"#/properties/irreversible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.replicated !== undefined){if(typeof data.replicated !== "boolean"){const err5 = {instancePath:instancePath+"/replicated",schemaPath:"#/properties/replicated/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.grant !== undefined){if(!(validate37(data.grant, {instancePath:instancePath+"/grant",parentData:data,parentDataProperty:"grant",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate36.errors = vErrors;return errors === 0;}validate36.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema72 = {"type":"object","required":["mode","stamp"],"additionalProperties":false,"properties":{"mode":{"const":"replay_same_payload"},"stamp":{"$ref":"#/$defs/relpath"}}};function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate40.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.mode === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "mode"},message:"must have required property '"+"mode"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.stamp === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "stamp"},message:"must have required property '"+"stamp"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "mode") || (key0 === "stamp"))){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.mode !== undefined){if("replay_same_payload" !== data.mode){const err3 = {instancePath:instancePath+"/mode",schemaPath:"#/properties/mode/const",keyword:"const",params:{allowedValue: "replay_same_payload"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.stamp !== undefined){let data1 = data.stamp;if(typeof data1 === "string"){if(func1(data1) < 1){const err4 = {instancePath:instancePath+"/stamp",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(!pattern28.test(data1)){const err5 = {instancePath:instancePath+"/stamp",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/stamp",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};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++;}validate40.errors = vErrors;return errors === 0;}validate40.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema74 = {"type":"object","description":"classes, default or both: a result with no variant to select has default alone (spec 5.3, D-049)","minProperties":1,"additionalProperties":false,"properties":{"classes":{"type":"object","minProperties":1,"propertyNames":{"$ref":"#/$defs/relpath"},"additionalProperties":{"$ref":"#/$defs/outcome_class"}},"default":{"$ref":"#/$defs/outcome_class"}}};const schema76 = {"enum":["success","already_done","retry_same","retry_new","fix_input","fail"]};function validate42(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate42.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(Object.keys(data).length < 1){const err0 = {instancePath,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "classes") || (key0 === "default"))){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.classes !== undefined){let data0 = data.classes;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(Object.keys(data0).length < 1){const err2 = {instancePath:instancePath+"/classes",schemaPath:"#/properties/classes/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key1 in data0){const _errs4 = errors;if(typeof key1 === "string"){if(func1(key1) < 1){const err3 = {instancePath:instancePath+"/classes",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key1};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(!pattern28.test(key1)){const err4 = {instancePath:instancePath+"/classes",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\"",propertyName:key1};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/classes",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key1};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs4 === errors;if(!valid1){const err6 = {instancePath:instancePath+"/classes",schemaPath:"#/properties/classes/propertyNames",keyword:"propertyNames",params:{propertyName: key1},message:"property name must be valid"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}for(const key2 in data0){let data1 = data0[key2];if(!((((((data1 === "success") || (data1 === "already_done")) || (data1 === "retry_same")) || (data1 === "retry_new")) || (data1 === "fix_input")) || (data1 === "fail"))){const err7 = {instancePath:instancePath+"/classes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/$defs/outcome_class/enum",keyword:"enum",params:{allowedValues: schema76.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath:instancePath+"/classes",schemaPath:"#/properties/classes/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.default !== undefined){let data2 = data.default;if(!((((((data2 === "success") || (data2 === "already_done")) || (data2 === "retry_same")) || (data2 === "retry_new")) || (data2 === "fix_input")) || (data2 === "fail"))){const err9 = {instancePath:instancePath+"/default",schemaPath:"#/$defs/outcome_class/enum",keyword:"enum",params:{allowedValues: schema76.enum},message:"must be equal to one of the allowed values"};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++;}validate42.errors = vErrors;return errors === 0;}validate42.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema78 = {"type":"object","required":["cursor","next","items"],"additionalProperties":false,"properties":{"cursor":{"$ref":"#/$defs/relpath"},"next":{"$ref":"#/$defs/relpath"},"items":{"$ref":"#/$defs/relpath"}}};function validate44(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate44.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.cursor === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "cursor"},message:"must have required property '"+"cursor"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.next === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "next"},message:"must have required property '"+"next"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.items === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!(((key0 === "cursor") || (key0 === "next")) || (key0 === "items"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.cursor !== undefined){let data0 = data.cursor;if(typeof data0 === "string"){if(func1(data0) < 1){const err4 = {instancePath:instancePath+"/cursor",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(!pattern28.test(data0)){const err5 = {instancePath:instancePath+"/cursor",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/cursor",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.next !== undefined){let data1 = data.next;if(typeof data1 === "string"){if(func1(data1) < 1){const err7 = {instancePath:instancePath+"/next",schemaPath:"#/$defs/relpath/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(!pattern28.test(data1)){const err8 = {instancePath:instancePath+"/next",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/next",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.items !== undefined){let data2 = data.items;if(typeof data2 === "string"){if(func1(data2) < 1){const err10 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(!pattern28.test(data2)){const err11 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}validate44.errors = vErrors;return errors === 0;}validate44.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema82 = {"type":"object","required":["set","items","name","value"],"additionalProperties":false,"description":"A method that lists named things (spec 5.3, D-045). items is a results relpath to a vec of records; name, value, show and kind are paths inside one item.","properties":{"set":{"$ref":"#/$defs/set_name"},"items":{"$ref":"#/$defs/relpath"},"name":{"$ref":"#/$defs/relpath"},"value":{"$ref":"#/$defs/relpath"},"show":{"$ref":"#/$defs/relpath"},"kind":{"$ref":"#/$defs/relpath"}}};const schema83 = {"type":"string","pattern":"^[a-z][a-z0-9_]*$","maxLength":64,"description":"A names set's name, which named tags refer to."};const pattern44 = new RegExp("^[a-z][a-z0-9_]*$", "u");function validate46(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate46.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.set === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "set"},message:"must have required property '"+"set"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.items === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.name === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.value === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!((((((key0 === "set") || (key0 === "items")) || (key0 === "name")) || (key0 === "value")) || (key0 === "show")) || (key0 === "kind"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.set !== undefined){let data0 = data.set;if(typeof data0 === "string"){if(func1(data0) > 64){const err5 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(!pattern44.test(data0)){const err6 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_]*$"},message:"must match pattern \""+"^[a-z][a-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.items !== undefined){let data1 = data.items;if(typeof data1 === "string"){if(func1(data1) < 1){const err8 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(!pattern28.test(data1)){const err9 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.name !== undefined){let data2 = data.name;if(typeof data2 === "string"){if(func1(data2) < 1){const err11 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/relpath/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(!pattern28.test(data2)){const err12 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.value !== undefined){let data3 = data.value;if(typeof data3 === "string"){if(func1(data3) < 1){const err14 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(!pattern28.test(data3)){const err15 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.show !== undefined){let data4 = data.show;if(typeof data4 === "string"){if(func1(data4) < 1){const err17 = {instancePath:instancePath+"/show",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(!pattern28.test(data4)){const err18 = {instancePath:instancePath+"/show",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}else {const err19 = {instancePath:instancePath+"/show",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.kind !== undefined){let data5 = data.kind;if(typeof data5 === "string"){if(func1(data5) < 1){const err20 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/relpath/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(!pattern28.test(data5)){const err21 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}else {const err23 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}validate46.errors = vErrors;return errors === 0;}validate46.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema89 = {"type":"object","required":["set"],"additionalProperties":false,"description":"A position a name from a names set can stand for (spec 5.3, D-045).","properties":{"set":{"$ref":"#/$defs/set_name"},"by":{"enum":["value","show"]}}};function validate48(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate48.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.set === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "set"},message:"must have required property '"+"set"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "set") || (key0 === "by"))){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.set !== undefined){let data0 = data.set;if(typeof data0 === "string"){if(func1(data0) > 64){const err2 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(!pattern44.test(data0)){const err3 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_]*$"},message:"must match pattern \""+"^[a-z][a-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.by !== undefined){let data1 = data.by;if(!((data1 === "value") || (data1 === "show"))){const err5 = {instancePath:instancePath+"/by",schemaPath:"#/properties/by/enum",keyword:"enum",params:{allowedValues: schema89.properties.by.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate48.errors = vErrors;return errors === 0;}validate48.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate25.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){let data0 = data.tag;if(!((((data0 === "idempotency") || (data0 === "outcome")) || (data0 === "list")) || (data0 === "names"))){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data1 = data.at;if(typeof data1 === "string"){if(!pattern7.test(data1)){const err1 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}else {const err2 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.at = true;props0.tag = true;}}if(!valid1){const err3 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}const _errs10 = errors;let valid5 = true;const _errs11 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){let data2 = data.tag;if(!((data2 === "intent") || (data2 === "effect"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}var _valid1 = _errs11 === errors;errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}if(_valid1){const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data3 = data.at;const _errs15 = errors;let valid8 = false;const _errs16 = errors;if(typeof data3 === "string"){if(!pattern7.test(data3)){const err5 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs16 === errors;valid8 = valid8 || _valid2;const _errs19 = errors;if(typeof data3 === "string"){if(!pattern22.test(data3)){const err7 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/pattern",keyword:"pattern",params:{pattern: "^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid2 = _errs19 === errors;valid8 = valid8 || _valid2;if(!valid8){const err9 = {instancePath:instancePath+"/at",schemaPath:"#/allOf/1/then/properties/at/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}}}var _valid1 = _errs13 === errors;valid5 = _valid1;if(valid5){var props1 = {};props1.at = true;props1.tag = true;}}if(!valid5){const err10 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}const _errs23 = errors;let valid11 = true;const _errs24 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){let data4 = data.tag;if(!(((((((((((data4 === "amount") || (data4 === "timestamp")) || (data4 === "duration")) || (data4 === "account")) || (data4 === "subaccount")) || (data4 === "bytes")) || (data4 === "text")) || (data4 === "range")) || (data4 === "default")) || (data4 === "ui")) || (data4 === "named"))){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}var _valid3 = _errs24 === errors;errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}if(_valid3){const _errs26 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data5 = data.at;if(typeof data5 === "string"){if(!pattern22.test(data5)){const err12 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/pattern",keyword:"pattern",params:{pattern: "^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}var _valid3 = _errs26 === errors;valid11 = _valid3;if(valid11){var props2 = {};props2.at = true;props2.tag = true;}}if(!valid11){const err14 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(props0 !== true && props2 !== undefined){if(props2 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props2);}}const _errs31 = errors;let valid15 = true;const _errs32 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("describe" !== data.tag){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}var _valid4 = _errs32 === errors;errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}if(_valid4){const _errs34 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data7 = data.at;const _errs36 = errors;let valid18 = false;const _errs37 = errors;if(typeof data7 === "string"){if(!pattern22.test(data7)){const err16 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/pattern",keyword:"pattern",params:{pattern: "^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}else {const err17 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid5 = _errs37 === errors;valid18 = valid18 || _valid5;const _errs40 = errors;if(typeof data7 === "string"){if(!pattern7.test(data7)){const err18 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}else {const err19 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid5 = _errs40 === errors;valid18 = valid18 || _valid5;if(!valid18){const err20 = {instancePath:instancePath+"/at",schemaPath:"#/allOf/3/then/properties/at/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {errors = _errs36;if(vErrors !== null){if(_errs36){vErrors.length = _errs36;}else {vErrors = null;}}}}}var _valid4 = _errs34 === errors;valid15 = _valid4;if(valid15){var props3 = {};props3.at = true;props3.tag = true;}}if(!valid15){const err21 = {instancePath,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(props0 !== true && props3 !== undefined){if(props3 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props3);}}const _errs44 = errors;let valid21 = true;const _errs45 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("amount" !== data.tag){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid6 = _errs45 === errors;errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}if(_valid6){const _errs47 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate26(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);errors = vErrors.length;}}}var _valid6 = _errs47 === errors;valid21 = _valid6;if(valid21){var props4 = {};props4.args = true;props4.tag = true;}}if(!valid21){const err23 = {instancePath,schemaPath:"#/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(props0 !== true && props4 !== undefined){if(props4 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props4);}}const _errs50 = errors;let valid24 = true;const _errs51 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("timestamp" !== data.tag){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid7 = _errs51 === errors;errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}if(_valid7){const _errs53 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate28(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);errors = vErrors.length;}}}var _valid7 = _errs53 === errors;valid24 = _valid7;if(valid24){var props5 = {};props5.args = true;props5.tag = true;}}if(!valid24){const err25 = {instancePath,schemaPath:"#/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(props0 !== true && props5 !== undefined){if(props5 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props5);}}const _errs56 = errors;let valid27 = true;const _errs57 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("duration" !== data.tag){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}var _valid8 = _errs57 === errors;errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}if(_valid8){const _errs59 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate30(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}}var _valid8 = _errs59 === errors;valid27 = _valid8;if(valid27){var props6 = {};props6.args = true;props6.tag = true;}}if(!valid27){const err27 = {instancePath,schemaPath:"#/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(props0 !== true && props6 !== undefined){if(props6 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props6);}}const _errs62 = errors;let valid30 = true;const _errs63 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("account" !== data.tag){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}var _valid9 = _errs63 === errors;errors = _errs62;if(vErrors !== null){if(_errs62){vErrors.length = _errs62;}else {vErrors = null;}}if(_valid9){const _errs65 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data15 = data.args;if(data15 && typeof data15 == "object" && !Array.isArray(data15)){for(const key0 in data15){if(!(key0 === "encoding")){const err29 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_account/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data15.encoding !== undefined){if("icrc1" !== data15.encoding){const err30 = {instancePath:instancePath+"/args/encoding",schemaPath:"#/$defs/args_account/properties/encoding/const",keyword:"const",params:{allowedValue: "icrc1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}}else {const err31 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_account/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}var _valid9 = _errs65 === errors;valid30 = _valid9;if(valid30){var props7 = {};props7.args = true;props7.tag = true;}}if(!valid30){const err32 = {instancePath,schemaPath:"#/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(props0 !== true && props7 !== undefined){if(props7 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props7);}}const _errs72 = errors;let valid35 = true;const _errs73 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("subaccount" !== data.tag){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid10 = _errs73 === errors;errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}if(_valid10){const _errs75 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data18 = data.args;if(data18 && typeof data18 == "object" && !Array.isArray(data18)){if(Object.keys(data18).length > 0){const err34 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_empty/maxProperties",keyword:"maxProperties",params:{limit: 0},message:"must NOT have more than 0 properties"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}for(const key1 in data18){const err35 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_empty/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}else {const err36 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_empty/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid10 = _errs75 === errors;valid35 = _valid10;if(valid35){var props8 = {};props8.args = true;props8.tag = true;}}if(!valid35){const err37 = {instancePath,schemaPath:"#/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(props0 !== true && props8 !== undefined){if(props8 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props8);}}const _errs81 = errors;let valid39 = true;const _errs82 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("bytes" !== data.tag){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}var _valid11 = _errs82 === errors;errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}if(_valid11){const _errs84 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data20 = data.args;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(data20.encoding === undefined){const err39 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_bytes/required",keyword:"required",params:{missingProperty: "encoding"},message:"must have required property '"+"encoding"+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}for(const key2 in data20){if(!((key2 === "encoding") || (key2 === "max_len"))){const err40 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_bytes/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data20.encoding !== undefined){let data21 = data20.encoding;if(!(((data21 === "utf8") || (data21 === "hex")) || (data21 === "base64"))){const err41 = {instancePath:instancePath+"/args/encoding",schemaPath:"#/$defs/args_bytes/properties/encoding/enum",keyword:"enum",params:{allowedValues: schema56.properties.encoding.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data20.max_len !== undefined){let data22 = data20.max_len;if(!(((typeof data22 == "number") && (!(data22 % 1) && !isNaN(data22))) && (isFinite(data22)))){const err42 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_bytes/properties/max_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if((typeof data22 == "number") && (isFinite(data22))){if(data22 < 0 || isNaN(data22)){const err43 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_bytes/properties/max_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}}else {const err44 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_bytes/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}var _valid11 = _errs84 === errors;valid39 = _valid11;if(valid39){var props9 = {};props9.args = true;props9.tag = true;}}if(!valid39){const err45 = {instancePath,schemaPath:"#/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(props0 !== true && props9 !== undefined){if(props9 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props9);}}const _errs93 = errors;let valid44 = true;const _errs94 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("text" !== data.tag){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}var _valid12 = _errs94 === errors;errors = _errs93;if(vErrors !== null){if(_errs93){vErrors.length = _errs93;}else {vErrors = null;}}if(_valid12){const _errs96 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data24 = data.args;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(Object.keys(data24).length < 1){const err47 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_text/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}for(const key3 in data24){if(!(((key3 === "format") || (key3 === "max_len")) || (key3 === "pattern"))){const err48 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_text/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data24.format !== undefined){let data25 = data24.format;if(!((((data25 === "plain") || (data25 === "markdown")) || (data25 === "email")) || (data25 === "url"))){const err49 = {instancePath:instancePath+"/args/format",schemaPath:"#/$defs/args_text/properties/format/enum",keyword:"enum",params:{allowedValues: schema57.properties.format.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data24.max_len !== undefined){let data26 = data24.max_len;if(!(((typeof data26 == "number") && (!(data26 % 1) && !isNaN(data26))) && (isFinite(data26)))){const err50 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_text/properties/max_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if((typeof data26 == "number") && (isFinite(data26))){if(data26 < 0 || isNaN(data26)){const err51 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_text/properties/max_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}if(data24.pattern !== undefined){if(typeof data24.pattern !== "string"){const err52 = {instancePath:instancePath+"/args/pattern",schemaPath:"#/$defs/args_text/properties/pattern/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}else {const err53 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_text/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}var _valid12 = _errs96 === errors;valid44 = _valid12;if(valid44){var props10 = {};props10.args = true;props10.tag = true;}}if(!valid44){const err54 = {instancePath,schemaPath:"#/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(props0 !== true && props10 !== undefined){if(props10 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props10);}}const _errs107 = errors;let valid49 = true;const _errs108 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("range" !== data.tag){const err55 = {};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid13 = _errs108 === errors;errors = _errs107;if(vErrors !== null){if(_errs107){vErrors.length = _errs107;}else {vErrors = null;}}if(_valid13){const _errs110 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate32(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}}var _valid13 = _errs110 === errors;valid49 = _valid13;if(valid49){var props11 = {};props11.args = true;props11.tag = true;}}if(!valid49){const err56 = {instancePath,schemaPath:"#/allOf/11/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(props0 !== true && props11 !== undefined){if(props11 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props11);}}const _errs113 = errors;let valid52 = true;const _errs114 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("default" !== data.tag){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}var _valid14 = _errs114 === errors;errors = _errs113;if(vErrors !== null){if(_errs113){vErrors.length = _errs113;}else {vErrors = null;}}if(_valid14){const _errs116 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate34(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);errors = vErrors.length;}}}var _valid14 = _errs116 === errors;valid52 = _valid14;if(valid52){var props12 = {};props12.args = true;props12.tag = true;}}if(!valid52){const err58 = {instancePath,schemaPath:"#/allOf/12/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(props0 !== true && props12 !== undefined){if(props12 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props12);}}const _errs119 = errors;let valid55 = true;const _errs120 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("describe" !== data.tag){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}var _valid15 = _errs120 === errors;errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}if(_valid15){const _errs122 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data33 = data.args;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(Object.keys(data33).length < 1){const err60 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_describe/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}for(const key4 in data33){if(!((key4 === "label") || (key4 === "help"))){const err61 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_describe/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data33.label !== undefined){let data34 = data33.label;if(typeof data34 === "string"){if(func1(data34) > 80){const err62 = {instancePath:instancePath+"/args/label",schemaPath:"#/$defs/args_describe/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(func1(data34) < 1){const err63 = {instancePath:instancePath+"/args/label",schemaPath:"#/$defs/args_describe/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}else {const err64 = {instancePath:instancePath+"/args/label",schemaPath:"#/$defs/args_describe/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data33.help !== undefined){let data35 = data33.help;if(typeof data35 === "string"){if(func1(data35) > 2000){const err65 = {instancePath:instancePath+"/args/help",schemaPath:"#/$defs/args_describe/properties/help/maxLength",keyword:"maxLength",params:{limit: 2000},message:"must NOT have more than 2000 characters"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(func1(data35) < 1){const err66 = {instancePath:instancePath+"/args/help",schemaPath:"#/$defs/args_describe/properties/help/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}else {const err67 = {instancePath:instancePath+"/args/help",schemaPath:"#/$defs/args_describe/properties/help/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}else {const err68 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_describe/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}var _valid15 = _errs122 === errors;valid55 = _valid15;if(valid55){var props13 = {};props13.args = true;props13.tag = true;}}if(!valid55){const err69 = {instancePath,schemaPath:"#/allOf/13/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(props0 !== true && props13 !== undefined){if(props13 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props13);}}const _errs132 = errors;let valid60 = true;const _errs133 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("ui" !== data.tag){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}var _valid16 = _errs133 === errors;errors = _errs132;if(vErrors !== null){if(_errs132){vErrors.length = _errs132;}else {vErrors = null;}}if(_valid16){const _errs135 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data37 = data.args;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(Object.keys(data37).length < 1){const err71 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_ui/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}for(const key5 in data37){if(!((((key5 === "order") || (key5 === "group")) || (key5 === "hidden")) || (key5 === "widget"))){const err72 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_ui/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data37.order !== undefined){let data38 = data37.order;if(!(((typeof data38 == "number") && (!(data38 % 1) && !isNaN(data38))) && (isFinite(data38)))){const err73 = {instancePath:instancePath+"/args/order",schemaPath:"#/$defs/args_ui/properties/order/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data37.group !== undefined){if(typeof data37.group !== "string"){const err74 = {instancePath:instancePath+"/args/group",schemaPath:"#/$defs/args_ui/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data37.hidden !== undefined){if(typeof data37.hidden !== "boolean"){const err75 = {instancePath:instancePath+"/args/hidden",schemaPath:"#/$defs/args_ui/properties/hidden/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(data37.widget !== undefined){if(typeof data37.widget !== "string"){const err76 = {instancePath:instancePath+"/args/widget",schemaPath:"#/$defs/args_ui/properties/widget/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}}else {const err77 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_ui/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}var _valid16 = _errs135 === errors;valid60 = _valid16;if(valid60){var props14 = {};props14.args = true;props14.tag = true;}}if(!valid60){const err78 = {instancePath,schemaPath:"#/allOf/14/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(props0 !== true && props14 !== undefined){if(props14 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props14);}}const _errs149 = errors;let valid65 = true;const _errs150 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("intent" !== data.tag){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}var _valid17 = _errs150 === errors;errors = _errs149;if(vErrors !== null){if(_errs149){vErrors.length = _errs149;}else {vErrors = null;}}if(_valid17){const _errs152 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data43 = data.args;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.title === undefined){const err80 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data43.template === undefined){const err81 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/required",keyword:"required",params:{missingProperty: "template"},message:"must have required property '"+"template"+"'"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}for(const key6 in data43){if(!((key6 === "title") || (key6 === "template"))){const err82 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data43.title !== undefined){let data44 = data43.title;if(typeof data44 === "string"){if(func1(data44) > 60){const err83 = {instancePath:instancePath+"/args/title",schemaPath:"#/$defs/args_intent/properties/title/maxLength",keyword:"maxLength",params:{limit: 60},message:"must NOT have more than 60 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if(func1(data44) < 1){const err84 = {instancePath:instancePath+"/args/title",schemaPath:"#/$defs/args_intent/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}else {const err85 = {instancePath:instancePath+"/args/title",schemaPath:"#/$defs/args_intent/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}if(data43.template !== undefined){let data45 = data43.template;if(typeof data45 === "string"){if(func1(data45) > 500){const err86 = {instancePath:instancePath+"/args/template",schemaPath:"#/$defs/args_intent/properties/template/maxLength",keyword:"maxLength",params:{limit: 500},message:"must NOT have more than 500 characters"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(func1(data45) < 1){const err87 = {instancePath:instancePath+"/args/template",schemaPath:"#/$defs/args_intent/properties/template/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}else {const err88 = {instancePath:instancePath+"/args/template",schemaPath:"#/$defs/args_intent/properties/template/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}else {const err89 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}var _valid17 = _errs152 === errors;valid65 = _valid17;if(valid65){var props15 = {};props15.args = true;props15.tag = true;}}if(!valid65){const err90 = {instancePath,schemaPath:"#/allOf/15/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(props0 !== true && props15 !== undefined){if(props15 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props15);}}const _errs162 = errors;let valid70 = true;const _errs163 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("effect" !== data.tag){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}}var _valid18 = _errs163 === errors;errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}if(_valid18){const _errs165 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate36(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);errors = vErrors.length;}}}var _valid18 = _errs165 === errors;valid70 = _valid18;if(valid70){var props16 = {};props16.args = true;props16.tag = true;}}if(!valid70){const err92 = {instancePath,schemaPath:"#/allOf/16/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(props0 !== true && props16 !== undefined){if(props16 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props16);}}const _errs168 = errors;let valid73 = true;const _errs169 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("idempotency" !== data.tag){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}}var _valid19 = _errs169 === errors;errors = _errs168;if(vErrors !== null){if(_errs168){vErrors.length = _errs168;}else {vErrors = null;}}if(_valid19){const _errs171 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate40(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}}}var _valid19 = _errs171 === errors;valid73 = _valid19;if(valid73){var props17 = {};props17.args = true;props17.tag = true;}}if(!valid73){const err94 = {instancePath,schemaPath:"#/allOf/17/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if(props0 !== true && props17 !== undefined){if(props17 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props17);}}const _errs174 = errors;let valid76 = true;const _errs175 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("outcome" !== data.tag){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}}var _valid20 = _errs175 === errors;errors = _errs174;if(vErrors !== null){if(_errs174){vErrors.length = _errs174;}else {vErrors = null;}}if(_valid20){const _errs177 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate42(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);errors = vErrors.length;}}}var _valid20 = _errs177 === errors;valid76 = _valid20;if(valid76){var props18 = {};props18.args = true;props18.tag = true;}}if(!valid76){const err96 = {instancePath,schemaPath:"#/allOf/18/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(props0 !== true && props18 !== undefined){if(props18 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props18);}}const _errs180 = errors;let valid79 = true;const _errs181 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("list" !== data.tag){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}var _valid21 = _errs181 === errors;errors = _errs180;if(vErrors !== null){if(_errs180){vErrors.length = _errs180;}else {vErrors = null;}}if(_valid21){const _errs183 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate44(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate44.errors : vErrors.concat(validate44.errors);errors = vErrors.length;}}}var _valid21 = _errs183 === errors;valid79 = _valid21;if(valid79){var props19 = {};props19.args = true;props19.tag = true;}}if(!valid79){const err98 = {instancePath,schemaPath:"#/allOf/19/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(props0 !== true && props19 !== undefined){if(props19 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props19);}}const _errs186 = errors;let valid82 = true;const _errs187 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("names" !== data.tag){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}var _valid22 = _errs187 === errors;errors = _errs186;if(vErrors !== null){if(_errs186){vErrors.length = _errs186;}else {vErrors = null;}}if(_valid22){const _errs189 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate46(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);errors = vErrors.length;}}}var _valid22 = _errs189 === errors;valid82 = _valid22;if(valid82){var props20 = {};props20.args = true;props20.tag = true;}}if(!valid82){const err100 = {instancePath,schemaPath:"#/allOf/20/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(props0 !== true && props20 !== undefined){if(props20 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props20);}}const _errs192 = errors;let valid85 = true;const _errs193 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("named" !== data.tag){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}}var _valid23 = _errs193 === errors;errors = _errs192;if(vErrors !== null){if(_errs192){vErrors.length = _errs192;}else {vErrors = null;}}if(_valid23){const _errs195 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate48(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);errors = vErrors.length;}}}var _valid23 = _errs195 === errors;valid85 = _valid23;if(valid85){var props21 = {};props21.args = true;props21.tag = true;}}if(!valid85){const err102 = {instancePath,schemaPath:"#/allOf/21/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(props0 !== true && props21 !== undefined){if(props21 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props21);}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.at === undefined){const err103 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "at"},message:"must have required property '"+"at"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data.tag === undefined){const err104 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "tag"},message:"must have required property '"+"tag"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(data.args === undefined){const err105 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "args"},message:"must have required property '"+"args"+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}for(const key7 in data){if(!((((key7 === "at") || (key7 === "tag")) || (key7 === "args")) || (key7 === "note"))){const err106 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}if(data.at !== undefined){if(typeof data.at !== "string"){const err107 = {instancePath:instancePath+"/at",schemaPath:"#/properties/at/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(data.tag !== undefined){let data59 = data.tag;if(!((((((((((((((((((data59 === "amount") || (data59 === "timestamp")) || (data59 === "duration")) || (data59 === "account")) || (data59 === "subaccount")) || (data59 === "bytes")) || (data59 === "text")) || (data59 === "range")) || (data59 === "default")) || (data59 === "describe")) || (data59 === "ui")) || (data59 === "intent")) || (data59 === "effect")) || (data59 === "idempotency")) || (data59 === "outcome")) || (data59 === "list")) || (data59 === "names")) || (data59 === "named"))){const err108 = {instancePath:instancePath+"/tag",schemaPath:"#/properties/tag/enum",keyword:"enum",params:{allowedValues: schema39.properties.tag.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data.args !== undefined){let data60 = data.args;if(!(data60 && typeof data60 == "object" && !Array.isArray(data60))){const err109 = {instancePath:instancePath+"/args",schemaPath:"#/properties/args/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data.note !== undefined){if(typeof data.note !== "string"){const err110 = {instancePath:instancePath+"/note",schemaPath:"#/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}}else {const err111 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}validate25.errors = vErrors;return errors === 0;}validate25.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const pattern10 = new RegExp("^candid-core:interface:v1:sha256:[0-9a-f]{64}$", "u");const pattern11 = new RegExp("^candid-core:contract:v1:sha256:[0-9a-f]{64}$", "u");const pattern12 = new RegExp("^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$", "u");const pattern18 = new RegExp("^[a-z0-9][a-z0-9_.-]{0,63}$", "u");const pattern19 = new RegExp("^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$", "u");const func6 = Object.prototype.hasOwnProperty;function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="urn:candid-profile:v0:schema" */;let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("pack" !== data.kind){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.origin !== undefined){if("pack" !== data.origin){const err1 = {instancePath:instancePath+"/origin",schemaPath:"#/allOf/0/then/properties/origin/const",keyword:"const",params:{allowedValue: "pack"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.binds !== undefined){if(!(validate21(data.binds, {instancePath:instancePath+"/binds",parentData:data,parentDataProperty:"binds",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.origin = true;props0.binds = true;props0.kind = true;}}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const _errs9 = errors;let valid4 = true;const _errs10 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("canister" !== data.kind){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}var _valid1 = _errs10 === errors;errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}if(_valid1){const _errs12 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.origin !== undefined){let data4 = data.origin;if(!(((data4 === "author") || (data4 === "third_party")) || (data4 === "inferred"))){const err4 = {instancePath:instancePath+"/origin",schemaPath:"#/allOf/1/then/properties/origin/enum",keyword:"enum",params:{allowedValues: schema31.allOf[1].then.properties.origin.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.binds !== undefined){let data5 = data.binds;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.interface_id === undefined){const err5 = {instancePath:instancePath+"/binds",schemaPath:"#/$defs/canister_binds/required",keyword:"required",params:{missingProperty: "interface_id"},message:"must have required property '"+"interface_id"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data5){if(!(((key0 === "interface_id") || (key0 === "contract_id")) || (key0 === "canister_id"))){const err6 = {instancePath:instancePath+"/binds",schemaPath:"#/$defs/canister_binds/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data5.interface_id !== undefined){let data6 = data5.interface_id;if(typeof data6 === "string"){if(!pattern10.test(data6)){const err7 = {instancePath:instancePath+"/binds/interface_id",schemaPath:"#/$defs/canister_binds/properties/interface_id/pattern",keyword:"pattern",params:{pattern: "^candid-core:interface:v1:sha256:[0-9a-f]{64}$"},message:"must match pattern \""+"^candid-core:interface:v1:sha256:[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/binds/interface_id",schemaPath:"#/$defs/canister_binds/properties/interface_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data5.contract_id !== undefined){let data7 = data5.contract_id;if(typeof data7 === "string"){if(!pattern11.test(data7)){const err9 = {instancePath:instancePath+"/binds/contract_id",schemaPath:"#/$defs/canister_binds/properties/contract_id/pattern",keyword:"pattern",params:{pattern: "^candid-core:contract:v1:sha256:[0-9a-f]{64}$"},message:"must match pattern \""+"^candid-core:contract:v1:sha256:[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/binds/contract_id",schemaPath:"#/$defs/canister_binds/properties/contract_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.canister_id !== undefined){let data8 = data5.canister_id;if(typeof data8 === "string"){if(!pattern12.test(data8)){const err11 = {instancePath:instancePath+"/binds/canister_id",schemaPath:"#/$defs/canister_binds/properties/canister_id/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"},message:"must match pattern \""+"^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/binds/canister_id",schemaPath:"#/$defs/canister_binds/properties/canister_id/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+"/binds",schemaPath:"#/$defs/canister_binds/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}var _valid1 = _errs12 === errors;valid4 = _valid1;if(valid4){var props1 = {};props1.origin = true;props1.binds = true;props1.kind = true;}}if(!valid4){const err14 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}const _errs25 = errors;let valid9 = true;const _errs26 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("contract" !== data.kind){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}var _valid2 = _errs26 === errors;errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}if(_valid2){const _errs28 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.origin !== undefined){let data10 = data.origin;if(!(((data10 === "author") || (data10 === "third_party")) || (data10 === "inferred"))){const err16 = {instancePath:instancePath+"/origin",schemaPath:"#/allOf/2/then/properties/origin/enum",keyword:"enum",params:{allowedValues: schema31.allOf[2].then.properties.origin.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.binds !== undefined){if(!(validate23(data.binds, {instancePath:instancePath+"/binds",parentData:data,parentDataProperty:"binds",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);errors = vErrors.length;}}}var _valid2 = _errs28 === errors;valid9 = _valid2;if(valid9){var props2 = {};props2.origin = true;props2.binds = true;props2.kind = true;}}if(!valid9){const err17 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(props0 !== true && props2 !== undefined){if(props2 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props2);}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.format === undefined){const err18 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.format_version === undefined){const err19 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format_version"},message:"must have required property '"+"format_version"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.kind === undefined){const err20 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data.name === undefined){const err21 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(data.origin === undefined){const err22 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "origin"},message:"must have required property '"+"origin"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data.binds === undefined){const err23 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "binds"},message:"must have required property '"+"binds"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data.annotations === undefined){const err24 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "annotations"},message:"must have required property '"+"annotations"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}for(const key1 in data){if(!(func6.call(schema31.properties, key1))){const err25 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.format !== undefined){if("candid-profile" !== data.format){const err26 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/const",keyword:"const",params:{allowedValue: "candid-profile"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data.format_version !== undefined){if(0 !== data.format_version){const err27 = {instancePath:instancePath+"/format_version",schemaPath:"#/properties/format_version/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data.kind !== undefined){let data14 = data.kind;if(!(((data14 === "canister") || (data14 === "pack")) || (data14 === "contract"))){const err28 = {instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues: schema31.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data.name !== undefined){let data15 = data.name;if(typeof data15 === "string"){if(!pattern18.test(data15)){const err29 = {instancePath:instancePath+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9][a-z0-9_.-]{0,63}$"},message:"must match pattern \""+"^[a-z0-9][a-z0-9_.-]{0,63}$"+"\""};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}else {const err30 = {instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.origin !== undefined){let data16 = data.origin;if(!((((data16 === "author") || (data16 === "third_party")) || (data16 === "pack")) || (data16 === "inferred"))){const err31 = {instancePath:instancePath+"/origin",schemaPath:"#/properties/origin/enum",keyword:"enum",params:{allowedValues: schema31.properties.origin.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.language !== undefined){let data17 = data.language;if(typeof data17 === "string"){if(!pattern19.test(data17)){const err32 = {instancePath:instancePath+"/language",schemaPath:"#/properties/language/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/language",schemaPath:"#/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err34 = {instancePath:instancePath+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data.binds !== undefined){let data19 = data.binds;if(!(data19 && typeof data19 == "object" && !Array.isArray(data19))){const err35 = {instancePath:instancePath+"/binds",schemaPath:"#/properties/binds/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data.annotations !== undefined){let data20 = data.annotations;if(Array.isArray(data20)){if(data20.length < 1){const err36 = {instancePath:instancePath+"/annotations",schemaPath:"#/properties/annotations/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}const len0 = data20.length;for(let i0=0; i0<len0; i0++){if(!(validate25(data20[i0], {instancePath:instancePath+"/annotations/" + i0,parentData:data20,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}}}else {const err37 = {instancePath:instancePath+"/annotations",schemaPath:"#/properties/annotations/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}else {const err38 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};
|
|
7
16
|
// Code points, counted as ajv's runtime ucs2length counts them: a surrogate pair is one, a lone surrogate is one.
|
|
8
17
|
function ucs2length(s) {
|
|
9
18
|
let n = 0;
|