@tangle-network/ui 11.11.2 → 11.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +9 -1
  3. package/dist/{chat-D-9Fm8A4.js → chat-CpzvkA6m.js} +7 -7
  4. package/dist/chat.d.ts +1 -1
  5. package/dist/chat.js +1 -1
  6. package/dist/{document-editor-pane-BcoABlhn.d.ts → document-editor-pane-DHM8DDhb.d.ts} +4 -1
  7. package/dist/{document-editor-pane-BxlPjaTP.js → document-editor-pane-LyanNypc.js} +6 -14
  8. package/dist/editor.d.ts +1 -1
  9. package/dist/editor.js +1 -1
  10. package/dist/{files-Bug33qCl.js → files-DgPc3vI2.js} +16 -7
  11. package/dist/files.d.ts +1 -1
  12. package/dist/files.js +1 -1
  13. package/dist/{index-DhYmSaLF.d.ts → index-CyGSLGVF.d.ts} +6 -17
  14. package/dist/{index-CUhfHT_V.d.ts → index-aoBxiKex.d.ts} +2 -2
  15. package/dist/index.d.ts +4 -3
  16. package/dist/index.js +6 -5
  17. package/dist/{openui-artifact-renderer-DrU1AdVk.js → openui-artifact-renderer-C3bmqfjX.js} +15 -20
  18. package/dist/openui-schema.d.ts +3 -0
  19. package/dist/openui-schema.js +2 -0
  20. package/dist/openui.d.ts +2 -1
  21. package/dist/openui.js +3 -2
  22. package/dist/{run-group-BACLbCFl.js → run-group-CxNskmHd.js} +1 -1
  23. package/dist/run.js +1 -1
  24. package/dist/schema-BFKgCGH-.d.ts +228 -0
  25. package/dist/schema-BpW9rSSG.js +9754 -0
  26. package/package.json +10 -3
  27. package/src/chat/user-message.test.tsx +9 -3
  28. package/src/chat/user-message.tsx +7 -5
  29. package/src/editor/document-editor-pane.tsx +5 -1
  30. package/src/files/file-artifact-pane.test.tsx +41 -0
  31. package/src/files/file-artifact-pane.tsx +3 -0
  32. package/src/files/file-preview.tsx +16 -3
  33. package/src/openui/index.ts +10 -0
  34. package/src/openui/openui-artifact-renderer.stories.tsx +36 -0
  35. package/src/openui/openui-artifact-renderer.tsx +19 -27
  36. package/src/openui/schema-compiled.ts +3 -0
  37. package/src/openui/schema-data.ts +95 -0
  38. package/src/openui/schema.test.tsx +74 -0
  39. package/src/openui/schema.ts +136 -0
@@ -0,0 +1,3 @@
1
+ // Generated from schema-data.ts. Run `pnpm gen:openui-schema` after schema changes.
2
+ // @ts-nocheck
3
+ "use strict";export const heading = validate10;const schema11 = {"$id":"https://tangle.tools/openui/heading","$ref":"#/$defs/heading","$defs":{"node":{"oneOf":[{"$ref":"#/$defs/heading"},{"$ref":"#/$defs/text"},{"$ref":"#/$defs/badge"},{"$ref":"#/$defs/stat"},{"$ref":"#/$defs/key_value"},{"$ref":"#/$defs/code"},{"$ref":"#/$defs/markdown"},{"$ref":"#/$defs/table"},{"$ref":"#/$defs/actions"},{"$ref":"#/$defs/separator"},{"$ref":"#/$defs/stack"},{"$ref":"#/$defs/grid"},{"$ref":"#/$defs/card"}]},"action":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","outline","ghost","destructive"]},"disabled":{"type":"boolean"}},"additionalProperties":false},"heading":{"type":"object","required":["type","text"],"properties":{"type":{"const":"heading"},"id":{"type":"string"},"text":{"type":"string"},"level":{"enum":[1,2,3,4]},"kicker":{"type":"string"},"meta":{"type":"string"}},"additionalProperties":false},"text":{"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"id":{"type":"string"},"text":{"type":"string"},"tone":{"enum":["default","muted","success","warning","error"]},"mono":{"type":"boolean"}},"additionalProperties":false},"badge":{"type":"object","required":["type","label"],"properties":{"type":{"const":"badge"},"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","success","warning","error","info","sandbox"]}},"additionalProperties":false},"stat":{"type":"object","required":["type","label","value"],"properties":{"type":{"const":"stat"},"id":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"tone":{"enum":["default","success","warning","error","info"]}},"additionalProperties":false},"key_value":{"type":"object","required":["type","items"],"properties":{"type":{"const":"key_value"},"id":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["label","value"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"tone":{"enum":["default","muted"]}},"additionalProperties":false}}},"additionalProperties":false},"code":{"type":"object","required":["type","code"],"properties":{"type":{"const":"code"},"id":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"showLineNumbers":{"type":"boolean"}},"additionalProperties":false},"markdown":{"type":"object","required":["type","content"],"properties":{"type":{"const":"markdown"},"id":{"type":"string"},"content":{"type":"string"}},"additionalProperties":false},"table":{"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"id":{"type":"string"},"columns":{"type":"array","minItems":1,"items":{"type":"object","required":["key","header"],"properties":{"key":{"type":"string"},"header":{"type":"string"},"align":{"enum":["left","right"]}},"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"caption":{"type":"string"}},"additionalProperties":false},"actions":{"type":"object","required":["type","actions"],"properties":{"type":{"const":"actions"},"id":{"type":"string"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}}},"additionalProperties":false},"separator":{"type":"object","required":["type"],"properties":{"type":{"const":"separator"},"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"stack":{"type":"object","required":["type","children"],"properties":{"type":{"const":"stack"},"id":{"type":"string"},"direction":{"enum":["row","column"]},"gap":{"enum":["sm","md","lg"]},"align":{"enum":["start","center","end","stretch"]},"wrap":{"type":"boolean"},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"grid":{"type":"object","required":["type","children"],"properties":{"type":{"const":"grid"},"id":{"type":"string"},"columns":{"enum":[1,2,3,4]},"gap":{"enum":["sm","md","lg"]},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"card":{"type":"object","required":["type"],"properties":{"type":{"const":"card"},"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"eyebrow":{"type":"string"},"badge":{"$ref":"#/$defs/badge"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false}}};const schema12 = {"type":"object","required":["type","text"],"properties":{"type":{"const":"heading"},"id":{"type":"string"},"text":{"type":"string"},"level":{"enum":[1,2,3,4]},"kicker":{"type":"string"},"meta":{"type":"string"}},"additionalProperties":false};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://tangle.tools/openui/heading" */;let vErrors = null;let errors = 0;const _errs0 = errors;if(errors === _errs0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.text === undefined) && (missing0 = "text"))){validate10.errors = [{instancePath,schemaPath:"#/$defs/heading/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs2 = errors;for(const key0 in data){if(!((((((key0 === "type") || (key0 === "id")) || (key0 === "text")) || (key0 === "level")) || (key0 === "kicker")) || (key0 === "meta"))){validate10.errors = [{instancePath,schemaPath:"#/$defs/heading/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs2 === errors){if(data.type !== undefined){const _errs3 = errors;if("heading" !== data.type){validate10.errors = [{instancePath:instancePath+"/type",schemaPath:"#/$defs/heading/properties/type/const",keyword:"const",params:{allowedValue: "heading"},message:"must be equal to constant"}];return false;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.id !== undefined){const _errs4 = errors;if(typeof data.id !== "string"){validate10.errors = [{instancePath:instancePath+"/id",schemaPath:"#/$defs/heading/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.text !== undefined){const _errs6 = errors;if(typeof data.text !== "string"){validate10.errors = [{instancePath:instancePath+"/text",schemaPath:"#/$defs/heading/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.level !== undefined){let data3 = data.level;const _errs8 = errors;if(!((((data3 === 1) || (data3 === 2)) || (data3 === 3)) || (data3 === 4))){validate10.errors = [{instancePath:instancePath+"/level",schemaPath:"#/$defs/heading/properties/level/enum",keyword:"enum",params:{allowedValues: schema12.properties.level.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data.kicker !== undefined){const _errs9 = errors;if(typeof data.kicker !== "string"){validate10.errors = [{instancePath:instancePath+"/kicker",schemaPath:"#/$defs/heading/properties/kicker/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data.meta !== undefined){const _errs11 = errors;if(typeof data.meta !== "string"){validate10.errors = [{instancePath:instancePath+"/meta",schemaPath:"#/$defs/heading/properties/meta/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs11 === errors;}else {var valid1 = true;}}}}}}}}}else {validate10.errors = [{instancePath,schemaPath:"#/$defs/heading/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate10.errors = vErrors;return errors === 0;}export const text = validate11;const schema13 = {"$id":"https://tangle.tools/openui/text","$ref":"#/$defs/text","$defs":{"node":{"oneOf":[{"$ref":"#/$defs/heading"},{"$ref":"#/$defs/text"},{"$ref":"#/$defs/badge"},{"$ref":"#/$defs/stat"},{"$ref":"#/$defs/key_value"},{"$ref":"#/$defs/code"},{"$ref":"#/$defs/markdown"},{"$ref":"#/$defs/table"},{"$ref":"#/$defs/actions"},{"$ref":"#/$defs/separator"},{"$ref":"#/$defs/stack"},{"$ref":"#/$defs/grid"},{"$ref":"#/$defs/card"}]},"action":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","outline","ghost","destructive"]},"disabled":{"type":"boolean"}},"additionalProperties":false},"heading":{"type":"object","required":["type","text"],"properties":{"type":{"const":"heading"},"id":{"type":"string"},"text":{"type":"string"},"level":{"enum":[1,2,3,4]},"kicker":{"type":"string"},"meta":{"type":"string"}},"additionalProperties":false},"text":{"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"id":{"type":"string"},"text":{"type":"string"},"tone":{"enum":["default","muted","success","warning","error"]},"mono":{"type":"boolean"}},"additionalProperties":false},"badge":{"type":"object","required":["type","label"],"properties":{"type":{"const":"badge"},"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","success","warning","error","info","sandbox"]}},"additionalProperties":false},"stat":{"type":"object","required":["type","label","value"],"properties":{"type":{"const":"stat"},"id":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"tone":{"enum":["default","success","warning","error","info"]}},"additionalProperties":false},"key_value":{"type":"object","required":["type","items"],"properties":{"type":{"const":"key_value"},"id":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["label","value"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"tone":{"enum":["default","muted"]}},"additionalProperties":false}}},"additionalProperties":false},"code":{"type":"object","required":["type","code"],"properties":{"type":{"const":"code"},"id":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"showLineNumbers":{"type":"boolean"}},"additionalProperties":false},"markdown":{"type":"object","required":["type","content"],"properties":{"type":{"const":"markdown"},"id":{"type":"string"},"content":{"type":"string"}},"additionalProperties":false},"table":{"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"id":{"type":"string"},"columns":{"type":"array","minItems":1,"items":{"type":"object","required":["key","header"],"properties":{"key":{"type":"string"},"header":{"type":"string"},"align":{"enum":["left","right"]}},"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"caption":{"type":"string"}},"additionalProperties":false},"actions":{"type":"object","required":["type","actions"],"properties":{"type":{"const":"actions"},"id":{"type":"string"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}}},"additionalProperties":false},"separator":{"type":"object","required":["type"],"properties":{"type":{"const":"separator"},"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"stack":{"type":"object","required":["type","children"],"properties":{"type":{"const":"stack"},"id":{"type":"string"},"direction":{"enum":["row","column"]},"gap":{"enum":["sm","md","lg"]},"align":{"enum":["start","center","end","stretch"]},"wrap":{"type":"boolean"},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"grid":{"type":"object","required":["type","children"],"properties":{"type":{"const":"grid"},"id":{"type":"string"},"columns":{"enum":[1,2,3,4]},"gap":{"enum":["sm","md","lg"]},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"card":{"type":"object","required":["type"],"properties":{"type":{"const":"card"},"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"eyebrow":{"type":"string"},"badge":{"$ref":"#/$defs/badge"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false}}};const schema14 = {"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"id":{"type":"string"},"text":{"type":"string"},"tone":{"enum":["default","muted","success","warning","error"]},"mono":{"type":"boolean"}},"additionalProperties":false};function validate11(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://tangle.tools/openui/text" */;let vErrors = null;let errors = 0;const _errs0 = errors;if(errors === _errs0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.text === undefined) && (missing0 = "text"))){validate11.errors = [{instancePath,schemaPath:"#/$defs/text/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs2 = errors;for(const key0 in data){if(!(((((key0 === "type") || (key0 === "id")) || (key0 === "text")) || (key0 === "tone")) || (key0 === "mono"))){validate11.errors = [{instancePath,schemaPath:"#/$defs/text/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs2 === errors){if(data.type !== undefined){const _errs3 = errors;if("text" !== data.type){validate11.errors = [{instancePath:instancePath+"/type",schemaPath:"#/$defs/text/properties/type/const",keyword:"const",params:{allowedValue: "text"},message:"must be equal to constant"}];return false;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.id !== undefined){const _errs4 = errors;if(typeof data.id !== "string"){validate11.errors = [{instancePath:instancePath+"/id",schemaPath:"#/$defs/text/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.text !== undefined){const _errs6 = errors;if(typeof data.text !== "string"){validate11.errors = [{instancePath:instancePath+"/text",schemaPath:"#/$defs/text/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.tone !== undefined){let data3 = data.tone;const _errs8 = errors;if(!(((((data3 === "default") || (data3 === "muted")) || (data3 === "success")) || (data3 === "warning")) || (data3 === "error"))){validate11.errors = [{instancePath:instancePath+"/tone",schemaPath:"#/$defs/text/properties/tone/enum",keyword:"enum",params:{allowedValues: schema14.properties.tone.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data.mono !== undefined){const _errs9 = errors;if(typeof data.mono !== "boolean"){validate11.errors = [{instancePath:instancePath+"/mono",schemaPath:"#/$defs/text/properties/mono/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}}}else {validate11.errors = [{instancePath,schemaPath:"#/$defs/text/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate11.errors = vErrors;return errors === 0;}export const badge = validate12;const schema15 = {"$id":"https://tangle.tools/openui/badge","$ref":"#/$defs/badge","$defs":{"node":{"oneOf":[{"$ref":"#/$defs/heading"},{"$ref":"#/$defs/text"},{"$ref":"#/$defs/badge"},{"$ref":"#/$defs/stat"},{"$ref":"#/$defs/key_value"},{"$ref":"#/$defs/code"},{"$ref":"#/$defs/markdown"},{"$ref":"#/$defs/table"},{"$ref":"#/$defs/actions"},{"$ref":"#/$defs/separator"},{"$ref":"#/$defs/stack"},{"$ref":"#/$defs/grid"},{"$ref":"#/$defs/card"}]},"action":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","outline","ghost","destructive"]},"disabled":{"type":"boolean"}},"additionalProperties":false},"heading":{"type":"object","required":["type","text"],"properties":{"type":{"const":"heading"},"id":{"type":"string"},"text":{"type":"string"},"level":{"enum":[1,2,3,4]},"kicker":{"type":"string"},"meta":{"type":"string"}},"additionalProperties":false},"text":{"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"id":{"type":"string"},"text":{"type":"string"},"tone":{"enum":["default","muted","success","warning","error"]},"mono":{"type":"boolean"}},"additionalProperties":false},"badge":{"type":"object","required":["type","label"],"properties":{"type":{"const":"badge"},"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","success","warning","error","info","sandbox"]}},"additionalProperties":false},"stat":{"type":"object","required":["type","label","value"],"properties":{"type":{"const":"stat"},"id":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"tone":{"enum":["default","success","warning","error","info"]}},"additionalProperties":false},"key_value":{"type":"object","required":["type","items"],"properties":{"type":{"const":"key_value"},"id":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["label","value"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"tone":{"enum":["default","muted"]}},"additionalProperties":false}}},"additionalProperties":false},"code":{"type":"object","required":["type","code"],"properties":{"type":{"const":"code"},"id":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"showLineNumbers":{"type":"boolean"}},"additionalProperties":false},"markdown":{"type":"object","required":["type","content"],"properties":{"type":{"const":"markdown"},"id":{"type":"string"},"content":{"type":"string"}},"additionalProperties":false},"table":{"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"id":{"type":"string"},"columns":{"type":"array","minItems":1,"items":{"type":"object","required":["key","header"],"properties":{"key":{"type":"string"},"header":{"type":"string"},"align":{"enum":["left","right"]}},"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"caption":{"type":"string"}},"additionalProperties":false},"actions":{"type":"object","required":["type","actions"],"properties":{"type":{"const":"actions"},"id":{"type":"string"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}}},"additionalProperties":false},"separator":{"type":"object","required":["type"],"properties":{"type":{"const":"separator"},"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"stack":{"type":"object","required":["type","children"],"properties":{"type":{"const":"stack"},"id":{"type":"string"},"direction":{"enum":["row","column"]},"gap":{"enum":["sm","md","lg"]},"align":{"enum":["start","center","end","stretch"]},"wrap":{"type":"boolean"},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"grid":{"type":"object","required":["type","children"],"properties":{"type":{"const":"grid"},"id":{"type":"string"},"columns":{"enum":[1,2,3,4]},"gap":{"enum":["sm","md","lg"]},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"card":{"type":"object","required":["type"],"properties":{"type":{"const":"card"},"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"eyebrow":{"type":"string"},"badge":{"$ref":"#/$defs/badge"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false}}};const schema16 = {"type":"object","required":["type","label"],"properties":{"type":{"const":"badge"},"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","success","warning","error","info","sandbox"]}},"additionalProperties":false};function validate12(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://tangle.tools/openui/badge" */;let vErrors = null;let errors = 0;const _errs0 = errors;if(errors === _errs0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.label === undefined) && (missing0 = "label"))){validate12.errors = [{instancePath,schemaPath:"#/$defs/badge/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs2 = errors;for(const key0 in data){if(!((((key0 === "type") || (key0 === "id")) || (key0 === "label")) || (key0 === "tone"))){validate12.errors = [{instancePath,schemaPath:"#/$defs/badge/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs2 === errors){if(data.type !== undefined){const _errs3 = errors;if("badge" !== data.type){validate12.errors = [{instancePath:instancePath+"/type",schemaPath:"#/$defs/badge/properties/type/const",keyword:"const",params:{allowedValue: "badge"},message:"must be equal to constant"}];return false;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.id !== undefined){const _errs4 = errors;if(typeof data.id !== "string"){validate12.errors = [{instancePath:instancePath+"/id",schemaPath:"#/$defs/badge/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.label !== undefined){const _errs6 = errors;if(typeof data.label !== "string"){validate12.errors = [{instancePath:instancePath+"/label",schemaPath:"#/$defs/badge/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.tone !== undefined){let data3 = data.tone;const _errs8 = errors;if(!(((((((data3 === "default") || (data3 === "secondary")) || (data3 === "success")) || (data3 === "warning")) || (data3 === "error")) || (data3 === "info")) || (data3 === "sandbox"))){validate12.errors = [{instancePath:instancePath+"/tone",schemaPath:"#/$defs/badge/properties/tone/enum",keyword:"enum",params:{allowedValues: schema16.properties.tone.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}}}}}}}else {validate12.errors = [{instancePath,schemaPath:"#/$defs/badge/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate12.errors = vErrors;return errors === 0;}export const stat = validate13;const schema17 = {"$id":"https://tangle.tools/openui/stat","$ref":"#/$defs/stat","$defs":{"node":{"oneOf":[{"$ref":"#/$defs/heading"},{"$ref":"#/$defs/text"},{"$ref":"#/$defs/badge"},{"$ref":"#/$defs/stat"},{"$ref":"#/$defs/key_value"},{"$ref":"#/$defs/code"},{"$ref":"#/$defs/markdown"},{"$ref":"#/$defs/table"},{"$ref":"#/$defs/actions"},{"$ref":"#/$defs/separator"},{"$ref":"#/$defs/stack"},{"$ref":"#/$defs/grid"},{"$ref":"#/$defs/card"}]},"action":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","outline","ghost","destructive"]},"disabled":{"type":"boolean"}},"additionalProperties":false},"heading":{"type":"object","required":["type","text"],"properties":{"type":{"const":"heading"},"id":{"type":"string"},"text":{"type":"string"},"level":{"enum":[1,2,3,4]},"kicker":{"type":"string"},"meta":{"type":"string"}},"additionalProperties":false},"text":{"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"id":{"type":"string"},"text":{"type":"string"},"tone":{"enum":["default","muted","success","warning","error"]},"mono":{"type":"boolean"}},"additionalProperties":false},"badge":{"type":"object","required":["type","label"],"properties":{"type":{"const":"badge"},"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","success","warning","error","info","sandbox"]}},"additionalProperties":false},"stat":{"type":"object","required":["type","label","value"],"properties":{"type":{"const":"stat"},"id":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"tone":{"enum":["default","success","warning","error","info"]}},"additionalProperties":false},"key_value":{"type":"object","required":["type","items"],"properties":{"type":{"const":"key_value"},"id":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["label","value"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"tone":{"enum":["default","muted"]}},"additionalProperties":false}}},"additionalProperties":false},"code":{"type":"object","required":["type","code"],"properties":{"type":{"const":"code"},"id":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"showLineNumbers":{"type":"boolean"}},"additionalProperties":false},"markdown":{"type":"object","required":["type","content"],"properties":{"type":{"const":"markdown"},"id":{"type":"string"},"content":{"type":"string"}},"additionalProperties":false},"table":{"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"id":{"type":"string"},"columns":{"type":"array","minItems":1,"items":{"type":"object","required":["key","header"],"properties":{"key":{"type":"string"},"header":{"type":"string"},"align":{"enum":["left","right"]}},"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"caption":{"type":"string"}},"additionalProperties":false},"actions":{"type":"object","required":["type","actions"],"properties":{"type":{"const":"actions"},"id":{"type":"string"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}}},"additionalProperties":false},"separator":{"type":"object","required":["type"],"properties":{"type":{"const":"separator"},"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"stack":{"type":"object","required":["type","children"],"properties":{"type":{"const":"stack"},"id":{"type":"string"},"direction":{"enum":["row","column"]},"gap":{"enum":["sm","md","lg"]},"align":{"enum":["start","center","end","stretch"]},"wrap":{"type":"boolean"},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"grid":{"type":"object","required":["type","children"],"properties":{"type":{"const":"grid"},"id":{"type":"string"},"columns":{"enum":[1,2,3,4]},"gap":{"enum":["sm","md","lg"]},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"card":{"type":"object","required":["type"],"properties":{"type":{"const":"card"},"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"eyebrow":{"type":"string"},"badge":{"$ref":"#/$defs/badge"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false}}};const schema18 = {"type":"object","required":["type","label","value"],"properties":{"type":{"const":"stat"},"id":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"tone":{"enum":["default","success","warning","error","info"]}},"additionalProperties":false};function validate13(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://tangle.tools/openui/stat" */;let vErrors = null;let errors = 0;const _errs0 = errors;if(errors === _errs0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.label === undefined) && (missing0 = "label"))) || ((data.value === undefined) && (missing0 = "value"))){validate13.errors = [{instancePath,schemaPath:"#/$defs/stat/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs2 = errors;for(const key0 in data){if(!((((((key0 === "type") || (key0 === "id")) || (key0 === "label")) || (key0 === "value")) || (key0 === "change")) || (key0 === "tone"))){validate13.errors = [{instancePath,schemaPath:"#/$defs/stat/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs2 === errors){if(data.type !== undefined){const _errs3 = errors;if("stat" !== data.type){validate13.errors = [{instancePath:instancePath+"/type",schemaPath:"#/$defs/stat/properties/type/const",keyword:"const",params:{allowedValue: "stat"},message:"must be equal to constant"}];return false;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.id !== undefined){const _errs4 = errors;if(typeof data.id !== "string"){validate13.errors = [{instancePath:instancePath+"/id",schemaPath:"#/$defs/stat/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.label !== undefined){const _errs6 = errors;if(typeof data.label !== "string"){validate13.errors = [{instancePath:instancePath+"/label",schemaPath:"#/$defs/stat/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.value !== undefined){const _errs8 = errors;if(typeof data.value !== "string"){validate13.errors = [{instancePath:instancePath+"/value",schemaPath:"#/$defs/stat/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data.change !== undefined){const _errs10 = errors;if(typeof data.change !== "string"){validate13.errors = [{instancePath:instancePath+"/change",schemaPath:"#/$defs/stat/properties/change/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data.tone !== undefined){let data5 = data.tone;const _errs12 = errors;if(!(((((data5 === "default") || (data5 === "success")) || (data5 === "warning")) || (data5 === "error")) || (data5 === "info"))){validate13.errors = [{instancePath:instancePath+"/tone",schemaPath:"#/$defs/stat/properties/tone/enum",keyword:"enum",params:{allowedValues: schema18.properties.tone.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}}}}}}}}}else {validate13.errors = [{instancePath,schemaPath:"#/$defs/stat/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate13.errors = vErrors;return errors === 0;}export const key_value = validate14;const schema19 = {"$id":"https://tangle.tools/openui/key_value","$ref":"#/$defs/key_value","$defs":{"node":{"oneOf":[{"$ref":"#/$defs/heading"},{"$ref":"#/$defs/text"},{"$ref":"#/$defs/badge"},{"$ref":"#/$defs/stat"},{"$ref":"#/$defs/key_value"},{"$ref":"#/$defs/code"},{"$ref":"#/$defs/markdown"},{"$ref":"#/$defs/table"},{"$ref":"#/$defs/actions"},{"$ref":"#/$defs/separator"},{"$ref":"#/$defs/stack"},{"$ref":"#/$defs/grid"},{"$ref":"#/$defs/card"}]},"action":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","outline","ghost","destructive"]},"disabled":{"type":"boolean"}},"additionalProperties":false},"heading":{"type":"object","required":["type","text"],"properties":{"type":{"const":"heading"},"id":{"type":"string"},"text":{"type":"string"},"level":{"enum":[1,2,3,4]},"kicker":{"type":"string"},"meta":{"type":"string"}},"additionalProperties":false},"text":{"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"id":{"type":"string"},"text":{"type":"string"},"tone":{"enum":["default","muted","success","warning","error"]},"mono":{"type":"boolean"}},"additionalProperties":false},"badge":{"type":"object","required":["type","label"],"properties":{"type":{"const":"badge"},"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","success","warning","error","info","sandbox"]}},"additionalProperties":false},"stat":{"type":"object","required":["type","label","value"],"properties":{"type":{"const":"stat"},"id":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"tone":{"enum":["default","success","warning","error","info"]}},"additionalProperties":false},"key_value":{"type":"object","required":["type","items"],"properties":{"type":{"const":"key_value"},"id":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["label","value"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"tone":{"enum":["default","muted"]}},"additionalProperties":false}}},"additionalProperties":false},"code":{"type":"object","required":["type","code"],"properties":{"type":{"const":"code"},"id":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"showLineNumbers":{"type":"boolean"}},"additionalProperties":false},"markdown":{"type":"object","required":["type","content"],"properties":{"type":{"const":"markdown"},"id":{"type":"string"},"content":{"type":"string"}},"additionalProperties":false},"table":{"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"id":{"type":"string"},"columns":{"type":"array","minItems":1,"items":{"type":"object","required":["key","header"],"properties":{"key":{"type":"string"},"header":{"type":"string"},"align":{"enum":["left","right"]}},"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"caption":{"type":"string"}},"additionalProperties":false},"actions":{"type":"object","required":["type","actions"],"properties":{"type":{"const":"actions"},"id":{"type":"string"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}}},"additionalProperties":false},"separator":{"type":"object","required":["type"],"properties":{"type":{"const":"separator"},"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"stack":{"type":"object","required":["type","children"],"properties":{"type":{"const":"stack"},"id":{"type":"string"},"direction":{"enum":["row","column"]},"gap":{"enum":["sm","md","lg"]},"align":{"enum":["start","center","end","stretch"]},"wrap":{"type":"boolean"},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"grid":{"type":"object","required":["type","children"],"properties":{"type":{"const":"grid"},"id":{"type":"string"},"columns":{"enum":[1,2,3,4]},"gap":{"enum":["sm","md","lg"]},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"card":{"type":"object","required":["type"],"properties":{"type":{"const":"card"},"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"eyebrow":{"type":"string"},"badge":{"$ref":"#/$defs/badge"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false}}};const schema20 = {"type":"object","required":["type","items"],"properties":{"type":{"const":"key_value"},"id":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["label","value"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"tone":{"enum":["default","muted"]}},"additionalProperties":false}}},"additionalProperties":false};function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://tangle.tools/openui/key_value" */;let vErrors = null;let errors = 0;const _errs0 = errors;if(errors === _errs0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.items === undefined) && (missing0 = "items"))){validate14.errors = [{instancePath,schemaPath:"#/$defs/key_value/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs2 = errors;for(const key0 in data){if(!(((key0 === "type") || (key0 === "id")) || (key0 === "items"))){validate14.errors = [{instancePath,schemaPath:"#/$defs/key_value/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs2 === errors){if(data.type !== undefined){const _errs3 = errors;if("key_value" !== data.type){validate14.errors = [{instancePath:instancePath+"/type",schemaPath:"#/$defs/key_value/properties/type/const",keyword:"const",params:{allowedValue: "key_value"},message:"must be equal to constant"}];return false;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.id !== undefined){const _errs4 = errors;if(typeof data.id !== "string"){validate14.errors = [{instancePath:instancePath+"/id",schemaPath:"#/$defs/key_value/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.items !== undefined){let data2 = data.items;const _errs6 = errors;if(errors === _errs6){if(Array.isArray(data2)){if(data2.length < 1){validate14.errors = [{instancePath:instancePath+"/items",schemaPath:"#/$defs/key_value/properties/items/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs8 = errors;if(errors === _errs8){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.label === undefined) && (missing1 = "label")) || ((data3.value === undefined) && (missing1 = "value"))){validate14.errors = [{instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/key_value/properties/items/items/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs10 = errors;for(const key1 in data3){if(!((((key1 === "id") || (key1 === "label")) || (key1 === "value")) || (key1 === "tone"))){validate14.errors = [{instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/key_value/properties/items/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs10 === errors){if(data3.id !== undefined){const _errs11 = errors;if(typeof data3.id !== "string"){validate14.errors = [{instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"#/$defs/key_value/properties/items/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs11 === errors;}else {var valid3 = true;}if(valid3){if(data3.label !== undefined){const _errs13 = errors;if(typeof data3.label !== "string"){validate14.errors = [{instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"#/$defs/key_value/properties/items/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs13 === errors;}else {var valid3 = true;}if(valid3){if(data3.value !== undefined){let data6 = data3.value;const _errs15 = errors;if((((typeof data6 !== "string") && (!((typeof data6 == "number") && (isFinite(data6))))) && (typeof data6 !== "boolean")) && (data6 !== null)){validate14.errors = [{instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"#/$defs/key_value/properties/items/items/properties/value/type",keyword:"type",params:{type: schema20.properties.items.items.properties.value.type},message:"must be string,number,boolean,null"}];return false;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data3.tone !== undefined){let data7 = data3.tone;const _errs17 = errors;if(!((data7 === "default") || (data7 === "muted"))){validate14.errors = [{instancePath:instancePath+"/items/" + i0+"/tone",schemaPath:"#/$defs/key_value/properties/items/items/properties/tone/enum",keyword:"enum",params:{allowedValues: schema20.properties.items.items.properties.tone.enum},message:"must be equal to one of the allowed values"}];return false;}var valid3 = _errs17 === errors;}else {var valid3 = true;}}}}}}}else {validate14.errors = [{instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/key_value/properties/items/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid2 = _errs8 === errors;if(!valid2){break;}}}}else {validate14.errors = [{instancePath:instancePath+"/items",schemaPath:"#/$defs/key_value/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs6 === errors;}else {var valid1 = true;}}}}}}else {validate14.errors = [{instancePath,schemaPath:"#/$defs/key_value/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate14.errors = vErrors;return errors === 0;}export const code = validate15;const schema21 = {"$id":"https://tangle.tools/openui/code","$ref":"#/$defs/code","$defs":{"node":{"oneOf":[{"$ref":"#/$defs/heading"},{"$ref":"#/$defs/text"},{"$ref":"#/$defs/badge"},{"$ref":"#/$defs/stat"},{"$ref":"#/$defs/key_value"},{"$ref":"#/$defs/code"},{"$ref":"#/$defs/markdown"},{"$ref":"#/$defs/table"},{"$ref":"#/$defs/actions"},{"$ref":"#/$defs/separator"},{"$ref":"#/$defs/stack"},{"$ref":"#/$defs/grid"},{"$ref":"#/$defs/card"}]},"action":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","outline","ghost","destructive"]},"disabled":{"type":"boolean"}},"additionalProperties":false},"heading":{"type":"object","required":["type","text"],"properties":{"type":{"const":"heading"},"id":{"type":"string"},"text":{"type":"string"},"level":{"enum":[1,2,3,4]},"kicker":{"type":"string"},"meta":{"type":"string"}},"additionalProperties":false},"text":{"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"id":{"type":"string"},"text":{"type":"string"},"tone":{"enum":["default","muted","success","warning","error"]},"mono":{"type":"boolean"}},"additionalProperties":false},"badge":{"type":"object","required":["type","label"],"properties":{"type":{"const":"badge"},"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","success","warning","error","info","sandbox"]}},"additionalProperties":false},"stat":{"type":"object","required":["type","label","value"],"properties":{"type":{"const":"stat"},"id":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"tone":{"enum":["default","success","warning","error","info"]}},"additionalProperties":false},"key_value":{"type":"object","required":["type","items"],"properties":{"type":{"const":"key_value"},"id":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["label","value"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"tone":{"enum":["default","muted"]}},"additionalProperties":false}}},"additionalProperties":false},"code":{"type":"object","required":["type","code"],"properties":{"type":{"const":"code"},"id":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"showLineNumbers":{"type":"boolean"}},"additionalProperties":false},"markdown":{"type":"object","required":["type","content"],"properties":{"type":{"const":"markdown"},"id":{"type":"string"},"content":{"type":"string"}},"additionalProperties":false},"table":{"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"id":{"type":"string"},"columns":{"type":"array","minItems":1,"items":{"type":"object","required":["key","header"],"properties":{"key":{"type":"string"},"header":{"type":"string"},"align":{"enum":["left","right"]}},"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"caption":{"type":"string"}},"additionalProperties":false},"actions":{"type":"object","required":["type","actions"],"properties":{"type":{"const":"actions"},"id":{"type":"string"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}}},"additionalProperties":false},"separator":{"type":"object","required":["type"],"properties":{"type":{"const":"separator"},"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"stack":{"type":"object","required":["type","children"],"properties":{"type":{"const":"stack"},"id":{"type":"string"},"direction":{"enum":["row","column"]},"gap":{"enum":["sm","md","lg"]},"align":{"enum":["start","center","end","stretch"]},"wrap":{"type":"boolean"},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"grid":{"type":"object","required":["type","children"],"properties":{"type":{"const":"grid"},"id":{"type":"string"},"columns":{"enum":[1,2,3,4]},"gap":{"enum":["sm","md","lg"]},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"card":{"type":"object","required":["type"],"properties":{"type":{"const":"card"},"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"eyebrow":{"type":"string"},"badge":{"$ref":"#/$defs/badge"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false}}};const schema22 = {"type":"object","required":["type","code"],"properties":{"type":{"const":"code"},"id":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"showLineNumbers":{"type":"boolean"}},"additionalProperties":false};function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://tangle.tools/openui/code" */;let vErrors = null;let errors = 0;const _errs0 = errors;if(errors === _errs0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.code === undefined) && (missing0 = "code"))){validate15.errors = [{instancePath,schemaPath:"#/$defs/code/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs2 = errors;for(const key0 in data){if(!((((((key0 === "type") || (key0 === "id")) || (key0 === "code")) || (key0 === "language")) || (key0 === "title")) || (key0 === "showLineNumbers"))){validate15.errors = [{instancePath,schemaPath:"#/$defs/code/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs2 === errors){if(data.type !== undefined){const _errs3 = errors;if("code" !== data.type){validate15.errors = [{instancePath:instancePath+"/type",schemaPath:"#/$defs/code/properties/type/const",keyword:"const",params:{allowedValue: "code"},message:"must be equal to constant"}];return false;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.id !== undefined){const _errs4 = errors;if(typeof data.id !== "string"){validate15.errors = [{instancePath:instancePath+"/id",schemaPath:"#/$defs/code/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.code !== undefined){const _errs6 = errors;if(typeof data.code !== "string"){validate15.errors = [{instancePath:instancePath+"/code",schemaPath:"#/$defs/code/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.language !== undefined){const _errs8 = errors;if(typeof data.language !== "string"){validate15.errors = [{instancePath:instancePath+"/language",schemaPath:"#/$defs/code/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data.title !== undefined){const _errs10 = errors;if(typeof data.title !== "string"){validate15.errors = [{instancePath:instancePath+"/title",schemaPath:"#/$defs/code/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data.showLineNumbers !== undefined){const _errs12 = errors;if(typeof data.showLineNumbers !== "boolean"){validate15.errors = [{instancePath:instancePath+"/showLineNumbers",schemaPath:"#/$defs/code/properties/showLineNumbers/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}}}}}}}}}else {validate15.errors = [{instancePath,schemaPath:"#/$defs/code/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate15.errors = vErrors;return errors === 0;}export const markdown = validate16;const schema23 = {"$id":"https://tangle.tools/openui/markdown","$ref":"#/$defs/markdown","$defs":{"node":{"oneOf":[{"$ref":"#/$defs/heading"},{"$ref":"#/$defs/text"},{"$ref":"#/$defs/badge"},{"$ref":"#/$defs/stat"},{"$ref":"#/$defs/key_value"},{"$ref":"#/$defs/code"},{"$ref":"#/$defs/markdown"},{"$ref":"#/$defs/table"},{"$ref":"#/$defs/actions"},{"$ref":"#/$defs/separator"},{"$ref":"#/$defs/stack"},{"$ref":"#/$defs/grid"},{"$ref":"#/$defs/card"}]},"action":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","outline","ghost","destructive"]},"disabled":{"type":"boolean"}},"additionalProperties":false},"heading":{"type":"object","required":["type","text"],"properties":{"type":{"const":"heading"},"id":{"type":"string"},"text":{"type":"string"},"level":{"enum":[1,2,3,4]},"kicker":{"type":"string"},"meta":{"type":"string"}},"additionalProperties":false},"text":{"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"id":{"type":"string"},"text":{"type":"string"},"tone":{"enum":["default","muted","success","warning","error"]},"mono":{"type":"boolean"}},"additionalProperties":false},"badge":{"type":"object","required":["type","label"],"properties":{"type":{"const":"badge"},"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","success","warning","error","info","sandbox"]}},"additionalProperties":false},"stat":{"type":"object","required":["type","label","value"],"properties":{"type":{"const":"stat"},"id":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"tone":{"enum":["default","success","warning","error","info"]}},"additionalProperties":false},"key_value":{"type":"object","required":["type","items"],"properties":{"type":{"const":"key_value"},"id":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["label","value"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"tone":{"enum":["default","muted"]}},"additionalProperties":false}}},"additionalProperties":false},"code":{"type":"object","required":["type","code"],"properties":{"type":{"const":"code"},"id":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"showLineNumbers":{"type":"boolean"}},"additionalProperties":false},"markdown":{"type":"object","required":["type","content"],"properties":{"type":{"const":"markdown"},"id":{"type":"string"},"content":{"type":"string"}},"additionalProperties":false},"table":{"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"id":{"type":"string"},"columns":{"type":"array","minItems":1,"items":{"type":"object","required":["key","header"],"properties":{"key":{"type":"string"},"header":{"type":"string"},"align":{"enum":["left","right"]}},"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"caption":{"type":"string"}},"additionalProperties":false},"actions":{"type":"object","required":["type","actions"],"properties":{"type":{"const":"actions"},"id":{"type":"string"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}}},"additionalProperties":false},"separator":{"type":"object","required":["type"],"properties":{"type":{"const":"separator"},"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"stack":{"type":"object","required":["type","children"],"properties":{"type":{"const":"stack"},"id":{"type":"string"},"direction":{"enum":["row","column"]},"gap":{"enum":["sm","md","lg"]},"align":{"enum":["start","center","end","stretch"]},"wrap":{"type":"boolean"},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"grid":{"type":"object","required":["type","children"],"properties":{"type":{"const":"grid"},"id":{"type":"string"},"columns":{"enum":[1,2,3,4]},"gap":{"enum":["sm","md","lg"]},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"card":{"type":"object","required":["type"],"properties":{"type":{"const":"card"},"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"eyebrow":{"type":"string"},"badge":{"$ref":"#/$defs/badge"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false}}};const schema24 = {"type":"object","required":["type","content"],"properties":{"type":{"const":"markdown"},"id":{"type":"string"},"content":{"type":"string"}},"additionalProperties":false};function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://tangle.tools/openui/markdown" */;let vErrors = null;let errors = 0;const _errs0 = errors;if(errors === _errs0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.content === undefined) && (missing0 = "content"))){validate16.errors = [{instancePath,schemaPath:"#/$defs/markdown/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs2 = errors;for(const key0 in data){if(!(((key0 === "type") || (key0 === "id")) || (key0 === "content"))){validate16.errors = [{instancePath,schemaPath:"#/$defs/markdown/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs2 === errors){if(data.type !== undefined){const _errs3 = errors;if("markdown" !== data.type){validate16.errors = [{instancePath:instancePath+"/type",schemaPath:"#/$defs/markdown/properties/type/const",keyword:"const",params:{allowedValue: "markdown"},message:"must be equal to constant"}];return false;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.id !== undefined){const _errs4 = errors;if(typeof data.id !== "string"){validate16.errors = [{instancePath:instancePath+"/id",schemaPath:"#/$defs/markdown/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.content !== undefined){const _errs6 = errors;if(typeof data.content !== "string"){validate16.errors = [{instancePath:instancePath+"/content",schemaPath:"#/$defs/markdown/properties/content/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}}}}}}else {validate16.errors = [{instancePath,schemaPath:"#/$defs/markdown/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate16.errors = vErrors;return errors === 0;}export const table = validate17;const schema25 = {"$id":"https://tangle.tools/openui/table","$ref":"#/$defs/table","$defs":{"node":{"oneOf":[{"$ref":"#/$defs/heading"},{"$ref":"#/$defs/text"},{"$ref":"#/$defs/badge"},{"$ref":"#/$defs/stat"},{"$ref":"#/$defs/key_value"},{"$ref":"#/$defs/code"},{"$ref":"#/$defs/markdown"},{"$ref":"#/$defs/table"},{"$ref":"#/$defs/actions"},{"$ref":"#/$defs/separator"},{"$ref":"#/$defs/stack"},{"$ref":"#/$defs/grid"},{"$ref":"#/$defs/card"}]},"action":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","outline","ghost","destructive"]},"disabled":{"type":"boolean"}},"additionalProperties":false},"heading":{"type":"object","required":["type","text"],"properties":{"type":{"const":"heading"},"id":{"type":"string"},"text":{"type":"string"},"level":{"enum":[1,2,3,4]},"kicker":{"type":"string"},"meta":{"type":"string"}},"additionalProperties":false},"text":{"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"id":{"type":"string"},"text":{"type":"string"},"tone":{"enum":["default","muted","success","warning","error"]},"mono":{"type":"boolean"}},"additionalProperties":false},"badge":{"type":"object","required":["type","label"],"properties":{"type":{"const":"badge"},"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","success","warning","error","info","sandbox"]}},"additionalProperties":false},"stat":{"type":"object","required":["type","label","value"],"properties":{"type":{"const":"stat"},"id":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"tone":{"enum":["default","success","warning","error","info"]}},"additionalProperties":false},"key_value":{"type":"object","required":["type","items"],"properties":{"type":{"const":"key_value"},"id":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["label","value"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"tone":{"enum":["default","muted"]}},"additionalProperties":false}}},"additionalProperties":false},"code":{"type":"object","required":["type","code"],"properties":{"type":{"const":"code"},"id":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"showLineNumbers":{"type":"boolean"}},"additionalProperties":false},"markdown":{"type":"object","required":["type","content"],"properties":{"type":{"const":"markdown"},"id":{"type":"string"},"content":{"type":"string"}},"additionalProperties":false},"table":{"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"id":{"type":"string"},"columns":{"type":"array","minItems":1,"items":{"type":"object","required":["key","header"],"properties":{"key":{"type":"string"},"header":{"type":"string"},"align":{"enum":["left","right"]}},"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"caption":{"type":"string"}},"additionalProperties":false},"actions":{"type":"object","required":["type","actions"],"properties":{"type":{"const":"actions"},"id":{"type":"string"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}}},"additionalProperties":false},"separator":{"type":"object","required":["type"],"properties":{"type":{"const":"separator"},"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"stack":{"type":"object","required":["type","children"],"properties":{"type":{"const":"stack"},"id":{"type":"string"},"direction":{"enum":["row","column"]},"gap":{"enum":["sm","md","lg"]},"align":{"enum":["start","center","end","stretch"]},"wrap":{"type":"boolean"},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"grid":{"type":"object","required":["type","children"],"properties":{"type":{"const":"grid"},"id":{"type":"string"},"columns":{"enum":[1,2,3,4]},"gap":{"enum":["sm","md","lg"]},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"card":{"type":"object","required":["type"],"properties":{"type":{"const":"card"},"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"eyebrow":{"type":"string"},"badge":{"$ref":"#/$defs/badge"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false}}};const schema26 = {"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"id":{"type":"string"},"columns":{"type":"array","minItems":1,"items":{"type":"object","required":["key","header"],"properties":{"key":{"type":"string"},"header":{"type":"string"},"align":{"enum":["left","right"]}},"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"caption":{"type":"string"}},"additionalProperties":false};function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://tangle.tools/openui/table" */;let vErrors = null;let errors = 0;const _errs0 = errors;if(errors === _errs0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) && (missing0 = "type")) || ((data.columns === undefined) && (missing0 = "columns"))) || ((data.rows === undefined) && (missing0 = "rows"))){validate17.errors = [{instancePath,schemaPath:"#/$defs/table/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs2 = errors;for(const key0 in data){if(!(((((key0 === "type") || (key0 === "id")) || (key0 === "columns")) || (key0 === "rows")) || (key0 === "caption"))){validate17.errors = [{instancePath,schemaPath:"#/$defs/table/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs2 === errors){if(data.type !== undefined){const _errs3 = errors;if("table" !== data.type){validate17.errors = [{instancePath:instancePath+"/type",schemaPath:"#/$defs/table/properties/type/const",keyword:"const",params:{allowedValue: "table"},message:"must be equal to constant"}];return false;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.id !== undefined){const _errs4 = errors;if(typeof data.id !== "string"){validate17.errors = [{instancePath:instancePath+"/id",schemaPath:"#/$defs/table/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.columns !== undefined){let data2 = data.columns;const _errs6 = errors;if(errors === _errs6){if(Array.isArray(data2)){if(data2.length < 1){validate17.errors = [{instancePath:instancePath+"/columns",schemaPath:"#/$defs/table/properties/columns/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs8 = errors;if(errors === _errs8){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.key === undefined) && (missing1 = "key")) || ((data3.header === undefined) && (missing1 = "header"))){validate17.errors = [{instancePath:instancePath+"/columns/" + i0,schemaPath:"#/$defs/table/properties/columns/items/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs10 = errors;for(const key1 in data3){if(!(((key1 === "key") || (key1 === "header")) || (key1 === "align"))){validate17.errors = [{instancePath:instancePath+"/columns/" + i0,schemaPath:"#/$defs/table/properties/columns/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs10 === errors){if(data3.key !== undefined){const _errs11 = errors;if(typeof data3.key !== "string"){validate17.errors = [{instancePath:instancePath+"/columns/" + i0+"/key",schemaPath:"#/$defs/table/properties/columns/items/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs11 === errors;}else {var valid3 = true;}if(valid3){if(data3.header !== undefined){const _errs13 = errors;if(typeof data3.header !== "string"){validate17.errors = [{instancePath:instancePath+"/columns/" + i0+"/header",schemaPath:"#/$defs/table/properties/columns/items/properties/header/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs13 === errors;}else {var valid3 = true;}if(valid3){if(data3.align !== undefined){let data6 = data3.align;const _errs15 = errors;if(!((data6 === "left") || (data6 === "right"))){validate17.errors = [{instancePath:instancePath+"/columns/" + i0+"/align",schemaPath:"#/$defs/table/properties/columns/items/properties/align/enum",keyword:"enum",params:{allowedValues: schema26.properties.columns.items.properties.align.enum},message:"must be equal to one of the allowed values"}];return false;}var valid3 = _errs15 === errors;}else {var valid3 = true;}}}}}}else {validate17.errors = [{instancePath:instancePath+"/columns/" + i0,schemaPath:"#/$defs/table/properties/columns/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid2 = _errs8 === errors;if(!valid2){break;}}}}else {validate17.errors = [{instancePath:instancePath+"/columns",schemaPath:"#/$defs/table/properties/columns/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.rows !== undefined){let data7 = data.rows;const _errs16 = errors;if(errors === _errs16){if(Array.isArray(data7)){var valid4 = true;const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];const _errs18 = errors;if(errors === _errs18){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){for(const key2 in data8){let data9 = data8[key2];const _errs21 = errors;if((((typeof data9 !== "string") && (!((typeof data9 == "number") && (isFinite(data9))))) && (typeof data9 !== "boolean")) && (data9 !== null)){validate17.errors = [{instancePath:instancePath+"/rows/" + i1+"/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/$defs/table/properties/rows/items/additionalProperties/type",keyword:"type",params:{type: schema26.properties.rows.items.additionalProperties.type},message:"must be string,number,boolean,null"}];return false;}var valid5 = _errs21 === errors;if(!valid5){break;}}}else {validate17.errors = [{instancePath:instancePath+"/rows/" + i1,schemaPath:"#/$defs/table/properties/rows/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid4 = _errs18 === errors;if(!valid4){break;}}}else {validate17.errors = [{instancePath:instancePath+"/rows",schemaPath:"#/$defs/table/properties/rows/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs16 === errors;}else {var valid1 = true;}if(valid1){if(data.caption !== undefined){const _errs23 = errors;if(typeof data.caption !== "string"){validate17.errors = [{instancePath:instancePath+"/caption",schemaPath:"#/$defs/table/properties/caption/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs23 === errors;}else {var valid1 = true;}}}}}}}}else {validate17.errors = [{instancePath,schemaPath:"#/$defs/table/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate17.errors = vErrors;return errors === 0;}export const actions = validate18;const schema27 = {"$id":"https://tangle.tools/openui/actions","$ref":"#/$defs/actions","$defs":{"node":{"oneOf":[{"$ref":"#/$defs/heading"},{"$ref":"#/$defs/text"},{"$ref":"#/$defs/badge"},{"$ref":"#/$defs/stat"},{"$ref":"#/$defs/key_value"},{"$ref":"#/$defs/code"},{"$ref":"#/$defs/markdown"},{"$ref":"#/$defs/table"},{"$ref":"#/$defs/actions"},{"$ref":"#/$defs/separator"},{"$ref":"#/$defs/stack"},{"$ref":"#/$defs/grid"},{"$ref":"#/$defs/card"}]},"action":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","outline","ghost","destructive"]},"disabled":{"type":"boolean"}},"additionalProperties":false},"heading":{"type":"object","required":["type","text"],"properties":{"type":{"const":"heading"},"id":{"type":"string"},"text":{"type":"string"},"level":{"enum":[1,2,3,4]},"kicker":{"type":"string"},"meta":{"type":"string"}},"additionalProperties":false},"text":{"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"id":{"type":"string"},"text":{"type":"string"},"tone":{"enum":["default","muted","success","warning","error"]},"mono":{"type":"boolean"}},"additionalProperties":false},"badge":{"type":"object","required":["type","label"],"properties":{"type":{"const":"badge"},"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","success","warning","error","info","sandbox"]}},"additionalProperties":false},"stat":{"type":"object","required":["type","label","value"],"properties":{"type":{"const":"stat"},"id":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"tone":{"enum":["default","success","warning","error","info"]}},"additionalProperties":false},"key_value":{"type":"object","required":["type","items"],"properties":{"type":{"const":"key_value"},"id":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["label","value"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"tone":{"enum":["default","muted"]}},"additionalProperties":false}}},"additionalProperties":false},"code":{"type":"object","required":["type","code"],"properties":{"type":{"const":"code"},"id":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"showLineNumbers":{"type":"boolean"}},"additionalProperties":false},"markdown":{"type":"object","required":["type","content"],"properties":{"type":{"const":"markdown"},"id":{"type":"string"},"content":{"type":"string"}},"additionalProperties":false},"table":{"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"id":{"type":"string"},"columns":{"type":"array","minItems":1,"items":{"type":"object","required":["key","header"],"properties":{"key":{"type":"string"},"header":{"type":"string"},"align":{"enum":["left","right"]}},"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"caption":{"type":"string"}},"additionalProperties":false},"actions":{"type":"object","required":["type","actions"],"properties":{"type":{"const":"actions"},"id":{"type":"string"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}}},"additionalProperties":false},"separator":{"type":"object","required":["type"],"properties":{"type":{"const":"separator"},"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"stack":{"type":"object","required":["type","children"],"properties":{"type":{"const":"stack"},"id":{"type":"string"},"direction":{"enum":["row","column"]},"gap":{"enum":["sm","md","lg"]},"align":{"enum":["start","center","end","stretch"]},"wrap":{"type":"boolean"},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"grid":{"type":"object","required":["type","children"],"properties":{"type":{"const":"grid"},"id":{"type":"string"},"columns":{"enum":[1,2,3,4]},"gap":{"enum":["sm","md","lg"]},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"card":{"type":"object","required":["type"],"properties":{"type":{"const":"card"},"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"eyebrow":{"type":"string"},"badge":{"$ref":"#/$defs/badge"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false}}};const schema28 = {"type":"object","required":["type","actions"],"properties":{"type":{"const":"actions"},"id":{"type":"string"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}}},"additionalProperties":false};const schema29 = {"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","outline","ghost","destructive"]},"disabled":{"type":"boolean"}},"additionalProperties":false};function validate19(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.actions === undefined) && (missing0 = "actions"))){validate19.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!(((key0 === "type") || (key0 === "id")) || (key0 === "actions"))){validate19.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){const _errs2 = errors;if("actions" !== data.type){validate19.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "actions"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){const _errs3 = errors;if(typeof data.id !== "string"){validate19.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.actions !== undefined){let data2 = data.actions;const _errs5 = errors;if(errors === _errs5){if(Array.isArray(data2)){if(data2.length < 1){validate19.errors = [{instancePath:instancePath+"/actions",schemaPath:"#/properties/actions/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.id === undefined) && (missing1 = "id")) || ((data3.label === undefined) && (missing1 = "label"))){validate19.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs10 = errors;for(const key1 in data3){if(!((((key1 === "id") || (key1 === "label")) || (key1 === "tone")) || (key1 === "disabled"))){validate19.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs10 === errors){if(data3.id !== undefined){const _errs11 = errors;if(typeof data3.id !== "string"){validate19.errors = [{instancePath:instancePath+"/actions/" + i0+"/id",schemaPath:"#/$defs/action/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs11 === errors;}else {var valid3 = true;}if(valid3){if(data3.label !== undefined){const _errs13 = errors;if(typeof data3.label !== "string"){validate19.errors = [{instancePath:instancePath+"/actions/" + i0+"/label",schemaPath:"#/$defs/action/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs13 === errors;}else {var valid3 = true;}if(valid3){if(data3.tone !== undefined){let data6 = data3.tone;const _errs15 = errors;if(!(((((data6 === "default") || (data6 === "secondary")) || (data6 === "outline")) || (data6 === "ghost")) || (data6 === "destructive"))){validate19.errors = [{instancePath:instancePath+"/actions/" + i0+"/tone",schemaPath:"#/$defs/action/properties/tone/enum",keyword:"enum",params:{allowedValues: schema29.properties.tone.enum},message:"must be equal to one of the allowed values"}];return false;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data3.disabled !== undefined){const _errs16 = errors;if(typeof data3.disabled !== "boolean"){validate19.errors = [{instancePath:instancePath+"/actions/" + i0+"/disabled",schemaPath:"#/$defs/action/properties/disabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid3 = _errs16 === errors;}else {var valid3 = true;}}}}}}}else {validate19.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs7 === errors;if(!valid1){break;}}}}else {validate19.errors = [{instancePath:instancePath+"/actions",schemaPath:"#/properties/actions/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate19.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate19.errors = vErrors;return errors === 0;}function validate18(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://tangle.tools/openui/actions" */;let vErrors = null;let errors = 0;if(!(validate19(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate19.errors : vErrors.concat(validate19.errors);errors = vErrors.length;}validate18.errors = vErrors;return errors === 0;}export const separator = validate21;const schema30 = {"$id":"https://tangle.tools/openui/separator","$ref":"#/$defs/separator","$defs":{"node":{"oneOf":[{"$ref":"#/$defs/heading"},{"$ref":"#/$defs/text"},{"$ref":"#/$defs/badge"},{"$ref":"#/$defs/stat"},{"$ref":"#/$defs/key_value"},{"$ref":"#/$defs/code"},{"$ref":"#/$defs/markdown"},{"$ref":"#/$defs/table"},{"$ref":"#/$defs/actions"},{"$ref":"#/$defs/separator"},{"$ref":"#/$defs/stack"},{"$ref":"#/$defs/grid"},{"$ref":"#/$defs/card"}]},"action":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","outline","ghost","destructive"]},"disabled":{"type":"boolean"}},"additionalProperties":false},"heading":{"type":"object","required":["type","text"],"properties":{"type":{"const":"heading"},"id":{"type":"string"},"text":{"type":"string"},"level":{"enum":[1,2,3,4]},"kicker":{"type":"string"},"meta":{"type":"string"}},"additionalProperties":false},"text":{"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"id":{"type":"string"},"text":{"type":"string"},"tone":{"enum":["default","muted","success","warning","error"]},"mono":{"type":"boolean"}},"additionalProperties":false},"badge":{"type":"object","required":["type","label"],"properties":{"type":{"const":"badge"},"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","success","warning","error","info","sandbox"]}},"additionalProperties":false},"stat":{"type":"object","required":["type","label","value"],"properties":{"type":{"const":"stat"},"id":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"tone":{"enum":["default","success","warning","error","info"]}},"additionalProperties":false},"key_value":{"type":"object","required":["type","items"],"properties":{"type":{"const":"key_value"},"id":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["label","value"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"tone":{"enum":["default","muted"]}},"additionalProperties":false}}},"additionalProperties":false},"code":{"type":"object","required":["type","code"],"properties":{"type":{"const":"code"},"id":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"showLineNumbers":{"type":"boolean"}},"additionalProperties":false},"markdown":{"type":"object","required":["type","content"],"properties":{"type":{"const":"markdown"},"id":{"type":"string"},"content":{"type":"string"}},"additionalProperties":false},"table":{"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"id":{"type":"string"},"columns":{"type":"array","minItems":1,"items":{"type":"object","required":["key","header"],"properties":{"key":{"type":"string"},"header":{"type":"string"},"align":{"enum":["left","right"]}},"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"caption":{"type":"string"}},"additionalProperties":false},"actions":{"type":"object","required":["type","actions"],"properties":{"type":{"const":"actions"},"id":{"type":"string"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}}},"additionalProperties":false},"separator":{"type":"object","required":["type"],"properties":{"type":{"const":"separator"},"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"stack":{"type":"object","required":["type","children"],"properties":{"type":{"const":"stack"},"id":{"type":"string"},"direction":{"enum":["row","column"]},"gap":{"enum":["sm","md","lg"]},"align":{"enum":["start","center","end","stretch"]},"wrap":{"type":"boolean"},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"grid":{"type":"object","required":["type","children"],"properties":{"type":{"const":"grid"},"id":{"type":"string"},"columns":{"enum":[1,2,3,4]},"gap":{"enum":["sm","md","lg"]},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"card":{"type":"object","required":["type"],"properties":{"type":{"const":"card"},"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"eyebrow":{"type":"string"},"badge":{"$ref":"#/$defs/badge"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false}}};const schema31 = {"type":"object","required":["type"],"properties":{"type":{"const":"separator"},"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false};function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://tangle.tools/openui/separator" */;let vErrors = null;let errors = 0;const _errs0 = errors;if(errors === _errs0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.type === undefined) && (missing0 = "type")){validate21.errors = [{instancePath,schemaPath:"#/$defs/separator/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs2 = errors;for(const key0 in data){if(!(((key0 === "type") || (key0 === "id")) || (key0 === "label"))){validate21.errors = [{instancePath,schemaPath:"#/$defs/separator/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs2 === errors){if(data.type !== undefined){const _errs3 = errors;if("separator" !== data.type){validate21.errors = [{instancePath:instancePath+"/type",schemaPath:"#/$defs/separator/properties/type/const",keyword:"const",params:{allowedValue: "separator"},message:"must be equal to constant"}];return false;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.id !== undefined){const _errs4 = errors;if(typeof data.id !== "string"){validate21.errors = [{instancePath:instancePath+"/id",schemaPath:"#/$defs/separator/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.label !== undefined){const _errs6 = errors;if(typeof data.label !== "string"){validate21.errors = [{instancePath:instancePath+"/label",schemaPath:"#/$defs/separator/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}}}}}}else {validate21.errors = [{instancePath,schemaPath:"#/$defs/separator/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate21.errors = vErrors;return errors === 0;}export const stack = validate22;const schema32 = {"$id":"https://tangle.tools/openui/stack","$ref":"#/$defs/stack","$defs":{"node":{"oneOf":[{"$ref":"#/$defs/heading"},{"$ref":"#/$defs/text"},{"$ref":"#/$defs/badge"},{"$ref":"#/$defs/stat"},{"$ref":"#/$defs/key_value"},{"$ref":"#/$defs/code"},{"$ref":"#/$defs/markdown"},{"$ref":"#/$defs/table"},{"$ref":"#/$defs/actions"},{"$ref":"#/$defs/separator"},{"$ref":"#/$defs/stack"},{"$ref":"#/$defs/grid"},{"$ref":"#/$defs/card"}]},"action":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","outline","ghost","destructive"]},"disabled":{"type":"boolean"}},"additionalProperties":false},"heading":{"type":"object","required":["type","text"],"properties":{"type":{"const":"heading"},"id":{"type":"string"},"text":{"type":"string"},"level":{"enum":[1,2,3,4]},"kicker":{"type":"string"},"meta":{"type":"string"}},"additionalProperties":false},"text":{"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"id":{"type":"string"},"text":{"type":"string"},"tone":{"enum":["default","muted","success","warning","error"]},"mono":{"type":"boolean"}},"additionalProperties":false},"badge":{"type":"object","required":["type","label"],"properties":{"type":{"const":"badge"},"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","success","warning","error","info","sandbox"]}},"additionalProperties":false},"stat":{"type":"object","required":["type","label","value"],"properties":{"type":{"const":"stat"},"id":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"tone":{"enum":["default","success","warning","error","info"]}},"additionalProperties":false},"key_value":{"type":"object","required":["type","items"],"properties":{"type":{"const":"key_value"},"id":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["label","value"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"tone":{"enum":["default","muted"]}},"additionalProperties":false}}},"additionalProperties":false},"code":{"type":"object","required":["type","code"],"properties":{"type":{"const":"code"},"id":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"showLineNumbers":{"type":"boolean"}},"additionalProperties":false},"markdown":{"type":"object","required":["type","content"],"properties":{"type":{"const":"markdown"},"id":{"type":"string"},"content":{"type":"string"}},"additionalProperties":false},"table":{"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"id":{"type":"string"},"columns":{"type":"array","minItems":1,"items":{"type":"object","required":["key","header"],"properties":{"key":{"type":"string"},"header":{"type":"string"},"align":{"enum":["left","right"]}},"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"caption":{"type":"string"}},"additionalProperties":false},"actions":{"type":"object","required":["type","actions"],"properties":{"type":{"const":"actions"},"id":{"type":"string"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}}},"additionalProperties":false},"separator":{"type":"object","required":["type"],"properties":{"type":{"const":"separator"},"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"stack":{"type":"object","required":["type","children"],"properties":{"type":{"const":"stack"},"id":{"type":"string"},"direction":{"enum":["row","column"]},"gap":{"enum":["sm","md","lg"]},"align":{"enum":["start","center","end","stretch"]},"wrap":{"type":"boolean"},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"grid":{"type":"object","required":["type","children"],"properties":{"type":{"const":"grid"},"id":{"type":"string"},"columns":{"enum":[1,2,3,4]},"gap":{"enum":["sm","md","lg"]},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"card":{"type":"object","required":["type"],"properties":{"type":{"const":"card"},"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"eyebrow":{"type":"string"},"badge":{"$ref":"#/$defs/badge"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false}}};const schema33 = {"type":"object","required":["type","children"],"properties":{"type":{"const":"stack"},"id":{"type":"string"},"direction":{"enum":["row","column"]},"gap":{"enum":["sm","md","lg"]},"align":{"enum":["start","center","end","stretch"]},"wrap":{"type":"boolean"},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false};const schema34 = {"oneOf":[{"$ref":"#/$defs/heading"},{"$ref":"#/$defs/text"},{"$ref":"#/$defs/badge"},{"$ref":"#/$defs/stat"},{"$ref":"#/$defs/key_value"},{"$ref":"#/$defs/code"},{"$ref":"#/$defs/markdown"},{"$ref":"#/$defs/table"},{"$ref":"#/$defs/actions"},{"$ref":"#/$defs/separator"},{"$ref":"#/$defs/stack"},{"$ref":"#/$defs/grid"},{"$ref":"#/$defs/card"}]};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.actions === undefined) && (missing0 = "actions"))){validate25.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!(((key0 === "type") || (key0 === "id")) || (key0 === "actions"))){validate25.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){const _errs2 = errors;if("actions" !== data.type){validate25.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "actions"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){const _errs3 = errors;if(typeof data.id !== "string"){validate25.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.actions !== undefined){let data2 = data.actions;const _errs5 = errors;if(errors === _errs5){if(Array.isArray(data2)){if(data2.length < 1){validate25.errors = [{instancePath:instancePath+"/actions",schemaPath:"#/properties/actions/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.id === undefined) && (missing1 = "id")) || ((data3.label === undefined) && (missing1 = "label"))){validate25.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs10 = errors;for(const key1 in data3){if(!((((key1 === "id") || (key1 === "label")) || (key1 === "tone")) || (key1 === "disabled"))){validate25.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs10 === errors){if(data3.id !== undefined){const _errs11 = errors;if(typeof data3.id !== "string"){validate25.errors = [{instancePath:instancePath+"/actions/" + i0+"/id",schemaPath:"#/$defs/action/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs11 === errors;}else {var valid3 = true;}if(valid3){if(data3.label !== undefined){const _errs13 = errors;if(typeof data3.label !== "string"){validate25.errors = [{instancePath:instancePath+"/actions/" + i0+"/label",schemaPath:"#/$defs/action/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs13 === errors;}else {var valid3 = true;}if(valid3){if(data3.tone !== undefined){let data6 = data3.tone;const _errs15 = errors;if(!(((((data6 === "default") || (data6 === "secondary")) || (data6 === "outline")) || (data6 === "ghost")) || (data6 === "destructive"))){validate25.errors = [{instancePath:instancePath+"/actions/" + i0+"/tone",schemaPath:"#/$defs/action/properties/tone/enum",keyword:"enum",params:{allowedValues: schema29.properties.tone.enum},message:"must be equal to one of the allowed values"}];return false;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data3.disabled !== undefined){const _errs16 = errors;if(typeof data3.disabled !== "boolean"){validate25.errors = [{instancePath:instancePath+"/actions/" + i0+"/disabled",schemaPath:"#/$defs/action/properties/disabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid3 = _errs16 === errors;}else {var valid3 = true;}}}}}}}else {validate25.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs7 === errors;if(!valid1){break;}}}}else {validate25.errors = [{instancePath:instancePath+"/actions",schemaPath:"#/properties/actions/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate25.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate25.errors = vErrors;return errors === 0;}const schema46 = {"type":"object","required":["type","children"],"properties":{"type":{"const":"grid"},"id":{"type":"string"},"columns":{"enum":[1,2,3,4]},"gap":{"enum":["sm","md","lg"]},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false};const wrapper1 = {validate: validate24};function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.children === undefined) && (missing0 = "children"))){validate27.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!(((((key0 === "type") || (key0 === "id")) || (key0 === "columns")) || (key0 === "gap")) || (key0 === "children"))){validate27.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){const _errs2 = errors;if("grid" !== data.type){validate27.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "grid"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){const _errs3 = errors;if(typeof data.id !== "string"){validate27.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.columns !== undefined){let data2 = data.columns;const _errs5 = errors;if(!((((data2 === 1) || (data2 === 2)) || (data2 === 3)) || (data2 === 4))){validate27.errors = [{instancePath:instancePath+"/columns",schemaPath:"#/properties/columns/enum",keyword:"enum",params:{allowedValues: schema46.properties.columns.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.gap !== undefined){let data3 = data.gap;const _errs6 = errors;if(!(((data3 === "sm") || (data3 === "md")) || (data3 === "lg"))){validate27.errors = [{instancePath:instancePath+"/gap",schemaPath:"#/properties/gap/enum",keyword:"enum",params:{allowedValues: schema46.properties.gap.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.children !== undefined){let data4 = data.children;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data4)){if(data4.length < 1){validate27.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs9 = errors;if(!(wrapper1.validate(data4[i0], {instancePath:instancePath+"/children/" + i0,parentData:data4,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? wrapper1.validate.errors : vErrors.concat(wrapper1.validate.errors);errors = vErrors.length;}var valid1 = _errs9 === errors;if(!valid1){break;}}}}else {validate27.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}}}else {validate27.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate27.errors = vErrors;return errors === 0;}const schema47 = {"type":"object","required":["type"],"properties":{"type":{"const":"card"},"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"eyebrow":{"type":"string"},"badge":{"$ref":"#/$defs/badge"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false};function validate29(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.type === undefined) && (missing0 = "type")){validate29.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!((((((((key0 === "type") || (key0 === "id")) || (key0 === "title")) || (key0 === "description")) || (key0 === "eyebrow")) || (key0 === "badge")) || (key0 === "actions")) || (key0 === "children"))){validate29.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){const _errs2 = errors;if("card" !== data.type){validate29.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "card"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){const _errs3 = errors;if(typeof data.id !== "string"){validate29.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.title !== undefined){const _errs5 = errors;if(typeof data.title !== "string"){validate29.errors = [{instancePath:instancePath+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.description !== undefined){const _errs7 = errors;if(typeof data.description !== "string"){validate29.errors = [{instancePath:instancePath+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.eyebrow !== undefined){const _errs9 = errors;if(typeof data.eyebrow !== "string"){validate29.errors = [{instancePath:instancePath+"/eyebrow",schemaPath:"#/properties/eyebrow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.badge !== undefined){let data5 = data.badge;const _errs11 = errors;const _errs12 = errors;if(errors === _errs12){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing1;if(((data5.type === undefined) && (missing1 = "type")) || ((data5.label === undefined) && (missing1 = "label"))){validate29.errors = [{instancePath:instancePath+"/badge",schemaPath:"#/$defs/badge/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs14 = errors;for(const key1 in data5){if(!((((key1 === "type") || (key1 === "id")) || (key1 === "label")) || (key1 === "tone"))){validate29.errors = [{instancePath:instancePath+"/badge",schemaPath:"#/$defs/badge/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs14 === errors){if(data5.type !== undefined){const _errs15 = errors;if("badge" !== data5.type){validate29.errors = [{instancePath:instancePath+"/badge/type",schemaPath:"#/$defs/badge/properties/type/const",keyword:"const",params:{allowedValue: "badge"},message:"must be equal to constant"}];return false;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data5.id !== undefined){const _errs16 = errors;if(typeof data5.id !== "string"){validate29.errors = [{instancePath:instancePath+"/badge/id",schemaPath:"#/$defs/badge/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs16 === errors;}else {var valid2 = true;}if(valid2){if(data5.label !== undefined){const _errs18 = errors;if(typeof data5.label !== "string"){validate29.errors = [{instancePath:instancePath+"/badge/label",schemaPath:"#/$defs/badge/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs18 === errors;}else {var valid2 = true;}if(valid2){if(data5.tone !== undefined){let data9 = data5.tone;const _errs20 = errors;if(!(((((((data9 === "default") || (data9 === "secondary")) || (data9 === "success")) || (data9 === "warning")) || (data9 === "error")) || (data9 === "info")) || (data9 === "sandbox"))){validate29.errors = [{instancePath:instancePath+"/badge/tone",schemaPath:"#/$defs/badge/properties/tone/enum",keyword:"enum",params:{allowedValues: schema16.properties.tone.enum},message:"must be equal to one of the allowed values"}];return false;}var valid2 = _errs20 === errors;}else {var valid2 = true;}}}}}}}else {validate29.errors = [{instancePath:instancePath+"/badge",schemaPath:"#/$defs/badge/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.actions !== undefined){let data10 = data.actions;const _errs21 = errors;if(errors === _errs21){if(Array.isArray(data10)){if(data10.length < 1){validate29.errors = [{instancePath:instancePath+"/actions",schemaPath:"#/properties/actions/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid3 = true;const len0 = data10.length;for(let i0=0; i0<len0; i0++){let data11 = data10[i0];const _errs23 = errors;const _errs24 = errors;if(errors === _errs24){if(data11 && typeof data11 == "object" && !Array.isArray(data11)){let missing2;if(((data11.id === undefined) && (missing2 = "id")) || ((data11.label === undefined) && (missing2 = "label"))){validate29.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {const _errs26 = errors;for(const key2 in data11){if(!((((key2 === "id") || (key2 === "label")) || (key2 === "tone")) || (key2 === "disabled"))){validate29.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"}];return false;break;}}if(_errs26 === errors){if(data11.id !== undefined){const _errs27 = errors;if(typeof data11.id !== "string"){validate29.errors = [{instancePath:instancePath+"/actions/" + i0+"/id",schemaPath:"#/$defs/action/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs27 === errors;}else {var valid5 = true;}if(valid5){if(data11.label !== undefined){const _errs29 = errors;if(typeof data11.label !== "string"){validate29.errors = [{instancePath:instancePath+"/actions/" + i0+"/label",schemaPath:"#/$defs/action/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs29 === errors;}else {var valid5 = true;}if(valid5){if(data11.tone !== undefined){let data14 = data11.tone;const _errs31 = errors;if(!(((((data14 === "default") || (data14 === "secondary")) || (data14 === "outline")) || (data14 === "ghost")) || (data14 === "destructive"))){validate29.errors = [{instancePath:instancePath+"/actions/" + i0+"/tone",schemaPath:"#/$defs/action/properties/tone/enum",keyword:"enum",params:{allowedValues: schema29.properties.tone.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs31 === errors;}else {var valid5 = true;}if(valid5){if(data11.disabled !== undefined){const _errs32 = errors;if(typeof data11.disabled !== "boolean"){validate29.errors = [{instancePath:instancePath+"/actions/" + i0+"/disabled",schemaPath:"#/$defs/action/properties/disabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid5 = _errs32 === errors;}else {var valid5 = true;}}}}}}}else {validate29.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs23 === errors;if(!valid3){break;}}}}else {validate29.errors = [{instancePath:instancePath+"/actions",schemaPath:"#/properties/actions/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.children !== undefined){let data16 = data.children;const _errs34 = errors;if(errors === _errs34){if(Array.isArray(data16)){if(data16.length < 1){validate29.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid6 = true;const len1 = data16.length;for(let i1=0; i1<len1; i1++){const _errs36 = errors;if(!(wrapper1.validate(data16[i1], {instancePath:instancePath+"/children/" + i1,parentData:data16,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? wrapper1.validate.errors : vErrors.concat(wrapper1.validate.errors);errors = vErrors.length;}var valid6 = _errs36 === errors;if(!valid6){break;}}}}else {validate29.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs34 === errors;}else {var valid0 = true;}}}}}}}}}}}else {validate29.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate29.errors = vErrors;return errors === 0;}const wrapper0 = {validate: validate23};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.text === undefined) && (missing0 = "text"))){const err0 = {instancePath,schemaPath:"#/$defs/heading/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {const _errs4 = errors;for(const key0 in data){if(!((((((key0 === "type") || (key0 === "id")) || (key0 === "text")) || (key0 === "level")) || (key0 === "kicker")) || (key0 === "meta"))){const err1 = {instancePath,schemaPath:"#/$defs/heading/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;break;}}if(_errs4 === errors){if(data.type !== undefined){const _errs5 = errors;if("heading" !== data.type){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/heading/properties/type/const",keyword:"const",params:{allowedValue: "heading"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid2 = _errs5 === errors;}else {var valid2 = true;}if(valid2){if(data.id !== undefined){const _errs6 = errors;if(typeof data.id !== "string"){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/heading/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid2 = _errs6 === errors;}else {var valid2 = true;}if(valid2){if(data.text !== undefined){const _errs8 = errors;if(typeof data.text !== "string"){const err4 = {instancePath:instancePath+"/text",schemaPath:"#/$defs/heading/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid2 = _errs8 === errors;}else {var valid2 = true;}if(valid2){if(data.level !== undefined){let data3 = data.level;const _errs10 = errors;if(!((((data3 === 1) || (data3 === 2)) || (data3 === 3)) || (data3 === 4))){const err5 = {instancePath:instancePath+"/level",schemaPath:"#/$defs/heading/properties/level/enum",keyword:"enum",params:{allowedValues: schema12.properties.level.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.kicker !== undefined){const _errs11 = errors;if(typeof data.kicker !== "string"){const err6 = {instancePath:instancePath+"/kicker",schemaPath:"#/$defs/heading/properties/kicker/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.meta !== undefined){const _errs13 = errors;if(typeof data.meta !== "string"){const err7 = {instancePath:instancePath+"/meta",schemaPath:"#/$defs/heading/properties/meta/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}}}}}}}}}else {const err8 = {instancePath,schemaPath:"#/$defs/heading/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs15 = errors;const _errs16 = errors;if(errors === _errs16){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((data.type === undefined) && (missing1 = "type")) || ((data.text === undefined) && (missing1 = "text"))){const err9 = {instancePath,schemaPath:"#/$defs/text/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {const _errs18 = errors;for(const key1 in data){if(!(((((key1 === "type") || (key1 === "id")) || (key1 === "text")) || (key1 === "tone")) || (key1 === "mono"))){const err10 = {instancePath,schemaPath:"#/$defs/text/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;break;}}if(_errs18 === errors){if(data.type !== undefined){const _errs19 = errors;if("text" !== data.type){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/text/properties/type/const",keyword:"const",params:{allowedValue: "text"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid4 = _errs19 === errors;}else {var valid4 = true;}if(valid4){if(data.id !== undefined){const _errs20 = errors;if(typeof data.id !== "string"){const err12 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/text/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid4 = _errs20 === errors;}else {var valid4 = true;}if(valid4){if(data.text !== undefined){const _errs22 = errors;if(typeof data.text !== "string"){const err13 = {instancePath:instancePath+"/text",schemaPath:"#/$defs/text/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid4 = _errs22 === errors;}else {var valid4 = true;}if(valid4){if(data.tone !== undefined){let data9 = data.tone;const _errs24 = errors;if(!(((((data9 === "default") || (data9 === "muted")) || (data9 === "success")) || (data9 === "warning")) || (data9 === "error"))){const err14 = {instancePath:instancePath+"/tone",schemaPath:"#/$defs/text/properties/tone/enum",keyword:"enum",params:{allowedValues: schema14.properties.tone.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid4 = _errs24 === errors;}else {var valid4 = true;}if(valid4){if(data.mono !== undefined){const _errs25 = errors;if(typeof data.mono !== "boolean"){const err15 = {instancePath:instancePath+"/mono",schemaPath:"#/$defs/text/properties/mono/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid4 = _errs25 === errors;}else {var valid4 = true;}}}}}}}}else {const err16 = {instancePath,schemaPath:"#/$defs/text/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}var _valid0 = _errs15 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}const _errs27 = errors;const _errs28 = errors;if(errors === _errs28){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((data.type === undefined) && (missing2 = "type")) || ((data.label === undefined) && (missing2 = "label"))){const err17 = {instancePath,schemaPath:"#/$defs/badge/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {const _errs30 = errors;for(const key2 in data){if(!((((key2 === "type") || (key2 === "id")) || (key2 === "label")) || (key2 === "tone"))){const err18 = {instancePath,schemaPath:"#/$defs/badge/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;break;}}if(_errs30 === errors){if(data.type !== undefined){const _errs31 = errors;if("badge" !== data.type){const err19 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/badge/properties/type/const",keyword:"const",params:{allowedValue: "badge"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid6 = _errs31 === errors;}else {var valid6 = true;}if(valid6){if(data.id !== undefined){const _errs32 = errors;if(typeof data.id !== "string"){const err20 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/badge/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid6 = _errs32 === errors;}else {var valid6 = true;}if(valid6){if(data.label !== undefined){const _errs34 = errors;if(typeof data.label !== "string"){const err21 = {instancePath:instancePath+"/label",schemaPath:"#/$defs/badge/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid6 = _errs34 === errors;}else {var valid6 = true;}if(valid6){if(data.tone !== undefined){let data14 = data.tone;const _errs36 = errors;if(!(((((((data14 === "default") || (data14 === "secondary")) || (data14 === "success")) || (data14 === "warning")) || (data14 === "error")) || (data14 === "info")) || (data14 === "sandbox"))){const err22 = {instancePath:instancePath+"/tone",schemaPath:"#/$defs/badge/properties/tone/enum",keyword:"enum",params:{allowedValues: schema16.properties.tone.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid6 = _errs36 === errors;}else {var valid6 = true;}}}}}}}else {const err23 = {instancePath,schemaPath:"#/$defs/badge/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}var _valid0 = _errs27 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;}const _errs37 = errors;const _errs38 = errors;if(errors === _errs38){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((data.type === undefined) && (missing3 = "type")) || ((data.label === undefined) && (missing3 = "label"))) || ((data.value === undefined) && (missing3 = "value"))){const err24 = {instancePath,schemaPath:"#/$defs/stat/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}else {const _errs40 = errors;for(const key3 in data){if(!((((((key3 === "type") || (key3 === "id")) || (key3 === "label")) || (key3 === "value")) || (key3 === "change")) || (key3 === "tone"))){const err25 = {instancePath,schemaPath:"#/$defs/stat/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;break;}}if(_errs40 === errors){if(data.type !== undefined){const _errs41 = errors;if("stat" !== data.type){const err26 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/stat/properties/type/const",keyword:"const",params:{allowedValue: "stat"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid8 = _errs41 === errors;}else {var valid8 = true;}if(valid8){if(data.id !== undefined){const _errs42 = errors;if(typeof data.id !== "string"){const err27 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/stat/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid8 = _errs42 === errors;}else {var valid8 = true;}if(valid8){if(data.label !== undefined){const _errs44 = errors;if(typeof data.label !== "string"){const err28 = {instancePath:instancePath+"/label",schemaPath:"#/$defs/stat/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid8 = _errs44 === errors;}else {var valid8 = true;}if(valid8){if(data.value !== undefined){const _errs46 = errors;if(typeof data.value !== "string"){const err29 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/stat/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid8 = _errs46 === errors;}else {var valid8 = true;}if(valid8){if(data.change !== undefined){const _errs48 = errors;if(typeof data.change !== "string"){const err30 = {instancePath:instancePath+"/change",schemaPath:"#/$defs/stat/properties/change/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid8 = _errs48 === errors;}else {var valid8 = true;}if(valid8){if(data.tone !== undefined){let data20 = data.tone;const _errs50 = errors;if(!(((((data20 === "default") || (data20 === "success")) || (data20 === "warning")) || (data20 === "error")) || (data20 === "info"))){const err31 = {instancePath:instancePath+"/tone",schemaPath:"#/$defs/stat/properties/tone/enum",keyword:"enum",params:{allowedValues: schema18.properties.tone.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var valid8 = _errs50 === errors;}else {var valid8 = true;}}}}}}}}}else {const err32 = {instancePath,schemaPath:"#/$defs/stat/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var _valid0 = _errs37 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;}const _errs51 = errors;const _errs52 = errors;if(errors === _errs52){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((data.type === undefined) && (missing4 = "type")) || ((data.items === undefined) && (missing4 = "items"))){const err33 = {instancePath,schemaPath:"#/$defs/key_value/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const _errs54 = errors;for(const key4 in data){if(!(((key4 === "type") || (key4 === "id")) || (key4 === "items"))){const err34 = {instancePath,schemaPath:"#/$defs/key_value/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;break;}}if(_errs54 === errors){if(data.type !== undefined){const _errs55 = errors;if("key_value" !== data.type){const err35 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/key_value/properties/type/const",keyword:"const",params:{allowedValue: "key_value"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid10 = _errs55 === errors;}else {var valid10 = true;}if(valid10){if(data.id !== undefined){const _errs56 = errors;if(typeof data.id !== "string"){const err36 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/key_value/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid10 = _errs56 === errors;}else {var valid10 = true;}if(valid10){if(data.items !== undefined){let data23 = data.items;const _errs58 = errors;if(errors === _errs58){if(Array.isArray(data23)){if(data23.length < 1){const err37 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/key_value/properties/items/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {var valid11 = true;const len0 = data23.length;for(let i0=0; i0<len0; i0++){let data24 = data23[i0];const _errs60 = errors;if(errors === _errs60){if(data24 && typeof data24 == "object" && !Array.isArray(data24)){let missing5;if(((data24.label === undefined) && (missing5 = "label")) || ((data24.value === undefined) && (missing5 = "value"))){const err38 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/key_value/properties/items/items/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {const _errs62 = errors;for(const key5 in data24){if(!((((key5 === "id") || (key5 === "label")) || (key5 === "value")) || (key5 === "tone"))){const err39 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/key_value/properties/items/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;break;}}if(_errs62 === errors){if(data24.id !== undefined){const _errs63 = errors;if(typeof data24.id !== "string"){const err40 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"#/$defs/key_value/properties/items/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid12 = _errs63 === errors;}else {var valid12 = true;}if(valid12){if(data24.label !== undefined){const _errs65 = errors;if(typeof data24.label !== "string"){const err41 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"#/$defs/key_value/properties/items/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid12 = _errs65 === errors;}else {var valid12 = true;}if(valid12){if(data24.value !== undefined){let data27 = data24.value;const _errs67 = errors;if((((typeof data27 !== "string") && (!((typeof data27 == "number") && (isFinite(data27))))) && (typeof data27 !== "boolean")) && (data27 !== null)){const err42 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"#/$defs/key_value/properties/items/items/properties/value/type",keyword:"type",params:{type: schema20.properties.items.items.properties.value.type},message:"must be string,number,boolean,null"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var valid12 = _errs67 === errors;}else {var valid12 = true;}if(valid12){if(data24.tone !== undefined){let data28 = data24.tone;const _errs69 = errors;if(!((data28 === "default") || (data28 === "muted"))){const err43 = {instancePath:instancePath+"/items/" + i0+"/tone",schemaPath:"#/$defs/key_value/properties/items/items/properties/tone/enum",keyword:"enum",params:{allowedValues: schema20.properties.items.items.properties.tone.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid12 = _errs69 === errors;}else {var valid12 = true;}}}}}}}else {const err44 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/key_value/properties/items/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}var valid11 = _errs60 === errors;if(!valid11){break;}}}}else {const err45 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/key_value/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}var valid10 = _errs58 === errors;}else {var valid10 = true;}}}}}}else {const err46 = {instancePath,schemaPath:"#/$defs/key_value/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}var _valid0 = _errs51 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 4];}else {if(_valid0){valid0 = true;passing0 = 4;}const _errs70 = errors;const _errs71 = errors;if(errors === _errs71){if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if(((data.type === undefined) && (missing6 = "type")) || ((data.code === undefined) && (missing6 = "code"))){const err47 = {instancePath,schemaPath:"#/$defs/code/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {const _errs73 = errors;for(const key6 in data){if(!((((((key6 === "type") || (key6 === "id")) || (key6 === "code")) || (key6 === "language")) || (key6 === "title")) || (key6 === "showLineNumbers"))){const err48 = {instancePath,schemaPath:"#/$defs/code/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;break;}}if(_errs73 === errors){if(data.type !== undefined){const _errs74 = errors;if("code" !== data.type){const err49 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/code/properties/type/const",keyword:"const",params:{allowedValue: "code"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid14 = _errs74 === errors;}else {var valid14 = true;}if(valid14){if(data.id !== undefined){const _errs75 = errors;if(typeof data.id !== "string"){const err50 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/code/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid14 = _errs75 === errors;}else {var valid14 = true;}if(valid14){if(data.code !== undefined){const _errs77 = errors;if(typeof data.code !== "string"){const err51 = {instancePath:instancePath+"/code",schemaPath:"#/$defs/code/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid14 = _errs77 === errors;}else {var valid14 = true;}if(valid14){if(data.language !== undefined){const _errs79 = errors;if(typeof data.language !== "string"){const err52 = {instancePath:instancePath+"/language",schemaPath:"#/$defs/code/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var valid14 = _errs79 === errors;}else {var valid14 = true;}if(valid14){if(data.title !== undefined){const _errs81 = errors;if(typeof data.title !== "string"){const err53 = {instancePath:instancePath+"/title",schemaPath:"#/$defs/code/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid14 = _errs81 === errors;}else {var valid14 = true;}if(valid14){if(data.showLineNumbers !== undefined){const _errs83 = errors;if(typeof data.showLineNumbers !== "boolean"){const err54 = {instancePath:instancePath+"/showLineNumbers",schemaPath:"#/$defs/code/properties/showLineNumbers/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}var valid14 = _errs83 === errors;}else {var valid14 = true;}}}}}}}}}else {const err55 = {instancePath,schemaPath:"#/$defs/code/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var _valid0 = _errs70 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 5];}else {if(_valid0){valid0 = true;passing0 = 5;}const _errs85 = errors;const _errs86 = errors;if(errors === _errs86){if(data && typeof data == "object" && !Array.isArray(data)){let missing7;if(((data.type === undefined) && (missing7 = "type")) || ((data.content === undefined) && (missing7 = "content"))){const err56 = {instancePath,schemaPath:"#/$defs/markdown/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}else {const _errs88 = errors;for(const key7 in data){if(!(((key7 === "type") || (key7 === "id")) || (key7 === "content"))){const err57 = {instancePath,schemaPath:"#/$defs/markdown/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;break;}}if(_errs88 === errors){if(data.type !== undefined){const _errs89 = errors;if("markdown" !== data.type){const err58 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/markdown/properties/type/const",keyword:"const",params:{allowedValue: "markdown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid16 = _errs89 === errors;}else {var valid16 = true;}if(valid16){if(data.id !== undefined){const _errs90 = errors;if(typeof data.id !== "string"){const err59 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/markdown/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid16 = _errs90 === errors;}else {var valid16 = true;}if(valid16){if(data.content !== undefined){const _errs92 = errors;if(typeof data.content !== "string"){const err60 = {instancePath:instancePath+"/content",schemaPath:"#/$defs/markdown/properties/content/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid16 = _errs92 === errors;}else {var valid16 = true;}}}}}}else {const err61 = {instancePath,schemaPath:"#/$defs/markdown/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}var _valid0 = _errs85 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 6];}else {if(_valid0){valid0 = true;passing0 = 6;}const _errs94 = errors;const _errs95 = errors;if(errors === _errs95){if(data && typeof data == "object" && !Array.isArray(data)){let missing8;if((((data.type === undefined) && (missing8 = "type")) || ((data.columns === undefined) && (missing8 = "columns"))) || ((data.rows === undefined) && (missing8 = "rows"))){const err62 = {instancePath,schemaPath:"#/$defs/table/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {const _errs97 = errors;for(const key8 in data){if(!(((((key8 === "type") || (key8 === "id")) || (key8 === "columns")) || (key8 === "rows")) || (key8 === "caption"))){const err63 = {instancePath,schemaPath:"#/$defs/table/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;break;}}if(_errs97 === errors){if(data.type !== undefined){const _errs98 = errors;if("table" !== data.type){const err64 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/table/properties/type/const",keyword:"const",params:{allowedValue: "table"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var valid18 = _errs98 === errors;}else {var valid18 = true;}if(valid18){if(data.id !== undefined){const _errs99 = errors;if(typeof data.id !== "string"){const err65 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/table/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var valid18 = _errs99 === errors;}else {var valid18 = true;}if(valid18){if(data.columns !== undefined){let data40 = data.columns;const _errs101 = errors;if(errors === _errs101){if(Array.isArray(data40)){if(data40.length < 1){const err66 = {instancePath:instancePath+"/columns",schemaPath:"#/$defs/table/properties/columns/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {var valid19 = true;const len1 = data40.length;for(let i1=0; i1<len1; i1++){let data41 = data40[i1];const _errs103 = errors;if(errors === _errs103){if(data41 && typeof data41 == "object" && !Array.isArray(data41)){let missing9;if(((data41.key === undefined) && (missing9 = "key")) || ((data41.header === undefined) && (missing9 = "header"))){const err67 = {instancePath:instancePath+"/columns/" + i1,schemaPath:"#/$defs/table/properties/columns/items/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}else {const _errs105 = errors;for(const key9 in data41){if(!(((key9 === "key") || (key9 === "header")) || (key9 === "align"))){const err68 = {instancePath:instancePath+"/columns/" + i1,schemaPath:"#/$defs/table/properties/columns/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;break;}}if(_errs105 === errors){if(data41.key !== undefined){const _errs106 = errors;if(typeof data41.key !== "string"){const err69 = {instancePath:instancePath+"/columns/" + i1+"/key",schemaPath:"#/$defs/table/properties/columns/items/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}var valid20 = _errs106 === errors;}else {var valid20 = true;}if(valid20){if(data41.header !== undefined){const _errs108 = errors;if(typeof data41.header !== "string"){const err70 = {instancePath:instancePath+"/columns/" + i1+"/header",schemaPath:"#/$defs/table/properties/columns/items/properties/header/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var valid20 = _errs108 === errors;}else {var valid20 = true;}if(valid20){if(data41.align !== undefined){let data44 = data41.align;const _errs110 = errors;if(!((data44 === "left") || (data44 === "right"))){const err71 = {instancePath:instancePath+"/columns/" + i1+"/align",schemaPath:"#/$defs/table/properties/columns/items/properties/align/enum",keyword:"enum",params:{allowedValues: schema26.properties.columns.items.properties.align.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var valid20 = _errs110 === errors;}else {var valid20 = true;}}}}}}else {const err72 = {instancePath:instancePath+"/columns/" + i1,schemaPath:"#/$defs/table/properties/columns/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}var valid19 = _errs103 === errors;if(!valid19){break;}}}}else {const err73 = {instancePath:instancePath+"/columns",schemaPath:"#/$defs/table/properties/columns/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}var valid18 = _errs101 === errors;}else {var valid18 = true;}if(valid18){if(data.rows !== undefined){let data45 = data.rows;const _errs111 = errors;if(errors === _errs111){if(Array.isArray(data45)){var valid21 = true;const len2 = data45.length;for(let i2=0; i2<len2; i2++){let data46 = data45[i2];const _errs113 = errors;if(errors === _errs113){if(data46 && typeof data46 == "object" && !Array.isArray(data46)){for(const key10 in data46){let data47 = data46[key10];const _errs116 = errors;if((((typeof data47 !== "string") && (!((typeof data47 == "number") && (isFinite(data47))))) && (typeof data47 !== "boolean")) && (data47 !== null)){const err74 = {instancePath:instancePath+"/rows/" + i2+"/" + key10.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/$defs/table/properties/rows/items/additionalProperties/type",keyword:"type",params:{type: schema26.properties.rows.items.additionalProperties.type},message:"must be string,number,boolean,null"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var valid22 = _errs116 === errors;if(!valid22){break;}}}else {const err75 = {instancePath:instancePath+"/rows/" + i2,schemaPath:"#/$defs/table/properties/rows/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}var valid21 = _errs113 === errors;if(!valid21){break;}}}else {const err76 = {instancePath:instancePath+"/rows",schemaPath:"#/$defs/table/properties/rows/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}var valid18 = _errs111 === errors;}else {var valid18 = true;}if(valid18){if(data.caption !== undefined){const _errs118 = errors;if(typeof data.caption !== "string"){const err77 = {instancePath:instancePath+"/caption",schemaPath:"#/$defs/table/properties/caption/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var valid18 = _errs118 === errors;}else {var valid18 = true;}}}}}}}}else {const err78 = {instancePath,schemaPath:"#/$defs/table/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}var _valid0 = _errs94 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 7];}else {if(_valid0){valid0 = true;passing0 = 7;}const _errs120 = errors;if(!(validate25(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}var _valid0 = _errs120 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 8];}else {if(_valid0){valid0 = true;passing0 = 8;}const _errs121 = errors;const _errs122 = errors;if(errors === _errs122){if(data && typeof data == "object" && !Array.isArray(data)){let missing10;if((data.type === undefined) && (missing10 = "type")){const err79 = {instancePath,schemaPath:"#/$defs/separator/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}else {const _errs124 = errors;for(const key11 in data){if(!(((key11 === "type") || (key11 === "id")) || (key11 === "label"))){const err80 = {instancePath,schemaPath:"#/$defs/separator/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;break;}}if(_errs124 === errors){if(data.type !== undefined){const _errs125 = errors;if("separator" !== data.type){const err81 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/separator/properties/type/const",keyword:"const",params:{allowedValue: "separator"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var valid24 = _errs125 === errors;}else {var valid24 = true;}if(valid24){if(data.id !== undefined){const _errs126 = errors;if(typeof data.id !== "string"){const err82 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/separator/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var valid24 = _errs126 === errors;}else {var valid24 = true;}if(valid24){if(data.label !== undefined){const _errs128 = errors;if(typeof data.label !== "string"){const err83 = {instancePath:instancePath+"/label",schemaPath:"#/$defs/separator/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var valid24 = _errs128 === errors;}else {var valid24 = true;}}}}}}else {const err84 = {instancePath,schemaPath:"#/$defs/separator/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}var _valid0 = _errs121 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 9];}else {if(_valid0){valid0 = true;passing0 = 9;}const _errs130 = errors;if(!(wrapper0.validate(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? wrapper0.validate.errors : vErrors.concat(wrapper0.validate.errors);errors = vErrors.length;}var _valid0 = _errs130 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 10];}else {if(_valid0){valid0 = true;passing0 = 10;}const _errs131 = errors;if(!(validate27(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);errors = vErrors.length;}var _valid0 = _errs131 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 11];}else {if(_valid0){valid0 = true;passing0 = 11;}const _errs132 = errors;if(!(validate29(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate29.errors : vErrors.concat(validate29.errors);errors = vErrors.length;}var _valid0 = _errs132 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 12];}else {if(_valid0){valid0 = true;passing0 = 12;}}}}}}}}}}}}}if(!valid0){const err85 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;validate24.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate24.errors = vErrors;return errors === 0;}function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.children === undefined) && (missing0 = "children"))){validate23.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!(((((((key0 === "type") || (key0 === "id")) || (key0 === "direction")) || (key0 === "gap")) || (key0 === "align")) || (key0 === "wrap")) || (key0 === "children"))){validate23.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){const _errs2 = errors;if("stack" !== data.type){validate23.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "stack"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){const _errs3 = errors;if(typeof data.id !== "string"){validate23.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.direction !== undefined){let data2 = data.direction;const _errs5 = errors;if(!((data2 === "row") || (data2 === "column"))){validate23.errors = [{instancePath:instancePath+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues: schema33.properties.direction.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.gap !== undefined){let data3 = data.gap;const _errs6 = errors;if(!(((data3 === "sm") || (data3 === "md")) || (data3 === "lg"))){validate23.errors = [{instancePath:instancePath+"/gap",schemaPath:"#/properties/gap/enum",keyword:"enum",params:{allowedValues: schema33.properties.gap.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.align !== undefined){let data4 = data.align;const _errs7 = errors;if(!((((data4 === "start") || (data4 === "center")) || (data4 === "end")) || (data4 === "stretch"))){validate23.errors = [{instancePath:instancePath+"/align",schemaPath:"#/properties/align/enum",keyword:"enum",params:{allowedValues: schema33.properties.align.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.wrap !== undefined){const _errs8 = errors;if(typeof data.wrap !== "boolean"){validate23.errors = [{instancePath:instancePath+"/wrap",schemaPath:"#/properties/wrap/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.children !== undefined){let data6 = data.children;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data6)){if(data6.length < 1){validate23.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data6.length;for(let i0=0; i0<len0; i0++){const _errs12 = errors;if(!(validate24(data6[i0], {instancePath:instancePath+"/children/" + i0,parentData:data6,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);errors = vErrors.length;}var valid1 = _errs12 === errors;if(!valid1){break;}}}}else {validate23.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs10 === errors;}else {var valid0 = true;}}}}}}}}}}else {validate23.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate23.errors = vErrors;return errors === 0;}function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://tangle.tools/openui/stack" */;let vErrors = null;let errors = 0;if(!(validate23(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);errors = vErrors.length;}validate22.errors = vErrors;return errors === 0;}export const grid = validate33;const schema50 = {"$id":"https://tangle.tools/openui/grid","$ref":"#/$defs/grid","$defs":{"node":{"oneOf":[{"$ref":"#/$defs/heading"},{"$ref":"#/$defs/text"},{"$ref":"#/$defs/badge"},{"$ref":"#/$defs/stat"},{"$ref":"#/$defs/key_value"},{"$ref":"#/$defs/code"},{"$ref":"#/$defs/markdown"},{"$ref":"#/$defs/table"},{"$ref":"#/$defs/actions"},{"$ref":"#/$defs/separator"},{"$ref":"#/$defs/stack"},{"$ref":"#/$defs/grid"},{"$ref":"#/$defs/card"}]},"action":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","outline","ghost","destructive"]},"disabled":{"type":"boolean"}},"additionalProperties":false},"heading":{"type":"object","required":["type","text"],"properties":{"type":{"const":"heading"},"id":{"type":"string"},"text":{"type":"string"},"level":{"enum":[1,2,3,4]},"kicker":{"type":"string"},"meta":{"type":"string"}},"additionalProperties":false},"text":{"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"id":{"type":"string"},"text":{"type":"string"},"tone":{"enum":["default","muted","success","warning","error"]},"mono":{"type":"boolean"}},"additionalProperties":false},"badge":{"type":"object","required":["type","label"],"properties":{"type":{"const":"badge"},"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","success","warning","error","info","sandbox"]}},"additionalProperties":false},"stat":{"type":"object","required":["type","label","value"],"properties":{"type":{"const":"stat"},"id":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"tone":{"enum":["default","success","warning","error","info"]}},"additionalProperties":false},"key_value":{"type":"object","required":["type","items"],"properties":{"type":{"const":"key_value"},"id":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["label","value"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"tone":{"enum":["default","muted"]}},"additionalProperties":false}}},"additionalProperties":false},"code":{"type":"object","required":["type","code"],"properties":{"type":{"const":"code"},"id":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"showLineNumbers":{"type":"boolean"}},"additionalProperties":false},"markdown":{"type":"object","required":["type","content"],"properties":{"type":{"const":"markdown"},"id":{"type":"string"},"content":{"type":"string"}},"additionalProperties":false},"table":{"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"id":{"type":"string"},"columns":{"type":"array","minItems":1,"items":{"type":"object","required":["key","header"],"properties":{"key":{"type":"string"},"header":{"type":"string"},"align":{"enum":["left","right"]}},"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"caption":{"type":"string"}},"additionalProperties":false},"actions":{"type":"object","required":["type","actions"],"properties":{"type":{"const":"actions"},"id":{"type":"string"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}}},"additionalProperties":false},"separator":{"type":"object","required":["type"],"properties":{"type":{"const":"separator"},"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"stack":{"type":"object","required":["type","children"],"properties":{"type":{"const":"stack"},"id":{"type":"string"},"direction":{"enum":["row","column"]},"gap":{"enum":["sm","md","lg"]},"align":{"enum":["start","center","end","stretch"]},"wrap":{"type":"boolean"},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"grid":{"type":"object","required":["type","children"],"properties":{"type":{"const":"grid"},"id":{"type":"string"},"columns":{"enum":[1,2,3,4]},"gap":{"enum":["sm","md","lg"]},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"card":{"type":"object","required":["type"],"properties":{"type":{"const":"card"},"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"eyebrow":{"type":"string"},"badge":{"$ref":"#/$defs/badge"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false}}};function validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.actions === undefined) && (missing0 = "actions"))){validate36.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!(((key0 === "type") || (key0 === "id")) || (key0 === "actions"))){validate36.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){const _errs2 = errors;if("actions" !== data.type){validate36.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "actions"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){const _errs3 = errors;if(typeof data.id !== "string"){validate36.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.actions !== undefined){let data2 = data.actions;const _errs5 = errors;if(errors === _errs5){if(Array.isArray(data2)){if(data2.length < 1){validate36.errors = [{instancePath:instancePath+"/actions",schemaPath:"#/properties/actions/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.id === undefined) && (missing1 = "id")) || ((data3.label === undefined) && (missing1 = "label"))){validate36.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs10 = errors;for(const key1 in data3){if(!((((key1 === "id") || (key1 === "label")) || (key1 === "tone")) || (key1 === "disabled"))){validate36.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs10 === errors){if(data3.id !== undefined){const _errs11 = errors;if(typeof data3.id !== "string"){validate36.errors = [{instancePath:instancePath+"/actions/" + i0+"/id",schemaPath:"#/$defs/action/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs11 === errors;}else {var valid3 = true;}if(valid3){if(data3.label !== undefined){const _errs13 = errors;if(typeof data3.label !== "string"){validate36.errors = [{instancePath:instancePath+"/actions/" + i0+"/label",schemaPath:"#/$defs/action/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs13 === errors;}else {var valid3 = true;}if(valid3){if(data3.tone !== undefined){let data6 = data3.tone;const _errs15 = errors;if(!(((((data6 === "default") || (data6 === "secondary")) || (data6 === "outline")) || (data6 === "ghost")) || (data6 === "destructive"))){validate36.errors = [{instancePath:instancePath+"/actions/" + i0+"/tone",schemaPath:"#/$defs/action/properties/tone/enum",keyword:"enum",params:{allowedValues: schema29.properties.tone.enum},message:"must be equal to one of the allowed values"}];return false;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data3.disabled !== undefined){const _errs16 = errors;if(typeof data3.disabled !== "boolean"){validate36.errors = [{instancePath:instancePath+"/actions/" + i0+"/disabled",schemaPath:"#/$defs/action/properties/disabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid3 = _errs16 === errors;}else {var valid3 = true;}}}}}}}else {validate36.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs7 === errors;if(!valid1){break;}}}}else {validate36.errors = [{instancePath:instancePath+"/actions",schemaPath:"#/properties/actions/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate36.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate36.errors = vErrors;return errors === 0;}const wrapper3 = {validate: validate35};function validate38(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.children === undefined) && (missing0 = "children"))){validate38.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!(((((((key0 === "type") || (key0 === "id")) || (key0 === "direction")) || (key0 === "gap")) || (key0 === "align")) || (key0 === "wrap")) || (key0 === "children"))){validate38.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){const _errs2 = errors;if("stack" !== data.type){validate38.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "stack"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){const _errs3 = errors;if(typeof data.id !== "string"){validate38.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.direction !== undefined){let data2 = data.direction;const _errs5 = errors;if(!((data2 === "row") || (data2 === "column"))){validate38.errors = [{instancePath:instancePath+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues: schema33.properties.direction.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.gap !== undefined){let data3 = data.gap;const _errs6 = errors;if(!(((data3 === "sm") || (data3 === "md")) || (data3 === "lg"))){validate38.errors = [{instancePath:instancePath+"/gap",schemaPath:"#/properties/gap/enum",keyword:"enum",params:{allowedValues: schema33.properties.gap.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.align !== undefined){let data4 = data.align;const _errs7 = errors;if(!((((data4 === "start") || (data4 === "center")) || (data4 === "end")) || (data4 === "stretch"))){validate38.errors = [{instancePath:instancePath+"/align",schemaPath:"#/properties/align/enum",keyword:"enum",params:{allowedValues: schema33.properties.align.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.wrap !== undefined){const _errs8 = errors;if(typeof data.wrap !== "boolean"){validate38.errors = [{instancePath:instancePath+"/wrap",schemaPath:"#/properties/wrap/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.children !== undefined){let data6 = data.children;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data6)){if(data6.length < 1){validate38.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data6.length;for(let i0=0; i0<len0; i0++){const _errs12 = errors;if(!(wrapper3.validate(data6[i0], {instancePath:instancePath+"/children/" + i0,parentData:data6,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? wrapper3.validate.errors : vErrors.concat(wrapper3.validate.errors);errors = vErrors.length;}var valid1 = _errs12 === errors;if(!valid1){break;}}}}else {validate38.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs10 === errors;}else {var valid0 = true;}}}}}}}}}}else {validate38.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate38.errors = vErrors;return errors === 0;}function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.type === undefined) && (missing0 = "type")){validate40.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!((((((((key0 === "type") || (key0 === "id")) || (key0 === "title")) || (key0 === "description")) || (key0 === "eyebrow")) || (key0 === "badge")) || (key0 === "actions")) || (key0 === "children"))){validate40.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){const _errs2 = errors;if("card" !== data.type){validate40.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "card"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){const _errs3 = errors;if(typeof data.id !== "string"){validate40.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.title !== undefined){const _errs5 = errors;if(typeof data.title !== "string"){validate40.errors = [{instancePath:instancePath+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.description !== undefined){const _errs7 = errors;if(typeof data.description !== "string"){validate40.errors = [{instancePath:instancePath+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.eyebrow !== undefined){const _errs9 = errors;if(typeof data.eyebrow !== "string"){validate40.errors = [{instancePath:instancePath+"/eyebrow",schemaPath:"#/properties/eyebrow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.badge !== undefined){let data5 = data.badge;const _errs11 = errors;const _errs12 = errors;if(errors === _errs12){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing1;if(((data5.type === undefined) && (missing1 = "type")) || ((data5.label === undefined) && (missing1 = "label"))){validate40.errors = [{instancePath:instancePath+"/badge",schemaPath:"#/$defs/badge/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs14 = errors;for(const key1 in data5){if(!((((key1 === "type") || (key1 === "id")) || (key1 === "label")) || (key1 === "tone"))){validate40.errors = [{instancePath:instancePath+"/badge",schemaPath:"#/$defs/badge/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs14 === errors){if(data5.type !== undefined){const _errs15 = errors;if("badge" !== data5.type){validate40.errors = [{instancePath:instancePath+"/badge/type",schemaPath:"#/$defs/badge/properties/type/const",keyword:"const",params:{allowedValue: "badge"},message:"must be equal to constant"}];return false;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data5.id !== undefined){const _errs16 = errors;if(typeof data5.id !== "string"){validate40.errors = [{instancePath:instancePath+"/badge/id",schemaPath:"#/$defs/badge/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs16 === errors;}else {var valid2 = true;}if(valid2){if(data5.label !== undefined){const _errs18 = errors;if(typeof data5.label !== "string"){validate40.errors = [{instancePath:instancePath+"/badge/label",schemaPath:"#/$defs/badge/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs18 === errors;}else {var valid2 = true;}if(valid2){if(data5.tone !== undefined){let data9 = data5.tone;const _errs20 = errors;if(!(((((((data9 === "default") || (data9 === "secondary")) || (data9 === "success")) || (data9 === "warning")) || (data9 === "error")) || (data9 === "info")) || (data9 === "sandbox"))){validate40.errors = [{instancePath:instancePath+"/badge/tone",schemaPath:"#/$defs/badge/properties/tone/enum",keyword:"enum",params:{allowedValues: schema16.properties.tone.enum},message:"must be equal to one of the allowed values"}];return false;}var valid2 = _errs20 === errors;}else {var valid2 = true;}}}}}}}else {validate40.errors = [{instancePath:instancePath+"/badge",schemaPath:"#/$defs/badge/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.actions !== undefined){let data10 = data.actions;const _errs21 = errors;if(errors === _errs21){if(Array.isArray(data10)){if(data10.length < 1){validate40.errors = [{instancePath:instancePath+"/actions",schemaPath:"#/properties/actions/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid3 = true;const len0 = data10.length;for(let i0=0; i0<len0; i0++){let data11 = data10[i0];const _errs23 = errors;const _errs24 = errors;if(errors === _errs24){if(data11 && typeof data11 == "object" && !Array.isArray(data11)){let missing2;if(((data11.id === undefined) && (missing2 = "id")) || ((data11.label === undefined) && (missing2 = "label"))){validate40.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {const _errs26 = errors;for(const key2 in data11){if(!((((key2 === "id") || (key2 === "label")) || (key2 === "tone")) || (key2 === "disabled"))){validate40.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"}];return false;break;}}if(_errs26 === errors){if(data11.id !== undefined){const _errs27 = errors;if(typeof data11.id !== "string"){validate40.errors = [{instancePath:instancePath+"/actions/" + i0+"/id",schemaPath:"#/$defs/action/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs27 === errors;}else {var valid5 = true;}if(valid5){if(data11.label !== undefined){const _errs29 = errors;if(typeof data11.label !== "string"){validate40.errors = [{instancePath:instancePath+"/actions/" + i0+"/label",schemaPath:"#/$defs/action/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs29 === errors;}else {var valid5 = true;}if(valid5){if(data11.tone !== undefined){let data14 = data11.tone;const _errs31 = errors;if(!(((((data14 === "default") || (data14 === "secondary")) || (data14 === "outline")) || (data14 === "ghost")) || (data14 === "destructive"))){validate40.errors = [{instancePath:instancePath+"/actions/" + i0+"/tone",schemaPath:"#/$defs/action/properties/tone/enum",keyword:"enum",params:{allowedValues: schema29.properties.tone.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs31 === errors;}else {var valid5 = true;}if(valid5){if(data11.disabled !== undefined){const _errs32 = errors;if(typeof data11.disabled !== "boolean"){validate40.errors = [{instancePath:instancePath+"/actions/" + i0+"/disabled",schemaPath:"#/$defs/action/properties/disabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid5 = _errs32 === errors;}else {var valid5 = true;}}}}}}}else {validate40.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs23 === errors;if(!valid3){break;}}}}else {validate40.errors = [{instancePath:instancePath+"/actions",schemaPath:"#/properties/actions/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.children !== undefined){let data16 = data.children;const _errs34 = errors;if(errors === _errs34){if(Array.isArray(data16)){if(data16.length < 1){validate40.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid6 = true;const len1 = data16.length;for(let i1=0; i1<len1; i1++){const _errs36 = errors;if(!(wrapper3.validate(data16[i1], {instancePath:instancePath+"/children/" + i1,parentData:data16,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? wrapper3.validate.errors : vErrors.concat(wrapper3.validate.errors);errors = vErrors.length;}var valid6 = _errs36 === errors;if(!valid6){break;}}}}else {validate40.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs34 === errors;}else {var valid0 = true;}}}}}}}}}}}else {validate40.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate40.errors = vErrors;return errors === 0;}const wrapper4 = {validate: validate34};function validate35(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.text === undefined) && (missing0 = "text"))){const err0 = {instancePath,schemaPath:"#/$defs/heading/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {const _errs4 = errors;for(const key0 in data){if(!((((((key0 === "type") || (key0 === "id")) || (key0 === "text")) || (key0 === "level")) || (key0 === "kicker")) || (key0 === "meta"))){const err1 = {instancePath,schemaPath:"#/$defs/heading/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;break;}}if(_errs4 === errors){if(data.type !== undefined){const _errs5 = errors;if("heading" !== data.type){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/heading/properties/type/const",keyword:"const",params:{allowedValue: "heading"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid2 = _errs5 === errors;}else {var valid2 = true;}if(valid2){if(data.id !== undefined){const _errs6 = errors;if(typeof data.id !== "string"){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/heading/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid2 = _errs6 === errors;}else {var valid2 = true;}if(valid2){if(data.text !== undefined){const _errs8 = errors;if(typeof data.text !== "string"){const err4 = {instancePath:instancePath+"/text",schemaPath:"#/$defs/heading/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid2 = _errs8 === errors;}else {var valid2 = true;}if(valid2){if(data.level !== undefined){let data3 = data.level;const _errs10 = errors;if(!((((data3 === 1) || (data3 === 2)) || (data3 === 3)) || (data3 === 4))){const err5 = {instancePath:instancePath+"/level",schemaPath:"#/$defs/heading/properties/level/enum",keyword:"enum",params:{allowedValues: schema12.properties.level.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.kicker !== undefined){const _errs11 = errors;if(typeof data.kicker !== "string"){const err6 = {instancePath:instancePath+"/kicker",schemaPath:"#/$defs/heading/properties/kicker/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.meta !== undefined){const _errs13 = errors;if(typeof data.meta !== "string"){const err7 = {instancePath:instancePath+"/meta",schemaPath:"#/$defs/heading/properties/meta/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}}}}}}}}}else {const err8 = {instancePath,schemaPath:"#/$defs/heading/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs15 = errors;const _errs16 = errors;if(errors === _errs16){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((data.type === undefined) && (missing1 = "type")) || ((data.text === undefined) && (missing1 = "text"))){const err9 = {instancePath,schemaPath:"#/$defs/text/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {const _errs18 = errors;for(const key1 in data){if(!(((((key1 === "type") || (key1 === "id")) || (key1 === "text")) || (key1 === "tone")) || (key1 === "mono"))){const err10 = {instancePath,schemaPath:"#/$defs/text/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;break;}}if(_errs18 === errors){if(data.type !== undefined){const _errs19 = errors;if("text" !== data.type){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/text/properties/type/const",keyword:"const",params:{allowedValue: "text"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid4 = _errs19 === errors;}else {var valid4 = true;}if(valid4){if(data.id !== undefined){const _errs20 = errors;if(typeof data.id !== "string"){const err12 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/text/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid4 = _errs20 === errors;}else {var valid4 = true;}if(valid4){if(data.text !== undefined){const _errs22 = errors;if(typeof data.text !== "string"){const err13 = {instancePath:instancePath+"/text",schemaPath:"#/$defs/text/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid4 = _errs22 === errors;}else {var valid4 = true;}if(valid4){if(data.tone !== undefined){let data9 = data.tone;const _errs24 = errors;if(!(((((data9 === "default") || (data9 === "muted")) || (data9 === "success")) || (data9 === "warning")) || (data9 === "error"))){const err14 = {instancePath:instancePath+"/tone",schemaPath:"#/$defs/text/properties/tone/enum",keyword:"enum",params:{allowedValues: schema14.properties.tone.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid4 = _errs24 === errors;}else {var valid4 = true;}if(valid4){if(data.mono !== undefined){const _errs25 = errors;if(typeof data.mono !== "boolean"){const err15 = {instancePath:instancePath+"/mono",schemaPath:"#/$defs/text/properties/mono/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid4 = _errs25 === errors;}else {var valid4 = true;}}}}}}}}else {const err16 = {instancePath,schemaPath:"#/$defs/text/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}var _valid0 = _errs15 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}const _errs27 = errors;const _errs28 = errors;if(errors === _errs28){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((data.type === undefined) && (missing2 = "type")) || ((data.label === undefined) && (missing2 = "label"))){const err17 = {instancePath,schemaPath:"#/$defs/badge/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {const _errs30 = errors;for(const key2 in data){if(!((((key2 === "type") || (key2 === "id")) || (key2 === "label")) || (key2 === "tone"))){const err18 = {instancePath,schemaPath:"#/$defs/badge/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;break;}}if(_errs30 === errors){if(data.type !== undefined){const _errs31 = errors;if("badge" !== data.type){const err19 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/badge/properties/type/const",keyword:"const",params:{allowedValue: "badge"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid6 = _errs31 === errors;}else {var valid6 = true;}if(valid6){if(data.id !== undefined){const _errs32 = errors;if(typeof data.id !== "string"){const err20 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/badge/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid6 = _errs32 === errors;}else {var valid6 = true;}if(valid6){if(data.label !== undefined){const _errs34 = errors;if(typeof data.label !== "string"){const err21 = {instancePath:instancePath+"/label",schemaPath:"#/$defs/badge/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid6 = _errs34 === errors;}else {var valid6 = true;}if(valid6){if(data.tone !== undefined){let data14 = data.tone;const _errs36 = errors;if(!(((((((data14 === "default") || (data14 === "secondary")) || (data14 === "success")) || (data14 === "warning")) || (data14 === "error")) || (data14 === "info")) || (data14 === "sandbox"))){const err22 = {instancePath:instancePath+"/tone",schemaPath:"#/$defs/badge/properties/tone/enum",keyword:"enum",params:{allowedValues: schema16.properties.tone.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid6 = _errs36 === errors;}else {var valid6 = true;}}}}}}}else {const err23 = {instancePath,schemaPath:"#/$defs/badge/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}var _valid0 = _errs27 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;}const _errs37 = errors;const _errs38 = errors;if(errors === _errs38){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((data.type === undefined) && (missing3 = "type")) || ((data.label === undefined) && (missing3 = "label"))) || ((data.value === undefined) && (missing3 = "value"))){const err24 = {instancePath,schemaPath:"#/$defs/stat/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}else {const _errs40 = errors;for(const key3 in data){if(!((((((key3 === "type") || (key3 === "id")) || (key3 === "label")) || (key3 === "value")) || (key3 === "change")) || (key3 === "tone"))){const err25 = {instancePath,schemaPath:"#/$defs/stat/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;break;}}if(_errs40 === errors){if(data.type !== undefined){const _errs41 = errors;if("stat" !== data.type){const err26 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/stat/properties/type/const",keyword:"const",params:{allowedValue: "stat"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid8 = _errs41 === errors;}else {var valid8 = true;}if(valid8){if(data.id !== undefined){const _errs42 = errors;if(typeof data.id !== "string"){const err27 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/stat/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid8 = _errs42 === errors;}else {var valid8 = true;}if(valid8){if(data.label !== undefined){const _errs44 = errors;if(typeof data.label !== "string"){const err28 = {instancePath:instancePath+"/label",schemaPath:"#/$defs/stat/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid8 = _errs44 === errors;}else {var valid8 = true;}if(valid8){if(data.value !== undefined){const _errs46 = errors;if(typeof data.value !== "string"){const err29 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/stat/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid8 = _errs46 === errors;}else {var valid8 = true;}if(valid8){if(data.change !== undefined){const _errs48 = errors;if(typeof data.change !== "string"){const err30 = {instancePath:instancePath+"/change",schemaPath:"#/$defs/stat/properties/change/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid8 = _errs48 === errors;}else {var valid8 = true;}if(valid8){if(data.tone !== undefined){let data20 = data.tone;const _errs50 = errors;if(!(((((data20 === "default") || (data20 === "success")) || (data20 === "warning")) || (data20 === "error")) || (data20 === "info"))){const err31 = {instancePath:instancePath+"/tone",schemaPath:"#/$defs/stat/properties/tone/enum",keyword:"enum",params:{allowedValues: schema18.properties.tone.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var valid8 = _errs50 === errors;}else {var valid8 = true;}}}}}}}}}else {const err32 = {instancePath,schemaPath:"#/$defs/stat/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var _valid0 = _errs37 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;}const _errs51 = errors;const _errs52 = errors;if(errors === _errs52){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((data.type === undefined) && (missing4 = "type")) || ((data.items === undefined) && (missing4 = "items"))){const err33 = {instancePath,schemaPath:"#/$defs/key_value/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const _errs54 = errors;for(const key4 in data){if(!(((key4 === "type") || (key4 === "id")) || (key4 === "items"))){const err34 = {instancePath,schemaPath:"#/$defs/key_value/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;break;}}if(_errs54 === errors){if(data.type !== undefined){const _errs55 = errors;if("key_value" !== data.type){const err35 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/key_value/properties/type/const",keyword:"const",params:{allowedValue: "key_value"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid10 = _errs55 === errors;}else {var valid10 = true;}if(valid10){if(data.id !== undefined){const _errs56 = errors;if(typeof data.id !== "string"){const err36 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/key_value/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid10 = _errs56 === errors;}else {var valid10 = true;}if(valid10){if(data.items !== undefined){let data23 = data.items;const _errs58 = errors;if(errors === _errs58){if(Array.isArray(data23)){if(data23.length < 1){const err37 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/key_value/properties/items/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {var valid11 = true;const len0 = data23.length;for(let i0=0; i0<len0; i0++){let data24 = data23[i0];const _errs60 = errors;if(errors === _errs60){if(data24 && typeof data24 == "object" && !Array.isArray(data24)){let missing5;if(((data24.label === undefined) && (missing5 = "label")) || ((data24.value === undefined) && (missing5 = "value"))){const err38 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/key_value/properties/items/items/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {const _errs62 = errors;for(const key5 in data24){if(!((((key5 === "id") || (key5 === "label")) || (key5 === "value")) || (key5 === "tone"))){const err39 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/key_value/properties/items/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;break;}}if(_errs62 === errors){if(data24.id !== undefined){const _errs63 = errors;if(typeof data24.id !== "string"){const err40 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"#/$defs/key_value/properties/items/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid12 = _errs63 === errors;}else {var valid12 = true;}if(valid12){if(data24.label !== undefined){const _errs65 = errors;if(typeof data24.label !== "string"){const err41 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"#/$defs/key_value/properties/items/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid12 = _errs65 === errors;}else {var valid12 = true;}if(valid12){if(data24.value !== undefined){let data27 = data24.value;const _errs67 = errors;if((((typeof data27 !== "string") && (!((typeof data27 == "number") && (isFinite(data27))))) && (typeof data27 !== "boolean")) && (data27 !== null)){const err42 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"#/$defs/key_value/properties/items/items/properties/value/type",keyword:"type",params:{type: schema20.properties.items.items.properties.value.type},message:"must be string,number,boolean,null"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var valid12 = _errs67 === errors;}else {var valid12 = true;}if(valid12){if(data24.tone !== undefined){let data28 = data24.tone;const _errs69 = errors;if(!((data28 === "default") || (data28 === "muted"))){const err43 = {instancePath:instancePath+"/items/" + i0+"/tone",schemaPath:"#/$defs/key_value/properties/items/items/properties/tone/enum",keyword:"enum",params:{allowedValues: schema20.properties.items.items.properties.tone.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid12 = _errs69 === errors;}else {var valid12 = true;}}}}}}}else {const err44 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/key_value/properties/items/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}var valid11 = _errs60 === errors;if(!valid11){break;}}}}else {const err45 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/key_value/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}var valid10 = _errs58 === errors;}else {var valid10 = true;}}}}}}else {const err46 = {instancePath,schemaPath:"#/$defs/key_value/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}var _valid0 = _errs51 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 4];}else {if(_valid0){valid0 = true;passing0 = 4;}const _errs70 = errors;const _errs71 = errors;if(errors === _errs71){if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if(((data.type === undefined) && (missing6 = "type")) || ((data.code === undefined) && (missing6 = "code"))){const err47 = {instancePath,schemaPath:"#/$defs/code/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {const _errs73 = errors;for(const key6 in data){if(!((((((key6 === "type") || (key6 === "id")) || (key6 === "code")) || (key6 === "language")) || (key6 === "title")) || (key6 === "showLineNumbers"))){const err48 = {instancePath,schemaPath:"#/$defs/code/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;break;}}if(_errs73 === errors){if(data.type !== undefined){const _errs74 = errors;if("code" !== data.type){const err49 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/code/properties/type/const",keyword:"const",params:{allowedValue: "code"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid14 = _errs74 === errors;}else {var valid14 = true;}if(valid14){if(data.id !== undefined){const _errs75 = errors;if(typeof data.id !== "string"){const err50 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/code/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid14 = _errs75 === errors;}else {var valid14 = true;}if(valid14){if(data.code !== undefined){const _errs77 = errors;if(typeof data.code !== "string"){const err51 = {instancePath:instancePath+"/code",schemaPath:"#/$defs/code/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid14 = _errs77 === errors;}else {var valid14 = true;}if(valid14){if(data.language !== undefined){const _errs79 = errors;if(typeof data.language !== "string"){const err52 = {instancePath:instancePath+"/language",schemaPath:"#/$defs/code/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var valid14 = _errs79 === errors;}else {var valid14 = true;}if(valid14){if(data.title !== undefined){const _errs81 = errors;if(typeof data.title !== "string"){const err53 = {instancePath:instancePath+"/title",schemaPath:"#/$defs/code/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid14 = _errs81 === errors;}else {var valid14 = true;}if(valid14){if(data.showLineNumbers !== undefined){const _errs83 = errors;if(typeof data.showLineNumbers !== "boolean"){const err54 = {instancePath:instancePath+"/showLineNumbers",schemaPath:"#/$defs/code/properties/showLineNumbers/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}var valid14 = _errs83 === errors;}else {var valid14 = true;}}}}}}}}}else {const err55 = {instancePath,schemaPath:"#/$defs/code/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var _valid0 = _errs70 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 5];}else {if(_valid0){valid0 = true;passing0 = 5;}const _errs85 = errors;const _errs86 = errors;if(errors === _errs86){if(data && typeof data == "object" && !Array.isArray(data)){let missing7;if(((data.type === undefined) && (missing7 = "type")) || ((data.content === undefined) && (missing7 = "content"))){const err56 = {instancePath,schemaPath:"#/$defs/markdown/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}else {const _errs88 = errors;for(const key7 in data){if(!(((key7 === "type") || (key7 === "id")) || (key7 === "content"))){const err57 = {instancePath,schemaPath:"#/$defs/markdown/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;break;}}if(_errs88 === errors){if(data.type !== undefined){const _errs89 = errors;if("markdown" !== data.type){const err58 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/markdown/properties/type/const",keyword:"const",params:{allowedValue: "markdown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid16 = _errs89 === errors;}else {var valid16 = true;}if(valid16){if(data.id !== undefined){const _errs90 = errors;if(typeof data.id !== "string"){const err59 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/markdown/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid16 = _errs90 === errors;}else {var valid16 = true;}if(valid16){if(data.content !== undefined){const _errs92 = errors;if(typeof data.content !== "string"){const err60 = {instancePath:instancePath+"/content",schemaPath:"#/$defs/markdown/properties/content/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid16 = _errs92 === errors;}else {var valid16 = true;}}}}}}else {const err61 = {instancePath,schemaPath:"#/$defs/markdown/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}var _valid0 = _errs85 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 6];}else {if(_valid0){valid0 = true;passing0 = 6;}const _errs94 = errors;const _errs95 = errors;if(errors === _errs95){if(data && typeof data == "object" && !Array.isArray(data)){let missing8;if((((data.type === undefined) && (missing8 = "type")) || ((data.columns === undefined) && (missing8 = "columns"))) || ((data.rows === undefined) && (missing8 = "rows"))){const err62 = {instancePath,schemaPath:"#/$defs/table/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {const _errs97 = errors;for(const key8 in data){if(!(((((key8 === "type") || (key8 === "id")) || (key8 === "columns")) || (key8 === "rows")) || (key8 === "caption"))){const err63 = {instancePath,schemaPath:"#/$defs/table/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;break;}}if(_errs97 === errors){if(data.type !== undefined){const _errs98 = errors;if("table" !== data.type){const err64 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/table/properties/type/const",keyword:"const",params:{allowedValue: "table"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var valid18 = _errs98 === errors;}else {var valid18 = true;}if(valid18){if(data.id !== undefined){const _errs99 = errors;if(typeof data.id !== "string"){const err65 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/table/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var valid18 = _errs99 === errors;}else {var valid18 = true;}if(valid18){if(data.columns !== undefined){let data40 = data.columns;const _errs101 = errors;if(errors === _errs101){if(Array.isArray(data40)){if(data40.length < 1){const err66 = {instancePath:instancePath+"/columns",schemaPath:"#/$defs/table/properties/columns/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {var valid19 = true;const len1 = data40.length;for(let i1=0; i1<len1; i1++){let data41 = data40[i1];const _errs103 = errors;if(errors === _errs103){if(data41 && typeof data41 == "object" && !Array.isArray(data41)){let missing9;if(((data41.key === undefined) && (missing9 = "key")) || ((data41.header === undefined) && (missing9 = "header"))){const err67 = {instancePath:instancePath+"/columns/" + i1,schemaPath:"#/$defs/table/properties/columns/items/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}else {const _errs105 = errors;for(const key9 in data41){if(!(((key9 === "key") || (key9 === "header")) || (key9 === "align"))){const err68 = {instancePath:instancePath+"/columns/" + i1,schemaPath:"#/$defs/table/properties/columns/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;break;}}if(_errs105 === errors){if(data41.key !== undefined){const _errs106 = errors;if(typeof data41.key !== "string"){const err69 = {instancePath:instancePath+"/columns/" + i1+"/key",schemaPath:"#/$defs/table/properties/columns/items/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}var valid20 = _errs106 === errors;}else {var valid20 = true;}if(valid20){if(data41.header !== undefined){const _errs108 = errors;if(typeof data41.header !== "string"){const err70 = {instancePath:instancePath+"/columns/" + i1+"/header",schemaPath:"#/$defs/table/properties/columns/items/properties/header/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var valid20 = _errs108 === errors;}else {var valid20 = true;}if(valid20){if(data41.align !== undefined){let data44 = data41.align;const _errs110 = errors;if(!((data44 === "left") || (data44 === "right"))){const err71 = {instancePath:instancePath+"/columns/" + i1+"/align",schemaPath:"#/$defs/table/properties/columns/items/properties/align/enum",keyword:"enum",params:{allowedValues: schema26.properties.columns.items.properties.align.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var valid20 = _errs110 === errors;}else {var valid20 = true;}}}}}}else {const err72 = {instancePath:instancePath+"/columns/" + i1,schemaPath:"#/$defs/table/properties/columns/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}var valid19 = _errs103 === errors;if(!valid19){break;}}}}else {const err73 = {instancePath:instancePath+"/columns",schemaPath:"#/$defs/table/properties/columns/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}var valid18 = _errs101 === errors;}else {var valid18 = true;}if(valid18){if(data.rows !== undefined){let data45 = data.rows;const _errs111 = errors;if(errors === _errs111){if(Array.isArray(data45)){var valid21 = true;const len2 = data45.length;for(let i2=0; i2<len2; i2++){let data46 = data45[i2];const _errs113 = errors;if(errors === _errs113){if(data46 && typeof data46 == "object" && !Array.isArray(data46)){for(const key10 in data46){let data47 = data46[key10];const _errs116 = errors;if((((typeof data47 !== "string") && (!((typeof data47 == "number") && (isFinite(data47))))) && (typeof data47 !== "boolean")) && (data47 !== null)){const err74 = {instancePath:instancePath+"/rows/" + i2+"/" + key10.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/$defs/table/properties/rows/items/additionalProperties/type",keyword:"type",params:{type: schema26.properties.rows.items.additionalProperties.type},message:"must be string,number,boolean,null"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var valid22 = _errs116 === errors;if(!valid22){break;}}}else {const err75 = {instancePath:instancePath+"/rows/" + i2,schemaPath:"#/$defs/table/properties/rows/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}var valid21 = _errs113 === errors;if(!valid21){break;}}}else {const err76 = {instancePath:instancePath+"/rows",schemaPath:"#/$defs/table/properties/rows/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}var valid18 = _errs111 === errors;}else {var valid18 = true;}if(valid18){if(data.caption !== undefined){const _errs118 = errors;if(typeof data.caption !== "string"){const err77 = {instancePath:instancePath+"/caption",schemaPath:"#/$defs/table/properties/caption/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var valid18 = _errs118 === errors;}else {var valid18 = true;}}}}}}}}else {const err78 = {instancePath,schemaPath:"#/$defs/table/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}var _valid0 = _errs94 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 7];}else {if(_valid0){valid0 = true;passing0 = 7;}const _errs120 = errors;if(!(validate36(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);errors = vErrors.length;}var _valid0 = _errs120 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 8];}else {if(_valid0){valid0 = true;passing0 = 8;}const _errs121 = errors;const _errs122 = errors;if(errors === _errs122){if(data && typeof data == "object" && !Array.isArray(data)){let missing10;if((data.type === undefined) && (missing10 = "type")){const err79 = {instancePath,schemaPath:"#/$defs/separator/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}else {const _errs124 = errors;for(const key11 in data){if(!(((key11 === "type") || (key11 === "id")) || (key11 === "label"))){const err80 = {instancePath,schemaPath:"#/$defs/separator/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;break;}}if(_errs124 === errors){if(data.type !== undefined){const _errs125 = errors;if("separator" !== data.type){const err81 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/separator/properties/type/const",keyword:"const",params:{allowedValue: "separator"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var valid24 = _errs125 === errors;}else {var valid24 = true;}if(valid24){if(data.id !== undefined){const _errs126 = errors;if(typeof data.id !== "string"){const err82 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/separator/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var valid24 = _errs126 === errors;}else {var valid24 = true;}if(valid24){if(data.label !== undefined){const _errs128 = errors;if(typeof data.label !== "string"){const err83 = {instancePath:instancePath+"/label",schemaPath:"#/$defs/separator/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var valid24 = _errs128 === errors;}else {var valid24 = true;}}}}}}else {const err84 = {instancePath,schemaPath:"#/$defs/separator/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}var _valid0 = _errs121 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 9];}else {if(_valid0){valid0 = true;passing0 = 9;}const _errs130 = errors;if(!(validate38(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);errors = vErrors.length;}var _valid0 = _errs130 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 10];}else {if(_valid0){valid0 = true;passing0 = 10;}const _errs131 = errors;if(!(wrapper4.validate(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? wrapper4.validate.errors : vErrors.concat(wrapper4.validate.errors);errors = vErrors.length;}var _valid0 = _errs131 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 11];}else {if(_valid0){valid0 = true;passing0 = 11;}const _errs132 = errors;if(!(validate40(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}var _valid0 = _errs132 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 12];}else {if(_valid0){valid0 = true;passing0 = 12;}}}}}}}}}}}}}if(!valid0){const err85 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;validate35.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate35.errors = vErrors;return errors === 0;}function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.children === undefined) && (missing0 = "children"))){validate34.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!(((((key0 === "type") || (key0 === "id")) || (key0 === "columns")) || (key0 === "gap")) || (key0 === "children"))){validate34.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){const _errs2 = errors;if("grid" !== data.type){validate34.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "grid"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){const _errs3 = errors;if(typeof data.id !== "string"){validate34.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.columns !== undefined){let data2 = data.columns;const _errs5 = errors;if(!((((data2 === 1) || (data2 === 2)) || (data2 === 3)) || (data2 === 4))){validate34.errors = [{instancePath:instancePath+"/columns",schemaPath:"#/properties/columns/enum",keyword:"enum",params:{allowedValues: schema46.properties.columns.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.gap !== undefined){let data3 = data.gap;const _errs6 = errors;if(!(((data3 === "sm") || (data3 === "md")) || (data3 === "lg"))){validate34.errors = [{instancePath:instancePath+"/gap",schemaPath:"#/properties/gap/enum",keyword:"enum",params:{allowedValues: schema46.properties.gap.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.children !== undefined){let data4 = data.children;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data4)){if(data4.length < 1){validate34.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs9 = errors;if(!(validate35(data4[i0], {instancePath:instancePath+"/children/" + i0,parentData:data4,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);errors = vErrors.length;}var valid1 = _errs9 === errors;if(!valid1){break;}}}}else {validate34.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}}}else {validate34.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate34.errors = vErrors;return errors === 0;}function validate33(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://tangle.tools/openui/grid" */;let vErrors = null;let errors = 0;if(!(validate34(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);errors = vErrors.length;}validate33.errors = vErrors;return errors === 0;}export const card = validate44;const schema68 = {"$id":"https://tangle.tools/openui/card","$ref":"#/$defs/card","$defs":{"node":{"oneOf":[{"$ref":"#/$defs/heading"},{"$ref":"#/$defs/text"},{"$ref":"#/$defs/badge"},{"$ref":"#/$defs/stat"},{"$ref":"#/$defs/key_value"},{"$ref":"#/$defs/code"},{"$ref":"#/$defs/markdown"},{"$ref":"#/$defs/table"},{"$ref":"#/$defs/actions"},{"$ref":"#/$defs/separator"},{"$ref":"#/$defs/stack"},{"$ref":"#/$defs/grid"},{"$ref":"#/$defs/card"}]},"action":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","outline","ghost","destructive"]},"disabled":{"type":"boolean"}},"additionalProperties":false},"heading":{"type":"object","required":["type","text"],"properties":{"type":{"const":"heading"},"id":{"type":"string"},"text":{"type":"string"},"level":{"enum":[1,2,3,4]},"kicker":{"type":"string"},"meta":{"type":"string"}},"additionalProperties":false},"text":{"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"id":{"type":"string"},"text":{"type":"string"},"tone":{"enum":["default","muted","success","warning","error"]},"mono":{"type":"boolean"}},"additionalProperties":false},"badge":{"type":"object","required":["type","label"],"properties":{"type":{"const":"badge"},"id":{"type":"string"},"label":{"type":"string"},"tone":{"enum":["default","secondary","success","warning","error","info","sandbox"]}},"additionalProperties":false},"stat":{"type":"object","required":["type","label","value"],"properties":{"type":{"const":"stat"},"id":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"tone":{"enum":["default","success","warning","error","info"]}},"additionalProperties":false},"key_value":{"type":"object","required":["type","items"],"properties":{"type":{"const":"key_value"},"id":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["label","value"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"tone":{"enum":["default","muted"]}},"additionalProperties":false}}},"additionalProperties":false},"code":{"type":"object","required":["type","code"],"properties":{"type":{"const":"code"},"id":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"showLineNumbers":{"type":"boolean"}},"additionalProperties":false},"markdown":{"type":"object","required":["type","content"],"properties":{"type":{"const":"markdown"},"id":{"type":"string"},"content":{"type":"string"}},"additionalProperties":false},"table":{"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"id":{"type":"string"},"columns":{"type":"array","minItems":1,"items":{"type":"object","required":["key","header"],"properties":{"key":{"type":"string"},"header":{"type":"string"},"align":{"enum":["left","right"]}},"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"caption":{"type":"string"}},"additionalProperties":false},"actions":{"type":"object","required":["type","actions"],"properties":{"type":{"const":"actions"},"id":{"type":"string"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}}},"additionalProperties":false},"separator":{"type":"object","required":["type"],"properties":{"type":{"const":"separator"},"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"stack":{"type":"object","required":["type","children"],"properties":{"type":{"const":"stack"},"id":{"type":"string"},"direction":{"enum":["row","column"]},"gap":{"enum":["sm","md","lg"]},"align":{"enum":["start","center","end","stretch"]},"wrap":{"type":"boolean"},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"grid":{"type":"object","required":["type","children"],"properties":{"type":{"const":"grid"},"id":{"type":"string"},"columns":{"enum":[1,2,3,4]},"gap":{"enum":["sm","md","lg"]},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false},"card":{"type":"object","required":["type"],"properties":{"type":{"const":"card"},"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"eyebrow":{"type":"string"},"badge":{"$ref":"#/$defs/badge"},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/action"}},"children":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/node"}}},"additionalProperties":false}}};function validate47(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.actions === undefined) && (missing0 = "actions"))){validate47.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!(((key0 === "type") || (key0 === "id")) || (key0 === "actions"))){validate47.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){const _errs2 = errors;if("actions" !== data.type){validate47.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "actions"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){const _errs3 = errors;if(typeof data.id !== "string"){validate47.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.actions !== undefined){let data2 = data.actions;const _errs5 = errors;if(errors === _errs5){if(Array.isArray(data2)){if(data2.length < 1){validate47.errors = [{instancePath:instancePath+"/actions",schemaPath:"#/properties/actions/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.id === undefined) && (missing1 = "id")) || ((data3.label === undefined) && (missing1 = "label"))){validate47.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs10 = errors;for(const key1 in data3){if(!((((key1 === "id") || (key1 === "label")) || (key1 === "tone")) || (key1 === "disabled"))){validate47.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs10 === errors){if(data3.id !== undefined){const _errs11 = errors;if(typeof data3.id !== "string"){validate47.errors = [{instancePath:instancePath+"/actions/" + i0+"/id",schemaPath:"#/$defs/action/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs11 === errors;}else {var valid3 = true;}if(valid3){if(data3.label !== undefined){const _errs13 = errors;if(typeof data3.label !== "string"){validate47.errors = [{instancePath:instancePath+"/actions/" + i0+"/label",schemaPath:"#/$defs/action/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs13 === errors;}else {var valid3 = true;}if(valid3){if(data3.tone !== undefined){let data6 = data3.tone;const _errs15 = errors;if(!(((((data6 === "default") || (data6 === "secondary")) || (data6 === "outline")) || (data6 === "ghost")) || (data6 === "destructive"))){validate47.errors = [{instancePath:instancePath+"/actions/" + i0+"/tone",schemaPath:"#/$defs/action/properties/tone/enum",keyword:"enum",params:{allowedValues: schema29.properties.tone.enum},message:"must be equal to one of the allowed values"}];return false;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data3.disabled !== undefined){const _errs16 = errors;if(typeof data3.disabled !== "boolean"){validate47.errors = [{instancePath:instancePath+"/actions/" + i0+"/disabled",schemaPath:"#/$defs/action/properties/disabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid3 = _errs16 === errors;}else {var valid3 = true;}}}}}}}else {validate47.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs7 === errors;if(!valid1){break;}}}}else {validate47.errors = [{instancePath:instancePath+"/actions",schemaPath:"#/properties/actions/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}}else {validate47.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate47.errors = vErrors;return errors === 0;}const wrapper6 = {validate: validate46};function validate49(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.children === undefined) && (missing0 = "children"))){validate49.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!(((((((key0 === "type") || (key0 === "id")) || (key0 === "direction")) || (key0 === "gap")) || (key0 === "align")) || (key0 === "wrap")) || (key0 === "children"))){validate49.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){const _errs2 = errors;if("stack" !== data.type){validate49.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "stack"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){const _errs3 = errors;if(typeof data.id !== "string"){validate49.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.direction !== undefined){let data2 = data.direction;const _errs5 = errors;if(!((data2 === "row") || (data2 === "column"))){validate49.errors = [{instancePath:instancePath+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues: schema33.properties.direction.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.gap !== undefined){let data3 = data.gap;const _errs6 = errors;if(!(((data3 === "sm") || (data3 === "md")) || (data3 === "lg"))){validate49.errors = [{instancePath:instancePath+"/gap",schemaPath:"#/properties/gap/enum",keyword:"enum",params:{allowedValues: schema33.properties.gap.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.align !== undefined){let data4 = data.align;const _errs7 = errors;if(!((((data4 === "start") || (data4 === "center")) || (data4 === "end")) || (data4 === "stretch"))){validate49.errors = [{instancePath:instancePath+"/align",schemaPath:"#/properties/align/enum",keyword:"enum",params:{allowedValues: schema33.properties.align.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.wrap !== undefined){const _errs8 = errors;if(typeof data.wrap !== "boolean"){validate49.errors = [{instancePath:instancePath+"/wrap",schemaPath:"#/properties/wrap/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.children !== undefined){let data6 = data.children;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data6)){if(data6.length < 1){validate49.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data6.length;for(let i0=0; i0<len0; i0++){const _errs12 = errors;if(!(wrapper6.validate(data6[i0], {instancePath:instancePath+"/children/" + i0,parentData:data6,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? wrapper6.validate.errors : vErrors.concat(wrapper6.validate.errors);errors = vErrors.length;}var valid1 = _errs12 === errors;if(!valid1){break;}}}}else {validate49.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs10 === errors;}else {var valid0 = true;}}}}}}}}}}else {validate49.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate49.errors = vErrors;return errors === 0;}function validate51(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.children === undefined) && (missing0 = "children"))){validate51.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!(((((key0 === "type") || (key0 === "id")) || (key0 === "columns")) || (key0 === "gap")) || (key0 === "children"))){validate51.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){const _errs2 = errors;if("grid" !== data.type){validate51.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "grid"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){const _errs3 = errors;if(typeof data.id !== "string"){validate51.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.columns !== undefined){let data2 = data.columns;const _errs5 = errors;if(!((((data2 === 1) || (data2 === 2)) || (data2 === 3)) || (data2 === 4))){validate51.errors = [{instancePath:instancePath+"/columns",schemaPath:"#/properties/columns/enum",keyword:"enum",params:{allowedValues: schema46.properties.columns.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.gap !== undefined){let data3 = data.gap;const _errs6 = errors;if(!(((data3 === "sm") || (data3 === "md")) || (data3 === "lg"))){validate51.errors = [{instancePath:instancePath+"/gap",schemaPath:"#/properties/gap/enum",keyword:"enum",params:{allowedValues: schema46.properties.gap.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.children !== undefined){let data4 = data.children;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data4)){if(data4.length < 1){validate51.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs9 = errors;if(!(wrapper6.validate(data4[i0], {instancePath:instancePath+"/children/" + i0,parentData:data4,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? wrapper6.validate.errors : vErrors.concat(wrapper6.validate.errors);errors = vErrors.length;}var valid1 = _errs9 === errors;if(!valid1){break;}}}}else {validate51.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}}}else {validate51.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate51.errors = vErrors;return errors === 0;}const wrapper8 = {validate: validate45};function validate46(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.text === undefined) && (missing0 = "text"))){const err0 = {instancePath,schemaPath:"#/$defs/heading/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {const _errs4 = errors;for(const key0 in data){if(!((((((key0 === "type") || (key0 === "id")) || (key0 === "text")) || (key0 === "level")) || (key0 === "kicker")) || (key0 === "meta"))){const err1 = {instancePath,schemaPath:"#/$defs/heading/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;break;}}if(_errs4 === errors){if(data.type !== undefined){const _errs5 = errors;if("heading" !== data.type){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/heading/properties/type/const",keyword:"const",params:{allowedValue: "heading"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid2 = _errs5 === errors;}else {var valid2 = true;}if(valid2){if(data.id !== undefined){const _errs6 = errors;if(typeof data.id !== "string"){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/heading/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid2 = _errs6 === errors;}else {var valid2 = true;}if(valid2){if(data.text !== undefined){const _errs8 = errors;if(typeof data.text !== "string"){const err4 = {instancePath:instancePath+"/text",schemaPath:"#/$defs/heading/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid2 = _errs8 === errors;}else {var valid2 = true;}if(valid2){if(data.level !== undefined){let data3 = data.level;const _errs10 = errors;if(!((((data3 === 1) || (data3 === 2)) || (data3 === 3)) || (data3 === 4))){const err5 = {instancePath:instancePath+"/level",schemaPath:"#/$defs/heading/properties/level/enum",keyword:"enum",params:{allowedValues: schema12.properties.level.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.kicker !== undefined){const _errs11 = errors;if(typeof data.kicker !== "string"){const err6 = {instancePath:instancePath+"/kicker",schemaPath:"#/$defs/heading/properties/kicker/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.meta !== undefined){const _errs13 = errors;if(typeof data.meta !== "string"){const err7 = {instancePath:instancePath+"/meta",schemaPath:"#/$defs/heading/properties/meta/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}}}}}}}}}else {const err8 = {instancePath,schemaPath:"#/$defs/heading/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs15 = errors;const _errs16 = errors;if(errors === _errs16){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((data.type === undefined) && (missing1 = "type")) || ((data.text === undefined) && (missing1 = "text"))){const err9 = {instancePath,schemaPath:"#/$defs/text/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {const _errs18 = errors;for(const key1 in data){if(!(((((key1 === "type") || (key1 === "id")) || (key1 === "text")) || (key1 === "tone")) || (key1 === "mono"))){const err10 = {instancePath,schemaPath:"#/$defs/text/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;break;}}if(_errs18 === errors){if(data.type !== undefined){const _errs19 = errors;if("text" !== data.type){const err11 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/text/properties/type/const",keyword:"const",params:{allowedValue: "text"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid4 = _errs19 === errors;}else {var valid4 = true;}if(valid4){if(data.id !== undefined){const _errs20 = errors;if(typeof data.id !== "string"){const err12 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/text/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid4 = _errs20 === errors;}else {var valid4 = true;}if(valid4){if(data.text !== undefined){const _errs22 = errors;if(typeof data.text !== "string"){const err13 = {instancePath:instancePath+"/text",schemaPath:"#/$defs/text/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid4 = _errs22 === errors;}else {var valid4 = true;}if(valid4){if(data.tone !== undefined){let data9 = data.tone;const _errs24 = errors;if(!(((((data9 === "default") || (data9 === "muted")) || (data9 === "success")) || (data9 === "warning")) || (data9 === "error"))){const err14 = {instancePath:instancePath+"/tone",schemaPath:"#/$defs/text/properties/tone/enum",keyword:"enum",params:{allowedValues: schema14.properties.tone.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid4 = _errs24 === errors;}else {var valid4 = true;}if(valid4){if(data.mono !== undefined){const _errs25 = errors;if(typeof data.mono !== "boolean"){const err15 = {instancePath:instancePath+"/mono",schemaPath:"#/$defs/text/properties/mono/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid4 = _errs25 === errors;}else {var valid4 = true;}}}}}}}}else {const err16 = {instancePath,schemaPath:"#/$defs/text/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}var _valid0 = _errs15 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}const _errs27 = errors;const _errs28 = errors;if(errors === _errs28){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((data.type === undefined) && (missing2 = "type")) || ((data.label === undefined) && (missing2 = "label"))){const err17 = {instancePath,schemaPath:"#/$defs/badge/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {const _errs30 = errors;for(const key2 in data){if(!((((key2 === "type") || (key2 === "id")) || (key2 === "label")) || (key2 === "tone"))){const err18 = {instancePath,schemaPath:"#/$defs/badge/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;break;}}if(_errs30 === errors){if(data.type !== undefined){const _errs31 = errors;if("badge" !== data.type){const err19 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/badge/properties/type/const",keyword:"const",params:{allowedValue: "badge"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid6 = _errs31 === errors;}else {var valid6 = true;}if(valid6){if(data.id !== undefined){const _errs32 = errors;if(typeof data.id !== "string"){const err20 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/badge/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid6 = _errs32 === errors;}else {var valid6 = true;}if(valid6){if(data.label !== undefined){const _errs34 = errors;if(typeof data.label !== "string"){const err21 = {instancePath:instancePath+"/label",schemaPath:"#/$defs/badge/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid6 = _errs34 === errors;}else {var valid6 = true;}if(valid6){if(data.tone !== undefined){let data14 = data.tone;const _errs36 = errors;if(!(((((((data14 === "default") || (data14 === "secondary")) || (data14 === "success")) || (data14 === "warning")) || (data14 === "error")) || (data14 === "info")) || (data14 === "sandbox"))){const err22 = {instancePath:instancePath+"/tone",schemaPath:"#/$defs/badge/properties/tone/enum",keyword:"enum",params:{allowedValues: schema16.properties.tone.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid6 = _errs36 === errors;}else {var valid6 = true;}}}}}}}else {const err23 = {instancePath,schemaPath:"#/$defs/badge/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}var _valid0 = _errs27 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;}const _errs37 = errors;const _errs38 = errors;if(errors === _errs38){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((data.type === undefined) && (missing3 = "type")) || ((data.label === undefined) && (missing3 = "label"))) || ((data.value === undefined) && (missing3 = "value"))){const err24 = {instancePath,schemaPath:"#/$defs/stat/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}else {const _errs40 = errors;for(const key3 in data){if(!((((((key3 === "type") || (key3 === "id")) || (key3 === "label")) || (key3 === "value")) || (key3 === "change")) || (key3 === "tone"))){const err25 = {instancePath,schemaPath:"#/$defs/stat/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;break;}}if(_errs40 === errors){if(data.type !== undefined){const _errs41 = errors;if("stat" !== data.type){const err26 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/stat/properties/type/const",keyword:"const",params:{allowedValue: "stat"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid8 = _errs41 === errors;}else {var valid8 = true;}if(valid8){if(data.id !== undefined){const _errs42 = errors;if(typeof data.id !== "string"){const err27 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/stat/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid8 = _errs42 === errors;}else {var valid8 = true;}if(valid8){if(data.label !== undefined){const _errs44 = errors;if(typeof data.label !== "string"){const err28 = {instancePath:instancePath+"/label",schemaPath:"#/$defs/stat/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid8 = _errs44 === errors;}else {var valid8 = true;}if(valid8){if(data.value !== undefined){const _errs46 = errors;if(typeof data.value !== "string"){const err29 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/stat/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid8 = _errs46 === errors;}else {var valid8 = true;}if(valid8){if(data.change !== undefined){const _errs48 = errors;if(typeof data.change !== "string"){const err30 = {instancePath:instancePath+"/change",schemaPath:"#/$defs/stat/properties/change/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid8 = _errs48 === errors;}else {var valid8 = true;}if(valid8){if(data.tone !== undefined){let data20 = data.tone;const _errs50 = errors;if(!(((((data20 === "default") || (data20 === "success")) || (data20 === "warning")) || (data20 === "error")) || (data20 === "info"))){const err31 = {instancePath:instancePath+"/tone",schemaPath:"#/$defs/stat/properties/tone/enum",keyword:"enum",params:{allowedValues: schema18.properties.tone.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var valid8 = _errs50 === errors;}else {var valid8 = true;}}}}}}}}}else {const err32 = {instancePath,schemaPath:"#/$defs/stat/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var _valid0 = _errs37 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;}const _errs51 = errors;const _errs52 = errors;if(errors === _errs52){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((data.type === undefined) && (missing4 = "type")) || ((data.items === undefined) && (missing4 = "items"))){const err33 = {instancePath,schemaPath:"#/$defs/key_value/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const _errs54 = errors;for(const key4 in data){if(!(((key4 === "type") || (key4 === "id")) || (key4 === "items"))){const err34 = {instancePath,schemaPath:"#/$defs/key_value/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;break;}}if(_errs54 === errors){if(data.type !== undefined){const _errs55 = errors;if("key_value" !== data.type){const err35 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/key_value/properties/type/const",keyword:"const",params:{allowedValue: "key_value"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid10 = _errs55 === errors;}else {var valid10 = true;}if(valid10){if(data.id !== undefined){const _errs56 = errors;if(typeof data.id !== "string"){const err36 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/key_value/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid10 = _errs56 === errors;}else {var valid10 = true;}if(valid10){if(data.items !== undefined){let data23 = data.items;const _errs58 = errors;if(errors === _errs58){if(Array.isArray(data23)){if(data23.length < 1){const err37 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/key_value/properties/items/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {var valid11 = true;const len0 = data23.length;for(let i0=0; i0<len0; i0++){let data24 = data23[i0];const _errs60 = errors;if(errors === _errs60){if(data24 && typeof data24 == "object" && !Array.isArray(data24)){let missing5;if(((data24.label === undefined) && (missing5 = "label")) || ((data24.value === undefined) && (missing5 = "value"))){const err38 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/key_value/properties/items/items/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {const _errs62 = errors;for(const key5 in data24){if(!((((key5 === "id") || (key5 === "label")) || (key5 === "value")) || (key5 === "tone"))){const err39 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/key_value/properties/items/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;break;}}if(_errs62 === errors){if(data24.id !== undefined){const _errs63 = errors;if(typeof data24.id !== "string"){const err40 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"#/$defs/key_value/properties/items/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid12 = _errs63 === errors;}else {var valid12 = true;}if(valid12){if(data24.label !== undefined){const _errs65 = errors;if(typeof data24.label !== "string"){const err41 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"#/$defs/key_value/properties/items/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid12 = _errs65 === errors;}else {var valid12 = true;}if(valid12){if(data24.value !== undefined){let data27 = data24.value;const _errs67 = errors;if((((typeof data27 !== "string") && (!((typeof data27 == "number") && (isFinite(data27))))) && (typeof data27 !== "boolean")) && (data27 !== null)){const err42 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"#/$defs/key_value/properties/items/items/properties/value/type",keyword:"type",params:{type: schema20.properties.items.items.properties.value.type},message:"must be string,number,boolean,null"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var valid12 = _errs67 === errors;}else {var valid12 = true;}if(valid12){if(data24.tone !== undefined){let data28 = data24.tone;const _errs69 = errors;if(!((data28 === "default") || (data28 === "muted"))){const err43 = {instancePath:instancePath+"/items/" + i0+"/tone",schemaPath:"#/$defs/key_value/properties/items/items/properties/tone/enum",keyword:"enum",params:{allowedValues: schema20.properties.items.items.properties.tone.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid12 = _errs69 === errors;}else {var valid12 = true;}}}}}}}else {const err44 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/key_value/properties/items/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}var valid11 = _errs60 === errors;if(!valid11){break;}}}}else {const err45 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/key_value/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}var valid10 = _errs58 === errors;}else {var valid10 = true;}}}}}}else {const err46 = {instancePath,schemaPath:"#/$defs/key_value/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}var _valid0 = _errs51 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 4];}else {if(_valid0){valid0 = true;passing0 = 4;}const _errs70 = errors;const _errs71 = errors;if(errors === _errs71){if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if(((data.type === undefined) && (missing6 = "type")) || ((data.code === undefined) && (missing6 = "code"))){const err47 = {instancePath,schemaPath:"#/$defs/code/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {const _errs73 = errors;for(const key6 in data){if(!((((((key6 === "type") || (key6 === "id")) || (key6 === "code")) || (key6 === "language")) || (key6 === "title")) || (key6 === "showLineNumbers"))){const err48 = {instancePath,schemaPath:"#/$defs/code/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;break;}}if(_errs73 === errors){if(data.type !== undefined){const _errs74 = errors;if("code" !== data.type){const err49 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/code/properties/type/const",keyword:"const",params:{allowedValue: "code"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid14 = _errs74 === errors;}else {var valid14 = true;}if(valid14){if(data.id !== undefined){const _errs75 = errors;if(typeof data.id !== "string"){const err50 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/code/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid14 = _errs75 === errors;}else {var valid14 = true;}if(valid14){if(data.code !== undefined){const _errs77 = errors;if(typeof data.code !== "string"){const err51 = {instancePath:instancePath+"/code",schemaPath:"#/$defs/code/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid14 = _errs77 === errors;}else {var valid14 = true;}if(valid14){if(data.language !== undefined){const _errs79 = errors;if(typeof data.language !== "string"){const err52 = {instancePath:instancePath+"/language",schemaPath:"#/$defs/code/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var valid14 = _errs79 === errors;}else {var valid14 = true;}if(valid14){if(data.title !== undefined){const _errs81 = errors;if(typeof data.title !== "string"){const err53 = {instancePath:instancePath+"/title",schemaPath:"#/$defs/code/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid14 = _errs81 === errors;}else {var valid14 = true;}if(valid14){if(data.showLineNumbers !== undefined){const _errs83 = errors;if(typeof data.showLineNumbers !== "boolean"){const err54 = {instancePath:instancePath+"/showLineNumbers",schemaPath:"#/$defs/code/properties/showLineNumbers/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}var valid14 = _errs83 === errors;}else {var valid14 = true;}}}}}}}}}else {const err55 = {instancePath,schemaPath:"#/$defs/code/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var _valid0 = _errs70 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 5];}else {if(_valid0){valid0 = true;passing0 = 5;}const _errs85 = errors;const _errs86 = errors;if(errors === _errs86){if(data && typeof data == "object" && !Array.isArray(data)){let missing7;if(((data.type === undefined) && (missing7 = "type")) || ((data.content === undefined) && (missing7 = "content"))){const err56 = {instancePath,schemaPath:"#/$defs/markdown/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}else {const _errs88 = errors;for(const key7 in data){if(!(((key7 === "type") || (key7 === "id")) || (key7 === "content"))){const err57 = {instancePath,schemaPath:"#/$defs/markdown/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;break;}}if(_errs88 === errors){if(data.type !== undefined){const _errs89 = errors;if("markdown" !== data.type){const err58 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/markdown/properties/type/const",keyword:"const",params:{allowedValue: "markdown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid16 = _errs89 === errors;}else {var valid16 = true;}if(valid16){if(data.id !== undefined){const _errs90 = errors;if(typeof data.id !== "string"){const err59 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/markdown/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid16 = _errs90 === errors;}else {var valid16 = true;}if(valid16){if(data.content !== undefined){const _errs92 = errors;if(typeof data.content !== "string"){const err60 = {instancePath:instancePath+"/content",schemaPath:"#/$defs/markdown/properties/content/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid16 = _errs92 === errors;}else {var valid16 = true;}}}}}}else {const err61 = {instancePath,schemaPath:"#/$defs/markdown/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}var _valid0 = _errs85 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 6];}else {if(_valid0){valid0 = true;passing0 = 6;}const _errs94 = errors;const _errs95 = errors;if(errors === _errs95){if(data && typeof data == "object" && !Array.isArray(data)){let missing8;if((((data.type === undefined) && (missing8 = "type")) || ((data.columns === undefined) && (missing8 = "columns"))) || ((data.rows === undefined) && (missing8 = "rows"))){const err62 = {instancePath,schemaPath:"#/$defs/table/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {const _errs97 = errors;for(const key8 in data){if(!(((((key8 === "type") || (key8 === "id")) || (key8 === "columns")) || (key8 === "rows")) || (key8 === "caption"))){const err63 = {instancePath,schemaPath:"#/$defs/table/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;break;}}if(_errs97 === errors){if(data.type !== undefined){const _errs98 = errors;if("table" !== data.type){const err64 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/table/properties/type/const",keyword:"const",params:{allowedValue: "table"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var valid18 = _errs98 === errors;}else {var valid18 = true;}if(valid18){if(data.id !== undefined){const _errs99 = errors;if(typeof data.id !== "string"){const err65 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/table/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var valid18 = _errs99 === errors;}else {var valid18 = true;}if(valid18){if(data.columns !== undefined){let data40 = data.columns;const _errs101 = errors;if(errors === _errs101){if(Array.isArray(data40)){if(data40.length < 1){const err66 = {instancePath:instancePath+"/columns",schemaPath:"#/$defs/table/properties/columns/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {var valid19 = true;const len1 = data40.length;for(let i1=0; i1<len1; i1++){let data41 = data40[i1];const _errs103 = errors;if(errors === _errs103){if(data41 && typeof data41 == "object" && !Array.isArray(data41)){let missing9;if(((data41.key === undefined) && (missing9 = "key")) || ((data41.header === undefined) && (missing9 = "header"))){const err67 = {instancePath:instancePath+"/columns/" + i1,schemaPath:"#/$defs/table/properties/columns/items/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}else {const _errs105 = errors;for(const key9 in data41){if(!(((key9 === "key") || (key9 === "header")) || (key9 === "align"))){const err68 = {instancePath:instancePath+"/columns/" + i1,schemaPath:"#/$defs/table/properties/columns/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;break;}}if(_errs105 === errors){if(data41.key !== undefined){const _errs106 = errors;if(typeof data41.key !== "string"){const err69 = {instancePath:instancePath+"/columns/" + i1+"/key",schemaPath:"#/$defs/table/properties/columns/items/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}var valid20 = _errs106 === errors;}else {var valid20 = true;}if(valid20){if(data41.header !== undefined){const _errs108 = errors;if(typeof data41.header !== "string"){const err70 = {instancePath:instancePath+"/columns/" + i1+"/header",schemaPath:"#/$defs/table/properties/columns/items/properties/header/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var valid20 = _errs108 === errors;}else {var valid20 = true;}if(valid20){if(data41.align !== undefined){let data44 = data41.align;const _errs110 = errors;if(!((data44 === "left") || (data44 === "right"))){const err71 = {instancePath:instancePath+"/columns/" + i1+"/align",schemaPath:"#/$defs/table/properties/columns/items/properties/align/enum",keyword:"enum",params:{allowedValues: schema26.properties.columns.items.properties.align.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var valid20 = _errs110 === errors;}else {var valid20 = true;}}}}}}else {const err72 = {instancePath:instancePath+"/columns/" + i1,schemaPath:"#/$defs/table/properties/columns/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}var valid19 = _errs103 === errors;if(!valid19){break;}}}}else {const err73 = {instancePath:instancePath+"/columns",schemaPath:"#/$defs/table/properties/columns/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}var valid18 = _errs101 === errors;}else {var valid18 = true;}if(valid18){if(data.rows !== undefined){let data45 = data.rows;const _errs111 = errors;if(errors === _errs111){if(Array.isArray(data45)){var valid21 = true;const len2 = data45.length;for(let i2=0; i2<len2; i2++){let data46 = data45[i2];const _errs113 = errors;if(errors === _errs113){if(data46 && typeof data46 == "object" && !Array.isArray(data46)){for(const key10 in data46){let data47 = data46[key10];const _errs116 = errors;if((((typeof data47 !== "string") && (!((typeof data47 == "number") && (isFinite(data47))))) && (typeof data47 !== "boolean")) && (data47 !== null)){const err74 = {instancePath:instancePath+"/rows/" + i2+"/" + key10.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/$defs/table/properties/rows/items/additionalProperties/type",keyword:"type",params:{type: schema26.properties.rows.items.additionalProperties.type},message:"must be string,number,boolean,null"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var valid22 = _errs116 === errors;if(!valid22){break;}}}else {const err75 = {instancePath:instancePath+"/rows/" + i2,schemaPath:"#/$defs/table/properties/rows/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}var valid21 = _errs113 === errors;if(!valid21){break;}}}else {const err76 = {instancePath:instancePath+"/rows",schemaPath:"#/$defs/table/properties/rows/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}var valid18 = _errs111 === errors;}else {var valid18 = true;}if(valid18){if(data.caption !== undefined){const _errs118 = errors;if(typeof data.caption !== "string"){const err77 = {instancePath:instancePath+"/caption",schemaPath:"#/$defs/table/properties/caption/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var valid18 = _errs118 === errors;}else {var valid18 = true;}}}}}}}}else {const err78 = {instancePath,schemaPath:"#/$defs/table/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}var _valid0 = _errs94 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 7];}else {if(_valid0){valid0 = true;passing0 = 7;}const _errs120 = errors;if(!(validate47(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}var _valid0 = _errs120 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 8];}else {if(_valid0){valid0 = true;passing0 = 8;}const _errs121 = errors;const _errs122 = errors;if(errors === _errs122){if(data && typeof data == "object" && !Array.isArray(data)){let missing10;if((data.type === undefined) && (missing10 = "type")){const err79 = {instancePath,schemaPath:"#/$defs/separator/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}else {const _errs124 = errors;for(const key11 in data){if(!(((key11 === "type") || (key11 === "id")) || (key11 === "label"))){const err80 = {instancePath,schemaPath:"#/$defs/separator/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;break;}}if(_errs124 === errors){if(data.type !== undefined){const _errs125 = errors;if("separator" !== data.type){const err81 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/separator/properties/type/const",keyword:"const",params:{allowedValue: "separator"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var valid24 = _errs125 === errors;}else {var valid24 = true;}if(valid24){if(data.id !== undefined){const _errs126 = errors;if(typeof data.id !== "string"){const err82 = {instancePath:instancePath+"/id",schemaPath:"#/$defs/separator/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var valid24 = _errs126 === errors;}else {var valid24 = true;}if(valid24){if(data.label !== undefined){const _errs128 = errors;if(typeof data.label !== "string"){const err83 = {instancePath:instancePath+"/label",schemaPath:"#/$defs/separator/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var valid24 = _errs128 === errors;}else {var valid24 = true;}}}}}}else {const err84 = {instancePath,schemaPath:"#/$defs/separator/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}var _valid0 = _errs121 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 9];}else {if(_valid0){valid0 = true;passing0 = 9;}const _errs130 = errors;if(!(validate49(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);errors = vErrors.length;}var _valid0 = _errs130 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 10];}else {if(_valid0){valid0 = true;passing0 = 10;}const _errs131 = errors;if(!(validate51(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate51.errors : vErrors.concat(validate51.errors);errors = vErrors.length;}var _valid0 = _errs131 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 11];}else {if(_valid0){valid0 = true;passing0 = 11;}const _errs132 = errors;if(!(wrapper8.validate(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? wrapper8.validate.errors : vErrors.concat(wrapper8.validate.errors);errors = vErrors.length;}var _valid0 = _errs132 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 12];}else {if(_valid0){valid0 = true;passing0 = 12;}}}}}}}}}}}}}if(!valid0){const err85 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;validate46.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate46.errors = vErrors;return errors === 0;}function validate45(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.type === undefined) && (missing0 = "type")){validate45.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!((((((((key0 === "type") || (key0 === "id")) || (key0 === "title")) || (key0 === "description")) || (key0 === "eyebrow")) || (key0 === "badge")) || (key0 === "actions")) || (key0 === "children"))){validate45.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){const _errs2 = errors;if("card" !== data.type){validate45.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "card"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){const _errs3 = errors;if(typeof data.id !== "string"){validate45.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.title !== undefined){const _errs5 = errors;if(typeof data.title !== "string"){validate45.errors = [{instancePath:instancePath+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.description !== undefined){const _errs7 = errors;if(typeof data.description !== "string"){validate45.errors = [{instancePath:instancePath+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.eyebrow !== undefined){const _errs9 = errors;if(typeof data.eyebrow !== "string"){validate45.errors = [{instancePath:instancePath+"/eyebrow",schemaPath:"#/properties/eyebrow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.badge !== undefined){let data5 = data.badge;const _errs11 = errors;const _errs12 = errors;if(errors === _errs12){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing1;if(((data5.type === undefined) && (missing1 = "type")) || ((data5.label === undefined) && (missing1 = "label"))){validate45.errors = [{instancePath:instancePath+"/badge",schemaPath:"#/$defs/badge/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs14 = errors;for(const key1 in data5){if(!((((key1 === "type") || (key1 === "id")) || (key1 === "label")) || (key1 === "tone"))){validate45.errors = [{instancePath:instancePath+"/badge",schemaPath:"#/$defs/badge/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs14 === errors){if(data5.type !== undefined){const _errs15 = errors;if("badge" !== data5.type){validate45.errors = [{instancePath:instancePath+"/badge/type",schemaPath:"#/$defs/badge/properties/type/const",keyword:"const",params:{allowedValue: "badge"},message:"must be equal to constant"}];return false;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data5.id !== undefined){const _errs16 = errors;if(typeof data5.id !== "string"){validate45.errors = [{instancePath:instancePath+"/badge/id",schemaPath:"#/$defs/badge/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs16 === errors;}else {var valid2 = true;}if(valid2){if(data5.label !== undefined){const _errs18 = errors;if(typeof data5.label !== "string"){validate45.errors = [{instancePath:instancePath+"/badge/label",schemaPath:"#/$defs/badge/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs18 === errors;}else {var valid2 = true;}if(valid2){if(data5.tone !== undefined){let data9 = data5.tone;const _errs20 = errors;if(!(((((((data9 === "default") || (data9 === "secondary")) || (data9 === "success")) || (data9 === "warning")) || (data9 === "error")) || (data9 === "info")) || (data9 === "sandbox"))){validate45.errors = [{instancePath:instancePath+"/badge/tone",schemaPath:"#/$defs/badge/properties/tone/enum",keyword:"enum",params:{allowedValues: schema16.properties.tone.enum},message:"must be equal to one of the allowed values"}];return false;}var valid2 = _errs20 === errors;}else {var valid2 = true;}}}}}}}else {validate45.errors = [{instancePath:instancePath+"/badge",schemaPath:"#/$defs/badge/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.actions !== undefined){let data10 = data.actions;const _errs21 = errors;if(errors === _errs21){if(Array.isArray(data10)){if(data10.length < 1){validate45.errors = [{instancePath:instancePath+"/actions",schemaPath:"#/properties/actions/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid3 = true;const len0 = data10.length;for(let i0=0; i0<len0; i0++){let data11 = data10[i0];const _errs23 = errors;const _errs24 = errors;if(errors === _errs24){if(data11 && typeof data11 == "object" && !Array.isArray(data11)){let missing2;if(((data11.id === undefined) && (missing2 = "id")) || ((data11.label === undefined) && (missing2 = "label"))){validate45.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {const _errs26 = errors;for(const key2 in data11){if(!((((key2 === "id") || (key2 === "label")) || (key2 === "tone")) || (key2 === "disabled"))){validate45.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"}];return false;break;}}if(_errs26 === errors){if(data11.id !== undefined){const _errs27 = errors;if(typeof data11.id !== "string"){validate45.errors = [{instancePath:instancePath+"/actions/" + i0+"/id",schemaPath:"#/$defs/action/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs27 === errors;}else {var valid5 = true;}if(valid5){if(data11.label !== undefined){const _errs29 = errors;if(typeof data11.label !== "string"){validate45.errors = [{instancePath:instancePath+"/actions/" + i0+"/label",schemaPath:"#/$defs/action/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs29 === errors;}else {var valid5 = true;}if(valid5){if(data11.tone !== undefined){let data14 = data11.tone;const _errs31 = errors;if(!(((((data14 === "default") || (data14 === "secondary")) || (data14 === "outline")) || (data14 === "ghost")) || (data14 === "destructive"))){validate45.errors = [{instancePath:instancePath+"/actions/" + i0+"/tone",schemaPath:"#/$defs/action/properties/tone/enum",keyword:"enum",params:{allowedValues: schema29.properties.tone.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs31 === errors;}else {var valid5 = true;}if(valid5){if(data11.disabled !== undefined){const _errs32 = errors;if(typeof data11.disabled !== "boolean"){validate45.errors = [{instancePath:instancePath+"/actions/" + i0+"/disabled",schemaPath:"#/$defs/action/properties/disabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid5 = _errs32 === errors;}else {var valid5 = true;}}}}}}}else {validate45.errors = [{instancePath:instancePath+"/actions/" + i0,schemaPath:"#/$defs/action/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs23 === errors;if(!valid3){break;}}}}else {validate45.errors = [{instancePath:instancePath+"/actions",schemaPath:"#/properties/actions/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.children !== undefined){let data16 = data.children;const _errs34 = errors;if(errors === _errs34){if(Array.isArray(data16)){if(data16.length < 1){validate45.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid6 = true;const len1 = data16.length;for(let i1=0; i1<len1; i1++){const _errs36 = errors;if(!(validate46(data16[i1], {instancePath:instancePath+"/children/" + i1,parentData:data16,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);errors = vErrors.length;}var valid6 = _errs36 === errors;if(!valid6){break;}}}}else {validate45.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs34 === errors;}else {var valid0 = true;}}}}}}}}}}}else {validate45.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate45.errors = vErrors;return errors === 0;}function validate44(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://tangle.tools/openui/card" */;let vErrors = null;let errors = 0;if(!(validate45(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);errors = vErrors.length;}validate44.errors = vErrors;return errors === 0;}