@openpresentation/opf 0.27.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +18 -18
- package/dist/{catalog-refs-BSfGELpt.d.ts → catalog-refs-kAefsZWT.d.ts} +2 -1
- package/dist/{catalog-schemas-DoxA2BgY.d.ts → catalog-schemas-CC1d_h8s.d.ts} +3 -2
- package/dist/{chart-data-BnNqgnC-.d.ts → chart-data-Ci9s_NDN.d.ts} +2 -1
- package/dist/{chunk-EO3JWEO5.js → chunk-5OMZW44K.js} +1 -1
- package/dist/{chunk-4ZM5G3XX.js → chunk-5Q4IYLMW.js} +30 -14
- package/dist/{chunk-WJ4XTCOD.js → chunk-7UO6H32I.js} +3 -3
- package/dist/{chunk-4ACS57MG.js → chunk-ARFAQNOH.js} +2 -2
- package/dist/{chunk-GNKESMZT.js → chunk-F5QC7E2O.js} +6 -6
- package/dist/{chunk-SYW4BCGZ.js → chunk-HRKV43GC.js} +2 -2
- package/dist/{chunk-TMREBZBQ.js → chunk-I6G32TB5.js} +3 -3
- package/dist/{chunk-O3SA5SJ4.js → chunk-KELC4K62.js} +1 -1
- package/dist/{chunk-ABFDFZIW.js → chunk-KOCXV7H3.js} +1 -1
- package/dist/{chunk-PAGVSTVF.js → chunk-M7YZU3DX.js} +149 -26
- package/dist/{chunk-JSHMFTSY.js → chunk-P5E3FNYO.js} +1 -1
- package/dist/{chunk-ZGTOZA2S.js → chunk-R455YZNO.js} +6 -6
- package/dist/{chunk-OSM3LZ2Y.js → chunk-SYCHWS7C.js} +4 -4
- package/dist/{chunk-353VBJ6K.js → chunk-UKWNHK62.js} +5 -5
- package/dist/{chunk-LRTQXGJO.js → chunk-W3SEWSO5.js} +543 -94
- package/dist/{chunk-CXPBU5W4.js → chunk-W7KPMUJF.js} +1 -1
- package/dist/{chunk-APLNGCEZ.js → chunk-WHDOOLIO.js} +2 -2
- package/dist/{chunk-KZPZRHL6.js → chunk-XG4JKFZ6.js} +6 -6
- package/dist/{chunk-7XUEKIXH.js → chunk-Z7XNHIW7.js} +2 -2
- package/dist/chunk-ZROVYWGU.js +1 -0
- package/dist/{composition-BGmpe5e4.d.ts → composition-C-hd_Ci3.d.ts} +84 -10
- package/dist/composition.d.ts +3 -3
- package/dist/composition.js +1 -1
- package/dist/{conversion-8SQD4dqu.d.ts → conversion-CCAmVKp8.d.ts} +9 -8
- package/dist/conversion-KV2WWCMK.js +24 -0
- package/dist/convert.d.ts +6 -5
- package/dist/convert.js +7 -7
- package/dist/data.d.ts +4 -3
- package/dist/data.js +2 -2
- package/dist/{deck-report-BaKgPh_N.d.ts → deck-report-DQMsvyBI.d.ts} +5 -4
- package/dist/deck.d.ts +10 -9
- package/dist/deck.js +11 -11
- package/dist/diff.d.ts +3 -2
- package/dist/diff.js +4 -4
- package/dist/docs.d.ts +2 -1
- package/dist/docs.js +29 -17
- package/dist/examples.d.ts +3 -2
- package/dist/examples.js +90 -50
- package/dist/{explain-JSuESV-Y.d.ts → explain-iZeNOUc6.d.ts} +2 -1
- package/dist/{finding-Bh56sGtF.d.ts → finding-l9dlQ2NF.d.ts} +1 -1
- package/dist/font-policy.d.ts +2 -1
- package/dist/format.d.ts +2 -1
- package/dist/format.js +2 -2
- package/dist/ids.d.ts +3 -2
- package/dist/ids.js +4 -4
- package/dist/index.d.ts +38 -17
- package/dist/index.js +22 -22
- package/dist/markdown.d.ts +8 -7
- package/dist/markdown.js +8 -8
- package/dist/node-engine.d.ts +34 -11
- package/dist/node-engine.js +35 -29
- package/dist/{pagination-BsUTsQvk.d.ts → pagination-DyAKYpXu.d.ts} +4 -3
- package/dist/pagination.d.ts +4 -4
- package/dist/pagination.js +4 -4
- package/dist/patch.d.ts +4 -2
- package/dist/patch.js +3 -3
- package/dist/precompiled.d.ts +1 -1
- package/dist/precompiled.js +2 -2
- package/dist/{presentation-C-nHZyMw.d.ts → presentation-8jLSTFqL.d.ts} +10 -10
- package/dist/repo-readme.js +1 -1
- package/dist/schema-engine-ajv.js +1 -1
- package/dist/schema-engine-precompiled.js +2 -2
- package/dist/schema.d.ts +4 -3
- package/dist/schema.js +3 -3
- package/dist/schemas.d.ts +2 -1
- package/dist/schemas.js +1 -1
- package/dist/source.d.ts +5 -4
- package/dist/source.js +10 -10
- package/dist/spec/README.md +1 -1
- package/dist/spec/schemas/audience.schema.json +1 -0
- package/dist/spec/schemas/catalog-index.schema.json +1 -0
- package/dist/spec/schemas/catalog-manifest.schema.json +1 -0
- package/dist/spec/schemas/chart-type.schema.json +1 -0
- package/dist/spec/schemas/color-scheme.schema.json +1 -0
- package/dist/spec/schemas/finding.schema.json +1 -0
- package/dist/spec/schemas/font-scheme.schema.json +1 -0
- package/dist/spec/schemas/language.schema.json +1 -0
- package/dist/spec/schemas/layout-preview-index.schema.json +1 -0
- package/dist/spec/schemas/layout.schema.json +8 -6
- package/dist/spec/schemas/narrative.schema.json +1 -0
- package/dist/spec/schemas/opf.schema.json +8 -7
- package/dist/spec/schemas/purpose.schema.json +1 -0
- package/dist/spec/schemas/social-platform.schema.json +1 -0
- package/dist/spec/schemas/theme.schema.json +3 -1
- package/dist/spec/schemas/tone.schema.json +1 -0
- package/dist/spec-files.d.ts +2 -1
- package/dist/symbol-font-encodings.d.ts +2 -1
- package/dist/types.d.ts +10 -10
- package/dist/{validation-types-6_jEaHeE.d.ts → validation-types-mNmfcY9A.d.ts} +5 -4
- package/dist/validator.d.ts +8 -8
- package/dist/validator.js +3 -3
- package/dist/yaml.d.ts +8 -7
- package/dist/yaml.js +7 -7
- package/package.json +7 -7
- package/dist/chunk-GJO5NUVT.js +0 -1
- package/dist/conversion-LN6PFRZL.js +0 -24
package/dist/chunk-GJO5NUVT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{schemas as j}from"./chunk-4ZM5G3XX.js";import{__commonJS as nh}from"./chunk-GM7WFPGG.js";var ld=nh({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js"(a){Object.defineProperty(a,"__esModule",{value:!0});function s(x){const N=x.length;let v=0,b=0,e;for(;b<N;)v++,e=x.charCodeAt(b++),e>=55296&&e<=56319&&b<N&&(e=x.charCodeAt(b),(e&64512)===56320&&b++);return v}a.default=s,s.code='require("ajv/dist/runtime/ucs2length").default'}}),jc=nh({"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js"(a){Object.defineProperty(a,"__esModule",{value:!0}),a.formatNames=a.fastFormats=a.fullFormats=void 0;function s(D,I){return{validate:D,compare:I}}a.fullFormats={date:s(b,e),time:s(m(!0),r),"date-time":s(i(!0),h),"iso-time":s(m(),n),"iso-date-time":s(i(),c),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:l,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:d,int32:{type:"number",validate:w},int64:{type:"number",validate:q},float:{type:"number",validate:f},double:{type:"number",validate:f},password:!0,binary:!0},a.fastFormats={...a.fullFormats,date:s(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,e),time:s(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,r),"date-time":s(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,h),"iso-time":s(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,n),"iso-date-time":s(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},a.formatNames=Object.keys(a.fullFormats);function x(D){return D%4===0&&(D%100!==0||D%400===0)}var N=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,v=[0,31,28,31,30,31,30,31,31,30,31,30,31];function b(D){const I=N.exec(D);if(!I)return!1;const L=+I[1],Z=+I[2],M=+I[3];return Z>=1&&Z<=12&&M>=1&&M<=(Z===2&&x(L)?29:v[Z])}function e(D,I){if(D&&I)return D>I?1:D<I?-1:0}var t=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function m(D){return function(L){const Z=t.exec(L);if(!Z)return!1;const M=+Z[1],J=+Z[2],C=+Z[3],T=Z[4],F=Z[5]==="-"?-1:1,H=+(Z[6]||0),ae=+(Z[7]||0);if(H>23||ae>59||D&&!T)return!1;if(M<=23&&J<=59&&C<60)return!0;const ee=J-ae*F,G=M-H*F-(ee<0?1:0);return(G===23||G===-1)&&(ee===59||ee===-1)&&C<61}}function r(D,I){if(!(D&&I))return;const L=new Date("2020-01-01T"+D).valueOf(),Z=new Date("2020-01-01T"+I).valueOf();if(L&&Z)return L-Z}function n(D,I){if(!(D&&I))return;const L=t.exec(D),Z=t.exec(I);if(L&&Z)return D=L[1]+L[2]+L[3],I=Z[1]+Z[2]+Z[3],D>I?1:D<I?-1:0}var p=/t|\s/i;function i(D){const I=m(D);return function(Z){const M=Z.split(p);return M.length===2&&b(M[0])&&I(M[1])}}function h(D,I){if(!(D&&I))return;const L=new Date(D).valueOf(),Z=new Date(I).valueOf();if(L&&Z)return L-Z}function c(D,I){if(!(D&&I))return;const[L,Z]=D.split(p),[M,J]=I.split(p),C=e(L,M);if(C!==void 0)return C||r(Z,J)}var y=/\/|:/,g=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function l(D){return y.test(D)&&g.test(D)}var o=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function d(D){return o.lastIndex=0,o.test(D)}var O=-2147483648,S=2**31-1;function w(D){return Number.isInteger(D)&&D<=S&&D>=O}function q(D){return Number.isInteger(D)}function f(){return!0}var P=/[^\\]\\Z/;function k(D){if(P.test(D))return!1;try{return new RegExp(D),!0}catch{return!1}}}}),$={};$.root0=Qn;var le=j.presentation,ka=j.presentation.$defs.LanguageTag,De=j.presentation.$defs.CatalogReference,wa=Object.prototype.hasOwnProperty,ie=j.presentation.$defs.Organization,A=j.presentation.$defs.Asset,Fe=j.presentation.$defs.Socials,Ns=new RegExp("^[a-zA-Z0-9_-]+$","u"),fs=j.presentation.$defs.OrganizationLogo,Is=j.presentation.$defs.LogoSource;function St(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=St.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t,h=t;let c=!1,y=null;const g=t;if(typeof a!="string"){const f={instancePath:s,schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:a};e===null?e=[f]:e.push(f),t++}var o=g===t;o&&(c=!0,y=0);const l=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.src===void 0){const f={instancePath:s,schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:a};e===null?e=[f]:e.push(f),t++}for(const f in a)if(!(f==="src"||f==="alt"||f==="title"||f==="description"||f==="mediaType")){const P={instancePath:s,schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:a};e===null?e=[P]:e.push(P),t++}if(a.src!==void 0){let f=a.src;if(typeof f!="string"){const P={instancePath:s+"/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:f};e===null?e=[P]:e.push(P),t++}}if(a.alt!==void 0){let f=a.alt;if(typeof f!="string"){const P={instancePath:s+"/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:f};e===null?e=[P]:e.push(P),t++}}if(a.title!==void 0){let f=a.title;if(typeof f!="string"){const P={instancePath:s+"/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:f};e===null?e=[P]:e.push(P),t++}}if(a.description!==void 0){let f=a.description;if(typeof f!="string"){const P={instancePath:s+"/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:f};e===null?e=[P]:e.push(P),t++}}if(a.mediaType!==void 0){let f=a.mediaType;if(typeof f!="string"){const P={instancePath:s+"/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:f};e===null?e=[P]:e.push(P),t++}}}else{const f={instancePath:s,schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:a};e===null?e=[f]:e.push(f),t++}var o=l===t;if(o&&c)c=!1,y=[y,1];else if(o){c=!0,y=1;var d=!0}if(c)t=h,e!==null&&(h?e.length=h:e=null);else{const f={instancePath:s,schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:a};e===null?e=[f]:e.push(f),t++}var q=i===t;q&&(n=!0,p=0);const O=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(Object.keys(a).length<1){const f={instancePath:s,schemaPath:"#/oneOf/1/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:Is.oneOf[1],data:a};e===null?e=[f]:e.push(f),t++}for(const f in a)if(!(f==="onLight"||f==="onDark")){const P={instancePath:s,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties",schema:!1,parentSchema:Is.oneOf[1],data:a};e===null?e=[P]:e.push(P),t++}if(a.onLight!==void 0){let f=a.onLight;const P=t;let k=!1,D=null;const I=t;if(typeof f!="string"){const Z={instancePath:s+"/onLight",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:f};e===null?e=[Z]:e.push(Z),t++}var S=I===t;S&&(k=!0,D=0);const L=t;if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.src===void 0){const Z={instancePath:s+"/onLight",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:f};e===null?e=[Z]:e.push(Z),t++}for(const Z in f)if(!(Z==="src"||Z==="alt"||Z==="title"||Z==="description"||Z==="mediaType")){const M={instancePath:s+"/onLight",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Z},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:f};e===null?e=[M]:e.push(M),t++}if(f.src!==void 0){let Z=f.src;if(typeof Z!="string"){const M={instancePath:s+"/onLight/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:Z};e===null?e=[M]:e.push(M),t++}}if(f.alt!==void 0){let Z=f.alt;if(typeof Z!="string"){const M={instancePath:s+"/onLight/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:Z};e===null?e=[M]:e.push(M),t++}}if(f.title!==void 0){let Z=f.title;if(typeof Z!="string"){const M={instancePath:s+"/onLight/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:Z};e===null?e=[M]:e.push(M),t++}}if(f.description!==void 0){let Z=f.description;if(typeof Z!="string"){const M={instancePath:s+"/onLight/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:Z};e===null?e=[M]:e.push(M),t++}}if(f.mediaType!==void 0){let Z=f.mediaType;if(typeof Z!="string"){const M={instancePath:s+"/onLight/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:Z};e===null?e=[M]:e.push(M),t++}}}else{const Z={instancePath:s+"/onLight",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:f};e===null?e=[Z]:e.push(Z),t++}var S=L===t;if(S&&k?(k=!1,D=[D,1]):S&&(k=!0,D=1),k)t=P,e!==null&&(P?e.length=P:e=null);else{const Z={instancePath:s+"/onLight",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:D},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:f};e===null?e=[Z]:e.push(Z),t++}}if(a.onDark!==void 0){let f=a.onDark;const P=t;let k=!1,D=null;const I=t;if(typeof f!="string"){const Z={instancePath:s+"/onDark",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:f};e===null?e=[Z]:e.push(Z),t++}var w=I===t;w&&(k=!0,D=0);const L=t;if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.src===void 0){const Z={instancePath:s+"/onDark",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:f};e===null?e=[Z]:e.push(Z),t++}for(const Z in f)if(!(Z==="src"||Z==="alt"||Z==="title"||Z==="description"||Z==="mediaType")){const M={instancePath:s+"/onDark",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Z},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:f};e===null?e=[M]:e.push(M),t++}if(f.src!==void 0){let Z=f.src;if(typeof Z!="string"){const M={instancePath:s+"/onDark/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:Z};e===null?e=[M]:e.push(M),t++}}if(f.alt!==void 0){let Z=f.alt;if(typeof Z!="string"){const M={instancePath:s+"/onDark/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:Z};e===null?e=[M]:e.push(M),t++}}if(f.title!==void 0){let Z=f.title;if(typeof Z!="string"){const M={instancePath:s+"/onDark/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:Z};e===null?e=[M]:e.push(M),t++}}if(f.description!==void 0){let Z=f.description;if(typeof Z!="string"){const M={instancePath:s+"/onDark/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:Z};e===null?e=[M]:e.push(M),t++}}if(f.mediaType!==void 0){let Z=f.mediaType;if(typeof Z!="string"){const M={instancePath:s+"/onDark/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:Z};e===null?e=[M]:e.push(M),t++}}}else{const Z={instancePath:s+"/onDark",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:f};e===null?e=[Z]:e.push(Z),t++}var w=L===t;if(w&&k?(k=!1,D=[D,1]):w&&(k=!0,D=1),k)t=P,e!==null&&(P?e.length=P:e=null);else{const Z={instancePath:s+"/onDark",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:D},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:f};e===null?e=[Z]:e.push(Z),t++}}}else{const f={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Is.oneOf[1].type,parentSchema:Is.oneOf[1],data:a};e===null?e=[f]:e.push(f),t++}var q=O===t;if(q&&n?(n=!1,p=[p,1]):q&&(n=!0,p=1,d!==!0&&(d=!0)),n)t=r,e!==null&&(r?e.length=r:e=null);else{const f={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:Is.oneOf,parentSchema:Is,data:a};e===null?e=[f]:e.push(f),t++}return St.errors=e,m.props=d,t===0}St.evaluated={dynamicProps:!0,dynamicItems:!1};function Aa(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Aa.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(Object.keys(a).length<1){const r={instancePath:s,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:fs,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="full"||r==="stacked"||r==="icon"||r==="wordmark")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:fs,data:a};e===null?e=[n]:e.push(n),t++}a.full!==void 0&&(St(a.full,{instancePath:s+"/full",parentData:a,parentDataProperty:"full",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length)),a.stacked!==void 0&&(St(a.stacked,{instancePath:s+"/stacked",parentData:a,parentDataProperty:"stacked",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length)),a.icon!==void 0&&(St(a.icon,{instancePath:s+"/icon",parentData:a,parentDataProperty:"icon",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length)),a.wordmark!==void 0&&(St(a.wordmark,{instancePath:s+"/wordmark",parentData:a,parentDataProperty:"wordmark",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length))}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:fs.type,parentSchema:fs,data:a};e===null?e=[r]:e.push(r),t++}return Aa.errors=e,t===0}Aa.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var zs=/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;function Ra(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ra.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const h={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ie.required,parentSchema:ie,data:a};e===null?e=[h]:e.push(h),t++}if(a.name===void 0){const h={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ie.required,parentSchema:ie,data:a};e===null?e=[h]:e.push(h),t++}if(a.id!==void 0){let h=a.id;if(typeof h=="string"){if(!Ns.test(h)){const c={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9_-]+$"},message:'must match pattern "^[a-zA-Z0-9_-]+$"',schema:"^[a-zA-Z0-9_-]+$",parentSchema:ie.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.id.type,parentSchema:ie.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}if(a.name!==void 0){let h=a.name;if(typeof h!="string"){const c={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.name.type,parentSchema:ie.properties.name,data:h};e===null?e=[c]:e.push(c),t++}}if(a.legalName!==void 0){let h=a.legalName;if(typeof h!="string"){const c={instancePath:s+"/legalName",schemaPath:"#/properties/legalName/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.legalName.type,parentSchema:ie.properties.legalName,data:h};e===null?e=[c]:e.push(c),t++}}if(a.logo!==void 0){let h=a.logo;const c=t;let y=!1,g=null;const l=t,o=t;let d=!1,O=null;const S=t;if(typeof h!="string"){const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:h};e===null?e=[f]:e.push(f),t++}var r=S===t;r&&(d=!0,O=0);const w=t;if(h&&typeof h=="object"&&!Array.isArray(h)){if(h.src===void 0){const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:h};e===null?e=[f]:e.push(f),t++}for(const f in h)if(!(f==="src"||f==="alt"||f==="title"||f==="description"||f==="mediaType")){const P={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:h};e===null?e=[P]:e.push(P),t++}if(h.src!==void 0){let f=h.src;if(typeof f!="string"){const P={instancePath:s+"/logo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:f};e===null?e=[P]:e.push(P),t++}}if(h.alt!==void 0){let f=h.alt;if(typeof f!="string"){const P={instancePath:s+"/logo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:f};e===null?e=[P]:e.push(P),t++}}if(h.title!==void 0){let f=h.title;if(typeof f!="string"){const P={instancePath:s+"/logo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:f};e===null?e=[P]:e.push(P),t++}}if(h.description!==void 0){let f=h.description;if(typeof f!="string"){const P={instancePath:s+"/logo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:f};e===null?e=[P]:e.push(P),t++}}if(h.mediaType!==void 0){let f=h.mediaType;if(typeof f!="string"){const P={instancePath:s+"/logo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:f};e===null?e=[P]:e.push(P),t++}}}else{const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:h};e===null?e=[f]:e.push(f),t++}var r=w===t;if(r&&d)d=!1,O=[O,1];else if(r){d=!0,O=1;var n=!0}if(d)t=o,e!==null&&(o?e.length=o:e=null);else{const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:O},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:h};e===null?e=[f]:e.push(f),t++}var p=l===t;p&&(y=!0,g=0);const q=t;Aa(h,{instancePath:s+"/logo",parentData:a,parentDataProperty:"logo",rootData:v,dynamicAnchors:b})||(e=e===null?Aa.errors:e.concat(Aa.errors),t=e.length);var p=q===t;if(p&&y?(y=!1,g=[g,1]):p&&(y=!0,g=1,n!==!0&&(n=!0)),y)t=c,e!==null&&(c?e.length=c:e=null);else{const f={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf",keyword:"oneOf",params:{passingSchemas:g},message:"must match exactly one schema in oneOf",schema:ie.properties.logo.oneOf,parentSchema:ie.properties.logo,data:h};e===null?e=[f]:e.push(f),t++}}if(a.domain!==void 0){let h=a.domain;if(typeof h!="string"){const c={instancePath:s+"/domain",schemaPath:"#/properties/domain/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.domain.type,parentSchema:ie.properties.domain,data:h};e===null?e=[c]:e.push(c),t++}}if(a.email!==void 0){let h=a.email;if(typeof h=="string"){if(!zs.test(h)){const c={instancePath:s+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"',schema:"email",parentSchema:ie.properties.email,data:h};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:s+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.email.type,parentSchema:ie.properties.email,data:h};e===null?e=[c]:e.push(c),t++}}if(a.phone!==void 0){let h=a.phone;if(typeof h!="string"){const c={instancePath:s+"/phone",schemaPath:"#/properties/phone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.phone.type,parentSchema:ie.properties.phone,data:h};e===null?e=[c]:e.push(c),t++}}if(a.tagline!==void 0){let h=a.tagline;if(typeof h!="string"){const c={instancePath:s+"/tagline",schemaPath:"#/properties/tagline/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.tagline.type,parentSchema:ie.properties.tagline,data:h};e===null?e=[c]:e.push(c),t++}}if(a.role!==void 0){let h=a.role;if(typeof h!="string"){const c={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.role.type,parentSchema:ie.properties.role,data:h};e===null?e=[c]:e.push(c),t++}if(!(h==="primary"||h==="partner"||h==="client"||h==="sponsor"||h==="host")){const c={instancePath:s+"/role",schemaPath:"#/properties/role/enum",keyword:"enum",params:{allowedValues:ie.properties.role.enum},message:"must be equal to one of the allowed values",schema:ie.properties.role.enum,parentSchema:ie.properties.role,data:h};e===null?e=[c]:e.push(c),t++}}if(a.socials!==void 0){let h=a.socials;if(h&&typeof h=="object"&&!Array.isArray(h)){for(const c in h){const y=t;if(!(c==="linkedin"||c==="x"||c==="github"||c==="youtube"||c==="instagram"||c==="facebook"||c==="tiktok"||c==="threads"||c==="mastodon"||c==="bluesky")){const g={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames/enum",keyword:"enum",params:{allowedValues:Fe.propertyNames.enum},message:"must be equal to one of the allowed values",schema:Fe.propertyNames.enum,parentSchema:Fe.propertyNames,data:c,propertyName:c};e===null?e=[g]:e.push(g),t++}var i=y===t;if(!i){const g={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames",keyword:"propertyNames",params:{propertyName:c},message:"property name must be valid",schema:Fe.propertyNames,parentSchema:Fe,data:h};e===null?e=[g]:e.push(g),t++}}for(const c in h){let y=h[c];if(typeof y!="string"){const g={instancePath:s+"/socials/"+c.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Socials/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Fe.additionalProperties.type,parentSchema:Fe.additionalProperties,data:y};e===null?e=[g]:e.push(g),t++}}}else{const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Fe.type,parentSchema:Fe,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ie.type,parentSchema:ie,data:a};e===null?e=[h]:e.push(h),t++}return Ra.errors=e,t===0}Ra.evaluated={props:{id:!0,name:!0,legalName:!0,logo:!0,domain:!0,email:!0,phone:!0,tagline:!0,role:!0,socials:!0},dynamicProps:!1,dynamicItems:!1};var Oe=j.presentation.$defs.Speaker;function Za(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Za.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Oe.required,parentSchema:Oe,data:a};e===null?e=[p]:e.push(p),t++}if(a.name===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Oe.required,parentSchema:Oe,data:a};e===null?e=[p]:e.push(p),t++}if(a.id!==void 0){let p=a.id;if(typeof p=="string"){if(!Ns.test(p)){const i={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9_-]+$"},message:'must match pattern "^[a-zA-Z0-9_-]+$"',schema:"^[a-zA-Z0-9_-]+$",parentSchema:Oe.properties.id,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.id.type,parentSchema:Oe.properties.id,data:p};e===null?e=[i]:e.push(i),t++}}if(a.name!==void 0){let p=a.name;if(typeof p!="string"){const i={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.name.type,parentSchema:Oe.properties.name,data:p};e===null?e=[i]:e.push(i),t++}}if(a.title!==void 0){let p=a.title;if(typeof p!="string"){const i={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.title.type,parentSchema:Oe.properties.title,data:p};e===null?e=[i]:e.push(i),t++}}if(a.photo!==void 0){let p=a.photo;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/photo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/photo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/photo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/photo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/photo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}if(a.email!==void 0){let p=a.email;if(typeof p=="string"){if(!zs.test(p)){const i={instancePath:s+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"',schema:"email",parentSchema:Oe.properties.email,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.email.type,parentSchema:Oe.properties.email,data:p};e===null?e=[i]:e.push(i),t++}}if(a.phone!==void 0){let p=a.phone;if(typeof p!="string"){const i={instancePath:s+"/phone",schemaPath:"#/properties/phone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.phone.type,parentSchema:Oe.properties.phone,data:p};e===null?e=[i]:e.push(i),t++}}if(a.bio!==void 0){let p=a.bio;if(typeof p!="string"){const i={instancePath:s+"/bio",schemaPath:"#/properties/bio/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.bio.type,parentSchema:Oe.properties.bio,data:p};e===null?e=[i]:e.push(i),t++}}if(a.organizationId!==void 0){let p=a.organizationId;if(typeof p!="string"){const i={instancePath:s+"/organizationId",schemaPath:"#/properties/organizationId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.organizationId.type,parentSchema:Oe.properties.organizationId,data:p};e===null?e=[i]:e.push(i),t++}}if(a.socials!==void 0){let p=a.socials;if(p&&typeof p=="object"&&!Array.isArray(p)){for(const i in p){const h=t;if(!(i==="linkedin"||i==="x"||i==="github"||i==="youtube"||i==="instagram"||i==="facebook"||i==="tiktok"||i==="threads"||i==="mastodon"||i==="bluesky")){const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames/enum",keyword:"enum",params:{allowedValues:Fe.propertyNames.enum},message:"must be equal to one of the allowed values",schema:Fe.propertyNames.enum,parentSchema:Fe.propertyNames,data:i,propertyName:i};e===null?e=[c]:e.push(c),t++}var n=h===t;if(!n){const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames",keyword:"propertyNames",params:{propertyName:i},message:"property name must be valid",schema:Fe.propertyNames,parentSchema:Fe,data:p};e===null?e=[c]:e.push(c),t++}}for(const i in p){let h=p[i];if(typeof h!="string"){const c={instancePath:s+"/socials/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Socials/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Fe.additionalProperties.type,parentSchema:Fe.additionalProperties,data:h};e===null?e=[c]:e.push(c),t++}}}else{const i={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Fe.type,parentSchema:Fe,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Oe.type,parentSchema:Oe,data:a};e===null?e=[p]:e.push(p),t++}return Za.errors=e,t===0}Za.evaluated={props:{id:!0,name:!0,title:!0,photo:!0,email:!0,phone:!0,bio:!0,organizationId:!0,socials:!0},dynamicProps:!1,dynamicItems:!1};var _=j.presentation.$defs.Audience,Vt=new RegExp("^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$","u");function Ma(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ma.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const p=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:_.anyOf[0].required,parentSchema:_.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=p===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:_.anyOf[1].required,parentSchema:_.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:_.anyOf,parentSchema:_,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Vt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.name.type,parentSchema:_.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.summary.type,parentSchema:_.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.description.type,parentSchema:_.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.seniority!==void 0){let c=a.seniority;if(typeof c!="string"){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.seniority.type,parentSchema:_.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="ic"||c==="manager"||c==="director"||c==="vp"||c==="c-suite"||c==="mixed")){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/enum",keyword:"enum",params:{allowedValues:_.properties.seniority.enum},message:"must be equal to one of the allowed values",schema:_.properties.seniority.enum,parentSchema:_.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}}if(a.technicalFluency!==void 0){let c=a.technicalFluency;if(typeof c!="string"){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.technicalFluency.type,parentSchema:_.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="low"||c==="medium"||c==="high"||c==="mixed")){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/enum",keyword:"enum",params:{allowedValues:_.properties.technicalFluency.enum},message:"must be equal to one of the allowed values",schema:_.properties.technicalFluency.enum,parentSchema:_.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}}if(a.decisionPower!==void 0){let c=a.decisionPower;if(typeof c!="string"){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.decisionPower.type,parentSchema:_.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="informational"||c==="advisory"||c==="decision-maker")){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/enum",keyword:"enum",params:{allowedValues:_.properties.decisionPower.enum},message:"must be equal to one of the allowed values",schema:_.properties.decisionPower.enum,parentSchema:_.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}}if(a.attentionBudgetMinutes!==void 0){let c=a.attentionBudgetMinutes;if(typeof c=="number"){if(c<=0||isNaN(c)){const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:_.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/type",keyword:"type",params:{type:"number"},message:"must be number",schema:_.properties.attentionBudgetMinutes.type,parentSchema:_.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.recommendedNarratives.items.type,parentSchema:_.properties.recommendedNarratives.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_.properties.recommendedNarratives.type,parentSchema:_.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedTones!==void 0){let c=a.recommendedTones;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/recommendedTones/"+g,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.recommendedTones.items.type,parentSchema:_.properties.recommendedTones.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_.properties.recommendedTones.type,parentSchema:_.properties.recommendedTones,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.tags.items.type,parentSchema:_.properties.tags.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_.properties.tags.type,parentSchema:_.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:_.type,parentSchema:_,data:a};e===null?e=[c]:e.push(c),t++}return Ma.errors=e,t===0}Ma.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,seniority:!0,technicalFluency:!0,decisionPower:!0,attentionBudgetMinutes:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};var Se=j.presentation.$defs.Purpose;function js(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=js.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const p=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Se.anyOf[0].required,parentSchema:Se.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=p===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Se.anyOf[1].required,parentSchema:Se.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:Se.anyOf,parentSchema:Se,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Vt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.name.type,parentSchema:Se.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.summary.type,parentSchema:Se.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.description.type,parentSchema:Se.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.outcome!==void 0){let c=a.outcome;if(typeof c!="string"){const y={instancePath:s+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.outcome.type,parentSchema:Se.properties.outcome,data:c};e===null?e=[y]:e.push(y),t++}}if(a.successCriteria!==void 0){let c=a.successCriteria;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/successCriteria/"+g,schemaPath:"#/properties/successCriteria/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.successCriteria.items.type,parentSchema:Se.properties.successCriteria.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/successCriteria",schemaPath:"#/properties/successCriteria/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Se.properties.successCriteria.type,parentSchema:Se.properties.successCriteria,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.recommendedNarratives.items.type,parentSchema:Se.properties.recommendedNarratives.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Se.properties.recommendedNarratives.type,parentSchema:Se.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedTones!==void 0){let c=a.recommendedTones;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/recommendedTones/"+g,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.recommendedTones.items.type,parentSchema:Se.properties.recommendedTones.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Se.properties.recommendedTones.type,parentSchema:Se.properties.recommendedTones,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.tags.items.type,parentSchema:Se.properties.tags.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Se.properties.tags.type,parentSchema:Se.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Se.type,parentSchema:Se,data:a};e===null?e=[c]:e.push(c),t++}return js.errors=e,t===0}js.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,outcome:!0,successCriteria:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};var Te=j.presentation.$defs.Language,Kn=new RegExp("^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$","u");function Fs(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Fs.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t,n=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const i={};e===null?e=[i]:e.push(i),t++}var p=n===t;if(p){const i={instancePath:s,schemaPath:"#/not",keyword:"not",params:{},message:"must NOT be valid",schema:Te.not,parentSchema:Te,data:a};e===null?e=[i]:e.push(i),t++}else t=r,e!==null&&(r?e.length=r:e=null);if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.bcp47===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"bcp47"},message:"must have required property 'bcp47'",schema:Te.required,parentSchema:Te,data:a};e===null?e=[i]:e.push(i),t++}if(a.name!==void 0){let i=a.name;if(typeof i!="string"){const h={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.name.type,parentSchema:Te.properties.name,data:i};e===null?e=[h]:e.push(h),t++}}if(a.bcp47!==void 0){let i=a.bcp47;if(typeof i=="string"){if(!Kn.test(i)){const h={instancePath:s+"/bcp47",schemaPath:"#/$defs/LanguageTag/pattern",keyword:"pattern",params:{pattern:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"',schema:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$",parentSchema:ka,data:i};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/bcp47",schemaPath:"#/$defs/LanguageTag/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ka.type,parentSchema:ka,data:i};e===null?e=[h]:e.push(h),t++}}if(a.ooxmlLang!==void 0){let i=a.ooxmlLang;if(typeof i!="string"){const h={instancePath:s+"/ooxmlLang",schemaPath:"#/properties/ooxmlLang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.ooxmlLang.type,parentSchema:Te.properties.ooxmlLang,data:i};e===null?e=[h]:e.push(h),t++}}if(a.code!==void 0){let i=a.code;if(typeof i!="string"){const h={instancePath:s+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.code.type,parentSchema:Te.properties.code,data:i};e===null?e=[h]:e.push(h),t++}}if(a.direction!==void 0){let i=a.direction;if(typeof i!="string"){const h={instancePath:s+"/direction",schemaPath:"#/properties/direction/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.direction.type,parentSchema:Te.properties.direction,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="ltr"||i==="rtl")){const h={instancePath:s+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues:Te.properties.direction.enum},message:"must be equal to one of the allowed values",schema:Te.properties.direction.enum,parentSchema:Te.properties.direction,data:i};e===null?e=[h]:e.push(h),t++}}if(a.script!==void 0){let i=a.script;if(typeof i!="string"){const h={instancePath:s+"/script",schemaPath:"#/properties/script/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.script.type,parentSchema:Te.properties.script,data:i};e===null?e=[h]:e.push(h),t++}}if(a.fontScheme!==void 0){let i=a.fontScheme;if(typeof i=="string"){if(!Vt.test(i)){const h={instancePath:s+"/fontScheme",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:i};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/fontScheme",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:i};e===null?e=[h]:e.push(h),t++}}if(a.googleFontScheme!==void 0){let i=a.googleFontScheme;if(typeof i=="string"){if(!Vt.test(i)){const h={instancePath:s+"/googleFontScheme",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:i};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/googleFontScheme",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:i};e===null?e=[h]:e.push(h),t++}}if(a.summary!==void 0){let i=a.summary;if(typeof i!="string"){const h={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.summary.type,parentSchema:Te.properties.summary,data:i};e===null?e=[h]:e.push(h),t++}}if(a.description!==void 0){let i=a.description;if(typeof i!="string"){const h={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.description.type,parentSchema:Te.properties.description,data:i};e===null?e=[h]:e.push(h),t++}}if(a.tags!==void 0){let i=a.tags;if(Array.isArray(i)){const h=i.length;for(let c=0;c<h;c++){let y=i[c];if(typeof y!="string"){const g={instancePath:s+"/tags/"+c,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.tags.items.type,parentSchema:Te.properties.tags.items,data:y};e===null?e=[g]:e.push(g),t++}}}else{const h={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Te.properties.tags.type,parentSchema:Te.properties.tags,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Te.type,parentSchema:Te,data:a};e===null?e=[i]:e.push(i),t++}return Fs.errors=e,t===0}Fs.evaluated={props:{name:!0,bcp47:!0,ooxmlLang:!0,code:!0,direction:!0,script:!0,fontScheme:!0,googleFontScheme:!0,summary:!0,description:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};var ve=j.presentation.$defs.Tone;function Ts(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ts.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const p=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ve.anyOf[0].required,parentSchema:ve.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=p===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ve.anyOf[1].required,parentSchema:ve.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:ve.anyOf,parentSchema:ve,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Vt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.name.type,parentSchema:ve.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.summary.type,parentSchema:ve.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.description.type,parentSchema:ve.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.voiceCues!==void 0){let c=a.voiceCues;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/voiceCues/"+g,schemaPath:"#/properties/voiceCues/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.voiceCues.items.type,parentSchema:ve.properties.voiceCues.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/voiceCues",schemaPath:"#/properties/voiceCues/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.voiceCues.type,parentSchema:ve.properties.voiceCues,data:c};e===null?e=[y]:e.push(y),t++}}if(a.avoid!==void 0){let c=a.avoid;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/avoid/"+g,schemaPath:"#/properties/avoid/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.avoid.items.type,parentSchema:ve.properties.avoid.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/avoid",schemaPath:"#/properties/avoid/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.avoid.type,parentSchema:ve.properties.avoid,data:c};e===null?e=[y]:e.push(y),t++}}if(a.samplePhrases!==void 0){let c=a.samplePhrases;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/samplePhrases/"+g,schemaPath:"#/properties/samplePhrases/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.samplePhrases.items.type,parentSchema:ve.properties.samplePhrases.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/samplePhrases",schemaPath:"#/properties/samplePhrases/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.samplePhrases.type,parentSchema:ve.properties.samplePhrases,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.recommendedNarratives.items.type,parentSchema:ve.properties.recommendedNarratives.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.recommendedNarratives.type,parentSchema:ve.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.tags.items.type,parentSchema:ve.properties.tags.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.tags.type,parentSchema:ve.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ve.type,parentSchema:ve,data:a};e===null?e=[c]:e.push(c),t++}return Ts.errors=e,t===0}Ts.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,voiceCues:!0,avoid:!0,samplePhrases:!0,recommendedNarratives:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};var fe=j.presentation.$defs.Design,_t=j.presentation.$defs.DimensionPreset,je=j.presentation.$defs.ThemeBackgroundSlot,mt=j.presentation.$defs.Watermark,oh=new RegExp("^var:organization(\\.[A-Za-z0-9_-]+)?\\.logo(\\.(full|stacked|icon|wordmark))?$","u"),Jn=j.presentation.$defs.ColorScheme,E=j.presentation.$defs.HexColor,we=new RegExp("^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$","u");function Cs(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Cs.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!Vt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent1!==void 0){let r=a.accent1;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent2!==void 0){let r=a.accent2;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent3!==void 0){let r=a.accent3;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent3",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent3",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent4!==void 0){let r=a.accent4;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent4",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent4",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent5!==void 0){let r=a.accent5;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent5",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent5",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent6!==void 0){let r=a.accent6;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent6",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent6",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dark1!==void 0){let r=a.dark1;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/dark1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dark1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dark2!==void 0){let r=a.dark2;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/dark2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dark2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.light1!==void 0){let r=a.light1;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/light1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/light1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.light2!==void 0){let r=a.light2;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/light2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/light2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.hyperlink!==void 0){let r=a.hyperlink;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/hyperlink",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/hyperlink",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.followedHyperlink!==void 0){let r=a.followedHyperlink;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/followedHyperlink",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/followedHyperlink",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.primary!==void 0){let r=a.primary;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/primary",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/primary",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.secondary!==void 0){let r=a.secondary;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/secondary",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/secondary",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent!==void 0){let r=a.accent;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.background!==void 0){let r=a.background;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/background",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/background",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.surface!==void 0){let r=a.surface;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/surface",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/surface",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.text!==void 0){let r=a.text;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/text",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/text",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.textSecondary!==void 0){let r=a.textSecondary;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/textSecondary",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/textSecondary",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Jn.type,parentSchema:Jn,data:a};e===null?e=[r]:e.push(r),t++}return Cs.errors=e,t===0}Cs.evaluated={props:{id:!0,accent1:!0,accent2:!0,accent3:!0,accent4:!0,accent5:!0,accent6:!0,dark1:!0,dark2:!0,light1:!0,light2:!0,hyperlink:!0,followedHyperlink:!0,primary:!0,secondary:!0,accent:!0,background:!0,surface:!0,text:!0,textSecondary:!0},dynamicProps:!1,dynamicItems:!1};var ne=j.presentation.$defs.FontScheme;function Vs(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Vs.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!Vt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:r};e===null?e=[n]:e.push(n),t++}}if(a.major!==void 0){let r=a.major;if(typeof r!="string"){const n={instancePath:s+"/major",schemaPath:"#/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.major.type,parentSchema:ne.properties.major,data:r};e===null?e=[n]:e.push(n),t++}}if(a.minor!==void 0){let r=a.minor;if(typeof r!="string"){const n={instancePath:s+"/minor",schemaPath:"#/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.minor.type,parentSchema:ne.properties.minor,data:r};e===null?e=[n]:e.push(n),t++}}if(a.eastAsian!==void 0){let r=a.eastAsian;if(r&&typeof r=="object"&&!Array.isArray(r)){if(Object.keys(r).length<1){const n={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:ne.properties.eastAsian,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="major"||n==="minor")){const p={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:ne.properties.eastAsian,data:r};e===null?e=[p]:e.push(p),t++}if(r.major!==void 0){let n=r.major;if(typeof n!="string"){const p={instancePath:s+"/eastAsian/major",schemaPath:"#/properties/eastAsian/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.eastAsian.properties.major.type,parentSchema:ne.properties.eastAsian.properties.major,data:n};e===null?e=[p]:e.push(p),t++}}if(r.minor!==void 0){let n=r.minor;if(typeof n!="string"){const p={instancePath:s+"/eastAsian/minor",schemaPath:"#/properties/eastAsian/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.eastAsian.properties.minor.type,parentSchema:ne.properties.eastAsian.properties.minor,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ne.properties.eastAsian.type,parentSchema:ne.properties.eastAsian,data:r};e===null?e=[n]:e.push(n),t++}}if(a.complexScript!==void 0){let r=a.complexScript;if(r&&typeof r=="object"&&!Array.isArray(r)){if(Object.keys(r).length<1){const n={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:ne.properties.complexScript,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="major"||n==="minor")){const p={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:ne.properties.complexScript,data:r};e===null?e=[p]:e.push(p),t++}if(r.major!==void 0){let n=r.major;if(typeof n!="string"){const p={instancePath:s+"/complexScript/major",schemaPath:"#/properties/complexScript/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.complexScript.properties.major.type,parentSchema:ne.properties.complexScript.properties.major,data:n};e===null?e=[p]:e.push(p),t++}}if(r.minor!==void 0){let n=r.minor;if(typeof n!="string"){const p={instancePath:s+"/complexScript/minor",schemaPath:"#/properties/complexScript/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.complexScript.properties.minor.type,parentSchema:ne.properties.complexScript.properties.minor,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ne.properties.complexScript.type,parentSchema:ne.properties.complexScript,data:r};e===null?e=[n]:e.push(n),t++}}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.type.type,parentSchema:ne.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="sans-serif"||r==="serif"||r==="monospace")){const n={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ne.properties.type.enum},message:"must be equal to one of the allowed values",schema:ne.properties.type.enum,parentSchema:ne.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.app!==void 0){let r=a.app;if(typeof r!="string"){const n={instancePath:s+"/app",schemaPath:"#/properties/app/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.app.type,parentSchema:ne.properties.app,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="powerpoint"||r==="google-slides")){const n={instancePath:s+"/app",schemaPath:"#/properties/app/enum",keyword:"enum",params:{allowedValues:ne.properties.app.enum},message:"must be equal to one of the allowed values",schema:ne.properties.app.enum,parentSchema:ne.properties.app,data:r};e===null?e=[n]:e.push(n),t++}}if(a.languageFamily!==void 0){let r=a.languageFamily;if(typeof r!="string"){const n={instancePath:s+"/languageFamily",schemaPath:"#/properties/languageFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.languageFamily.type,parentSchema:ne.properties.languageFamily,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="latin"||r==="ea"||r==="cs"||r==="eastAsian"||r==="complexScript")){const n={instancePath:s+"/languageFamily",schemaPath:"#/properties/languageFamily/enum",keyword:"enum",params:{allowedValues:ne.properties.languageFamily.enum},message:"must be equal to one of the allowed values",schema:ne.properties.languageFamily.enum,parentSchema:ne.properties.languageFamily,data:r};e===null?e=[n]:e.push(n),t++}}if(a.heading!==void 0){let r=a.heading;if(typeof r!="string"){const n={instancePath:s+"/heading",schemaPath:"#/properties/heading/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.heading.type,parentSchema:ne.properties.heading,data:r};e===null?e=[n]:e.push(n),t++}}if(a.body!==void 0){let r=a.body;if(typeof r!="string"){const n={instancePath:s+"/body",schemaPath:"#/properties/body/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.body.type,parentSchema:ne.properties.body,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent!==void 0){let r=a.accent;if(typeof r!="string"){const n={instancePath:s+"/accent",schemaPath:"#/properties/accent/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.accent.type,parentSchema:ne.properties.accent,data:r};e===null?e=[n]:e.push(n),t++}}if(a.code!==void 0){let r=a.code;if(typeof r!="string"){const n={instancePath:s+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.code.type,parentSchema:ne.properties.code,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ne.type,parentSchema:ne,data:a};e===null?e=[r]:e.push(r),t++}return Vs.errors=e,t===0}Vs.evaluated={props:{id:!0,major:!0,minor:!0,eastAsian:!0,complexScript:!0,type:!0,app:!0,languageFamily:!0,heading:!0,body:!0,accent:!0,code:!0},dynamicProps:!1,dynamicItems:!1};var ia=j.presentation.$defs.Dimensions;function Ls(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ls.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.preset!==void 0){let r=a.preset;if(typeof r!="string"){const n={instancePath:s+"/preset",schemaPath:"#/$defs/DimensionPreset/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="16:9"||r==="4:3"||r==="16:10"||r==="1:1"||r==="4:5"||r==="9:16"||r==="letter"||r==="a4"||r==="widescreen"||r==="standard")){const n={instancePath:s+"/preset",schemaPath:"#/$defs/DimensionPreset/enum",keyword:"enum",params:{allowedValues:_t.enum},message:"must be equal to one of the allowed values",schema:_t.enum,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}}if(a.widthInches!==void 0){let r=a.widthInches;if(typeof r=="number"){if(r<=0||isNaN(r)){const n={instancePath:s+"/widthInches",schemaPath:"#/properties/widthInches/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ia.properties.widthInches,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/widthInches",schemaPath:"#/properties/widthInches/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ia.properties.widthInches.type,parentSchema:ia.properties.widthInches,data:r};e===null?e=[n]:e.push(n),t++}}if(a.heightInches!==void 0){let r=a.heightInches;if(typeof r=="number"){if(r<=0||isNaN(r)){const n={instancePath:s+"/heightInches",schemaPath:"#/properties/heightInches/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ia.properties.heightInches,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/heightInches",schemaPath:"#/properties/heightInches/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ia.properties.heightInches.type,parentSchema:ia.properties.heightInches,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ia.type,parentSchema:ia,data:a};e===null?e=[r]:e.push(r),t++}return Ls.errors=e,t===0}Ls.evaluated={props:{preset:!0,widthInches:!0,heightInches:!0},dynamicProps:!1,dynamicItems:!1};var Wn=j.presentation.$defs.BackgroundShortcut,Ba=j.presentation.$defs.ImageSource,Fc=new RegExp("^(asset:|https://|data:|\\./|\\.\\./)","u");function Rs(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Rs.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const y={instancePath:s,schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.type,parentSchema:je,data:a};e===null?e=[y]:e.push(y),t++}if(!(a==="light1"||a==="light2"||a==="dark1"||a==="dark2")){const y={instancePath:s,schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:je.enum},message:"must be equal to one of the allowed values",schema:je.enum,parentSchema:je,data:a};e===null?e=[y]:e.push(y),t++}var c=i===t;c&&(n=!0,p=0);const h=t;if(typeof a=="string"){if(!we.test(a)){const y={instancePath:s,schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:a};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s,schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:a};e===null?e=[y]:e.push(y),t++}var c=h===t;if(c&&n)n=!1,p=[p,1];else{c&&(n=!0,p=1);const y=t;if(typeof a=="string"){if(!Fc.test(a)){const l={instancePath:s,schemaPath:"#/$defs/ImageSource/pattern",keyword:"pattern",params:{pattern:"^(asset:|https://|data:|\\./|\\.\\./)"},message:'must match pattern "^(asset:|https://|data:|\\./|\\.\\./)"',schema:"^(asset:|https://|data:|\\./|\\.\\./)",parentSchema:Ba,data:a};e===null?e=[l]:e.push(l),t++}}else{const l={instancePath:s,schemaPath:"#/$defs/ImageSource/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ba.type,parentSchema:Ba,data:a};e===null?e=[l]:e.push(l),t++}var c=y===t;c&&n?(n=!1,p=[p,2]):c&&(n=!0,p=2)}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const y={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:Wn.oneOf,parentSchema:Wn,data:a};e===null?e=[y]:e.push(y),t++}return Rs.errors=e,t===0}Rs.evaluated={dynamicProps:!1,dynamicItems:!1};var Yn=j.presentation.$defs.Background,Gt=j.presentation.$defs.ThemeBackground;function Ha(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ha.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Gt.required,parentSchema:Gt,data:a};e===null?e=[r]:e.push(r),t++}if(a.slot===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"slot"},message:"must have required property 'slot'",schema:Gt.required,parentSchema:Gt,data:a};e===null?e=[r]:e.push(r),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Gt.properties.type.type,parentSchema:Gt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="theme"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"theme"},message:"must be equal to constant",schema:"theme",parentSchema:Gt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.slot!==void 0){let r=a.slot;if(typeof r!="string"){const n={instancePath:s+"/slot",schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.type,parentSchema:je,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2")){const n={instancePath:s+"/slot",schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:je.enum},message:"must be equal to one of the allowed values",schema:je.enum,parentSchema:je,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Gt.type,parentSchema:Gt,data:a};e===null?e=[r]:e.push(r),t++}return Ha.errors=e,t===0}Ha.evaluated={props:{type:!0,slot:!0},dynamicProps:!1,dynamicItems:!1};var Dt=j.presentation.$defs.SolidBackground,Et=j.presentation.$defs.ColorRef,Tc=new RegExp("^var:[a-z][a-z0-9-]*$","u");function Be(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Be.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const p=t;if(typeof a=="string"){if(!we.test(a)){const y={instancePath:s,schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:a};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s,schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:a};e===null?e=[y]:e.push(y),t++}var c=p===t;n=n||c;const i=t;if(typeof a!="string"){const y={instancePath:s,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Et.anyOf[1].type,parentSchema:Et.anyOf[1],data:a};e===null?e=[y]:e.push(y),t++}if(!(a==="accent1"||a==="accent2"||a==="accent3"||a==="accent4"||a==="accent5"||a==="accent6"||a==="dark1"||a==="dark2"||a==="light1"||a==="light2"||a==="hyperlink"||a==="followedHyperlink"||a==="primary"||a==="secondary"||a==="accent"||a==="background"||a==="surface"||a==="surfaceAlt"||a==="text"||a==="textSecondary")){const y={instancePath:s,schemaPath:"#/anyOf/1/enum",keyword:"enum",params:{allowedValues:Et.anyOf[1].enum},message:"must be equal to one of the allowed values",schema:Et.anyOf[1].enum,parentSchema:Et.anyOf[1],data:a};e===null?e=[y]:e.push(y),t++}var c=i===t;n=n||c;const h=t;if(typeof a=="string"){if(!Tc.test(a)){const y={instancePath:s,schemaPath:"#/anyOf/2/pattern",keyword:"pattern",params:{pattern:"^var:[a-z][a-z0-9-]*$"},message:'must match pattern "^var:[a-z][a-z0-9-]*$"',schema:"^var:[a-z][a-z0-9-]*$",parentSchema:Et.anyOf[2],data:a};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Et.anyOf[2].type,parentSchema:Et.anyOf[2],data:a};e===null?e=[y]:e.push(y),t++}var c=h===t;if(n=n||c,n)t=r,e!==null&&(r?e.length=r:e=null);else{const y={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:Et.anyOf,parentSchema:Et,data:a};e===null?e=[y]:e.push(y),t++}return Be.errors=e,t===0}Be.evaluated={dynamicProps:!1,dynamicItems:!1};function _a(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=_a.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Dt.required,parentSchema:Dt,data:a};e===null?e=[r]:e.push(r),t++}if(a.color===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:Dt.required,parentSchema:Dt,data:a};e===null?e=[r]:e.push(r),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Dt.properties.type.type,parentSchema:Dt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="solid"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"solid"},message:"must be equal to constant",schema:"solid",parentSchema:Dt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.color!==void 0&&(Be(a.color,{instancePath:s+"/color",parentData:a,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length)),a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Dt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Dt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Dt.properties.opacity.type,parentSchema:Dt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Dt.type,parentSchema:Dt,data:a};e===null?e=[r]:e.push(r),t++}return _a.errors=e,t===0}_a.evaluated={props:{type:!0,color:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1};var Pe=j.presentation.$defs.GradientBackground;function Ea(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ea.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Pe.required,parentSchema:Pe,data:a};e===null?e=[r]:e.push(r),t++}if(a.gradient===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"gradient"},message:"must have required property 'gradient'",schema:Pe.required,parentSchema:Pe,data:a};e===null?e=[r]:e.push(r),t++}if(a.tone!==void 0){let r=a.tone;if(typeof r!="string"){const n={instancePath:s+"/tone",schemaPath:"#/properties/tone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.tone.type,parentSchema:Pe.properties.tone,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="dark"||r==="light")){const n={instancePath:s+"/tone",schemaPath:"#/properties/tone/enum",keyword:"enum",params:{allowedValues:Pe.properties.tone.enum},message:"must be equal to one of the allowed values",schema:Pe.properties.tone.enum,parentSchema:Pe.properties.tone,data:r};e===null?e=[n]:e.push(n),t++}}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.type.type,parentSchema:Pe.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="gradient"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"gradient"},message:"must be equal to constant",schema:"gradient",parentSchema:Pe.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.gradient!==void 0){let r=a.gradient;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.angle!==void 0){let n=r.angle;if(typeof n!="number"){const p={instancePath:s+"/gradient/angle",schemaPath:"#/properties/gradient/properties/angle/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Pe.properties.gradient.properties.angle.type,parentSchema:Pe.properties.gradient.properties.angle,data:n};e===null?e=[p]:e.push(p),t++}}if(r.stops!==void 0){let n=r.stops;if(Array.isArray(n)){if(n.length<2){const i={instancePath:s+"/gradient/stops",schemaPath:"#/properties/gradient/properties/stops/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items",schema:2,parentSchema:Pe.properties.gradient.properties.stops,data:n};e===null?e=[i]:e.push(i),t++}const p=n.length;for(let i=0;i<p;i++){let h=n[i];if(h&&typeof h=="object"&&!Array.isArray(h)){if(h.color===void 0){const c={instancePath:s+"/gradient/stops/"+i,schemaPath:"#/properties/gradient/properties/stops/items/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:Pe.properties.gradient.properties.stops.items.required,parentSchema:Pe.properties.gradient.properties.stops.items,data:h};e===null?e=[c]:e.push(c),t++}if(h.position===void 0){const c={instancePath:s+"/gradient/stops/"+i,schemaPath:"#/properties/gradient/properties/stops/items/required",keyword:"required",params:{missingProperty:"position"},message:"must have required property 'position'",schema:Pe.properties.gradient.properties.stops.items.required,parentSchema:Pe.properties.gradient.properties.stops.items,data:h};e===null?e=[c]:e.push(c),t++}if(h.color!==void 0&&(Be(h.color,{instancePath:s+"/gradient/stops/"+i+"/color",parentData:h,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length)),h.position!==void 0){let c=h.position;if(typeof c=="number"){if(c>1||isNaN(c)){const y={instancePath:s+"/gradient/stops/"+i+"/position",schemaPath:"#/properties/gradient/properties/stops/items/properties/position/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Pe.properties.gradient.properties.stops.items.properties.position,data:c};e===null?e=[y]:e.push(y),t++}if(c<0||isNaN(c)){const y={instancePath:s+"/gradient/stops/"+i+"/position",schemaPath:"#/properties/gradient/properties/stops/items/properties/position/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Pe.properties.gradient.properties.stops.items.properties.position,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/gradient/stops/"+i+"/position",schemaPath:"#/properties/gradient/properties/stops/items/properties/position/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Pe.properties.gradient.properties.stops.items.properties.position.type,parentSchema:Pe.properties.gradient.properties.stops.items.properties.position,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s+"/gradient/stops/"+i,schemaPath:"#/properties/gradient/properties/stops/items/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Pe.properties.gradient.properties.stops.items.type,parentSchema:Pe.properties.gradient.properties.stops.items,data:h};e===null?e=[c]:e.push(c),t++}}}else{const p={instancePath:s+"/gradient/stops",schemaPath:"#/properties/gradient/properties/stops/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Pe.properties.gradient.properties.stops.type,parentSchema:Pe.properties.gradient.properties.stops,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/gradient",schemaPath:"#/properties/gradient/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Pe.properties.gradient.type,parentSchema:Pe.properties.gradient,data:r};e===null?e=[n]:e.push(n),t++}}if(a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Pe.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Pe.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Pe.properties.opacity.type,parentSchema:Pe.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Pe.type,parentSchema:Pe,data:a};e===null?e=[r]:e.push(r),t++}return Ea.errors=e,t===0}Ea.evaluated={props:{tone:!0,type:!0,gradient:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1};var Ie=j.presentation.$defs.ImageBackground,Ge=j.presentation.$defs.ImageFocus,Da=j.presentation.$defs.ImageRecolor;function $a(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$a.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const g={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Da.oneOf[0].type,parentSchema:Da.oneOf[0],data:a};e===null?e=[g]:e.push(g),t++}if(a!=="grayscale"){const g={instancePath:s,schemaPath:"#/oneOf/0/const",keyword:"const",params:{allowedValue:"grayscale"},message:"must be equal to constant",schema:"grayscale",parentSchema:Da.oneOf[0],data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.dark===void 0){const g={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"dark"},message:"must have required property 'dark'",schema:Da.oneOf[1].required,parentSchema:Da.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}if(a.light===void 0){const g={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"light"},message:"must have required property 'light'",schema:Da.oneOf[1].required,parentSchema:Da.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}for(const g in a)if(!(g==="dark"||g==="light")){const l={instancePath:s,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties",schema:!1,parentSchema:Da.oneOf[1],data:a};e===null?e=[l]:e.push(l),t++}a.dark!==void 0&&(Be(a.dark,{instancePath:s+"/dark",parentData:a,parentDataProperty:"dark",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length)),a.light!==void 0&&(Be(a.light,{instancePath:s+"/light",parentData:a,parentDataProperty:"light",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length))}else{const g={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Da.oneOf[1].type,parentSchema:Da.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}var c=h===t;if(c&&n)n=!1,p=[p,1];else if(c){n=!0,p=1;var y=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:Da.oneOf,parentSchema:Da,data:a};e===null?e=[g]:e.push(g),t++}return $a.errors=e,m.props=y,t===0}$a.evaluated={dynamicProps:!0,dynamicItems:!1};var Ut=j.presentation.$defs.Overlay;function qa(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=qa.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.color===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:Ut.required,parentSchema:Ut,data:a};e===null?e=[r]:e.push(r),t++}if(a.opacity===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"opacity"},message:"must have required property 'opacity'",schema:Ut.required,parentSchema:Ut,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="color"||r==="opacity"||r==="edge"||r==="size")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ut,data:a};e===null?e=[n]:e.push(n),t++}if(a.color!==void 0&&(Be(a.color,{instancePath:s+"/color",parentData:a,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length)),a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Ut.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ut.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ut.properties.opacity.type,parentSchema:Ut.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}if(a.edge!==void 0){let r=a.edge;if(typeof r!="string"){const n={instancePath:s+"/edge",schemaPath:"#/properties/edge/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ut.properties.edge.type,parentSchema:Ut.properties.edge,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="top"||r==="bottom"||r==="left"||r==="right")){const n={instancePath:s+"/edge",schemaPath:"#/properties/edge/enum",keyword:"enum",params:{allowedValues:Ut.properties.edge.enum},message:"must be equal to one of the allowed values",schema:Ut.properties.edge.enum,parentSchema:Ut.properties.edge,data:r};e===null?e=[n]:e.push(n),t++}}if(a.size!==void 0){let r=a.size;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/size",schemaPath:"#/properties/size/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Ut.properties.size,data:r};e===null?e=[n]:e.push(n),t++}if(r<.05||isNaN(r)){const n={instancePath:s+"/size",schemaPath:"#/properties/size/minimum",keyword:"minimum",params:{comparison:">=",limit:.05},message:"must be >= 0.05",schema:.05,parentSchema:Ut.properties.size,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/size",schemaPath:"#/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ut.properties.size.type,parentSchema:Ut.properties.size,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ut.type,parentSchema:Ut,data:a};e===null?e=[r]:e.push(r),t++}return qa.errors=e,t===0}qa.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Ua(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ua.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Ie.required,parentSchema:Ie,data:a};e===null?e=[r]:e.push(r),t++}if(a.src===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:Ie.required,parentSchema:Ie,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!wa.call(Ie.properties,r)){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ie,data:a};e===null?e=[n]:e.push(n),t++}if(a.tone!==void 0){let r=a.tone;if(typeof r!="string"){const n={instancePath:s+"/tone",schemaPath:"#/properties/tone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.properties.tone.type,parentSchema:Ie.properties.tone,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="dark"||r==="light")){const n={instancePath:s+"/tone",schemaPath:"#/properties/tone/enum",keyword:"enum",params:{allowedValues:Ie.properties.tone.enum},message:"must be equal to one of the allowed values",schema:Ie.properties.tone.enum,parentSchema:Ie.properties.tone,data:r};e===null?e=[n]:e.push(n),t++}}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.properties.type.type,parentSchema:Ie.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="image"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"image"},message:"must be equal to constant",schema:"image",parentSchema:Ie.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.src!==void 0){let r=a.src;if(typeof r!="string"){const n={instancePath:s+"/src",schemaPath:"#/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.properties.src.type,parentSchema:Ie.properties.src,data:r};e===null?e=[n]:e.push(n),t++}}if(a.alt!==void 0){let r=a.alt;if(typeof r!="string"){const n={instancePath:s+"/alt",schemaPath:"#/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.properties.alt.type,parentSchema:Ie.properties.alt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.fit!==void 0){let r=a.fit;if(typeof r!="string"){const n={instancePath:s+"/fit",schemaPath:"#/properties/fit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.properties.fit.type,parentSchema:Ie.properties.fit,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="cover"||r==="contain"||r==="stretch"||r==="tile")){const n={instancePath:s+"/fit",schemaPath:"#/properties/fit/enum",keyword:"enum",params:{allowedValues:Ie.properties.fit.enum},message:"must be equal to one of the allowed values",schema:Ie.properties.fit.enum,parentSchema:Ie.properties.fit,data:r};e===null?e=[n]:e.push(n),t++}}if(a.focus!==void 0){let r=a.focus;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.x===void 0){const n={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/required",keyword:"required",params:{missingProperty:"x"},message:"must have required property 'x'",schema:Ge.required,parentSchema:Ge,data:r};e===null?e=[n]:e.push(n),t++}if(r.y===void 0){const n={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/required",keyword:"required",params:{missingProperty:"y"},message:"must have required property 'y'",schema:Ge.required,parentSchema:Ge,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="x"||n==="y")){const p={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:Ge,data:r};e===null?e=[p]:e.push(p),t++}if(r.x!==void 0){let n=r.x;if(typeof n=="number"){if(n>1||isNaN(n)){const p={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Ge.properties.x,data:n};e===null?e=[p]:e.push(p),t++}if(n<0||isNaN(n)){const p={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ge.properties.x,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ge.properties.x.type,parentSchema:Ge.properties.x,data:n};e===null?e=[p]:e.push(p),t++}}if(r.y!==void 0){let n=r.y;if(typeof n=="number"){if(n>1||isNaN(n)){const p={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Ge.properties.y,data:n};e===null?e=[p]:e.push(p),t++}if(n<0||isNaN(n)){const p={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ge.properties.y,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ge.properties.y.type,parentSchema:Ge.properties.y,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ge.type,parentSchema:Ge,data:r};e===null?e=[n]:e.push(n),t++}}if(a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Ie.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ie.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ie.properties.opacity.type,parentSchema:Ie.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}a.recolor!==void 0&&($a(a.recolor,{instancePath:s+"/recolor",parentData:a,parentDataProperty:"recolor",rootData:v,dynamicAnchors:b})||(e=e===null?$a.errors:e.concat($a.errors),t=e.length)),a.overlay!==void 0&&(qa(a.overlay,{instancePath:s+"/overlay",parentData:a,parentDataProperty:"overlay",rootData:v,dynamicAnchors:b})||(e=e===null?qa.errors:e.concat(qa.errors),t=e.length))}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ie.type,parentSchema:Ie,data:a};e===null?e=[r]:e.push(r),t++}return Ua.errors=e,t===0}Ua.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var lt=j.presentation.$defs.PatternBackground;function Ka(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ka.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:lt.required,parentSchema:lt,data:a};e===null?e=[r]:e.push(r),t++}if(a.pattern===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pattern"},message:"must have required property 'pattern'",schema:lt.required,parentSchema:lt,data:a};e===null?e=[r]:e.push(r),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:lt.properties.type.type,parentSchema:lt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="pattern"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"pattern"},message:"must be equal to constant",schema:"pattern",parentSchema:lt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.pattern!==void 0){let r=a.pattern;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.preset===void 0){const n={instancePath:s+"/pattern",schemaPath:"#/properties/pattern/required",keyword:"required",params:{missingProperty:"preset"},message:"must have required property 'preset'",schema:lt.properties.pattern.required,parentSchema:lt.properties.pattern,data:r};e===null?e=[n]:e.push(n),t++}if(r.preset!==void 0){let n=r.preset;if(typeof n!="string"){const p={instancePath:s+"/pattern/preset",schemaPath:"#/properties/pattern/properties/preset/type",keyword:"type",params:{type:"string"},message:"must be string",schema:lt.properties.pattern.properties.preset.type,parentSchema:lt.properties.pattern.properties.preset,data:n};e===null?e=[p]:e.push(p),t++}}r.foregroundColor!==void 0&&(Be(r.foregroundColor,{instancePath:s+"/pattern/foregroundColor",parentData:r,parentDataProperty:"foregroundColor",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length)),r.backgroundColor!==void 0&&(Be(r.backgroundColor,{instancePath:s+"/pattern/backgroundColor",parentData:r,parentDataProperty:"backgroundColor",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length))}else{const n={instancePath:s+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"object"},message:"must be object",schema:lt.properties.pattern.type,parentSchema:lt.properties.pattern,data:r};e===null?e=[n]:e.push(n),t++}}if(a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:lt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:lt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:lt.properties.opacity.type,parentSchema:lt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:lt.type,parentSchema:lt,data:a};e===null?e=[r]:e.push(r),t++}return Ka.errors=e,t===0}Ka.evaluated={props:{type:!0,pattern:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1};function Zs(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Zs.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;Ha(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Ha.errors:e.concat(Ha.errors),t=e.length);var y=i===t;if(y){n=!0,p=0;var h={};h.type=!0,h.slot=!0}const c=t;_a(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?_a.errors:e.concat(_a.errors),t=e.length);var y=c===t;if(y&&n)n=!1,p=[p,1];else{y&&(n=!0,p=1,h!==!0&&(h=h||{},h.type=!0,h.color=!0,h.opacity=!0));const g=t;Ea(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Ea.errors:e.concat(Ea.errors),t=e.length);var y=g===t;if(y&&n)n=!1,p=[p,2];else{y&&(n=!0,p=2,h!==!0&&(h=h||{},h.tone=!0,h.type=!0,h.gradient=!0,h.opacity=!0));const o=t;Ua(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Ua.errors:e.concat(Ua.errors),t=e.length);var y=o===t;if(y&&n)n=!1,p=[p,3];else{y&&(n=!0,p=3,h!==!0&&(h=!0));const O=t;Ka(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Ka.errors:e.concat(Ka.errors),t=e.length);var y=O===t;y&&n?(n=!1,p=[p,4]):y&&(n=!0,p=4,h!==!0&&(h=h||{},h.type=!0,h.pattern=!0,h.opacity=!0))}}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:Yn.oneOf,parentSchema:Yn,data:a};e===null?e=[g]:e.push(g),t++}return Zs.errors=e,m.props=h,t===0}Zs.evaluated={dynamicProps:!0,dynamicItems:!1};var xe=j.presentation.$defs.ColorVariant;function Ms(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ms.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.background===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"background"},message:"must have required property 'background'",schema:xe.required,parentSchema:xe,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="background"||r==="accents")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:xe,data:a};e===null?e=[n]:e.push(n),t++}if(a.background!==void 0){let r=a.background;if(typeof r!="string"){const n={instancePath:s+"/background",schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.type,parentSchema:je,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2")){const n={instancePath:s+"/background",schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:je.enum},message:"must be equal to one of the allowed values",schema:je.enum,parentSchema:je,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accents!==void 0){let r=a.accents;if(Array.isArray(r)){if(r.length>6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items",schema:6,parentSchema:xe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}if(r.length<6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/minItems",keyword:"minItems",params:{limit:6},message:"must NOT have fewer than 6 items",schema:6,parentSchema:xe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.properties.accents.items.type,parentSchema:xe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="accent1"||c==="accent2"||c==="accent3"||c==="accent4"||c==="accent5"||c==="accent6")){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/enum",keyword:"enum",params:{allowedValues:xe.properties.accents.items.enum},message:"must be equal to one of the allowed values",schema:xe.properties.accents.items.enum,parentSchema:xe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}}let p=r.length,i;if(p>1){const h={};for(;p--;){let c=r[p];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/accents",schemaPath:"#/properties/accents/uniqueItems",keyword:"uniqueItems",params:{i:p,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+p+" are identical)",schema:!0,parentSchema:xe.properties.accents,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=p}}}}else{const n={instancePath:s+"/accents",schemaPath:"#/properties/accents/type",keyword:"type",params:{type:"array"},message:"must be array",schema:xe.properties.accents.type,parentSchema:xe.properties.accents,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:xe.type,parentSchema:xe,data:a};e===null?e=[r]:e.push(r),t++}return Ms.errors=e,t===0}Ms.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Bs=j.presentation.$defs.HeaderFooter,ma=j.presentation.$defs.HeaderFooterItem,me=ld().default;function vt(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vt.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const p in a)if(!(p==="text"||p==="image"||p==="date"||p==="dateFormat"||p==="socials")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:ma,data:a};e===null?e=[i]:e.push(i),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const i={instancePath:s+"/text",schemaPath:"#/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ma.properties.text.type,parentSchema:ma.properties.text,data:p};e===null?e=[i]:e.push(i),t++}}if(a.image!==void 0){let p=a.image;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/image/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/image/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/image/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/image/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/image/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}if(a.date!==void 0){let p=a.date;const i=t;let h=!1,c=null;const y=t;if(typeof p!="boolean"){const l={instancePath:s+"/date",schemaPath:"#/properties/date/oneOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ma.properties.date.oneOf[0].type,parentSchema:ma.properties.date.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(typeof p!="string"){const l={instancePath:s+"/date",schemaPath:"#/properties/date/oneOf/1/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ma.properties.date.oneOf[1].type,parentSchema:ma.properties.date.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/date",schemaPath:"#/properties/date/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:ma.properties.date.oneOf,parentSchema:ma.properties.date,data:p};e===null?e=[l]:e.push(l),t++}}if(a.dateFormat!==void 0){let p=a.dateFormat;if(typeof p=="string"){if(me(p)<1){const i={instancePath:s+"/dateFormat",schemaPath:"#/properties/dateFormat/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:ma.properties.dateFormat,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/dateFormat",schemaPath:"#/properties/dateFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ma.properties.dateFormat.type,parentSchema:ma.properties.dateFormat,data:p};e===null?e=[i]:e.push(i),t++}}if(a.socials!==void 0){let p=a.socials;if(typeof p!="boolean"){const i={instancePath:s+"/socials",schemaPath:"#/properties/socials/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ma.properties.socials.type,parentSchema:ma.properties.socials,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ma.type,parentSchema:ma,data:a};e===null?e=[p]:e.push(p),t++}return vt.errors=e,t===0}vt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Ja(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ja.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a))a.left!==void 0&&(vt(a.left,{instancePath:s+"/left",parentData:a,parentDataProperty:"left",rootData:v,dynamicAnchors:b})||(e=e===null?vt.errors:e.concat(vt.errors),t=e.length)),a.center!==void 0&&(vt(a.center,{instancePath:s+"/center",parentData:a,parentDataProperty:"center",rootData:v,dynamicAnchors:b})||(e=e===null?vt.errors:e.concat(vt.errors),t=e.length)),a.right!==void 0&&(vt(a.right,{instancePath:s+"/right",parentData:a,parentDataProperty:"right",rootData:v,dynamicAnchors:b})||(e=e===null?vt.errors:e.concat(vt.errors),t=e.length));else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Bs.type,parentSchema:Bs,data:a};e===null?e=[r]:e.push(r),t++}return Ja.errors=e,t===0}Ja.evaluated={props:{left:!0,center:!0,right:!0},dynamicProps:!1,dynamicItems:!1};function Wa(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Wa.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.theme!==void 0){let k=a.theme;if(typeof k=="string"){if(!Vt.test(k)){const D={instancePath:s+"/theme",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/theme",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:k};e===null?e=[D]:e.push(D),t++}}if(a.colorScheme!==void 0){let k=a.colorScheme;const D=t;let I=!1,L=null;const Z=t;if(typeof k!="string"){const J={instancePath:s+"/colorScheme",schemaPath:"#/properties/colorScheme/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.colorScheme.oneOf[0].type,parentSchema:fe.properties.colorScheme.oneOf[0],data:k};e===null?e=[J]:e.push(J),t++}var r=Z===t;r&&(I=!0,L=0);const M=t;Cs(k,{instancePath:s+"/colorScheme",parentData:a,parentDataProperty:"colorScheme",rootData:v,dynamicAnchors:b})||(e=e===null?Cs.errors:e.concat(Cs.errors),t=e.length);var r=M===t;if(r&&I)I=!1,L=[L,1];else if(r){I=!0,L=1;var n={};n.id=!0,n.accent1=!0,n.accent2=!0,n.accent3=!0,n.accent4=!0,n.accent5=!0,n.accent6=!0,n.dark1=!0,n.dark2=!0,n.light1=!0,n.light2=!0,n.hyperlink=!0,n.followedHyperlink=!0,n.primary=!0,n.secondary=!0,n.accent=!0,n.background=!0,n.surface=!0,n.text=!0,n.textSecondary=!0}if(I)t=D,e!==null&&(D?e.length=D:e=null);else{const J={instancePath:s+"/colorScheme",schemaPath:"#/properties/colorScheme/oneOf",keyword:"oneOf",params:{passingSchemas:L},message:"must match exactly one schema in oneOf",schema:fe.properties.colorScheme.oneOf,parentSchema:fe.properties.colorScheme,data:k};e===null?e=[J]:e.push(J),t++}}if(a.fontScheme!==void 0){let k=a.fontScheme;const D=t;let I=!1,L=null;const Z=t;if(typeof k!="string"){const J={instancePath:s+"/fontScheme",schemaPath:"#/properties/fontScheme/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.fontScheme.oneOf[0].type,parentSchema:fe.properties.fontScheme.oneOf[0],data:k};e===null?e=[J]:e.push(J),t++}var p=Z===t;p&&(I=!0,L=0);const M=t;Vs(k,{instancePath:s+"/fontScheme",parentData:a,parentDataProperty:"fontScheme",rootData:v,dynamicAnchors:b})||(e=e===null?Vs.errors:e.concat(Vs.errors),t=e.length);var p=M===t;if(p&&I)I=!1,L=[L,1];else if(p){I=!0,L=1;var i={};i.id=!0,i.major=!0,i.minor=!0,i.eastAsian=!0,i.complexScript=!0,i.type=!0,i.app=!0,i.languageFamily=!0,i.heading=!0,i.body=!0,i.accent=!0,i.code=!0}if(I)t=D,e!==null&&(D?e.length=D:e=null);else{const J={instancePath:s+"/fontScheme",schemaPath:"#/properties/fontScheme/oneOf",keyword:"oneOf",params:{passingSchemas:L},message:"must match exactly one schema in oneOf",schema:fe.properties.fontScheme.oneOf,parentSchema:fe.properties.fontScheme,data:k};e===null?e=[J]:e.push(J),t++}}if(a.dimensions!==void 0){let k=a.dimensions;const D=t;let I=!1,L=null;const Z=t;if(typeof k!="string"){const J={instancePath:s+"/dimensions",schemaPath:"#/$defs/DimensionPreset/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:k};e===null?e=[J]:e.push(J),t++}if(!(k==="16:9"||k==="4:3"||k==="16:10"||k==="1:1"||k==="4:5"||k==="9:16"||k==="letter"||k==="a4"||k==="widescreen"||k==="standard")){const J={instancePath:s+"/dimensions",schemaPath:"#/$defs/DimensionPreset/enum",keyword:"enum",params:{allowedValues:_t.enum},message:"must be equal to one of the allowed values",schema:_t.enum,parentSchema:_t,data:k};e===null?e=[J]:e.push(J),t++}var h=Z===t;h&&(I=!0,L=0);const M=t;Ls(k,{instancePath:s+"/dimensions",parentData:a,parentDataProperty:"dimensions",rootData:v,dynamicAnchors:b})||(e=e===null?Ls.errors:e.concat(Ls.errors),t=e.length);var h=M===t;if(h&&I)I=!1,L=[L,1];else if(h){I=!0,L=1;var c={};c.preset=!0,c.widthInches=!0,c.heightInches=!0}if(I)t=D,e!==null&&(D?e.length=D:e=null);else{const J={instancePath:s+"/dimensions",schemaPath:"#/properties/dimensions/oneOf",keyword:"oneOf",params:{passingSchemas:L},message:"must match exactly one schema in oneOf",schema:fe.properties.dimensions.oneOf,parentSchema:fe.properties.dimensions,data:k};e===null?e=[J]:e.push(J),t++}}if(a.background!==void 0){let k=a.background;const D=t;let I=!1,L=null;const Z=t;Rs(k,{instancePath:s+"/background",parentData:a,parentDataProperty:"background",rootData:v,dynamicAnchors:b})||(e=e===null?Rs.errors:e.concat(Rs.errors),t=e.length);var y=Z===t;y&&(I=!0,L=0);const M=t;Zs(k,{instancePath:s+"/background",parentData:a,parentDataProperty:"background",rootData:v,dynamicAnchors:b})||(e=e===null?Zs.errors:e.concat(Zs.errors),t=e.length);var y=M===t;if(y&&I?(I=!1,L=[L,1]):y&&(I=!0,L=1),I)t=D,e!==null&&(D?e.length=D:e=null);else{const J={instancePath:s+"/background",schemaPath:"#/properties/background/oneOf",keyword:"oneOf",params:{passingSchemas:L},message:"must match exactly one schema in oneOf",schema:fe.properties.background.oneOf,parentSchema:fe.properties.background,data:k};e===null?e=[J]:e.push(J),t++}}if(a.variant!==void 0){let k=a.variant;const D=t;let I=!1,L=null;const Z=t;if(typeof k!="string"){const J={instancePath:s+"/variant",schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.type,parentSchema:je,data:k};e===null?e=[J]:e.push(J),t++}if(!(k==="light1"||k==="light2"||k==="dark1"||k==="dark2")){const J={instancePath:s+"/variant",schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:je.enum},message:"must be equal to one of the allowed values",schema:je.enum,parentSchema:je,data:k};e===null?e=[J]:e.push(J),t++}var g=Z===t;g&&(I=!0,L=0);const M=t;Ms(k,{instancePath:s+"/variant",parentData:a,parentDataProperty:"variant",rootData:v,dynamicAnchors:b})||(e=e===null?Ms.errors:e.concat(Ms.errors),t=e.length);var g=M===t;if(g&&I?(I=!1,L=[L,1]):g&&(I=!0,L=1),I)t=D,e!==null&&(D?e.length=D:e=null);else{const J={instancePath:s+"/variant",schemaPath:"#/properties/variant/oneOf",keyword:"oneOf",params:{passingSchemas:L},message:"must match exactly one schema in oneOf",schema:fe.properties.variant.oneOf,parentSchema:fe.properties.variant,data:k};e===null?e=[J]:e.push(J),t++}}if(a.logo!==void 0){let k=a.logo;const D=t;let I=!1,L=null;const Z=t;if(typeof k=="string"){if(!oh.test(k)){const J={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf/0/pattern",keyword:"pattern",params:{pattern:"^var:organization(\\.[A-Za-z0-9_-]+)?\\.logo(\\.(full|stacked|icon|wordmark))?$"},message:'must match pattern "^var:organization(\\.[A-Za-z0-9_-]+)?\\.logo(\\.(full|stacked|icon|wordmark))?$"',schema:"^var:organization(\\.[A-Za-z0-9_-]+)?\\.logo(\\.(full|stacked|icon|wordmark))?$",parentSchema:fe.properties.logo.oneOf[0],data:k};e===null?e=[J]:e.push(J),t++}}else{const J={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.logo.oneOf[0].type,parentSchema:fe.properties.logo.oneOf[0],data:k};e===null?e=[J]:e.push(J),t++}var l=Z===t;l&&(I=!0,L=0);const M=t;if(typeof k!="boolean"){const J={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf/1/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:fe.properties.logo.oneOf[1].type,parentSchema:fe.properties.logo.oneOf[1],data:k};e===null?e=[J]:e.push(J),t++}if(k!==!1){const J={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf/1/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:fe.properties.logo.oneOf[1],data:k};e===null?e=[J]:e.push(J),t++}var l=M===t;if(l&&I?(I=!1,L=[L,1]):l&&(I=!0,L=1),I)t=D,e!==null&&(D?e.length=D:e=null);else{const J={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf",keyword:"oneOf",params:{passingSchemas:L},message:"must match exactly one schema in oneOf",schema:fe.properties.logo.oneOf,parentSchema:fe.properties.logo,data:k};e===null?e=[J]:e.push(J),t++}}if(a.watermark!==void 0){let k=a.watermark;const D=t;let I=!1,L=null;const Z=t;if(typeof k!="boolean"){const ae={instancePath:s+"/watermark",schemaPath:"#/properties/watermark/oneOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:fe.properties.watermark.oneOf[0].type,parentSchema:fe.properties.watermark.oneOf[0],data:k};e===null?e=[ae]:e.push(ae),t++}if(k!==!1){const ae={instancePath:s+"/watermark",schemaPath:"#/properties/watermark/oneOf/0/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:fe.properties.watermark.oneOf[0],data:k};e===null?e=[ae]:e.push(ae),t++}var O=Z===t;O&&(I=!0,L=0);const M=t,J=t;let C=!1,T=null;const F=t;if(typeof k!="string"){const ae={instancePath:s+"/watermark",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:k};e===null?e=[ae]:e.push(ae),t++}var o=F===t;o&&(C=!0,T=0);const H=t;if(k&&typeof k=="object"&&!Array.isArray(k)){if(k.src===void 0){const ae={instancePath:s+"/watermark",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:k};e===null?e=[ae]:e.push(ae),t++}for(const ae in k)if(!(ae==="src"||ae==="alt"||ae==="title"||ae==="description"||ae==="mediaType")){const ee={instancePath:s+"/watermark",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ae},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:k};e===null?e=[ee]:e.push(ee),t++}if(k.src!==void 0){let ae=k.src;if(typeof ae!="string"){const ee={instancePath:s+"/watermark/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:ae};e===null?e=[ee]:e.push(ee),t++}}if(k.alt!==void 0){let ae=k.alt;if(typeof ae!="string"){const ee={instancePath:s+"/watermark/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:ae};e===null?e=[ee]:e.push(ee),t++}}if(k.title!==void 0){let ae=k.title;if(typeof ae!="string"){const ee={instancePath:s+"/watermark/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:ae};e===null?e=[ee]:e.push(ee),t++}}if(k.description!==void 0){let ae=k.description;if(typeof ae!="string"){const ee={instancePath:s+"/watermark/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:ae};e===null?e=[ee]:e.push(ee),t++}}if(k.mediaType!==void 0){let ae=k.mediaType;if(typeof ae!="string"){const ee={instancePath:s+"/watermark/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:ae};e===null?e=[ee]:e.push(ee),t++}}}else{const ae={instancePath:s+"/watermark",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:k};e===null?e=[ae]:e.push(ae),t++}var o=H===t;if(o&&C)C=!1,T=[T,1];else if(o){C=!0,T=1;var d=!0}if(C)t=J,e!==null&&(J?e.length=J:e=null);else{const ae={instancePath:s+"/watermark",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:T},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:k};e===null?e=[ae]:e.push(ae),t++}var O=M===t;if(O&&I)I=!1,L=[L,1];else{O&&(I=!0,L=1);const ae=t,ee=t;let G=!1,Ke=null;const at=t;if(k&&typeof k=="object"&&!Array.isArray(k)&&k.src===void 0){const it={instancePath:s+"/watermark",schemaPath:"#/$defs/Watermark/oneOf/0/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:mt.oneOf[0].required,parentSchema:mt.oneOf[0],data:k};e===null?e=[it]:e.push(it),t++}var S=at===t;S&&(G=!0,Ke=0);const R=t;if(k&&typeof k=="object"&&!Array.isArray(k)&&k.text===void 0){const it={instancePath:s+"/watermark",schemaPath:"#/$defs/Watermark/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:mt.oneOf[1].required,parentSchema:mt.oneOf[1],data:k};e===null?e=[it]:e.push(it),t++}var S=R===t;if(S&&G?(G=!1,Ke=[Ke,1]):S&&(G=!0,Ke=1),G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const it={instancePath:s+"/watermark",schemaPath:"#/$defs/Watermark/oneOf",keyword:"oneOf",params:{passingSchemas:Ke},message:"must match exactly one schema in oneOf",schema:mt.oneOf,parentSchema:mt,data:k};e===null?e=[it]:e.push(it),t++}if(k&&typeof k=="object"&&!Array.isArray(k)){if(k.opacity===void 0){const it={instancePath:s+"/watermark",schemaPath:"#/$defs/Watermark/required",keyword:"required",params:{missingProperty:"opacity"},message:"must have required property 'opacity'",schema:mt.required,parentSchema:mt,data:k};e===null?e=[it]:e.push(it),t++}for(const it in k)if(!(it==="src"||it==="text"||it==="opacity")){const It={instancePath:s+"/watermark",schemaPath:"#/$defs/Watermark/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:it},message:"must NOT have additional properties",schema:!1,parentSchema:mt,data:k};e===null?e=[It]:e.push(It),t++}if(k.src!==void 0){let it=k.src;if(typeof it!="string"){const It={instancePath:s+"/watermark/src",schemaPath:"#/$defs/Watermark/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:mt.properties.src.type,parentSchema:mt.properties.src,data:it};e===null?e=[It]:e.push(It),t++}}if(k.text!==void 0){let it=k.text;if(typeof it=="string"){if(me(it)<1){const It={instancePath:s+"/watermark/text",schemaPath:"#/$defs/Watermark/properties/text/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:mt.properties.text,data:it};e===null?e=[It]:e.push(It),t++}}else{const It={instancePath:s+"/watermark/text",schemaPath:"#/$defs/Watermark/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:mt.properties.text.type,parentSchema:mt.properties.text,data:it};e===null?e=[It]:e.push(It),t++}}if(k.opacity!==void 0){let it=k.opacity;if(typeof it=="number"){if(it>1||isNaN(it)){const It={instancePath:s+"/watermark/opacity",schemaPath:"#/$defs/Watermark/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:mt.properties.opacity,data:it};e===null?e=[It]:e.push(It),t++}if(it<0||isNaN(it)){const It={instancePath:s+"/watermark/opacity",schemaPath:"#/$defs/Watermark/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:mt.properties.opacity,data:it};e===null?e=[It]:e.push(It),t++}}else{const It={instancePath:s+"/watermark/opacity",schemaPath:"#/$defs/Watermark/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:mt.properties.opacity.type,parentSchema:mt.properties.opacity,data:it};e===null?e=[It]:e.push(It),t++}}}else{const it={instancePath:s+"/watermark",schemaPath:"#/$defs/Watermark/type",keyword:"type",params:{type:"object"},message:"must be object",schema:mt.type,parentSchema:mt,data:k};e===null?e=[it]:e.push(it),t++}var O=ae===t;O&&I?(I=!1,L=[L,2]):O&&(I=!0,L=2,d!==!0&&(d=!0))}if(I)t=D,e!==null&&(D?e.length=D:e=null);else{const ae={instancePath:s+"/watermark",schemaPath:"#/properties/watermark/oneOf",keyword:"oneOf",params:{passingSchemas:L},message:"must match exactly one schema in oneOf",schema:fe.properties.watermark.oneOf,parentSchema:fe.properties.watermark,data:k};e===null?e=[ae]:e.push(ae),t++}}if(a.header!==void 0){let k=a.header;const D=t;let I=!1,L=null;const Z=t;if(typeof k!="boolean"){const J={instancePath:s+"/header",schemaPath:"#/properties/header/oneOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:fe.properties.header.oneOf[0].type,parentSchema:fe.properties.header.oneOf[0],data:k};e===null?e=[J]:e.push(J),t++}if(k!==!1){const J={instancePath:s+"/header",schemaPath:"#/properties/header/oneOf/0/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:fe.properties.header.oneOf[0],data:k};e===null?e=[J]:e.push(J),t++}var w=Z===t;w&&(I=!0,L=0);const M=t;Ja(k,{instancePath:s+"/header",parentData:a,parentDataProperty:"header",rootData:v,dynamicAnchors:b})||(e=e===null?Ja.errors:e.concat(Ja.errors),t=e.length);var w=M===t;if(w&&I)I=!1,L=[L,1];else if(w){I=!0,L=1;var q={};q.left=!0,q.center=!0,q.right=!0}if(I)t=D,e!==null&&(D?e.length=D:e=null);else{const J={instancePath:s+"/header",schemaPath:"#/properties/header/oneOf",keyword:"oneOf",params:{passingSchemas:L},message:"must match exactly one schema in oneOf",schema:fe.properties.header.oneOf,parentSchema:fe.properties.header,data:k};e===null?e=[J]:e.push(J),t++}}if(a.footer!==void 0){let k=a.footer;const D=t;let I=!1,L=null;const Z=t;if(typeof k!="boolean"){const J={instancePath:s+"/footer",schemaPath:"#/properties/footer/oneOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:fe.properties.footer.oneOf[0].type,parentSchema:fe.properties.footer.oneOf[0],data:k};e===null?e=[J]:e.push(J),t++}if(k!==!1){const J={instancePath:s+"/footer",schemaPath:"#/properties/footer/oneOf/0/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:fe.properties.footer.oneOf[0],data:k};e===null?e=[J]:e.push(J),t++}var f=Z===t;f&&(I=!0,L=0);const M=t;Ja(k,{instancePath:s+"/footer",parentData:a,parentDataProperty:"footer",rootData:v,dynamicAnchors:b})||(e=e===null?Ja.errors:e.concat(Ja.errors),t=e.length);var f=M===t;if(f&&I)I=!1,L=[L,1];else if(f){I=!0,L=1;var P={};P.left=!0,P.center=!0,P.right=!0}if(I)t=D,e!==null&&(D?e.length=D:e=null);else{const J={instancePath:s+"/footer",schemaPath:"#/properties/footer/oneOf",keyword:"oneOf",params:{passingSchemas:L},message:"must match exactly one schema in oneOf",schema:fe.properties.footer.oneOf,parentSchema:fe.properties.footer,data:k};e===null?e=[J]:e.push(J),t++}}if(a.titleAlignment!==void 0){let k=a.titleAlignment;if(typeof k!="string"){const D={instancePath:s+"/titleAlignment",schemaPath:"#/properties/titleAlignment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.titleAlignment.type,parentSchema:fe.properties.titleAlignment,data:k};e===null?e=[D]:e.push(D),t++}if(!(k==="left"||k==="center"||k==="right")){const D={instancePath:s+"/titleAlignment",schemaPath:"#/properties/titleAlignment/enum",keyword:"enum",params:{allowedValues:fe.properties.titleAlignment.enum},message:"must be equal to one of the allowed values",schema:fe.properties.titleAlignment.enum,parentSchema:fe.properties.titleAlignment,data:k};e===null?e=[D]:e.push(D),t++}}if(a.contentAlignment!==void 0){let k=a.contentAlignment;if(typeof k!="string"){const D={instancePath:s+"/contentAlignment",schemaPath:"#/properties/contentAlignment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.contentAlignment.type,parentSchema:fe.properties.contentAlignment,data:k};e===null?e=[D]:e.push(D),t++}if(!(k==="left"||k==="center"||k==="right")){const D={instancePath:s+"/contentAlignment",schemaPath:"#/properties/contentAlignment/enum",keyword:"enum",params:{allowedValues:fe.properties.contentAlignment.enum},message:"must be equal to one of the allowed values",schema:fe.properties.contentAlignment.enum,parentSchema:fe.properties.contentAlignment,data:k};e===null?e=[D]:e.push(D),t++}}if(a.contentBox!==void 0){let k=a.contentBox;if(typeof k!="boolean"){const D={instancePath:s+"/contentBox",schemaPath:"#/properties/contentBox/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:fe.properties.contentBox.type,parentSchema:fe.properties.contentBox,data:k};e===null?e=[D]:e.push(D),t++}}if(a.contentDirection!==void 0){let k=a.contentDirection;if(typeof k!="string"){const D={instancePath:s+"/contentDirection",schemaPath:"#/properties/contentDirection/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.contentDirection.type,parentSchema:fe.properties.contentDirection,data:k};e===null?e=[D]:e.push(D),t++}if(!(k==="horizontal"||k==="vertical")){const D={instancePath:s+"/contentDirection",schemaPath:"#/properties/contentDirection/enum",keyword:"enum",params:{allowedValues:fe.properties.contentDirection.enum},message:"must be equal to one of the allowed values",schema:fe.properties.contentDirection.enum,parentSchema:fe.properties.contentDirection,data:k};e===null?e=[D]:e.push(D),t++}}if(a.chartPrimary!==void 0){let k=a.chartPrimary;if(typeof k!="string"){const D={instancePath:s+"/chartPrimary",schemaPath:"#/properties/chartPrimary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.chartPrimary.type,parentSchema:fe.properties.chartPrimary,data:k};e===null?e=[D]:e.push(D),t++}if(!(k==="none"||k==="top"||k==="bottom"||k==="left"||k==="right")){const D={instancePath:s+"/chartPrimary",schemaPath:"#/properties/chartPrimary/enum",keyword:"enum",params:{allowedValues:fe.properties.chartPrimary.enum},message:"must be equal to one of the allowed values",schema:fe.properties.chartPrimary.enum,parentSchema:fe.properties.chartPrimary,data:k};e===null?e=[D]:e.push(D),t++}}if(a.imageFit!==void 0){let k=a.imageFit;if(typeof k!="string"){const D={instancePath:s+"/imageFit",schemaPath:"#/properties/imageFit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.imageFit.type,parentSchema:fe.properties.imageFit,data:k};e===null?e=[D]:e.push(D),t++}if(!(k==="cover"||k==="contain"||k==="stretch")){const D={instancePath:s+"/imageFit",schemaPath:"#/properties/imageFit/enum",keyword:"enum",params:{allowedValues:fe.properties.imageFit.enum},message:"must be equal to one of the allowed values",schema:fe.properties.imageFit.enum,parentSchema:fe.properties.imageFit,data:k};e===null?e=[D]:e.push(D),t++}}if(a.listBullet!==void 0){let k=a.listBullet;if(typeof k!="string"){const D={instancePath:s+"/listBullet",schemaPath:"#/properties/listBullet/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.listBullet.type,parentSchema:fe.properties.listBullet,data:k};e===null?e=[D]:e.push(D),t++}if(!(k==="character"||k==="image")){const D={instancePath:s+"/listBullet",schemaPath:"#/properties/listBullet/enum",keyword:"enum",params:{allowedValues:fe.properties.listBullet.enum},message:"must be equal to one of the allowed values",schema:fe.properties.listBullet.enum,parentSchema:fe.properties.listBullet,data:k};e===null?e=[D]:e.push(D),t++}}if(a.mirror!==void 0){let k=a.mirror;if(typeof k!="boolean"){const D={instancePath:s+"/mirror",schemaPath:"#/properties/mirror/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:fe.properties.mirror.type,parentSchema:fe.properties.mirror,data:k};e===null?e=[D]:e.push(D),t++}}}else{const k={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:fe.type,parentSchema:fe,data:a};e===null?e=[k]:e.push(k),t++}return Wa.errors=e,t===0}Wa.evaluated={props:{theme:!0,colorScheme:!0,fontScheme:!0,dimensions:!0,background:!0,variant:!0,logo:!0,watermark:!0,header:!0,footer:!0,titleAlignment:!0,contentAlignment:!0,contentBox:!0,contentDirection:!0,chartPrimary:!0,imageFit:!0,listBullet:!0,mirror:!0},dynamicProps:!1,dynamicItems:!1};var qn=j.presentation.$defs.Variables,gt=new RegExp("^[a-z][a-z0-9-]*$","u"),Xn=j.presentation.$defs.Variable,oe=j.presentation.$defs.DateVariable,he=j.presentation.$defs.UrlVariable,pe=j.presentation.$defs.ListVariable,gs=new RegExp("^\\d{4}-\\d{2}-\\d{2}$","u"),Ps=new RegExp("^(?:https?://|mailto:|tel:)\\S+$","u"),st=j.presentation.$defs.ColorVariable;function Ya(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ya.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:st.required,parentSchema:st,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:st,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.type.type,parentSchema:st.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="color"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"color"},message:"must be equal to constant",schema:"color",parentSchema:st.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/value",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/value",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:st.properties.required.type,parentSchema:st.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.label.type,parentSchema:st.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.description.type,parentSchema:st.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/example",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/example",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:st.type,parentSchema:st,data:a};e===null?e=[r]:e.push(r),t++}return Ya.errors=e,t===0}Ya.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var de=j.presentation.$defs.TextVariable,u=j.presentation.$defs.TextRun,xt=new RegExp("^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$","u"),Nt=new RegExp("^(https?://|mailto:|tel:)\\S+$","u"),Cc={validate:W};function W(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=W.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)Cc.validate(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?Cc.validate.errors:e.concat(Cc.validate.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return W.errors=e,m.props=l,t===0}W.evaluated={dynamicProps:!0,dynamicItems:!1};function Xa(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Xa.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:de.required,parentSchema:de,data:a};e===null?e=[p]:e.push(p),t++}for(const p in a)if(!(p==="type"||p==="value"||p==="required"||p==="label"||p==="description"||p==="example")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:de,data:a};e===null?e=[i]:e.push(i),t++}if(a.type!==void 0){let p=a.type;if(typeof p!="string"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.type.type,parentSchema:de.properties.type,data:p};e===null?e=[i]:e.push(i),t++}if(p!=="text"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"text"},message:"must be equal to constant",schema:"text",parentSchema:de.properties.type,data:p};e===null?e=[i]:e.push(i),t++}}if(a.value!==void 0){let p=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.value.oneOf[0].type,parentSchema:de.properties.value.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(p)){const l=p.length;for(let o=0;o<l;o++)W(p[o],{instancePath:s+"/value/"+o,parentData:p,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:de.properties.value.oneOf[1].type,parentSchema:de.properties.value.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:de.properties.value.oneOf,parentSchema:de.properties.value,data:p};e===null?e=[l]:e.push(l),t++}}if(a.required!==void 0){let p=a.required;if(typeof p!="boolean"){const i={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:de.properties.required.type,parentSchema:de.properties.required,data:p};e===null?e=[i]:e.push(i),t++}}if(a.label!==void 0){let p=a.label;if(typeof p!="string"){const i={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.label.type,parentSchema:de.properties.label,data:p};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let p=a.description;if(typeof p!="string"){const i={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.description.type,parentSchema:de.properties.description,data:p};e===null?e=[i]:e.push(i),t++}}if(a.example!==void 0){let p=a.example;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.example.oneOf[0].type,parentSchema:de.properties.example.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(Array.isArray(p)){const l=p.length;for(let o=0;o<l;o++)W(p[o],{instancePath:s+"/example/"+o,parentData:p,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:de.properties.example.oneOf[1].type,parentSchema:de.properties.example.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:de.properties.example.oneOf,parentSchema:de.properties.example,data:p};e===null?e=[l]:e.push(l),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:de.type,parentSchema:de,data:a};e===null?e=[p]:e.push(p),t++}return Xa.errors=e,t===0}Xa.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ce=j.presentation.$defs.NumberVariable,Rt=j.presentation.$defs.NumberFormat;function Qa(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qa.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Ce.required,parentSchema:Ce,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ce,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.type.type,parentSchema:Ce.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="number"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"number"},message:"must be equal to constant",schema:"number",parentSchema:Ce.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r!="number"){const n={instancePath:s+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ce.properties.value.type,parentSchema:Ce.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Ce.properties.required.type,parentSchema:Ce.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.label.type,parentSchema:Ce.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.description.type,parentSchema:Ce.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r!="number"){const n={instancePath:s+"/example",schemaPath:"#/properties/example/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ce.properties.example.type,parentSchema:Ce.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rt.type,parentSchema:Rt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ce.type,parentSchema:Ce,data:a};e===null?e=[r]:e.push(r),t++}return Qa.errors=e,t===0}Qa.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var rt=j.presentation.$defs.ImageVariable;function Ga(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ga.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:rt.required,parentSchema:rt,data:a};e===null?e=[p]:e.push(p),t++}for(const p in a)if(!(p==="type"||p==="value"||p==="required"||p==="label"||p==="description"||p==="example")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:rt,data:a};e===null?e=[i]:e.push(i),t++}if(a.type!==void 0){let p=a.type;if(typeof p!="string"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:rt.properties.type.type,parentSchema:rt.properties.type,data:p};e===null?e=[i]:e.push(i),t++}if(p!=="image"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"image"},message:"must be equal to constant",schema:"image",parentSchema:rt.properties.type,data:p};e===null?e=[i]:e.push(i),t++}}if(a.value!==void 0){let p=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/value/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/value/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/value/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/value/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/value/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}if(a.required!==void 0){let p=a.required;if(typeof p!="boolean"){const i={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:rt.properties.required.type,parentSchema:rt.properties.required,data:p};e===null?e=[i]:e.push(i),t++}}if(a.label!==void 0){let p=a.label;if(typeof p!="string"){const i={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:rt.properties.label.type,parentSchema:rt.properties.label,data:p};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let p=a.description;if(typeof p!="string"){const i={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:rt.properties.description.type,parentSchema:rt.properties.description,data:p};e===null?e=[i]:e.push(i),t++}}if(a.example!==void 0){let p=a.example;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/example/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/example/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/example/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/example/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/example/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:rt.type,parentSchema:rt,data:a};e===null?e=[p]:e.push(p),t++}return Ga.errors=e,t===0}Ga.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Hs(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Hs.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a=="string"){if(!we.test(a)){const g={instancePath:s,schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:a};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s,schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,p=0);const h=t;Ya(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Ya.errors:e.concat(Ya.errors),t=e.length);var c=h===t;if(c&&n)n=!1,p=[p,1];else{if(c){n=!0,p=1;var y=!0}const g=t;Xa(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Xa.errors:e.concat(Xa.errors),t=e.length);var c=g===t;if(c&&n)n=!1,p=[p,2];else{c&&(n=!0,p=2,y!==!0&&(y=!0));const o=t;Qa(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Qa.errors:e.concat(Qa.errors),t=e.length);var c=o===t;if(c&&n)n=!1,p=[p,3];else{c&&(n=!0,p=3,y!==!0&&(y=!0));const O=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const w={instancePath:s,schemaPath:"#/$defs/DateVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:oe.required,parentSchema:oe,data:a};e===null?e=[w]:e.push(w),t++}for(const w in a)if(!(w==="type"||w==="value"||w==="required"||w==="label"||w==="description"||w==="example"||w==="format")){const q={instancePath:s,schemaPath:"#/$defs/DateVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:w},message:"must NOT have additional properties",schema:!1,parentSchema:oe,data:a};e===null?e=[q]:e.push(q),t++}if(a.type!==void 0){let w=a.type;if(typeof w!="string"){const q={instancePath:s+"/type",schemaPath:"#/$defs/DateVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.type.type,parentSchema:oe.properties.type,data:w};e===null?e=[q]:e.push(q),t++}if(w!=="date"){const q={instancePath:s+"/type",schemaPath:"#/$defs/DateVariable/properties/type/const",keyword:"const",params:{allowedValue:"date"},message:"must be equal to constant",schema:"date",parentSchema:oe.properties.type,data:w};e===null?e=[q]:e.push(q),t++}}if(a.value!==void 0){let w=a.value;if(typeof w=="string"){if(!gs.test(w)){const q={instancePath:s+"/value",schemaPath:"#/$defs/DateVariable/properties/value/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:oe.properties.value,data:w};e===null?e=[q]:e.push(q),t++}}else{const q={instancePath:s+"/value",schemaPath:"#/$defs/DateVariable/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.value.type,parentSchema:oe.properties.value,data:w};e===null?e=[q]:e.push(q),t++}}if(a.required!==void 0){let w=a.required;if(typeof w!="boolean"){const q={instancePath:s+"/required",schemaPath:"#/$defs/DateVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:oe.properties.required.type,parentSchema:oe.properties.required,data:w};e===null?e=[q]:e.push(q),t++}}if(a.label!==void 0){let w=a.label;if(typeof w!="string"){const q={instancePath:s+"/label",schemaPath:"#/$defs/DateVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.label.type,parentSchema:oe.properties.label,data:w};e===null?e=[q]:e.push(q),t++}}if(a.description!==void 0){let w=a.description;if(typeof w!="string"){const q={instancePath:s+"/description",schemaPath:"#/$defs/DateVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.description.type,parentSchema:oe.properties.description,data:w};e===null?e=[q]:e.push(q),t++}}if(a.example!==void 0){let w=a.example;if(typeof w=="string"){if(!gs.test(w)){const q={instancePath:s+"/example",schemaPath:"#/$defs/DateVariable/properties/example/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:oe.properties.example,data:w};e===null?e=[q]:e.push(q),t++}}else{const q={instancePath:s+"/example",schemaPath:"#/$defs/DateVariable/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.example.type,parentSchema:oe.properties.example,data:w};e===null?e=[q]:e.push(q),t++}}if(a.format!==void 0){let w=a.format;if(typeof w!="string"){const q={instancePath:s+"/format",schemaPath:"#/$defs/DateVariable/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.format.type,parentSchema:oe.properties.format,data:w};e===null?e=[q]:e.push(q),t++}}}else{const w={instancePath:s,schemaPath:"#/$defs/DateVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:oe.type,parentSchema:oe,data:a};e===null?e=[w]:e.push(w),t++}var c=O===t;if(c&&n)n=!1,p=[p,4];else{c&&(n=!0,p=4,y!==!0&&(y=!0));const w=t;Ga(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Ga.errors:e.concat(Ga.errors),t=e.length);var c=w===t;if(c&&n)n=!1,p=[p,5];else{c&&(n=!0,p=5,y!==!0&&(y=!0));const f=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const k={instancePath:s,schemaPath:"#/$defs/UrlVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:he.required,parentSchema:he,data:a};e===null?e=[k]:e.push(k),t++}for(const k in a)if(!(k==="type"||k==="value"||k==="required"||k==="label"||k==="description"||k==="example")){const D={instancePath:s,schemaPath:"#/$defs/UrlVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties",schema:!1,parentSchema:he,data:a};e===null?e=[D]:e.push(D),t++}if(a.type!==void 0){let k=a.type;if(typeof k!="string"){const D={instancePath:s+"/type",schemaPath:"#/$defs/UrlVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.type.type,parentSchema:he.properties.type,data:k};e===null?e=[D]:e.push(D),t++}if(k!=="url"){const D={instancePath:s+"/type",schemaPath:"#/$defs/UrlVariable/properties/type/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant",schema:"url",parentSchema:he.properties.type,data:k};e===null?e=[D]:e.push(D),t++}}if(a.value!==void 0){let k=a.value;if(typeof k=="string"){if(!Ps.test(k)){const D={instancePath:s+"/value",schemaPath:"#/$defs/UrlVariable/properties/value/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:he.properties.value,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/value",schemaPath:"#/$defs/UrlVariable/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.value.type,parentSchema:he.properties.value,data:k};e===null?e=[D]:e.push(D),t++}}if(a.required!==void 0){let k=a.required;if(typeof k!="boolean"){const D={instancePath:s+"/required",schemaPath:"#/$defs/UrlVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:he.properties.required.type,parentSchema:he.properties.required,data:k};e===null?e=[D]:e.push(D),t++}}if(a.label!==void 0){let k=a.label;if(typeof k!="string"){const D={instancePath:s+"/label",schemaPath:"#/$defs/UrlVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.label.type,parentSchema:he.properties.label,data:k};e===null?e=[D]:e.push(D),t++}}if(a.description!==void 0){let k=a.description;if(typeof k!="string"){const D={instancePath:s+"/description",schemaPath:"#/$defs/UrlVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.description.type,parentSchema:he.properties.description,data:k};e===null?e=[D]:e.push(D),t++}}if(a.example!==void 0){let k=a.example;if(typeof k=="string"){if(!Ps.test(k)){const D={instancePath:s+"/example",schemaPath:"#/$defs/UrlVariable/properties/example/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:he.properties.example,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/example",schemaPath:"#/$defs/UrlVariable/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.example.type,parentSchema:he.properties.example,data:k};e===null?e=[D]:e.push(D),t++}}}else{const k={instancePath:s,schemaPath:"#/$defs/UrlVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:he.type,parentSchema:he,data:a};e===null?e=[k]:e.push(k),t++}var c=f===t;if(c&&n)n=!1,p=[p,6];else{c&&(n=!0,p=6,y!==!0&&(y=!0));const k=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const I={instancePath:s,schemaPath:"#/$defs/ListVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:pe.required,parentSchema:pe,data:a};e===null?e=[I]:e.push(I),t++}for(const I in a)if(!(I==="type"||I==="value"||I==="required"||I==="label"||I==="description"||I==="example")){const L={instancePath:s,schemaPath:"#/$defs/ListVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:I},message:"must NOT have additional properties",schema:!1,parentSchema:pe,data:a};e===null?e=[L]:e.push(L),t++}if(a.type!==void 0){let I=a.type;if(typeof I!="string"){const L={instancePath:s+"/type",schemaPath:"#/$defs/ListVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.type.type,parentSchema:pe.properties.type,data:I};e===null?e=[L]:e.push(L),t++}if(I!=="list"){const L={instancePath:s+"/type",schemaPath:"#/$defs/ListVariable/properties/type/const",keyword:"const",params:{allowedValue:"list"},message:"must be equal to constant",schema:"list",parentSchema:pe.properties.type,data:I};e===null?e=[L]:e.push(L),t++}}if(a.value!==void 0){let I=a.value;if(Array.isArray(I)){const L=I.length;for(let Z=0;Z<L;Z++){let M=I[Z];if(typeof M!="string"){const J={instancePath:s+"/value/"+Z,schemaPath:"#/$defs/ListVariable/properties/value/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.value.items.type,parentSchema:pe.properties.value.items,data:M};e===null?e=[J]:e.push(J),t++}}}else{const L={instancePath:s+"/value",schemaPath:"#/$defs/ListVariable/properties/value/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pe.properties.value.type,parentSchema:pe.properties.value,data:I};e===null?e=[L]:e.push(L),t++}}if(a.required!==void 0){let I=a.required;if(typeof I!="boolean"){const L={instancePath:s+"/required",schemaPath:"#/$defs/ListVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:pe.properties.required.type,parentSchema:pe.properties.required,data:I};e===null?e=[L]:e.push(L),t++}}if(a.label!==void 0){let I=a.label;if(typeof I!="string"){const L={instancePath:s+"/label",schemaPath:"#/$defs/ListVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.label.type,parentSchema:pe.properties.label,data:I};e===null?e=[L]:e.push(L),t++}}if(a.description!==void 0){let I=a.description;if(typeof I!="string"){const L={instancePath:s+"/description",schemaPath:"#/$defs/ListVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.description.type,parentSchema:pe.properties.description,data:I};e===null?e=[L]:e.push(L),t++}}if(a.example!==void 0){let I=a.example;if(Array.isArray(I)){const L=I.length;for(let Z=0;Z<L;Z++){let M=I[Z];if(typeof M!="string"){const J={instancePath:s+"/example/"+Z,schemaPath:"#/$defs/ListVariable/properties/example/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.example.items.type,parentSchema:pe.properties.example.items,data:M};e===null?e=[J]:e.push(J),t++}}}else{const L={instancePath:s+"/example",schemaPath:"#/$defs/ListVariable/properties/example/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pe.properties.example.type,parentSchema:pe.properties.example,data:I};e===null?e=[L]:e.push(L),t++}}}else{const I={instancePath:s,schemaPath:"#/$defs/ListVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:pe.type,parentSchema:pe,data:a};e===null?e=[I]:e.push(I),t++}var c=k===t;c&&n?(n=!1,p=[p,7]):c&&(n=!0,p=7,y!==!0&&(y=!0))}}}}}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:Xn.oneOf,parentSchema:Xn,data:a};e===null?e=[g]:e.push(g),t++}return Hs.errors=e,m.props=y,t===0}Hs.evaluated={dynamicProps:!0,dynamicItems:!1};function _s(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=_s.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const n in a){const p=t;if(typeof n=="string"&&!gt.test(n)){const i={instancePath:s,schemaPath:"#/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:qn.propertyNames,data:n,propertyName:n};e===null?e=[i]:e.push(i),t++}var r=p===t;if(!r){const i={instancePath:s,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName:n},message:"property name must be valid",schema:qn.propertyNames,parentSchema:qn,data:a};e===null?e=[i]:e.push(i),t++}}for(const n in a)Hs(a[n],{instancePath:s+"/"+n.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Hs.errors:e.concat(Hs.errors),t=e.length)}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:qn.type,parentSchema:qn,data:a};e===null?e=[n]:e.push(n),t++}return _s.errors=e,t===0}_s.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ge=j.presentation.$defs.Slide,te=j.presentation.$defs.Code,X=j.presentation.$defs.Metric,ye=j.presentation.$defs.Composition,bt=j.presentation.$defs.ListItem;function es(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=es.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const d={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:bt.oneOf[0].type,parentSchema:bt.oneOf[0],data:a};e===null?e=[d]:e.push(d),t++}var c=i===t;c&&(n=!0,p=0);const h=t;if(Array.isArray(a)){const d=a.length;for(let O=0;O<d;O++)W(a[O],{instancePath:s+"/"+O,parentData:a,parentDataProperty:O,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const d={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:bt.oneOf[1].type,parentSchema:bt.oneOf[1],data:a};e===null?e=[d]:e.push(d),t++}var c=h===t;if(c&&n)n=!1,p=[p,1];else{if(c){n=!0,p=1;var y=!0}const d=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const S={instancePath:s,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:bt.oneOf[2].required,parentSchema:bt.oneOf[2],data:a};e===null?e=[S]:e.push(S),t++}for(const S in a)if(!(S==="text"||S==="description"||S==="level"||S==="start")){const w={instancePath:s,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties",schema:!1,parentSchema:bt.oneOf[2],data:a};e===null?e=[w]:e.push(w),t++}if(a.text!==void 0){let S=a.text;const w=t;let q=!1,f=null;const P=t;if(typeof S!="string"){const D={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:bt.oneOf[2].properties.text.oneOf[0].type,parentSchema:bt.oneOf[2].properties.text.oneOf[0],data:S};e===null?e=[D]:e.push(D),t++}var g=P===t;g&&(q=!0,f=0);const k=t;if(Array.isArray(S)){const D=S.length;for(let I=0;I<D;I++)W(S[I],{instancePath:s+"/text/"+I,parentData:S,parentDataProperty:I,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const D={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:bt.oneOf[2].properties.text.oneOf[1].type,parentSchema:bt.oneOf[2].properties.text.oneOf[1],data:S};e===null?e=[D]:e.push(D),t++}var g=k===t;if(g&&q?(q=!1,f=[f,1]):g&&(q=!0,f=1),q)t=w,e!==null&&(w?e.length=w:e=null);else{const D={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:f},message:"must match exactly one schema in oneOf",schema:bt.oneOf[2].properties.text.oneOf,parentSchema:bt.oneOf[2].properties.text,data:S};e===null?e=[D]:e.push(D),t++}}if(a.description!==void 0){let S=a.description;const w=t;let q=!1,f=null;const P=t;if(typeof S!="string"){const D={instancePath:s+"/description",schemaPath:"#/oneOf/2/properties/description/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:bt.oneOf[2].properties.description.oneOf[0].type,parentSchema:bt.oneOf[2].properties.description.oneOf[0],data:S};e===null?e=[D]:e.push(D),t++}var l=P===t;l&&(q=!0,f=0);const k=t;if(Array.isArray(S)){const D=S.length;for(let I=0;I<D;I++)W(S[I],{instancePath:s+"/description/"+I,parentData:S,parentDataProperty:I,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const D={instancePath:s+"/description",schemaPath:"#/oneOf/2/properties/description/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:bt.oneOf[2].properties.description.oneOf[1].type,parentSchema:bt.oneOf[2].properties.description.oneOf[1],data:S};e===null?e=[D]:e.push(D),t++}var l=k===t;if(l&&q?(q=!1,f=[f,1]):l&&(q=!0,f=1),q)t=w,e!==null&&(w?e.length=w:e=null);else{const D={instancePath:s+"/description",schemaPath:"#/oneOf/2/properties/description/oneOf",keyword:"oneOf",params:{passingSchemas:f},message:"must match exactly one schema in oneOf",schema:bt.oneOf[2].properties.description.oneOf,parentSchema:bt.oneOf[2].properties.description,data:S};e===null?e=[D]:e.push(D),t++}}if(a.level!==void 0){let S=a.level;if(!(typeof S=="number"&&!(S%1)&&!isNaN(S))){const w={instancePath:s+"/level",schemaPath:"#/oneOf/2/properties/level/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:bt.oneOf[2].properties.level.type,parentSchema:bt.oneOf[2].properties.level,data:S};e===null?e=[w]:e.push(w),t++}if(typeof S=="number"&&(S<0||isNaN(S))){const w={instancePath:s+"/level",schemaPath:"#/oneOf/2/properties/level/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:bt.oneOf[2].properties.level,data:S};e===null?e=[w]:e.push(w),t++}}if(a.start!==void 0){let S=a.start;if(!(typeof S=="number"&&!(S%1)&&!isNaN(S))){const w={instancePath:s+"/start",schemaPath:"#/oneOf/2/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:bt.oneOf[2].properties.start.type,parentSchema:bt.oneOf[2].properties.start,data:S};e===null?e=[w]:e.push(w),t++}if(typeof S=="number"){if(S>32767||isNaN(S)){const w={instancePath:s+"/start",schemaPath:"#/oneOf/2/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:bt.oneOf[2].properties.start,data:S};e===null?e=[w]:e.push(w),t++}if(S<1||isNaN(S)){const w={instancePath:s+"/start",schemaPath:"#/oneOf/2/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:bt.oneOf[2].properties.start,data:S};e===null?e=[w]:e.push(w),t++}}}}else{const S={instancePath:s,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object",schema:bt.oneOf[2].type,parentSchema:bt.oneOf[2],data:a};e===null?e=[S]:e.push(S),t++}var c=d===t;if(c&&n)n=!1,p=[p,2];else if(c){n=!0,p=2;var o=!0}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const d={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:bt.oneOf,parentSchema:bt,data:a};e===null?e=[d]:e.push(d),t++}return es.errors=e,m.props=o,m.items=y,t===0}es.evaluated={dynamicProps:!0,dynamicItems:!0};var jt=j.presentation.$defs.BulletItem;function ts(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ts.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:jt.oneOf[0].type,parentSchema:jt.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var c=i===t;c&&(n=!0,p=0);const h=t;if(Array.isArray(a)){const o=a.length;for(let d=0;d<o;d++)W(a[d],{instancePath:s+"/"+d,parentData:a,parentDataProperty:d,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:jt.oneOf[1].type,parentSchema:jt.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var c=h===t;if(c&&n)n=!1,p=[p,1];else{if(c){n=!0,p=1;var y=!0}const o=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const O={instancePath:s,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:jt.oneOf[2].required,parentSchema:jt.oneOf[2],data:a};e===null?e=[O]:e.push(O),t++}for(const O in a)if(!(O==="text"||O==="level"||O==="start")){const S={instancePath:s,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties",schema:!1,parentSchema:jt.oneOf[2],data:a};e===null?e=[S]:e.push(S),t++}if(a.text!==void 0){let O=a.text;const S=t;let w=!1,q=null;const f=t;if(typeof O!="string"){const k={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:jt.oneOf[2].properties.text.oneOf[0].type,parentSchema:jt.oneOf[2].properties.text.oneOf[0],data:O};e===null?e=[k]:e.push(k),t++}var g=f===t;g&&(w=!0,q=0);const P=t;if(Array.isArray(O)){const k=O.length;for(let D=0;D<k;D++)W(O[D],{instancePath:s+"/text/"+D,parentData:O,parentDataProperty:D,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const k={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:jt.oneOf[2].properties.text.oneOf[1].type,parentSchema:jt.oneOf[2].properties.text.oneOf[1],data:O};e===null?e=[k]:e.push(k),t++}var g=P===t;if(g&&w?(w=!1,q=[q,1]):g&&(w=!0,q=1),w)t=S,e!==null&&(S?e.length=S:e=null);else{const k={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:q},message:"must match exactly one schema in oneOf",schema:jt.oneOf[2].properties.text.oneOf,parentSchema:jt.oneOf[2].properties.text,data:O};e===null?e=[k]:e.push(k),t++}}if(a.level!==void 0){let O=a.level;if(!(typeof O=="number"&&!(O%1)&&!isNaN(O))){const S={instancePath:s+"/level",schemaPath:"#/oneOf/2/properties/level/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:jt.oneOf[2].properties.level.type,parentSchema:jt.oneOf[2].properties.level,data:O};e===null?e=[S]:e.push(S),t++}if(typeof O=="number"&&(O<0||isNaN(O))){const S={instancePath:s+"/level",schemaPath:"#/oneOf/2/properties/level/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:jt.oneOf[2].properties.level,data:O};e===null?e=[S]:e.push(S),t++}}if(a.start!==void 0){let O=a.start;if(!(typeof O=="number"&&!(O%1)&&!isNaN(O))){const S={instancePath:s+"/start",schemaPath:"#/oneOf/2/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:jt.oneOf[2].properties.start.type,parentSchema:jt.oneOf[2].properties.start,data:O};e===null?e=[S]:e.push(S),t++}if(typeof O=="number"){if(O>32767||isNaN(O)){const S={instancePath:s+"/start",schemaPath:"#/oneOf/2/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:jt.oneOf[2].properties.start,data:O};e===null?e=[S]:e.push(S),t++}if(O<1||isNaN(O)){const S={instancePath:s+"/start",schemaPath:"#/oneOf/2/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:jt.oneOf[2].properties.start,data:O};e===null?e=[S]:e.push(S),t++}}}}else{const O={instancePath:s,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object",schema:jt.oneOf[2].type,parentSchema:jt.oneOf[2],data:a};e===null?e=[O]:e.push(O),t++}var c=o===t;if(c&&n)n=!1,p=[p,2];else if(c){n=!0,p=2;var l=!0}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:jt.oneOf,parentSchema:jt,data:a};e===null?e=[o]:e.push(o),t++}return ts.errors=e,m.props=l,m.items=y,t===0}ts.evaluated={dynamicProps:!0,dynamicItems:!0};var vs=j.presentation.$defs.NumberingSpec,et=j.presentation.$defs.NumberingStyle,Ye=j.presentation.$defs.Numbering;function as(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=as.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const r in a)if(!(r==="style"||r==="start"||r==="suffix")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ye,data:a};e===null?e=[n]:e.push(n),t++}if(a.style!==void 0){let r=a.style;if(typeof r!="string"){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.type,parentSchema:et,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="arabic"||r==="roman-upper"||r==="roman-lower"||r==="alpha-upper"||r==="alpha-lower")){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:et.enum},message:"must be equal to one of the allowed values",schema:et.enum,parentSchema:et,data:r};e===null?e=[n]:e.push(n),t++}}if(a.start!==void 0){let r=a.start;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/start",schemaPath:"#/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ye.properties.start.type,parentSchema:Ye.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"){if(r>32767||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:Ye.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(r<1||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Ye.properties.start,data:r};e===null?e=[n]:e.push(n),t++}}}if(a.suffix!==void 0){let r=a.suffix;if(typeof r!="string"){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.suffix.type,parentSchema:Ye.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="period"||r==="paren"||r==="paren-both")){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/enum",keyword:"enum",params:{allowedValues:Ye.properties.suffix.enum},message:"must be equal to one of the allowed values",schema:Ye.properties.suffix.enum,parentSchema:Ye.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ye.type,parentSchema:Ye,data:a};e===null?e=[r]:e.push(r),t++}return as.errors=e,t===0}as.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ss(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ss.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.type,parentSchema:et,data:a};e===null?e=[o]:e.push(o),t++}if(!(a==="arabic"||a==="roman-upper"||a==="roman-lower"||a==="alpha-upper"||a==="alpha-lower")){const o={instancePath:s,schemaPath:"#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:et.enum},message:"must be equal to one of the allowed values",schema:et.enum,parentSchema:et,data:a};e===null?e=[o]:e.push(o),t++}var c=i===t;c&&(n=!0,p=0);const h=t;as(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?as.errors:e.concat(as.errors),t=e.length);var c=h===t;if(c&&n)n=!1,p=[p,1];else{if(c){n=!0,p=1;var y=!0}const o=t;if(Array.isArray(a)){if(a.length>9){const S={instancePath:s,schemaPath:"#/oneOf/2/maxItems",keyword:"maxItems",params:{limit:9},message:"must NOT have more than 9 items",schema:9,parentSchema:vs.oneOf[2],data:a};e===null?e=[S]:e.push(S),t++}if(a.length<1){const S={instancePath:s,schemaPath:"#/oneOf/2/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:vs.oneOf[2],data:a};e===null?e=[S]:e.push(S),t++}const O=a.length;for(let S=0;S<O;S++){let w=a[S];const q=t;let f=!1,P=null;const k=t;if(typeof w!="string"){const I={instancePath:s+"/"+S,schemaPath:"#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.type,parentSchema:et,data:w};e===null?e=[I]:e.push(I),t++}if(!(w==="arabic"||w==="roman-upper"||w==="roman-lower"||w==="alpha-upper"||w==="alpha-lower")){const I={instancePath:s+"/"+S,schemaPath:"#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:et.enum},message:"must be equal to one of the allowed values",schema:et.enum,parentSchema:et,data:w};e===null?e=[I]:e.push(I),t++}var g=k===t;g&&(f=!0,P=0);const D=t;as(w,{instancePath:s+"/"+S,parentData:a,parentDataProperty:S,rootData:v,dynamicAnchors:b})||(e=e===null?as.errors:e.concat(as.errors),t=e.length);var g=D===t;if(g&&f?(f=!1,P=[P,1]):g&&(f=!0,P=1),f)t=q,e!==null&&(q?e.length=q:e=null);else{const I={instancePath:s+"/"+S,schemaPath:"#/oneOf/2/items/oneOf",keyword:"oneOf",params:{passingSchemas:P},message:"must match exactly one schema in oneOf",schema:vs.oneOf[2].items.oneOf,parentSchema:vs.oneOf[2].items,data:w};e===null?e=[I]:e.push(I),t++}}}else{const O={instancePath:s,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"array"},message:"must be array",schema:vs.oneOf[2].type,parentSchema:vs.oneOf[2],data:a};e===null?e=[O]:e.push(O),t++}var c=o===t;if(c&&n)n=!1,p=[p,2];else if(c){n=!0,p=2;var l=!0}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:vs.oneOf,parentSchema:vs,data:a};e===null?e=[o]:e.push(o),t++}return ss.errors=e,m.props=y,m.items=l,t===0}ss.evaluated={dynamicProps:!0,dynamicItems:!0};var nt=j.presentation.$defs.Chart,xa=j.presentation.$defs.ChartMapping,rs=j.presentation.$defs.ChartAxisTitles,dt=j.presentation.$defs.ChartDataLabels,ca=j.presentation.$defs.ChartHighlight,ze=j.presentation.$defs.ChartData,ct=j.presentation.$defs.ChartDataCell,re=j.presentation.$defs.DataSourceRef,wt=j.presentation.$defs.DataColumn;function ea(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ea.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:wt.required,parentSchema:wt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="name"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:wt,data:a};e===null?e=[n]:e.push(n),t++}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:wt.properties.name.type,parentSchema:wt.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rt.type,parentSchema:Rt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:wt.type,parentSchema:wt,data:a};e===null?e=[r]:e.push(r),t++}return ea.errors=e,t===0}ea.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var xn=jc().fullFormats.date,Nn=jc().fullFormats["date-time"];function Es(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Es.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.columns===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columns"},message:"must have required property 'columns'",schema:ze.required,parentSchema:ze,data:a};e===null?e=[i]:e.push(i),t++}if(a.rows===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rows"},message:"must have required property 'rows'",schema:ze.required,parentSchema:ze,data:a};e===null?e=[i]:e.push(i),t++}for(const i in a)if(!(i==="columns"||i==="rows"||i==="source")){const h={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:ze,data:a};e===null?e=[h]:e.push(h),t++}if(a.columns!==void 0){let i=a.columns;if(Array.isArray(i)){if(i.length<1){const c={instancePath:s+"/columns",schemaPath:"#/properties/columns/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ze.properties.columns,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++){let y=i[c];const g=t;let l=!1,o=null;const d=t;if(typeof y!="string"){const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.columns.items.oneOf[0].type,parentSchema:ze.properties.columns.items.oneOf[0],data:y};e===null?e=[S]:e.push(S),t++}var r=d===t;r&&(l=!0,o=0);const O=t;ea(y,{instancePath:s+"/columns/"+c,parentData:i,parentDataProperty:c,rootData:v,dynamicAnchors:b})||(e=e===null?ea.errors:e.concat(ea.errors),t=e.length);var r=O===t;if(r&&l?(l=!1,o=[o,1]):r&&(l=!0,o=1),l)t=g,e!==null&&(g?e.length=g:e=null);else{const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:ze.properties.columns.items.oneOf,parentSchema:ze.properties.columns.items,data:y};e===null?e=[S]:e.push(S),t++}}}else{const h={instancePath:s+"/columns",schemaPath:"#/properties/columns/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ze.properties.columns.type,parentSchema:ze.properties.columns,data:i};e===null?e=[h]:e.push(h),t++}}if(a.rows!==void 0){let i=a.rows;if(Array.isArray(i)){if(i.length<1){const c={instancePath:s+"/rows",schemaPath:"#/properties/rows/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ze.properties.rows,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++){let y=i[c];if(Array.isArray(y)){const g=y.length;for(let l=0;l<g;l++){let o=y[l];const d=t;let O=!1,S=null;const w=t;if(typeof o!="string"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ct.oneOf[0].type,parentSchema:ct.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var n=w===t;n&&(O=!0,S=0);const q=t;if(typeof o!="number"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ct.oneOf[1].type,parentSchema:ct.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var n=q===t;if(n&&O)O=!1,S=[S,1];else{n&&(O=!0,S=1);const f=t;if(typeof o!="boolean"){const k={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ct.oneOf[2].type,parentSchema:ct.oneOf[2],data:o};e===null?e=[k]:e.push(k),t++}var n=f===t;if(n&&O)O=!1,S=[S,2];else{n&&(O=!0,S=2);const k=t;if(o!==null){const I={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/3/type",keyword:"type",params:{type:"null"},message:"must be null",schema:ct.oneOf[3].type,parentSchema:ct.oneOf[3],data:o};e===null?e=[I]:e.push(I),t++}var n=k===t;n&&O?(O=!1,S=[S,3]):n&&(O=!0,S=3)}}if(O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:ct.oneOf,parentSchema:ct,data:o};e===null?e=[f]:e.push(f),t++}}}else{const g={instancePath:s+"/rows/"+c,schemaPath:"#/properties/rows/items/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ze.properties.rows.items.type,parentSchema:ze.properties.rows.items,data:y};e===null?e=[g]:e.push(g),t++}}}else{const h={instancePath:s+"/rows",schemaPath:"#/properties/rows/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ze.properties.rows.type,parentSchema:ze.properties.rows,data:i};e===null?e=[h]:e.push(h),t++}}if(a.source!==void 0){let i=a.source;if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.src===void 0){const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:re.required,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}for(const h in i)if(!(h==="src"||h==="sheet"||h==="range"||h==="fields"||h==="retrieved"||h==="description")){const c={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:re,data:i};e===null?e=[c]:e.push(c),t++}if(i.src!==void 0){let h=i.src;if(typeof h!="string"){const c={instancePath:s+"/source/src",schemaPath:"#/$defs/DataSourceRef/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.src.type,parentSchema:re.properties.src,data:h};e===null?e=[c]:e.push(c),t++}}if(i.sheet!==void 0){let h=i.sheet;if(typeof h!="string"){const c={instancePath:s+"/source/sheet",schemaPath:"#/$defs/DataSourceRef/properties/sheet/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.sheet.type,parentSchema:re.properties.sheet,data:h};e===null?e=[c]:e.push(c),t++}}if(i.range!==void 0){let h=i.range;if(typeof h!="string"){const c={instancePath:s+"/source/range",schemaPath:"#/$defs/DataSourceRef/properties/range/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.range.type,parentSchema:re.properties.range,data:h};e===null?e=[c]:e.push(c),t++}}if(i.fields!==void 0){let h=i.fields;if(Array.isArray(h)){const c=h.length;for(let y=0;y<c;y++){let g=h[y];if(typeof g!="string"){const l={instancePath:s+"/source/fields/"+y,schemaPath:"#/$defs/DataSourceRef/properties/fields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.fields.items.type,parentSchema:re.properties.fields.items,data:g};e===null?e=[l]:e.push(l),t++}}}else{const c={instancePath:s+"/source/fields",schemaPath:"#/$defs/DataSourceRef/properties/fields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:re.properties.fields.type,parentSchema:re.properties.fields,data:h};e===null?e=[c]:e.push(c),t++}}if(i.retrieved!==void 0){let h=i.retrieved;if(typeof h!="string"){const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.retrieved.type,parentSchema:re.properties.retrieved,data:h};e===null?e=[o]:e.push(o),t++}const c=t;let y=!1;const g=t;if(typeof h=="string"&&!xn.validate(h)){const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/0/format",keyword:"format",params:{format:"date"},message:'must match format "date"',schema:"date",parentSchema:re.properties.retrieved.anyOf[0],data:h};e===null?e=[o]:e.push(o),t++}var p=g===t;y=y||p;const l=t;if(typeof h=="string"&&!Nn.validate(h)){const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/1/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"',schema:"date-time",parentSchema:re.properties.retrieved.anyOf[1],data:h};e===null?e=[o]:e.push(o),t++}var p=l===t;if(y=y||p,y)t=c,e!==null&&(c?e.length=c:e=null);else{const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:re.properties.retrieved.anyOf,parentSchema:re.properties.retrieved,data:h};e===null?e=[o]:e.push(o),t++}}if(i.description!==void 0){let h=i.description;if(typeof h!="string"){const c={instancePath:s+"/source/description",schemaPath:"#/$defs/DataSourceRef/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.description.type,parentSchema:re.properties.description,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/type",keyword:"type",params:{type:"object"},message:"must be object",schema:re.type,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ze.type,parentSchema:ze,data:a};e===null?e=[i]:e.push(i),t++}return Es.errors=e,t===0}Es.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ga=j.presentation.$defs.DatasetRef,Na=j.presentation.$defs.DatasetId,Ft=j.presentation.$defs.DatasetFields,Us=new RegExp("^[a-zA-Z0-9][a-zA-Z0-9._-]*$","u");function Ks(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ks.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.dataset===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"dataset"},message:"must have required property 'dataset'",schema:ga.required,parentSchema:ga,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="dataset"||r==="fields")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ga,data:a};e===null?e=[n]:e.push(n),t++}if(a.dataset!==void 0){let r=a.dataset;if(typeof r=="string"){if(!Us.test(r)){const n={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$"},message:'must match pattern "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"',schema:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$",parentSchema:Na,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Na.type,parentSchema:Na,data:r};e===null?e=[n]:e.push(n),t++}}if(a.fields!==void 0){let r=a.fields;if(Array.isArray(r)){if(r.length<1){const h={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Ft,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/fields/"+h,schemaPath:"#/$defs/DatasetFields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ft.items.type,parentSchema:Ft.items,data:c};e===null?e=[y]:e.push(y),t++}}let p=r.length,i;if(p>1){const h={};for(;p--;){let c=r[p];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/uniqueItems",keyword:"uniqueItems",params:{i:p,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+p+" are identical)",schema:!0,parentSchema:Ft,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=p}}}}else{const n={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ft.type,parentSchema:Ft,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ga.type,parentSchema:ga,data:a};e===null?e=[r]:e.push(r),t++}return Ks.errors=e,t===0}Ks.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ns(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ns.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:nt.required,parentSchema:nt,data:a};e===null?e=[i]:e.push(i),t++}if(a.data===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"data"},message:"must have required property 'data'",schema:nt.required,parentSchema:nt,data:a};e===null?e=[i]:e.push(i),t++}for(const i in a)if(!wa.call(nt.properties,i)){const h={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:nt,data:a};e===null?e=[h]:e.push(h),t++}if(a.type!==void 0){let i=a.type;if(typeof i!="string"){const h={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nt.properties.type.type,parentSchema:nt.properties.type,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="100pct-stacked-area"||i==="100pct-stacked-bar"||i==="100pct-stacked-column"||i==="area"||i==="bar"||i==="box-and-whisker"||i==="column"||i==="combo"||i==="doughnut"||i==="filled-radar"||i==="funnel"||i==="histogram"||i==="line"||i==="line-with-markers"||i==="pareto"||i==="pie"||i==="radar"||i==="radar-with-markers"||i==="scatter"||i==="stacked-area"||i==="stacked-bar"||i==="stacked-column"||i==="stacked-line"||i==="stacked-line-with-markers"||i==="treemap"||i==="waterfall"||i==="world")){const h={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:nt.properties.type.enum},message:"must be equal to one of the allowed values",schema:nt.properties.type.enum,parentSchema:nt.properties.type,data:i};e===null?e=[h]:e.push(h),t++}}if(a.data!==void 0){let i=a.data;const h=t;let c=!1,y=null;const g=t;Es(i,{instancePath:s+"/data",parentData:a,parentDataProperty:"data",rootData:v,dynamicAnchors:b})||(e=e===null?Es.errors:e.concat(Es.errors),t=e.length);var n=g===t;if(n){c=!0,y=0;var r=!0}const l=t;Ks(i,{instancePath:s+"/data",parentData:a,parentDataProperty:"data",rootData:v,dynamicAnchors:b})||(e=e===null?Ks.errors:e.concat(Ks.errors),t=e.length);var n=l===t;if(n&&c?(c=!1,y=[y,1]):n&&(c=!0,y=1,r!==!0&&(r=!0)),c)t=h,e!==null&&(h?e.length=h:e=null);else{const o={instancePath:s+"/data",schemaPath:"#/properties/data/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:nt.properties.data.oneOf,parentSchema:nt.properties.data,data:i};e===null?e=[o]:e.push(o),t++}}if(a.mapping!==void 0){let i=a.mapping;if(i&&typeof i=="object"&&!Array.isArray(i)){for(const h in i)if(!(h==="category"||h==="x"||h==="series")){const c={instancePath:s+"/mapping",schemaPath:"#/$defs/ChartMapping/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:xa,data:i};e===null?e=[c]:e.push(c),t++}if(i.category!==void 0){let h=i.category;if(typeof h!="string"){const c={instancePath:s+"/mapping/category",schemaPath:"#/$defs/ChartMapping/properties/category/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xa.properties.category.type,parentSchema:xa.properties.category,data:h};e===null?e=[c]:e.push(c),t++}}if(i.x!==void 0){let h=i.x;if(typeof h!="string"){const c={instancePath:s+"/mapping/x",schemaPath:"#/$defs/ChartMapping/properties/x/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xa.properties.x.type,parentSchema:xa.properties.x,data:h};e===null?e=[c]:e.push(c),t++}}if(i.series!==void 0){let h=i.series;if(Array.isArray(h)){if(h.length<1){const y={instancePath:s+"/mapping/series",schemaPath:"#/$defs/ChartMapping/properties/series/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:xa.properties.series,data:h};e===null?e=[y]:e.push(y),t++}const c=h.length;for(let y=0;y<c;y++){let g=h[y];if(typeof g!="string"){const l={instancePath:s+"/mapping/series/"+y,schemaPath:"#/$defs/ChartMapping/properties/series/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xa.properties.series.items.type,parentSchema:xa.properties.series.items,data:g};e===null?e=[l]:e.push(l),t++}}}else{const c={instancePath:s+"/mapping/series",schemaPath:"#/$defs/ChartMapping/properties/series/type",keyword:"type",params:{type:"array"},message:"must be array",schema:xa.properties.series.type,parentSchema:xa.properties.series,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/mapping",schemaPath:"#/$defs/ChartMapping/type",keyword:"type",params:{type:"object"},message:"must be object",schema:xa.type,parentSchema:xa,data:i};e===null?e=[h]:e.push(h),t++}}if(a.line!==void 0){let i=a.line;if(Array.isArray(i)){if(i.length<1){const g={instancePath:s+"/line",schemaPath:"#/properties/line/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:nt.properties.line,data:i};e===null?e=[g]:e.push(g),t++}const h=i.length;for(let g=0;g<h;g++){let l=i[g];if(typeof l!="string"){const o={instancePath:s+"/line/"+g,schemaPath:"#/properties/line/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nt.properties.line.items.type,parentSchema:nt.properties.line.items,data:l};e===null?e=[o]:e.push(o),t++}}let c=i.length,y;if(c>1){const g={};for(;c--;){let l=i[c];if(typeof l=="string"){if(typeof g[l]=="number"){y=g[l];const o={instancePath:s+"/line",schemaPath:"#/properties/line/uniqueItems",keyword:"uniqueItems",params:{i:c,j:y},message:"must NOT have duplicate items (items ## "+y+" and "+c+" are identical)",schema:!0,parentSchema:nt.properties.line,data:i};e===null?e=[o]:e.push(o),t++;break}g[l]=c}}}}else{const h={instancePath:s+"/line",schemaPath:"#/properties/line/type",keyword:"type",params:{type:"array"},message:"must be array",schema:nt.properties.line.type,parentSchema:nt.properties.line,data:i};e===null?e=[h]:e.push(h),t++}}if(a.secondaryAxis!==void 0){let i=a.secondaryAxis;if(Array.isArray(i)){if(i.length<1){const g={instancePath:s+"/secondaryAxis",schemaPath:"#/properties/secondaryAxis/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:nt.properties.secondaryAxis,data:i};e===null?e=[g]:e.push(g),t++}const h=i.length;for(let g=0;g<h;g++){let l=i[g];if(typeof l!="string"){const o={instancePath:s+"/secondaryAxis/"+g,schemaPath:"#/properties/secondaryAxis/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nt.properties.secondaryAxis.items.type,parentSchema:nt.properties.secondaryAxis.items,data:l};e===null?e=[o]:e.push(o),t++}}let c=i.length,y;if(c>1){const g={};for(;c--;){let l=i[c];if(typeof l=="string"){if(typeof g[l]=="number"){y=g[l];const o={instancePath:s+"/secondaryAxis",schemaPath:"#/properties/secondaryAxis/uniqueItems",keyword:"uniqueItems",params:{i:c,j:y},message:"must NOT have duplicate items (items ## "+y+" and "+c+" are identical)",schema:!0,parentSchema:nt.properties.secondaryAxis,data:i};e===null?e=[o]:e.push(o),t++;break}g[l]=c}}}}else{const h={instancePath:s+"/secondaryAxis",schemaPath:"#/properties/secondaryAxis/type",keyword:"type",params:{type:"array"},message:"must be array",schema:nt.properties.secondaryAxis.type,parentSchema:nt.properties.secondaryAxis,data:i};e===null?e=[h]:e.push(h),t++}}if(a.axisTitles!==void 0){let i=a.axisTitles;if(i&&typeof i=="object"&&!Array.isArray(i)){for(const h in i)if(!(h==="category"||h==="value"||h==="secondary")){const c={instancePath:s+"/axisTitles",schemaPath:"#/$defs/ChartAxisTitles/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:rs,data:i};e===null?e=[c]:e.push(c),t++}if(i.category!==void 0){let h=i.category;if(typeof h!="string"){const c={instancePath:s+"/axisTitles/category",schemaPath:"#/$defs/ChartAxisTitles/properties/category/type",keyword:"type",params:{type:"string"},message:"must be string",schema:rs.properties.category.type,parentSchema:rs.properties.category,data:h};e===null?e=[c]:e.push(c),t++}}if(i.value!==void 0){let h=i.value;if(typeof h!="string"){const c={instancePath:s+"/axisTitles/value",schemaPath:"#/$defs/ChartAxisTitles/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:rs.properties.value.type,parentSchema:rs.properties.value,data:h};e===null?e=[c]:e.push(c),t++}}if(i.secondary!==void 0){let h=i.secondary;if(typeof h!="string"){const c={instancePath:s+"/axisTitles/secondary",schemaPath:"#/$defs/ChartAxisTitles/properties/secondary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:rs.properties.secondary.type,parentSchema:rs.properties.secondary,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/axisTitles",schemaPath:"#/$defs/ChartAxisTitles/type",keyword:"type",params:{type:"object"},message:"must be object",schema:rs.type,parentSchema:rs,data:i};e===null?e=[h]:e.push(h),t++}}if(a.legend!==void 0){let i=a.legend;if(typeof i!="string"){const h={instancePath:s+"/legend",schemaPath:"#/properties/legend/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nt.properties.legend.type,parentSchema:nt.properties.legend,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="none"||i==="top"||i==="bottom"||i==="left"||i==="right")){const h={instancePath:s+"/legend",schemaPath:"#/properties/legend/enum",keyword:"enum",params:{allowedValues:nt.properties.legend.enum},message:"must be equal to one of the allowed values",schema:nt.properties.legend.enum,parentSchema:nt.properties.legend,data:i};e===null?e=[h]:e.push(h),t++}}if(a.dataLabels!==void 0){let i=a.dataLabels;const h=t;let c=!1,y=null;const g=t;if(typeof i!="boolean"){const o={instancePath:s+"/dataLabels",schemaPath:"#/properties/dataLabels/oneOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:nt.properties.dataLabels.oneOf[0].type,parentSchema:nt.properties.dataLabels.oneOf[0],data:i};e===null?e=[o]:e.push(o),t++}var p=g===t;p&&(c=!0,y=0);const l=t;if(i&&typeof i=="object"&&!Array.isArray(i)){for(const o in i)if(!(o==="content"||o==="position"||o==="separator")){const d={instancePath:s+"/dataLabels",schemaPath:"#/$defs/ChartDataLabels/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:dt,data:i};e===null?e=[d]:e.push(d),t++}if(i.content!==void 0){let o=i.content;if(Array.isArray(o)){if(o.length<1){const w={instancePath:s+"/dataLabels/content",schemaPath:"#/$defs/ChartDataLabels/properties/content/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:dt.properties.content,data:o};e===null?e=[w]:e.push(w),t++}const d=o.length;for(let w=0;w<d;w++){let q=o[w];if(typeof q!="string"){const f={instancePath:s+"/dataLabels/content/"+w,schemaPath:"#/$defs/ChartDataLabels/properties/content/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:dt.properties.content.items.type,parentSchema:dt.properties.content.items,data:q};e===null?e=[f]:e.push(f),t++}if(!(q==="value"||q==="percent"||q==="category")){const f={instancePath:s+"/dataLabels/content/"+w,schemaPath:"#/$defs/ChartDataLabels/properties/content/items/enum",keyword:"enum",params:{allowedValues:dt.properties.content.items.enum},message:"must be equal to one of the allowed values",schema:dt.properties.content.items.enum,parentSchema:dt.properties.content.items,data:q};e===null?e=[f]:e.push(f),t++}}let O=o.length,S;if(O>1){const w={};for(;O--;){let q=o[O];if(typeof q=="string"){if(typeof w[q]=="number"){S=w[q];const f={instancePath:s+"/dataLabels/content",schemaPath:"#/$defs/ChartDataLabels/properties/content/uniqueItems",keyword:"uniqueItems",params:{i:O,j:S},message:"must NOT have duplicate items (items ## "+S+" and "+O+" are identical)",schema:!0,parentSchema:dt.properties.content,data:o};e===null?e=[f]:e.push(f),t++;break}w[q]=O}}}}else{const d={instancePath:s+"/dataLabels/content",schemaPath:"#/$defs/ChartDataLabels/properties/content/type",keyword:"type",params:{type:"array"},message:"must be array",schema:dt.properties.content.type,parentSchema:dt.properties.content,data:o};e===null?e=[d]:e.push(d),t++}}if(i.position!==void 0){let o=i.position;if(typeof o!="string"){const d={instancePath:s+"/dataLabels/position",schemaPath:"#/$defs/ChartDataLabels/properties/position/type",keyword:"type",params:{type:"string"},message:"must be string",schema:dt.properties.position.type,parentSchema:dt.properties.position,data:o};e===null?e=[d]:e.push(d),t++}if(!(o==="auto"||o==="center"||o==="inside-end"||o==="inside-base"||o==="outside-end"||o==="above"||o==="below"||o==="left"||o==="right")){const d={instancePath:s+"/dataLabels/position",schemaPath:"#/$defs/ChartDataLabels/properties/position/enum",keyword:"enum",params:{allowedValues:dt.properties.position.enum},message:"must be equal to one of the allowed values",schema:dt.properties.position.enum,parentSchema:dt.properties.position,data:o};e===null?e=[d]:e.push(d),t++}}if(i.separator!==void 0){let o=i.separator;if(typeof o!="string"){const d={instancePath:s+"/dataLabels/separator",schemaPath:"#/$defs/ChartDataLabels/properties/separator/type",keyword:"type",params:{type:"string"},message:"must be string",schema:dt.properties.separator.type,parentSchema:dt.properties.separator,data:o};e===null?e=[d]:e.push(d),t++}}}else{const o={instancePath:s+"/dataLabels",schemaPath:"#/$defs/ChartDataLabels/type",keyword:"type",params:{type:"object"},message:"must be object",schema:dt.type,parentSchema:dt,data:i};e===null?e=[o]:e.push(o),t++}var p=l===t;if(p&&c?(c=!1,y=[y,1]):p&&(c=!0,y=1),c)t=h,e!==null&&(h?e.length=h:e=null);else{const o={instancePath:s+"/dataLabels",schemaPath:"#/properties/dataLabels/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:nt.properties.dataLabels.oneOf,parentSchema:nt.properties.dataLabels,data:i};e===null?e=[o]:e.push(o),t++}}if(a.alt!==void 0){let i=a.alt;if(typeof i!="string"){const h={instancePath:s+"/alt",schemaPath:"#/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nt.properties.alt.type,parentSchema:nt.properties.alt,data:i};e===null?e=[h]:e.push(h),t++}}if(a.colors!==void 0){let i=a.colors;if(Array.isArray(i)){if(i.length>24){const c={instancePath:s+"/colors",schemaPath:"#/properties/colors/maxItems",keyword:"maxItems",params:{limit:24},message:"must NOT have more than 24 items",schema:24,parentSchema:nt.properties.colors,data:i};e===null?e=[c]:e.push(c),t++}if(i.length<1){const c={instancePath:s+"/colors",schemaPath:"#/properties/colors/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:nt.properties.colors,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++)Be(i[c],{instancePath:s+"/colors/"+c,parentData:i,parentDataProperty:c,rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length)}else{const h={instancePath:s+"/colors",schemaPath:"#/properties/colors/type",keyword:"type",params:{type:"array"},message:"must be array",schema:nt.properties.colors.type,parentSchema:nt.properties.colors,data:i};e===null?e=[h]:e.push(h),t++}}if(a.highlight!==void 0){let i=a.highlight;if(i&&typeof i=="object"&&!Array.isArray(i)){if(Object.keys(i).length<1){const h={instancePath:s+"/highlight",schemaPath:"#/$defs/ChartHighlight/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:ca,data:i};e===null?e=[h]:e.push(h),t++}for(const h in i)if(!(h==="series"||h==="categories")){const c={instancePath:s+"/highlight",schemaPath:"#/$defs/ChartHighlight/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:ca,data:i};e===null?e=[c]:e.push(c),t++}if(i.series!==void 0){let h=i.series;if(Array.isArray(h)){if(h.length<1){const l={instancePath:s+"/highlight/series",schemaPath:"#/$defs/ChartHighlight/properties/series/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ca.properties.series,data:h};e===null?e=[l]:e.push(l),t++}const c=h.length;for(let l=0;l<c;l++){let o=h[l];if(typeof o!="string"){const d={instancePath:s+"/highlight/series/"+l,schemaPath:"#/$defs/ChartHighlight/properties/series/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ca.properties.series.items.type,parentSchema:ca.properties.series.items,data:o};e===null?e=[d]:e.push(d),t++}}let y=h.length,g;if(y>1){const l={};for(;y--;){let o=h[y];if(typeof o=="string"){if(typeof l[o]=="number"){g=l[o];const d={instancePath:s+"/highlight/series",schemaPath:"#/$defs/ChartHighlight/properties/series/uniqueItems",keyword:"uniqueItems",params:{i:y,j:g},message:"must NOT have duplicate items (items ## "+g+" and "+y+" are identical)",schema:!0,parentSchema:ca.properties.series,data:h};e===null?e=[d]:e.push(d),t++;break}l[o]=y}}}}else{const c={instancePath:s+"/highlight/series",schemaPath:"#/$defs/ChartHighlight/properties/series/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ca.properties.series.type,parentSchema:ca.properties.series,data:h};e===null?e=[c]:e.push(c),t++}}if(i.categories!==void 0){let h=i.categories;if(Array.isArray(h)){if(h.length<1){const l={instancePath:s+"/highlight/categories",schemaPath:"#/$defs/ChartHighlight/properties/categories/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ca.properties.categories,data:h};e===null?e=[l]:e.push(l),t++}const c=h.length;for(let l=0;l<c;l++){let o=h[l];if(typeof o!="string"){const d={instancePath:s+"/highlight/categories/"+l,schemaPath:"#/$defs/ChartHighlight/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ca.properties.categories.items.type,parentSchema:ca.properties.categories.items,data:o};e===null?e=[d]:e.push(d),t++}}let y=h.length,g;if(y>1){const l={};for(;y--;){let o=h[y];if(typeof o=="string"){if(typeof l[o]=="number"){g=l[o];const d={instancePath:s+"/highlight/categories",schemaPath:"#/$defs/ChartHighlight/properties/categories/uniqueItems",keyword:"uniqueItems",params:{i:y,j:g},message:"must NOT have duplicate items (items ## "+g+" and "+y+" are identical)",schema:!0,parentSchema:ca.properties.categories,data:h};e===null?e=[d]:e.push(d),t++;break}l[o]=y}}}}else{const c={instancePath:s+"/highlight/categories",schemaPath:"#/$defs/ChartHighlight/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ca.properties.categories.type,parentSchema:ca.properties.categories,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/highlight",schemaPath:"#/$defs/ChartHighlight/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ca.type,parentSchema:ca,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:nt.type,parentSchema:nt,data:a};e===null?e=[i]:e.push(i),t++}return ns.errors=e,t===0}ns.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var $t=j.presentation.$defs.Table,tt=j.presentation.$defs.StyledTableCell,Tt=j.presentation.$defs.TableCellValue;function Yt(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Yt.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const g={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Tt.oneOf[0].type,parentSchema:Tt.oneOf[0],data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,p=0);const h=t;if(typeof a!="number"){const g={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Tt.oneOf[1].type,parentSchema:Tt.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}var c=h===t;if(c&&n)n=!1,p=[p,1];else{c&&(n=!0,p=1);const g=t;if(typeof a!="boolean"){const o={instancePath:s,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Tt.oneOf[2].type,parentSchema:Tt.oneOf[2],data:a};e===null?e=[o]:e.push(o),t++}var c=g===t;if(c&&n)n=!1,p=[p,2];else{c&&(n=!0,p=2);const o=t;if(a!==null){const O={instancePath:s,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"null"},message:"must be null",schema:Tt.oneOf[3].type,parentSchema:Tt.oneOf[3],data:a};e===null?e=[O]:e.push(O),t++}var c=o===t;if(c&&n)n=!1,p=[p,3];else{c&&(n=!0,p=3);const O=t;if(Array.isArray(a)){const w=a.length;for(let q=0;q<w;q++)W(a[q],{instancePath:s+"/"+q,parentData:a,parentDataProperty:q,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const w={instancePath:s,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Tt.oneOf[4].type,parentSchema:Tt.oneOf[4],data:a};e===null?e=[w]:e.push(w),t++}var c=O===t;if(c&&n)n=!1,p=[p,4];else if(c){n=!0,p=4;var y=!0}}}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:Tt.oneOf,parentSchema:Tt,data:a};e===null?e=[g]:e.push(g),t++}return Yt.errors=e,m.items=y,t===0}Yt.evaluated={dynamicProps:!1,dynamicItems:!0};var ta=j.presentation.$defs.TableCellStyle,Xt=j.presentation.$defs.TableCellPadding,ha=j.presentation.$defs.TableCellBorder;function Pa(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Pa.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.color===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:ha.required,parentSchema:ha,data:a};e===null?e=[r]:e.push(r),t++}if(a.width===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"width"},message:"must have required property 'width'",schema:ha.required,parentSchema:ha,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="color"||r==="width"||r==="dash")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ha,data:a};e===null?e=[n]:e.push(n),t++}if(a.color!==void 0&&(Be(a.color,{instancePath:s+"/color",parentData:a,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length)),a.width!==void 0){let r=a.width;if(typeof r=="number"){if(r>32||isNaN(r)){const n={instancePath:s+"/width",schemaPath:"#/properties/width/maximum",keyword:"maximum",params:{comparison:"<=",limit:32},message:"must be <= 32",schema:32,parentSchema:ha.properties.width,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:ha.properties.width,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ha.properties.width.type,parentSchema:ha.properties.width,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dash!==void 0){let r=a.dash;if(typeof r!="string"){const n={instancePath:s+"/dash",schemaPath:"#/properties/dash/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ha.properties.dash.type,parentSchema:ha.properties.dash,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="solid"||r==="dash"||r==="dot")){const n={instancePath:s+"/dash",schemaPath:"#/properties/dash/enum",keyword:"enum",params:{allowedValues:ha.properties.dash.enum},message:"must be equal to one of the allowed values",schema:ha.properties.dash.enum,parentSchema:ha.properties.dash,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ha.type,parentSchema:ha,data:a};e===null?e=[r]:e.push(r),t++}return Pa.errors=e,t===0}Pa.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function va(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=va.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const r in a)if(!(r==="fill"||r==="color"||r==="bold"||r==="align"||r==="verticalAlign"||r==="padding"||r==="borders")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ta,data:a};e===null?e=[n]:e.push(n),t++}if(a.fill!==void 0&&(Be(a.fill,{instancePath:s+"/fill",parentData:a,parentDataProperty:"fill",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length)),a.color!==void 0&&(Be(a.color,{instancePath:s+"/color",parentData:a,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length)),a.bold!==void 0){let r=a.bold;if(typeof r!="boolean"){const n={instancePath:s+"/bold",schemaPath:"#/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ta.properties.bold.type,parentSchema:ta.properties.bold,data:r};e===null?e=[n]:e.push(n),t++}}if(a.align!==void 0){let r=a.align;if(typeof r!="string"){const n={instancePath:s+"/align",schemaPath:"#/properties/align/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ta.properties.align.type,parentSchema:ta.properties.align,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="left"||r==="center"||r==="right")){const n={instancePath:s+"/align",schemaPath:"#/properties/align/enum",keyword:"enum",params:{allowedValues:ta.properties.align.enum},message:"must be equal to one of the allowed values",schema:ta.properties.align.enum,parentSchema:ta.properties.align,data:r};e===null?e=[n]:e.push(n),t++}}if(a.verticalAlign!==void 0){let r=a.verticalAlign;if(typeof r!="string"){const n={instancePath:s+"/verticalAlign",schemaPath:"#/properties/verticalAlign/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ta.properties.verticalAlign.type,parentSchema:ta.properties.verticalAlign,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="top"||r==="middle"||r==="bottom")){const n={instancePath:s+"/verticalAlign",schemaPath:"#/properties/verticalAlign/enum",keyword:"enum",params:{allowedValues:ta.properties.verticalAlign.enum},message:"must be equal to one of the allowed values",schema:ta.properties.verticalAlign.enum,parentSchema:ta.properties.verticalAlign,data:r};e===null?e=[n]:e.push(n),t++}}if(a.padding!==void 0){let r=a.padding;if(r&&typeof r=="object"&&!Array.isArray(r)){for(const n in r)if(!(n==="top"||n==="right"||n==="bottom"||n==="left")){const p={instancePath:s+"/padding",schemaPath:"#/$defs/TableCellPadding/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:Xt,data:r};e===null?e=[p]:e.push(p),t++}if(r.top!==void 0){let n=r.top;if(typeof n=="number"){if(n>200||isNaN(n)){const p={instancePath:s+"/padding/top",schemaPath:"#/$defs/TableCellPadding/properties/top/maximum",keyword:"maximum",params:{comparison:"<=",limit:200},message:"must be <= 200",schema:200,parentSchema:Xt.properties.top,data:n};e===null?e=[p]:e.push(p),t++}if(n<0||isNaN(n)){const p={instancePath:s+"/padding/top",schemaPath:"#/$defs/TableCellPadding/properties/top/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Xt.properties.top,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/padding/top",schemaPath:"#/$defs/TableCellPadding/properties/top/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Xt.properties.top.type,parentSchema:Xt.properties.top,data:n};e===null?e=[p]:e.push(p),t++}}if(r.right!==void 0){let n=r.right;if(typeof n=="number"){if(n>200||isNaN(n)){const p={instancePath:s+"/padding/right",schemaPath:"#/$defs/TableCellPadding/properties/right/maximum",keyword:"maximum",params:{comparison:"<=",limit:200},message:"must be <= 200",schema:200,parentSchema:Xt.properties.right,data:n};e===null?e=[p]:e.push(p),t++}if(n<0||isNaN(n)){const p={instancePath:s+"/padding/right",schemaPath:"#/$defs/TableCellPadding/properties/right/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Xt.properties.right,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/padding/right",schemaPath:"#/$defs/TableCellPadding/properties/right/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Xt.properties.right.type,parentSchema:Xt.properties.right,data:n};e===null?e=[p]:e.push(p),t++}}if(r.bottom!==void 0){let n=r.bottom;if(typeof n=="number"){if(n>200||isNaN(n)){const p={instancePath:s+"/padding/bottom",schemaPath:"#/$defs/TableCellPadding/properties/bottom/maximum",keyword:"maximum",params:{comparison:"<=",limit:200},message:"must be <= 200",schema:200,parentSchema:Xt.properties.bottom,data:n};e===null?e=[p]:e.push(p),t++}if(n<0||isNaN(n)){const p={instancePath:s+"/padding/bottom",schemaPath:"#/$defs/TableCellPadding/properties/bottom/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Xt.properties.bottom,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/padding/bottom",schemaPath:"#/$defs/TableCellPadding/properties/bottom/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Xt.properties.bottom.type,parentSchema:Xt.properties.bottom,data:n};e===null?e=[p]:e.push(p),t++}}if(r.left!==void 0){let n=r.left;if(typeof n=="number"){if(n>200||isNaN(n)){const p={instancePath:s+"/padding/left",schemaPath:"#/$defs/TableCellPadding/properties/left/maximum",keyword:"maximum",params:{comparison:"<=",limit:200},message:"must be <= 200",schema:200,parentSchema:Xt.properties.left,data:n};e===null?e=[p]:e.push(p),t++}if(n<0||isNaN(n)){const p={instancePath:s+"/padding/left",schemaPath:"#/$defs/TableCellPadding/properties/left/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Xt.properties.left,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/padding/left",schemaPath:"#/$defs/TableCellPadding/properties/left/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Xt.properties.left.type,parentSchema:Xt.properties.left,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/padding",schemaPath:"#/$defs/TableCellPadding/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Xt.type,parentSchema:Xt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.borders!==void 0){let r=a.borders;if(r&&typeof r=="object"&&!Array.isArray(r)){for(const n in r)if(!(n==="top"||n==="right"||n==="bottom"||n==="left")){const p={instancePath:s+"/borders",schemaPath:"#/properties/borders/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:ta.properties.borders,data:r};e===null?e=[p]:e.push(p),t++}r.top!==void 0&&(Pa(r.top,{instancePath:s+"/borders/top",parentData:r,parentDataProperty:"top",rootData:v,dynamicAnchors:b})||(e=e===null?Pa.errors:e.concat(Pa.errors),t=e.length)),r.right!==void 0&&(Pa(r.right,{instancePath:s+"/borders/right",parentData:r,parentDataProperty:"right",rootData:v,dynamicAnchors:b})||(e=e===null?Pa.errors:e.concat(Pa.errors),t=e.length)),r.bottom!==void 0&&(Pa(r.bottom,{instancePath:s+"/borders/bottom",parentData:r,parentDataProperty:"bottom",rootData:v,dynamicAnchors:b})||(e=e===null?Pa.errors:e.concat(Pa.errors),t=e.length)),r.left!==void 0&&(Pa(r.left,{instancePath:s+"/borders/left",parentData:r,parentDataProperty:"left",rootData:v,dynamicAnchors:b})||(e=e===null?Pa.errors:e.concat(Pa.errors),t=e.length))}else{const n={instancePath:s+"/borders",schemaPath:"#/properties/borders/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ta.properties.borders.type,parentSchema:ta.properties.borders,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ta.type,parentSchema:ta,data:a};e===null?e=[r]:e.push(r),t++}return va.errors=e,t===0}va.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function os(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=os.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:tt.required,parentSchema:tt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="value"||r==="style"||r==="colSpan"||r==="rowSpan"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:tt,data:a};e===null?e=[n]:e.push(n),t++}if(a.value!==void 0&&(Yt(a.value,{instancePath:s+"/value",parentData:a,parentDataProperty:"value",rootData:v,dynamicAnchors:b})||(e=e===null?Yt.errors:e.concat(Yt.errors),t=e.length)),a.style!==void 0&&(va(a.style,{instancePath:s+"/style",parentData:a,parentDataProperty:"style",rootData:v,dynamicAnchors:b})||(e=e===null?va.errors:e.concat(va.errors),t=e.length)),a.colSpan!==void 0){let r=a.colSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:tt.properties.colSpan.type,parentSchema:tt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:tt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.rowSpan!==void 0){let r=a.rowSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:tt.properties.rowSpan.type,parentSchema:tt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:tt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rt.type,parentSchema:Rt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:tt.type,parentSchema:tt,data:a};e===null?e=[r]:e.push(r),t++}return os.errors=e,t===0}os.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ph=j.presentation.$defs.TableCell;function Js(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Js.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(!Yt(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b}))e=e===null?Yt.errors:e.concat(Yt.errors),t=e.length;else var h=Yt.evaluated.items;var y=i===t;y&&(n=!0,p=0);const c=t;os(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?os.errors:e.concat(os.errors),t=e.length);var y=c===t;if(y&&n)n=!1,p=[p,1];else if(y){n=!0,p=1;var g=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const l={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:ph.oneOf,parentSchema:ph,data:a};e===null?e=[l]:e.push(l),t++}return Js.errors=e,m.props=g,m.items=h,t===0}Js.evaluated={dynamicProps:!0,dynamicItems:!0};function ps(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ps.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!0;const p=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.dataset===void 0){const l={};e===null?e=[l]:e.push(l),t++}var i=p===t;t=r,e!==null&&(r?e.length=r:e=null);let h;if(i){const l=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.rows!==void 0){const d={instancePath:s+"/rows",schemaPath:"#/then/properties/rows/false schema",keyword:"false schema",params:{},message:"boolean schema is false",schema:!1,parentSchema:$t.then.properties.rows,data:a.rows};e===null?e=[d]:e.push(d),t++}if(a.columns!==void 0){const d={instancePath:s+"/columns",schemaPath:"#/then/properties/columns/false schema",keyword:"false schema",params:{},message:"boolean schema is false",schema:!1,parentSchema:$t.then.properties.columns,data:a.columns};e===null?e=[d]:e.push(d),t++}}var i=l===t;if(n=i,n){var c={};c.rows=!0,c.columns=!0}h="then"}else{const l=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.rows===void 0){const d={instancePath:s,schemaPath:"#/else/required",keyword:"required",params:{missingProperty:"rows"},message:"must have required property 'rows'",schema:$t.else.required,parentSchema:$t.else,data:a};e===null?e=[d]:e.push(d),t++}if(a.fields!==void 0){const d={instancePath:s+"/fields",schemaPath:"#/else/properties/fields/false schema",keyword:"false schema",params:{},message:"boolean schema is false",schema:!1,parentSchema:$t.else.properties.fields,data:a.fields};e===null?e=[d]:e.push(d),t++}}var i=l===t;n=i,n&&c!==!0&&(c=c||{},c.fields=!0),h="else"}if(!n){const l={instancePath:s,schemaPath:"#/if",keyword:"if",params:{failingKeyword:h},message:'must match "'+h+'" schema',schema:$t.if,parentSchema:$t,data:a};e===null?e=[l]:e.push(l),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){for(const l in a)if(!(l==="columns"||l==="rows"||l==="dataset"||l==="fields"||l==="alt")){const o={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:$t,data:a};e===null?e=[o]:e.push(o),t++}if(a.columns!==void 0){let l=a.columns;if(Array.isArray(l)){const o=l.length;for(let d=0;d<o;d++){let O=l[d];const S=t;let w=!1,q=null;const f=t;if(typeof O!="string"){const k={instancePath:s+"/columns/"+d,schemaPath:"#/properties/columns/items/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$t.properties.columns.items.oneOf[0].type,parentSchema:$t.properties.columns.items.oneOf[0],data:O};e===null?e=[k]:e.push(k),t++}var y=f===t;y&&(w=!0,q=0);const P=t;if(Array.isArray(O)){const k=O.length;for(let D=0;D<k;D++)W(O[D],{instancePath:s+"/columns/"+d+"/"+D,parentData:O,parentDataProperty:D,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const k={instancePath:s+"/columns/"+d,schemaPath:"#/properties/columns/items/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$t.properties.columns.items.oneOf[1].type,parentSchema:$t.properties.columns.items.oneOf[1],data:O};e===null?e=[k]:e.push(k),t++}var y=P===t;if(y&&w)w=!1,q=[q,1];else{y&&(w=!0,q=1);const k=t;os(O,{instancePath:s+"/columns/"+d,parentData:l,parentDataProperty:d,rootData:v,dynamicAnchors:b})||(e=e===null?os.errors:e.concat(os.errors),t=e.length);var y=k===t;if(y&&w)w=!1,q=[q,2];else{if(y){w=!0,q=2;var g=!0}const I=t;ea(O,{instancePath:s+"/columns/"+d,parentData:l,parentDataProperty:d,rootData:v,dynamicAnchors:b})||(e=e===null?ea.errors:e.concat(ea.errors),t=e.length);var y=I===t;if(y&&w)w=!1,q=[q,3];else{y&&(w=!0,q=3,g!==!0&&(g=!0));const Z=t;if(O!==null){const J={instancePath:s+"/columns/"+d,schemaPath:"#/properties/columns/items/oneOf/4/type",keyword:"type",params:{type:"null"},message:"must be null",schema:$t.properties.columns.items.oneOf[4].type,parentSchema:$t.properties.columns.items.oneOf[4],data:O};e===null?e=[J]:e.push(J),t++}var y=Z===t;y&&w?(w=!1,q=[q,4]):y&&(w=!0,q=4)}}}if(w)t=S,e!==null&&(S?e.length=S:e=null);else{const k={instancePath:s+"/columns/"+d,schemaPath:"#/properties/columns/items/oneOf",keyword:"oneOf",params:{passingSchemas:q},message:"must match exactly one schema in oneOf",schema:$t.properties.columns.items.oneOf,parentSchema:$t.properties.columns.items,data:O};e===null?e=[k]:e.push(k),t++}}}else{const o={instancePath:s+"/columns",schemaPath:"#/properties/columns/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$t.properties.columns.type,parentSchema:$t.properties.columns,data:l};e===null?e=[o]:e.push(o),t++}}if(a.rows!==void 0){let l=a.rows;if(Array.isArray(l)){const o=l.length;for(let d=0;d<o;d++){let O=l[d];if(Array.isArray(O)){const S=O.length;for(let w=0;w<S;w++)Js(O[w],{instancePath:s+"/rows/"+d+"/"+w,parentData:O,parentDataProperty:w,rootData:v,dynamicAnchors:b})||(e=e===null?Js.errors:e.concat(Js.errors),t=e.length)}else{const S={instancePath:s+"/rows/"+d,schemaPath:"#/properties/rows/items/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$t.properties.rows.items.type,parentSchema:$t.properties.rows.items,data:O};e===null?e=[S]:e.push(S),t++}}}else{const o={instancePath:s+"/rows",schemaPath:"#/properties/rows/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$t.properties.rows.type,parentSchema:$t.properties.rows,data:l};e===null?e=[o]:e.push(o),t++}}if(a.dataset!==void 0){let l=a.dataset;if(typeof l=="string"){if(!Us.test(l)){const o={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$"},message:'must match pattern "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"',schema:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$",parentSchema:Na,data:l};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Na.type,parentSchema:Na,data:l};e===null?e=[o]:e.push(o),t++}}if(a.fields!==void 0){let l=a.fields;if(Array.isArray(l)){if(l.length<1){const S={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Ft,data:l};e===null?e=[S]:e.push(S),t++}const o=l.length;for(let S=0;S<o;S++){let w=l[S];if(typeof w!="string"){const q={instancePath:s+"/fields/"+S,schemaPath:"#/$defs/DatasetFields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ft.items.type,parentSchema:Ft.items,data:w};e===null?e=[q]:e.push(q),t++}}let d=l.length,O;if(d>1){const S={};for(;d--;){let w=l[d];if(typeof w=="string"){if(typeof S[w]=="number"){O=S[w];const q={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/uniqueItems",keyword:"uniqueItems",params:{i:d,j:O},message:"must NOT have duplicate items (items ## "+O+" and "+d+" are identical)",schema:!0,parentSchema:Ft,data:l};e===null?e=[q]:e.push(q),t++;break}S[w]=d}}}}else{const o={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ft.type,parentSchema:Ft,data:l};e===null?e=[o]:e.push(o),t++}}if(a.alt!==void 0){let l=a.alt;if(typeof l!="string"){const o={instancePath:s+"/alt",schemaPath:"#/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$t.properties.alt.type,parentSchema:$t.properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:$t.type,parentSchema:$t,data:a};e===null?e=[l]:e.push(l),t++}return ps.errors=e,t===0}ps.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var He=j.presentation.$defs.Quote;function is(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=is.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:He.required,parentSchema:He,data:a};e===null?e=[p]:e.push(p),t++}for(const p in a)if(!(p==="text"||p==="attribution"||p==="role"||p==="photo"||p==="source")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:He,data:a};e===null?e=[i]:e.push(i),t++}if(a.text!==void 0){let p=a.text;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.text.oneOf[0].type,parentSchema:He.properties.text.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(p)){const l=p.length;for(let o=0;o<l;o++)W(p[o],{instancePath:s+"/text/"+o,parentData:p,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:He.properties.text.oneOf[1].type,parentSchema:He.properties.text.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:He.properties.text.oneOf,parentSchema:He.properties.text,data:p};e===null?e=[l]:e.push(l),t++}}if(a.attribution!==void 0){let p=a.attribution;if(typeof p!="string"){const i={instancePath:s+"/attribution",schemaPath:"#/properties/attribution/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.attribution.type,parentSchema:He.properties.attribution,data:p};e===null?e=[i]:e.push(i),t++}}if(a.role!==void 0){let p=a.role;if(typeof p!="string"){const i={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.role.type,parentSchema:He.properties.role,data:p};e===null?e=[i]:e.push(i),t++}}if(a.photo!==void 0){let p=a.photo;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/photo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/photo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/photo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/photo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/photo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}if(a.source!==void 0){let p=a.source;if(typeof p!="string"){const i={instancePath:s+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.source.type,parentSchema:He.properties.source,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:He.type,parentSchema:He,data:a};e===null?e=[p]:e.push(p),t++}return is.errors=e,t===0}is.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var pa=j.presentation.$defs.Timeline,ke=j.presentation.$defs.TimelineEvent;function ms(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ms.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(Array.isArray(a)){if(a.length<1){const o={instancePath:s,schemaPath:"#/oneOf/0/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:pa.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}const l=a.length;for(let o=0;o<l;o++){let d=a[o];if(d&&typeof d=="object"&&!Array.isArray(d)){if(d.what===void 0){const O={instancePath:s+"/"+o,schemaPath:"#/$defs/TimelineEvent/required",keyword:"required",params:{missingProperty:"what"},message:"must have required property 'what'",schema:ke.required,parentSchema:ke,data:d};e===null?e=[O]:e.push(O),t++}for(const O in d)if(!(O==="when"||O==="what"||O==="description"||O==="status")){const S={instancePath:s+"/"+o,schemaPath:"#/$defs/TimelineEvent/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties",schema:!1,parentSchema:ke,data:d};e===null?e=[S]:e.push(S),t++}if(d.when!==void 0){let O=d.when;if(typeof O!="string"){const S={instancePath:s+"/"+o+"/when",schemaPath:"#/$defs/TimelineEvent/properties/when/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.when.type,parentSchema:ke.properties.when,data:O};e===null?e=[S]:e.push(S),t++}}if(d.what!==void 0){let O=d.what;if(typeof O!="string"){const S={instancePath:s+"/"+o+"/what",schemaPath:"#/$defs/TimelineEvent/properties/what/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.what.type,parentSchema:ke.properties.what,data:O};e===null?e=[S]:e.push(S),t++}}if(d.description!==void 0){let O=d.description;if(typeof O!="string"){const S={instancePath:s+"/"+o+"/description",schemaPath:"#/$defs/TimelineEvent/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.description.type,parentSchema:ke.properties.description,data:O};e===null?e=[S]:e.push(S),t++}}if(d.status!==void 0){let O=d.status;if(typeof O!="string"){const S={instancePath:s+"/"+o+"/status",schemaPath:"#/$defs/TimelineEvent/properties/status/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.status.type,parentSchema:ke.properties.status,data:O};e===null?e=[S]:e.push(S),t++}if(!(O==="done"||O==="current"||O==="planned")){const S={instancePath:s+"/"+o+"/status",schemaPath:"#/$defs/TimelineEvent/properties/status/enum",keyword:"enum",params:{allowedValues:ke.properties.status.enum},message:"must be equal to one of the allowed values",schema:ke.properties.status.enum,parentSchema:ke.properties.status,data:O};e===null?e=[S]:e.push(S),t++}}}else{const O={instancePath:s+"/"+o,schemaPath:"#/$defs/TimelineEvent/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ke.type,parentSchema:ke,data:d};e===null?e=[O]:e.push(O),t++}}}else{const l={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pa.oneOf[0].type,parentSchema:pa.oneOf[0],data:a};e===null?e=[l]:e.push(l),t++}var y=i===t;if(y){n=!0,p=0;var h=!0}const c=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.events===void 0){const l={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"events"},message:"must have required property 'events'",schema:pa.oneOf[1].required,parentSchema:pa.oneOf[1],data:a};e===null?e=[l]:e.push(l),t++}for(const l in a)if(!(l==="name"||l==="description"||l==="events")){const o={instancePath:s,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:pa.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.name!==void 0){let l=a.name;if(typeof l!="string"){const o={instancePath:s+"/name",schemaPath:"#/oneOf/1/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pa.oneOf[1].properties.name.type,parentSchema:pa.oneOf[1].properties.name,data:l};e===null?e=[o]:e.push(o),t++}}if(a.description!==void 0){let l=a.description;if(typeof l!="string"){const o={instancePath:s+"/description",schemaPath:"#/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pa.oneOf[1].properties.description.type,parentSchema:pa.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(a.events!==void 0){let l=a.events;if(Array.isArray(l)){if(l.length<1){const d={instancePath:s+"/events",schemaPath:"#/oneOf/1/properties/events/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:pa.oneOf[1].properties.events,data:l};e===null?e=[d]:e.push(d),t++}const o=l.length;for(let d=0;d<o;d++){let O=l[d];if(O&&typeof O=="object"&&!Array.isArray(O)){if(O.what===void 0){const S={instancePath:s+"/events/"+d,schemaPath:"#/$defs/TimelineEvent/required",keyword:"required",params:{missingProperty:"what"},message:"must have required property 'what'",schema:ke.required,parentSchema:ke,data:O};e===null?e=[S]:e.push(S),t++}for(const S in O)if(!(S==="when"||S==="what"||S==="description"||S==="status")){const w={instancePath:s+"/events/"+d,schemaPath:"#/$defs/TimelineEvent/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties",schema:!1,parentSchema:ke,data:O};e===null?e=[w]:e.push(w),t++}if(O.when!==void 0){let S=O.when;if(typeof S!="string"){const w={instancePath:s+"/events/"+d+"/when",schemaPath:"#/$defs/TimelineEvent/properties/when/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.when.type,parentSchema:ke.properties.when,data:S};e===null?e=[w]:e.push(w),t++}}if(O.what!==void 0){let S=O.what;if(typeof S!="string"){const w={instancePath:s+"/events/"+d+"/what",schemaPath:"#/$defs/TimelineEvent/properties/what/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.what.type,parentSchema:ke.properties.what,data:S};e===null?e=[w]:e.push(w),t++}}if(O.description!==void 0){let S=O.description;if(typeof S!="string"){const w={instancePath:s+"/events/"+d+"/description",schemaPath:"#/$defs/TimelineEvent/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.description.type,parentSchema:ke.properties.description,data:S};e===null?e=[w]:e.push(w),t++}}if(O.status!==void 0){let S=O.status;if(typeof S!="string"){const w={instancePath:s+"/events/"+d+"/status",schemaPath:"#/$defs/TimelineEvent/properties/status/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.status.type,parentSchema:ke.properties.status,data:S};e===null?e=[w]:e.push(w),t++}if(!(S==="done"||S==="current"||S==="planned")){const w={instancePath:s+"/events/"+d+"/status",schemaPath:"#/$defs/TimelineEvent/properties/status/enum",keyword:"enum",params:{allowedValues:ke.properties.status.enum},message:"must be equal to one of the allowed values",schema:ke.properties.status.enum,parentSchema:ke.properties.status,data:S};e===null?e=[w]:e.push(w),t++}}}else{const S={instancePath:s+"/events/"+d,schemaPath:"#/$defs/TimelineEvent/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ke.type,parentSchema:ke,data:O};e===null?e=[S]:e.push(S),t++}}}else{const o={instancePath:s+"/events",schemaPath:"#/oneOf/1/properties/events/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pa.oneOf[1].properties.events.type,parentSchema:pa.oneOf[1].properties.events,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:pa.oneOf[1].type,parentSchema:pa.oneOf[1],data:a};e===null?e=[l]:e.push(l),t++}var y=c===t;if(y&&n)n=!1,p=[p,1];else if(y){n=!0,p=1;var g=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const l={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:pa.oneOf,parentSchema:pa,data:a};e===null?e=[l]:e.push(l),t++}return ms.errors=e,m.props=g,m.items=h,t===0}ms.evaluated={dynamicProps:!0,dynamicItems:!0};var kt=j.presentation.$defs.Caption;function cs(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=cs.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:kt.oneOf[0].type,parentSchema:kt.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var c=i===t;c&&(n=!0,p=0);const h=t;if(Array.isArray(a)){const o=a.length;for(let d=0;d<o;d++)W(a[d],{instancePath:s+"/"+d,parentData:a,parentDataProperty:d,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:kt.oneOf[1].type,parentSchema:kt.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var c=h===t;if(c&&n)n=!1,p=[p,1];else{if(c){n=!0,p=1;var y=!0}const o=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const O={instancePath:s,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:kt.oneOf[2].required,parentSchema:kt.oneOf[2],data:a};e===null?e=[O]:e.push(O),t++}for(const O in a)if(!(O==="text"||O==="position"||O==="align")){const S={instancePath:s,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties",schema:!1,parentSchema:kt.oneOf[2],data:a};e===null?e=[S]:e.push(S),t++}if(a.text!==void 0){let O=a.text;const S=t;let w=!1,q=null;const f=t;if(typeof O!="string"){const k={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:kt.oneOf[2].properties.text.oneOf[0].type,parentSchema:kt.oneOf[2].properties.text.oneOf[0],data:O};e===null?e=[k]:e.push(k),t++}var g=f===t;g&&(w=!0,q=0);const P=t;if(Array.isArray(O)){const k=O.length;for(let D=0;D<k;D++)W(O[D],{instancePath:s+"/text/"+D,parentData:O,parentDataProperty:D,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const k={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:kt.oneOf[2].properties.text.oneOf[1].type,parentSchema:kt.oneOf[2].properties.text.oneOf[1],data:O};e===null?e=[k]:e.push(k),t++}var g=P===t;if(g&&w?(w=!1,q=[q,1]):g&&(w=!0,q=1),w)t=S,e!==null&&(S?e.length=S:e=null);else{const k={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:q},message:"must match exactly one schema in oneOf",schema:kt.oneOf[2].properties.text.oneOf,parentSchema:kt.oneOf[2].properties.text,data:O};e===null?e=[k]:e.push(k),t++}}if(a.position!==void 0){let O=a.position;if(typeof O!="string"){const S={instancePath:s+"/position",schemaPath:"#/oneOf/2/properties/position/type",keyword:"type",params:{type:"string"},message:"must be string",schema:kt.oneOf[2].properties.position.type,parentSchema:kt.oneOf[2].properties.position,data:O};e===null?e=[S]:e.push(S),t++}if(!(O==="below"||O==="above")){const S={instancePath:s+"/position",schemaPath:"#/oneOf/2/properties/position/enum",keyword:"enum",params:{allowedValues:kt.oneOf[2].properties.position.enum},message:"must be equal to one of the allowed values",schema:kt.oneOf[2].properties.position.enum,parentSchema:kt.oneOf[2].properties.position,data:O};e===null?e=[S]:e.push(S),t++}}if(a.align!==void 0){let O=a.align;if(typeof O!="string"){const S={instancePath:s+"/align",schemaPath:"#/oneOf/2/properties/align/type",keyword:"type",params:{type:"string"},message:"must be string",schema:kt.oneOf[2].properties.align.type,parentSchema:kt.oneOf[2].properties.align,data:O};e===null?e=[S]:e.push(S),t++}if(!(O==="left"||O==="center"||O==="right")){const S={instancePath:s+"/align",schemaPath:"#/oneOf/2/properties/align/enum",keyword:"enum",params:{allowedValues:kt.oneOf[2].properties.align.enum},message:"must be equal to one of the allowed values",schema:kt.oneOf[2].properties.align.enum,parentSchema:kt.oneOf[2].properties.align,data:O};e===null?e=[S]:e.push(S),t++}}}else{const O={instancePath:s,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object",schema:kt.oneOf[2].type,parentSchema:kt.oneOf[2],data:a};e===null?e=[O]:e.push(O),t++}var c=o===t;if(c&&n)n=!1,p=[p,2];else if(c){n=!0,p=2;var l=!0}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:kt.oneOf,parentSchema:kt,data:a};e===null?e=[o]:e.push(o),t++}return cs.errors=e,m.props=l,m.items=y,t===0}cs.evaluated={dynamicProps:!0,dynamicItems:!0};var Q=j.presentation.$defs.ContentPayload,la=j.presentation.$defs.ImagePlacement,Ca=j.presentation.$defs.ImageBorder;function Ws(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ws.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.color===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:Ca.required,parentSchema:Ca,data:a};e===null?e=[r]:e.push(r),t++}if(a.width===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"width"},message:"must have required property 'width'",schema:Ca.required,parentSchema:Ca,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="color"||r==="width")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ca,data:a};e===null?e=[n]:e.push(n),t++}if(a.color!==void 0&&(Be(a.color,{instancePath:s+"/color",parentData:a,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length)),a.width!==void 0){let r=a.width;if(typeof r=="number"){if(r>64||isNaN(r)){const n={instancePath:s+"/width",schemaPath:"#/properties/width/maximum",keyword:"maximum",params:{comparison:"<=",limit:64},message:"must be <= 64",schema:64,parentSchema:Ca.properties.width,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ca.properties.width,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ca.properties.width.type,parentSchema:Ca.properties.width,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ca.type,parentSchema:Ca,data:a};e===null?e=[r]:e.push(r),t++}return Ws.errors=e,t===0}Ws.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Vc={validate:K};function K(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=K.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!0;const p=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const z={};e===null?e=[z]:e.push(z),t++}else if(a.type!==void 0&&a.type!=="list"){const z={};e===null?e=[z]:e.push(z),t++}}var i=p===t;if(t=r,e!==null&&(r?e.length=r:e=null),i){const z=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.items===void 0){const B={instancePath:s,schemaPath:"#/allOf/0/then/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'",schema:Q.allOf[0].then.required,parentSchema:Q.allOf[0].then,data:a};e===null?e=[B]:e.push(B),t++}var i=z===t;n=i}if(!n){const z={instancePath:s,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Q.allOf[0].if,parentSchema:Q.allOf[0],data:a};e===null?e=[z]:e.push(z),t++}const h=t;let c=!0;const y=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const z={};e===null?e=[z]:e.push(z),t++}else if(a.type!==void 0&&a.type!=="image"){const z={};e===null?e=[z]:e.push(z),t++}}var g=y===t;if(t=h,e!==null&&(h?e.length=h:e=null),g){const z=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.image===void 0){const B={instancePath:s,schemaPath:"#/allOf/1/then/required",keyword:"required",params:{missingProperty:"image"},message:"must have required property 'image'",schema:Q.allOf[1].then.required,parentSchema:Q.allOf[1].then,data:a};e===null?e=[B]:e.push(B),t++}var g=z===t;c=g}if(!c){const z={instancePath:s,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Q.allOf[1].if,parentSchema:Q.allOf[1],data:a};e===null?e=[z]:e.push(z),t++}const l=t;let o=!0;const d=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const z={};e===null?e=[z]:e.push(z),t++}else if(a.type!==void 0&&a.type!=="chart"){const z={};e===null?e=[z]:e.push(z),t++}}var O=d===t;if(t=l,e!==null&&(l?e.length=l:e=null),O){const z=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.chart===void 0){const B={instancePath:s,schemaPath:"#/allOf/2/then/required",keyword:"required",params:{missingProperty:"chart"},message:"must have required property 'chart'",schema:Q.allOf[2].then.required,parentSchema:Q.allOf[2].then,data:a};e===null?e=[B]:e.push(B),t++}var O=z===t;o=O}if(!o){const z={instancePath:s,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Q.allOf[2].if,parentSchema:Q.allOf[2],data:a};e===null?e=[z]:e.push(z),t++}const S=t;let w=!0;const q=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const z={};e===null?e=[z]:e.push(z),t++}else if(a.type!==void 0&&a.type!=="table"){const z={};e===null?e=[z]:e.push(z),t++}}var f=q===t;if(t=S,e!==null&&(S?e.length=S:e=null),f){const z=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.table===void 0){const B={instancePath:s,schemaPath:"#/allOf/3/then/required",keyword:"required",params:{missingProperty:"table"},message:"must have required property 'table'",schema:Q.allOf[3].then.required,parentSchema:Q.allOf[3].then,data:a};e===null?e=[B]:e.push(B),t++}var f=z===t;w=f}if(!w){const z={instancePath:s,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Q.allOf[3].if,parentSchema:Q.allOf[3],data:a};e===null?e=[z]:e.push(z),t++}const P=t;let k=!0;const D=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const z={};e===null?e=[z]:e.push(z),t++}else if(a.type!==void 0&&a.type!=="video"){const z={};e===null?e=[z]:e.push(z),t++}}var I=D===t;if(t=P,e!==null&&(P?e.length=P:e=null),I){const z=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.video===void 0){const B={instancePath:s,schemaPath:"#/allOf/4/then/required",keyword:"required",params:{missingProperty:"video"},message:"must have required property 'video'",schema:Q.allOf[4].then.required,parentSchema:Q.allOf[4].then,data:a};e===null?e=[B]:e.push(B),t++}var I=z===t;k=I}if(!k){const z={instancePath:s,schemaPath:"#/allOf/4/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Q.allOf[4].if,parentSchema:Q.allOf[4],data:a};e===null?e=[z]:e.push(z),t++}const L=t;let Z=!0;const M=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const z={};e===null?e=[z]:e.push(z),t++}else if(a.type!==void 0&&a.type!=="code"){const z={};e===null?e=[z]:e.push(z),t++}}var J=M===t;if(t=L,e!==null&&(L?e.length=L:e=null),J){const z=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.code===void 0){const B={instancePath:s,schemaPath:"#/allOf/5/then/required",keyword:"required",params:{missingProperty:"code"},message:"must have required property 'code'",schema:Q.allOf[5].then.required,parentSchema:Q.allOf[5].then,data:a};e===null?e=[B]:e.push(B),t++}var J=z===t;Z=J}if(!Z){const z={instancePath:s,schemaPath:"#/allOf/5/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Q.allOf[5].if,parentSchema:Q.allOf[5],data:a};e===null?e=[z]:e.push(z),t++}const C=t;let T=!0;const F=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const z={};e===null?e=[z]:e.push(z),t++}else if(a.type!==void 0&&a.type!=="metric"){const z={};e===null?e=[z]:e.push(z),t++}}var H=F===t;if(t=C,e!==null&&(C?e.length=C:e=null),H){const z=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.metric===void 0){const B={instancePath:s,schemaPath:"#/allOf/6/then/required",keyword:"required",params:{missingProperty:"metric"},message:"must have required property 'metric'",schema:Q.allOf[6].then.required,parentSchema:Q.allOf[6].then,data:a};e===null?e=[B]:e.push(B),t++}var H=z===t;T=H}if(!T){const z={instancePath:s,schemaPath:"#/allOf/6/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Q.allOf[6].if,parentSchema:Q.allOf[6],data:a};e===null?e=[z]:e.push(z),t++}const ae=t;let ee=!0;const G=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const z={};e===null?e=[z]:e.push(z),t++}else if(a.type!==void 0&&a.type!=="quote"){const z={};e===null?e=[z]:e.push(z),t++}}var Ke=G===t;if(t=ae,e!==null&&(ae?e.length=ae:e=null),Ke){const z=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.quote===void 0){const B={instancePath:s,schemaPath:"#/allOf/7/then/required",keyword:"required",params:{missingProperty:"quote"},message:"must have required property 'quote'",schema:Q.allOf[7].then.required,parentSchema:Q.allOf[7].then,data:a};e===null?e=[B]:e.push(B),t++}var Ke=z===t;ee=Ke}if(!ee){const z={instancePath:s,schemaPath:"#/allOf/7/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Q.allOf[7].if,parentSchema:Q.allOf[7],data:a};e===null?e=[z]:e.push(z),t++}const at=t;let R=!0;const od=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const z={};e===null?e=[z]:e.push(z),t++}else if(a.type!==void 0&&a.type!=="timeline"){const z={};e===null?e=[z]:e.push(z),t++}}var it=od===t;if(t=at,e!==null&&(at?e.length=at:e=null),it){const z=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.timeline===void 0){const B={instancePath:s,schemaPath:"#/allOf/8/then/required",keyword:"required",params:{missingProperty:"timeline"},message:"must have required property 'timeline'",schema:Q.allOf[8].then.required,parentSchema:Q.allOf[8].then,data:a};e===null?e=[B]:e.push(B),t++}var it=z===t;R=it}if(!R){const z={instancePath:s,schemaPath:"#/allOf/8/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Q.allOf[8].if,parentSchema:Q.allOf[8],data:a};e===null?e=[z]:e.push(z),t++}const It=t;let ah=!0;const pd=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const z={};e===null?e=[z]:e.push(z),t++}else if(a.type!==void 0&&a.type!=="group"){const z={};e===null?e=[z]:e.push(z),t++}}var kc=pd===t;if(t=It,e!==null&&(It?e.length=It:e=null),kc){const z=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.blocks===void 0){const B={instancePath:s,schemaPath:"#/allOf/9/then/required",keyword:"required",params:{missingProperty:"blocks"},message:"must have required property 'blocks'",schema:Q.allOf[9].then.required,parentSchema:Q.allOf[9].then,data:a};e===null?e=[B]:e.push(B),t++}var kc=z===t;ah=kc}if(!ah){const z={instancePath:s,schemaPath:"#/allOf/9/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Q.allOf[9].if,parentSchema:Q.allOf[9],data:a};e===null?e=[z]:e.push(z),t++}const Ac=t;let sh=!0;const id=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.composition===void 0){const z={};e===null?e=[z]:e.push(z),t++}var Dc=id===t;if(t=Ac,e!==null&&(Ac?e.length=Ac:e=null),Dc){const z=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.blocks===void 0){const B={instancePath:s,schemaPath:"#/allOf/10/then/required",keyword:"required",params:{missingProperty:"blocks"},message:"must have required property 'blocks'",schema:Q.allOf[10].then.required,parentSchema:Q.allOf[10].then,data:a};e===null?e=[B]:e.push(B),t++}var Dc=z===t;sh=Dc}if(!sh){const z={instancePath:s,schemaPath:"#/allOf/10/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Q.allOf[10].if,parentSchema:Q.allOf[10],data:a};e===null?e=[z]:e.push(z),t++}const $c=t;let qc=!0;const md=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.blocks===void 0){const z={};e===null?e=[z]:e.push(z),t++}var xc=md===t;if(t=$c,e!==null&&($c?e.length=$c:e=null),xc){const z=t,V=t,B=t,Ae=t;let We=!1;const zt=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.text===void 0){const Ue={};e===null?e=[Ue]:e.push(Ue),t++}var Mt=zt===t;We=We||Mt;const U=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.items===void 0){const Ue={};e===null?e=[Ue]:e.push(Ue),t++}var Mt=U===t;We=We||Mt;const qe=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.bullets===void 0){const Ue={};e===null?e=[Ue]:e.push(Ue),t++}var Mt=qe===t;We=We||Mt;const be=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.image===void 0){const Ue={};e===null?e=[Ue]:e.push(Ue),t++}var Mt=be===t;We=We||Mt;const Me=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.video===void 0){const Ue={};e===null?e=[Ue]:e.push(Ue),t++}var Mt=Me===t;We=We||Mt;const oa=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.chart===void 0){const Ue={};e===null?e=[Ue]:e.push(Ue),t++}var Mt=oa===t;We=We||Mt;const Wt=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.table===void 0){const Ue={};e===null?e=[Ue]:e.push(Ue),t++}var Mt=Wt===t;We=We||Mt;const Fa=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.code===void 0){const Ue={};e===null?e=[Ue]:e.push(Ue),t++}var Mt=Fa===t;We=We||Mt;const ws=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.metric===void 0){const Ue={};e===null?e=[Ue]:e.push(Ue),t++}var Mt=ws===t;We=We||Mt;const Bt=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.quote===void 0){const Ue={};e===null?e=[Ue]:e.push(Ue),t++}var Mt=Bt===t;We=We||Mt;const fa=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.timeline===void 0){const Ue={};e===null?e=[Ue]:e.push(Ue),t++}var Mt=fa===t;if(We=We||Mt,We)t=Ae,e!==null&&(Ae?e.length=Ae:e=null);else{const Ue={};e===null?e=[Ue]:e.push(Ue),t++}var cd=B===t;if(cd){const Ue={instancePath:s,schemaPath:"#/allOf/11/then/not",keyword:"not",params:{},message:"must NOT be valid",schema:Q.allOf[11].then.not,parentSchema:Q.allOf[11].then,data:a};e===null?e=[Ue]:e.push(Ue),t++}else t=V,e!==null&&(V?e.length=V:e=null);if(a&&typeof a=="object"&&!Array.isArray(a)&&a.type!==void 0){let Ue=a.type;if(Ue!=="group"){const ys={instancePath:s+"/type",schemaPath:"#/allOf/11/then/properties/type/const",keyword:"const",params:{allowedValue:"group"},message:"must be equal to constant",schema:"group",parentSchema:Q.allOf[11].then.properties.type,data:Ue};e===null?e=[ys]:e.push(ys),t++}}var xc=z===t;if(qc=xc,qc){var $n={};$n.type=!0}}if(!qc){const z={instancePath:s,schemaPath:"#/allOf/11/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Q.allOf[11].if,parentSchema:Q.allOf[11],data:a};e===null?e=[z]:e.push(z),t++}$n!==!0&&($n=$n||{},$n.type=!0);const Nc=t;let rh=!0;const hd=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.columns===void 0){const z={};e===null?e=[z]:e.push(z),t++}var Ic=hd===t;if(t=Nc,e!==null&&(Nc?e.length=Nc:e=null),Ic){const z=t,V=t;let B=!1;const Ae=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.items===void 0){const U={instancePath:s,schemaPath:"#/allOf/12/then/anyOf/0/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'",schema:Q.allOf[12].then.anyOf[0].required,parentSchema:Q.allOf[12].then.anyOf[0],data:a};e===null?e=[U]:e.push(U),t++}var zc=Ae===t;B=B||zc;const We=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.bullets===void 0){const U={instancePath:s,schemaPath:"#/allOf/12/then/anyOf/1/required",keyword:"required",params:{missingProperty:"bullets"},message:"must have required property 'bullets'",schema:Q.allOf[12].then.anyOf[1].required,parentSchema:Q.allOf[12].then.anyOf[1],data:a};e===null?e=[U]:e.push(U),t++}var zc=We===t;if(B=B||zc,B)t=V,e!==null&&(V?e.length=V:e=null);else{const U={instancePath:s,schemaPath:"#/allOf/12/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:Q.allOf[12].then.anyOf,parentSchema:Q.allOf[12].then,data:a};e===null?e=[U]:e.push(U),t++}var Ic=z===t;rh=Ic}if(!rh){const z={instancePath:s,schemaPath:"#/allOf/12/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Q.allOf[12].if,parentSchema:Q.allOf[12],data:a};e===null?e=[z]:e.push(z),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){for(const z in a)if(!wa.call(Q.properties,z)){const V={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:z},message:"must NOT have additional properties",schema:!1,parentSchema:Q,data:a};e===null?e=[V]:e.push(V),t++}if(a.id!==void 0){let z=a.id;if(typeof z!="string"){const V={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.id.type,parentSchema:Q.properties.id,data:z};e===null?e=[V]:e.push(V),t++}}if(a.extensions!==void 0){let z=a.extensions;if(!(z&&typeof z=="object"&&!Array.isArray(z))){const V={instancePath:s+"/extensions",schemaPath:"#/properties/extensions/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Q.properties.extensions.type,parentSchema:Q.properties.extensions,data:z};e===null?e=[V]:e.push(V),t++}}if(a.region!==void 0){let z=a.region;if(typeof z=="string"){if(!gt.test(z)){const V={instancePath:s+"/region",schemaPath:"#/properties/region/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Q.properties.region,data:z};e===null?e=[V]:e.push(V),t++}}else{const V={instancePath:s+"/region",schemaPath:"#/properties/region/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.region.type,parentSchema:Q.properties.region,data:z};e===null?e=[V]:e.push(V),t++}}if(a.type!==void 0){let z=a.type;if(typeof z!="string"){const V={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.type.type,parentSchema:Q.properties.type,data:z};e===null?e=[V]:e.push(V),t++}if(!(z==="text"||z==="list"||z==="image"||z==="chart"||z==="table"||z==="video"||z==="code"||z==="metric"||z==="quote"||z==="timeline"||z==="group")){const V={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Q.properties.type.enum},message:"must be equal to one of the allowed values",schema:Q.properties.type.enum,parentSchema:Q.properties.type,data:z};e===null?e=[V]:e.push(V),t++}}if(a.text!==void 0){let z=a.text;const V=t;let B=!1,Ae=null;const We=t;if(typeof z!="string"){const U={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.text.oneOf[0].type,parentSchema:Q.properties.text.oneOf[0],data:z};e===null?e=[U]:e.push(U),t++}var Ln=We===t;Ln&&(B=!0,Ae=0);const zt=t;if(Array.isArray(z)){const U=z.length;for(let qe=0;qe<U;qe++)W(z[qe],{instancePath:s+"/text/"+qe,parentData:z,parentDataProperty:qe,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const U={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Q.properties.text.oneOf[1].type,parentSchema:Q.properties.text.oneOf[1],data:z};e===null?e=[U]:e.push(U),t++}var Ln=zt===t;if(Ln&&B?(B=!1,Ae=[Ae,1]):Ln&&(B=!0,Ae=1),B)t=V,e!==null&&(V?e.length=V:e=null);else{const U={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:Ae},message:"must match exactly one schema in oneOf",schema:Q.properties.text.oneOf,parentSchema:Q.properties.text,data:z};e===null?e=[U]:e.push(U),t++}}if(a.items!==void 0){let z=a.items;if(Array.isArray(z)){const V=z.length;for(let B=0;B<V;B++)es(z[B],{instancePath:s+"/items/"+B,parentData:z,parentDataProperty:B,rootData:v,dynamicAnchors:b})||(e=e===null?es.errors:e.concat(es.errors),t=e.length)}else{const V={instancePath:s+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Q.properties.items.type,parentSchema:Q.properties.items,data:z};e===null?e=[V]:e.push(V),t++}}if(a.bullets!==void 0){let z=a.bullets;if(Array.isArray(z)){const V=z.length;for(let B=0;B<V;B++)ts(z[B],{instancePath:s+"/bullets/"+B,parentData:z,parentDataProperty:B,rootData:v,dynamicAnchors:b})||(e=e===null?ts.errors:e.concat(ts.errors),t=e.length)}else{const V={instancePath:s+"/bullets",schemaPath:"#/properties/bullets/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Q.properties.bullets.type,parentSchema:Q.properties.bullets,data:z};e===null?e=[V]:e.push(V),t++}}if(a.numbering!==void 0&&(ss(a.numbering,{instancePath:s+"/numbering",parentData:a,parentDataProperty:"numbering",rootData:v,dynamicAnchors:b})||(e=e===null?ss.errors:e.concat(ss.errors),t=e.length)),a.columns!==void 0){let z=a.columns;const V=t;let B=!1,Ae=null;const We=t;if(z!=="auto"){const U={instancePath:s+"/columns",schemaPath:"#/properties/columns/oneOf/0/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:Q.properties.columns.oneOf[0],data:z};e===null?e=[U]:e.push(U),t++}var Rn=We===t;Rn&&(B=!0,Ae=0);const zt=t;if(!(typeof z=="number"&&!(z%1)&&!isNaN(z))){const U={instancePath:s+"/columns",schemaPath:"#/properties/columns/oneOf/1/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Q.properties.columns.oneOf[1].type,parentSchema:Q.properties.columns.oneOf[1],data:z};e===null?e=[U]:e.push(U),t++}if(typeof z=="number"){if(z>3||isNaN(z)){const U={instancePath:s+"/columns",schemaPath:"#/properties/columns/oneOf/1/maximum",keyword:"maximum",params:{comparison:"<=",limit:3},message:"must be <= 3",schema:3,parentSchema:Q.properties.columns.oneOf[1],data:z};e===null?e=[U]:e.push(U),t++}if(z<1||isNaN(z)){const U={instancePath:s+"/columns",schemaPath:"#/properties/columns/oneOf/1/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Q.properties.columns.oneOf[1],data:z};e===null?e=[U]:e.push(U),t++}}var Rn=zt===t;if(Rn&&B?(B=!1,Ae=[Ae,1]):Rn&&(B=!0,Ae=1),B)t=V,e!==null&&(V?e.length=V:e=null);else{const U={instancePath:s+"/columns",schemaPath:"#/properties/columns/oneOf",keyword:"oneOf",params:{passingSchemas:Ae},message:"must match exactly one schema in oneOf",schema:Q.properties.columns.oneOf,parentSchema:Q.properties.columns,data:z};e===null?e=[U]:e.push(U),t++}}if(a.image!==void 0){let z=a.image;const V=t;let B=!1,Ae=null;const We=t;if(typeof z!="string"){const U={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:z};e===null?e=[U]:e.push(U),t++}var Zn=We===t;Zn&&(B=!0,Ae=0);const zt=t;if(z&&typeof z=="object"&&!Array.isArray(z)){if(z.src===void 0){const U={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:z};e===null?e=[U]:e.push(U),t++}for(const U in z)if(!(U==="src"||U==="alt"||U==="title"||U==="description"||U==="mediaType")){const qe={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:z};e===null?e=[qe]:e.push(qe),t++}if(z.src!==void 0){let U=z.src;if(typeof U!="string"){const qe={instancePath:s+"/image/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:U};e===null?e=[qe]:e.push(qe),t++}}if(z.alt!==void 0){let U=z.alt;if(typeof U!="string"){const qe={instancePath:s+"/image/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:U};e===null?e=[qe]:e.push(qe),t++}}if(z.title!==void 0){let U=z.title;if(typeof U!="string"){const qe={instancePath:s+"/image/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:U};e===null?e=[qe]:e.push(qe),t++}}if(z.description!==void 0){let U=z.description;if(typeof U!="string"){const qe={instancePath:s+"/image/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:U};e===null?e=[qe]:e.push(qe),t++}}if(z.mediaType!==void 0){let U=z.mediaType;if(typeof U!="string"){const qe={instancePath:s+"/image/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:U};e===null?e=[qe]:e.push(qe),t++}}}else{const U={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:z};e===null?e=[U]:e.push(U),t++}var Zn=zt===t;if(Zn&&B?(B=!1,Ae=[Ae,1]):Zn&&(B=!0,Ae=1),B)t=V,e!==null&&(V?e.length=V:e=null);else{const U={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:Ae},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:z};e===null?e=[U]:e.push(U),t++}}if(a.fit!==void 0){let z=a.fit;if(typeof z!="string"){const V={instancePath:s+"/fit",schemaPath:"#/properties/fit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.fit.type,parentSchema:Q.properties.fit,data:z};e===null?e=[V]:e.push(V),t++}if(!(z==="cover"||z==="contain"||z==="stretch")){const V={instancePath:s+"/fit",schemaPath:"#/properties/fit/enum",keyword:"enum",params:{allowedValues:Q.properties.fit.enum},message:"must be equal to one of the allowed values",schema:Q.properties.fit.enum,parentSchema:Q.properties.fit,data:z};e===null?e=[V]:e.push(V),t++}}if(a.focus!==void 0){let z=a.focus;if(z&&typeof z=="object"&&!Array.isArray(z)){if(z.x===void 0){const V={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/required",keyword:"required",params:{missingProperty:"x"},message:"must have required property 'x'",schema:Ge.required,parentSchema:Ge,data:z};e===null?e=[V]:e.push(V),t++}if(z.y===void 0){const V={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/required",keyword:"required",params:{missingProperty:"y"},message:"must have required property 'y'",schema:Ge.required,parentSchema:Ge,data:z};e===null?e=[V]:e.push(V),t++}for(const V in z)if(!(V==="x"||V==="y")){const B={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:V},message:"must NOT have additional properties",schema:!1,parentSchema:Ge,data:z};e===null?e=[B]:e.push(B),t++}if(z.x!==void 0){let V=z.x;if(typeof V=="number"){if(V>1||isNaN(V)){const B={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Ge.properties.x,data:V};e===null?e=[B]:e.push(B),t++}if(V<0||isNaN(V)){const B={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ge.properties.x,data:V};e===null?e=[B]:e.push(B),t++}}else{const B={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ge.properties.x.type,parentSchema:Ge.properties.x,data:V};e===null?e=[B]:e.push(B),t++}}if(z.y!==void 0){let V=z.y;if(typeof V=="number"){if(V>1||isNaN(V)){const B={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Ge.properties.y,data:V};e===null?e=[B]:e.push(B),t++}if(V<0||isNaN(V)){const B={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ge.properties.y,data:V};e===null?e=[B]:e.push(B),t++}}else{const B={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ge.properties.y.type,parentSchema:Ge.properties.y,data:V};e===null?e=[B]:e.push(B),t++}}}else{const V={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ge.type,parentSchema:Ge,data:z};e===null?e=[V]:e.push(V),t++}}if(a.aspectRatio!==void 0){let z=a.aspectRatio;if(typeof z=="number"){if(z>10||isNaN(z)){const V={instancePath:s+"/aspectRatio",schemaPath:"#/properties/aspectRatio/maximum",keyword:"maximum",params:{comparison:"<=",limit:10},message:"must be <= 10",schema:10,parentSchema:Q.properties.aspectRatio,data:z};e===null?e=[V]:e.push(V),t++}if(z<=0||isNaN(z)){const V={instancePath:s+"/aspectRatio",schemaPath:"#/properties/aspectRatio/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:Q.properties.aspectRatio,data:z};e===null?e=[V]:e.push(V),t++}}else{const V={instancePath:s+"/aspectRatio",schemaPath:"#/properties/aspectRatio/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Q.properties.aspectRatio.type,parentSchema:Q.properties.aspectRatio,data:z};e===null?e=[V]:e.push(V),t++}}if(a.shape!==void 0){let z=a.shape;if(typeof z!="string"){const V={instancePath:s+"/shape",schemaPath:"#/properties/shape/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.shape.type,parentSchema:Q.properties.shape,data:z};e===null?e=[V]:e.push(V),t++}if(!(z==="rectangle"||z==="rounded"||z==="circle"||z==="hexagon")){const V={instancePath:s+"/shape",schemaPath:"#/properties/shape/enum",keyword:"enum",params:{allowedValues:Q.properties.shape.enum},message:"must be equal to one of the allowed values",schema:Q.properties.shape.enum,parentSchema:Q.properties.shape,data:z};e===null?e=[V]:e.push(V),t++}}if(a.cornerRadius!==void 0){let z=a.cornerRadius;if(typeof z=="number"){if(z>.5||isNaN(z)){const V={instancePath:s+"/cornerRadius",schemaPath:"#/properties/cornerRadius/maximum",keyword:"maximum",params:{comparison:"<=",limit:.5},message:"must be <= 0.5",schema:.5,parentSchema:Q.properties.cornerRadius,data:z};e===null?e=[V]:e.push(V),t++}if(z<0||isNaN(z)){const V={instancePath:s+"/cornerRadius",schemaPath:"#/properties/cornerRadius/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Q.properties.cornerRadius,data:z};e===null?e=[V]:e.push(V),t++}}else{const V={instancePath:s+"/cornerRadius",schemaPath:"#/properties/cornerRadius/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Q.properties.cornerRadius.type,parentSchema:Q.properties.cornerRadius,data:z};e===null?e=[V]:e.push(V),t++}}if(a.border!==void 0&&(Ws(a.border,{instancePath:s+"/border",parentData:a,parentDataProperty:"border",rootData:v,dynamicAnchors:b})||(e=e===null?Ws.errors:e.concat(Ws.errors),t=e.length)),a.opacity!==void 0){let z=a.opacity;if(typeof z=="number"){if(z>1||isNaN(z)){const V={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Q.properties.opacity,data:z};e===null?e=[V]:e.push(V),t++}if(z<0||isNaN(z)){const V={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Q.properties.opacity,data:z};e===null?e=[V]:e.push(V),t++}}else{const V={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Q.properties.opacity.type,parentSchema:Q.properties.opacity,data:z};e===null?e=[V]:e.push(V),t++}}if(a.recolor!==void 0&&($a(a.recolor,{instancePath:s+"/recolor",parentData:a,parentDataProperty:"recolor",rootData:v,dynamicAnchors:b})||(e=e===null?$a.errors:e.concat($a.errors),t=e.length)),a.overlay!==void 0&&(qa(a.overlay,{instancePath:s+"/overlay",parentData:a,parentDataProperty:"overlay",rootData:v,dynamicAnchors:b})||(e=e===null?qa.errors:e.concat(qa.errors),t=e.length)),a.placement!==void 0){let z=a.placement;if(z&&typeof z=="object"&&!Array.isArray(z)){if(z.edge===void 0){const V={instancePath:s+"/placement",schemaPath:"#/$defs/ImagePlacement/required",keyword:"required",params:{missingProperty:"edge"},message:"must have required property 'edge'",schema:la.required,parentSchema:la,data:z};e===null?e=[V]:e.push(V),t++}for(const V in z)if(!(V==="edge"||V==="size"||V==="inset")){const B={instancePath:s+"/placement",schemaPath:"#/$defs/ImagePlacement/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:V},message:"must NOT have additional properties",schema:!1,parentSchema:la,data:z};e===null?e=[B]:e.push(B),t++}if(z.edge!==void 0){let V=z.edge;if(typeof V!="string"){const B={instancePath:s+"/placement/edge",schemaPath:"#/$defs/ImagePlacement/properties/edge/type",keyword:"type",params:{type:"string"},message:"must be string",schema:la.properties.edge.type,parentSchema:la.properties.edge,data:V};e===null?e=[B]:e.push(B),t++}if(!(V==="left"||V==="right"||V==="top"||V==="bottom")){const B={instancePath:s+"/placement/edge",schemaPath:"#/$defs/ImagePlacement/properties/edge/enum",keyword:"enum",params:{allowedValues:la.properties.edge.enum},message:"must be equal to one of the allowed values",schema:la.properties.edge.enum,parentSchema:la.properties.edge,data:V};e===null?e=[B]:e.push(B),t++}}if(z.size!==void 0){let V=z.size;if(typeof V=="number"){if(V>.9||isNaN(V)){const B={instancePath:s+"/placement/size",schemaPath:"#/$defs/ImagePlacement/properties/size/maximum",keyword:"maximum",params:{comparison:"<=",limit:.9},message:"must be <= 0.9",schema:.9,parentSchema:la.properties.size,data:V};e===null?e=[B]:e.push(B),t++}if(V<.1||isNaN(V)){const B={instancePath:s+"/placement/size",schemaPath:"#/$defs/ImagePlacement/properties/size/minimum",keyword:"minimum",params:{comparison:">=",limit:.1},message:"must be >= 0.1",schema:.1,parentSchema:la.properties.size,data:V};e===null?e=[B]:e.push(B),t++}}else{const B={instancePath:s+"/placement/size",schemaPath:"#/$defs/ImagePlacement/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number",schema:la.properties.size.type,parentSchema:la.properties.size,data:V};e===null?e=[B]:e.push(B),t++}}if(z.inset!==void 0){let V=z.inset;if(typeof V!="boolean"){const B={instancePath:s+"/placement/inset",schemaPath:"#/$defs/ImagePlacement/properties/inset/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:la.properties.inset.type,parentSchema:la.properties.inset,data:V};e===null?e=[B]:e.push(B),t++}}}else{const V={instancePath:s+"/placement",schemaPath:"#/$defs/ImagePlacement/type",keyword:"type",params:{type:"object"},message:"must be object",schema:la.type,parentSchema:la,data:z};e===null?e=[V]:e.push(V),t++}}if(a.video!==void 0){let z=a.video;const V=t;let B=!1,Ae=null;const We=t;if(typeof z!="string"){const U={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:z};e===null?e=[U]:e.push(U),t++}var Mn=We===t;Mn&&(B=!0,Ae=0);const zt=t;if(z&&typeof z=="object"&&!Array.isArray(z)){if(z.src===void 0){const U={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:z};e===null?e=[U]:e.push(U),t++}for(const U in z)if(!(U==="src"||U==="alt"||U==="title"||U==="description"||U==="mediaType")){const qe={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:z};e===null?e=[qe]:e.push(qe),t++}if(z.src!==void 0){let U=z.src;if(typeof U!="string"){const qe={instancePath:s+"/video/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:U};e===null?e=[qe]:e.push(qe),t++}}if(z.alt!==void 0){let U=z.alt;if(typeof U!="string"){const qe={instancePath:s+"/video/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:U};e===null?e=[qe]:e.push(qe),t++}}if(z.title!==void 0){let U=z.title;if(typeof U!="string"){const qe={instancePath:s+"/video/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:U};e===null?e=[qe]:e.push(qe),t++}}if(z.description!==void 0){let U=z.description;if(typeof U!="string"){const qe={instancePath:s+"/video/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:U};e===null?e=[qe]:e.push(qe),t++}}if(z.mediaType!==void 0){let U=z.mediaType;if(typeof U!="string"){const qe={instancePath:s+"/video/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:U};e===null?e=[qe]:e.push(qe),t++}}}else{const U={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:z};e===null?e=[U]:e.push(U),t++}var Mn=zt===t;if(Mn&&B?(B=!1,Ae=[Ae,1]):Mn&&(B=!0,Ae=1),B)t=V,e!==null&&(V?e.length=V:e=null);else{const U={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:Ae},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:z};e===null?e=[U]:e.push(U),t++}}if(a.chart!==void 0&&(ns(a.chart,{instancePath:s+"/chart",parentData:a,parentDataProperty:"chart",rootData:v,dynamicAnchors:b})||(e=e===null?ns.errors:e.concat(ns.errors),t=e.length)),a.table!==void 0&&(ps(a.table,{instancePath:s+"/table",parentData:a,parentDataProperty:"table",rootData:v,dynamicAnchors:b})||(e=e===null?ps.errors:e.concat(ps.errors),t=e.length)),a.code!==void 0){let z=a.code;const V=t;let B=!1,Ae=null;const We=t;if(typeof z!="string"){const U={instancePath:s+"/code",schemaPath:"#/properties/code/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.code.oneOf[0].type,parentSchema:Q.properties.code.oneOf[0],data:z};e===null?e=[U]:e.push(U),t++}var Hn=We===t;Hn&&(B=!0,Ae=0);const zt=t;if(z&&typeof z=="object"&&!Array.isArray(z)){if(z.source===void 0){const U={instancePath:s+"/code",schemaPath:"#/$defs/Code/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:te.required,parentSchema:te,data:z};e===null?e=[U]:e.push(U),t++}for(const U in z)if(!(U==="source"||U==="language"||U==="filename"||U==="highlight")){const qe={instancePath:s+"/code",schemaPath:"#/$defs/Code/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties",schema:!1,parentSchema:te,data:z};e===null?e=[qe]:e.push(qe),t++}if(z.source!==void 0){let U=z.source;if(typeof U!="string"){const qe={instancePath:s+"/code/source",schemaPath:"#/$defs/Code/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:te.properties.source.type,parentSchema:te.properties.source,data:U};e===null?e=[qe]:e.push(qe),t++}}if(z.language!==void 0){let U=z.language;if(typeof U!="string"){const qe={instancePath:s+"/code/language",schemaPath:"#/$defs/Code/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string",schema:te.properties.language.type,parentSchema:te.properties.language,data:U};e===null?e=[qe]:e.push(qe),t++}}if(z.filename!==void 0){let U=z.filename;if(typeof U!="string"){const qe={instancePath:s+"/code/filename",schemaPath:"#/$defs/Code/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string",schema:te.properties.filename.type,parentSchema:te.properties.filename,data:U};e===null?e=[qe]:e.push(qe),t++}}if(z.highlight!==void 0){let U=z.highlight;if(Array.isArray(U)){if(U.length<1){const be={instancePath:s+"/code/highlight",schemaPath:"#/$defs/Code/properties/highlight/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:te.properties.highlight,data:U};e===null?e=[be]:e.push(be),t++}const qe=U.length;for(let be=0;be<qe;be++){let Me=U[be];const oa=t;let Wt=!1,Fa=null;const ws=t;if(!(typeof Me=="number"&&!(Me%1)&&!isNaN(Me))){const fa={instancePath:s+"/code/highlight/"+be,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/0/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:te.properties.highlight.items.oneOf[0].type,parentSchema:te.properties.highlight.items.oneOf[0],data:Me};e===null?e=[fa]:e.push(fa),t++}if(typeof Me=="number"&&(Me<1||isNaN(Me))){const fa={instancePath:s+"/code/highlight/"+be,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/0/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:te.properties.highlight.items.oneOf[0],data:Me};e===null?e=[fa]:e.push(fa),t++}var Bn=ws===t;Bn&&(Wt=!0,Fa=0);const Bt=t;if(Array.isArray(Me)){if(Me.length>2){const Ta={instancePath:s+"/code/highlight/"+be,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items",schema:2,parentSchema:te.properties.highlight.items.oneOf[1],data:Me};e===null?e=[Ta]:e.push(Ta),t++}if(Me.length<2){const Ta={instancePath:s+"/code/highlight/"+be,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items",schema:2,parentSchema:te.properties.highlight.items.oneOf[1],data:Me};e===null?e=[Ta]:e.push(Ta),t++}const fa=Me.length;for(let Ta=0;Ta<fa;Ta++){let Ue=Me[Ta];if(!(typeof Ue=="number"&&!(Ue%1)&&!isNaN(Ue))){const ys={instancePath:s+"/code/highlight/"+be+"/"+Ta,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/items/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:te.properties.highlight.items.oneOf[1].items.type,parentSchema:te.properties.highlight.items.oneOf[1].items,data:Ue};e===null?e=[ys]:e.push(ys),t++}if(typeof Ue=="number"&&(Ue<1||isNaN(Ue))){const ys={instancePath:s+"/code/highlight/"+be+"/"+Ta,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/items/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:te.properties.highlight.items.oneOf[1].items,data:Ue};e===null?e=[ys]:e.push(ys),t++}}}else{const fa={instancePath:s+"/code/highlight/"+be,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:te.properties.highlight.items.oneOf[1].type,parentSchema:te.properties.highlight.items.oneOf[1],data:Me};e===null?e=[fa]:e.push(fa),t++}var Bn=Bt===t;if(Bn&&Wt?(Wt=!1,Fa=[Fa,1]):Bn&&(Wt=!0,Fa=1),Wt)t=oa,e!==null&&(oa?e.length=oa:e=null);else{const fa={instancePath:s+"/code/highlight/"+be,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf",keyword:"oneOf",params:{passingSchemas:Fa},message:"must match exactly one schema in oneOf",schema:te.properties.highlight.items.oneOf,parentSchema:te.properties.highlight.items,data:Me};e===null?e=[fa]:e.push(fa),t++}}}else{const qe={instancePath:s+"/code/highlight",schemaPath:"#/$defs/Code/properties/highlight/type",keyword:"type",params:{type:"array"},message:"must be array",schema:te.properties.highlight.type,parentSchema:te.properties.highlight,data:U};e===null?e=[qe]:e.push(qe),t++}}}else{const U={instancePath:s+"/code",schemaPath:"#/$defs/Code/type",keyword:"type",params:{type:"object"},message:"must be object",schema:te.type,parentSchema:te,data:z};e===null?e=[U]:e.push(U),t++}var Hn=zt===t;if(Hn&&B?(B=!1,Ae=[Ae,1]):Hn&&(B=!0,Ae=1),B)t=V,e!==null&&(V?e.length=V:e=null);else{const U={instancePath:s+"/code",schemaPath:"#/properties/code/oneOf",keyword:"oneOf",params:{passingSchemas:Ae},message:"must match exactly one schema in oneOf",schema:Q.properties.code.oneOf,parentSchema:Q.properties.code,data:z};e===null?e=[U]:e.push(U),t++}}if(a.metric!==void 0){let z=a.metric;const V=t;let B=!1,Ae=null;const We=t;if(typeof z!="string"){const U={instancePath:s+"/metric",schemaPath:"#/properties/metric/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.metric.oneOf[0].type,parentSchema:Q.properties.metric.oneOf[0],data:z};e===null?e=[U]:e.push(U),t++}var Os=We===t;Os&&(B=!0,Ae=0);const zt=t;if(typeof z!="number"){const U={instancePath:s+"/metric",schemaPath:"#/properties/metric/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Q.properties.metric.oneOf[1].type,parentSchema:Q.properties.metric.oneOf[1],data:z};e===null?e=[U]:e.push(U),t++}var Os=zt===t;if(Os&&B)B=!1,Ae=[Ae,1];else{Os&&(B=!0,Ae=1);const U=t;if(z&&typeof z=="object"&&!Array.isArray(z)){if(z.value===void 0){const be={instancePath:s+"/metric",schemaPath:"#/$defs/Metric/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:X.required,parentSchema:X,data:z};e===null?e=[be]:e.push(be),t++}for(const be in z)if(!(be==="value"||be==="label"||be==="description"||be==="unit"||be==="delta"||be==="trend"||be==="sentiment")){const Me={instancePath:s+"/metric",schemaPath:"#/$defs/Metric/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:be},message:"must NOT have additional properties",schema:!1,parentSchema:X,data:z};e===null?e=[Me]:e.push(Me),t++}if(z.value!==void 0){let be=z.value;const Me=t;let oa=!1,Wt=null;const Fa=t;if(typeof be!="string"){const Bt={instancePath:s+"/metric/value",schemaPath:"#/$defs/Metric/properties/value/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.value.oneOf[0].type,parentSchema:X.properties.value.oneOf[0],data:be};e===null?e=[Bt]:e.push(Bt),t++}var _n=Fa===t;_n&&(oa=!0,Wt=0);const ws=t;if(typeof be!="number"){const Bt={instancePath:s+"/metric/value",schemaPath:"#/$defs/Metric/properties/value/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:X.properties.value.oneOf[1].type,parentSchema:X.properties.value.oneOf[1],data:be};e===null?e=[Bt]:e.push(Bt),t++}var _n=ws===t;if(_n&&oa?(oa=!1,Wt=[Wt,1]):_n&&(oa=!0,Wt=1),oa)t=Me,e!==null&&(Me?e.length=Me:e=null);else{const Bt={instancePath:s+"/metric/value",schemaPath:"#/$defs/Metric/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas:Wt},message:"must match exactly one schema in oneOf",schema:X.properties.value.oneOf,parentSchema:X.properties.value,data:be};e===null?e=[Bt]:e.push(Bt),t++}}if(z.label!==void 0){let be=z.label;if(typeof be!="string"){const Me={instancePath:s+"/metric/label",schemaPath:"#/$defs/Metric/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.label.type,parentSchema:X.properties.label,data:be};e===null?e=[Me]:e.push(Me),t++}}if(z.description!==void 0){let be=z.description;if(typeof be!="string"){const Me={instancePath:s+"/metric/description",schemaPath:"#/$defs/Metric/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.description.type,parentSchema:X.properties.description,data:be};e===null?e=[Me]:e.push(Me),t++}}if(z.unit!==void 0){let be=z.unit;if(typeof be!="string"){const Me={instancePath:s+"/metric/unit",schemaPath:"#/$defs/Metric/properties/unit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.unit.type,parentSchema:X.properties.unit,data:be};e===null?e=[Me]:e.push(Me),t++}}if(z.delta!==void 0){let be=z.delta;const Me=t;let oa=!1,Wt=null;const Fa=t;if(typeof be!="string"){const Bt={instancePath:s+"/metric/delta",schemaPath:"#/$defs/Metric/properties/delta/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.delta.oneOf[0].type,parentSchema:X.properties.delta.oneOf[0],data:be};e===null?e=[Bt]:e.push(Bt),t++}var En=Fa===t;En&&(oa=!0,Wt=0);const ws=t;if(typeof be!="number"){const Bt={instancePath:s+"/metric/delta",schemaPath:"#/$defs/Metric/properties/delta/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:X.properties.delta.oneOf[1].type,parentSchema:X.properties.delta.oneOf[1],data:be};e===null?e=[Bt]:e.push(Bt),t++}var En=ws===t;if(En&&oa?(oa=!1,Wt=[Wt,1]):En&&(oa=!0,Wt=1),oa)t=Me,e!==null&&(Me?e.length=Me:e=null);else{const Bt={instancePath:s+"/metric/delta",schemaPath:"#/$defs/Metric/properties/delta/oneOf",keyword:"oneOf",params:{passingSchemas:Wt},message:"must match exactly one schema in oneOf",schema:X.properties.delta.oneOf,parentSchema:X.properties.delta,data:be};e===null?e=[Bt]:e.push(Bt),t++}}if(z.trend!==void 0){let be=z.trend;if(typeof be!="string"){const Me={instancePath:s+"/metric/trend",schemaPath:"#/$defs/Metric/properties/trend/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.trend.type,parentSchema:X.properties.trend,data:be};e===null?e=[Me]:e.push(Me),t++}if(!(be==="up"||be==="down"||be==="flat")){const Me={instancePath:s+"/metric/trend",schemaPath:"#/$defs/Metric/properties/trend/enum",keyword:"enum",params:{allowedValues:X.properties.trend.enum},message:"must be equal to one of the allowed values",schema:X.properties.trend.enum,parentSchema:X.properties.trend,data:be};e===null?e=[Me]:e.push(Me),t++}}if(z.sentiment!==void 0){let be=z.sentiment;if(typeof be!="string"){const Me={instancePath:s+"/metric/sentiment",schemaPath:"#/$defs/Metric/properties/sentiment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.sentiment.type,parentSchema:X.properties.sentiment,data:be};e===null?e=[Me]:e.push(Me),t++}if(!(be==="positive"||be==="negative"||be==="neutral")){const Me={instancePath:s+"/metric/sentiment",schemaPath:"#/$defs/Metric/properties/sentiment/enum",keyword:"enum",params:{allowedValues:X.properties.sentiment.enum},message:"must be equal to one of the allowed values",schema:X.properties.sentiment.enum,parentSchema:X.properties.sentiment,data:be};e===null?e=[Me]:e.push(Me),t++}}}else{const be={instancePath:s+"/metric",schemaPath:"#/$defs/Metric/type",keyword:"type",params:{type:"object"},message:"must be object",schema:X.type,parentSchema:X,data:z};e===null?e=[be]:e.push(be),t++}var Os=U===t;Os&&B?(B=!1,Ae=[Ae,2]):Os&&(B=!0,Ae=2)}if(B)t=V,e!==null&&(V?e.length=V:e=null);else{const U={instancePath:s+"/metric",schemaPath:"#/properties/metric/oneOf",keyword:"oneOf",params:{passingSchemas:Ae},message:"must match exactly one schema in oneOf",schema:Q.properties.metric.oneOf,parentSchema:Q.properties.metric,data:z};e===null?e=[U]:e.push(U),t++}}if(a.quote!==void 0){let z=a.quote;const V=t;let B=!1,Ae=null;const We=t;if(typeof z!="string"){const U={instancePath:s+"/quote",schemaPath:"#/properties/quote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.quote.oneOf[0].type,parentSchema:Q.properties.quote.oneOf[0],data:z};e===null?e=[U]:e.push(U),t++}var Un=We===t;Un&&(B=!0,Ae=0);const zt=t;is(z,{instancePath:s+"/quote",parentData:a,parentDataProperty:"quote",rootData:v,dynamicAnchors:b})||(e=e===null?is.errors:e.concat(is.errors),t=e.length);var Un=zt===t;if(Un&&B?(B=!1,Ae=[Ae,1]):Un&&(B=!0,Ae=1),B)t=V,e!==null&&(V?e.length=V:e=null);else{const U={instancePath:s+"/quote",schemaPath:"#/properties/quote/oneOf",keyword:"oneOf",params:{passingSchemas:Ae},message:"must match exactly one schema in oneOf",schema:Q.properties.quote.oneOf,parentSchema:Q.properties.quote,data:z};e===null?e=[U]:e.push(U),t++}}if(a.timeline!==void 0&&(ms(a.timeline,{instancePath:s+"/timeline",parentData:a,parentDataProperty:"timeline",rootData:v,dynamicAnchors:b})||(e=e===null?ms.errors:e.concat(ms.errors),t=e.length)),a.caption!==void 0&&(cs(a.caption,{instancePath:s+"/caption",parentData:a,parentDataProperty:"caption",rootData:v,dynamicAnchors:b})||(e=e===null?cs.errors:e.concat(cs.errors),t=e.length)),a.blocks!==void 0){let z=a.blocks;if(Array.isArray(z)){if(z.length<1){const B={instancePath:s+"/blocks",schemaPath:"#/properties/blocks/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Q.properties.blocks,data:z};e===null?e=[B]:e.push(B),t++}const V=z.length;for(let B=0;B<V;B++)Vc.validate(z[B],{instancePath:s+"/blocks/"+B,parentData:z,parentDataProperty:B,rootData:v,dynamicAnchors:b})||(e=e===null?Vc.validate.errors:e.concat(Vc.validate.errors),t=e.length)}else{const V={instancePath:s+"/blocks",schemaPath:"#/properties/blocks/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Q.properties.blocks.type,parentSchema:Q.properties.blocks,data:z};e===null?e=[V]:e.push(V),t++}}if(a.composition!==void 0){let z=a.composition;if(z&&typeof z=="object"&&!Array.isArray(z)){for(const V in z)if(!(V==="mode"||V==="columns"||V==="gap"||V==="padding"||V==="weights"||V==="minFontSize"||V==="overflow")){const B={instancePath:s+"/composition",schemaPath:"#/$defs/Composition/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:V},message:"must NOT have additional properties",schema:!1,parentSchema:ye,data:z};e===null?e=[B]:e.push(B),t++}if(z.mode!==void 0){let V=z.mode;if(typeof V!="string"){const B={instancePath:s+"/composition/mode",schemaPath:"#/$defs/Composition/properties/mode/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ye.properties.mode.type,parentSchema:ye.properties.mode,data:V};e===null?e=[B]:e.push(B),t++}if(!(V==="auto"||V==="grid"||V==="row"||V==="column")){const B={instancePath:s+"/composition/mode",schemaPath:"#/$defs/Composition/properties/mode/enum",keyword:"enum",params:{allowedValues:ye.properties.mode.enum},message:"must be equal to one of the allowed values",schema:ye.properties.mode.enum,parentSchema:ye.properties.mode,data:V};e===null?e=[B]:e.push(B),t++}}if(z.columns!==void 0){let V=z.columns;if(!(typeof V=="number"&&!(V%1)&&!isNaN(V))){const B={instancePath:s+"/composition/columns",schemaPath:"#/$defs/Composition/properties/columns/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:ye.properties.columns.type,parentSchema:ye.properties.columns,data:V};e===null?e=[B]:e.push(B),t++}if(typeof V=="number"){if(V>12||isNaN(V)){const B={instancePath:s+"/composition/columns",schemaPath:"#/$defs/Composition/properties/columns/maximum",keyword:"maximum",params:{comparison:"<=",limit:12},message:"must be <= 12",schema:12,parentSchema:ye.properties.columns,data:V};e===null?e=[B]:e.push(B),t++}if(V<1||isNaN(V)){const B={instancePath:s+"/composition/columns",schemaPath:"#/$defs/Composition/properties/columns/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:ye.properties.columns,data:V};e===null?e=[B]:e.push(B),t++}}}if(z.gap!==void 0){let V=z.gap;if(typeof V=="number"){if(V>.1||isNaN(V)){const B={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/maximum",keyword:"maximum",params:{comparison:"<=",limit:.1},message:"must be <= 0.1",schema:.1,parentSchema:ye.properties.gap,data:V};e===null?e=[B]:e.push(B),t++}if(V<0||isNaN(V)){const B={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:ye.properties.gap,data:V};e===null?e=[B]:e.push(B),t++}}else{const B={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ye.properties.gap.type,parentSchema:ye.properties.gap,data:V};e===null?e=[B]:e.push(B),t++}}if(z.padding!==void 0){let V=z.padding;if(typeof V=="number"){if(V>.2||isNaN(V)){const B={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/maximum",keyword:"maximum",params:{comparison:"<=",limit:.2},message:"must be <= 0.2",schema:.2,parentSchema:ye.properties.padding,data:V};e===null?e=[B]:e.push(B),t++}if(V<0||isNaN(V)){const B={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:ye.properties.padding,data:V};e===null?e=[B]:e.push(B),t++}}else{const B={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ye.properties.padding.type,parentSchema:ye.properties.padding,data:V};e===null?e=[B]:e.push(B),t++}}if(z.weights!==void 0){let V=z.weights;if(Array.isArray(V)){if(V.length>12){const Ae={instancePath:s+"/composition/weights",schemaPath:"#/$defs/Composition/properties/weights/maxItems",keyword:"maxItems",params:{limit:12},message:"must NOT have more than 12 items",schema:12,parentSchema:ye.properties.weights,data:V};e===null?e=[Ae]:e.push(Ae),t++}if(V.length<1){const Ae={instancePath:s+"/composition/weights",schemaPath:"#/$defs/Composition/properties/weights/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ye.properties.weights,data:V};e===null?e=[Ae]:e.push(Ae),t++}const B=V.length;for(let Ae=0;Ae<B;Ae++){let We=V[Ae];if(typeof We=="number"){if(We>100||isNaN(We)){const zt={instancePath:s+"/composition/weights/"+Ae,schemaPath:"#/$defs/Composition/properties/weights/items/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:ye.properties.weights.items,data:We};e===null?e=[zt]:e.push(zt),t++}if(We<=0||isNaN(We)){const zt={instancePath:s+"/composition/weights/"+Ae,schemaPath:"#/$defs/Composition/properties/weights/items/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ye.properties.weights.items,data:We};e===null?e=[zt]:e.push(zt),t++}}else{const zt={instancePath:s+"/composition/weights/"+Ae,schemaPath:"#/$defs/Composition/properties/weights/items/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ye.properties.weights.items.type,parentSchema:ye.properties.weights.items,data:We};e===null?e=[zt]:e.push(zt),t++}}}else{const B={instancePath:s+"/composition/weights",schemaPath:"#/$defs/Composition/properties/weights/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ye.properties.weights.type,parentSchema:ye.properties.weights,data:V};e===null?e=[B]:e.push(B),t++}}if(z.minFontSize!==void 0){let V=z.minFontSize;if(typeof V=="number"){if(V>32||isNaN(V)){const B={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/maximum",keyword:"maximum",params:{comparison:"<=",limit:32},message:"must be <= 32",schema:32,parentSchema:ye.properties.minFontSize,data:V};e===null?e=[B]:e.push(B),t++}if(V<8||isNaN(V)){const B={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/minimum",keyword:"minimum",params:{comparison:">=",limit:8},message:"must be >= 8",schema:8,parentSchema:ye.properties.minFontSize,data:V};e===null?e=[B]:e.push(B),t++}}else{const B={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ye.properties.minFontSize.type,parentSchema:ye.properties.minFontSize,data:V};e===null?e=[B]:e.push(B),t++}}if(z.overflow!==void 0){let V=z.overflow;if(typeof V!="string"){const B={instancePath:s+"/composition/overflow",schemaPath:"#/$defs/Composition/properties/overflow/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ye.properties.overflow.type,parentSchema:ye.properties.overflow,data:V};e===null?e=[B]:e.push(B),t++}if(!(V==="warn"||V==="error")){const B={instancePath:s+"/composition/overflow",schemaPath:"#/$defs/Composition/properties/overflow/enum",keyword:"enum",params:{allowedValues:ye.properties.overflow.enum},message:"must be equal to one of the allowed values",schema:ye.properties.overflow.enum,parentSchema:ye.properties.overflow,data:V};e===null?e=[B]:e.push(B),t++}}}else{const V={instancePath:s+"/composition",schemaPath:"#/$defs/Composition/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ye.type,parentSchema:ye,data:z};e===null?e=[V]:e.push(V),t++}}}else{const z={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Q.type,parentSchema:Q,data:a};e===null?e=[z]:e.push(z),t++}return K.errors=e,t===0}K.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ih=j.presentation.$defs.SlideDesign;function Ys(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ys.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Wa(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Wa.errors:e.concat(Wa.errors),t=e.length);const r=t,n=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.dimensions===void 0){const i={};e===null?e=[i]:e.push(i),t++}var p=n===t;if(p){const i={instancePath:s,schemaPath:"#/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",schema:ih.allOf[1].not,parentSchema:ih.allOf[1],data:a};e===null?e=[i]:e.push(i),t++}else t=r,e!==null&&(r?e.length=r:e=null);return Ys.errors=e,t===0}Ys.evaluated={props:{theme:!0,colorScheme:!0,fontScheme:!0,dimensions:!0,background:!0,variant:!0,logo:!0,watermark:!0,header:!0,footer:!0,titleAlignment:!0,contentAlignment:!0,contentBox:!0,contentDirection:!0,chartPrimary:!0,imageFit:!0,listBullet:!0,mirror:!0},dynamicProps:!1,dynamicItems:!1};function Xs(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Xs.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const w in a)if(!wa.call(ge.properties,w)){const q={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:w},message:"must NOT have additional properties",schema:!1,parentSchema:ge,data:a};e===null?e=[q]:e.push(q),t++}if(a.id!==void 0){let w=a.id;if(typeof w!="string"){const q={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.id.type,parentSchema:ge.properties.id,data:w};e===null?e=[q]:e.push(q),t++}}if(a.type!==void 0){let w=a.type;if(typeof w!="string"){const q={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.type.type,parentSchema:ge.properties.type,data:w};e===null?e=[q]:e.push(q),t++}if(!(w==="text"||w==="list"||w==="image"||w==="chart"||w==="table"||w==="video"||w==="code"||w==="metric"||w==="quote"||w==="timeline")){const q={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ge.properties.type.enum},message:"must be equal to one of the allowed values",schema:ge.properties.type.enum,parentSchema:ge.properties.type,data:w};e===null?e=[q]:e.push(q),t++}}if(a.beat!==void 0){let w=a.beat;const q=t;let f=!1,P=null;const k=t;if(typeof w!="string"){const I={instancePath:s+"/beat",schemaPath:"#/properties/beat/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.beat.oneOf[0].type,parentSchema:ge.properties.beat.oneOf[0],data:w};e===null?e=[I]:e.push(I),t++}var r=k===t;r&&(f=!0,P=0);const D=t;if(Array.isArray(w)){const I=w.length;for(let L=0;L<I;L++){let Z=w[L];if(typeof Z!="string"){const M={instancePath:s+"/beat/"+L,schemaPath:"#/properties/beat/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.beat.oneOf[1].items.type,parentSchema:ge.properties.beat.oneOf[1].items,data:Z};e===null?e=[M]:e.push(M),t++}}}else{const I={instancePath:s+"/beat",schemaPath:"#/properties/beat/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ge.properties.beat.oneOf[1].type,parentSchema:ge.properties.beat.oneOf[1],data:w};e===null?e=[I]:e.push(I),t++}var r=D===t;if(r&&f?(f=!1,P=[P,1]):r&&(f=!0,P=1),f)t=q,e!==null&&(q?e.length=q:e=null);else{const I={instancePath:s+"/beat",schemaPath:"#/properties/beat/oneOf",keyword:"oneOf",params:{passingSchemas:P},message:"must match exactly one schema in oneOf",schema:ge.properties.beat.oneOf,parentSchema:ge.properties.beat,data:w};e===null?e=[I]:e.push(I),t++}}if(a.layout!==void 0){let w=a.layout;if(typeof w=="string"){if(!Vt.test(w)){const q={instancePath:s+"/layout",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:w};e===null?e=[q]:e.push(q),t++}}else{const q={instancePath:s+"/layout",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:w};e===null?e=[q]:e.push(q),t++}}if(a.title!==void 0){let w=a.title;const q=t;let f=!1,P=null;const k=t;if(typeof w!="string"){const I={instancePath:s+"/title",schemaPath:"#/properties/title/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.title.oneOf[0].type,parentSchema:ge.properties.title.oneOf[0],data:w};e===null?e=[I]:e.push(I),t++}var n=k===t;n&&(f=!0,P=0);const D=t;if(Array.isArray(w)){const I=w.length;for(let L=0;L<I;L++)W(w[L],{instancePath:s+"/title/"+L,parentData:w,parentDataProperty:L,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const I={instancePath:s+"/title",schemaPath:"#/properties/title/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ge.properties.title.oneOf[1].type,parentSchema:ge.properties.title.oneOf[1],data:w};e===null?e=[I]:e.push(I),t++}var n=D===t;if(n&&f?(f=!1,P=[P,1]):n&&(f=!0,P=1),f)t=q,e!==null&&(q?e.length=q:e=null);else{const I={instancePath:s+"/title",schemaPath:"#/properties/title/oneOf",keyword:"oneOf",params:{passingSchemas:P},message:"must match exactly one schema in oneOf",schema:ge.properties.title.oneOf,parentSchema:ge.properties.title,data:w};e===null?e=[I]:e.push(I),t++}}if(a.subtitle!==void 0){let w=a.subtitle;const q=t;let f=!1,P=null;const k=t;if(typeof w!="string"){const I={instancePath:s+"/subtitle",schemaPath:"#/properties/subtitle/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.subtitle.oneOf[0].type,parentSchema:ge.properties.subtitle.oneOf[0],data:w};e===null?e=[I]:e.push(I),t++}var p=k===t;p&&(f=!0,P=0);const D=t;if(Array.isArray(w)){const I=w.length;for(let L=0;L<I;L++)W(w[L],{instancePath:s+"/subtitle/"+L,parentData:w,parentDataProperty:L,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const I={instancePath:s+"/subtitle",schemaPath:"#/properties/subtitle/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ge.properties.subtitle.oneOf[1].type,parentSchema:ge.properties.subtitle.oneOf[1],data:w};e===null?e=[I]:e.push(I),t++}var p=D===t;if(p&&f?(f=!1,P=[P,1]):p&&(f=!0,P=1),f)t=q,e!==null&&(q?e.length=q:e=null);else{const I={instancePath:s+"/subtitle",schemaPath:"#/properties/subtitle/oneOf",keyword:"oneOf",params:{passingSchemas:P},message:"must match exactly one schema in oneOf",schema:ge.properties.subtitle.oneOf,parentSchema:ge.properties.subtitle,data:w};e===null?e=[I]:e.push(I),t++}}if(a.tag!==void 0){let w=a.tag;const q=t;let f=!1,P=null;const k=t;if(typeof w!="string"){const I={instancePath:s+"/tag",schemaPath:"#/properties/tag/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.tag.oneOf[0].type,parentSchema:ge.properties.tag.oneOf[0],data:w};e===null?e=[I]:e.push(I),t++}var i=k===t;i&&(f=!0,P=0);const D=t;if(Array.isArray(w)){const I=w.length;for(let L=0;L<I;L++)W(w[L],{instancePath:s+"/tag/"+L,parentData:w,parentDataProperty:L,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const I={instancePath:s+"/tag",schemaPath:"#/properties/tag/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ge.properties.tag.oneOf[1].type,parentSchema:ge.properties.tag.oneOf[1],data:w};e===null?e=[I]:e.push(I),t++}var i=D===t;if(i&&f?(f=!1,P=[P,1]):i&&(f=!0,P=1),f)t=q,e!==null&&(q?e.length=q:e=null);else{const I={instancePath:s+"/tag",schemaPath:"#/properties/tag/oneOf",keyword:"oneOf",params:{passingSchemas:P},message:"must match exactly one schema in oneOf",schema:ge.properties.tag.oneOf,parentSchema:ge.properties.tag,data:w};e===null?e=[I]:e.push(I),t++}}if(a.text!==void 0){let w=a.text;const q=t;let f=!1,P=null;const k=t;if(typeof w!="string"){const I={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.text.oneOf[0].type,parentSchema:ge.properties.text.oneOf[0],data:w};e===null?e=[I]:e.push(I),t++}var h=k===t;h&&(f=!0,P=0);const D=t;if(Array.isArray(w)){const I=w.length;for(let L=0;L<I;L++)W(w[L],{instancePath:s+"/text/"+L,parentData:w,parentDataProperty:L,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const I={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ge.properties.text.oneOf[1].type,parentSchema:ge.properties.text.oneOf[1],data:w};e===null?e=[I]:e.push(I),t++}var h=D===t;if(h&&f?(f=!1,P=[P,1]):h&&(f=!0,P=1),f)t=q,e!==null&&(q?e.length=q:e=null);else{const I={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:P},message:"must match exactly one schema in oneOf",schema:ge.properties.text.oneOf,parentSchema:ge.properties.text,data:w};e===null?e=[I]:e.push(I),t++}}if(a.items!==void 0){let w=a.items;if(Array.isArray(w)){const q=w.length;for(let f=0;f<q;f++)es(w[f],{instancePath:s+"/items/"+f,parentData:w,parentDataProperty:f,rootData:v,dynamicAnchors:b})||(e=e===null?es.errors:e.concat(es.errors),t=e.length)}else{const q={instancePath:s+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ge.properties.items.type,parentSchema:ge.properties.items,data:w};e===null?e=[q]:e.push(q),t++}}if(a.bullets!==void 0){let w=a.bullets;if(Array.isArray(w)){const q=w.length;for(let f=0;f<q;f++)ts(w[f],{instancePath:s+"/bullets/"+f,parentData:w,parentDataProperty:f,rootData:v,dynamicAnchors:b})||(e=e===null?ts.errors:e.concat(ts.errors),t=e.length)}else{const q={instancePath:s+"/bullets",schemaPath:"#/properties/bullets/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ge.properties.bullets.type,parentSchema:ge.properties.bullets,data:w};e===null?e=[q]:e.push(q),t++}}if(a.numbering!==void 0&&(ss(a.numbering,{instancePath:s+"/numbering",parentData:a,parentDataProperty:"numbering",rootData:v,dynamicAnchors:b})||(e=e===null?ss.errors:e.concat(ss.errors),t=e.length)),a.image!==void 0){let w=a.image;const q=t;let f=!1,P=null;const k=t;if(typeof w!="string"){const I={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:w};e===null?e=[I]:e.push(I),t++}var c=k===t;c&&(f=!0,P=0);const D=t;if(w&&typeof w=="object"&&!Array.isArray(w)){if(w.src===void 0){const I={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:w};e===null?e=[I]:e.push(I),t++}for(const I in w)if(!(I==="src"||I==="alt"||I==="title"||I==="description"||I==="mediaType")){const L={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:I},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:w};e===null?e=[L]:e.push(L),t++}if(w.src!==void 0){let I=w.src;if(typeof I!="string"){const L={instancePath:s+"/image/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:I};e===null?e=[L]:e.push(L),t++}}if(w.alt!==void 0){let I=w.alt;if(typeof I!="string"){const L={instancePath:s+"/image/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:I};e===null?e=[L]:e.push(L),t++}}if(w.title!==void 0){let I=w.title;if(typeof I!="string"){const L={instancePath:s+"/image/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:I};e===null?e=[L]:e.push(L),t++}}if(w.description!==void 0){let I=w.description;if(typeof I!="string"){const L={instancePath:s+"/image/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:I};e===null?e=[L]:e.push(L),t++}}if(w.mediaType!==void 0){let I=w.mediaType;if(typeof I!="string"){const L={instancePath:s+"/image/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:I};e===null?e=[L]:e.push(L),t++}}}else{const I={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:w};e===null?e=[I]:e.push(I),t++}var c=D===t;if(c&&f?(f=!1,P=[P,1]):c&&(f=!0,P=1),f)t=q,e!==null&&(q?e.length=q:e=null);else{const I={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:P},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:w};e===null?e=[I]:e.push(I),t++}}if(a.video!==void 0){let w=a.video;const q=t;let f=!1,P=null;const k=t;if(typeof w!="string"){const I={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:w};e===null?e=[I]:e.push(I),t++}var y=k===t;y&&(f=!0,P=0);const D=t;if(w&&typeof w=="object"&&!Array.isArray(w)){if(w.src===void 0){const I={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:w};e===null?e=[I]:e.push(I),t++}for(const I in w)if(!(I==="src"||I==="alt"||I==="title"||I==="description"||I==="mediaType")){const L={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:I},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:w};e===null?e=[L]:e.push(L),t++}if(w.src!==void 0){let I=w.src;if(typeof I!="string"){const L={instancePath:s+"/video/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:I};e===null?e=[L]:e.push(L),t++}}if(w.alt!==void 0){let I=w.alt;if(typeof I!="string"){const L={instancePath:s+"/video/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:I};e===null?e=[L]:e.push(L),t++}}if(w.title!==void 0){let I=w.title;if(typeof I!="string"){const L={instancePath:s+"/video/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:I};e===null?e=[L]:e.push(L),t++}}if(w.description!==void 0){let I=w.description;if(typeof I!="string"){const L={instancePath:s+"/video/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:I};e===null?e=[L]:e.push(L),t++}}if(w.mediaType!==void 0){let I=w.mediaType;if(typeof I!="string"){const L={instancePath:s+"/video/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:I};e===null?e=[L]:e.push(L),t++}}}else{const I={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:w};e===null?e=[I]:e.push(I),t++}var y=D===t;if(y&&f?(f=!1,P=[P,1]):y&&(f=!0,P=1),f)t=q,e!==null&&(q?e.length=q:e=null);else{const I={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:P},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:w};e===null?e=[I]:e.push(I),t++}}if(a.chart!==void 0&&(ns(a.chart,{instancePath:s+"/chart",parentData:a,parentDataProperty:"chart",rootData:v,dynamicAnchors:b})||(e=e===null?ns.errors:e.concat(ns.errors),t=e.length)),a.table!==void 0&&(ps(a.table,{instancePath:s+"/table",parentData:a,parentDataProperty:"table",rootData:v,dynamicAnchors:b})||(e=e===null?ps.errors:e.concat(ps.errors),t=e.length)),a.code!==void 0){let w=a.code;const q=t;let f=!1,P=null;const k=t;if(typeof w!="string"){const I={instancePath:s+"/code",schemaPath:"#/properties/code/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.code.oneOf[0].type,parentSchema:ge.properties.code.oneOf[0],data:w};e===null?e=[I]:e.push(I),t++}var l=k===t;l&&(f=!0,P=0);const D=t;if(w&&typeof w=="object"&&!Array.isArray(w)){if(w.source===void 0){const I={instancePath:s+"/code",schemaPath:"#/$defs/Code/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:te.required,parentSchema:te,data:w};e===null?e=[I]:e.push(I),t++}for(const I in w)if(!(I==="source"||I==="language"||I==="filename"||I==="highlight")){const L={instancePath:s+"/code",schemaPath:"#/$defs/Code/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:I},message:"must NOT have additional properties",schema:!1,parentSchema:te,data:w};e===null?e=[L]:e.push(L),t++}if(w.source!==void 0){let I=w.source;if(typeof I!="string"){const L={instancePath:s+"/code/source",schemaPath:"#/$defs/Code/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:te.properties.source.type,parentSchema:te.properties.source,data:I};e===null?e=[L]:e.push(L),t++}}if(w.language!==void 0){let I=w.language;if(typeof I!="string"){const L={instancePath:s+"/code/language",schemaPath:"#/$defs/Code/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string",schema:te.properties.language.type,parentSchema:te.properties.language,data:I};e===null?e=[L]:e.push(L),t++}}if(w.filename!==void 0){let I=w.filename;if(typeof I!="string"){const L={instancePath:s+"/code/filename",schemaPath:"#/$defs/Code/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string",schema:te.properties.filename.type,parentSchema:te.properties.filename,data:I};e===null?e=[L]:e.push(L),t++}}if(w.highlight!==void 0){let I=w.highlight;if(Array.isArray(I)){if(I.length<1){const Z={instancePath:s+"/code/highlight",schemaPath:"#/$defs/Code/properties/highlight/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:te.properties.highlight,data:I};e===null?e=[Z]:e.push(Z),t++}const L=I.length;for(let Z=0;Z<L;Z++){let M=I[Z];const J=t;let C=!1,T=null;const F=t;if(!(typeof M=="number"&&!(M%1)&&!isNaN(M))){const ae={instancePath:s+"/code/highlight/"+Z,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/0/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:te.properties.highlight.items.oneOf[0].type,parentSchema:te.properties.highlight.items.oneOf[0],data:M};e===null?e=[ae]:e.push(ae),t++}if(typeof M=="number"&&(M<1||isNaN(M))){const ae={instancePath:s+"/code/highlight/"+Z,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/0/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:te.properties.highlight.items.oneOf[0],data:M};e===null?e=[ae]:e.push(ae),t++}var g=F===t;g&&(C=!0,T=0);const H=t;if(Array.isArray(M)){if(M.length>2){const ee={instancePath:s+"/code/highlight/"+Z,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items",schema:2,parentSchema:te.properties.highlight.items.oneOf[1],data:M};e===null?e=[ee]:e.push(ee),t++}if(M.length<2){const ee={instancePath:s+"/code/highlight/"+Z,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items",schema:2,parentSchema:te.properties.highlight.items.oneOf[1],data:M};e===null?e=[ee]:e.push(ee),t++}const ae=M.length;for(let ee=0;ee<ae;ee++){let G=M[ee];if(!(typeof G=="number"&&!(G%1)&&!isNaN(G))){const Ke={instancePath:s+"/code/highlight/"+Z+"/"+ee,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/items/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:te.properties.highlight.items.oneOf[1].items.type,parentSchema:te.properties.highlight.items.oneOf[1].items,data:G};e===null?e=[Ke]:e.push(Ke),t++}if(typeof G=="number"&&(G<1||isNaN(G))){const Ke={instancePath:s+"/code/highlight/"+Z+"/"+ee,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/items/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:te.properties.highlight.items.oneOf[1].items,data:G};e===null?e=[Ke]:e.push(Ke),t++}}}else{const ae={instancePath:s+"/code/highlight/"+Z,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:te.properties.highlight.items.oneOf[1].type,parentSchema:te.properties.highlight.items.oneOf[1],data:M};e===null?e=[ae]:e.push(ae),t++}var g=H===t;if(g&&C?(C=!1,T=[T,1]):g&&(C=!0,T=1),C)t=J,e!==null&&(J?e.length=J:e=null);else{const ae={instancePath:s+"/code/highlight/"+Z,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf",keyword:"oneOf",params:{passingSchemas:T},message:"must match exactly one schema in oneOf",schema:te.properties.highlight.items.oneOf,parentSchema:te.properties.highlight.items,data:M};e===null?e=[ae]:e.push(ae),t++}}}else{const L={instancePath:s+"/code/highlight",schemaPath:"#/$defs/Code/properties/highlight/type",keyword:"type",params:{type:"array"},message:"must be array",schema:te.properties.highlight.type,parentSchema:te.properties.highlight,data:I};e===null?e=[L]:e.push(L),t++}}}else{const I={instancePath:s+"/code",schemaPath:"#/$defs/Code/type",keyword:"type",params:{type:"object"},message:"must be object",schema:te.type,parentSchema:te,data:w};e===null?e=[I]:e.push(I),t++}var l=D===t;if(l&&f?(f=!1,P=[P,1]):l&&(f=!0,P=1),f)t=q,e!==null&&(q?e.length=q:e=null);else{const I={instancePath:s+"/code",schemaPath:"#/properties/code/oneOf",keyword:"oneOf",params:{passingSchemas:P},message:"must match exactly one schema in oneOf",schema:ge.properties.code.oneOf,parentSchema:ge.properties.code,data:w};e===null?e=[I]:e.push(I),t++}}if(a.metric!==void 0){let w=a.metric;const q=t;let f=!1,P=null;const k=t;if(typeof w!="string"){const I={instancePath:s+"/metric",schemaPath:"#/properties/metric/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.metric.oneOf[0].type,parentSchema:ge.properties.metric.oneOf[0],data:w};e===null?e=[I]:e.push(I),t++}var o=k===t;o&&(f=!0,P=0);const D=t;if(typeof w!="number"){const I={instancePath:s+"/metric",schemaPath:"#/properties/metric/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ge.properties.metric.oneOf[1].type,parentSchema:ge.properties.metric.oneOf[1],data:w};e===null?e=[I]:e.push(I),t++}var o=D===t;if(o&&f)f=!1,P=[P,1];else{o&&(f=!0,P=1);const I=t;if(w&&typeof w=="object"&&!Array.isArray(w)){if(w.value===void 0){const Z={instancePath:s+"/metric",schemaPath:"#/$defs/Metric/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:X.required,parentSchema:X,data:w};e===null?e=[Z]:e.push(Z),t++}for(const Z in w)if(!(Z==="value"||Z==="label"||Z==="description"||Z==="unit"||Z==="delta"||Z==="trend"||Z==="sentiment")){const M={instancePath:s+"/metric",schemaPath:"#/$defs/Metric/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Z},message:"must NOT have additional properties",schema:!1,parentSchema:X,data:w};e===null?e=[M]:e.push(M),t++}if(w.value!==void 0){let Z=w.value;const M=t;let J=!1,C=null;const T=t;if(typeof Z!="string"){const H={instancePath:s+"/metric/value",schemaPath:"#/$defs/Metric/properties/value/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.value.oneOf[0].type,parentSchema:X.properties.value.oneOf[0],data:Z};e===null?e=[H]:e.push(H),t++}var d=T===t;d&&(J=!0,C=0);const F=t;if(typeof Z!="number"){const H={instancePath:s+"/metric/value",schemaPath:"#/$defs/Metric/properties/value/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:X.properties.value.oneOf[1].type,parentSchema:X.properties.value.oneOf[1],data:Z};e===null?e=[H]:e.push(H),t++}var d=F===t;if(d&&J?(J=!1,C=[C,1]):d&&(J=!0,C=1),J)t=M,e!==null&&(M?e.length=M:e=null);else{const H={instancePath:s+"/metric/value",schemaPath:"#/$defs/Metric/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas:C},message:"must match exactly one schema in oneOf",schema:X.properties.value.oneOf,parentSchema:X.properties.value,data:Z};e===null?e=[H]:e.push(H),t++}}if(w.label!==void 0){let Z=w.label;if(typeof Z!="string"){const M={instancePath:s+"/metric/label",schemaPath:"#/$defs/Metric/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.label.type,parentSchema:X.properties.label,data:Z};e===null?e=[M]:e.push(M),t++}}if(w.description!==void 0){let Z=w.description;if(typeof Z!="string"){const M={instancePath:s+"/metric/description",schemaPath:"#/$defs/Metric/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.description.type,parentSchema:X.properties.description,data:Z};e===null?e=[M]:e.push(M),t++}}if(w.unit!==void 0){let Z=w.unit;if(typeof Z!="string"){const M={instancePath:s+"/metric/unit",schemaPath:"#/$defs/Metric/properties/unit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.unit.type,parentSchema:X.properties.unit,data:Z};e===null?e=[M]:e.push(M),t++}}if(w.delta!==void 0){let Z=w.delta;const M=t;let J=!1,C=null;const T=t;if(typeof Z!="string"){const H={instancePath:s+"/metric/delta",schemaPath:"#/$defs/Metric/properties/delta/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.delta.oneOf[0].type,parentSchema:X.properties.delta.oneOf[0],data:Z};e===null?e=[H]:e.push(H),t++}var O=T===t;O&&(J=!0,C=0);const F=t;if(typeof Z!="number"){const H={instancePath:s+"/metric/delta",schemaPath:"#/$defs/Metric/properties/delta/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:X.properties.delta.oneOf[1].type,parentSchema:X.properties.delta.oneOf[1],data:Z};e===null?e=[H]:e.push(H),t++}var O=F===t;if(O&&J?(J=!1,C=[C,1]):O&&(J=!0,C=1),J)t=M,e!==null&&(M?e.length=M:e=null);else{const H={instancePath:s+"/metric/delta",schemaPath:"#/$defs/Metric/properties/delta/oneOf",keyword:"oneOf",params:{passingSchemas:C},message:"must match exactly one schema in oneOf",schema:X.properties.delta.oneOf,parentSchema:X.properties.delta,data:Z};e===null?e=[H]:e.push(H),t++}}if(w.trend!==void 0){let Z=w.trend;if(typeof Z!="string"){const M={instancePath:s+"/metric/trend",schemaPath:"#/$defs/Metric/properties/trend/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.trend.type,parentSchema:X.properties.trend,data:Z};e===null?e=[M]:e.push(M),t++}if(!(Z==="up"||Z==="down"||Z==="flat")){const M={instancePath:s+"/metric/trend",schemaPath:"#/$defs/Metric/properties/trend/enum",keyword:"enum",params:{allowedValues:X.properties.trend.enum},message:"must be equal to one of the allowed values",schema:X.properties.trend.enum,parentSchema:X.properties.trend,data:Z};e===null?e=[M]:e.push(M),t++}}if(w.sentiment!==void 0){let Z=w.sentiment;if(typeof Z!="string"){const M={instancePath:s+"/metric/sentiment",schemaPath:"#/$defs/Metric/properties/sentiment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.sentiment.type,parentSchema:X.properties.sentiment,data:Z};e===null?e=[M]:e.push(M),t++}if(!(Z==="positive"||Z==="negative"||Z==="neutral")){const M={instancePath:s+"/metric/sentiment",schemaPath:"#/$defs/Metric/properties/sentiment/enum",keyword:"enum",params:{allowedValues:X.properties.sentiment.enum},message:"must be equal to one of the allowed values",schema:X.properties.sentiment.enum,parentSchema:X.properties.sentiment,data:Z};e===null?e=[M]:e.push(M),t++}}}else{const Z={instancePath:s+"/metric",schemaPath:"#/$defs/Metric/type",keyword:"type",params:{type:"object"},message:"must be object",schema:X.type,parentSchema:X,data:w};e===null?e=[Z]:e.push(Z),t++}var o=I===t;o&&f?(f=!1,P=[P,2]):o&&(f=!0,P=2)}if(f)t=q,e!==null&&(q?e.length=q:e=null);else{const I={instancePath:s+"/metric",schemaPath:"#/properties/metric/oneOf",keyword:"oneOf",params:{passingSchemas:P},message:"must match exactly one schema in oneOf",schema:ge.properties.metric.oneOf,parentSchema:ge.properties.metric,data:w};e===null?e=[I]:e.push(I),t++}}if(a.quote!==void 0){let w=a.quote;const q=t;let f=!1,P=null;const k=t;if(typeof w!="string"){const I={instancePath:s+"/quote",schemaPath:"#/properties/quote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.quote.oneOf[0].type,parentSchema:ge.properties.quote.oneOf[0],data:w};e===null?e=[I]:e.push(I),t++}var S=k===t;S&&(f=!0,P=0);const D=t;is(w,{instancePath:s+"/quote",parentData:a,parentDataProperty:"quote",rootData:v,dynamicAnchors:b})||(e=e===null?is.errors:e.concat(is.errors),t=e.length);var S=D===t;if(S&&f?(f=!1,P=[P,1]):S&&(f=!0,P=1),f)t=q,e!==null&&(q?e.length=q:e=null);else{const I={instancePath:s+"/quote",schemaPath:"#/properties/quote/oneOf",keyword:"oneOf",params:{passingSchemas:P},message:"must match exactly one schema in oneOf",schema:ge.properties.quote.oneOf,parentSchema:ge.properties.quote,data:w};e===null?e=[I]:e.push(I),t++}}if(a.timeline!==void 0&&(ms(a.timeline,{instancePath:s+"/timeline",parentData:a,parentDataProperty:"timeline",rootData:v,dynamicAnchors:b})||(e=e===null?ms.errors:e.concat(ms.errors),t=e.length)),a.caption!==void 0&&(cs(a.caption,{instancePath:s+"/caption",parentData:a,parentDataProperty:"caption",rootData:v,dynamicAnchors:b})||(e=e===null?cs.errors:e.concat(cs.errors),t=e.length)),a.blocks!==void 0){let w=a.blocks;if(Array.isArray(w)){const q=w.length;for(let f=0;f<q;f++)K(w[f],{instancePath:s+"/blocks/"+f,parentData:w,parentDataProperty:f,rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)}else{const q={instancePath:s+"/blocks",schemaPath:"#/properties/blocks/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ge.properties.blocks.type,parentSchema:ge.properties.blocks,data:w};e===null?e=[q]:e.push(q),t++}}if(a.design!==void 0&&(Ys(a.design,{instancePath:s+"/design",parentData:a,parentDataProperty:"design",rootData:v,dynamicAnchors:b})||(e=e===null?Ys.errors:e.concat(Ys.errors),t=e.length)),a.left!==void 0&&(K(a.left,{instancePath:s+"/left",parentData:a,parentDataProperty:"left",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a.center!==void 0&&(K(a.center,{instancePath:s+"/center",parentData:a,parentDataProperty:"center",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a.right!==void 0&&(K(a.right,{instancePath:s+"/right",parentData:a,parentDataProperty:"right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["left+center"]!==void 0&&(K(a["left+center"],{instancePath:s+"/left+center",parentData:a,parentDataProperty:"left+center",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["center+right"]!==void 0&&(K(a["center+right"],{instancePath:s+"/center+right",parentData:a,parentDataProperty:"center+right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["left+center+right"]!==void 0&&(K(a["left+center+right"],{instancePath:s+"/left+center+right",parentData:a,parentDataProperty:"left+center+right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a.top!==void 0&&(K(a.top,{instancePath:s+"/top",parentData:a,parentDataProperty:"top",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a.middle!==void 0&&(K(a.middle,{instancePath:s+"/middle",parentData:a,parentDataProperty:"middle",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a.bottom!==void 0&&(K(a.bottom,{instancePath:s+"/bottom",parentData:a,parentDataProperty:"bottom",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top+middle"]!==void 0&&(K(a["top+middle"],{instancePath:s+"/top+middle",parentData:a,parentDataProperty:"top+middle",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["middle+bottom"]!==void 0&&(K(a["middle+bottom"],{instancePath:s+"/middle+bottom",parentData:a,parentDataProperty:"middle+bottom",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top+middle+bottom"]!==void 0&&(K(a["top+middle+bottom"],{instancePath:s+"/top+middle+bottom",parentData:a,parentDataProperty:"top+middle+bottom",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top:left"]!==void 0&&(K(a["top:left"],{instancePath:s+"/top:left",parentData:a,parentDataProperty:"top:left",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top:center"]!==void 0&&(K(a["top:center"],{instancePath:s+"/top:center",parentData:a,parentDataProperty:"top:center",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top:right"]!==void 0&&(K(a["top:right"],{instancePath:s+"/top:right",parentData:a,parentDataProperty:"top:right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top:left+center"]!==void 0&&(K(a["top:left+center"],{instancePath:s+"/top:left+center",parentData:a,parentDataProperty:"top:left+center",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top:center+right"]!==void 0&&(K(a["top:center+right"],{instancePath:s+"/top:center+right",parentData:a,parentDataProperty:"top:center+right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top:left+center+right"]!==void 0&&(K(a["top:left+center+right"],{instancePath:s+"/top:left+center+right",parentData:a,parentDataProperty:"top:left+center+right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["middle:left"]!==void 0&&(K(a["middle:left"],{instancePath:s+"/middle:left",parentData:a,parentDataProperty:"middle:left",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["middle:center"]!==void 0&&(K(a["middle:center"],{instancePath:s+"/middle:center",parentData:a,parentDataProperty:"middle:center",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["middle:right"]!==void 0&&(K(a["middle:right"],{instancePath:s+"/middle:right",parentData:a,parentDataProperty:"middle:right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["middle:left+center"]!==void 0&&(K(a["middle:left+center"],{instancePath:s+"/middle:left+center",parentData:a,parentDataProperty:"middle:left+center",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["middle:center+right"]!==void 0&&(K(a["middle:center+right"],{instancePath:s+"/middle:center+right",parentData:a,parentDataProperty:"middle:center+right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["middle:left+center+right"]!==void 0&&(K(a["middle:left+center+right"],{instancePath:s+"/middle:left+center+right",parentData:a,parentDataProperty:"middle:left+center+right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["bottom:left"]!==void 0&&(K(a["bottom:left"],{instancePath:s+"/bottom:left",parentData:a,parentDataProperty:"bottom:left",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["bottom:center"]!==void 0&&(K(a["bottom:center"],{instancePath:s+"/bottom:center",parentData:a,parentDataProperty:"bottom:center",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["bottom:right"]!==void 0&&(K(a["bottom:right"],{instancePath:s+"/bottom:right",parentData:a,parentDataProperty:"bottom:right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["bottom:left+center"]!==void 0&&(K(a["bottom:left+center"],{instancePath:s+"/bottom:left+center",parentData:a,parentDataProperty:"bottom:left+center",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["bottom:center+right"]!==void 0&&(K(a["bottom:center+right"],{instancePath:s+"/bottom:center+right",parentData:a,parentDataProperty:"bottom:center+right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["bottom:left+center+right"]!==void 0&&(K(a["bottom:left+center+right"],{instancePath:s+"/bottom:left+center+right",parentData:a,parentDataProperty:"bottom:left+center+right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top+middle:left"]!==void 0&&(K(a["top+middle:left"],{instancePath:s+"/top+middle:left",parentData:a,parentDataProperty:"top+middle:left",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top+middle:center"]!==void 0&&(K(a["top+middle:center"],{instancePath:s+"/top+middle:center",parentData:a,parentDataProperty:"top+middle:center",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top+middle:right"]!==void 0&&(K(a["top+middle:right"],{instancePath:s+"/top+middle:right",parentData:a,parentDataProperty:"top+middle:right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top+middle:left+center"]!==void 0&&(K(a["top+middle:left+center"],{instancePath:s+"/top+middle:left+center",parentData:a,parentDataProperty:"top+middle:left+center",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top+middle:center+right"]!==void 0&&(K(a["top+middle:center+right"],{instancePath:s+"/top+middle:center+right",parentData:a,parentDataProperty:"top+middle:center+right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top+middle:left+center+right"]!==void 0&&(K(a["top+middle:left+center+right"],{instancePath:s+"/top+middle:left+center+right",parentData:a,parentDataProperty:"top+middle:left+center+right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["middle+bottom:left"]!==void 0&&(K(a["middle+bottom:left"],{instancePath:s+"/middle+bottom:left",parentData:a,parentDataProperty:"middle+bottom:left",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["middle+bottom:center"]!==void 0&&(K(a["middle+bottom:center"],{instancePath:s+"/middle+bottom:center",parentData:a,parentDataProperty:"middle+bottom:center",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["middle+bottom:right"]!==void 0&&(K(a["middle+bottom:right"],{instancePath:s+"/middle+bottom:right",parentData:a,parentDataProperty:"middle+bottom:right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["middle+bottom:left+center"]!==void 0&&(K(a["middle+bottom:left+center"],{instancePath:s+"/middle+bottom:left+center",parentData:a,parentDataProperty:"middle+bottom:left+center",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["middle+bottom:center+right"]!==void 0&&(K(a["middle+bottom:center+right"],{instancePath:s+"/middle+bottom:center+right",parentData:a,parentDataProperty:"middle+bottom:center+right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["middle+bottom:left+center+right"]!==void 0&&(K(a["middle+bottom:left+center+right"],{instancePath:s+"/middle+bottom:left+center+right",parentData:a,parentDataProperty:"middle+bottom:left+center+right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top+middle+bottom:left"]!==void 0&&(K(a["top+middle+bottom:left"],{instancePath:s+"/top+middle+bottom:left",parentData:a,parentDataProperty:"top+middle+bottom:left",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top+middle+bottom:center"]!==void 0&&(K(a["top+middle+bottom:center"],{instancePath:s+"/top+middle+bottom:center",parentData:a,parentDataProperty:"top+middle+bottom:center",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top+middle+bottom:right"]!==void 0&&(K(a["top+middle+bottom:right"],{instancePath:s+"/top+middle+bottom:right",parentData:a,parentDataProperty:"top+middle+bottom:right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top+middle+bottom:left+center"]!==void 0&&(K(a["top+middle+bottom:left+center"],{instancePath:s+"/top+middle+bottom:left+center",parentData:a,parentDataProperty:"top+middle+bottom:left+center",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top+middle+bottom:center+right"]!==void 0&&(K(a["top+middle+bottom:center+right"],{instancePath:s+"/top+middle+bottom:center+right",parentData:a,parentDataProperty:"top+middle+bottom:center+right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a["top+middle+bottom:left+center+right"]!==void 0&&(K(a["top+middle+bottom:left+center+right"],{instancePath:s+"/top+middle+bottom:left+center+right",parentData:a,parentDataProperty:"top+middle+bottom:left+center+right",rootData:v,dynamicAnchors:b})||(e=e===null?K.errors:e.concat(K.errors),t=e.length)),a.notes!==void 0){let w=a.notes;if(typeof w!="string"){const q={instancePath:s+"/notes",schemaPath:"#/properties/notes/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.notes.type,parentSchema:ge.properties.notes,data:w};e===null?e=[q]:e.push(q),t++}}if(a.section!==void 0){let w=a.section;if(typeof w!="string"){const q={instancePath:s+"/section",schemaPath:"#/properties/section/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.section.type,parentSchema:ge.properties.section,data:w};e===null?e=[q]:e.push(q),t++}}if(a.hidden!==void 0){let w=a.hidden;if(typeof w!="boolean"){const q={instancePath:s+"/hidden",schemaPath:"#/properties/hidden/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ge.properties.hidden.type,parentSchema:ge.properties.hidden,data:w};e===null?e=[q]:e.push(q),t++}}if(a.composition!==void 0){let w=a.composition;if(w&&typeof w=="object"&&!Array.isArray(w)){for(const q in w)if(!(q==="mode"||q==="columns"||q==="gap"||q==="padding"||q==="weights"||q==="minFontSize"||q==="overflow")){const f={instancePath:s+"/composition",schemaPath:"#/$defs/Composition/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:q},message:"must NOT have additional properties",schema:!1,parentSchema:ye,data:w};e===null?e=[f]:e.push(f),t++}if(w.mode!==void 0){let q=w.mode;if(typeof q!="string"){const f={instancePath:s+"/composition/mode",schemaPath:"#/$defs/Composition/properties/mode/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ye.properties.mode.type,parentSchema:ye.properties.mode,data:q};e===null?e=[f]:e.push(f),t++}if(!(q==="auto"||q==="grid"||q==="row"||q==="column")){const f={instancePath:s+"/composition/mode",schemaPath:"#/$defs/Composition/properties/mode/enum",keyword:"enum",params:{allowedValues:ye.properties.mode.enum},message:"must be equal to one of the allowed values",schema:ye.properties.mode.enum,parentSchema:ye.properties.mode,data:q};e===null?e=[f]:e.push(f),t++}}if(w.columns!==void 0){let q=w.columns;if(!(typeof q=="number"&&!(q%1)&&!isNaN(q))){const f={instancePath:s+"/composition/columns",schemaPath:"#/$defs/Composition/properties/columns/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:ye.properties.columns.type,parentSchema:ye.properties.columns,data:q};e===null?e=[f]:e.push(f),t++}if(typeof q=="number"){if(q>12||isNaN(q)){const f={instancePath:s+"/composition/columns",schemaPath:"#/$defs/Composition/properties/columns/maximum",keyword:"maximum",params:{comparison:"<=",limit:12},message:"must be <= 12",schema:12,parentSchema:ye.properties.columns,data:q};e===null?e=[f]:e.push(f),t++}if(q<1||isNaN(q)){const f={instancePath:s+"/composition/columns",schemaPath:"#/$defs/Composition/properties/columns/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:ye.properties.columns,data:q};e===null?e=[f]:e.push(f),t++}}}if(w.gap!==void 0){let q=w.gap;if(typeof q=="number"){if(q>.1||isNaN(q)){const f={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/maximum",keyword:"maximum",params:{comparison:"<=",limit:.1},message:"must be <= 0.1",schema:.1,parentSchema:ye.properties.gap,data:q};e===null?e=[f]:e.push(f),t++}if(q<0||isNaN(q)){const f={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:ye.properties.gap,data:q};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ye.properties.gap.type,parentSchema:ye.properties.gap,data:q};e===null?e=[f]:e.push(f),t++}}if(w.padding!==void 0){let q=w.padding;if(typeof q=="number"){if(q>.2||isNaN(q)){const f={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/maximum",keyword:"maximum",params:{comparison:"<=",limit:.2},message:"must be <= 0.2",schema:.2,parentSchema:ye.properties.padding,data:q};e===null?e=[f]:e.push(f),t++}if(q<0||isNaN(q)){const f={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:ye.properties.padding,data:q};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ye.properties.padding.type,parentSchema:ye.properties.padding,data:q};e===null?e=[f]:e.push(f),t++}}if(w.weights!==void 0){let q=w.weights;if(Array.isArray(q)){if(q.length>12){const P={instancePath:s+"/composition/weights",schemaPath:"#/$defs/Composition/properties/weights/maxItems",keyword:"maxItems",params:{limit:12},message:"must NOT have more than 12 items",schema:12,parentSchema:ye.properties.weights,data:q};e===null?e=[P]:e.push(P),t++}if(q.length<1){const P={instancePath:s+"/composition/weights",schemaPath:"#/$defs/Composition/properties/weights/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ye.properties.weights,data:q};e===null?e=[P]:e.push(P),t++}const f=q.length;for(let P=0;P<f;P++){let k=q[P];if(typeof k=="number"){if(k>100||isNaN(k)){const D={instancePath:s+"/composition/weights/"+P,schemaPath:"#/$defs/Composition/properties/weights/items/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:ye.properties.weights.items,data:k};e===null?e=[D]:e.push(D),t++}if(k<=0||isNaN(k)){const D={instancePath:s+"/composition/weights/"+P,schemaPath:"#/$defs/Composition/properties/weights/items/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ye.properties.weights.items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/composition/weights/"+P,schemaPath:"#/$defs/Composition/properties/weights/items/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ye.properties.weights.items.type,parentSchema:ye.properties.weights.items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/composition/weights",schemaPath:"#/$defs/Composition/properties/weights/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ye.properties.weights.type,parentSchema:ye.properties.weights,data:q};e===null?e=[f]:e.push(f),t++}}if(w.minFontSize!==void 0){let q=w.minFontSize;if(typeof q=="number"){if(q>32||isNaN(q)){const f={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/maximum",keyword:"maximum",params:{comparison:"<=",limit:32},message:"must be <= 32",schema:32,parentSchema:ye.properties.minFontSize,data:q};e===null?e=[f]:e.push(f),t++}if(q<8||isNaN(q)){const f={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/minimum",keyword:"minimum",params:{comparison:">=",limit:8},message:"must be >= 8",schema:8,parentSchema:ye.properties.minFontSize,data:q};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ye.properties.minFontSize.type,parentSchema:ye.properties.minFontSize,data:q};e===null?e=[f]:e.push(f),t++}}if(w.overflow!==void 0){let q=w.overflow;if(typeof q!="string"){const f={instancePath:s+"/composition/overflow",schemaPath:"#/$defs/Composition/properties/overflow/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ye.properties.overflow.type,parentSchema:ye.properties.overflow,data:q};e===null?e=[f]:e.push(f),t++}if(!(q==="warn"||q==="error")){const f={instancePath:s+"/composition/overflow",schemaPath:"#/$defs/Composition/properties/overflow/enum",keyword:"enum",params:{allowedValues:ye.properties.overflow.enum},message:"must be equal to one of the allowed values",schema:ye.properties.overflow.enum,parentSchema:ye.properties.overflow,data:q};e===null?e=[f]:e.push(f),t++}}}else{const q={instancePath:s+"/composition",schemaPath:"#/$defs/Composition/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ye.type,parentSchema:ye,data:w};e===null?e=[q]:e.push(q),t++}}if(a.extensions!==void 0){let w=a.extensions;if(!(w&&typeof w=="object"&&!Array.isArray(w))){const q={instancePath:s+"/extensions",schemaPath:"#/properties/extensions/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ge.properties.extensions.type,parentSchema:ge.properties.extensions,data:w};e===null?e=[q]:e.push(q),t++}}}else{const w={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ge.type,parentSchema:ge,data:a};e===null?e=[w]:e.push(w),t++}return Xs.errors=e,t===0}Xs.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var aa=j.presentation.$defs.Reference;function Qs(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qs.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:aa.required,parentSchema:aa,data:a};e===null?e=[n]:e.push(n),t++}if(a.text===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:aa.required,parentSchema:aa,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="id"||n==="text"||n==="url")){const p={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:aa,data:a};e===null?e=[p]:e.push(p),t++}if(a.id!==void 0){let n=a.id;if(typeof n=="string"){if(me(n)<1){const p={instancePath:s+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:aa.properties.id,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:aa.properties.id.type,parentSchema:aa.properties.id,data:n};e===null?e=[p]:e.push(p),t++}}if(a.text!==void 0){let n=a.text;const p=t;let i=!1,h=null;const c=t;if(typeof n!="string"){const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:aa.properties.text.oneOf[0].type,parentSchema:aa.properties.text.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;if(Array.isArray(n)){const g=n.length;for(let l=0;l<g;l++)W(n[l],{instancePath:s+"/text/"+l,parentData:n,parentDataProperty:l,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:aa.properties.text.oneOf[1].type,parentSchema:aa.properties.text.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=p,e!==null&&(p?e.length=p:e=null);else{const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:aa.properties.text.oneOf,parentSchema:aa.properties.text,data:n};e===null?e=[g]:e.push(g),t++}}if(a.url!==void 0){let n=a.url;if(typeof n!="string"){const p={instancePath:s+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string",schema:aa.properties.url.type,parentSchema:aa.properties.url,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:aa.type,parentSchema:aa,data:a};e===null?e=[n]:e.push(n),t++}return Qs.errors=e,t===0}Qs.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var In=j.presentation.$defs.Datasets,Zt=j.presentation.$defs.Dataset;function Gs(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Gs.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.columns===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columns"},message:"must have required property 'columns'",schema:Zt.required,parentSchema:Zt,data:a};e===null?e=[i]:e.push(i),t++}if(a.rows===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rows"},message:"must have required property 'rows'",schema:Zt.required,parentSchema:Zt,data:a};e===null?e=[i]:e.push(i),t++}for(const i in a)if(!(i==="title"||i==="description"||i==="columns"||i==="rows"||i==="source")){const h={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:Zt,data:a};e===null?e=[h]:e.push(h),t++}if(a.title!==void 0){let i=a.title;if(typeof i!="string"){const h={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Zt.properties.title.type,parentSchema:Zt.properties.title,data:i};e===null?e=[h]:e.push(h),t++}}if(a.description!==void 0){let i=a.description;if(typeof i!="string"){const h={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Zt.properties.description.type,parentSchema:Zt.properties.description,data:i};e===null?e=[h]:e.push(h),t++}}if(a.columns!==void 0){let i=a.columns;if(Array.isArray(i)){if(i.length<1){const c={instancePath:s+"/columns",schemaPath:"#/properties/columns/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Zt.properties.columns,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++){let y=i[c];const g=t;let l=!1,o=null;const d=t;if(typeof y!="string"){const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Zt.properties.columns.items.oneOf[0].type,parentSchema:Zt.properties.columns.items.oneOf[0],data:y};e===null?e=[S]:e.push(S),t++}var r=d===t;r&&(l=!0,o=0);const O=t;ea(y,{instancePath:s+"/columns/"+c,parentData:i,parentDataProperty:c,rootData:v,dynamicAnchors:b})||(e=e===null?ea.errors:e.concat(ea.errors),t=e.length);var r=O===t;if(r&&l?(l=!1,o=[o,1]):r&&(l=!0,o=1),l)t=g,e!==null&&(g?e.length=g:e=null);else{const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:Zt.properties.columns.items.oneOf,parentSchema:Zt.properties.columns.items,data:y};e===null?e=[S]:e.push(S),t++}}}else{const h={instancePath:s+"/columns",schemaPath:"#/properties/columns/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Zt.properties.columns.type,parentSchema:Zt.properties.columns,data:i};e===null?e=[h]:e.push(h),t++}}if(a.rows!==void 0){let i=a.rows;if(Array.isArray(i)){const h=i.length;for(let c=0;c<h;c++){let y=i[c];if(Array.isArray(y)){const g=y.length;for(let l=0;l<g;l++){let o=y[l];const d=t;let O=!1,S=null;const w=t;if(typeof o!="string"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ct.oneOf[0].type,parentSchema:ct.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var n=w===t;n&&(O=!0,S=0);const q=t;if(typeof o!="number"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ct.oneOf[1].type,parentSchema:ct.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var n=q===t;if(n&&O)O=!1,S=[S,1];else{n&&(O=!0,S=1);const f=t;if(typeof o!="boolean"){const k={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ct.oneOf[2].type,parentSchema:ct.oneOf[2],data:o};e===null?e=[k]:e.push(k),t++}var n=f===t;if(n&&O)O=!1,S=[S,2];else{n&&(O=!0,S=2);const k=t;if(o!==null){const I={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/3/type",keyword:"type",params:{type:"null"},message:"must be null",schema:ct.oneOf[3].type,parentSchema:ct.oneOf[3],data:o};e===null?e=[I]:e.push(I),t++}var n=k===t;n&&O?(O=!1,S=[S,3]):n&&(O=!0,S=3)}}if(O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:ct.oneOf,parentSchema:ct,data:o};e===null?e=[f]:e.push(f),t++}}}else{const g={instancePath:s+"/rows/"+c,schemaPath:"#/properties/rows/items/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Zt.properties.rows.items.type,parentSchema:Zt.properties.rows.items,data:y};e===null?e=[g]:e.push(g),t++}}}else{const h={instancePath:s+"/rows",schemaPath:"#/properties/rows/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Zt.properties.rows.type,parentSchema:Zt.properties.rows,data:i};e===null?e=[h]:e.push(h),t++}}if(a.source!==void 0){let i=a.source;if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.src===void 0){const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:re.required,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}for(const h in i)if(!(h==="src"||h==="sheet"||h==="range"||h==="fields"||h==="retrieved"||h==="description")){const c={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:re,data:i};e===null?e=[c]:e.push(c),t++}if(i.src!==void 0){let h=i.src;if(typeof h!="string"){const c={instancePath:s+"/source/src",schemaPath:"#/$defs/DataSourceRef/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.src.type,parentSchema:re.properties.src,data:h};e===null?e=[c]:e.push(c),t++}}if(i.sheet!==void 0){let h=i.sheet;if(typeof h!="string"){const c={instancePath:s+"/source/sheet",schemaPath:"#/$defs/DataSourceRef/properties/sheet/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.sheet.type,parentSchema:re.properties.sheet,data:h};e===null?e=[c]:e.push(c),t++}}if(i.range!==void 0){let h=i.range;if(typeof h!="string"){const c={instancePath:s+"/source/range",schemaPath:"#/$defs/DataSourceRef/properties/range/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.range.type,parentSchema:re.properties.range,data:h};e===null?e=[c]:e.push(c),t++}}if(i.fields!==void 0){let h=i.fields;if(Array.isArray(h)){const c=h.length;for(let y=0;y<c;y++){let g=h[y];if(typeof g!="string"){const l={instancePath:s+"/source/fields/"+y,schemaPath:"#/$defs/DataSourceRef/properties/fields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.fields.items.type,parentSchema:re.properties.fields.items,data:g};e===null?e=[l]:e.push(l),t++}}}else{const c={instancePath:s+"/source/fields",schemaPath:"#/$defs/DataSourceRef/properties/fields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:re.properties.fields.type,parentSchema:re.properties.fields,data:h};e===null?e=[c]:e.push(c),t++}}if(i.retrieved!==void 0){let h=i.retrieved;if(typeof h!="string"){const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.retrieved.type,parentSchema:re.properties.retrieved,data:h};e===null?e=[o]:e.push(o),t++}const c=t;let y=!1;const g=t;if(typeof h=="string"&&!xn.validate(h)){const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/0/format",keyword:"format",params:{format:"date"},message:'must match format "date"',schema:"date",parentSchema:re.properties.retrieved.anyOf[0],data:h};e===null?e=[o]:e.push(o),t++}var p=g===t;y=y||p;const l=t;if(typeof h=="string"&&!Nn.validate(h)){const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/1/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"',schema:"date-time",parentSchema:re.properties.retrieved.anyOf[1],data:h};e===null?e=[o]:e.push(o),t++}var p=l===t;if(y=y||p,y)t=c,e!==null&&(c?e.length=c:e=null);else{const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:re.properties.retrieved.anyOf,parentSchema:re.properties.retrieved,data:h};e===null?e=[o]:e.push(o),t++}}if(i.description!==void 0){let h=i.description;if(typeof h!="string"){const c={instancePath:s+"/source/description",schemaPath:"#/$defs/DataSourceRef/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.description.type,parentSchema:re.properties.description,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/type",keyword:"type",params:{type:"object"},message:"must be object",schema:re.type,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Zt.type,parentSchema:Zt,data:a};e===null?e=[i]:e.push(i),t++}return Gs.errors=e,t===0}Gs.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function er(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=er.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const n in a){const p=t;if(typeof n=="string"&&!Us.test(n)){const i={instancePath:s,schemaPath:"#/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$"},message:'must match pattern "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"',schema:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$",parentSchema:In.propertyNames,data:n,propertyName:n};e===null?e=[i]:e.push(i),t++}var r=p===t;if(!r){const i={instancePath:s,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName:n},message:"property name must be valid",schema:In.propertyNames,parentSchema:In,data:a};e===null?e=[i]:e.push(i),t++}}for(const n in a)Gs(a[n],{instancePath:s+"/"+n.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Gs.errors:e.concat(Gs.errors),t=e.length)}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:In.type,parentSchema:In,data:a};e===null?e=[n]:e.push(n),t++}return er.errors=e,t===0}er.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var zn=j.presentation.$defs.Assets;function tr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=tr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const p in a){const i=t;if(typeof p=="string"&&!Us.test(p)){const h={instancePath:s,schemaPath:"#/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$"},message:'must match pattern "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"',schema:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$",parentSchema:zn.propertyNames,data:p,propertyName:p};e===null?e=[h]:e.push(h),t++}var r=i===t;if(!r){const h={instancePath:s,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName:p},message:"property name must be valid",schema:zn.propertyNames,parentSchema:zn,data:a};e===null?e=[h]:e.push(h),t++}}for(const p in a){let i=a[p];const h=t;let c=!1,y=null;const g=t;if(typeof i!="string"){const o={instancePath:s+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:i};e===null?e=[o]:e.push(o),t++}var n=g===t;n&&(c=!0,y=0);const l=t;if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.src===void 0){const o={instancePath:s+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:i};e===null?e=[o]:e.push(o),t++}for(const o in i)if(!(o==="src"||o==="alt"||o==="title"||o==="description"||o==="mediaType")){const d={instancePath:s+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:i};e===null?e=[d]:e.push(d),t++}if(i.src!==void 0){let o=i.src;if(typeof o!="string"){const d={instancePath:s+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1")+"/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:o};e===null?e=[d]:e.push(d),t++}}if(i.alt!==void 0){let o=i.alt;if(typeof o!="string"){const d={instancePath:s+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1")+"/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:o};e===null?e=[d]:e.push(d),t++}}if(i.title!==void 0){let o=i.title;if(typeof o!="string"){const d={instancePath:s+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1")+"/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:o};e===null?e=[d]:e.push(d),t++}}if(i.description!==void 0){let o=i.description;if(typeof o!="string"){const d={instancePath:s+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1")+"/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:o};e===null?e=[d]:e.push(d),t++}}if(i.mediaType!==void 0){let o=i.mediaType;if(typeof o!="string"){const d={instancePath:s+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1")+"/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:o};e===null?e=[d]:e.push(d),t++}}}else{const o={instancePath:s+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:i};e===null?e=[o]:e.push(o),t++}var n=l===t;if(n&&c?(c=!1,y=[y,1]):n&&(c=!0,y=1),c)t=h,e!==null&&(h?e.length=h:e=null);else{const o={instancePath:s+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:i};e===null?e=[o]:e.push(o),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:zn.type,parentSchema:zn,data:a};e===null?e=[p]:e.push(p),t++}return tr.errors=e,t===0}tr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var da=j.presentation.$defs.Catalogs,bs=j.presentation.$defs.CatalogGroup,ar=j.presentation.$defs.CatalogSource,Y=j.presentation.$defs.CatalogRecords,mh=new RegExp("^(?:https://[^\\s]+|pkg:[^\\s]+)$","u");function Ia(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ia.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const C in a)if(!wa.call(bs.properties,C)){const T={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:C},message:"must NOT have additional properties",schema:!1,parentSchema:bs,data:a};e===null?e=[T]:e.push(T),t++}if(a.source!==void 0){let C=a.source;if(typeof C=="string"){if(!mh.test(C)){const T={instancePath:s+"/source",schemaPath:"#/$defs/CatalogSource/pattern",keyword:"pattern",params:{pattern:"^(?:https://[^\\s]+|pkg:[^\\s]+)$"},message:'must match pattern "^(?:https://[^\\s]+|pkg:[^\\s]+)$"',schema:"^(?:https://[^\\s]+|pkg:[^\\s]+)$",parentSchema:ar,data:C};e===null?e=[T]:e.push(T),t++}}else{const T={instancePath:s+"/source",schemaPath:"#/$defs/CatalogSource/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ar.type,parentSchema:ar,data:C};e===null?e=[T]:e.push(T),t++}}if(a.layouts!==void 0){let C=a.layouts;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/layouts",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var r=F===t;if(!r){const H={instancePath:s+"/layouts",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/layouts/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var n=Ke===t;G=G||n;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var n=at===t;if(G=G||n,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var p=ae===t;if(p){const R={instancePath:s+"/layouts/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/layouts",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}if(a.themes!==void 0){let C=a.themes;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/themes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var i=F===t;if(!i){const H={instancePath:s+"/themes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/themes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var h=Ke===t;G=G||h;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var h=at===t;if(G=G||h,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var c=ae===t;if(c){const R={instancePath:s+"/themes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/themes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}if(a.colorSchemes!==void 0){let C=a.colorSchemes;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/colorSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var y=F===t;if(!y){const H={instancePath:s+"/colorSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/colorSchemes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var g=Ke===t;G=G||g;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var g=at===t;if(G=G||g,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var l=ae===t;if(l){const R={instancePath:s+"/colorSchemes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/colorSchemes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}if(a.fontSchemes!==void 0){let C=a.fontSchemes;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/fontSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var o=F===t;if(!o){const H={instancePath:s+"/fontSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/fontSchemes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var d=Ke===t;G=G||d;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var d=at===t;if(G=G||d,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var O=ae===t;if(O){const R={instancePath:s+"/fontSchemes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/fontSchemes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}if(a.narratives!==void 0){let C=a.narratives;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/narratives",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var S=F===t;if(!S){const H={instancePath:s+"/narratives",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/narratives/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var w=Ke===t;G=G||w;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var w=at===t;if(G=G||w,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var q=ae===t;if(q){const R={instancePath:s+"/narratives/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/narratives",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}if(a.audiences!==void 0){let C=a.audiences;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/audiences",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var f=F===t;if(!f){const H={instancePath:s+"/audiences",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/audiences/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var P=Ke===t;G=G||P;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var P=at===t;if(G=G||P,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var k=ae===t;if(k){const R={instancePath:s+"/audiences/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/audiences",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}if(a.purposes!==void 0){let C=a.purposes;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/purposes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var D=F===t;if(!D){const H={instancePath:s+"/purposes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/purposes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var I=Ke===t;G=G||I;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var I=at===t;if(G=G||I,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var L=ae===t;if(L){const R={instancePath:s+"/purposes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/purposes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}if(a.tones!==void 0){let C=a.tones;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/tones",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var Z=F===t;if(!Z){const H={instancePath:s+"/tones",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/tones/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var M=Ke===t;G=G||M;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var M=at===t;if(G=G||M,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var J=ae===t;if(J){const R={instancePath:s+"/tones/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/tones",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}}else{const C={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:bs.type,parentSchema:bs,data:a};e===null?e=[C]:e.push(C),t++}return Ia.errors=e,t===0}Ia.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function sr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=sr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const c in a){const y=t;if(typeof c=="string"&&!gt.test(c)){const g={instancePath:s,schemaPath:"#/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:da.propertyNames,data:c,propertyName:c};e===null?e=[g]:e.push(g),t++}var r=y===t;if(!r){const g={instancePath:s,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName:c},message:"property name must be valid",schema:da.propertyNames,parentSchema:da,data:a};e===null?e=[g]:e.push(g),t++}}for(const c in a)if(!(c==="default"||c==="custom")){let y=a[c];if(Ia(y,{instancePath:s+"/"+c.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:a,parentDataProperty:c,rootData:v,dynamicAnchors:b})||(e=e===null?Ia.errors:e.concat(Ia.errors),t=e.length),y&&typeof y=="object"&&!Array.isArray(y)&&y.source===void 0){const g={instancePath:s+"/"+c.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/allOf/1/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:da.additionalProperties.allOf[1].required,parentSchema:da.additionalProperties.allOf[1],data:y};e===null?e=[g]:e.push(g),t++}}if(a.default!==void 0){let c=a.default;const y=t;let g=!1,l=null;const o=t;Ia(c,{instancePath:s+"/default",parentData:a,parentDataProperty:"default",rootData:v,dynamicAnchors:b})||(e=e===null?Ia.errors:e.concat(Ia.errors),t=e.length);const d=t;let O=!0;const S=t,w=t;let q=!1;const f=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.layouts===void 0){const C={};e===null?e=[C]:e.push(C),t++}var n=f===t;q=q||n;const P=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.themes===void 0){const C={};e===null?e=[C]:e.push(C),t++}var n=P===t;q=q||n;const k=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.colorSchemes===void 0){const C={};e===null?e=[C]:e.push(C),t++}var n=k===t;q=q||n;const D=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.fontSchemes===void 0){const C={};e===null?e=[C]:e.push(C),t++}var n=D===t;q=q||n;const I=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.narratives===void 0){const C={};e===null?e=[C]:e.push(C),t++}var n=I===t;q=q||n;const L=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.audiences===void 0){const C={};e===null?e=[C]:e.push(C),t++}var n=L===t;q=q||n;const Z=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.purposes===void 0){const C={};e===null?e=[C]:e.push(C),t++}var n=Z===t;q=q||n;const M=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.tones===void 0){const C={};e===null?e=[C]:e.push(C),t++}var n=M===t;if(q=q||n,q)t=w,e!==null&&(w?e.length=w:e=null);else{const C={};e===null?e=[C]:e.push(C),t++}var p=S===t;if(t=d,e!==null&&(d?e.length=d:e=null),p){const C=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.source===void 0){const F={instancePath:s+"/default",schemaPath:"#/properties/default/oneOf/0/allOf/1/then/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:da.properties.default.oneOf[0].allOf[1].then.required,parentSchema:da.properties.default.oneOf[0].allOf[1].then,data:c};e===null?e=[F]:e.push(F),t++}var p=C===t;O=p}if(!O){const C={instancePath:s+"/default",schemaPath:"#/properties/default/oneOf/0/allOf/1/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:da.properties.default.oneOf[0].allOf[1].if,parentSchema:da.properties.default.oneOf[0].allOf[1],data:c};e===null?e=[C]:e.push(C),t++}var i=o===t;i&&(g=!0,l=0);const J=t;if(c!==!1){const C={instancePath:s+"/default",schemaPath:"#/properties/default/oneOf/1/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:da.properties.default.oneOf[1],data:c};e===null?e=[C]:e.push(C),t++}var i=J===t;if(i&&g?(g=!1,l=[l,1]):i&&(g=!0,l=1),g)t=y,e!==null&&(y?e.length=y:e=null);else{const C={instancePath:s+"/default",schemaPath:"#/properties/default/oneOf",keyword:"oneOf",params:{passingSchemas:l},message:"must match exactly one schema in oneOf",schema:da.properties.default.oneOf,parentSchema:da.properties.default,data:c};e===null?e=[C]:e.push(C),t++}}if(a.custom!==void 0){let c=a.custom;Ia(c,{instancePath:s+"/custom",parentData:a,parentDataProperty:"custom",rootData:v,dynamicAnchors:b})||(e=e===null?Ia.errors:e.concat(Ia.errors),t=e.length);const y=t,g=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.source===void 0){const l={};e===null?e=[l]:e.push(l),t++}var h=g===t;if(h){const l={instancePath:s+"/custom",schemaPath:"#/properties/custom/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",schema:da.properties.custom.allOf[1].not,parentSchema:da.properties.custom.allOf[1],data:c};e===null?e=[l]:e.push(l),t++}else t=y,e!==null&&(y?e.length=y:e=null)}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:da.type,parentSchema:da,data:a};e===null?e=[c]:e.push(c),t++}return sr.errors=e,t===0}sr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Qn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.slides===void 0){const P={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"slides"},message:"must have required property 'slides'",schema:le.required,parentSchema:le,data:a};e===null?e=[P]:e.push(P),t++}for(const P in a)if(!wa.call(le.properties,P)){const k={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties",schema:!1,parentSchema:le,data:a};e===null?e=[k]:e.push(k),t++}if(a.$schema!==void 0){let P=a.$schema;if(typeof P!="string"){const k={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.$schema.type,parentSchema:le.properties.$schema,data:P};e===null?e=[k]:e.push(k),t++}if(P!=="https://openpresentation.org/schema/opf/v1"){const k={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf/v1",parentSchema:le.properties.$schema,data:P};e===null?e=[k]:e.push(k),t++}}if(a.name!==void 0){let P=a.name;if(typeof P!="string"){const k={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.name.type,parentSchema:le.properties.name,data:P};e===null?e=[k]:e.push(k),t++}}if(a.description!==void 0){let P=a.description;if(typeof P!="string"){const k={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.description.type,parentSchema:le.properties.description,data:P};e===null?e=[k]:e.push(k),t++}}if(a.filename!==void 0){let P=a.filename;if(typeof P!="string"){const k={instancePath:s+"/filename",schemaPath:"#/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.filename.type,parentSchema:le.properties.filename,data:P};e===null?e=[k]:e.push(k),t++}}if(a.organization!==void 0){let P=a.organization;const k=t;let D=!1,I=null;const L=t;Ra(P,{instancePath:s+"/organization",parentData:a,parentDataProperty:"organization",rootData:v,dynamicAnchors:b})||(e=e===null?Ra.errors:e.concat(Ra.errors),t=e.length);var n=L===t;if(n){D=!0,I=0;var r={};r.id=!0,r.name=!0,r.legalName=!0,r.logo=!0,r.domain=!0,r.email=!0,r.phone=!0,r.tagline=!0,r.role=!0,r.socials=!0}const Z=t;if(Array.isArray(P)){if(P.length<1){const J={instancePath:s+"/organization",schemaPath:"#/properties/organization/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:le.properties.organization.oneOf[1],data:P};e===null?e=[J]:e.push(J),t++}const M=P.length;for(let J=0;J<M;J++)Ra(P[J],{instancePath:s+"/organization/"+J,parentData:P,parentDataProperty:J,rootData:v,dynamicAnchors:b})||(e=e===null?Ra.errors:e.concat(Ra.errors),t=e.length)}else{const M={instancePath:s+"/organization",schemaPath:"#/properties/organization/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:le.properties.organization.oneOf[1].type,parentSchema:le.properties.organization.oneOf[1],data:P};e===null?e=[M]:e.push(M),t++}var n=Z===t;if(n&&D?(D=!1,I=[I,1]):n&&(D=!0,I=1),D)t=k,e!==null&&(k?e.length=k:e=null);else{const M={instancePath:s+"/organization",schemaPath:"#/properties/organization/oneOf",keyword:"oneOf",params:{passingSchemas:I},message:"must match exactly one schema in oneOf",schema:le.properties.organization.oneOf,parentSchema:le.properties.organization,data:P};e===null?e=[M]:e.push(M),t++}}if(a.speaker!==void 0){let P=a.speaker;const k=t;let D=!1,I=null;const L=t;Za(P,{instancePath:s+"/speaker",parentData:a,parentDataProperty:"speaker",rootData:v,dynamicAnchors:b})||(e=e===null?Za.errors:e.concat(Za.errors),t=e.length);var i=L===t;if(i){D=!0,I=0;var p={};p.id=!0,p.name=!0,p.title=!0,p.photo=!0,p.email=!0,p.phone=!0,p.bio=!0,p.organizationId=!0,p.socials=!0}const Z=t;if(Array.isArray(P)){if(P.length<1){const J={instancePath:s+"/speaker",schemaPath:"#/properties/speaker/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:le.properties.speaker.oneOf[1],data:P};e===null?e=[J]:e.push(J),t++}const M=P.length;for(let J=0;J<M;J++)Za(P[J],{instancePath:s+"/speaker/"+J,parentData:P,parentDataProperty:J,rootData:v,dynamicAnchors:b})||(e=e===null?Za.errors:e.concat(Za.errors),t=e.length)}else{const M={instancePath:s+"/speaker",schemaPath:"#/properties/speaker/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:le.properties.speaker.oneOf[1].type,parentSchema:le.properties.speaker.oneOf[1],data:P};e===null?e=[M]:e.push(M),t++}var i=Z===t;if(i&&D?(D=!1,I=[I,1]):i&&(D=!0,I=1),D)t=k,e!==null&&(k?e.length=k:e=null);else{const M={instancePath:s+"/speaker",schemaPath:"#/properties/speaker/oneOf",keyword:"oneOf",params:{passingSchemas:I},message:"must match exactly one schema in oneOf",schema:le.properties.speaker.oneOf,parentSchema:le.properties.speaker,data:P};e===null?e=[M]:e.push(M),t++}}if(a.author!==void 0){let P=a.author;const k=t;let D=!1,I=null;const L=t;if(typeof P!="string"){const M={instancePath:s+"/author",schemaPath:"#/properties/author/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.author.oneOf[0].type,parentSchema:le.properties.author.oneOf[0],data:P};e===null?e=[M]:e.push(M),t++}var h=L===t;h&&(D=!0,I=0);const Z=t;if(Array.isArray(P)){if(P.length<1){const J={instancePath:s+"/author",schemaPath:"#/properties/author/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:le.properties.author.oneOf[1],data:P};e===null?e=[J]:e.push(J),t++}const M=P.length;for(let J=0;J<M;J++){let C=P[J];if(typeof C!="string"){const T={instancePath:s+"/author/"+J,schemaPath:"#/properties/author/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.author.oneOf[1].items.type,parentSchema:le.properties.author.oneOf[1].items,data:C};e===null?e=[T]:e.push(T),t++}}}else{const M={instancePath:s+"/author",schemaPath:"#/properties/author/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:le.properties.author.oneOf[1].type,parentSchema:le.properties.author.oneOf[1],data:P};e===null?e=[M]:e.push(M),t++}var h=Z===t;if(h&&D?(D=!1,I=[I,1]):h&&(D=!0,I=1),D)t=k,e!==null&&(k?e.length=k:e=null);else{const M={instancePath:s+"/author",schemaPath:"#/properties/author/oneOf",keyword:"oneOf",params:{passingSchemas:I},message:"must match exactly one schema in oneOf",schema:le.properties.author.oneOf,parentSchema:le.properties.author,data:P};e===null?e=[M]:e.push(M),t++}}if(a.audience!==void 0){let P=a.audience;const k=t;let D=!1,I=null;const L=t;if(typeof P!="string"){const M={instancePath:s+"/audience",schemaPath:"#/properties/audience/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.audience.oneOf[0].type,parentSchema:le.properties.audience.oneOf[0],data:P};e===null?e=[M]:e.push(M),t++}var c=L===t;c&&(D=!0,I=0);const Z=t;Ma(P,{instancePath:s+"/audience",parentData:a,parentDataProperty:"audience",rootData:v,dynamicAnchors:b})||(e=e===null?Ma.errors:e.concat(Ma.errors),t=e.length);var c=Z===t;if(c&&D)D=!1,I=[I,1];else{if(c){D=!0,I=1;var y={};y.id=!0,y.name=!0,y.summary=!0,y.description=!0,y.seniority=!0,y.technicalFluency=!0,y.decisionPower=!0,y.attentionBudgetMinutes=!0,y.recommendedNarratives=!0,y.recommendedTones=!0,y.tags=!0}const M=t;if(Array.isArray(P)){if(P.length<1){const T={instancePath:s+"/audience",schemaPath:"#/properties/audience/oneOf/2/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:le.properties.audience.oneOf[2],data:P};e===null?e=[T]:e.push(T),t++}const C=P.length;for(let T=0;T<C;T++){let F=P[T];const H=t;let ae=!1,ee=null;const G=t;if(typeof F!="string"){const at={instancePath:s+"/audience/"+T,schemaPath:"#/properties/audience/oneOf/2/items/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.audience.oneOf[2].items.oneOf[0].type,parentSchema:le.properties.audience.oneOf[2].items.oneOf[0],data:F};e===null?e=[at]:e.push(at),t++}var g=G===t;g&&(ae=!0,ee=0);const Ke=t;Ma(F,{instancePath:s+"/audience/"+T,parentData:P,parentDataProperty:T,rootData:v,dynamicAnchors:b})||(e=e===null?Ma.errors:e.concat(Ma.errors),t=e.length);var g=Ke===t;if(g&&ae)ae=!1,ee=[ee,1];else if(g){ae=!0,ee=1;var l={};l.id=!0,l.name=!0,l.summary=!0,l.description=!0,l.seniority=!0,l.technicalFluency=!0,l.decisionPower=!0,l.attentionBudgetMinutes=!0,l.recommendedNarratives=!0,l.recommendedTones=!0,l.tags=!0}if(ae)t=H,e!==null&&(H?e.length=H:e=null);else{const at={instancePath:s+"/audience/"+T,schemaPath:"#/properties/audience/oneOf/2/items/oneOf",keyword:"oneOf",params:{passingSchemas:ee},message:"must match exactly one schema in oneOf",schema:le.properties.audience.oneOf[2].items.oneOf,parentSchema:le.properties.audience.oneOf[2].items,data:F};e===null?e=[at]:e.push(at),t++}}}else{const C={instancePath:s+"/audience",schemaPath:"#/properties/audience/oneOf/2/type",keyword:"type",params:{type:"array"},message:"must be array",schema:le.properties.audience.oneOf[2].type,parentSchema:le.properties.audience.oneOf[2],data:P};e===null?e=[C]:e.push(C),t++}var c=M===t;c&&D?(D=!1,I=[I,2]):c&&(D=!0,I=2)}if(D)t=k,e!==null&&(k?e.length=k:e=null);else{const M={instancePath:s+"/audience",schemaPath:"#/properties/audience/oneOf",keyword:"oneOf",params:{passingSchemas:I},message:"must match exactly one schema in oneOf",schema:le.properties.audience.oneOf,parentSchema:le.properties.audience,data:P};e===null?e=[M]:e.push(M),t++}}if(a.purpose!==void 0){let P=a.purpose;const k=t;let D=!1,I=null;const L=t;if(typeof P!="string"){const M={instancePath:s+"/purpose",schemaPath:"#/properties/purpose/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.purpose.oneOf[0].type,parentSchema:le.properties.purpose.oneOf[0],data:P};e===null?e=[M]:e.push(M),t++}var o=L===t;o&&(D=!0,I=0);const Z=t;js(P,{instancePath:s+"/purpose",parentData:a,parentDataProperty:"purpose",rootData:v,dynamicAnchors:b})||(e=e===null?js.errors:e.concat(js.errors),t=e.length);var o=Z===t;if(o&&D)D=!1,I=[I,1];else if(o){D=!0,I=1;var d={};d.id=!0,d.name=!0,d.summary=!0,d.description=!0,d.outcome=!0,d.successCriteria=!0,d.recommendedNarratives=!0,d.recommendedTones=!0,d.tags=!0}if(D)t=k,e!==null&&(k?e.length=k:e=null);else{const M={instancePath:s+"/purpose",schemaPath:"#/properties/purpose/oneOf",keyword:"oneOf",params:{passingSchemas:I},message:"must match exactly one schema in oneOf",schema:le.properties.purpose.oneOf,parentSchema:le.properties.purpose,data:P};e===null?e=[M]:e.push(M),t++}}if(a.language!==void 0){let P=a.language;const k=t;let D=!1,I=null;const L=t;if(typeof P=="string"){if(!Kn.test(P)){const M={instancePath:s+"/language",schemaPath:"#/$defs/LanguageTag/pattern",keyword:"pattern",params:{pattern:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"',schema:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$",parentSchema:ka,data:P};e===null?e=[M]:e.push(M),t++}}else{const M={instancePath:s+"/language",schemaPath:"#/$defs/LanguageTag/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ka.type,parentSchema:ka,data:P};e===null?e=[M]:e.push(M),t++}var O=L===t;O&&(D=!0,I=0);const Z=t;Fs(P,{instancePath:s+"/language",parentData:a,parentDataProperty:"language",rootData:v,dynamicAnchors:b})||(e=e===null?Fs.errors:e.concat(Fs.errors),t=e.length);var O=Z===t;if(O&&D)D=!1,I=[I,1];else if(O){D=!0,I=1;var S={};S.name=!0,S.bcp47=!0,S.ooxmlLang=!0,S.code=!0,S.direction=!0,S.script=!0,S.fontScheme=!0,S.googleFontScheme=!0,S.summary=!0,S.description=!0,S.tags=!0}if(D)t=k,e!==null&&(k?e.length=k:e=null);else{const M={instancePath:s+"/language",schemaPath:"#/properties/language/oneOf",keyword:"oneOf",params:{passingSchemas:I},message:"must match exactly one schema in oneOf",schema:le.properties.language.oneOf,parentSchema:le.properties.language,data:P};e===null?e=[M]:e.push(M),t++}}if(a.tone!==void 0){let P=a.tone;const k=t;let D=!1,I=null;const L=t;if(typeof P=="string"){if(!Vt.test(P)){const M={instancePath:s+"/tone",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:P};e===null?e=[M]:e.push(M),t++}}else{const M={instancePath:s+"/tone",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:P};e===null?e=[M]:e.push(M),t++}var w=L===t;w&&(D=!0,I=0);const Z=t;Ts(P,{instancePath:s+"/tone",parentData:a,parentDataProperty:"tone",rootData:v,dynamicAnchors:b})||(e=e===null?Ts.errors:e.concat(Ts.errors),t=e.length);var w=Z===t;if(w&&D)D=!1,I=[I,1];else if(w){D=!0,I=1;var q={};q.id=!0,q.name=!0,q.summary=!0,q.description=!0,q.voiceCues=!0,q.avoid=!0,q.samplePhrases=!0,q.recommendedNarratives=!0,q.tags=!0}if(D)t=k,e!==null&&(k?e.length=k:e=null);else{const M={instancePath:s+"/tone",schemaPath:"#/properties/tone/oneOf",keyword:"oneOf",params:{passingSchemas:I},message:"must match exactly one schema in oneOf",schema:le.properties.tone.oneOf,parentSchema:le.properties.tone,data:P};e===null?e=[M]:e.push(M),t++}}if(a.takeaway!==void 0){let P=a.takeaway;const k=t;let D=!1,I=null;const L=t;if(typeof P!="string"){const M={instancePath:s+"/takeaway",schemaPath:"#/properties/takeaway/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.takeaway.oneOf[0].type,parentSchema:le.properties.takeaway.oneOf[0],data:P};e===null?e=[M]:e.push(M),t++}var f=L===t;f&&(D=!0,I=0);const Z=t;if(Array.isArray(P)){if(P.length<1){const J={instancePath:s+"/takeaway",schemaPath:"#/properties/takeaway/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:le.properties.takeaway.oneOf[1],data:P};e===null?e=[J]:e.push(J),t++}const M=P.length;for(let J=0;J<M;J++){let C=P[J];if(typeof C!="string"){const T={instancePath:s+"/takeaway/"+J,schemaPath:"#/properties/takeaway/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.takeaway.oneOf[1].items.type,parentSchema:le.properties.takeaway.oneOf[1].items,data:C};e===null?e=[T]:e.push(T),t++}}}else{const M={instancePath:s+"/takeaway",schemaPath:"#/properties/takeaway/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:le.properties.takeaway.oneOf[1].type,parentSchema:le.properties.takeaway.oneOf[1],data:P};e===null?e=[M]:e.push(M),t++}var f=Z===t;if(f&&D?(D=!1,I=[I,1]):f&&(D=!0,I=1),D)t=k,e!==null&&(k?e.length=k:e=null);else{const M={instancePath:s+"/takeaway",schemaPath:"#/properties/takeaway/oneOf",keyword:"oneOf",params:{passingSchemas:I},message:"must match exactly one schema in oneOf",schema:le.properties.takeaway.oneOf,parentSchema:le.properties.takeaway,data:P};e===null?e=[M]:e.push(M),t++}}if(a.duration!==void 0){let P=a.duration;if(!(typeof P=="number"&&!(P%1)&&!isNaN(P))){const k={instancePath:s+"/duration",schemaPath:"#/properties/duration/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:le.properties.duration.type,parentSchema:le.properties.duration,data:P};e===null?e=[k]:e.push(k),t++}if(typeof P=="number"&&(P<1||isNaN(P))){const k={instancePath:s+"/duration",schemaPath:"#/properties/duration/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:le.properties.duration,data:P};e===null?e=[k]:e.push(k),t++}}if(a.tags!==void 0){let P=a.tags;if(Array.isArray(P)){const k=P.length;for(let D=0;D<k;D++){let I=P[D];if(typeof I!="string"){const L={instancePath:s+"/tags/"+D,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.tags.items.type,parentSchema:le.properties.tags.items,data:I};e===null?e=[L]:e.push(L),t++}}}else{const k={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:le.properties.tags.type,parentSchema:le.properties.tags,data:P};e===null?e=[k]:e.push(k),t++}}if(a.design!==void 0&&(Wa(a.design,{instancePath:s+"/design",parentData:a,parentDataProperty:"design",rootData:v,dynamicAnchors:b})||(e=e===null?Wa.errors:e.concat(Wa.errors),t=e.length)),a.variables!==void 0&&(_s(a.variables,{instancePath:s+"/variables",parentData:a,parentDataProperty:"variables",rootData:v,dynamicAnchors:b})||(e=e===null?_s.errors:e.concat(_s.errors),t=e.length)),a.template!==void 0){let P=a.template;if(typeof P!="boolean"){const k={instancePath:s+"/template",schemaPath:"#/properties/template/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:le.properties.template.type,parentSchema:le.properties.template,data:P};e===null?e=[k]:e.push(k),t++}}if(a.narrative!==void 0){let P=a.narrative;if(typeof P=="string"){if(!Vt.test(P)){const k={instancePath:s+"/narrative",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:P};e===null?e=[k]:e.push(k),t++}}else{const k={instancePath:s+"/narrative",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:P};e===null?e=[k]:e.push(k),t++}}if(a.slides!==void 0){let P=a.slides;if(Array.isArray(P)){if(P.length<1){const D={instancePath:s+"/slides",schemaPath:"#/properties/slides/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:le.properties.slides,data:P};e===null?e=[D]:e.push(D),t++}const k=P.length;for(let D=0;D<k;D++)Xs(P[D],{instancePath:s+"/slides/"+D,parentData:P,parentDataProperty:D,rootData:v,dynamicAnchors:b})||(e=e===null?Xs.errors:e.concat(Xs.errors),t=e.length)}else{const k={instancePath:s+"/slides",schemaPath:"#/properties/slides/type",keyword:"type",params:{type:"array"},message:"must be array",schema:le.properties.slides.type,parentSchema:le.properties.slides,data:P};e===null?e=[k]:e.push(k),t++}}if(a.references!==void 0){let P=a.references;if(Array.isArray(P)){const k=P.length;for(let D=0;D<k;D++)Qs(P[D],{instancePath:s+"/references/"+D,parentData:P,parentDataProperty:D,rootData:v,dynamicAnchors:b})||(e=e===null?Qs.errors:e.concat(Qs.errors),t=e.length)}else{const k={instancePath:s+"/references",schemaPath:"#/properties/references/type",keyword:"type",params:{type:"array"},message:"must be array",schema:le.properties.references.type,parentSchema:le.properties.references,data:P};e===null?e=[k]:e.push(k),t++}}if(a.datasets!==void 0&&(er(a.datasets,{instancePath:s+"/datasets",parentData:a,parentDataProperty:"datasets",rootData:v,dynamicAnchors:b})||(e=e===null?er.errors:e.concat(er.errors),t=e.length)),a.assets!==void 0&&(tr(a.assets,{instancePath:s+"/assets",parentData:a,parentDataProperty:"assets",rootData:v,dynamicAnchors:b})||(e=e===null?tr.errors:e.concat(tr.errors),t=e.length)),a.catalogs!==void 0&&(sr(a.catalogs,{instancePath:s+"/catalogs",parentData:a,parentDataProperty:"catalogs",rootData:v,dynamicAnchors:b})||(e=e===null?sr.errors:e.concat(sr.errors),t=e.length)),a.extensions!==void 0){let P=a.extensions;if(!(P&&typeof P=="object"&&!Array.isArray(P))){const k={instancePath:s+"/extensions",schemaPath:"#/properties/extensions/type",keyword:"type",params:{type:"object"},message:"must be object",schema:le.properties.extensions.type,parentSchema:le.properties.extensions,data:P};e===null?e=[k]:e.push(k),t++}}}else{const P={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:le.type,parentSchema:le,data:a};e===null?e=[P]:e.push(P),t++}return Qn.errors=e,t===0}Qn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch0=Gn,j.presentation.properties.organization.oneOf[0];function rr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=rr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const h={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ie.required,parentSchema:ie,data:a};e===null?e=[h]:e.push(h),t++}if(a.name===void 0){const h={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ie.required,parentSchema:ie,data:a};e===null?e=[h]:e.push(h),t++}if(a.id!==void 0){let h=a.id;if(typeof h=="string"){if(!Ns.test(h)){const c={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9_-]+$"},message:'must match pattern "^[a-zA-Z0-9_-]+$"',schema:"^[a-zA-Z0-9_-]+$",parentSchema:ie.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.id.type,parentSchema:ie.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}if(a.name!==void 0){let h=a.name;if(typeof h!="string"){const c={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.name.type,parentSchema:ie.properties.name,data:h};e===null?e=[c]:e.push(c),t++}}if(a.legalName!==void 0){let h=a.legalName;if(typeof h!="string"){const c={instancePath:s+"/legalName",schemaPath:"#/properties/legalName/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.legalName.type,parentSchema:ie.properties.legalName,data:h};e===null?e=[c]:e.push(c),t++}}if(a.logo!==void 0){let h=a.logo;const c=t;let y=!1,g=null;const l=t,o=t;let d=!1,O=null;const S=t;if(typeof h!="string"){const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:h};e===null?e=[f]:e.push(f),t++}var r=S===t;r&&(d=!0,O=0);const w=t;if(h&&typeof h=="object"&&!Array.isArray(h)){if(h.src===void 0){const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:h};e===null?e=[f]:e.push(f),t++}for(const f in h)if(!(f==="src"||f==="alt"||f==="title"||f==="description"||f==="mediaType")){const P={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:h};e===null?e=[P]:e.push(P),t++}if(h.src!==void 0){let f=h.src;if(typeof f!="string"){const P={instancePath:s+"/logo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:f};e===null?e=[P]:e.push(P),t++}}if(h.alt!==void 0){let f=h.alt;if(typeof f!="string"){const P={instancePath:s+"/logo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:f};e===null?e=[P]:e.push(P),t++}}if(h.title!==void 0){let f=h.title;if(typeof f!="string"){const P={instancePath:s+"/logo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:f};e===null?e=[P]:e.push(P),t++}}if(h.description!==void 0){let f=h.description;if(typeof f!="string"){const P={instancePath:s+"/logo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:f};e===null?e=[P]:e.push(P),t++}}if(h.mediaType!==void 0){let f=h.mediaType;if(typeof f!="string"){const P={instancePath:s+"/logo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:f};e===null?e=[P]:e.push(P),t++}}}else{const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:h};e===null?e=[f]:e.push(f),t++}var r=w===t;if(r&&d)d=!1,O=[O,1];else if(r){d=!0,O=1;var n=!0}if(d)t=o,e!==null&&(o?e.length=o:e=null);else{const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:O},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:h};e===null?e=[f]:e.push(f),t++}var p=l===t;p&&(y=!0,g=0);const q=t;Aa(h,{instancePath:s+"/logo",parentData:a,parentDataProperty:"logo",rootData:v,dynamicAnchors:b})||(e=e===null?Aa.errors:e.concat(Aa.errors),t=e.length);var p=q===t;if(p&&y?(y=!1,g=[g,1]):p&&(y=!0,g=1,n!==!0&&(n=!0)),y)t=c,e!==null&&(c?e.length=c:e=null);else{const f={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf",keyword:"oneOf",params:{passingSchemas:g},message:"must match exactly one schema in oneOf",schema:ie.properties.logo.oneOf,parentSchema:ie.properties.logo,data:h};e===null?e=[f]:e.push(f),t++}}if(a.domain!==void 0){let h=a.domain;if(typeof h!="string"){const c={instancePath:s+"/domain",schemaPath:"#/properties/domain/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.domain.type,parentSchema:ie.properties.domain,data:h};e===null?e=[c]:e.push(c),t++}}if(a.email!==void 0){let h=a.email;if(typeof h=="string"){if(!zs.test(h)){const c={instancePath:s+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"',schema:"email",parentSchema:ie.properties.email,data:h};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:s+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.email.type,parentSchema:ie.properties.email,data:h};e===null?e=[c]:e.push(c),t++}}if(a.phone!==void 0){let h=a.phone;if(typeof h!="string"){const c={instancePath:s+"/phone",schemaPath:"#/properties/phone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.phone.type,parentSchema:ie.properties.phone,data:h};e===null?e=[c]:e.push(c),t++}}if(a.tagline!==void 0){let h=a.tagline;if(typeof h!="string"){const c={instancePath:s+"/tagline",schemaPath:"#/properties/tagline/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.tagline.type,parentSchema:ie.properties.tagline,data:h};e===null?e=[c]:e.push(c),t++}}if(a.role!==void 0){let h=a.role;if(typeof h!="string"){const c={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.role.type,parentSchema:ie.properties.role,data:h};e===null?e=[c]:e.push(c),t++}if(!(h==="primary"||h==="partner"||h==="client"||h==="sponsor"||h==="host")){const c={instancePath:s+"/role",schemaPath:"#/properties/role/enum",keyword:"enum",params:{allowedValues:ie.properties.role.enum},message:"must be equal to one of the allowed values",schema:ie.properties.role.enum,parentSchema:ie.properties.role,data:h};e===null?e=[c]:e.push(c),t++}}if(a.socials!==void 0){let h=a.socials;if(h&&typeof h=="object"&&!Array.isArray(h)){for(const c in h){const y=t;if(!(c==="linkedin"||c==="x"||c==="github"||c==="youtube"||c==="instagram"||c==="facebook"||c==="tiktok"||c==="threads"||c==="mastodon"||c==="bluesky")){const g={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames/enum",keyword:"enum",params:{allowedValues:Fe.propertyNames.enum},message:"must be equal to one of the allowed values",schema:Fe.propertyNames.enum,parentSchema:Fe.propertyNames,data:c,propertyName:c};e===null?e=[g]:e.push(g),t++}var i=y===t;if(!i){const g={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames",keyword:"propertyNames",params:{propertyName:c},message:"property name must be valid",schema:Fe.propertyNames,parentSchema:Fe,data:h};e===null?e=[g]:e.push(g),t++}}for(const c in h){let y=h[c];if(typeof y!="string"){const g={instancePath:s+"/socials/"+c.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Socials/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Fe.additionalProperties.type,parentSchema:Fe.additionalProperties,data:y};e===null?e=[g]:e.push(g),t++}}}else{const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Fe.type,parentSchema:Fe,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ie.type,parentSchema:ie,data:a};e===null?e=[h]:e.push(h),t++}return rr.errors=e,t===0}rr.evaluated={props:{id:!0,name:!0,legalName:!0,logo:!0,domain:!0,email:!0,phone:!0,tagline:!0,role:!0,socials:!0},dynamicProps:!1,dynamicItems:!1};function Gn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Gn.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),rr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?rr.errors:e.concat(rr.errors),t=e.length),Gn.errors=e,t===0}Gn.evaluated={props:{id:!0,name:!0,legalName:!0,logo:!0,domain:!0,email:!0,phone:!0,tagline:!0,role:!0,socials:!0},dynamicProps:!1,dynamicItems:!1},$.branch1=eo;var Lc=j.presentation.properties.organization.oneOf[1];function nr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=nr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const h={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ie.required,parentSchema:ie,data:a};e===null?e=[h]:e.push(h),t++}if(a.name===void 0){const h={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ie.required,parentSchema:ie,data:a};e===null?e=[h]:e.push(h),t++}if(a.id!==void 0){let h=a.id;if(typeof h=="string"){if(!Ns.test(h)){const c={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9_-]+$"},message:'must match pattern "^[a-zA-Z0-9_-]+$"',schema:"^[a-zA-Z0-9_-]+$",parentSchema:ie.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.id.type,parentSchema:ie.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}if(a.name!==void 0){let h=a.name;if(typeof h!="string"){const c={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.name.type,parentSchema:ie.properties.name,data:h};e===null?e=[c]:e.push(c),t++}}if(a.legalName!==void 0){let h=a.legalName;if(typeof h!="string"){const c={instancePath:s+"/legalName",schemaPath:"#/properties/legalName/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.legalName.type,parentSchema:ie.properties.legalName,data:h};e===null?e=[c]:e.push(c),t++}}if(a.logo!==void 0){let h=a.logo;const c=t;let y=!1,g=null;const l=t,o=t;let d=!1,O=null;const S=t;if(typeof h!="string"){const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:h};e===null?e=[f]:e.push(f),t++}var r=S===t;r&&(d=!0,O=0);const w=t;if(h&&typeof h=="object"&&!Array.isArray(h)){if(h.src===void 0){const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:h};e===null?e=[f]:e.push(f),t++}for(const f in h)if(!(f==="src"||f==="alt"||f==="title"||f==="description"||f==="mediaType")){const P={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:h};e===null?e=[P]:e.push(P),t++}if(h.src!==void 0){let f=h.src;if(typeof f!="string"){const P={instancePath:s+"/logo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:f};e===null?e=[P]:e.push(P),t++}}if(h.alt!==void 0){let f=h.alt;if(typeof f!="string"){const P={instancePath:s+"/logo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:f};e===null?e=[P]:e.push(P),t++}}if(h.title!==void 0){let f=h.title;if(typeof f!="string"){const P={instancePath:s+"/logo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:f};e===null?e=[P]:e.push(P),t++}}if(h.description!==void 0){let f=h.description;if(typeof f!="string"){const P={instancePath:s+"/logo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:f};e===null?e=[P]:e.push(P),t++}}if(h.mediaType!==void 0){let f=h.mediaType;if(typeof f!="string"){const P={instancePath:s+"/logo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:f};e===null?e=[P]:e.push(P),t++}}}else{const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:h};e===null?e=[f]:e.push(f),t++}var r=w===t;if(r&&d)d=!1,O=[O,1];else if(r){d=!0,O=1;var n=!0}if(d)t=o,e!==null&&(o?e.length=o:e=null);else{const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:O},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:h};e===null?e=[f]:e.push(f),t++}var p=l===t;p&&(y=!0,g=0);const q=t;Aa(h,{instancePath:s+"/logo",parentData:a,parentDataProperty:"logo",rootData:v,dynamicAnchors:b})||(e=e===null?Aa.errors:e.concat(Aa.errors),t=e.length);var p=q===t;if(p&&y?(y=!1,g=[g,1]):p&&(y=!0,g=1,n!==!0&&(n=!0)),y)t=c,e!==null&&(c?e.length=c:e=null);else{const f={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf",keyword:"oneOf",params:{passingSchemas:g},message:"must match exactly one schema in oneOf",schema:ie.properties.logo.oneOf,parentSchema:ie.properties.logo,data:h};e===null?e=[f]:e.push(f),t++}}if(a.domain!==void 0){let h=a.domain;if(typeof h!="string"){const c={instancePath:s+"/domain",schemaPath:"#/properties/domain/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.domain.type,parentSchema:ie.properties.domain,data:h};e===null?e=[c]:e.push(c),t++}}if(a.email!==void 0){let h=a.email;if(typeof h=="string"){if(!zs.test(h)){const c={instancePath:s+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"',schema:"email",parentSchema:ie.properties.email,data:h};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:s+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.email.type,parentSchema:ie.properties.email,data:h};e===null?e=[c]:e.push(c),t++}}if(a.phone!==void 0){let h=a.phone;if(typeof h!="string"){const c={instancePath:s+"/phone",schemaPath:"#/properties/phone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.phone.type,parentSchema:ie.properties.phone,data:h};e===null?e=[c]:e.push(c),t++}}if(a.tagline!==void 0){let h=a.tagline;if(typeof h!="string"){const c={instancePath:s+"/tagline",schemaPath:"#/properties/tagline/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.tagline.type,parentSchema:ie.properties.tagline,data:h};e===null?e=[c]:e.push(c),t++}}if(a.role!==void 0){let h=a.role;if(typeof h!="string"){const c={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.role.type,parentSchema:ie.properties.role,data:h};e===null?e=[c]:e.push(c),t++}if(!(h==="primary"||h==="partner"||h==="client"||h==="sponsor"||h==="host")){const c={instancePath:s+"/role",schemaPath:"#/properties/role/enum",keyword:"enum",params:{allowedValues:ie.properties.role.enum},message:"must be equal to one of the allowed values",schema:ie.properties.role.enum,parentSchema:ie.properties.role,data:h};e===null?e=[c]:e.push(c),t++}}if(a.socials!==void 0){let h=a.socials;if(h&&typeof h=="object"&&!Array.isArray(h)){for(const c in h){const y=t;if(!(c==="linkedin"||c==="x"||c==="github"||c==="youtube"||c==="instagram"||c==="facebook"||c==="tiktok"||c==="threads"||c==="mastodon"||c==="bluesky")){const g={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames/enum",keyword:"enum",params:{allowedValues:Fe.propertyNames.enum},message:"must be equal to one of the allowed values",schema:Fe.propertyNames.enum,parentSchema:Fe.propertyNames,data:c,propertyName:c};e===null?e=[g]:e.push(g),t++}var i=y===t;if(!i){const g={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames",keyword:"propertyNames",params:{propertyName:c},message:"property name must be valid",schema:Fe.propertyNames,parentSchema:Fe,data:h};e===null?e=[g]:e.push(g),t++}}for(const c in h){let y=h[c];if(typeof y!="string"){const g={instancePath:s+"/socials/"+c.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Socials/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Fe.additionalProperties.type,parentSchema:Fe.additionalProperties,data:y};e===null?e=[g]:e.push(g),t++}}}else{const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Fe.type,parentSchema:Fe,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ie.type,parentSchema:ie,data:a};e===null?e=[h]:e.push(h),t++}return nr.errors=e,t===0}nr.evaluated={props:{id:!0,name:!0,legalName:!0,logo:!0,domain:!0,email:!0,phone:!0,tagline:!0,role:!0,socials:!0},dynamicProps:!1,dynamicItems:!1};function eo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=eo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Lc,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++)nr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?nr.errors:e.concat(nr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Lc.type,parentSchema:Lc,data:a};e===null?e=[r]:e.push(r),t++}return eo.errors=e,t===0}eo.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch2=to,j.presentation.properties.speaker.oneOf[0];function or(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=or.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Oe.required,parentSchema:Oe,data:a};e===null?e=[p]:e.push(p),t++}if(a.name===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Oe.required,parentSchema:Oe,data:a};e===null?e=[p]:e.push(p),t++}if(a.id!==void 0){let p=a.id;if(typeof p=="string"){if(!Ns.test(p)){const i={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9_-]+$"},message:'must match pattern "^[a-zA-Z0-9_-]+$"',schema:"^[a-zA-Z0-9_-]+$",parentSchema:Oe.properties.id,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.id.type,parentSchema:Oe.properties.id,data:p};e===null?e=[i]:e.push(i),t++}}if(a.name!==void 0){let p=a.name;if(typeof p!="string"){const i={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.name.type,parentSchema:Oe.properties.name,data:p};e===null?e=[i]:e.push(i),t++}}if(a.title!==void 0){let p=a.title;if(typeof p!="string"){const i={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.title.type,parentSchema:Oe.properties.title,data:p};e===null?e=[i]:e.push(i),t++}}if(a.photo!==void 0){let p=a.photo;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/photo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/photo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/photo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/photo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/photo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}if(a.email!==void 0){let p=a.email;if(typeof p=="string"){if(!zs.test(p)){const i={instancePath:s+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"',schema:"email",parentSchema:Oe.properties.email,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.email.type,parentSchema:Oe.properties.email,data:p};e===null?e=[i]:e.push(i),t++}}if(a.phone!==void 0){let p=a.phone;if(typeof p!="string"){const i={instancePath:s+"/phone",schemaPath:"#/properties/phone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.phone.type,parentSchema:Oe.properties.phone,data:p};e===null?e=[i]:e.push(i),t++}}if(a.bio!==void 0){let p=a.bio;if(typeof p!="string"){const i={instancePath:s+"/bio",schemaPath:"#/properties/bio/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.bio.type,parentSchema:Oe.properties.bio,data:p};e===null?e=[i]:e.push(i),t++}}if(a.organizationId!==void 0){let p=a.organizationId;if(typeof p!="string"){const i={instancePath:s+"/organizationId",schemaPath:"#/properties/organizationId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.organizationId.type,parentSchema:Oe.properties.organizationId,data:p};e===null?e=[i]:e.push(i),t++}}if(a.socials!==void 0){let p=a.socials;if(p&&typeof p=="object"&&!Array.isArray(p)){for(const i in p){const h=t;if(!(i==="linkedin"||i==="x"||i==="github"||i==="youtube"||i==="instagram"||i==="facebook"||i==="tiktok"||i==="threads"||i==="mastodon"||i==="bluesky")){const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames/enum",keyword:"enum",params:{allowedValues:Fe.propertyNames.enum},message:"must be equal to one of the allowed values",schema:Fe.propertyNames.enum,parentSchema:Fe.propertyNames,data:i,propertyName:i};e===null?e=[c]:e.push(c),t++}var n=h===t;if(!n){const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames",keyword:"propertyNames",params:{propertyName:i},message:"property name must be valid",schema:Fe.propertyNames,parentSchema:Fe,data:p};e===null?e=[c]:e.push(c),t++}}for(const i in p){let h=p[i];if(typeof h!="string"){const c={instancePath:s+"/socials/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Socials/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Fe.additionalProperties.type,parentSchema:Fe.additionalProperties,data:h};e===null?e=[c]:e.push(c),t++}}}else{const i={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Fe.type,parentSchema:Fe,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Oe.type,parentSchema:Oe,data:a};e===null?e=[p]:e.push(p),t++}return or.errors=e,t===0}or.evaluated={props:{id:!0,name:!0,title:!0,photo:!0,email:!0,phone:!0,bio:!0,organizationId:!0,socials:!0},dynamicProps:!1,dynamicItems:!1};function to(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=to.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),or(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?or.errors:e.concat(or.errors),t=e.length),to.errors=e,t===0}to.evaluated={props:{id:!0,name:!0,title:!0,photo:!0,email:!0,phone:!0,bio:!0,organizationId:!0,socials:!0},dynamicProps:!1,dynamicItems:!1},$.branch3=ao;var Rc=j.presentation.properties.speaker.oneOf[1];function pr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=pr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Oe.required,parentSchema:Oe,data:a};e===null?e=[p]:e.push(p),t++}if(a.name===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Oe.required,parentSchema:Oe,data:a};e===null?e=[p]:e.push(p),t++}if(a.id!==void 0){let p=a.id;if(typeof p=="string"){if(!Ns.test(p)){const i={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9_-]+$"},message:'must match pattern "^[a-zA-Z0-9_-]+$"',schema:"^[a-zA-Z0-9_-]+$",parentSchema:Oe.properties.id,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.id.type,parentSchema:Oe.properties.id,data:p};e===null?e=[i]:e.push(i),t++}}if(a.name!==void 0){let p=a.name;if(typeof p!="string"){const i={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.name.type,parentSchema:Oe.properties.name,data:p};e===null?e=[i]:e.push(i),t++}}if(a.title!==void 0){let p=a.title;if(typeof p!="string"){const i={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.title.type,parentSchema:Oe.properties.title,data:p};e===null?e=[i]:e.push(i),t++}}if(a.photo!==void 0){let p=a.photo;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/photo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/photo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/photo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/photo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/photo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}if(a.email!==void 0){let p=a.email;if(typeof p=="string"){if(!zs.test(p)){const i={instancePath:s+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"',schema:"email",parentSchema:Oe.properties.email,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.email.type,parentSchema:Oe.properties.email,data:p};e===null?e=[i]:e.push(i),t++}}if(a.phone!==void 0){let p=a.phone;if(typeof p!="string"){const i={instancePath:s+"/phone",schemaPath:"#/properties/phone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.phone.type,parentSchema:Oe.properties.phone,data:p};e===null?e=[i]:e.push(i),t++}}if(a.bio!==void 0){let p=a.bio;if(typeof p!="string"){const i={instancePath:s+"/bio",schemaPath:"#/properties/bio/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.bio.type,parentSchema:Oe.properties.bio,data:p};e===null?e=[i]:e.push(i),t++}}if(a.organizationId!==void 0){let p=a.organizationId;if(typeof p!="string"){const i={instancePath:s+"/organizationId",schemaPath:"#/properties/organizationId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oe.properties.organizationId.type,parentSchema:Oe.properties.organizationId,data:p};e===null?e=[i]:e.push(i),t++}}if(a.socials!==void 0){let p=a.socials;if(p&&typeof p=="object"&&!Array.isArray(p)){for(const i in p){const h=t;if(!(i==="linkedin"||i==="x"||i==="github"||i==="youtube"||i==="instagram"||i==="facebook"||i==="tiktok"||i==="threads"||i==="mastodon"||i==="bluesky")){const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames/enum",keyword:"enum",params:{allowedValues:Fe.propertyNames.enum},message:"must be equal to one of the allowed values",schema:Fe.propertyNames.enum,parentSchema:Fe.propertyNames,data:i,propertyName:i};e===null?e=[c]:e.push(c),t++}var n=h===t;if(!n){const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames",keyword:"propertyNames",params:{propertyName:i},message:"property name must be valid",schema:Fe.propertyNames,parentSchema:Fe,data:p};e===null?e=[c]:e.push(c),t++}}for(const i in p){let h=p[i];if(typeof h!="string"){const c={instancePath:s+"/socials/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Socials/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Fe.additionalProperties.type,parentSchema:Fe.additionalProperties,data:h};e===null?e=[c]:e.push(c),t++}}}else{const i={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Fe.type,parentSchema:Fe,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Oe.type,parentSchema:Oe,data:a};e===null?e=[p]:e.push(p),t++}return pr.errors=e,t===0}pr.evaluated={props:{id:!0,name:!0,title:!0,photo:!0,email:!0,phone:!0,bio:!0,organizationId:!0,socials:!0},dynamicProps:!1,dynamicItems:!1};function ao(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ao.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Rc,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++)pr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?pr.errors:e.concat(pr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Rc.type,parentSchema:Rc,data:a};e===null?e=[r]:e.push(r),t++}return ao.errors=e,t===0}ao.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch4=so;var ch=j.presentation.properties.author.oneOf[0];function so(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=so.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ch.type,parentSchema:ch,data:a};e===null?e=[r]:e.push(r),t++}return so.errors=e,t===0}so.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch5=ro;var jn=j.presentation.properties.author.oneOf[1];function ro(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ro.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:jn,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++){let p=a[n];if(typeof p!="string"){const i={instancePath:s+"/"+n,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:jn.items.type,parentSchema:jn.items,data:p};e===null?e=[i]:e.push(i),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:jn.type,parentSchema:jn,data:a};e===null?e=[r]:e.push(r),t++}return ro.errors=e,t===0}ro.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch6=no;var hh=j.presentation.properties.audience.oneOf[0];function no(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=no.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:hh.type,parentSchema:hh,data:a};e===null?e=[r]:e.push(r),t++}return no.errors=e,t===0}no.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch7=oo,j.presentation.properties.audience.oneOf[1];function ir(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ir.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const p=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:_.anyOf[0].required,parentSchema:_.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=p===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:_.anyOf[1].required,parentSchema:_.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:_.anyOf,parentSchema:_,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Vt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.name.type,parentSchema:_.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.summary.type,parentSchema:_.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.description.type,parentSchema:_.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.seniority!==void 0){let c=a.seniority;if(typeof c!="string"){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.seniority.type,parentSchema:_.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="ic"||c==="manager"||c==="director"||c==="vp"||c==="c-suite"||c==="mixed")){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/enum",keyword:"enum",params:{allowedValues:_.properties.seniority.enum},message:"must be equal to one of the allowed values",schema:_.properties.seniority.enum,parentSchema:_.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}}if(a.technicalFluency!==void 0){let c=a.technicalFluency;if(typeof c!="string"){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.technicalFluency.type,parentSchema:_.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="low"||c==="medium"||c==="high"||c==="mixed")){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/enum",keyword:"enum",params:{allowedValues:_.properties.technicalFluency.enum},message:"must be equal to one of the allowed values",schema:_.properties.technicalFluency.enum,parentSchema:_.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}}if(a.decisionPower!==void 0){let c=a.decisionPower;if(typeof c!="string"){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.decisionPower.type,parentSchema:_.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="informational"||c==="advisory"||c==="decision-maker")){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/enum",keyword:"enum",params:{allowedValues:_.properties.decisionPower.enum},message:"must be equal to one of the allowed values",schema:_.properties.decisionPower.enum,parentSchema:_.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}}if(a.attentionBudgetMinutes!==void 0){let c=a.attentionBudgetMinutes;if(typeof c=="number"){if(c<=0||isNaN(c)){const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:_.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/type",keyword:"type",params:{type:"number"},message:"must be number",schema:_.properties.attentionBudgetMinutes.type,parentSchema:_.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.recommendedNarratives.items.type,parentSchema:_.properties.recommendedNarratives.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_.properties.recommendedNarratives.type,parentSchema:_.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedTones!==void 0){let c=a.recommendedTones;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/recommendedTones/"+g,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.recommendedTones.items.type,parentSchema:_.properties.recommendedTones.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_.properties.recommendedTones.type,parentSchema:_.properties.recommendedTones,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.tags.items.type,parentSchema:_.properties.tags.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_.properties.tags.type,parentSchema:_.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:_.type,parentSchema:_,data:a};e===null?e=[c]:e.push(c),t++}return ir.errors=e,t===0}ir.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,seniority:!0,technicalFluency:!0,decisionPower:!0,attentionBudgetMinutes:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};function oo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=oo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),ir(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?ir.errors:e.concat(ir.errors),t=e.length),oo.errors=e,t===0}oo.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,seniority:!0,technicalFluency:!0,decisionPower:!0,attentionBudgetMinutes:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1},$.branch8=po;var Ss=j.presentation.properties.audience.oneOf[2];function mr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=mr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const p=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:_.anyOf[0].required,parentSchema:_.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=p===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:_.anyOf[1].required,parentSchema:_.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:_.anyOf,parentSchema:_,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Vt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.name.type,parentSchema:_.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.summary.type,parentSchema:_.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.description.type,parentSchema:_.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.seniority!==void 0){let c=a.seniority;if(typeof c!="string"){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.seniority.type,parentSchema:_.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="ic"||c==="manager"||c==="director"||c==="vp"||c==="c-suite"||c==="mixed")){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/enum",keyword:"enum",params:{allowedValues:_.properties.seniority.enum},message:"must be equal to one of the allowed values",schema:_.properties.seniority.enum,parentSchema:_.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}}if(a.technicalFluency!==void 0){let c=a.technicalFluency;if(typeof c!="string"){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.technicalFluency.type,parentSchema:_.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="low"||c==="medium"||c==="high"||c==="mixed")){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/enum",keyword:"enum",params:{allowedValues:_.properties.technicalFluency.enum},message:"must be equal to one of the allowed values",schema:_.properties.technicalFluency.enum,parentSchema:_.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}}if(a.decisionPower!==void 0){let c=a.decisionPower;if(typeof c!="string"){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.decisionPower.type,parentSchema:_.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="informational"||c==="advisory"||c==="decision-maker")){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/enum",keyword:"enum",params:{allowedValues:_.properties.decisionPower.enum},message:"must be equal to one of the allowed values",schema:_.properties.decisionPower.enum,parentSchema:_.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}}if(a.attentionBudgetMinutes!==void 0){let c=a.attentionBudgetMinutes;if(typeof c=="number"){if(c<=0||isNaN(c)){const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:_.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/type",keyword:"type",params:{type:"number"},message:"must be number",schema:_.properties.attentionBudgetMinutes.type,parentSchema:_.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.recommendedNarratives.items.type,parentSchema:_.properties.recommendedNarratives.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_.properties.recommendedNarratives.type,parentSchema:_.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedTones!==void 0){let c=a.recommendedTones;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/recommendedTones/"+g,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.recommendedTones.items.type,parentSchema:_.properties.recommendedTones.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_.properties.recommendedTones.type,parentSchema:_.properties.recommendedTones,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.tags.items.type,parentSchema:_.properties.tags.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_.properties.tags.type,parentSchema:_.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:_.type,parentSchema:_,data:a};e===null?e=[c]:e.push(c),t++}return mr.errors=e,t===0}mr.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,seniority:!0,technicalFluency:!0,decisionPower:!0,attentionBudgetMinutes:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};function po(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=po.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const i={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Ss,data:a};e===null?e=[i]:e.push(i),t++}const p=a.length;for(let i=0;i<p;i++){let h=a[i];const c=t;let y=!1,g=null;const l=t;if(typeof h!="string"){const d={instancePath:s+"/"+i,schemaPath:"#/items/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ss.items.oneOf[0].type,parentSchema:Ss.items.oneOf[0],data:h};e===null?e=[d]:e.push(d),t++}var r=l===t;r&&(y=!0,g=0);const o=t;mr(h,{instancePath:s+"/"+i,parentData:a,parentDataProperty:i,rootData:v,dynamicAnchors:b})||(e=e===null?mr.errors:e.concat(mr.errors),t=e.length);var r=o===t;if(r&&y)y=!1,g=[g,1];else if(r){y=!0,g=1;var n={};n.id=!0,n.name=!0,n.summary=!0,n.description=!0,n.seniority=!0,n.technicalFluency=!0,n.decisionPower=!0,n.attentionBudgetMinutes=!0,n.recommendedNarratives=!0,n.recommendedTones=!0,n.tags=!0}if(y)t=c,e!==null&&(c?e.length=c:e=null);else{const d={instancePath:s+"/"+i,schemaPath:"#/items/oneOf",keyword:"oneOf",params:{passingSchemas:g},message:"must match exactly one schema in oneOf",schema:Ss.items.oneOf,parentSchema:Ss.items,data:h};e===null?e=[d]:e.push(d),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ss.type,parentSchema:Ss,data:a};e===null?e=[p]:e.push(p),t++}return po.errors=e,t===0}po.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch9=io;var lh=j.presentation.properties.audience.oneOf[2].items.oneOf[0];function io(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=io.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:lh.type,parentSchema:lh,data:a};e===null?e=[r]:e.push(r),t++}return io.errors=e,t===0}io.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch10=mo,j.presentation.properties.audience.oneOf[2].items.oneOf[1];function cr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=cr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const p=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:_.anyOf[0].required,parentSchema:_.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=p===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:_.anyOf[1].required,parentSchema:_.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:_.anyOf,parentSchema:_,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Vt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.name.type,parentSchema:_.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.summary.type,parentSchema:_.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.description.type,parentSchema:_.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.seniority!==void 0){let c=a.seniority;if(typeof c!="string"){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.seniority.type,parentSchema:_.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="ic"||c==="manager"||c==="director"||c==="vp"||c==="c-suite"||c==="mixed")){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/enum",keyword:"enum",params:{allowedValues:_.properties.seniority.enum},message:"must be equal to one of the allowed values",schema:_.properties.seniority.enum,parentSchema:_.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}}if(a.technicalFluency!==void 0){let c=a.technicalFluency;if(typeof c!="string"){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.technicalFluency.type,parentSchema:_.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="low"||c==="medium"||c==="high"||c==="mixed")){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/enum",keyword:"enum",params:{allowedValues:_.properties.technicalFluency.enum},message:"must be equal to one of the allowed values",schema:_.properties.technicalFluency.enum,parentSchema:_.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}}if(a.decisionPower!==void 0){let c=a.decisionPower;if(typeof c!="string"){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.decisionPower.type,parentSchema:_.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="informational"||c==="advisory"||c==="decision-maker")){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/enum",keyword:"enum",params:{allowedValues:_.properties.decisionPower.enum},message:"must be equal to one of the allowed values",schema:_.properties.decisionPower.enum,parentSchema:_.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}}if(a.attentionBudgetMinutes!==void 0){let c=a.attentionBudgetMinutes;if(typeof c=="number"){if(c<=0||isNaN(c)){const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:_.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/type",keyword:"type",params:{type:"number"},message:"must be number",schema:_.properties.attentionBudgetMinutes.type,parentSchema:_.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.recommendedNarratives.items.type,parentSchema:_.properties.recommendedNarratives.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_.properties.recommendedNarratives.type,parentSchema:_.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedTones!==void 0){let c=a.recommendedTones;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/recommendedTones/"+g,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.recommendedTones.items.type,parentSchema:_.properties.recommendedTones.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_.properties.recommendedTones.type,parentSchema:_.properties.recommendedTones,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_.properties.tags.items.type,parentSchema:_.properties.tags.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_.properties.tags.type,parentSchema:_.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:_.type,parentSchema:_,data:a};e===null?e=[c]:e.push(c),t++}return cr.errors=e,t===0}cr.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,seniority:!0,technicalFluency:!0,decisionPower:!0,attentionBudgetMinutes:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};function mo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=mo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),cr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?cr.errors:e.concat(cr.errors),t=e.length),mo.errors=e,t===0}mo.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,seniority:!0,technicalFluency:!0,decisionPower:!0,attentionBudgetMinutes:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1},$.branch11=co;var dh=j.presentation.properties.purpose.oneOf[0];function co(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=co.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:dh.type,parentSchema:dh,data:a};e===null?e=[r]:e.push(r),t++}return co.errors=e,t===0}co.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch12=ho,j.presentation.properties.purpose.oneOf[1];function hr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=hr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const p=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Se.anyOf[0].required,parentSchema:Se.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=p===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Se.anyOf[1].required,parentSchema:Se.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:Se.anyOf,parentSchema:Se,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Vt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.name.type,parentSchema:Se.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.summary.type,parentSchema:Se.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.description.type,parentSchema:Se.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.outcome!==void 0){let c=a.outcome;if(typeof c!="string"){const y={instancePath:s+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.outcome.type,parentSchema:Se.properties.outcome,data:c};e===null?e=[y]:e.push(y),t++}}if(a.successCriteria!==void 0){let c=a.successCriteria;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/successCriteria/"+g,schemaPath:"#/properties/successCriteria/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.successCriteria.items.type,parentSchema:Se.properties.successCriteria.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/successCriteria",schemaPath:"#/properties/successCriteria/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Se.properties.successCriteria.type,parentSchema:Se.properties.successCriteria,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.recommendedNarratives.items.type,parentSchema:Se.properties.recommendedNarratives.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Se.properties.recommendedNarratives.type,parentSchema:Se.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedTones!==void 0){let c=a.recommendedTones;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/recommendedTones/"+g,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.recommendedTones.items.type,parentSchema:Se.properties.recommendedTones.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Se.properties.recommendedTones.type,parentSchema:Se.properties.recommendedTones,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Se.properties.tags.items.type,parentSchema:Se.properties.tags.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Se.properties.tags.type,parentSchema:Se.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Se.type,parentSchema:Se,data:a};e===null?e=[c]:e.push(c),t++}return hr.errors=e,t===0}hr.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,outcome:!0,successCriteria:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};function ho(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ho.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),hr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?hr.errors:e.concat(hr.errors),t=e.length),ho.errors=e,t===0}ho.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,outcome:!0,successCriteria:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1},$.branch13=lo,j.presentation.properties.language.oneOf[0];function lo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=lo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!Kn.test(a)){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/LanguageTag/pattern",keyword:"pattern",params:{pattern:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"',schema:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$",parentSchema:ka,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/LanguageTag/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ka.type,parentSchema:ka,data:a};e===null?e=[r]:e.push(r),t++}return lo.errors=e,t===0}lo.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch14=uo,j.presentation.properties.language.oneOf[1];function lr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=lr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t,n=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const i={};e===null?e=[i]:e.push(i),t++}var p=n===t;if(p){const i={instancePath:s,schemaPath:"#/not",keyword:"not",params:{},message:"must NOT be valid",schema:Te.not,parentSchema:Te,data:a};e===null?e=[i]:e.push(i),t++}else t=r,e!==null&&(r?e.length=r:e=null);if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.bcp47===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"bcp47"},message:"must have required property 'bcp47'",schema:Te.required,parentSchema:Te,data:a};e===null?e=[i]:e.push(i),t++}if(a.name!==void 0){let i=a.name;if(typeof i!="string"){const h={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.name.type,parentSchema:Te.properties.name,data:i};e===null?e=[h]:e.push(h),t++}}if(a.bcp47!==void 0){let i=a.bcp47;if(typeof i=="string"){if(!Kn.test(i)){const h={instancePath:s+"/bcp47",schemaPath:"#/$defs/LanguageTag/pattern",keyword:"pattern",params:{pattern:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"',schema:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$",parentSchema:ka,data:i};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/bcp47",schemaPath:"#/$defs/LanguageTag/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ka.type,parentSchema:ka,data:i};e===null?e=[h]:e.push(h),t++}}if(a.ooxmlLang!==void 0){let i=a.ooxmlLang;if(typeof i!="string"){const h={instancePath:s+"/ooxmlLang",schemaPath:"#/properties/ooxmlLang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.ooxmlLang.type,parentSchema:Te.properties.ooxmlLang,data:i};e===null?e=[h]:e.push(h),t++}}if(a.code!==void 0){let i=a.code;if(typeof i!="string"){const h={instancePath:s+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.code.type,parentSchema:Te.properties.code,data:i};e===null?e=[h]:e.push(h),t++}}if(a.direction!==void 0){let i=a.direction;if(typeof i!="string"){const h={instancePath:s+"/direction",schemaPath:"#/properties/direction/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.direction.type,parentSchema:Te.properties.direction,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="ltr"||i==="rtl")){const h={instancePath:s+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues:Te.properties.direction.enum},message:"must be equal to one of the allowed values",schema:Te.properties.direction.enum,parentSchema:Te.properties.direction,data:i};e===null?e=[h]:e.push(h),t++}}if(a.script!==void 0){let i=a.script;if(typeof i!="string"){const h={instancePath:s+"/script",schemaPath:"#/properties/script/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.script.type,parentSchema:Te.properties.script,data:i};e===null?e=[h]:e.push(h),t++}}if(a.fontScheme!==void 0){let i=a.fontScheme;if(typeof i=="string"){if(!Vt.test(i)){const h={instancePath:s+"/fontScheme",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:i};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/fontScheme",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:i};e===null?e=[h]:e.push(h),t++}}if(a.googleFontScheme!==void 0){let i=a.googleFontScheme;if(typeof i=="string"){if(!Vt.test(i)){const h={instancePath:s+"/googleFontScheme",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:i};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/googleFontScheme",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:i};e===null?e=[h]:e.push(h),t++}}if(a.summary!==void 0){let i=a.summary;if(typeof i!="string"){const h={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.summary.type,parentSchema:Te.properties.summary,data:i};e===null?e=[h]:e.push(h),t++}}if(a.description!==void 0){let i=a.description;if(typeof i!="string"){const h={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.description.type,parentSchema:Te.properties.description,data:i};e===null?e=[h]:e.push(h),t++}}if(a.tags!==void 0){let i=a.tags;if(Array.isArray(i)){const h=i.length;for(let c=0;c<h;c++){let y=i[c];if(typeof y!="string"){const g={instancePath:s+"/tags/"+c,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.properties.tags.items.type,parentSchema:Te.properties.tags.items,data:y};e===null?e=[g]:e.push(g),t++}}}else{const h={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Te.properties.tags.type,parentSchema:Te.properties.tags,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Te.type,parentSchema:Te,data:a};e===null?e=[i]:e.push(i),t++}return lr.errors=e,t===0}lr.evaluated={props:{name:!0,bcp47:!0,ooxmlLang:!0,code:!0,direction:!0,script:!0,fontScheme:!0,googleFontScheme:!0,summary:!0,description:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};function uo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=uo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),lr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?lr.errors:e.concat(lr.errors),t=e.length),uo.errors=e,t===0}uo.evaluated={props:{name:!0,bcp47:!0,ooxmlLang:!0,code:!0,direction:!0,script:!0,fontScheme:!0,googleFontScheme:!0,summary:!0,description:!0,tags:!0},dynamicProps:!1,dynamicItems:!1},$.branch15=yo,j.presentation.properties.tone.oneOf[0];function yo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=yo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!Vt.test(a)){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:a};e===null?e=[r]:e.push(r),t++}return yo.errors=e,t===0}yo.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch16=fo,j.presentation.properties.tone.oneOf[1];function dr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=dr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const p=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ve.anyOf[0].required,parentSchema:ve.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=p===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ve.anyOf[1].required,parentSchema:ve.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:ve.anyOf,parentSchema:ve,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Vt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.name.type,parentSchema:ve.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.summary.type,parentSchema:ve.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.description.type,parentSchema:ve.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.voiceCues!==void 0){let c=a.voiceCues;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/voiceCues/"+g,schemaPath:"#/properties/voiceCues/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.voiceCues.items.type,parentSchema:ve.properties.voiceCues.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/voiceCues",schemaPath:"#/properties/voiceCues/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.voiceCues.type,parentSchema:ve.properties.voiceCues,data:c};e===null?e=[y]:e.push(y),t++}}if(a.avoid!==void 0){let c=a.avoid;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/avoid/"+g,schemaPath:"#/properties/avoid/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.avoid.items.type,parentSchema:ve.properties.avoid.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/avoid",schemaPath:"#/properties/avoid/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.avoid.type,parentSchema:ve.properties.avoid,data:c};e===null?e=[y]:e.push(y),t++}}if(a.samplePhrases!==void 0){let c=a.samplePhrases;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/samplePhrases/"+g,schemaPath:"#/properties/samplePhrases/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.samplePhrases.items.type,parentSchema:ve.properties.samplePhrases.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/samplePhrases",schemaPath:"#/properties/samplePhrases/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.samplePhrases.type,parentSchema:ve.properties.samplePhrases,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.recommendedNarratives.items.type,parentSchema:ve.properties.recommendedNarratives.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.recommendedNarratives.type,parentSchema:ve.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const o={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.tags.items.type,parentSchema:ve.properties.tags.items,data:l};e===null?e=[o]:e.push(o),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.tags.type,parentSchema:ve.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ve.type,parentSchema:ve,data:a};e===null?e=[c]:e.push(c),t++}return dr.errors=e,t===0}dr.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,voiceCues:!0,avoid:!0,samplePhrases:!0,recommendedNarratives:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};function fo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=fo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),dr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?dr.errors:e.concat(dr.errors),t=e.length),fo.errors=e,t===0}fo.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,voiceCues:!0,avoid:!0,samplePhrases:!0,recommendedNarratives:!0,tags:!0},dynamicProps:!1,dynamicItems:!1},$.branch17=go;var uh=j.presentation.properties.takeaway.oneOf[0];function go(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=go.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:uh.type,parentSchema:uh,data:a};e===null?e=[r]:e.push(r),t++}return go.errors=e,t===0}go.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch18=Po;var Fn=j.presentation.properties.takeaway.oneOf[1];function Po(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Po.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Fn,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++){let p=a[n];if(typeof p!="string"){const i={instancePath:s+"/"+n,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Fn.items.type,parentSchema:Fn.items,data:p};e===null?e=[i]:e.push(i),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Fn.type,parentSchema:Fn,data:a};e===null?e=[r]:e.push(r),t++}return Po.errors=e,t===0}Po.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch19=vo;var yh=j.presentation.$defs.Asset.oneOf[0];function vo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yh.type,parentSchema:yh,data:a};e===null?e=[r]:e.push(r),t++}return vo.errors=e,t===0}vo.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch20=bo;var ba=j.presentation.$defs.Asset.oneOf[1];function bo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=bo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.src===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:ba.required,parentSchema:ba,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="src"||r==="alt"||r==="title"||r==="description"||r==="mediaType")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ba,data:a};e===null?e=[n]:e.push(n),t++}if(a.src!==void 0){let r=a.src;if(typeof r!="string"){const n={instancePath:s+"/src",schemaPath:"#/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ba.properties.src.type,parentSchema:ba.properties.src,data:r};e===null?e=[n]:e.push(n),t++}}if(a.alt!==void 0){let r=a.alt;if(typeof r!="string"){const n={instancePath:s+"/alt",schemaPath:"#/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ba.properties.alt.type,parentSchema:ba.properties.alt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.title!==void 0){let r=a.title;if(typeof r!="string"){const n={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ba.properties.title.type,parentSchema:ba.properties.title,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ba.properties.description.type,parentSchema:ba.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.mediaType!==void 0){let r=a.mediaType;if(typeof r!="string"){const n={instancePath:s+"/mediaType",schemaPath:"#/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ba.properties.mediaType.type,parentSchema:ba.properties.mediaType,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ba.type,parentSchema:ba,data:a};e===null?e=[r]:e.push(r),t++}return bo.errors=e,t===0}bo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch21=Oo;var fh=j.presentation.$defs.Audience.anyOf[0];function Oo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Oo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:fh.required,parentSchema:fh,data:a};e===null?e=[r]:e.push(r),t++}return Oo.errors=e,t===0}Oo.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch22=wo;var gh=j.presentation.$defs.Audience.anyOf[1];function wo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=wo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:gh.required,parentSchema:gh,data:a};e===null?e=[r]:e.push(r),t++}return wo.errors=e,t===0}wo.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch23=So;var Ph=j.presentation.$defs.Purpose.anyOf[0];function So(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=So.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Ph.required,parentSchema:Ph,data:a};e===null?e=[r]:e.push(r),t++}return So.errors=e,t===0}So.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch24=ko;var vh=j.presentation.$defs.Purpose.anyOf[1];function ko(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ko.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:vh.required,parentSchema:vh,data:a};e===null?e=[r]:e.push(r),t++}return ko.errors=e,t===0}ko.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch25=Ao;var bh=j.presentation.$defs.Tone.anyOf[0];function Ao(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ao.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:bh.required,parentSchema:bh,data:a};e===null?e=[r]:e.push(r),t++}return Ao.errors=e,t===0}Ao.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch26=Do;var Oh=j.presentation.$defs.Tone.anyOf[1];function Do(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Do.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Oh.required,parentSchema:Oh,data:a};e===null?e=[r]:e.push(r),t++}return Do.errors=e,t===0}Do.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch27=$o,j.presentation.$defs.Organization.properties.logo.oneOf[0];function $o(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$o.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.src===void 0){const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}for(const g in a)if(!(g==="src"||g==="alt"||g==="title"||g==="description"||g==="mediaType")){const l={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:a};e===null?e=[l]:e.push(l),t++}if(a.src!==void 0){let g=a.src;if(typeof g!="string"){const l={instancePath:s+"/src",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:g};e===null?e=[l]:e.push(l),t++}}if(a.alt!==void 0){let g=a.alt;if(typeof g!="string"){const l={instancePath:s+"/alt",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:g};e===null?e=[l]:e.push(l),t++}}if(a.title!==void 0){let g=a.title;if(typeof g!="string"){const l={instancePath:s+"/title",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:g};e===null?e=[l]:e.push(l),t++}}if(a.description!==void 0){let g=a.description;if(typeof g!="string"){const l={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:g};e===null?e=[l]:e.push(l),t++}}if(a.mediaType!==void 0){let g=a.mediaType;if(typeof g!="string"){const l={instancePath:s+"/mediaType",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:g};e===null?e=[l]:e.push(l),t++}}}else{const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}var c=h===t;if(c&&n)n=!1,p=[p,1];else if(c){n=!0,p=1;var y=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:a};e===null?e=[g]:e.push(g),t++}return $o.errors=e,m.props=y,t===0}$o.evaluated={dynamicProps:!0,dynamicItems:!1},$.branch28=qo,j.presentation.$defs.Organization.properties.logo.oneOf[1];function ur(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ur.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(Object.keys(a).length<1){const r={instancePath:s,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:fs,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="full"||r==="stacked"||r==="icon"||r==="wordmark")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:fs,data:a};e===null?e=[n]:e.push(n),t++}a.full!==void 0&&(St(a.full,{instancePath:s+"/full",parentData:a,parentDataProperty:"full",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length)),a.stacked!==void 0&&(St(a.stacked,{instancePath:s+"/stacked",parentData:a,parentDataProperty:"stacked",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length)),a.icon!==void 0&&(St(a.icon,{instancePath:s+"/icon",parentData:a,parentDataProperty:"icon",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length)),a.wordmark!==void 0&&(St(a.wordmark,{instancePath:s+"/wordmark",parentData:a,parentDataProperty:"wordmark",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length))}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:fs.type,parentSchema:fs,data:a};e===null?e=[r]:e.push(r),t++}return ur.errors=e,t===0}ur.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function qo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=qo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),ur(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?ur.errors:e.concat(ur.errors),t=e.length),qo.errors=e,t===0}qo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch29=xo;var wh=j.presentation.$defs.Design.properties.colorScheme.oneOf[0];function xo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:wh.type,parentSchema:wh,data:a};e===null?e=[r]:e.push(r),t++}return xo.errors=e,t===0}xo.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch30=No,j.presentation.$defs.Design.properties.colorScheme.oneOf[1];function yr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=yr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!Vt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent1!==void 0){let r=a.accent1;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent2!==void 0){let r=a.accent2;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent3!==void 0){let r=a.accent3;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent3",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent3",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent4!==void 0){let r=a.accent4;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent4",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent4",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent5!==void 0){let r=a.accent5;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent5",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent5",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent6!==void 0){let r=a.accent6;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent6",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent6",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dark1!==void 0){let r=a.dark1;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/dark1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dark1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dark2!==void 0){let r=a.dark2;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/dark2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dark2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.light1!==void 0){let r=a.light1;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/light1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/light1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.light2!==void 0){let r=a.light2;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/light2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/light2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.hyperlink!==void 0){let r=a.hyperlink;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/hyperlink",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/hyperlink",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.followedHyperlink!==void 0){let r=a.followedHyperlink;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/followedHyperlink",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/followedHyperlink",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.primary!==void 0){let r=a.primary;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/primary",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/primary",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.secondary!==void 0){let r=a.secondary;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/secondary",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/secondary",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent!==void 0){let r=a.accent;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.background!==void 0){let r=a.background;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/background",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/background",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.surface!==void 0){let r=a.surface;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/surface",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/surface",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.text!==void 0){let r=a.text;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/text",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/text",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.textSecondary!==void 0){let r=a.textSecondary;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/textSecondary",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/textSecondary",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Jn.type,parentSchema:Jn,data:a};e===null?e=[r]:e.push(r),t++}return yr.errors=e,t===0}yr.evaluated={props:{id:!0,accent1:!0,accent2:!0,accent3:!0,accent4:!0,accent5:!0,accent6:!0,dark1:!0,dark2:!0,light1:!0,light2:!0,hyperlink:!0,followedHyperlink:!0,primary:!0,secondary:!0,accent:!0,background:!0,surface:!0,text:!0,textSecondary:!0},dynamicProps:!1,dynamicItems:!1};function No(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=No.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),yr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?yr.errors:e.concat(yr.errors),t=e.length),No.errors=e,t===0}No.evaluated={props:{id:!0,accent1:!0,accent2:!0,accent3:!0,accent4:!0,accent5:!0,accent6:!0,dark1:!0,dark2:!0,light1:!0,light2:!0,hyperlink:!0,followedHyperlink:!0,primary:!0,secondary:!0,accent:!0,background:!0,surface:!0,text:!0,textSecondary:!0},dynamicProps:!1,dynamicItems:!1},$.branch31=Io;var Sh=j.presentation.$defs.Design.properties.fontScheme.oneOf[0];function Io(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Io.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Sh.type,parentSchema:Sh,data:a};e===null?e=[r]:e.push(r),t++}return Io.errors=e,t===0}Io.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch32=zo,j.presentation.$defs.Design.properties.fontScheme.oneOf[1];function fr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=fr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!Vt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:De,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.type,parentSchema:De,data:r};e===null?e=[n]:e.push(n),t++}}if(a.major!==void 0){let r=a.major;if(typeof r!="string"){const n={instancePath:s+"/major",schemaPath:"#/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.major.type,parentSchema:ne.properties.major,data:r};e===null?e=[n]:e.push(n),t++}}if(a.minor!==void 0){let r=a.minor;if(typeof r!="string"){const n={instancePath:s+"/minor",schemaPath:"#/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.minor.type,parentSchema:ne.properties.minor,data:r};e===null?e=[n]:e.push(n),t++}}if(a.eastAsian!==void 0){let r=a.eastAsian;if(r&&typeof r=="object"&&!Array.isArray(r)){if(Object.keys(r).length<1){const n={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:ne.properties.eastAsian,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="major"||n==="minor")){const p={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:ne.properties.eastAsian,data:r};e===null?e=[p]:e.push(p),t++}if(r.major!==void 0){let n=r.major;if(typeof n!="string"){const p={instancePath:s+"/eastAsian/major",schemaPath:"#/properties/eastAsian/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.eastAsian.properties.major.type,parentSchema:ne.properties.eastAsian.properties.major,data:n};e===null?e=[p]:e.push(p),t++}}if(r.minor!==void 0){let n=r.minor;if(typeof n!="string"){const p={instancePath:s+"/eastAsian/minor",schemaPath:"#/properties/eastAsian/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.eastAsian.properties.minor.type,parentSchema:ne.properties.eastAsian.properties.minor,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ne.properties.eastAsian.type,parentSchema:ne.properties.eastAsian,data:r};e===null?e=[n]:e.push(n),t++}}if(a.complexScript!==void 0){let r=a.complexScript;if(r&&typeof r=="object"&&!Array.isArray(r)){if(Object.keys(r).length<1){const n={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:ne.properties.complexScript,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="major"||n==="minor")){const p={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:ne.properties.complexScript,data:r};e===null?e=[p]:e.push(p),t++}if(r.major!==void 0){let n=r.major;if(typeof n!="string"){const p={instancePath:s+"/complexScript/major",schemaPath:"#/properties/complexScript/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.complexScript.properties.major.type,parentSchema:ne.properties.complexScript.properties.major,data:n};e===null?e=[p]:e.push(p),t++}}if(r.minor!==void 0){let n=r.minor;if(typeof n!="string"){const p={instancePath:s+"/complexScript/minor",schemaPath:"#/properties/complexScript/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.complexScript.properties.minor.type,parentSchema:ne.properties.complexScript.properties.minor,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ne.properties.complexScript.type,parentSchema:ne.properties.complexScript,data:r};e===null?e=[n]:e.push(n),t++}}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.type.type,parentSchema:ne.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="sans-serif"||r==="serif"||r==="monospace")){const n={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ne.properties.type.enum},message:"must be equal to one of the allowed values",schema:ne.properties.type.enum,parentSchema:ne.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.app!==void 0){let r=a.app;if(typeof r!="string"){const n={instancePath:s+"/app",schemaPath:"#/properties/app/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.app.type,parentSchema:ne.properties.app,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="powerpoint"||r==="google-slides")){const n={instancePath:s+"/app",schemaPath:"#/properties/app/enum",keyword:"enum",params:{allowedValues:ne.properties.app.enum},message:"must be equal to one of the allowed values",schema:ne.properties.app.enum,parentSchema:ne.properties.app,data:r};e===null?e=[n]:e.push(n),t++}}if(a.languageFamily!==void 0){let r=a.languageFamily;if(typeof r!="string"){const n={instancePath:s+"/languageFamily",schemaPath:"#/properties/languageFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.languageFamily.type,parentSchema:ne.properties.languageFamily,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="latin"||r==="ea"||r==="cs"||r==="eastAsian"||r==="complexScript")){const n={instancePath:s+"/languageFamily",schemaPath:"#/properties/languageFamily/enum",keyword:"enum",params:{allowedValues:ne.properties.languageFamily.enum},message:"must be equal to one of the allowed values",schema:ne.properties.languageFamily.enum,parentSchema:ne.properties.languageFamily,data:r};e===null?e=[n]:e.push(n),t++}}if(a.heading!==void 0){let r=a.heading;if(typeof r!="string"){const n={instancePath:s+"/heading",schemaPath:"#/properties/heading/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.heading.type,parentSchema:ne.properties.heading,data:r};e===null?e=[n]:e.push(n),t++}}if(a.body!==void 0){let r=a.body;if(typeof r!="string"){const n={instancePath:s+"/body",schemaPath:"#/properties/body/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.body.type,parentSchema:ne.properties.body,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent!==void 0){let r=a.accent;if(typeof r!="string"){const n={instancePath:s+"/accent",schemaPath:"#/properties/accent/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.accent.type,parentSchema:ne.properties.accent,data:r};e===null?e=[n]:e.push(n),t++}}if(a.code!==void 0){let r=a.code;if(typeof r!="string"){const n={instancePath:s+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.code.type,parentSchema:ne.properties.code,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ne.type,parentSchema:ne,data:a};e===null?e=[r]:e.push(r),t++}return fr.errors=e,t===0}fr.evaluated={props:{id:!0,major:!0,minor:!0,eastAsian:!0,complexScript:!0,type:!0,app:!0,languageFamily:!0,heading:!0,body:!0,accent:!0,code:!0},dynamicProps:!1,dynamicItems:!1};function zo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=zo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),fr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?fr.errors:e.concat(fr.errors),t=e.length),zo.errors=e,t===0}zo.evaluated={props:{id:!0,major:!0,minor:!0,eastAsian:!0,complexScript:!0,type:!0,app:!0,languageFamily:!0,heading:!0,body:!0,accent:!0,code:!0},dynamicProps:!1,dynamicItems:!1},$.branch33=jo,j.presentation.$defs.Design.properties.dimensions.oneOf[0];function jo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=jo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DimensionPreset/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="16:9"||a==="4:3"||a==="16:10"||a==="1:1"||a==="4:5"||a==="9:16"||a==="letter"||a==="a4"||a==="widescreen"||a==="standard")){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DimensionPreset/enum",keyword:"enum",params:{allowedValues:_t.enum},message:"must be equal to one of the allowed values",schema:_t.enum,parentSchema:_t,data:a};e===null?e=[r]:e.push(r),t++}return jo.errors=e,t===0}jo.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch34=Fo,j.presentation.$defs.Design.properties.dimensions.oneOf[1];function gr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=gr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.preset!==void 0){let r=a.preset;if(typeof r!="string"){const n={instancePath:s+"/preset",schemaPath:"#/$defs/DimensionPreset/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="16:9"||r==="4:3"||r==="16:10"||r==="1:1"||r==="4:5"||r==="9:16"||r==="letter"||r==="a4"||r==="widescreen"||r==="standard")){const n={instancePath:s+"/preset",schemaPath:"#/$defs/DimensionPreset/enum",keyword:"enum",params:{allowedValues:_t.enum},message:"must be equal to one of the allowed values",schema:_t.enum,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}}if(a.widthInches!==void 0){let r=a.widthInches;if(typeof r=="number"){if(r<=0||isNaN(r)){const n={instancePath:s+"/widthInches",schemaPath:"#/properties/widthInches/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ia.properties.widthInches,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/widthInches",schemaPath:"#/properties/widthInches/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ia.properties.widthInches.type,parentSchema:ia.properties.widthInches,data:r};e===null?e=[n]:e.push(n),t++}}if(a.heightInches!==void 0){let r=a.heightInches;if(typeof r=="number"){if(r<=0||isNaN(r)){const n={instancePath:s+"/heightInches",schemaPath:"#/properties/heightInches/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ia.properties.heightInches,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/heightInches",schemaPath:"#/properties/heightInches/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ia.properties.heightInches.type,parentSchema:ia.properties.heightInches,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ia.type,parentSchema:ia,data:a};e===null?e=[r]:e.push(r),t++}return gr.errors=e,t===0}gr.evaluated={props:{preset:!0,widthInches:!0,heightInches:!0},dynamicProps:!1,dynamicItems:!1};function Fo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Fo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),gr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?gr.errors:e.concat(gr.errors),t=e.length),Fo.errors=e,t===0}Fo.evaluated={props:{preset:!0,widthInches:!0,heightInches:!0},dynamicProps:!1,dynamicItems:!1},$.branch35=To,j.presentation.$defs.Design.properties.background.oneOf[0];function Pr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Pr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const y={instancePath:s,schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.type,parentSchema:je,data:a};e===null?e=[y]:e.push(y),t++}if(!(a==="light1"||a==="light2"||a==="dark1"||a==="dark2")){const y={instancePath:s,schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:je.enum},message:"must be equal to one of the allowed values",schema:je.enum,parentSchema:je,data:a};e===null?e=[y]:e.push(y),t++}var c=i===t;c&&(n=!0,p=0);const h=t;if(typeof a=="string"){if(!we.test(a)){const y={instancePath:s,schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:a};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s,schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:a};e===null?e=[y]:e.push(y),t++}var c=h===t;if(c&&n)n=!1,p=[p,1];else{c&&(n=!0,p=1);const y=t;if(typeof a=="string"){if(!Fc.test(a)){const l={instancePath:s,schemaPath:"#/$defs/ImageSource/pattern",keyword:"pattern",params:{pattern:"^(asset:|https://|data:|\\./|\\.\\./)"},message:'must match pattern "^(asset:|https://|data:|\\./|\\.\\./)"',schema:"^(asset:|https://|data:|\\./|\\.\\./)",parentSchema:Ba,data:a};e===null?e=[l]:e.push(l),t++}}else{const l={instancePath:s,schemaPath:"#/$defs/ImageSource/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ba.type,parentSchema:Ba,data:a};e===null?e=[l]:e.push(l),t++}var c=y===t;c&&n?(n=!1,p=[p,2]):c&&(n=!0,p=2)}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const y={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:Wn.oneOf,parentSchema:Wn,data:a};e===null?e=[y]:e.push(y),t++}return Pr.errors=e,t===0}Pr.evaluated={dynamicProps:!1,dynamicItems:!1};function To(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=To.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Pr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Pr.errors:e.concat(Pr.errors),t=e.length),To.errors=e,t===0}To.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch36=Co,j.presentation.$defs.Design.properties.background.oneOf[1];function ks(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ks.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;Ha(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Ha.errors:e.concat(Ha.errors),t=e.length);var y=i===t;if(y){n=!0,p=0;var h={};h.type=!0,h.slot=!0}const c=t;_a(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?_a.errors:e.concat(_a.errors),t=e.length);var y=c===t;if(y&&n)n=!1,p=[p,1];else{y&&(n=!0,p=1,h!==!0&&(h=h||{},h.type=!0,h.color=!0,h.opacity=!0));const g=t;Ea(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Ea.errors:e.concat(Ea.errors),t=e.length);var y=g===t;if(y&&n)n=!1,p=[p,2];else{y&&(n=!0,p=2,h!==!0&&(h=h||{},h.tone=!0,h.type=!0,h.gradient=!0,h.opacity=!0));const o=t;Ua(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Ua.errors:e.concat(Ua.errors),t=e.length);var y=o===t;if(y&&n)n=!1,p=[p,3];else{y&&(n=!0,p=3,h!==!0&&(h=!0));const O=t;Ka(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Ka.errors:e.concat(Ka.errors),t=e.length);var y=O===t;y&&n?(n=!1,p=[p,4]):y&&(n=!0,p=4,h!==!0&&(h=h||{},h.type=!0,h.pattern=!0,h.opacity=!0))}}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:Yn.oneOf,parentSchema:Yn,data:a};e===null?e=[g]:e.push(g),t++}return ks.errors=e,m.props=h,t===0}ks.evaluated={dynamicProps:!0,dynamicItems:!1};function Co(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Co.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),!ks(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b}))e=e===null?ks.errors:e.concat(ks.errors),t=e.length;else var r=ks.evaluated.props;return Co.errors=e,m.props=r,t===0}Co.evaluated={dynamicProps:!0,dynamicItems:!1},$.branch37=Vo,j.presentation.$defs.Design.properties.variant.oneOf[0];function Vo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Vo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.type,parentSchema:je,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="light1"||a==="light2"||a==="dark1"||a==="dark2")){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:je.enum},message:"must be equal to one of the allowed values",schema:je.enum,parentSchema:je,data:a};e===null?e=[r]:e.push(r),t++}return Vo.errors=e,t===0}Vo.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch38=Lo,j.presentation.$defs.Design.properties.variant.oneOf[1];function vr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.background===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"background"},message:"must have required property 'background'",schema:xe.required,parentSchema:xe,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="background"||r==="accents")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:xe,data:a};e===null?e=[n]:e.push(n),t++}if(a.background!==void 0){let r=a.background;if(typeof r!="string"){const n={instancePath:s+"/background",schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.type,parentSchema:je,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2")){const n={instancePath:s+"/background",schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:je.enum},message:"must be equal to one of the allowed values",schema:je.enum,parentSchema:je,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accents!==void 0){let r=a.accents;if(Array.isArray(r)){if(r.length>6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items",schema:6,parentSchema:xe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}if(r.length<6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/minItems",keyword:"minItems",params:{limit:6},message:"must NOT have fewer than 6 items",schema:6,parentSchema:xe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.properties.accents.items.type,parentSchema:xe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="accent1"||c==="accent2"||c==="accent3"||c==="accent4"||c==="accent5"||c==="accent6")){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/enum",keyword:"enum",params:{allowedValues:xe.properties.accents.items.enum},message:"must be equal to one of the allowed values",schema:xe.properties.accents.items.enum,parentSchema:xe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}}let p=r.length,i;if(p>1){const h={};for(;p--;){let c=r[p];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/accents",schemaPath:"#/properties/accents/uniqueItems",keyword:"uniqueItems",params:{i:p,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+p+" are identical)",schema:!0,parentSchema:xe.properties.accents,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=p}}}}else{const n={instancePath:s+"/accents",schemaPath:"#/properties/accents/type",keyword:"type",params:{type:"array"},message:"must be array",schema:xe.properties.accents.type,parentSchema:xe.properties.accents,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:xe.type,parentSchema:xe,data:a};e===null?e=[r]:e.push(r),t++}return vr.errors=e,t===0}vr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Lo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Lo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),vr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?vr.errors:e.concat(vr.errors),t=e.length),Lo.errors=e,t===0}Lo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch39=Ro;var Zc=j.presentation.$defs.Design.properties.logo.oneOf[0];function Ro(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ro.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!oh.test(a)){const r={instancePath:s,schemaPath:"#/pattern",keyword:"pattern",params:{pattern:"^var:organization(\\.[A-Za-z0-9_-]+)?\\.logo(\\.(full|stacked|icon|wordmark))?$"},message:'must match pattern "^var:organization(\\.[A-Za-z0-9_-]+)?\\.logo(\\.(full|stacked|icon|wordmark))?$"',schema:"^var:organization(\\.[A-Za-z0-9_-]+)?\\.logo(\\.(full|stacked|icon|wordmark))?$",parentSchema:Zc,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Zc.type,parentSchema:Zc,data:a};e===null?e=[r]:e.push(r),t++}return Ro.errors=e,t===0}Ro.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch40=Zo;var Mc=j.presentation.$defs.Design.properties.logo.oneOf[1];function Zo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Zo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Mc.type,parentSchema:Mc,data:a};e===null?e=[r]:e.push(r),t++}if(a!==!1){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:Mc,data:a};e===null?e=[r]:e.push(r),t++}return Zo.errors=e,t===0}Zo.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch41=Mo;var Bc=j.presentation.$defs.Design.properties.watermark.oneOf[0];function Mo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Mo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Bc.type,parentSchema:Bc,data:a};e===null?e=[r]:e.push(r),t++}if(a!==!1){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:Bc,data:a};e===null?e=[r]:e.push(r),t++}return Mo.errors=e,t===0}Mo.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch42=Bo,j.presentation.$defs.Design.properties.watermark.oneOf[1];function Bo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Bo.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.src===void 0){const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}for(const g in a)if(!(g==="src"||g==="alt"||g==="title"||g==="description"||g==="mediaType")){const l={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:a};e===null?e=[l]:e.push(l),t++}if(a.src!==void 0){let g=a.src;if(typeof g!="string"){const l={instancePath:s+"/src",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:g};e===null?e=[l]:e.push(l),t++}}if(a.alt!==void 0){let g=a.alt;if(typeof g!="string"){const l={instancePath:s+"/alt",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:g};e===null?e=[l]:e.push(l),t++}}if(a.title!==void 0){let g=a.title;if(typeof g!="string"){const l={instancePath:s+"/title",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:g};e===null?e=[l]:e.push(l),t++}}if(a.description!==void 0){let g=a.description;if(typeof g!="string"){const l={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:g};e===null?e=[l]:e.push(l),t++}}if(a.mediaType!==void 0){let g=a.mediaType;if(typeof g!="string"){const l={instancePath:s+"/mediaType",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:g};e===null?e=[l]:e.push(l),t++}}}else{const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}var c=h===t;if(c&&n)n=!1,p=[p,1];else if(c){n=!0,p=1;var y=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:a};e===null?e=[g]:e.push(g),t++}return Bo.errors=e,m.props=y,t===0}Bo.evaluated={dynamicProps:!0,dynamicItems:!1},$.branch43=Ho,j.presentation.$defs.Design.properties.watermark.oneOf[2];function Ho(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ho.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.src===void 0){const y={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/oneOf/0/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:mt.oneOf[0].required,parentSchema:mt.oneOf[0],data:a};e===null?e=[y]:e.push(y),t++}var c=i===t;c&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.text===void 0){const y={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:mt.oneOf[1].required,parentSchema:mt.oneOf[1],data:a};e===null?e=[y]:e.push(y),t++}var c=h===t;if(c&&n?(n=!1,p=[p,1]):c&&(n=!0,p=1),n)t=r,e!==null&&(r?e.length=r:e=null);else{const y={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:mt.oneOf,parentSchema:mt,data:a};e===null?e=[y]:e.push(y),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.opacity===void 0){const y={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/required",keyword:"required",params:{missingProperty:"opacity"},message:"must have required property 'opacity'",schema:mt.required,parentSchema:mt,data:a};e===null?e=[y]:e.push(y),t++}for(const y in a)if(!(y==="src"||y==="text"||y==="opacity")){const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties",schema:!1,parentSchema:mt,data:a};e===null?e=[g]:e.push(g),t++}if(a.src!==void 0){let y=a.src;if(typeof y!="string"){const g={instancePath:s+"/src",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:mt.properties.src.type,parentSchema:mt.properties.src,data:y};e===null?e=[g]:e.push(g),t++}}if(a.text!==void 0){let y=a.text;if(typeof y=="string"){if(me(y)<1){const g={instancePath:s+"/text",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/properties/text/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:mt.properties.text,data:y};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s+"/text",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:mt.properties.text.type,parentSchema:mt.properties.text,data:y};e===null?e=[g]:e.push(g),t++}}if(a.opacity!==void 0){let y=a.opacity;if(typeof y=="number"){if(y>1||isNaN(y)){const g={instancePath:s+"/opacity",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:mt.properties.opacity,data:y};e===null?e=[g]:e.push(g),t++}if(y<0||isNaN(y)){const g={instancePath:s+"/opacity",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:mt.properties.opacity,data:y};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s+"/opacity",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:mt.properties.opacity.type,parentSchema:mt.properties.opacity,data:y};e===null?e=[g]:e.push(g),t++}}}else{const y={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/type",keyword:"type",params:{type:"object"},message:"must be object",schema:mt.type,parentSchema:mt,data:a};e===null?e=[y]:e.push(y),t++}return Ho.errors=e,t===0}Ho.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch44=_o;var Hc=j.presentation.$defs.Design.properties.header.oneOf[0];function _o(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=_o.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Hc.type,parentSchema:Hc,data:a};e===null?e=[r]:e.push(r),t++}if(a!==!1){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:Hc,data:a};e===null?e=[r]:e.push(r),t++}return _o.errors=e,t===0}_o.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch45=Eo,j.presentation.$defs.Design.properties.header.oneOf[1];function br(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=br.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a))a.left!==void 0&&(vt(a.left,{instancePath:s+"/left",parentData:a,parentDataProperty:"left",rootData:v,dynamicAnchors:b})||(e=e===null?vt.errors:e.concat(vt.errors),t=e.length)),a.center!==void 0&&(vt(a.center,{instancePath:s+"/center",parentData:a,parentDataProperty:"center",rootData:v,dynamicAnchors:b})||(e=e===null?vt.errors:e.concat(vt.errors),t=e.length)),a.right!==void 0&&(vt(a.right,{instancePath:s+"/right",parentData:a,parentDataProperty:"right",rootData:v,dynamicAnchors:b})||(e=e===null?vt.errors:e.concat(vt.errors),t=e.length));else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Bs.type,parentSchema:Bs,data:a};e===null?e=[r]:e.push(r),t++}return br.errors=e,t===0}br.evaluated={props:{left:!0,center:!0,right:!0},dynamicProps:!1,dynamicItems:!1};function Eo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Eo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),br(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?br.errors:e.concat(br.errors),t=e.length),Eo.errors=e,t===0}Eo.evaluated={props:{left:!0,center:!0,right:!0},dynamicProps:!1,dynamicItems:!1},$.branch46=Uo;var _c=j.presentation.$defs.Design.properties.footer.oneOf[0];function Uo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Uo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:_c.type,parentSchema:_c,data:a};e===null?e=[r]:e.push(r),t++}if(a!==!1){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:_c,data:a};e===null?e=[r]:e.push(r),t++}return Uo.errors=e,t===0}Uo.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch47=Ko,j.presentation.$defs.Design.properties.footer.oneOf[1];function Or(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Or.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a))a.left!==void 0&&(vt(a.left,{instancePath:s+"/left",parentData:a,parentDataProperty:"left",rootData:v,dynamicAnchors:b})||(e=e===null?vt.errors:e.concat(vt.errors),t=e.length)),a.center!==void 0&&(vt(a.center,{instancePath:s+"/center",parentData:a,parentDataProperty:"center",rootData:v,dynamicAnchors:b})||(e=e===null?vt.errors:e.concat(vt.errors),t=e.length)),a.right!==void 0&&(vt(a.right,{instancePath:s+"/right",parentData:a,parentDataProperty:"right",rootData:v,dynamicAnchors:b})||(e=e===null?vt.errors:e.concat(vt.errors),t=e.length));else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Bs.type,parentSchema:Bs,data:a};e===null?e=[r]:e.push(r),t++}return Or.errors=e,t===0}Or.evaluated={props:{left:!0,center:!0,right:!0},dynamicProps:!1,dynamicItems:!1};function Ko(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ko.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Or(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Or.errors:e.concat(Or.errors),t=e.length),Ko.errors=e,t===0}Ko.evaluated={props:{left:!0,center:!0,right:!0},dynamicProps:!1,dynamicItems:!1},$.branch48=Jo,j.presentation.$defs.ColorRef.anyOf[0];function Jo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Jo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!we.test(a)){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:a};e===null?e=[r]:e.push(r),t++}return Jo.errors=e,t===0}Jo.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch49=Wo;var Tn=j.presentation.$defs.ColorRef.anyOf[1];function Wo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Wo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Tn.type,parentSchema:Tn,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="accent1"||a==="accent2"||a==="accent3"||a==="accent4"||a==="accent5"||a==="accent6"||a==="dark1"||a==="dark2"||a==="light1"||a==="light2"||a==="hyperlink"||a==="followedHyperlink"||a==="primary"||a==="secondary"||a==="accent"||a==="background"||a==="surface"||a==="surfaceAlt"||a==="text"||a==="textSecondary")){const r={instancePath:s,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Tn.enum},message:"must be equal to one of the allowed values",schema:Tn.enum,parentSchema:Tn,data:a};e===null?e=[r]:e.push(r),t++}return Wo.errors=e,t===0}Wo.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch50=Yo;var Ec=j.presentation.$defs.ColorRef.anyOf[2];function Yo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Yo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!Tc.test(a)){const r={instancePath:s,schemaPath:"#/pattern",keyword:"pattern",params:{pattern:"^var:[a-z][a-z0-9-]*$"},message:'must match pattern "^var:[a-z][a-z0-9-]*$"',schema:"^var:[a-z][a-z0-9-]*$",parentSchema:Ec,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ec.type,parentSchema:Ec,data:a};e===null?e=[r]:e.push(r),t++}return Yo.errors=e,t===0}Yo.evaluated={dynamicProps:!1,dynamicItems:!1},$.definition0=Xo;function Xo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Xo.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a=="string"){if(!we.test(a)){const g={instancePath:s,schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:a};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s,schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,p=0);const h=t;Ya(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Ya.errors:e.concat(Ya.errors),t=e.length);var c=h===t;if(c&&n)n=!1,p=[p,1];else{if(c){n=!0,p=1;var y=!0}const g=t;Xa(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Xa.errors:e.concat(Xa.errors),t=e.length);var c=g===t;if(c&&n)n=!1,p=[p,2];else{c&&(n=!0,p=2,y!==!0&&(y=!0));const o=t;Qa(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Qa.errors:e.concat(Qa.errors),t=e.length);var c=o===t;if(c&&n)n=!1,p=[p,3];else{c&&(n=!0,p=3,y!==!0&&(y=!0));const O=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const w={instancePath:s,schemaPath:"#/$defs/DateVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:oe.required,parentSchema:oe,data:a};e===null?e=[w]:e.push(w),t++}for(const w in a)if(!(w==="type"||w==="value"||w==="required"||w==="label"||w==="description"||w==="example"||w==="format")){const q={instancePath:s,schemaPath:"#/$defs/DateVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:w},message:"must NOT have additional properties",schema:!1,parentSchema:oe,data:a};e===null?e=[q]:e.push(q),t++}if(a.type!==void 0){let w=a.type;if(typeof w!="string"){const q={instancePath:s+"/type",schemaPath:"#/$defs/DateVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.type.type,parentSchema:oe.properties.type,data:w};e===null?e=[q]:e.push(q),t++}if(w!=="date"){const q={instancePath:s+"/type",schemaPath:"#/$defs/DateVariable/properties/type/const",keyword:"const",params:{allowedValue:"date"},message:"must be equal to constant",schema:"date",parentSchema:oe.properties.type,data:w};e===null?e=[q]:e.push(q),t++}}if(a.value!==void 0){let w=a.value;if(typeof w=="string"){if(!gs.test(w)){const q={instancePath:s+"/value",schemaPath:"#/$defs/DateVariable/properties/value/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:oe.properties.value,data:w};e===null?e=[q]:e.push(q),t++}}else{const q={instancePath:s+"/value",schemaPath:"#/$defs/DateVariable/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.value.type,parentSchema:oe.properties.value,data:w};e===null?e=[q]:e.push(q),t++}}if(a.required!==void 0){let w=a.required;if(typeof w!="boolean"){const q={instancePath:s+"/required",schemaPath:"#/$defs/DateVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:oe.properties.required.type,parentSchema:oe.properties.required,data:w};e===null?e=[q]:e.push(q),t++}}if(a.label!==void 0){let w=a.label;if(typeof w!="string"){const q={instancePath:s+"/label",schemaPath:"#/$defs/DateVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.label.type,parentSchema:oe.properties.label,data:w};e===null?e=[q]:e.push(q),t++}}if(a.description!==void 0){let w=a.description;if(typeof w!="string"){const q={instancePath:s+"/description",schemaPath:"#/$defs/DateVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.description.type,parentSchema:oe.properties.description,data:w};e===null?e=[q]:e.push(q),t++}}if(a.example!==void 0){let w=a.example;if(typeof w=="string"){if(!gs.test(w)){const q={instancePath:s+"/example",schemaPath:"#/$defs/DateVariable/properties/example/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:oe.properties.example,data:w};e===null?e=[q]:e.push(q),t++}}else{const q={instancePath:s+"/example",schemaPath:"#/$defs/DateVariable/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.example.type,parentSchema:oe.properties.example,data:w};e===null?e=[q]:e.push(q),t++}}if(a.format!==void 0){let w=a.format;if(typeof w!="string"){const q={instancePath:s+"/format",schemaPath:"#/$defs/DateVariable/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.format.type,parentSchema:oe.properties.format,data:w};e===null?e=[q]:e.push(q),t++}}}else{const w={instancePath:s,schemaPath:"#/$defs/DateVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:oe.type,parentSchema:oe,data:a};e===null?e=[w]:e.push(w),t++}var c=O===t;if(c&&n)n=!1,p=[p,4];else{c&&(n=!0,p=4,y!==!0&&(y=!0));const w=t;Ga(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Ga.errors:e.concat(Ga.errors),t=e.length);var c=w===t;if(c&&n)n=!1,p=[p,5];else{c&&(n=!0,p=5,y!==!0&&(y=!0));const f=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const k={instancePath:s,schemaPath:"#/$defs/UrlVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:he.required,parentSchema:he,data:a};e===null?e=[k]:e.push(k),t++}for(const k in a)if(!(k==="type"||k==="value"||k==="required"||k==="label"||k==="description"||k==="example")){const D={instancePath:s,schemaPath:"#/$defs/UrlVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties",schema:!1,parentSchema:he,data:a};e===null?e=[D]:e.push(D),t++}if(a.type!==void 0){let k=a.type;if(typeof k!="string"){const D={instancePath:s+"/type",schemaPath:"#/$defs/UrlVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.type.type,parentSchema:he.properties.type,data:k};e===null?e=[D]:e.push(D),t++}if(k!=="url"){const D={instancePath:s+"/type",schemaPath:"#/$defs/UrlVariable/properties/type/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant",schema:"url",parentSchema:he.properties.type,data:k};e===null?e=[D]:e.push(D),t++}}if(a.value!==void 0){let k=a.value;if(typeof k=="string"){if(!Ps.test(k)){const D={instancePath:s+"/value",schemaPath:"#/$defs/UrlVariable/properties/value/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:he.properties.value,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/value",schemaPath:"#/$defs/UrlVariable/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.value.type,parentSchema:he.properties.value,data:k};e===null?e=[D]:e.push(D),t++}}if(a.required!==void 0){let k=a.required;if(typeof k!="boolean"){const D={instancePath:s+"/required",schemaPath:"#/$defs/UrlVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:he.properties.required.type,parentSchema:he.properties.required,data:k};e===null?e=[D]:e.push(D),t++}}if(a.label!==void 0){let k=a.label;if(typeof k!="string"){const D={instancePath:s+"/label",schemaPath:"#/$defs/UrlVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.label.type,parentSchema:he.properties.label,data:k};e===null?e=[D]:e.push(D),t++}}if(a.description!==void 0){let k=a.description;if(typeof k!="string"){const D={instancePath:s+"/description",schemaPath:"#/$defs/UrlVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.description.type,parentSchema:he.properties.description,data:k};e===null?e=[D]:e.push(D),t++}}if(a.example!==void 0){let k=a.example;if(typeof k=="string"){if(!Ps.test(k)){const D={instancePath:s+"/example",schemaPath:"#/$defs/UrlVariable/properties/example/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:he.properties.example,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/example",schemaPath:"#/$defs/UrlVariable/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.example.type,parentSchema:he.properties.example,data:k};e===null?e=[D]:e.push(D),t++}}}else{const k={instancePath:s,schemaPath:"#/$defs/UrlVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:he.type,parentSchema:he,data:a};e===null?e=[k]:e.push(k),t++}var c=f===t;if(c&&n)n=!1,p=[p,6];else{c&&(n=!0,p=6,y!==!0&&(y=!0));const k=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const I={instancePath:s,schemaPath:"#/$defs/ListVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:pe.required,parentSchema:pe,data:a};e===null?e=[I]:e.push(I),t++}for(const I in a)if(!(I==="type"||I==="value"||I==="required"||I==="label"||I==="description"||I==="example")){const L={instancePath:s,schemaPath:"#/$defs/ListVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:I},message:"must NOT have additional properties",schema:!1,parentSchema:pe,data:a};e===null?e=[L]:e.push(L),t++}if(a.type!==void 0){let I=a.type;if(typeof I!="string"){const L={instancePath:s+"/type",schemaPath:"#/$defs/ListVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.type.type,parentSchema:pe.properties.type,data:I};e===null?e=[L]:e.push(L),t++}if(I!=="list"){const L={instancePath:s+"/type",schemaPath:"#/$defs/ListVariable/properties/type/const",keyword:"const",params:{allowedValue:"list"},message:"must be equal to constant",schema:"list",parentSchema:pe.properties.type,data:I};e===null?e=[L]:e.push(L),t++}}if(a.value!==void 0){let I=a.value;if(Array.isArray(I)){const L=I.length;for(let Z=0;Z<L;Z++){let M=I[Z];if(typeof M!="string"){const J={instancePath:s+"/value/"+Z,schemaPath:"#/$defs/ListVariable/properties/value/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.value.items.type,parentSchema:pe.properties.value.items,data:M};e===null?e=[J]:e.push(J),t++}}}else{const L={instancePath:s+"/value",schemaPath:"#/$defs/ListVariable/properties/value/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pe.properties.value.type,parentSchema:pe.properties.value,data:I};e===null?e=[L]:e.push(L),t++}}if(a.required!==void 0){let I=a.required;if(typeof I!="boolean"){const L={instancePath:s+"/required",schemaPath:"#/$defs/ListVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:pe.properties.required.type,parentSchema:pe.properties.required,data:I};e===null?e=[L]:e.push(L),t++}}if(a.label!==void 0){let I=a.label;if(typeof I!="string"){const L={instancePath:s+"/label",schemaPath:"#/$defs/ListVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.label.type,parentSchema:pe.properties.label,data:I};e===null?e=[L]:e.push(L),t++}}if(a.description!==void 0){let I=a.description;if(typeof I!="string"){const L={instancePath:s+"/description",schemaPath:"#/$defs/ListVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.description.type,parentSchema:pe.properties.description,data:I};e===null?e=[L]:e.push(L),t++}}if(a.example!==void 0){let I=a.example;if(Array.isArray(I)){const L=I.length;for(let Z=0;Z<L;Z++){let M=I[Z];if(typeof M!="string"){const J={instancePath:s+"/example/"+Z,schemaPath:"#/$defs/ListVariable/properties/example/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.example.items.type,parentSchema:pe.properties.example.items,data:M};e===null?e=[J]:e.push(J),t++}}}else{const L={instancePath:s+"/example",schemaPath:"#/$defs/ListVariable/properties/example/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pe.properties.example.type,parentSchema:pe.properties.example,data:I};e===null?e=[L]:e.push(L),t++}}}else{const I={instancePath:s,schemaPath:"#/$defs/ListVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:pe.type,parentSchema:pe,data:a};e===null?e=[I]:e.push(I),t++}var c=k===t;c&&n?(n=!1,p=[p,7]):c&&(n=!0,p=7,y!==!0&&(y=!0))}}}}}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:Xn.oneOf,parentSchema:Xn,data:a};e===null?e=[g]:e.push(g),t++}return Xo.errors=e,m.props=y,t===0}Xo.evaluated={dynamicProps:!0,dynamicItems:!1},$.branch51=Qo,j.presentation.$defs.Variable.oneOf[0];function Qo(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!we.test(a)){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:a};e===null?e=[r]:e.push(r),t++}return Qo.errors=e,t===0}Qo.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch52=Go,j.presentation.$defs.Variable.oneOf[1];function wr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=wr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:st.required,parentSchema:st,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:st,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.type.type,parentSchema:st.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="color"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"color"},message:"must be equal to constant",schema:"color",parentSchema:st.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/value",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/value",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:st.properties.required.type,parentSchema:st.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.label.type,parentSchema:st.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.description.type,parentSchema:st.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/example",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/example",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:st.type,parentSchema:st,data:a};e===null?e=[r]:e.push(r),t++}return wr.errors=e,t===0}wr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Go(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Go.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),wr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?wr.errors:e.concat(wr.errors),t=e.length),Go.errors=e,t===0}Go.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch53=ep,j.presentation.$defs.Variable.oneOf[2];function Sr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Sr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:de.required,parentSchema:de,data:a};e===null?e=[p]:e.push(p),t++}for(const p in a)if(!(p==="type"||p==="value"||p==="required"||p==="label"||p==="description"||p==="example")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:de,data:a};e===null?e=[i]:e.push(i),t++}if(a.type!==void 0){let p=a.type;if(typeof p!="string"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.type.type,parentSchema:de.properties.type,data:p};e===null?e=[i]:e.push(i),t++}if(p!=="text"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"text"},message:"must be equal to constant",schema:"text",parentSchema:de.properties.type,data:p};e===null?e=[i]:e.push(i),t++}}if(a.value!==void 0){let p=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.value.oneOf[0].type,parentSchema:de.properties.value.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(p)){const l=p.length;for(let o=0;o<l;o++)W(p[o],{instancePath:s+"/value/"+o,parentData:p,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:de.properties.value.oneOf[1].type,parentSchema:de.properties.value.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:de.properties.value.oneOf,parentSchema:de.properties.value,data:p};e===null?e=[l]:e.push(l),t++}}if(a.required!==void 0){let p=a.required;if(typeof p!="boolean"){const i={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:de.properties.required.type,parentSchema:de.properties.required,data:p};e===null?e=[i]:e.push(i),t++}}if(a.label!==void 0){let p=a.label;if(typeof p!="string"){const i={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.label.type,parentSchema:de.properties.label,data:p};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let p=a.description;if(typeof p!="string"){const i={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.description.type,parentSchema:de.properties.description,data:p};e===null?e=[i]:e.push(i),t++}}if(a.example!==void 0){let p=a.example;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.example.oneOf[0].type,parentSchema:de.properties.example.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(Array.isArray(p)){const l=p.length;for(let o=0;o<l;o++)W(p[o],{instancePath:s+"/example/"+o,parentData:p,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:de.properties.example.oneOf[1].type,parentSchema:de.properties.example.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:de.properties.example.oneOf,parentSchema:de.properties.example,data:p};e===null?e=[l]:e.push(l),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:de.type,parentSchema:de,data:a};e===null?e=[p]:e.push(p),t++}return Sr.errors=e,t===0}Sr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ep(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ep.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Sr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Sr.errors:e.concat(Sr.errors),t=e.length),ep.errors=e,t===0}ep.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch54=tp,j.presentation.$defs.Variable.oneOf[3];function kr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=kr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Ce.required,parentSchema:Ce,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ce,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.type.type,parentSchema:Ce.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="number"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"number"},message:"must be equal to constant",schema:"number",parentSchema:Ce.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r!="number"){const n={instancePath:s+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ce.properties.value.type,parentSchema:Ce.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Ce.properties.required.type,parentSchema:Ce.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.label.type,parentSchema:Ce.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.description.type,parentSchema:Ce.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r!="number"){const n={instancePath:s+"/example",schemaPath:"#/properties/example/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ce.properties.example.type,parentSchema:Ce.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rt.type,parentSchema:Rt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ce.type,parentSchema:Ce,data:a};e===null?e=[r]:e.push(r),t++}return kr.errors=e,t===0}kr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function tp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=tp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),kr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?kr.errors:e.concat(kr.errors),t=e.length),tp.errors=e,t===0}tp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch55=ap,j.presentation.$defs.Variable.oneOf[4];function ap(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ap.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:oe.required,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example"||r==="format")){const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:oe,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.type.type,parentSchema:oe.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="date"){const n={instancePath:s+"/type",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/type/const",keyword:"const",params:{allowedValue:"date"},message:"must be equal to constant",schema:"date",parentSchema:oe.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r=="string"){if(!gs.test(r)){const n={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/value/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:oe.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.value.type,parentSchema:oe.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:oe.properties.required.type,parentSchema:oe.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.label.type,parentSchema:oe.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.description.type,parentSchema:oe.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r=="string"){if(!gs.test(r)){const n={instancePath:s+"/example",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/example/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:oe.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/example",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.example.type,parentSchema:oe.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.format.type,parentSchema:oe.properties.format,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:oe.type,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}return ap.errors=e,t===0}ap.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch56=sp,j.presentation.$defs.Variable.oneOf[5];function Ar(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ar.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:rt.required,parentSchema:rt,data:a};e===null?e=[p]:e.push(p),t++}for(const p in a)if(!(p==="type"||p==="value"||p==="required"||p==="label"||p==="description"||p==="example")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:rt,data:a};e===null?e=[i]:e.push(i),t++}if(a.type!==void 0){let p=a.type;if(typeof p!="string"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:rt.properties.type.type,parentSchema:rt.properties.type,data:p};e===null?e=[i]:e.push(i),t++}if(p!=="image"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"image"},message:"must be equal to constant",schema:"image",parentSchema:rt.properties.type,data:p};e===null?e=[i]:e.push(i),t++}}if(a.value!==void 0){let p=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/value/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/value/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/value/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/value/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/value/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}if(a.required!==void 0){let p=a.required;if(typeof p!="boolean"){const i={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:rt.properties.required.type,parentSchema:rt.properties.required,data:p};e===null?e=[i]:e.push(i),t++}}if(a.label!==void 0){let p=a.label;if(typeof p!="string"){const i={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:rt.properties.label.type,parentSchema:rt.properties.label,data:p};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let p=a.description;if(typeof p!="string"){const i={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:rt.properties.description.type,parentSchema:rt.properties.description,data:p};e===null?e=[i]:e.push(i),t++}}if(a.example!==void 0){let p=a.example;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/example/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/example/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/example/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/example/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/example/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:rt.type,parentSchema:rt,data:a};e===null?e=[p]:e.push(p),t++}return Ar.errors=e,t===0}Ar.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function sp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=sp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Ar(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Ar.errors:e.concat(Ar.errors),t=e.length),sp.errors=e,t===0}sp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch57=rp,j.presentation.$defs.Variable.oneOf[6];function rp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=rp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:he.required,parentSchema:he,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example")){const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:he,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.type.type,parentSchema:he.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="url"){const n={instancePath:s+"/type",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/type/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant",schema:"url",parentSchema:he.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r=="string"){if(!Ps.test(r)){const n={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/value/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:he.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.value.type,parentSchema:he.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:he.properties.required.type,parentSchema:he.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.label.type,parentSchema:he.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.description.type,parentSchema:he.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r=="string"){if(!Ps.test(r)){const n={instancePath:s+"/example",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/example/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:he.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/example",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.example.type,parentSchema:he.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:he.type,parentSchema:he,data:a};e===null?e=[r]:e.push(r),t++}return rp.errors=e,t===0}rp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch58=np,j.presentation.$defs.Variable.oneOf[7];function np(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=np.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:pe.required,parentSchema:pe,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example")){const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:pe,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.type.type,parentSchema:pe.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="list"){const n={instancePath:s+"/type",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/type/const",keyword:"const",params:{allowedValue:"list"},message:"must be equal to constant",schema:"list",parentSchema:pe.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/value/"+p,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/value/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.value.items.type,parentSchema:pe.properties.value.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/value/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pe.properties.value.type,parentSchema:pe.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:pe.properties.required.type,parentSchema:pe.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.label.type,parentSchema:pe.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.description.type,parentSchema:pe.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/example/"+p,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/example/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.example.items.type,parentSchema:pe.properties.example.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/example",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/example/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pe.properties.example.type,parentSchema:pe.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:pe.type,parentSchema:pe,data:a};e===null?e=[r]:e.push(r),t++}return np.errors=e,t===0}np.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.definition1=op;function op(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=op.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:st.required,parentSchema:st,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:st,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.type.type,parentSchema:st.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="color"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"color"},message:"must be equal to constant",schema:"color",parentSchema:st.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/value",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/value",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:st.properties.required.type,parentSchema:st.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.label.type,parentSchema:st.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.description.type,parentSchema:st.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/example",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/example",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:st.type,parentSchema:st,data:a};e===null?e=[r]:e.push(r),t++}return op.errors=e,t===0}op.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.definition2=pp;function pp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=pp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:de.required,parentSchema:de,data:a};e===null?e=[p]:e.push(p),t++}for(const p in a)if(!(p==="type"||p==="value"||p==="required"||p==="label"||p==="description"||p==="example")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:de,data:a};e===null?e=[i]:e.push(i),t++}if(a.type!==void 0){let p=a.type;if(typeof p!="string"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.type.type,parentSchema:de.properties.type,data:p};e===null?e=[i]:e.push(i),t++}if(p!=="text"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"text"},message:"must be equal to constant",schema:"text",parentSchema:de.properties.type,data:p};e===null?e=[i]:e.push(i),t++}}if(a.value!==void 0){let p=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.value.oneOf[0].type,parentSchema:de.properties.value.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(p)){const l=p.length;for(let o=0;o<l;o++)W(p[o],{instancePath:s+"/value/"+o,parentData:p,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:de.properties.value.oneOf[1].type,parentSchema:de.properties.value.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:de.properties.value.oneOf,parentSchema:de.properties.value,data:p};e===null?e=[l]:e.push(l),t++}}if(a.required!==void 0){let p=a.required;if(typeof p!="boolean"){const i={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:de.properties.required.type,parentSchema:de.properties.required,data:p};e===null?e=[i]:e.push(i),t++}}if(a.label!==void 0){let p=a.label;if(typeof p!="string"){const i={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.label.type,parentSchema:de.properties.label,data:p};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let p=a.description;if(typeof p!="string"){const i={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.description.type,parentSchema:de.properties.description,data:p};e===null?e=[i]:e.push(i),t++}}if(a.example!==void 0){let p=a.example;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.example.oneOf[0].type,parentSchema:de.properties.example.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(Array.isArray(p)){const l=p.length;for(let o=0;o<l;o++)W(p[o],{instancePath:s+"/example/"+o,parentData:p,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:de.properties.example.oneOf[1].type,parentSchema:de.properties.example.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:de.properties.example.oneOf,parentSchema:de.properties.example,data:p};e===null?e=[l]:e.push(l),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:de.type,parentSchema:de,data:a};e===null?e=[p]:e.push(p),t++}return pp.errors=e,t===0}pp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch59=ip;var kh=j.presentation.$defs.TextVariable.properties.value.oneOf[0];function ip(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ip.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:kh.type,parentSchema:kh,data:a};e===null?e=[r]:e.push(r),t++}return ip.errors=e,t===0}ip.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch60=mp;var Ah=j.presentation.$defs.TextVariable.properties.value.oneOf[1];function Dr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Dr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return Dr.errors=e,m.props=l,t===0}Dr.evaluated={dynamicProps:!0,dynamicItems:!1};function mp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=mp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Dr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Dr.errors:e.concat(Dr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ah.type,parentSchema:Ah,data:a};e===null?e=[r]:e.push(r),t++}return mp.errors=e,t===0}mp.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch61=cp;var Dh=j.presentation.$defs.TextVariable.properties.example.oneOf[0];function cp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=cp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Dh.type,parentSchema:Dh,data:a};e===null?e=[r]:e.push(r),t++}return cp.errors=e,t===0}cp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch62=hp;var $h=j.presentation.$defs.TextVariable.properties.example.oneOf[1];function $r(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$r.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return $r.errors=e,m.props=l,t===0}$r.evaluated={dynamicProps:!0,dynamicItems:!1};function hp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=hp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)$r(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?$r.errors:e.concat($r.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$h.type,parentSchema:$h,data:a};e===null?e=[r]:e.push(r),t++}return hp.errors=e,t===0}hp.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.definition3=lp;function lp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=lp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Ce.required,parentSchema:Ce,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ce,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.type.type,parentSchema:Ce.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="number"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"number"},message:"must be equal to constant",schema:"number",parentSchema:Ce.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r!="number"){const n={instancePath:s+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ce.properties.value.type,parentSchema:Ce.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Ce.properties.required.type,parentSchema:Ce.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.label.type,parentSchema:Ce.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.description.type,parentSchema:Ce.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r!="number"){const n={instancePath:s+"/example",schemaPath:"#/properties/example/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ce.properties.example.type,parentSchema:Ce.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rt.type,parentSchema:Rt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ce.type,parentSchema:Ce,data:a};e===null?e=[r]:e.push(r),t++}return lp.errors=e,t===0}lp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.definition4=dp;function dp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=dp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:oe.required,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:oe,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.type.type,parentSchema:oe.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="date"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"date"},message:"must be equal to constant",schema:"date",parentSchema:oe.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r=="string"){if(!gs.test(r)){const n={instancePath:s+"/value",schemaPath:"#/properties/value/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:oe.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.value.type,parentSchema:oe.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:oe.properties.required.type,parentSchema:oe.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.label.type,parentSchema:oe.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.description.type,parentSchema:oe.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r=="string"){if(!gs.test(r)){const n={instancePath:s+"/example",schemaPath:"#/properties/example/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:oe.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/example",schemaPath:"#/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.example.type,parentSchema:oe.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.format.type,parentSchema:oe.properties.format,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:oe.type,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}return dp.errors=e,t===0}dp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.definition5=up;function up(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=up.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:rt.required,parentSchema:rt,data:a};e===null?e=[p]:e.push(p),t++}for(const p in a)if(!(p==="type"||p==="value"||p==="required"||p==="label"||p==="description"||p==="example")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:rt,data:a};e===null?e=[i]:e.push(i),t++}if(a.type!==void 0){let p=a.type;if(typeof p!="string"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:rt.properties.type.type,parentSchema:rt.properties.type,data:p};e===null?e=[i]:e.push(i),t++}if(p!=="image"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"image"},message:"must be equal to constant",schema:"image",parentSchema:rt.properties.type,data:p};e===null?e=[i]:e.push(i),t++}}if(a.value!==void 0){let p=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/value/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/value/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/value/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/value/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/value/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}if(a.required!==void 0){let p=a.required;if(typeof p!="boolean"){const i={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:rt.properties.required.type,parentSchema:rt.properties.required,data:p};e===null?e=[i]:e.push(i),t++}}if(a.label!==void 0){let p=a.label;if(typeof p!="string"){const i={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:rt.properties.label.type,parentSchema:rt.properties.label,data:p};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let p=a.description;if(typeof p!="string"){const i={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:rt.properties.description.type,parentSchema:rt.properties.description,data:p};e===null?e=[i]:e.push(i),t++}}if(a.example!==void 0){let p=a.example;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/example/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/example/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/example/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/example/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/example/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:rt.type,parentSchema:rt,data:a};e===null?e=[p]:e.push(p),t++}return up.errors=e,t===0}up.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.definition6=yp;function yp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=yp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:he.required,parentSchema:he,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:he,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.type.type,parentSchema:he.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="url"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant",schema:"url",parentSchema:he.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r=="string"){if(!Ps.test(r)){const n={instancePath:s+"/value",schemaPath:"#/properties/value/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:he.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.value.type,parentSchema:he.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:he.properties.required.type,parentSchema:he.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.label.type,parentSchema:he.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.description.type,parentSchema:he.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r=="string"){if(!Ps.test(r)){const n={instancePath:s+"/example",schemaPath:"#/properties/example/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:he.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/example",schemaPath:"#/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.example.type,parentSchema:he.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:he.type,parentSchema:he,data:a};e===null?e=[r]:e.push(r),t++}return yp.errors=e,t===0}yp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.definition7=fp;function fp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=fp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:pe.required,parentSchema:pe,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:pe,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.type.type,parentSchema:pe.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="list"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"list"},message:"must be equal to constant",schema:"list",parentSchema:pe.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/value/"+p,schemaPath:"#/properties/value/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.value.items.type,parentSchema:pe.properties.value.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pe.properties.value.type,parentSchema:pe.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:pe.properties.required.type,parentSchema:pe.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.label.type,parentSchema:pe.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.description.type,parentSchema:pe.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/example/"+p,schemaPath:"#/properties/example/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pe.properties.example.items.type,parentSchema:pe.properties.example.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/example",schemaPath:"#/properties/example/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pe.properties.example.type,parentSchema:pe.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:pe.type,parentSchema:pe,data:a};e===null?e=[r]:e.push(r),t++}return fp.errors=e,t===0}fp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch63=gp,j.presentation.$defs.BackgroundShortcut.oneOf[0];function gp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=gp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.type,parentSchema:je,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="light1"||a==="light2"||a==="dark1"||a==="dark2")){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:je.enum},message:"must be equal to one of the allowed values",schema:je.enum,parentSchema:je,data:a};e===null?e=[r]:e.push(r),t++}return gp.errors=e,t===0}gp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch64=Pp,j.presentation.$defs.BackgroundShortcut.oneOf[1];function Pp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Pp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!we.test(a)){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:a};e===null?e=[r]:e.push(r),t++}return Pp.errors=e,t===0}Pp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch65=vp,j.presentation.$defs.BackgroundShortcut.oneOf[2];function vp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!Fc.test(a)){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ImageSource/pattern",keyword:"pattern",params:{pattern:"^(asset:|https://|data:|\\./|\\.\\./)"},message:'must match pattern "^(asset:|https://|data:|\\./|\\.\\./)"',schema:"^(asset:|https://|data:|\\./|\\.\\./)",parentSchema:Ba,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ImageSource/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ba.type,parentSchema:Ba,data:a};e===null?e=[r]:e.push(r),t++}return vp.errors=e,t===0}vp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch66=bp,j.presentation.$defs.Background.oneOf[0];function qr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=qr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Gt.required,parentSchema:Gt,data:a};e===null?e=[r]:e.push(r),t++}if(a.slot===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"slot"},message:"must have required property 'slot'",schema:Gt.required,parentSchema:Gt,data:a};e===null?e=[r]:e.push(r),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Gt.properties.type.type,parentSchema:Gt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="theme"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"theme"},message:"must be equal to constant",schema:"theme",parentSchema:Gt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.slot!==void 0){let r=a.slot;if(typeof r!="string"){const n={instancePath:s+"/slot",schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.type,parentSchema:je,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2")){const n={instancePath:s+"/slot",schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:je.enum},message:"must be equal to one of the allowed values",schema:je.enum,parentSchema:je,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Gt.type,parentSchema:Gt,data:a};e===null?e=[r]:e.push(r),t++}return qr.errors=e,t===0}qr.evaluated={props:{type:!0,slot:!0},dynamicProps:!1,dynamicItems:!1};function bp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=bp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),qr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?qr.errors:e.concat(qr.errors),t=e.length),bp.errors=e,t===0}bp.evaluated={props:{type:!0,slot:!0},dynamicProps:!1,dynamicItems:!1},$.branch67=Op,j.presentation.$defs.Background.oneOf[1];function xr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Dt.required,parentSchema:Dt,data:a};e===null?e=[r]:e.push(r),t++}if(a.color===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:Dt.required,parentSchema:Dt,data:a};e===null?e=[r]:e.push(r),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Dt.properties.type.type,parentSchema:Dt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="solid"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"solid"},message:"must be equal to constant",schema:"solid",parentSchema:Dt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.color!==void 0&&(Be(a.color,{instancePath:s+"/color",parentData:a,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length)),a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Dt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Dt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Dt.properties.opacity.type,parentSchema:Dt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Dt.type,parentSchema:Dt,data:a};e===null?e=[r]:e.push(r),t++}return xr.errors=e,t===0}xr.evaluated={props:{type:!0,color:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1};function Op(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Op.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),xr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?xr.errors:e.concat(xr.errors),t=e.length),Op.errors=e,t===0}Op.evaluated={props:{type:!0,color:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1},$.branch68=wp,j.presentation.$defs.Background.oneOf[2];function Nr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Nr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Pe.required,parentSchema:Pe,data:a};e===null?e=[r]:e.push(r),t++}if(a.gradient===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"gradient"},message:"must have required property 'gradient'",schema:Pe.required,parentSchema:Pe,data:a};e===null?e=[r]:e.push(r),t++}if(a.tone!==void 0){let r=a.tone;if(typeof r!="string"){const n={instancePath:s+"/tone",schemaPath:"#/properties/tone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.tone.type,parentSchema:Pe.properties.tone,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="dark"||r==="light")){const n={instancePath:s+"/tone",schemaPath:"#/properties/tone/enum",keyword:"enum",params:{allowedValues:Pe.properties.tone.enum},message:"must be equal to one of the allowed values",schema:Pe.properties.tone.enum,parentSchema:Pe.properties.tone,data:r};e===null?e=[n]:e.push(n),t++}}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.type.type,parentSchema:Pe.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="gradient"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"gradient"},message:"must be equal to constant",schema:"gradient",parentSchema:Pe.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.gradient!==void 0){let r=a.gradient;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.angle!==void 0){let n=r.angle;if(typeof n!="number"){const p={instancePath:s+"/gradient/angle",schemaPath:"#/properties/gradient/properties/angle/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Pe.properties.gradient.properties.angle.type,parentSchema:Pe.properties.gradient.properties.angle,data:n};e===null?e=[p]:e.push(p),t++}}if(r.stops!==void 0){let n=r.stops;if(Array.isArray(n)){if(n.length<2){const i={instancePath:s+"/gradient/stops",schemaPath:"#/properties/gradient/properties/stops/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items",schema:2,parentSchema:Pe.properties.gradient.properties.stops,data:n};e===null?e=[i]:e.push(i),t++}const p=n.length;for(let i=0;i<p;i++){let h=n[i];if(h&&typeof h=="object"&&!Array.isArray(h)){if(h.color===void 0){const c={instancePath:s+"/gradient/stops/"+i,schemaPath:"#/properties/gradient/properties/stops/items/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:Pe.properties.gradient.properties.stops.items.required,parentSchema:Pe.properties.gradient.properties.stops.items,data:h};e===null?e=[c]:e.push(c),t++}if(h.position===void 0){const c={instancePath:s+"/gradient/stops/"+i,schemaPath:"#/properties/gradient/properties/stops/items/required",keyword:"required",params:{missingProperty:"position"},message:"must have required property 'position'",schema:Pe.properties.gradient.properties.stops.items.required,parentSchema:Pe.properties.gradient.properties.stops.items,data:h};e===null?e=[c]:e.push(c),t++}if(h.color!==void 0&&(Be(h.color,{instancePath:s+"/gradient/stops/"+i+"/color",parentData:h,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length)),h.position!==void 0){let c=h.position;if(typeof c=="number"){if(c>1||isNaN(c)){const y={instancePath:s+"/gradient/stops/"+i+"/position",schemaPath:"#/properties/gradient/properties/stops/items/properties/position/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Pe.properties.gradient.properties.stops.items.properties.position,data:c};e===null?e=[y]:e.push(y),t++}if(c<0||isNaN(c)){const y={instancePath:s+"/gradient/stops/"+i+"/position",schemaPath:"#/properties/gradient/properties/stops/items/properties/position/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Pe.properties.gradient.properties.stops.items.properties.position,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/gradient/stops/"+i+"/position",schemaPath:"#/properties/gradient/properties/stops/items/properties/position/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Pe.properties.gradient.properties.stops.items.properties.position.type,parentSchema:Pe.properties.gradient.properties.stops.items.properties.position,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s+"/gradient/stops/"+i,schemaPath:"#/properties/gradient/properties/stops/items/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Pe.properties.gradient.properties.stops.items.type,parentSchema:Pe.properties.gradient.properties.stops.items,data:h};e===null?e=[c]:e.push(c),t++}}}else{const p={instancePath:s+"/gradient/stops",schemaPath:"#/properties/gradient/properties/stops/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Pe.properties.gradient.properties.stops.type,parentSchema:Pe.properties.gradient.properties.stops,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/gradient",schemaPath:"#/properties/gradient/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Pe.properties.gradient.type,parentSchema:Pe.properties.gradient,data:r};e===null?e=[n]:e.push(n),t++}}if(a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Pe.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Pe.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Pe.properties.opacity.type,parentSchema:Pe.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Pe.type,parentSchema:Pe,data:a};e===null?e=[r]:e.push(r),t++}return Nr.errors=e,t===0}Nr.evaluated={props:{tone:!0,type:!0,gradient:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1};function wp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=wp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Nr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Nr.errors:e.concat(Nr.errors),t=e.length),wp.errors=e,t===0}wp.evaluated={props:{tone:!0,type:!0,gradient:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1},$.branch69=Sp,j.presentation.$defs.Background.oneOf[3];function Ir(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ir.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Ie.required,parentSchema:Ie,data:a};e===null?e=[r]:e.push(r),t++}if(a.src===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:Ie.required,parentSchema:Ie,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!wa.call(Ie.properties,r)){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ie,data:a};e===null?e=[n]:e.push(n),t++}if(a.tone!==void 0){let r=a.tone;if(typeof r!="string"){const n={instancePath:s+"/tone",schemaPath:"#/properties/tone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.properties.tone.type,parentSchema:Ie.properties.tone,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="dark"||r==="light")){const n={instancePath:s+"/tone",schemaPath:"#/properties/tone/enum",keyword:"enum",params:{allowedValues:Ie.properties.tone.enum},message:"must be equal to one of the allowed values",schema:Ie.properties.tone.enum,parentSchema:Ie.properties.tone,data:r};e===null?e=[n]:e.push(n),t++}}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.properties.type.type,parentSchema:Ie.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="image"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"image"},message:"must be equal to constant",schema:"image",parentSchema:Ie.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.src!==void 0){let r=a.src;if(typeof r!="string"){const n={instancePath:s+"/src",schemaPath:"#/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.properties.src.type,parentSchema:Ie.properties.src,data:r};e===null?e=[n]:e.push(n),t++}}if(a.alt!==void 0){let r=a.alt;if(typeof r!="string"){const n={instancePath:s+"/alt",schemaPath:"#/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.properties.alt.type,parentSchema:Ie.properties.alt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.fit!==void 0){let r=a.fit;if(typeof r!="string"){const n={instancePath:s+"/fit",schemaPath:"#/properties/fit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.properties.fit.type,parentSchema:Ie.properties.fit,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="cover"||r==="contain"||r==="stretch"||r==="tile")){const n={instancePath:s+"/fit",schemaPath:"#/properties/fit/enum",keyword:"enum",params:{allowedValues:Ie.properties.fit.enum},message:"must be equal to one of the allowed values",schema:Ie.properties.fit.enum,parentSchema:Ie.properties.fit,data:r};e===null?e=[n]:e.push(n),t++}}if(a.focus!==void 0){let r=a.focus;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.x===void 0){const n={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/required",keyword:"required",params:{missingProperty:"x"},message:"must have required property 'x'",schema:Ge.required,parentSchema:Ge,data:r};e===null?e=[n]:e.push(n),t++}if(r.y===void 0){const n={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/required",keyword:"required",params:{missingProperty:"y"},message:"must have required property 'y'",schema:Ge.required,parentSchema:Ge,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="x"||n==="y")){const p={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:Ge,data:r};e===null?e=[p]:e.push(p),t++}if(r.x!==void 0){let n=r.x;if(typeof n=="number"){if(n>1||isNaN(n)){const p={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Ge.properties.x,data:n};e===null?e=[p]:e.push(p),t++}if(n<0||isNaN(n)){const p={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ge.properties.x,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ge.properties.x.type,parentSchema:Ge.properties.x,data:n};e===null?e=[p]:e.push(p),t++}}if(r.y!==void 0){let n=r.y;if(typeof n=="number"){if(n>1||isNaN(n)){const p={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Ge.properties.y,data:n};e===null?e=[p]:e.push(p),t++}if(n<0||isNaN(n)){const p={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ge.properties.y,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ge.properties.y.type,parentSchema:Ge.properties.y,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ge.type,parentSchema:Ge,data:r};e===null?e=[n]:e.push(n),t++}}if(a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Ie.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ie.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ie.properties.opacity.type,parentSchema:Ie.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}a.recolor!==void 0&&($a(a.recolor,{instancePath:s+"/recolor",parentData:a,parentDataProperty:"recolor",rootData:v,dynamicAnchors:b})||(e=e===null?$a.errors:e.concat($a.errors),t=e.length)),a.overlay!==void 0&&(qa(a.overlay,{instancePath:s+"/overlay",parentData:a,parentDataProperty:"overlay",rootData:v,dynamicAnchors:b})||(e=e===null?qa.errors:e.concat(qa.errors),t=e.length))}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ie.type,parentSchema:Ie,data:a};e===null?e=[r]:e.push(r),t++}return Ir.errors=e,t===0}Ir.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Sp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Sp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Ir(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Ir.errors:e.concat(Ir.errors),t=e.length),Sp.errors=e,t===0}Sp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch70=kp,j.presentation.$defs.Background.oneOf[4];function zr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=zr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:lt.required,parentSchema:lt,data:a};e===null?e=[r]:e.push(r),t++}if(a.pattern===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pattern"},message:"must have required property 'pattern'",schema:lt.required,parentSchema:lt,data:a};e===null?e=[r]:e.push(r),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:lt.properties.type.type,parentSchema:lt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="pattern"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"pattern"},message:"must be equal to constant",schema:"pattern",parentSchema:lt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.pattern!==void 0){let r=a.pattern;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.preset===void 0){const n={instancePath:s+"/pattern",schemaPath:"#/properties/pattern/required",keyword:"required",params:{missingProperty:"preset"},message:"must have required property 'preset'",schema:lt.properties.pattern.required,parentSchema:lt.properties.pattern,data:r};e===null?e=[n]:e.push(n),t++}if(r.preset!==void 0){let n=r.preset;if(typeof n!="string"){const p={instancePath:s+"/pattern/preset",schemaPath:"#/properties/pattern/properties/preset/type",keyword:"type",params:{type:"string"},message:"must be string",schema:lt.properties.pattern.properties.preset.type,parentSchema:lt.properties.pattern.properties.preset,data:n};e===null?e=[p]:e.push(p),t++}}r.foregroundColor!==void 0&&(Be(r.foregroundColor,{instancePath:s+"/pattern/foregroundColor",parentData:r,parentDataProperty:"foregroundColor",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length)),r.backgroundColor!==void 0&&(Be(r.backgroundColor,{instancePath:s+"/pattern/backgroundColor",parentData:r,parentDataProperty:"backgroundColor",rootData:v,dynamicAnchors:b})||(e=e===null?Be.errors:e.concat(Be.errors),t=e.length))}else{const n={instancePath:s+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"object"},message:"must be object",schema:lt.properties.pattern.type,parentSchema:lt.properties.pattern,data:r};e===null?e=[n]:e.push(n),t++}}if(a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:lt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:lt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:lt.properties.opacity.type,parentSchema:lt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:lt.type,parentSchema:lt,data:a};e===null?e=[r]:e.push(r),t++}return zr.errors=e,t===0}zr.evaluated={props:{type:!0,pattern:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1};function kp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=kp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),zr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?zr.errors:e.concat(zr.errors),t=e.length),kp.errors=e,t===0}kp.evaluated={props:{type:!0,pattern:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1},$.branch71=Ap;var Uc=j.presentation.$defs.ImageRecolor.oneOf[0];function Ap(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ap.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Uc.type,parentSchema:Uc,data:a};e===null?e=[r]:e.push(r),t++}if(a!=="grayscale"){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:"grayscale"},message:"must be equal to constant",schema:"grayscale",parentSchema:Uc,data:a};e===null?e=[r]:e.push(r),t++}return Ap.errors=e,t===0}Ap.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch72=Dp;var As=j.presentation.$defs.ImageRecolor.oneOf[1];function hs(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=hs.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const p=t;if(typeof a=="string"){if(!we.test(a)){const y={instancePath:s,schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:E,data:a};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s,schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.type,parentSchema:E,data:a};e===null?e=[y]:e.push(y),t++}var c=p===t;n=n||c;const i=t;if(typeof a!="string"){const y={instancePath:s,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Et.anyOf[1].type,parentSchema:Et.anyOf[1],data:a};e===null?e=[y]:e.push(y),t++}if(!(a==="accent1"||a==="accent2"||a==="accent3"||a==="accent4"||a==="accent5"||a==="accent6"||a==="dark1"||a==="dark2"||a==="light1"||a==="light2"||a==="hyperlink"||a==="followedHyperlink"||a==="primary"||a==="secondary"||a==="accent"||a==="background"||a==="surface"||a==="surfaceAlt"||a==="text"||a==="textSecondary")){const y={instancePath:s,schemaPath:"#/anyOf/1/enum",keyword:"enum",params:{allowedValues:Et.anyOf[1].enum},message:"must be equal to one of the allowed values",schema:Et.anyOf[1].enum,parentSchema:Et.anyOf[1],data:a};e===null?e=[y]:e.push(y),t++}var c=i===t;n=n||c;const h=t;if(typeof a=="string"){if(!Tc.test(a)){const y={instancePath:s,schemaPath:"#/anyOf/2/pattern",keyword:"pattern",params:{pattern:"^var:[a-z][a-z0-9-]*$"},message:'must match pattern "^var:[a-z][a-z0-9-]*$"',schema:"^var:[a-z][a-z0-9-]*$",parentSchema:Et.anyOf[2],data:a};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Et.anyOf[2].type,parentSchema:Et.anyOf[2],data:a};e===null?e=[y]:e.push(y),t++}var c=h===t;if(n=n||c,n)t=r,e!==null&&(r?e.length=r:e=null);else{const y={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:Et.anyOf,parentSchema:Et,data:a};e===null?e=[y]:e.push(y),t++}return hs.errors=e,t===0}hs.evaluated={dynamicProps:!1,dynamicItems:!1};function Dp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Dp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.dark===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"dark"},message:"must have required property 'dark'",schema:As.required,parentSchema:As,data:a};e===null?e=[r]:e.push(r),t++}if(a.light===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"light"},message:"must have required property 'light'",schema:As.required,parentSchema:As,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="dark"||r==="light")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:As,data:a};e===null?e=[n]:e.push(n),t++}a.dark!==void 0&&(hs(a.dark,{instancePath:s+"/dark",parentData:a,parentDataProperty:"dark",rootData:v,dynamicAnchors:b})||(e=e===null?hs.errors:e.concat(hs.errors),t=e.length)),a.light!==void 0&&(hs(a.light,{instancePath:s+"/light",parentData:a,parentDataProperty:"light",rootData:v,dynamicAnchors:b})||(e=e===null?hs.errors:e.concat(hs.errors),t=e.length))}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:As.type,parentSchema:As,data:a};e===null?e=[r]:e.push(r),t++}return Dp.errors=e,t===0}Dp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch73=$p,j.presentation.$defs.LogoSource.oneOf[0];function $p(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$p.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.src===void 0){const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}for(const g in a)if(!(g==="src"||g==="alt"||g==="title"||g==="description"||g==="mediaType")){const l={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:a};e===null?e=[l]:e.push(l),t++}if(a.src!==void 0){let g=a.src;if(typeof g!="string"){const l={instancePath:s+"/src",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:g};e===null?e=[l]:e.push(l),t++}}if(a.alt!==void 0){let g=a.alt;if(typeof g!="string"){const l={instancePath:s+"/alt",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:g};e===null?e=[l]:e.push(l),t++}}if(a.title!==void 0){let g=a.title;if(typeof g!="string"){const l={instancePath:s+"/title",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:g};e===null?e=[l]:e.push(l),t++}}if(a.description!==void 0){let g=a.description;if(typeof g!="string"){const l={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:g};e===null?e=[l]:e.push(l),t++}}if(a.mediaType!==void 0){let g=a.mediaType;if(typeof g!="string"){const l={instancePath:s+"/mediaType",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:g};e===null?e=[l]:e.push(l),t++}}}else{const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}var c=h===t;if(c&&n)n=!1,p=[p,1];else if(c){n=!0,p=1;var y=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:a};e===null?e=[g]:e.push(g),t++}return $p.errors=e,m.props=y,t===0}$p.evaluated={dynamicProps:!0,dynamicItems:!1},$.branch74=xp;var qp=j.presentation.$defs.LogoSource.oneOf[1];function xp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(Object.keys(a).length<1){const p={instancePath:s,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:qp,data:a};e===null?e=[p]:e.push(p),t++}for(const p in a)if(!(p==="onLight"||p==="onDark")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:qp,data:a};e===null?e=[i]:e.push(i),t++}if(a.onLight!==void 0){let p=a.onLight;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/onLight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/onLight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/onLight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/onLight/src",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/onLight/alt",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/onLight/title",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/onLight/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/onLight/mediaType",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/onLight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/onLight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}if(a.onDark!==void 0){let p=a.onDark;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/onDark",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/onDark",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/onDark",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/onDark/src",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/onDark/alt",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/onDark/title",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/onDark/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/onDark/mediaType",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/onDark",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/onDark",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:qp.type,parentSchema:qp,data:a};e===null?e=[p]:e.push(p),t++}return xp.errors=e,t===0}xp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch75=Np;var qh=j.presentation.$defs.Watermark.oneOf[0];function Np(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Np.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.src===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:qh.required,parentSchema:qh,data:a};e===null?e=[r]:e.push(r),t++}return Np.errors=e,t===0}Np.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch76=Ip;var xh=j.presentation.$defs.Watermark.oneOf[1];function Ip(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ip.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.text===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:xh.required,parentSchema:xh,data:a};e===null?e=[r]:e.push(r),t++}return Ip.errors=e,t===0}Ip.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch77=zp;var Nh=j.presentation.$defs.HeaderFooterItem.properties.date.oneOf[0];function zp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=zp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Nh.type,parentSchema:Nh,data:a};e===null?e=[r]:e.push(r),t++}return zp.errors=e,t===0}zp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch78=jp;var Ih=j.presentation.$defs.HeaderFooterItem.properties.date.oneOf[1];function jp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=jp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ih.type,parentSchema:Ih,data:a};e===null?e=[r]:e.push(r),t++}return jp.errors=e,t===0}jp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch79=Fp;var zh=j.presentation.$defs.Slide.properties.beat.oneOf[0];function Fp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Fp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:zh.type,parentSchema:zh,data:a};e===null?e=[r]:e.push(r),t++}return Fp.errors=e,t===0}Fp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch80=Cp;var Tp=j.presentation.$defs.Slide.properties.beat.oneOf[1];function Cp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Cp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++){let p=a[n];if(typeof p!="string"){const i={instancePath:s+"/"+n,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Tp.items.type,parentSchema:Tp.items,data:p};e===null?e=[i]:e.push(i),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Tp.type,parentSchema:Tp,data:a};e===null?e=[r]:e.push(r),t++}return Cp.errors=e,t===0}Cp.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch81=Vp;var jh=j.presentation.$defs.Slide.properties.title.oneOf[0];function Vp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Vp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:jh.type,parentSchema:jh,data:a};e===null?e=[r]:e.push(r),t++}return Vp.errors=e,t===0}Vp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch82=Lp;var Fh=j.presentation.$defs.Slide.properties.title.oneOf[1];function jr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=jr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return jr.errors=e,m.props=l,t===0}jr.evaluated={dynamicProps:!0,dynamicItems:!1};function Lp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Lp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)jr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?jr.errors:e.concat(jr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Fh.type,parentSchema:Fh,data:a};e===null?e=[r]:e.push(r),t++}return Lp.errors=e,t===0}Lp.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch83=Rp;var Th=j.presentation.$defs.Slide.properties.subtitle.oneOf[0];function Rp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Rp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Th.type,parentSchema:Th,data:a};e===null?e=[r]:e.push(r),t++}return Rp.errors=e,t===0}Rp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch84=Zp;var Ch=j.presentation.$defs.Slide.properties.subtitle.oneOf[1];function Fr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Fr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return Fr.errors=e,m.props=l,t===0}Fr.evaluated={dynamicProps:!0,dynamicItems:!1};function Zp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Zp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Fr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Fr.errors:e.concat(Fr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ch.type,parentSchema:Ch,data:a};e===null?e=[r]:e.push(r),t++}return Zp.errors=e,t===0}Zp.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch85=Mp;var Vh=j.presentation.$defs.Slide.properties.tag.oneOf[0];function Mp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Mp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Vh.type,parentSchema:Vh,data:a};e===null?e=[r]:e.push(r),t++}return Mp.errors=e,t===0}Mp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch86=Bp;var Lh=j.presentation.$defs.Slide.properties.tag.oneOf[1];function Tr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Tr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return Tr.errors=e,m.props=l,t===0}Tr.evaluated={dynamicProps:!0,dynamicItems:!1};function Bp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Bp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Tr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Tr.errors:e.concat(Tr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Lh.type,parentSchema:Lh,data:a};e===null?e=[r]:e.push(r),t++}return Bp.errors=e,t===0}Bp.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch87=Hp;var Rh=j.presentation.$defs.Slide.properties.text.oneOf[0];function Hp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Hp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rh.type,parentSchema:Rh,data:a};e===null?e=[r]:e.push(r),t++}return Hp.errors=e,t===0}Hp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch88=_p;var Zh=j.presentation.$defs.Slide.properties.text.oneOf[1];function Cr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Cr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return Cr.errors=e,m.props=l,t===0}Cr.evaluated={dynamicProps:!0,dynamicItems:!1};function _p(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=_p.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Cr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Cr.errors:e.concat(Cr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Zh.type,parentSchema:Zh,data:a};e===null?e=[r]:e.push(r),t++}return _p.errors=e,t===0}_p.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch89=Ep;var Mh=j.presentation.$defs.Slide.properties.code.oneOf[0];function Ep(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ep.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Mh.type,parentSchema:Mh,data:a};e===null?e=[r]:e.push(r),t++}return Ep.errors=e,t===0}Ep.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch90=Up,j.presentation.$defs.Slide.properties.code.oneOf[1];function Up(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Up.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.source===void 0){const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:te.required,parentSchema:te,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="source"||n==="language"||n==="filename"||n==="highlight")){const p={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:te,data:a};e===null?e=[p]:e.push(p),t++}if(a.source!==void 0){let n=a.source;if(typeof n!="string"){const p={instancePath:s+"/source",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:te.properties.source.type,parentSchema:te.properties.source,data:n};e===null?e=[p]:e.push(p),t++}}if(a.language!==void 0){let n=a.language;if(typeof n!="string"){const p={instancePath:s+"/language",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string",schema:te.properties.language.type,parentSchema:te.properties.language,data:n};e===null?e=[p]:e.push(p),t++}}if(a.filename!==void 0){let n=a.filename;if(typeof n!="string"){const p={instancePath:s+"/filename",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string",schema:te.properties.filename.type,parentSchema:te.properties.filename,data:n};e===null?e=[p]:e.push(p),t++}}if(a.highlight!==void 0){let n=a.highlight;if(Array.isArray(n)){if(n.length<1){const i={instancePath:s+"/highlight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:te.properties.highlight,data:n};e===null?e=[i]:e.push(i),t++}const p=n.length;for(let i=0;i<p;i++){let h=n[i];const c=t;let y=!1,g=null;const l=t;if(!(typeof h=="number"&&!(h%1)&&!isNaN(h))){const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/0/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:te.properties.highlight.items.oneOf[0].type,parentSchema:te.properties.highlight.items.oneOf[0],data:h};e===null?e=[d]:e.push(d),t++}if(typeof h=="number"&&(h<1||isNaN(h))){const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/0/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:te.properties.highlight.items.oneOf[0],data:h};e===null?e=[d]:e.push(d),t++}var r=l===t;r&&(y=!0,g=0);const o=t;if(Array.isArray(h)){if(h.length>2){const O={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items",schema:2,parentSchema:te.properties.highlight.items.oneOf[1],data:h};e===null?e=[O]:e.push(O),t++}if(h.length<2){const O={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items",schema:2,parentSchema:te.properties.highlight.items.oneOf[1],data:h};e===null?e=[O]:e.push(O),t++}const d=h.length;for(let O=0;O<d;O++){let S=h[O];if(!(typeof S=="number"&&!(S%1)&&!isNaN(S))){const w={instancePath:s+"/highlight/"+i+"/"+O,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/items/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:te.properties.highlight.items.oneOf[1].items.type,parentSchema:te.properties.highlight.items.oneOf[1].items,data:S};e===null?e=[w]:e.push(w),t++}if(typeof S=="number"&&(S<1||isNaN(S))){const w={instancePath:s+"/highlight/"+i+"/"+O,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/items/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:te.properties.highlight.items.oneOf[1].items,data:S};e===null?e=[w]:e.push(w),t++}}}else{const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:te.properties.highlight.items.oneOf[1].type,parentSchema:te.properties.highlight.items.oneOf[1],data:h};e===null?e=[d]:e.push(d),t++}var r=o===t;if(r&&y?(y=!1,g=[g,1]):r&&(y=!0,g=1),y)t=c,e!==null&&(c?e.length=c:e=null);else{const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf",keyword:"oneOf",params:{passingSchemas:g},message:"must match exactly one schema in oneOf",schema:te.properties.highlight.items.oneOf,parentSchema:te.properties.highlight.items,data:h};e===null?e=[d]:e.push(d),t++}}}else{const p={instancePath:s+"/highlight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/type",keyword:"type",params:{type:"array"},message:"must be array",schema:te.properties.highlight.type,parentSchema:te.properties.highlight,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/type",keyword:"type",params:{type:"object"},message:"must be object",schema:te.type,parentSchema:te,data:a};e===null?e=[n]:e.push(n),t++}return Up.errors=e,t===0}Up.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch91=Kp;var Bh=j.presentation.$defs.Slide.properties.metric.oneOf[0];function Kp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Kp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Bh.type,parentSchema:Bh,data:a};e===null?e=[r]:e.push(r),t++}return Kp.errors=e,t===0}Kp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch92=Jp;var Hh=j.presentation.$defs.Slide.properties.metric.oneOf[1];function Jp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Jp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="number"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Hh.type,parentSchema:Hh,data:a};e===null?e=[r]:e.push(r),t++}return Jp.errors=e,t===0}Jp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch93=Wp,j.presentation.$defs.Slide.properties.metric.oneOf[2];function Wp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Wp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){const p={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:X.required,parentSchema:X,data:a};e===null?e=[p]:e.push(p),t++}for(const p in a)if(!(p==="value"||p==="label"||p==="description"||p==="unit"||p==="delta"||p==="trend"||p==="sentiment")){const i={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:X,data:a};e===null?e=[i]:e.push(i),t++}if(a.value!==void 0){let p=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/value/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.value.oneOf[0].type,parentSchema:X.properties.value.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(typeof p!="number"){const l={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/value/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:X.properties.value.oneOf[1].type,parentSchema:X.properties.value.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:X.properties.value.oneOf,parentSchema:X.properties.value,data:p};e===null?e=[l]:e.push(l),t++}}if(a.label!==void 0){let p=a.label;if(typeof p!="string"){const i={instancePath:s+"/label",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.label.type,parentSchema:X.properties.label,data:p};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let p=a.description;if(typeof p!="string"){const i={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.description.type,parentSchema:X.properties.description,data:p};e===null?e=[i]:e.push(i),t++}}if(a.unit!==void 0){let p=a.unit;if(typeof p!="string"){const i={instancePath:s+"/unit",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/unit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.unit.type,parentSchema:X.properties.unit,data:p};e===null?e=[i]:e.push(i),t++}}if(a.delta!==void 0){let p=a.delta;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/delta",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/delta/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.delta.oneOf[0].type,parentSchema:X.properties.delta.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(typeof p!="number"){const l={instancePath:s+"/delta",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/delta/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:X.properties.delta.oneOf[1].type,parentSchema:X.properties.delta.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/delta",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/delta/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:X.properties.delta.oneOf,parentSchema:X.properties.delta,data:p};e===null?e=[l]:e.push(l),t++}}if(a.trend!==void 0){let p=a.trend;if(typeof p!="string"){const i={instancePath:s+"/trend",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/trend/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.trend.type,parentSchema:X.properties.trend,data:p};e===null?e=[i]:e.push(i),t++}if(!(p==="up"||p==="down"||p==="flat")){const i={instancePath:s+"/trend",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/trend/enum",keyword:"enum",params:{allowedValues:X.properties.trend.enum},message:"must be equal to one of the allowed values",schema:X.properties.trend.enum,parentSchema:X.properties.trend,data:p};e===null?e=[i]:e.push(i),t++}}if(a.sentiment!==void 0){let p=a.sentiment;if(typeof p!="string"){const i={instancePath:s+"/sentiment",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/sentiment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.sentiment.type,parentSchema:X.properties.sentiment,data:p};e===null?e=[i]:e.push(i),t++}if(!(p==="positive"||p==="negative"||p==="neutral")){const i={instancePath:s+"/sentiment",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/sentiment/enum",keyword:"enum",params:{allowedValues:X.properties.sentiment.enum},message:"must be equal to one of the allowed values",schema:X.properties.sentiment.enum,parentSchema:X.properties.sentiment,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/type",keyword:"type",params:{type:"object"},message:"must be object",schema:X.type,parentSchema:X,data:a};e===null?e=[p]:e.push(p),t++}return Wp.errors=e,t===0}Wp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch94=Yp;var _h=j.presentation.$defs.Slide.properties.quote.oneOf[0];function Yp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Yp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_h.type,parentSchema:_h,data:a};e===null?e=[r]:e.push(r),t++}return Yp.errors=e,t===0}Yp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch95=Xp,j.presentation.$defs.Slide.properties.quote.oneOf[1];function Vr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Vr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:He.required,parentSchema:He,data:a};e===null?e=[p]:e.push(p),t++}for(const p in a)if(!(p==="text"||p==="attribution"||p==="role"||p==="photo"||p==="source")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:He,data:a};e===null?e=[i]:e.push(i),t++}if(a.text!==void 0){let p=a.text;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.text.oneOf[0].type,parentSchema:He.properties.text.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(p)){const l=p.length;for(let o=0;o<l;o++)W(p[o],{instancePath:s+"/text/"+o,parentData:p,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:He.properties.text.oneOf[1].type,parentSchema:He.properties.text.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:He.properties.text.oneOf,parentSchema:He.properties.text,data:p};e===null?e=[l]:e.push(l),t++}}if(a.attribution!==void 0){let p=a.attribution;if(typeof p!="string"){const i={instancePath:s+"/attribution",schemaPath:"#/properties/attribution/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.attribution.type,parentSchema:He.properties.attribution,data:p};e===null?e=[i]:e.push(i),t++}}if(a.role!==void 0){let p=a.role;if(typeof p!="string"){const i={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.role.type,parentSchema:He.properties.role,data:p};e===null?e=[i]:e.push(i),t++}}if(a.photo!==void 0){let p=a.photo;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/photo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/photo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/photo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/photo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/photo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}if(a.source!==void 0){let p=a.source;if(typeof p!="string"){const i={instancePath:s+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.source.type,parentSchema:He.properties.source,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:He.type,parentSchema:He,data:a};e===null?e=[p]:e.push(p),t++}return Vr.errors=e,t===0}Vr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Xp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Xp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Vr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Vr.errors:e.concat(Vr.errors),t=e.length),Xp.errors=e,t===0}Xp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch96=Qp;var Eh=j.presentation.$defs.ContentPayload.properties.text.oneOf[0];function Qp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Eh.type,parentSchema:Eh,data:a};e===null?e=[r]:e.push(r),t++}return Qp.errors=e,t===0}Qp.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch97=Gp;var Uh=j.presentation.$defs.ContentPayload.properties.text.oneOf[1];function Lr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Lr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return Lr.errors=e,m.props=l,t===0}Lr.evaluated={dynamicProps:!0,dynamicItems:!1};function Gp(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Gp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Lr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Lr.errors:e.concat(Lr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Uh.type,parentSchema:Uh,data:a};e===null?e=[r]:e.push(r),t++}return Gp.errors=e,t===0}Gp.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch98=ei;var dd=j.presentation.$defs.ContentPayload.properties.columns.oneOf[0];function ei(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ei.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!=="auto"){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:dd,data:a};e===null?e=[r]:e.push(r),t++}return ei.errors=e,t===0}ei.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch99=ai;var ti=j.presentation.$defs.ContentPayload.properties.columns.oneOf[1];function ai(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ai.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),!(typeof a=="number"&&!(a%1)&&!isNaN(a))){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:ti.type,parentSchema:ti,data:a};e===null?e=[r]:e.push(r),t++}if(typeof a=="number"){if(a>3||isNaN(a)){const r={instancePath:s,schemaPath:"#/maximum",keyword:"maximum",params:{comparison:"<=",limit:3},message:"must be <= 3",schema:3,parentSchema:ti,data:a};e===null?e=[r]:e.push(r),t++}if(a<1||isNaN(a)){const r={instancePath:s,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:ti,data:a};e===null?e=[r]:e.push(r),t++}}return ai.errors=e,t===0}ai.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch100=si;var Kh=j.presentation.$defs.ContentPayload.properties.code.oneOf[0];function si(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=si.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Kh.type,parentSchema:Kh,data:a};e===null?e=[r]:e.push(r),t++}return si.errors=e,t===0}si.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch101=ri,j.presentation.$defs.ContentPayload.properties.code.oneOf[1];function ri(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ri.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.source===void 0){const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:te.required,parentSchema:te,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="source"||n==="language"||n==="filename"||n==="highlight")){const p={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:te,data:a};e===null?e=[p]:e.push(p),t++}if(a.source!==void 0){let n=a.source;if(typeof n!="string"){const p={instancePath:s+"/source",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:te.properties.source.type,parentSchema:te.properties.source,data:n};e===null?e=[p]:e.push(p),t++}}if(a.language!==void 0){let n=a.language;if(typeof n!="string"){const p={instancePath:s+"/language",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string",schema:te.properties.language.type,parentSchema:te.properties.language,data:n};e===null?e=[p]:e.push(p),t++}}if(a.filename!==void 0){let n=a.filename;if(typeof n!="string"){const p={instancePath:s+"/filename",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string",schema:te.properties.filename.type,parentSchema:te.properties.filename,data:n};e===null?e=[p]:e.push(p),t++}}if(a.highlight!==void 0){let n=a.highlight;if(Array.isArray(n)){if(n.length<1){const i={instancePath:s+"/highlight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:te.properties.highlight,data:n};e===null?e=[i]:e.push(i),t++}const p=n.length;for(let i=0;i<p;i++){let h=n[i];const c=t;let y=!1,g=null;const l=t;if(!(typeof h=="number"&&!(h%1)&&!isNaN(h))){const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/0/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:te.properties.highlight.items.oneOf[0].type,parentSchema:te.properties.highlight.items.oneOf[0],data:h};e===null?e=[d]:e.push(d),t++}if(typeof h=="number"&&(h<1||isNaN(h))){const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/0/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:te.properties.highlight.items.oneOf[0],data:h};e===null?e=[d]:e.push(d),t++}var r=l===t;r&&(y=!0,g=0);const o=t;if(Array.isArray(h)){if(h.length>2){const O={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items",schema:2,parentSchema:te.properties.highlight.items.oneOf[1],data:h};e===null?e=[O]:e.push(O),t++}if(h.length<2){const O={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items",schema:2,parentSchema:te.properties.highlight.items.oneOf[1],data:h};e===null?e=[O]:e.push(O),t++}const d=h.length;for(let O=0;O<d;O++){let S=h[O];if(!(typeof S=="number"&&!(S%1)&&!isNaN(S))){const w={instancePath:s+"/highlight/"+i+"/"+O,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/items/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:te.properties.highlight.items.oneOf[1].items.type,parentSchema:te.properties.highlight.items.oneOf[1].items,data:S};e===null?e=[w]:e.push(w),t++}if(typeof S=="number"&&(S<1||isNaN(S))){const w={instancePath:s+"/highlight/"+i+"/"+O,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/items/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:te.properties.highlight.items.oneOf[1].items,data:S};e===null?e=[w]:e.push(w),t++}}}else{const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:te.properties.highlight.items.oneOf[1].type,parentSchema:te.properties.highlight.items.oneOf[1],data:h};e===null?e=[d]:e.push(d),t++}var r=o===t;if(r&&y?(y=!1,g=[g,1]):r&&(y=!0,g=1),y)t=c,e!==null&&(c?e.length=c:e=null);else{const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf",keyword:"oneOf",params:{passingSchemas:g},message:"must match exactly one schema in oneOf",schema:te.properties.highlight.items.oneOf,parentSchema:te.properties.highlight.items,data:h};e===null?e=[d]:e.push(d),t++}}}else{const p={instancePath:s+"/highlight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/type",keyword:"type",params:{type:"array"},message:"must be array",schema:te.properties.highlight.type,parentSchema:te.properties.highlight,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/type",keyword:"type",params:{type:"object"},message:"must be object",schema:te.type,parentSchema:te,data:a};e===null?e=[n]:e.push(n),t++}return ri.errors=e,t===0}ri.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch102=ni;var Jh=j.presentation.$defs.ContentPayload.properties.metric.oneOf[0];function ni(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ni.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Jh.type,parentSchema:Jh,data:a};e===null?e=[r]:e.push(r),t++}return ni.errors=e,t===0}ni.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch103=oi;var Wh=j.presentation.$defs.ContentPayload.properties.metric.oneOf[1];function oi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=oi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="number"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Wh.type,parentSchema:Wh,data:a};e===null?e=[r]:e.push(r),t++}return oi.errors=e,t===0}oi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch104=pi,j.presentation.$defs.ContentPayload.properties.metric.oneOf[2];function pi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=pi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){const p={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:X.required,parentSchema:X,data:a};e===null?e=[p]:e.push(p),t++}for(const p in a)if(!(p==="value"||p==="label"||p==="description"||p==="unit"||p==="delta"||p==="trend"||p==="sentiment")){const i={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:X,data:a};e===null?e=[i]:e.push(i),t++}if(a.value!==void 0){let p=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/value/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.value.oneOf[0].type,parentSchema:X.properties.value.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(typeof p!="number"){const l={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/value/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:X.properties.value.oneOf[1].type,parentSchema:X.properties.value.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:X.properties.value.oneOf,parentSchema:X.properties.value,data:p};e===null?e=[l]:e.push(l),t++}}if(a.label!==void 0){let p=a.label;if(typeof p!="string"){const i={instancePath:s+"/label",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.label.type,parentSchema:X.properties.label,data:p};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let p=a.description;if(typeof p!="string"){const i={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.description.type,parentSchema:X.properties.description,data:p};e===null?e=[i]:e.push(i),t++}}if(a.unit!==void 0){let p=a.unit;if(typeof p!="string"){const i={instancePath:s+"/unit",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/unit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.unit.type,parentSchema:X.properties.unit,data:p};e===null?e=[i]:e.push(i),t++}}if(a.delta!==void 0){let p=a.delta;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/delta",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/delta/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.delta.oneOf[0].type,parentSchema:X.properties.delta.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(typeof p!="number"){const l={instancePath:s+"/delta",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/delta/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:X.properties.delta.oneOf[1].type,parentSchema:X.properties.delta.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/delta",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/delta/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:X.properties.delta.oneOf,parentSchema:X.properties.delta,data:p};e===null?e=[l]:e.push(l),t++}}if(a.trend!==void 0){let p=a.trend;if(typeof p!="string"){const i={instancePath:s+"/trend",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/trend/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.trend.type,parentSchema:X.properties.trend,data:p};e===null?e=[i]:e.push(i),t++}if(!(p==="up"||p==="down"||p==="flat")){const i={instancePath:s+"/trend",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/trend/enum",keyword:"enum",params:{allowedValues:X.properties.trend.enum},message:"must be equal to one of the allowed values",schema:X.properties.trend.enum,parentSchema:X.properties.trend,data:p};e===null?e=[i]:e.push(i),t++}}if(a.sentiment!==void 0){let p=a.sentiment;if(typeof p!="string"){const i={instancePath:s+"/sentiment",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/sentiment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:X.properties.sentiment.type,parentSchema:X.properties.sentiment,data:p};e===null?e=[i]:e.push(i),t++}if(!(p==="positive"||p==="negative"||p==="neutral")){const i={instancePath:s+"/sentiment",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/sentiment/enum",keyword:"enum",params:{allowedValues:X.properties.sentiment.enum},message:"must be equal to one of the allowed values",schema:X.properties.sentiment.enum,parentSchema:X.properties.sentiment,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/type",keyword:"type",params:{type:"object"},message:"must be object",schema:X.type,parentSchema:X,data:a};e===null?e=[p]:e.push(p),t++}return pi.errors=e,t===0}pi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch105=ii;var Yh=j.presentation.$defs.ContentPayload.properties.quote.oneOf[0];function ii(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ii.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Yh.type,parentSchema:Yh,data:a};e===null?e=[r]:e.push(r),t++}return ii.errors=e,t===0}ii.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch106=mi,j.presentation.$defs.ContentPayload.properties.quote.oneOf[1];function Rr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Rr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:He.required,parentSchema:He,data:a};e===null?e=[p]:e.push(p),t++}for(const p in a)if(!(p==="text"||p==="attribution"||p==="role"||p==="photo"||p==="source")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:He,data:a};e===null?e=[i]:e.push(i),t++}if(a.text!==void 0){let p=a.text;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.text.oneOf[0].type,parentSchema:He.properties.text.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(p)){const l=p.length;for(let o=0;o<l;o++)W(p[o],{instancePath:s+"/text/"+o,parentData:p,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:He.properties.text.oneOf[1].type,parentSchema:He.properties.text.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:He.properties.text.oneOf,parentSchema:He.properties.text,data:p};e===null?e=[l]:e.push(l),t++}}if(a.attribution!==void 0){let p=a.attribution;if(typeof p!="string"){const i={instancePath:s+"/attribution",schemaPath:"#/properties/attribution/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.attribution.type,parentSchema:He.properties.attribution,data:p};e===null?e=[i]:e.push(i),t++}}if(a.role!==void 0){let p=a.role;if(typeof p!="string"){const i={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.role.type,parentSchema:He.properties.role,data:p};e===null?e=[i]:e.push(i),t++}}if(a.photo!==void 0){let p=a.photo;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[0].type,parentSchema:A.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.src===void 0){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:A.oneOf[1].required,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}for(const l in p)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const o={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:A.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}if(p.src!==void 0){let l=p.src;if(typeof l!="string"){const o={instancePath:s+"/photo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.src.type,parentSchema:A.oneOf[1].properties.src,data:l};e===null?e=[o]:e.push(o),t++}}if(p.alt!==void 0){let l=p.alt;if(typeof l!="string"){const o={instancePath:s+"/photo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.alt.type,parentSchema:A.oneOf[1].properties.alt,data:l};e===null?e=[o]:e.push(o),t++}}if(p.title!==void 0){let l=p.title;if(typeof l!="string"){const o={instancePath:s+"/photo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.title.type,parentSchema:A.oneOf[1].properties.title,data:l};e===null?e=[o]:e.push(o),t++}}if(p.description!==void 0){let l=p.description;if(typeof l!="string"){const o={instancePath:s+"/photo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.description.type,parentSchema:A.oneOf[1].properties.description,data:l};e===null?e=[o]:e.push(o),t++}}if(p.mediaType!==void 0){let l=p.mediaType;if(typeof l!="string"){const o={instancePath:s+"/photo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:A.oneOf[1].properties.mediaType.type,parentSchema:A.oneOf[1].properties.mediaType,data:l};e===null?e=[o]:e.push(o),t++}}}else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:A.oneOf[1].type,parentSchema:A.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:A.oneOf,parentSchema:A,data:p};e===null?e=[l]:e.push(l),t++}}if(a.source!==void 0){let p=a.source;if(typeof p!="string"){const i={instancePath:s+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.source.type,parentSchema:He.properties.source,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:He.type,parentSchema:He,data:a};e===null?e=[p]:e.push(p),t++}return Rr.errors=e,t===0}Rr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function mi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=mi.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Rr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Rr.errors:e.concat(Rr.errors),t=e.length),mi.errors=e,t===0}mi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch107=ci;var Xh=j.presentation.$defs.ContentPayload.allOf[11].then.not.anyOf[0];function ci(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ci.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.text===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:Xh.required,parentSchema:Xh,data:a};e===null?e=[r]:e.push(r),t++}return ci.errors=e,t===0}ci.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch108=hi;var Qh=j.presentation.$defs.ContentPayload.allOf[11].then.not.anyOf[1];function hi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=hi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.items===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'",schema:Qh.required,parentSchema:Qh,data:a};e===null?e=[r]:e.push(r),t++}return hi.errors=e,t===0}hi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch109=li;var Gh=j.presentation.$defs.ContentPayload.allOf[11].then.not.anyOf[2];function li(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=li.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.bullets===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"bullets"},message:"must have required property 'bullets'",schema:Gh.required,parentSchema:Gh,data:a};e===null?e=[r]:e.push(r),t++}return li.errors=e,t===0}li.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch110=di;var el=j.presentation.$defs.ContentPayload.allOf[11].then.not.anyOf[3];function di(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=di.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.image===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"image"},message:"must have required property 'image'",schema:el.required,parentSchema:el,data:a};e===null?e=[r]:e.push(r),t++}return di.errors=e,t===0}di.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch111=ui;var tl=j.presentation.$defs.ContentPayload.allOf[11].then.not.anyOf[4];function ui(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ui.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.video===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"video"},message:"must have required property 'video'",schema:tl.required,parentSchema:tl,data:a};e===null?e=[r]:e.push(r),t++}return ui.errors=e,t===0}ui.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch112=yi;var al=j.presentation.$defs.ContentPayload.allOf[11].then.not.anyOf[5];function yi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=yi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.chart===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"chart"},message:"must have required property 'chart'",schema:al.required,parentSchema:al,data:a};e===null?e=[r]:e.push(r),t++}return yi.errors=e,t===0}yi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch113=fi;var sl=j.presentation.$defs.ContentPayload.allOf[11].then.not.anyOf[6];function fi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=fi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.table===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"table"},message:"must have required property 'table'",schema:sl.required,parentSchema:sl,data:a};e===null?e=[r]:e.push(r),t++}return fi.errors=e,t===0}fi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch114=gi;var rl=j.presentation.$defs.ContentPayload.allOf[11].then.not.anyOf[7];function gi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=gi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.code===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"code"},message:"must have required property 'code'",schema:rl.required,parentSchema:rl,data:a};e===null?e=[r]:e.push(r),t++}return gi.errors=e,t===0}gi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch115=Pi;var nl=j.presentation.$defs.ContentPayload.allOf[11].then.not.anyOf[8];function Pi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Pi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.metric===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"metric"},message:"must have required property 'metric'",schema:nl.required,parentSchema:nl,data:a};e===null?e=[r]:e.push(r),t++}return Pi.errors=e,t===0}Pi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch116=vi;var ol=j.presentation.$defs.ContentPayload.allOf[11].then.not.anyOf[9];function vi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.quote===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"quote"},message:"must have required property 'quote'",schema:ol.required,parentSchema:ol,data:a};e===null?e=[r]:e.push(r),t++}return vi.errors=e,t===0}vi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch117=bi;var pl=j.presentation.$defs.ContentPayload.allOf[11].then.not.anyOf[10];function bi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=bi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.timeline===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"timeline"},message:"must have required property 'timeline'",schema:pl.required,parentSchema:pl,data:a};e===null?e=[r]:e.push(r),t++}return bi.errors=e,t===0}bi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch118=Oi;var il=j.presentation.$defs.ContentPayload.allOf[12].then.anyOf[0];function Oi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Oi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.items===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'",schema:il.required,parentSchema:il,data:a};e===null?e=[r]:e.push(r),t++}return Oi.errors=e,t===0}Oi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch119=wi;var ml=j.presentation.$defs.ContentPayload.allOf[12].then.anyOf[1];function wi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=wi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.bullets===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"bullets"},message:"must have required property 'bullets'",schema:ml.required,parentSchema:ml,data:a};e===null?e=[r]:e.push(r),t++}return wi.errors=e,t===0}wi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch120=Si;var cl=j.presentation.$defs.Quote.properties.text.oneOf[0];function Si(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Si.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:cl.type,parentSchema:cl,data:a};e===null?e=[r]:e.push(r),t++}return Si.errors=e,t===0}Si.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch121=ki;var hl=j.presentation.$defs.Quote.properties.text.oneOf[1];function Zr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Zr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return Zr.errors=e,m.props=l,t===0}Zr.evaluated={dynamicProps:!0,dynamicItems:!1};function ki(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ki.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Zr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Zr.errors:e.concat(Zr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:hl.type,parentSchema:hl,data:a};e===null?e=[r]:e.push(r),t++}return ki.errors=e,t===0}ki.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch122=Ai;var Kc=j.presentation.$defs.Code.properties.highlight.items.oneOf[0];function Ai(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ai.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),!(typeof a=="number"&&!(a%1)&&!isNaN(a))){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Kc.type,parentSchema:Kc,data:a};e===null?e=[r]:e.push(r),t++}if(typeof a=="number"&&(a<1||isNaN(a))){const r={instancePath:s,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Kc,data:a};e===null?e=[r]:e.push(r),t++}return Ai.errors=e,t===0}Ai.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch123=Di;var Ds=j.presentation.$defs.Code.properties.highlight.items.oneOf[1];function Di(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Di.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length>2){const n={instancePath:s,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items",schema:2,parentSchema:Ds,data:a};e===null?e=[n]:e.push(n),t++}if(a.length<2){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items",schema:2,parentSchema:Ds,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++){let p=a[n];if(!(typeof p=="number"&&!(p%1)&&!isNaN(p))){const i={instancePath:s+"/"+n,schemaPath:"#/items/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ds.items.type,parentSchema:Ds.items,data:p};e===null?e=[i]:e.push(i),t++}if(typeof p=="number"&&(p<1||isNaN(p))){const i={instancePath:s+"/"+n,schemaPath:"#/items/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Ds.items,data:p};e===null?e=[i]:e.push(i),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ds.type,parentSchema:Ds,data:a};e===null?e=[r]:e.push(r),t++}return Di.errors=e,t===0}Di.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch124=$i;var ll=j.presentation.$defs.Metric.properties.value.oneOf[0];function $i(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$i.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ll.type,parentSchema:ll,data:a};e===null?e=[r]:e.push(r),t++}return $i.errors=e,t===0}$i.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch125=qi;var dl=j.presentation.$defs.Metric.properties.value.oneOf[1];function qi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=qi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="number"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number",schema:dl.type,parentSchema:dl,data:a};e===null?e=[r]:e.push(r),t++}return qi.errors=e,t===0}qi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch126=xi;var ul=j.presentation.$defs.Metric.properties.delta.oneOf[0];function xi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ul.type,parentSchema:ul,data:a};e===null?e=[r]:e.push(r),t++}return xi.errors=e,t===0}xi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch127=Ni;var yl=j.presentation.$defs.Metric.properties.delta.oneOf[1];function Ni(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ni.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="number"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number",schema:yl.type,parentSchema:yl,data:a};e===null?e=[r]:e.push(r),t++}return Ni.errors=e,t===0}Ni.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch128=Ii;var Jc=j.presentation.$defs.Timeline.oneOf[0];function Ii(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ii.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Jc,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++){let p=a[n];if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.what===void 0){const i={instancePath:s+"/"+n,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/required",keyword:"required",params:{missingProperty:"what"},message:"must have required property 'what'",schema:ke.required,parentSchema:ke,data:p};e===null?e=[i]:e.push(i),t++}for(const i in p)if(!(i==="when"||i==="what"||i==="description"||i==="status")){const h={instancePath:s+"/"+n,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:ke,data:p};e===null?e=[h]:e.push(h),t++}if(p.when!==void 0){let i=p.when;if(typeof i!="string"){const h={instancePath:s+"/"+n+"/when",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/when/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.when.type,parentSchema:ke.properties.when,data:i};e===null?e=[h]:e.push(h),t++}}if(p.what!==void 0){let i=p.what;if(typeof i!="string"){const h={instancePath:s+"/"+n+"/what",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/what/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.what.type,parentSchema:ke.properties.what,data:i};e===null?e=[h]:e.push(h),t++}}if(p.description!==void 0){let i=p.description;if(typeof i!="string"){const h={instancePath:s+"/"+n+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.description.type,parentSchema:ke.properties.description,data:i};e===null?e=[h]:e.push(h),t++}}if(p.status!==void 0){let i=p.status;if(typeof i!="string"){const h={instancePath:s+"/"+n+"/status",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/status/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.status.type,parentSchema:ke.properties.status,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="done"||i==="current"||i==="planned")){const h={instancePath:s+"/"+n+"/status",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/status/enum",keyword:"enum",params:{allowedValues:ke.properties.status.enum},message:"must be equal to one of the allowed values",schema:ke.properties.status.enum,parentSchema:ke.properties.status,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s+"/"+n,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ke.type,parentSchema:ke,data:p};e===null?e=[i]:e.push(i),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Jc.type,parentSchema:Jc,data:a};e===null?e=[r]:e.push(r),t++}return Ii.errors=e,t===0}Ii.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch129=zi;var za=j.presentation.$defs.Timeline.oneOf[1];function zi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=zi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.events===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"events"},message:"must have required property 'events'",schema:za.required,parentSchema:za,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="name"||r==="description"||r==="events")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:za,data:a};e===null?e=[n]:e.push(n),t++}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:za.properties.name.type,parentSchema:za.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:za.properties.description.type,parentSchema:za.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.events!==void 0){let r=a.events;if(Array.isArray(r)){if(r.length<1){const p={instancePath:s+"/events",schemaPath:"#/properties/events/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:za.properties.events,data:r};e===null?e=[p]:e.push(p),t++}const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.what===void 0){const h={instancePath:s+"/events/"+p,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/required",keyword:"required",params:{missingProperty:"what"},message:"must have required property 'what'",schema:ke.required,parentSchema:ke,data:i};e===null?e=[h]:e.push(h),t++}for(const h in i)if(!(h==="when"||h==="what"||h==="description"||h==="status")){const c={instancePath:s+"/events/"+p,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:ke,data:i};e===null?e=[c]:e.push(c),t++}if(i.when!==void 0){let h=i.when;if(typeof h!="string"){const c={instancePath:s+"/events/"+p+"/when",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/when/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.when.type,parentSchema:ke.properties.when,data:h};e===null?e=[c]:e.push(c),t++}}if(i.what!==void 0){let h=i.what;if(typeof h!="string"){const c={instancePath:s+"/events/"+p+"/what",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/what/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.what.type,parentSchema:ke.properties.what,data:h};e===null?e=[c]:e.push(c),t++}}if(i.description!==void 0){let h=i.description;if(typeof h!="string"){const c={instancePath:s+"/events/"+p+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.description.type,parentSchema:ke.properties.description,data:h};e===null?e=[c]:e.push(c),t++}}if(i.status!==void 0){let h=i.status;if(typeof h!="string"){const c={instancePath:s+"/events/"+p+"/status",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/status/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.status.type,parentSchema:ke.properties.status,data:h};e===null?e=[c]:e.push(c),t++}if(!(h==="done"||h==="current"||h==="planned")){const c={instancePath:s+"/events/"+p+"/status",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/status/enum",keyword:"enum",params:{allowedValues:ke.properties.status.enum},message:"must be equal to one of the allowed values",schema:ke.properties.status.enum,parentSchema:ke.properties.status,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/events/"+p,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ke.type,parentSchema:ke,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/events",schemaPath:"#/properties/events/type",keyword:"type",params:{type:"array"},message:"must be array",schema:za.properties.events.type,parentSchema:za.properties.events,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:za.type,parentSchema:za,data:a};e===null?e=[r]:e.push(r),t++}return zi.errors=e,t===0}zi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch130=ji;var fl=j.presentation.$defs.ListItem.oneOf[0];function ji(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ji.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fl.type,parentSchema:fl,data:a};e===null?e=[r]:e.push(r),t++}return ji.errors=e,t===0}ji.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch131=Fi;var gl=j.presentation.$defs.ListItem.oneOf[1];function Mr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Mr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return Mr.errors=e,m.props=l,t===0}Mr.evaluated={dynamicProps:!0,dynamicItems:!1};function Fi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Fi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Mr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Mr.errors:e.concat(Mr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:gl.type,parentSchema:gl,data:a};e===null?e=[r]:e.push(r),t++}return Fi.errors=e,t===0}Fi.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch132=Ti;var Ct=j.presentation.$defs.ListItem.oneOf[2];function ls(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ls.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return ls.errors=e,m.props=l,t===0}ls.evaluated={dynamicProps:!0,dynamicItems:!1};function Ti(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ti.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:Ct.required,parentSchema:Ct,data:a};e===null?e=[p]:e.push(p),t++}for(const p in a)if(!(p==="text"||p==="description"||p==="level"||p==="start")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:Ct,data:a};e===null?e=[i]:e.push(i),t++}if(a.text!==void 0){let p=a.text;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ct.properties.text.oneOf[0].type,parentSchema:Ct.properties.text.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(p)){const l=p.length;for(let o=0;o<l;o++)ls(p[o],{instancePath:s+"/text/"+o,parentData:p,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?ls.errors:e.concat(ls.errors),t=e.length)}else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ct.properties.text.oneOf[1].type,parentSchema:Ct.properties.text.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Ct.properties.text.oneOf,parentSchema:Ct.properties.text,data:p};e===null?e=[l]:e.push(l),t++}}if(a.description!==void 0){let p=a.description;const i=t;let h=!1,c=null;const y=t;if(typeof p!="string"){const l={instancePath:s+"/description",schemaPath:"#/properties/description/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ct.properties.description.oneOf[0].type,parentSchema:Ct.properties.description.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(Array.isArray(p)){const l=p.length;for(let o=0;o<l;o++)ls(p[o],{instancePath:s+"/description/"+o,parentData:p,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?ls.errors:e.concat(ls.errors),t=e.length)}else{const l={instancePath:s+"/description",schemaPath:"#/properties/description/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ct.properties.description.oneOf[1].type,parentSchema:Ct.properties.description.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/description",schemaPath:"#/properties/description/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Ct.properties.description.oneOf,parentSchema:Ct.properties.description,data:p};e===null?e=[l]:e.push(l),t++}}if(a.level!==void 0){let p=a.level;if(!(typeof p=="number"&&!(p%1)&&!isNaN(p))){const i={instancePath:s+"/level",schemaPath:"#/properties/level/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ct.properties.level.type,parentSchema:Ct.properties.level,data:p};e===null?e=[i]:e.push(i),t++}if(typeof p=="number"&&(p<0||isNaN(p))){const i={instancePath:s+"/level",schemaPath:"#/properties/level/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ct.properties.level,data:p};e===null?e=[i]:e.push(i),t++}}if(a.start!==void 0){let p=a.start;if(!(typeof p=="number"&&!(p%1)&&!isNaN(p))){const i={instancePath:s+"/start",schemaPath:"#/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ct.properties.start.type,parentSchema:Ct.properties.start,data:p};e===null?e=[i]:e.push(i),t++}if(typeof p=="number"){if(p>32767||isNaN(p)){const i={instancePath:s+"/start",schemaPath:"#/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:Ct.properties.start,data:p};e===null?e=[i]:e.push(i),t++}if(p<1||isNaN(p)){const i={instancePath:s+"/start",schemaPath:"#/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Ct.properties.start,data:p};e===null?e=[i]:e.push(i),t++}}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ct.type,parentSchema:Ct,data:a};e===null?e=[p]:e.push(p),t++}return Ti.errors=e,t===0}Ti.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch133=Ci;var Pl=j.presentation.$defs.ListItem.oneOf[2].properties.text.oneOf[0];function Ci(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ci.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pl.type,parentSchema:Pl,data:a};e===null?e=[r]:e.push(r),t++}return Ci.errors=e,t===0}Ci.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch134=Vi;var vl=j.presentation.$defs.ListItem.oneOf[2].properties.text.oneOf[1];function Br(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Br.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return Br.errors=e,m.props=l,t===0}Br.evaluated={dynamicProps:!0,dynamicItems:!1};function Vi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Vi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Br(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Br.errors:e.concat(Br.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:vl.type,parentSchema:vl,data:a};e===null?e=[r]:e.push(r),t++}return Vi.errors=e,t===0}Vi.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch135=Li;var bl=j.presentation.$defs.ListItem.oneOf[2].properties.description.oneOf[0];function Li(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Li.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:bl.type,parentSchema:bl,data:a};e===null?e=[r]:e.push(r),t++}return Li.errors=e,t===0}Li.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch136=Ri;var Ol=j.presentation.$defs.ListItem.oneOf[2].properties.description.oneOf[1];function Hr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Hr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return Hr.errors=e,m.props=l,t===0}Hr.evaluated={dynamicProps:!0,dynamicItems:!1};function Ri(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ri.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Hr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Hr.errors:e.concat(Hr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ol.type,parentSchema:Ol,data:a};e===null?e=[r]:e.push(r),t++}return Ri.errors=e,t===0}Ri.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch137=Zi;var wl=j.presentation.$defs.BulletItem.oneOf[0];function Zi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Zi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:wl.type,parentSchema:wl,data:a};e===null?e=[r]:e.push(r),t++}return Zi.errors=e,t===0}Zi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch138=Mi;var Sl=j.presentation.$defs.BulletItem.oneOf[1];function _r(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=_r.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return _r.errors=e,m.props=l,t===0}_r.evaluated={dynamicProps:!0,dynamicItems:!1};function Mi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Mi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)_r(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?_r.errors:e.concat(_r.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Sl.type,parentSchema:Sl,data:a};e===null?e=[r]:e.push(r),t++}return Mi.errors=e,t===0}Mi.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch139=Bi;var sa=j.presentation.$defs.BulletItem.oneOf[2];function Er(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Er.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return Er.errors=e,m.props=l,t===0}Er.evaluated={dynamicProps:!0,dynamicItems:!1};function Bi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Bi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:sa.required,parentSchema:sa,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="text"||n==="level"||n==="start")){const p={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:sa,data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let n=a.text;const p=t;let i=!1,h=null;const c=t;if(typeof n!="string"){const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:sa.properties.text.oneOf[0].type,parentSchema:sa.properties.text.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;if(Array.isArray(n)){const g=n.length;for(let l=0;l<g;l++)Er(n[l],{instancePath:s+"/text/"+l,parentData:n,parentDataProperty:l,rootData:v,dynamicAnchors:b})||(e=e===null?Er.errors:e.concat(Er.errors),t=e.length)}else{const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:sa.properties.text.oneOf[1].type,parentSchema:sa.properties.text.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=p,e!==null&&(p?e.length=p:e=null);else{const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:sa.properties.text.oneOf,parentSchema:sa.properties.text,data:n};e===null?e=[g]:e.push(g),t++}}if(a.level!==void 0){let n=a.level;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){const p={instancePath:s+"/level",schemaPath:"#/properties/level/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:sa.properties.level.type,parentSchema:sa.properties.level,data:n};e===null?e=[p]:e.push(p),t++}if(typeof n=="number"&&(n<0||isNaN(n))){const p={instancePath:s+"/level",schemaPath:"#/properties/level/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:sa.properties.level,data:n};e===null?e=[p]:e.push(p),t++}}if(a.start!==void 0){let n=a.start;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){const p={instancePath:s+"/start",schemaPath:"#/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:sa.properties.start.type,parentSchema:sa.properties.start,data:n};e===null?e=[p]:e.push(p),t++}if(typeof n=="number"){if(n>32767||isNaN(n)){const p={instancePath:s+"/start",schemaPath:"#/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:sa.properties.start,data:n};e===null?e=[p]:e.push(p),t++}if(n<1||isNaN(n)){const p={instancePath:s+"/start",schemaPath:"#/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:sa.properties.start,data:n};e===null?e=[p]:e.push(p),t++}}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:sa.type,parentSchema:sa,data:a};e===null?e=[n]:e.push(n),t++}return Bi.errors=e,t===0}Bi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch140=Hi;var kl=j.presentation.$defs.BulletItem.oneOf[2].properties.text.oneOf[0];function Hi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Hi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:kl.type,parentSchema:kl,data:a};e===null?e=[r]:e.push(r),t++}return Hi.errors=e,t===0}Hi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch141=_i;var Al=j.presentation.$defs.BulletItem.oneOf[2].properties.text.oneOf[1];function Ur(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ur.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return Ur.errors=e,m.props=l,t===0}Ur.evaluated={dynamicProps:!0,dynamicItems:!1};function _i(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=_i.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Ur(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Ur.errors:e.concat(Ur.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Al.type,parentSchema:Al,data:a};e===null?e=[r]:e.push(r),t++}return _i.errors=e,t===0}_i.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch142=Ei,j.presentation.$defs.NumberingSpec.oneOf[0];function Ei(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ei.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.type,parentSchema:et,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="arabic"||a==="roman-upper"||a==="roman-lower"||a==="alpha-upper"||a==="alpha-lower")){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:et.enum},message:"must be equal to one of the allowed values",schema:et.enum,parentSchema:et,data:a};e===null?e=[r]:e.push(r),t++}return Ei.errors=e,t===0}Ei.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch143=Ui,j.presentation.$defs.NumberingSpec.oneOf[1];function Kr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Kr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const r in a)if(!(r==="style"||r==="start"||r==="suffix")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ye,data:a};e===null?e=[n]:e.push(n),t++}if(a.style!==void 0){let r=a.style;if(typeof r!="string"){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.type,parentSchema:et,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="arabic"||r==="roman-upper"||r==="roman-lower"||r==="alpha-upper"||r==="alpha-lower")){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:et.enum},message:"must be equal to one of the allowed values",schema:et.enum,parentSchema:et,data:r};e===null?e=[n]:e.push(n),t++}}if(a.start!==void 0){let r=a.start;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/start",schemaPath:"#/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ye.properties.start.type,parentSchema:Ye.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"){if(r>32767||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:Ye.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(r<1||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Ye.properties.start,data:r};e===null?e=[n]:e.push(n),t++}}}if(a.suffix!==void 0){let r=a.suffix;if(typeof r!="string"){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.suffix.type,parentSchema:Ye.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="period"||r==="paren"||r==="paren-both")){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/enum",keyword:"enum",params:{allowedValues:Ye.properties.suffix.enum},message:"must be equal to one of the allowed values",schema:Ye.properties.suffix.enum,parentSchema:Ye.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ye.type,parentSchema:Ye,data:a};e===null?e=[r]:e.push(r),t++}return Kr.errors=e,t===0}Kr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Ui(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ui.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Kr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Kr.errors:e.concat(Kr.errors),t=e.length),Ui.errors=e,t===0}Ui.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch144=Ki;var Jr=j.presentation.$defs.NumberingSpec.oneOf[2];function Wr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Wr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const r in a)if(!(r==="style"||r==="start"||r==="suffix")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ye,data:a};e===null?e=[n]:e.push(n),t++}if(a.style!==void 0){let r=a.style;if(typeof r!="string"){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.type,parentSchema:et,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="arabic"||r==="roman-upper"||r==="roman-lower"||r==="alpha-upper"||r==="alpha-lower")){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:et.enum},message:"must be equal to one of the allowed values",schema:et.enum,parentSchema:et,data:r};e===null?e=[n]:e.push(n),t++}}if(a.start!==void 0){let r=a.start;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/start",schemaPath:"#/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ye.properties.start.type,parentSchema:Ye.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"){if(r>32767||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:Ye.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(r<1||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Ye.properties.start,data:r};e===null?e=[n]:e.push(n),t++}}}if(a.suffix!==void 0){let r=a.suffix;if(typeof r!="string"){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.suffix.type,parentSchema:Ye.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="period"||r==="paren"||r==="paren-both")){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/enum",keyword:"enum",params:{allowedValues:Ye.properties.suffix.enum},message:"must be equal to one of the allowed values",schema:Ye.properties.suffix.enum,parentSchema:Ye.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ye.type,parentSchema:Ye,data:a};e===null?e=[r]:e.push(r),t++}return Wr.errors=e,t===0}Wr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Ki(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ki.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length>9){const p={instancePath:s,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:9},message:"must NOT have more than 9 items",schema:9,parentSchema:Jr,data:a};e===null?e=[p]:e.push(p),t++}if(a.length<1){const p={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Jr,data:a};e===null?e=[p]:e.push(p),t++}const n=a.length;for(let p=0;p<n;p++){let i=a[p];const h=t;let c=!1,y=null;const g=t;if(typeof i!="string"){const o={instancePath:s+"/"+p,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.type,parentSchema:et,data:i};e===null?e=[o]:e.push(o),t++}if(!(i==="arabic"||i==="roman-upper"||i==="roman-lower"||i==="alpha-upper"||i==="alpha-lower")){const o={instancePath:s+"/"+p,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:et.enum},message:"must be equal to one of the allowed values",schema:et.enum,parentSchema:et,data:i};e===null?e=[o]:e.push(o),t++}var r=g===t;r&&(c=!0,y=0);const l=t;Wr(i,{instancePath:s+"/"+p,parentData:a,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?Wr.errors:e.concat(Wr.errors),t=e.length);var r=l===t;if(r&&c?(c=!1,y=[y,1]):r&&(c=!0,y=1),c)t=h,e!==null&&(h?e.length=h:e=null);else{const o={instancePath:s+"/"+p,schemaPath:"#/items/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:Jr.items.oneOf,parentSchema:Jr.items,data:i};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Jr.type,parentSchema:Jr,data:a};e===null?e=[n]:e.push(n),t++}return Ki.errors=e,t===0}Ki.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch145=Ji,j.presentation.$defs.NumberingSpec.oneOf[2].items.oneOf[0];function Ji(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ji.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.type,parentSchema:et,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="arabic"||a==="roman-upper"||a==="roman-lower"||a==="alpha-upper"||a==="alpha-lower")){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:et.enum},message:"must be equal to one of the allowed values",schema:et.enum,parentSchema:et,data:a};e===null?e=[r]:e.push(r),t++}return Ji.errors=e,t===0}Ji.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch146=Wi,j.presentation.$defs.NumberingSpec.oneOf[2].items.oneOf[1];function Yr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Yr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const r in a)if(!(r==="style"||r==="start"||r==="suffix")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ye,data:a};e===null?e=[n]:e.push(n),t++}if(a.style!==void 0){let r=a.style;if(typeof r!="string"){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.type,parentSchema:et,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="arabic"||r==="roman-upper"||r==="roman-lower"||r==="alpha-upper"||r==="alpha-lower")){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:et.enum},message:"must be equal to one of the allowed values",schema:et.enum,parentSchema:et,data:r};e===null?e=[n]:e.push(n),t++}}if(a.start!==void 0){let r=a.start;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/start",schemaPath:"#/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ye.properties.start.type,parentSchema:Ye.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"){if(r>32767||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:Ye.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(r<1||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Ye.properties.start,data:r};e===null?e=[n]:e.push(n),t++}}}if(a.suffix!==void 0){let r=a.suffix;if(typeof r!="string"){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.suffix.type,parentSchema:Ye.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="period"||r==="paren"||r==="paren-both")){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/enum",keyword:"enum",params:{allowedValues:Ye.properties.suffix.enum},message:"must be equal to one of the allowed values",schema:Ye.properties.suffix.enum,parentSchema:Ye.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ye.type,parentSchema:Ye,data:a};e===null?e=[r]:e.push(r),t++}return Yr.errors=e,t===0}Yr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Wi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Wi.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Yr(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Yr.errors:e.concat(Yr.errors),t=e.length),Wi.errors=e,t===0}Wi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch147=Yi;var Dl=j.presentation.$defs.TextRun.oneOf[0];function Yi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Yi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Dl.type,parentSchema:Dl,data:a};e===null?e=[r]:e.push(r),t++}return Yi.errors=e,t===0}Yi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch148=Xi;var Re=j.presentation.$defs.TextRun.oneOf[1];function Xr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Xr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return Xr.errors=e,m.props=l,t===0}Xr.evaluated={dynamicProps:!0,dynamicItems:!1};function Xi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Xi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:Re.required,parentSchema:Re,data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const i={instancePath:s+"/text",schemaPath:"#/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.text.type,parentSchema:Re.properties.text,data:p};e===null?e=[i]:e.push(i),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const i={instancePath:s+"/bold",schemaPath:"#/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Re.properties.bold.type,parentSchema:Re.properties.bold,data:p};e===null?e=[i]:e.push(i),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const i={instancePath:s+"/italic",schemaPath:"#/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Re.properties.italic.type,parentSchema:Re.properties.italic,data:p};e===null?e=[i]:e.push(i),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const i={instancePath:s+"/underline",schemaPath:"#/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Re.properties.underline.type,parentSchema:Re.properties.underline,data:p};e===null?e=[i]:e.push(i),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const i={instancePath:s+"/strikethrough",schemaPath:"#/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Re.properties.strikethrough.type,parentSchema:Re.properties.strikethrough,data:p};e===null?e=[i]:e.push(i),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const i={instancePath:s+"/color",schemaPath:"#/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.color.type,parentSchema:Re.properties.color,data:p};e===null?e=[i]:e.push(i),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const i={instancePath:s+"/fontSize",schemaPath:"#/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:Re.properties.fontSize,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/fontSize",schemaPath:"#/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Re.properties.fontSize.type,parentSchema:Re.properties.fontSize,data:p};e===null?e=[i]:e.push(i),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const i={instancePath:s+"/fontFamily",schemaPath:"#/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.fontFamily.type,parentSchema:Re.properties.fontFamily,data:p};e===null?e=[i]:e.push(i),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const i={instancePath:s+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Re.properties.code.type,parentSchema:Re.properties.code,data:p};e===null?e=[i]:e.push(i),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!xt.test(p)){const i={instancePath:s+"/lang",schemaPath:"#/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:Re.properties.lang,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/lang",schemaPath:"#/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.lang.type,parentSchema:Re.properties.lang,data:p};e===null?e=[i]:e.push(i),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Nt.test(p)){const i={instancePath:s+"/link",schemaPath:"#/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:Re.properties.link,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/link",schemaPath:"#/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.link.type,parentSchema:Re.properties.link,data:p};e===null?e=[i]:e.push(i),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const i={instancePath:s+"/superscript",schemaPath:"#/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Re.properties.superscript.type,parentSchema:Re.properties.superscript,data:p};e===null?e=[i]:e.push(i),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const i={instancePath:s+"/subscript",schemaPath:"#/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Re.properties.subscript.type,parentSchema:Re.properties.subscript,data:p};e===null?e=[i]:e.push(i),t++}}if(a.cite!==void 0){let p=a.cite;const i=t;let h=!1,c=null;const y=t;if(typeof p=="string"){if(me(p)<1){const l={instancePath:s+"/cite",schemaPath:"#/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:Re.properties.cite.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}}else{const l={instancePath:s+"/cite",schemaPath:"#/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.cite.oneOf[0].type,parentSchema:Re.properties.cite.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(p)){if(p.length<1){const o={instancePath:s+"/cite",schemaPath:"#/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Re.properties.cite.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}const l=p.length;for(let o=0;o<l;o++){let d=p[o];if(typeof d=="string"){if(me(d)<1){const O={instancePath:s+"/cite/"+o,schemaPath:"#/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:Re.properties.cite.oneOf[1].items,data:d};e===null?e=[O]:e.push(O),t++}}else{const O={instancePath:s+"/cite/"+o,schemaPath:"#/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.cite.oneOf[1].items.type,parentSchema:Re.properties.cite.oneOf[1].items,data:d};e===null?e=[O]:e.push(O),t++}}}else{const l={instancePath:s+"/cite",schemaPath:"#/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Re.properties.cite.oneOf[1].type,parentSchema:Re.properties.cite.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/cite",schemaPath:"#/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Re.properties.cite.oneOf,parentSchema:Re.properties.cite,data:p};e===null?e=[l]:e.push(l),t++}}if(a.footnote!==void 0){let p=a.footnote;const i=t;let h=!1,c=null;const y=t;if(typeof p=="string"){if(me(p)<1){const l={instancePath:s+"/footnote",schemaPath:"#/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:Re.properties.footnote.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}}else{const l={instancePath:s+"/footnote",schemaPath:"#/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.footnote.oneOf[0].type,parentSchema:Re.properties.footnote.oneOf[0],data:p};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(Array.isArray(p)){if(p.length<1){const o={instancePath:s+"/footnote",schemaPath:"#/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Re.properties.footnote.oneOf[1],data:p};e===null?e=[o]:e.push(o),t++}const l=p.length;for(let o=0;o<l;o++)Xr(p[o],{instancePath:s+"/footnote/"+o,parentData:p,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?Xr.errors:e.concat(Xr.errors),t=e.length)}else{const l={instancePath:s+"/footnote",schemaPath:"#/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Re.properties.footnote.oneOf[1].type,parentSchema:Re.properties.footnote.oneOf[1],data:p};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/footnote",schemaPath:"#/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Re.properties.footnote.oneOf,parentSchema:Re.properties.footnote,data:p};e===null?e=[l]:e.push(l),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Re.type,parentSchema:Re,data:a};e===null?e=[p]:e.push(p),t++}return Xi.errors=e,t===0}Xi.evaluated={props:{text:!0,bold:!0,italic:!0,underline:!0,strikethrough:!0,color:!0,fontSize:!0,fontFamily:!0,code:!0,lang:!0,link:!0,superscript:!0,subscript:!0,cite:!0,footnote:!0},dynamicProps:!1,dynamicItems:!1},$.branch149=Qi;var Wc=j.presentation.$defs.TextRun.oneOf[1].properties.cite.oneOf[0];function Qi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(me(a)<1){const r={instancePath:s,schemaPath:"#/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:Wc,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Wc.type,parentSchema:Wc,data:a};e===null?e=[r]:e.push(r),t++}return Qi.errors=e,t===0}Qi.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch150=Gi;var Qr=j.presentation.$defs.TextRun.oneOf[1].properties.cite.oneOf[1];function Gi(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Gi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Qr,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++){let p=a[n];if(typeof p=="string"){if(me(p)<1){const i={instancePath:s+"/"+n,schemaPath:"#/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:Qr.items,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/"+n,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qr.items.type,parentSchema:Qr.items,data:p};e===null?e=[i]:e.push(i),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Qr.type,parentSchema:Qr,data:a};e===null?e=[r]:e.push(r),t++}return Gi.errors=e,t===0}Gi.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch151=em;var Yc=j.presentation.$defs.TextRun.oneOf[1].properties.footnote.oneOf[0];function em(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=em.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(me(a)<1){const r={instancePath:s,schemaPath:"#/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:Yc,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Yc.type,parentSchema:Yc,data:a};e===null?e=[r]:e.push(r),t++}return em.errors=e,t===0}em.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch152=tm;var Xc=j.presentation.$defs.TextRun.oneOf[1].properties.footnote.oneOf[1];function Gr(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Gr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return Gr.errors=e,m.props=l,t===0}Gr.evaluated={dynamicProps:!0,dynamicItems:!1};function tm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=tm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Xc,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++)Gr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Gr.errors:e.concat(Gr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Xc.type,parentSchema:Xc,data:a};e===null?e=[r]:e.push(r),t++}return tm.errors=e,t===0}tm.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch153=am;var $l=j.presentation.$defs.Caption.oneOf[0];function am(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=am.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$l.type,parentSchema:$l,data:a};e===null?e=[r]:e.push(r),t++}return am.errors=e,t===0}am.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch154=sm;var ql=j.presentation.$defs.Caption.oneOf[1];function en(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=en.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return en.errors=e,m.props=l,t===0}en.evaluated={dynamicProps:!0,dynamicItems:!1};function sm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=sm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)en(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?en.errors:e.concat(en.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ql.type,parentSchema:ql,data:a};e===null?e=[r]:e.push(r),t++}return sm.errors=e,t===0}sm.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch155=rm;var Ht=j.presentation.$defs.Caption.oneOf[2];function tn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=tn.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return tn.errors=e,m.props=l,t===0}tn.evaluated={dynamicProps:!0,dynamicItems:!1};function rm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=rm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:Ht.required,parentSchema:Ht,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="text"||n==="position"||n==="align")){const p={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:Ht,data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let n=a.text;const p=t;let i=!1,h=null;const c=t;if(typeof n!="string"){const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ht.properties.text.oneOf[0].type,parentSchema:Ht.properties.text.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;if(Array.isArray(n)){const g=n.length;for(let l=0;l<g;l++)tn(n[l],{instancePath:s+"/text/"+l,parentData:n,parentDataProperty:l,rootData:v,dynamicAnchors:b})||(e=e===null?tn.errors:e.concat(tn.errors),t=e.length)}else{const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ht.properties.text.oneOf[1].type,parentSchema:Ht.properties.text.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=p,e!==null&&(p?e.length=p:e=null);else{const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:Ht.properties.text.oneOf,parentSchema:Ht.properties.text,data:n};e===null?e=[g]:e.push(g),t++}}if(a.position!==void 0){let n=a.position;if(typeof n!="string"){const p={instancePath:s+"/position",schemaPath:"#/properties/position/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ht.properties.position.type,parentSchema:Ht.properties.position,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="below"||n==="above")){const p={instancePath:s+"/position",schemaPath:"#/properties/position/enum",keyword:"enum",params:{allowedValues:Ht.properties.position.enum},message:"must be equal to one of the allowed values",schema:Ht.properties.position.enum,parentSchema:Ht.properties.position,data:n};e===null?e=[p]:e.push(p),t++}}if(a.align!==void 0){let n=a.align;if(typeof n!="string"){const p={instancePath:s+"/align",schemaPath:"#/properties/align/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ht.properties.align.type,parentSchema:Ht.properties.align,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="left"||n==="center"||n==="right")){const p={instancePath:s+"/align",schemaPath:"#/properties/align/enum",keyword:"enum",params:{allowedValues:Ht.properties.align.enum},message:"must be equal to one of the allowed values",schema:Ht.properties.align.enum,parentSchema:Ht.properties.align,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ht.type,parentSchema:Ht,data:a};e===null?e=[n]:e.push(n),t++}return rm.errors=e,t===0}rm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch156=nm;var xl=j.presentation.$defs.Caption.oneOf[2].properties.text.oneOf[0];function nm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=nm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xl.type,parentSchema:xl,data:a};e===null?e=[r]:e.push(r),t++}return nm.errors=e,t===0}nm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch157=om;var Nl=j.presentation.$defs.Caption.oneOf[2].properties.text.oneOf[1];function an(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=an.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return an.errors=e,m.props=l,t===0}an.evaluated={dynamicProps:!0,dynamicItems:!1};function om(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=om.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)an(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?an.errors:e.concat(an.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Nl.type,parentSchema:Nl,data:a};e===null?e=[r]:e.push(r),t++}return om.errors=e,t===0}om.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch158=pm;var Il=j.presentation.$defs.Reference.properties.text.oneOf[0];function pm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=pm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Il.type,parentSchema:Il,data:a};e===null?e=[r]:e.push(r),t++}return pm.errors=e,t===0}pm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch159=im;var zl=j.presentation.$defs.Reference.properties.text.oneOf[1];function sn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=sn.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return sn.errors=e,m.props=l,t===0}sn.evaluated={dynamicProps:!0,dynamicItems:!1};function im(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=im.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)sn(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?sn.errors:e.concat(sn.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:zl.type,parentSchema:zl,data:a};e===null?e=[r]:e.push(r),t++}return im.errors=e,t===0}im.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch160=mm,j.presentation.$defs.Chart.properties.data.oneOf[0];function rn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=rn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.columns===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columns"},message:"must have required property 'columns'",schema:ze.required,parentSchema:ze,data:a};e===null?e=[i]:e.push(i),t++}if(a.rows===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rows"},message:"must have required property 'rows'",schema:ze.required,parentSchema:ze,data:a};e===null?e=[i]:e.push(i),t++}for(const i in a)if(!(i==="columns"||i==="rows"||i==="source")){const h={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:ze,data:a};e===null?e=[h]:e.push(h),t++}if(a.columns!==void 0){let i=a.columns;if(Array.isArray(i)){if(i.length<1){const c={instancePath:s+"/columns",schemaPath:"#/properties/columns/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ze.properties.columns,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++){let y=i[c];const g=t;let l=!1,o=null;const d=t;if(typeof y!="string"){const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.columns.items.oneOf[0].type,parentSchema:ze.properties.columns.items.oneOf[0],data:y};e===null?e=[S]:e.push(S),t++}var r=d===t;r&&(l=!0,o=0);const O=t;ea(y,{instancePath:s+"/columns/"+c,parentData:i,parentDataProperty:c,rootData:v,dynamicAnchors:b})||(e=e===null?ea.errors:e.concat(ea.errors),t=e.length);var r=O===t;if(r&&l?(l=!1,o=[o,1]):r&&(l=!0,o=1),l)t=g,e!==null&&(g?e.length=g:e=null);else{const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:ze.properties.columns.items.oneOf,parentSchema:ze.properties.columns.items,data:y};e===null?e=[S]:e.push(S),t++}}}else{const h={instancePath:s+"/columns",schemaPath:"#/properties/columns/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ze.properties.columns.type,parentSchema:ze.properties.columns,data:i};e===null?e=[h]:e.push(h),t++}}if(a.rows!==void 0){let i=a.rows;if(Array.isArray(i)){if(i.length<1){const c={instancePath:s+"/rows",schemaPath:"#/properties/rows/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ze.properties.rows,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++){let y=i[c];if(Array.isArray(y)){const g=y.length;for(let l=0;l<g;l++){let o=y[l];const d=t;let O=!1,S=null;const w=t;if(typeof o!="string"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ct.oneOf[0].type,parentSchema:ct.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var n=w===t;n&&(O=!0,S=0);const q=t;if(typeof o!="number"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ct.oneOf[1].type,parentSchema:ct.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var n=q===t;if(n&&O)O=!1,S=[S,1];else{n&&(O=!0,S=1);const f=t;if(typeof o!="boolean"){const k={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ct.oneOf[2].type,parentSchema:ct.oneOf[2],data:o};e===null?e=[k]:e.push(k),t++}var n=f===t;if(n&&O)O=!1,S=[S,2];else{n&&(O=!0,S=2);const k=t;if(o!==null){const I={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/3/type",keyword:"type",params:{type:"null"},message:"must be null",schema:ct.oneOf[3].type,parentSchema:ct.oneOf[3],data:o};e===null?e=[I]:e.push(I),t++}var n=k===t;n&&O?(O=!1,S=[S,3]):n&&(O=!0,S=3)}}if(O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:ct.oneOf,parentSchema:ct,data:o};e===null?e=[f]:e.push(f),t++}}}else{const g={instancePath:s+"/rows/"+c,schemaPath:"#/properties/rows/items/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ze.properties.rows.items.type,parentSchema:ze.properties.rows.items,data:y};e===null?e=[g]:e.push(g),t++}}}else{const h={instancePath:s+"/rows",schemaPath:"#/properties/rows/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ze.properties.rows.type,parentSchema:ze.properties.rows,data:i};e===null?e=[h]:e.push(h),t++}}if(a.source!==void 0){let i=a.source;if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.src===void 0){const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:re.required,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}for(const h in i)if(!(h==="src"||h==="sheet"||h==="range"||h==="fields"||h==="retrieved"||h==="description")){const c={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:re,data:i};e===null?e=[c]:e.push(c),t++}if(i.src!==void 0){let h=i.src;if(typeof h!="string"){const c={instancePath:s+"/source/src",schemaPath:"#/$defs/DataSourceRef/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.src.type,parentSchema:re.properties.src,data:h};e===null?e=[c]:e.push(c),t++}}if(i.sheet!==void 0){let h=i.sheet;if(typeof h!="string"){const c={instancePath:s+"/source/sheet",schemaPath:"#/$defs/DataSourceRef/properties/sheet/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.sheet.type,parentSchema:re.properties.sheet,data:h};e===null?e=[c]:e.push(c),t++}}if(i.range!==void 0){let h=i.range;if(typeof h!="string"){const c={instancePath:s+"/source/range",schemaPath:"#/$defs/DataSourceRef/properties/range/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.range.type,parentSchema:re.properties.range,data:h};e===null?e=[c]:e.push(c),t++}}if(i.fields!==void 0){let h=i.fields;if(Array.isArray(h)){const c=h.length;for(let y=0;y<c;y++){let g=h[y];if(typeof g!="string"){const l={instancePath:s+"/source/fields/"+y,schemaPath:"#/$defs/DataSourceRef/properties/fields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.fields.items.type,parentSchema:re.properties.fields.items,data:g};e===null?e=[l]:e.push(l),t++}}}else{const c={instancePath:s+"/source/fields",schemaPath:"#/$defs/DataSourceRef/properties/fields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:re.properties.fields.type,parentSchema:re.properties.fields,data:h};e===null?e=[c]:e.push(c),t++}}if(i.retrieved!==void 0){let h=i.retrieved;if(typeof h!="string"){const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.retrieved.type,parentSchema:re.properties.retrieved,data:h};e===null?e=[o]:e.push(o),t++}const c=t;let y=!1;const g=t;if(typeof h=="string"&&!xn.validate(h)){const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/0/format",keyword:"format",params:{format:"date"},message:'must match format "date"',schema:"date",parentSchema:re.properties.retrieved.anyOf[0],data:h};e===null?e=[o]:e.push(o),t++}var p=g===t;y=y||p;const l=t;if(typeof h=="string"&&!Nn.validate(h)){const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/1/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"',schema:"date-time",parentSchema:re.properties.retrieved.anyOf[1],data:h};e===null?e=[o]:e.push(o),t++}var p=l===t;if(y=y||p,y)t=c,e!==null&&(c?e.length=c:e=null);else{const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:re.properties.retrieved.anyOf,parentSchema:re.properties.retrieved,data:h};e===null?e=[o]:e.push(o),t++}}if(i.description!==void 0){let h=i.description;if(typeof h!="string"){const c={instancePath:s+"/source/description",schemaPath:"#/$defs/DataSourceRef/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.description.type,parentSchema:re.properties.description,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/type",keyword:"type",params:{type:"object"},message:"must be object",schema:re.type,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ze.type,parentSchema:ze,data:a};e===null?e=[i]:e.push(i),t++}return rn.errors=e,t===0}rn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function mm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=mm.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),rn(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?rn.errors:e.concat(rn.errors),t=e.length),mm.errors=e,t===0}mm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch161=cm,j.presentation.$defs.Chart.properties.data.oneOf[1];function nn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=nn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.dataset===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"dataset"},message:"must have required property 'dataset'",schema:ga.required,parentSchema:ga,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="dataset"||r==="fields")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ga,data:a};e===null?e=[n]:e.push(n),t++}if(a.dataset!==void 0){let r=a.dataset;if(typeof r=="string"){if(!Us.test(r)){const n={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$"},message:'must match pattern "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"',schema:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$",parentSchema:Na,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Na.type,parentSchema:Na,data:r};e===null?e=[n]:e.push(n),t++}}if(a.fields!==void 0){let r=a.fields;if(Array.isArray(r)){if(r.length<1){const h={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Ft,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/fields/"+h,schemaPath:"#/$defs/DatasetFields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ft.items.type,parentSchema:Ft.items,data:c};e===null?e=[y]:e.push(y),t++}}let p=r.length,i;if(p>1){const h={};for(;p--;){let c=r[p];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/uniqueItems",keyword:"uniqueItems",params:{i:p,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+p+" are identical)",schema:!0,parentSchema:Ft,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=p}}}}else{const n={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ft.type,parentSchema:Ft,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ga.type,parentSchema:ga,data:a};e===null?e=[r]:e.push(r),t++}return nn.errors=e,t===0}nn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function cm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=cm.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),nn(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?nn.errors:e.concat(nn.errors),t=e.length),cm.errors=e,t===0}cm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch162=hm;var jl=j.presentation.$defs.Chart.properties.dataLabels.oneOf[0];function hm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=hm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:jl.type,parentSchema:jl,data:a};e===null?e=[r]:e.push(r),t++}return hm.errors=e,t===0}hm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch163=lm,j.presentation.$defs.Chart.properties.dataLabels.oneOf[1];function lm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=lm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const r in a)if(!(r==="content"||r==="position"||r==="separator")){const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:dt,data:a};e===null?e=[n]:e.push(n),t++}if(a.content!==void 0){let r=a.content;if(Array.isArray(r)){if(r.length<1){const h={instancePath:s+"/content",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/content/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:dt.properties.content,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/content/"+h,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/content/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:dt.properties.content.items.type,parentSchema:dt.properties.content.items,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="value"||c==="percent"||c==="category")){const y={instancePath:s+"/content/"+h,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/content/items/enum",keyword:"enum",params:{allowedValues:dt.properties.content.items.enum},message:"must be equal to one of the allowed values",schema:dt.properties.content.items.enum,parentSchema:dt.properties.content.items,data:c};e===null?e=[y]:e.push(y),t++}}let p=r.length,i;if(p>1){const h={};for(;p--;){let c=r[p];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/content",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/content/uniqueItems",keyword:"uniqueItems",params:{i:p,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+p+" are identical)",schema:!0,parentSchema:dt.properties.content,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=p}}}}else{const n={instancePath:s+"/content",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/content/type",keyword:"type",params:{type:"array"},message:"must be array",schema:dt.properties.content.type,parentSchema:dt.properties.content,data:r};e===null?e=[n]:e.push(n),t++}}if(a.position!==void 0){let r=a.position;if(typeof r!="string"){const n={instancePath:s+"/position",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/position/type",keyword:"type",params:{type:"string"},message:"must be string",schema:dt.properties.position.type,parentSchema:dt.properties.position,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="auto"||r==="center"||r==="inside-end"||r==="inside-base"||r==="outside-end"||r==="above"||r==="below"||r==="left"||r==="right")){const n={instancePath:s+"/position",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/position/enum",keyword:"enum",params:{allowedValues:dt.properties.position.enum},message:"must be equal to one of the allowed values",schema:dt.properties.position.enum,parentSchema:dt.properties.position,data:r};e===null?e=[n]:e.push(n),t++}}if(a.separator!==void 0){let r=a.separator;if(typeof r!="string"){const n={instancePath:s+"/separator",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/separator/type",keyword:"type",params:{type:"string"},message:"must be string",schema:dt.properties.separator.type,parentSchema:dt.properties.separator,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/type",keyword:"type",params:{type:"object"},message:"must be object",schema:dt.type,parentSchema:dt,data:a};e===null?e=[r]:e.push(r),t++}return lm.errors=e,t===0}lm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch164=dm;var Fl=j.presentation.$defs.Table.properties.columns.items.oneOf[0];function dm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=dm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Fl.type,parentSchema:Fl,data:a};e===null?e=[r]:e.push(r),t++}return dm.errors=e,t===0}dm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch165=um;var Tl=j.presentation.$defs.Table.properties.columns.items.oneOf[1];function on(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=on.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return on.errors=e,m.props=l,t===0}on.evaluated={dynamicProps:!0,dynamicItems:!1};function um(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=um.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)on(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?on.errors:e.concat(on.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Tl.type,parentSchema:Tl,data:a};e===null?e=[r]:e.push(r),t++}return um.errors=e,t===0}um.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.branch166=ym,j.presentation.$defs.Table.properties.columns.items.oneOf[2];function pn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=pn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:tt.required,parentSchema:tt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="value"||r==="style"||r==="colSpan"||r==="rowSpan"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:tt,data:a};e===null?e=[n]:e.push(n),t++}if(a.value!==void 0&&(Yt(a.value,{instancePath:s+"/value",parentData:a,parentDataProperty:"value",rootData:v,dynamicAnchors:b})||(e=e===null?Yt.errors:e.concat(Yt.errors),t=e.length)),a.style!==void 0&&(va(a.style,{instancePath:s+"/style",parentData:a,parentDataProperty:"style",rootData:v,dynamicAnchors:b})||(e=e===null?va.errors:e.concat(va.errors),t=e.length)),a.colSpan!==void 0){let r=a.colSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:tt.properties.colSpan.type,parentSchema:tt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:tt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.rowSpan!==void 0){let r=a.rowSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:tt.properties.rowSpan.type,parentSchema:tt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:tt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rt.type,parentSchema:Rt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:tt.type,parentSchema:tt,data:a};e===null?e=[r]:e.push(r),t++}return pn.errors=e,t===0}pn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ym(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ym.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),pn(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?pn.errors:e.concat(pn.errors),t=e.length),ym.errors=e,t===0}ym.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch167=fm,j.presentation.$defs.Table.properties.columns.items.oneOf[3];function mn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=mn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:wt.required,parentSchema:wt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="name"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:wt,data:a};e===null?e=[n]:e.push(n),t++}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:wt.properties.name.type,parentSchema:wt.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rt.type,parentSchema:Rt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:wt.type,parentSchema:wt,data:a};e===null?e=[r]:e.push(r),t++}return mn.errors=e,t===0}mn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function fm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=fm.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),mn(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?mn.errors:e.concat(mn.errors),t=e.length),fm.errors=e,t===0}fm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch168=gm;var Cl=j.presentation.$defs.Table.properties.columns.items.oneOf[4];function gm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=gm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!==null){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"null"},message:"must be null",schema:Cl.type,parentSchema:Cl,data:a};e===null?e=[r]:e.push(r),t++}return gm.errors=e,t===0}gm.evaluated={dynamicProps:!1,dynamicItems:!1},$.definition8=Pm;function Pm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Pm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.columns===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columns"},message:"must have required property 'columns'",schema:ze.required,parentSchema:ze,data:a};e===null?e=[i]:e.push(i),t++}if(a.rows===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rows"},message:"must have required property 'rows'",schema:ze.required,parentSchema:ze,data:a};e===null?e=[i]:e.push(i),t++}for(const i in a)if(!(i==="columns"||i==="rows"||i==="source")){const h={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:ze,data:a};e===null?e=[h]:e.push(h),t++}if(a.columns!==void 0){let i=a.columns;if(Array.isArray(i)){if(i.length<1){const c={instancePath:s+"/columns",schemaPath:"#/properties/columns/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ze.properties.columns,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++){let y=i[c];const g=t;let l=!1,o=null;const d=t;if(typeof y!="string"){const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.columns.items.oneOf[0].type,parentSchema:ze.properties.columns.items.oneOf[0],data:y};e===null?e=[S]:e.push(S),t++}var r=d===t;r&&(l=!0,o=0);const O=t;ea(y,{instancePath:s+"/columns/"+c,parentData:i,parentDataProperty:c,rootData:v,dynamicAnchors:b})||(e=e===null?ea.errors:e.concat(ea.errors),t=e.length);var r=O===t;if(r&&l?(l=!1,o=[o,1]):r&&(l=!0,o=1),l)t=g,e!==null&&(g?e.length=g:e=null);else{const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:ze.properties.columns.items.oneOf,parentSchema:ze.properties.columns.items,data:y};e===null?e=[S]:e.push(S),t++}}}else{const h={instancePath:s+"/columns",schemaPath:"#/properties/columns/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ze.properties.columns.type,parentSchema:ze.properties.columns,data:i};e===null?e=[h]:e.push(h),t++}}if(a.rows!==void 0){let i=a.rows;if(Array.isArray(i)){if(i.length<1){const c={instancePath:s+"/rows",schemaPath:"#/properties/rows/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ze.properties.rows,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++){let y=i[c];if(Array.isArray(y)){const g=y.length;for(let l=0;l<g;l++){let o=y[l];const d=t;let O=!1,S=null;const w=t;if(typeof o!="string"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ct.oneOf[0].type,parentSchema:ct.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var n=w===t;n&&(O=!0,S=0);const q=t;if(typeof o!="number"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ct.oneOf[1].type,parentSchema:ct.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var n=q===t;if(n&&O)O=!1,S=[S,1];else{n&&(O=!0,S=1);const f=t;if(typeof o!="boolean"){const k={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ct.oneOf[2].type,parentSchema:ct.oneOf[2],data:o};e===null?e=[k]:e.push(k),t++}var n=f===t;if(n&&O)O=!1,S=[S,2];else{n&&(O=!0,S=2);const k=t;if(o!==null){const I={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/3/type",keyword:"type",params:{type:"null"},message:"must be null",schema:ct.oneOf[3].type,parentSchema:ct.oneOf[3],data:o};e===null?e=[I]:e.push(I),t++}var n=k===t;n&&O?(O=!1,S=[S,3]):n&&(O=!0,S=3)}}if(O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:ct.oneOf,parentSchema:ct,data:o};e===null?e=[f]:e.push(f),t++}}}else{const g={instancePath:s+"/rows/"+c,schemaPath:"#/properties/rows/items/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ze.properties.rows.items.type,parentSchema:ze.properties.rows.items,data:y};e===null?e=[g]:e.push(g),t++}}}else{const h={instancePath:s+"/rows",schemaPath:"#/properties/rows/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ze.properties.rows.type,parentSchema:ze.properties.rows,data:i};e===null?e=[h]:e.push(h),t++}}if(a.source!==void 0){let i=a.source;if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.src===void 0){const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:re.required,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}for(const h in i)if(!(h==="src"||h==="sheet"||h==="range"||h==="fields"||h==="retrieved"||h==="description")){const c={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:re,data:i};e===null?e=[c]:e.push(c),t++}if(i.src!==void 0){let h=i.src;if(typeof h!="string"){const c={instancePath:s+"/source/src",schemaPath:"#/$defs/DataSourceRef/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.src.type,parentSchema:re.properties.src,data:h};e===null?e=[c]:e.push(c),t++}}if(i.sheet!==void 0){let h=i.sheet;if(typeof h!="string"){const c={instancePath:s+"/source/sheet",schemaPath:"#/$defs/DataSourceRef/properties/sheet/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.sheet.type,parentSchema:re.properties.sheet,data:h};e===null?e=[c]:e.push(c),t++}}if(i.range!==void 0){let h=i.range;if(typeof h!="string"){const c={instancePath:s+"/source/range",schemaPath:"#/$defs/DataSourceRef/properties/range/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.range.type,parentSchema:re.properties.range,data:h};e===null?e=[c]:e.push(c),t++}}if(i.fields!==void 0){let h=i.fields;if(Array.isArray(h)){const c=h.length;for(let y=0;y<c;y++){let g=h[y];if(typeof g!="string"){const l={instancePath:s+"/source/fields/"+y,schemaPath:"#/$defs/DataSourceRef/properties/fields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.fields.items.type,parentSchema:re.properties.fields.items,data:g};e===null?e=[l]:e.push(l),t++}}}else{const c={instancePath:s+"/source/fields",schemaPath:"#/$defs/DataSourceRef/properties/fields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:re.properties.fields.type,parentSchema:re.properties.fields,data:h};e===null?e=[c]:e.push(c),t++}}if(i.retrieved!==void 0){let h=i.retrieved;if(typeof h!="string"){const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.retrieved.type,parentSchema:re.properties.retrieved,data:h};e===null?e=[o]:e.push(o),t++}const c=t;let y=!1;const g=t;if(typeof h=="string"&&!xn.validate(h)){const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/0/format",keyword:"format",params:{format:"date"},message:'must match format "date"',schema:"date",parentSchema:re.properties.retrieved.anyOf[0],data:h};e===null?e=[o]:e.push(o),t++}var p=g===t;y=y||p;const l=t;if(typeof h=="string"&&!Nn.validate(h)){const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/1/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"',schema:"date-time",parentSchema:re.properties.retrieved.anyOf[1],data:h};e===null?e=[o]:e.push(o),t++}var p=l===t;if(y=y||p,y)t=c,e!==null&&(c?e.length=c:e=null);else{const o={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:re.properties.retrieved.anyOf,parentSchema:re.properties.retrieved,data:h};e===null?e=[o]:e.push(o),t++}}if(i.description!==void 0){let h=i.description;if(typeof h!="string"){const c={instancePath:s+"/source/description",schemaPath:"#/$defs/DataSourceRef/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.description.type,parentSchema:re.properties.description,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/type",keyword:"type",params:{type:"object"},message:"must be object",schema:re.type,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ze.type,parentSchema:ze,data:a};e===null?e=[i]:e.push(i),t++}return Pm.errors=e,t===0}Pm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch169=vm;var Vl=j.presentation.$defs.ChartData.properties.columns.items.oneOf[0];function vm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Vl.type,parentSchema:Vl,data:a};e===null?e=[r]:e.push(r),t++}return vm.errors=e,t===0}vm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch170=bm,j.presentation.$defs.ChartData.properties.columns.items.oneOf[1];function cn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=cn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:wt.required,parentSchema:wt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="name"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:wt,data:a};e===null?e=[n]:e.push(n),t++}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:wt.properties.name.type,parentSchema:wt.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rt.type,parentSchema:Rt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:wt.type,parentSchema:wt,data:a};e===null?e=[r]:e.push(r),t++}return cn.errors=e,t===0}cn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function bm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=bm.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),cn(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?cn.errors:e.concat(cn.errors),t=e.length),bm.errors=e,t===0}bm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.definition9=$s;function $s(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$s.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:wt.required,parentSchema:wt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="name"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:wt,data:a};e===null?e=[n]:e.push(n),t++}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:wt.properties.name.type,parentSchema:wt.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rt.type,parentSchema:Rt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:wt.type,parentSchema:wt,data:a};e===null?e=[r]:e.push(r),t++}return $s.errors=e,t===0}$s.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch171=Om;var ud=j.presentation.$defs.DataSourceRef.properties.retrieved.anyOf[0];function Om(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Om.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"&&!xn.validate(a)){const r={instancePath:s,schemaPath:"#/format",keyword:"format",params:{format:"date"},message:'must match format "date"',schema:"date",parentSchema:ud,data:a};e===null?e=[r]:e.push(r),t++}return Om.errors=e,t===0}Om.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch172=wm;var yd=j.presentation.$defs.DataSourceRef.properties.retrieved.anyOf[1];function wm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=wm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"&&!Nn.validate(a)){const r={instancePath:s,schemaPath:"#/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"',schema:"date-time",parentSchema:yd,data:a};e===null?e=[r]:e.push(r),t++}return wm.errors=e,t===0}wm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch173=Sm;var Ll=j.presentation.$defs.Dataset.properties.columns.items.oneOf[0];function Sm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Sm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ll.type,parentSchema:Ll,data:a};e===null?e=[r]:e.push(r),t++}return Sm.errors=e,t===0}Sm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch174=km,j.presentation.$defs.Dataset.properties.columns.items.oneOf[1];function km(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=km.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),$s(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?$s.errors:e.concat($s.errors),t=e.length),km.errors=e,t===0}km.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.definition10=Am;function Am(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Am.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.dataset===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"dataset"},message:"must have required property 'dataset'",schema:ga.required,parentSchema:ga,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="dataset"||r==="fields")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ga,data:a};e===null?e=[n]:e.push(n),t++}if(a.dataset!==void 0){let r=a.dataset;if(typeof r=="string"){if(!Us.test(r)){const n={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$"},message:'must match pattern "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"',schema:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$",parentSchema:Na,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Na.type,parentSchema:Na,data:r};e===null?e=[n]:e.push(n),t++}}if(a.fields!==void 0){let r=a.fields;if(Array.isArray(r)){if(r.length<1){const h={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Ft,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/fields/"+h,schemaPath:"#/$defs/DatasetFields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ft.items.type,parentSchema:Ft.items,data:c};e===null?e=[y]:e.push(y),t++}}let p=r.length,i;if(p>1){const h={};for(;p--;){let c=r[p];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/uniqueItems",keyword:"uniqueItems",params:{i:p,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+p+" are identical)",schema:!0,parentSchema:Ft,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=p}}}}else{const n={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ft.type,parentSchema:Ft,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ga.type,parentSchema:ga,data:a};e===null?e=[r]:e.push(r),t++}return Am.errors=e,t===0}Am.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch175=Dm;var Rl=j.presentation.$defs.ChartDataCell.oneOf[0];function Dm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Dm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rl.type,parentSchema:Rl,data:a};e===null?e=[r]:e.push(r),t++}return Dm.errors=e,t===0}Dm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch176=$m;var Zl=j.presentation.$defs.ChartDataCell.oneOf[1];function $m(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$m.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="number"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Zl.type,parentSchema:Zl,data:a};e===null?e=[r]:e.push(r),t++}return $m.errors=e,t===0}$m.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch177=qm;var Ml=j.presentation.$defs.ChartDataCell.oneOf[2];function qm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=qm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Ml.type,parentSchema:Ml,data:a};e===null?e=[r]:e.push(r),t++}return qm.errors=e,t===0}qm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch178=xm;var Bl=j.presentation.$defs.ChartDataCell.oneOf[3];function xm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!==null){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"null"},message:"must be null",schema:Bl.type,parentSchema:Bl,data:a};e===null?e=[r]:e.push(r),t++}return xm.errors=e,t===0}xm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch179=Nm,j.presentation.$defs.TableCell.oneOf[0];function qs(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=qs.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const g={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Tt.oneOf[0].type,parentSchema:Tt.oneOf[0],data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,p=0);const h=t;if(typeof a!="number"){const g={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Tt.oneOf[1].type,parentSchema:Tt.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}var c=h===t;if(c&&n)n=!1,p=[p,1];else{c&&(n=!0,p=1);const g=t;if(typeof a!="boolean"){const o={instancePath:s,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Tt.oneOf[2].type,parentSchema:Tt.oneOf[2],data:a};e===null?e=[o]:e.push(o),t++}var c=g===t;if(c&&n)n=!1,p=[p,2];else{c&&(n=!0,p=2);const o=t;if(a!==null){const O={instancePath:s,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"null"},message:"must be null",schema:Tt.oneOf[3].type,parentSchema:Tt.oneOf[3],data:a};e===null?e=[O]:e.push(O),t++}var c=o===t;if(c&&n)n=!1,p=[p,3];else{c&&(n=!0,p=3);const O=t;if(Array.isArray(a)){const w=a.length;for(let q=0;q<w;q++)W(a[q],{instancePath:s+"/"+q,parentData:a,parentDataProperty:q,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const w={instancePath:s,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Tt.oneOf[4].type,parentSchema:Tt.oneOf[4],data:a};e===null?e=[w]:e.push(w),t++}var c=O===t;if(c&&n)n=!1,p=[p,4];else if(c){n=!0,p=4;var y=!0}}}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:Tt.oneOf,parentSchema:Tt,data:a};e===null?e=[g]:e.push(g),t++}return qs.errors=e,m.items=y,t===0}qs.evaluated={dynamicProps:!1,dynamicItems:!0};function Nm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Nm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),!qs(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b}))e=e===null?qs.errors:e.concat(qs.errors),t=e.length;else var r=qs.evaluated.items;return Nm.errors=e,m.items=r,t===0}Nm.evaluated={dynamicProps:!1,dynamicItems:!0},$.branch180=Im,j.presentation.$defs.TableCell.oneOf[1];function hn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=hn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:tt.required,parentSchema:tt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="value"||r==="style"||r==="colSpan"||r==="rowSpan"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:tt,data:a};e===null?e=[n]:e.push(n),t++}if(a.value!==void 0&&(Yt(a.value,{instancePath:s+"/value",parentData:a,parentDataProperty:"value",rootData:v,dynamicAnchors:b})||(e=e===null?Yt.errors:e.concat(Yt.errors),t=e.length)),a.style!==void 0&&(va(a.style,{instancePath:s+"/style",parentData:a,parentDataProperty:"style",rootData:v,dynamicAnchors:b})||(e=e===null?va.errors:e.concat(va.errors),t=e.length)),a.colSpan!==void 0){let r=a.colSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:tt.properties.colSpan.type,parentSchema:tt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:tt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.rowSpan!==void 0){let r=a.rowSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:tt.properties.rowSpan.type,parentSchema:tt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:tt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rt.type,parentSchema:Rt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:tt.type,parentSchema:tt,data:a};e===null?e=[r]:e.push(r),t++}return hn.errors=e,t===0}hn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Im(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Im.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),hn(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?hn.errors:e.concat(hn.errors),t=e.length),Im.errors=e,t===0}Im.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch181=zm;var Hl=j.presentation.$defs.TableCellValue.oneOf[0];function zm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=zm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Hl.type,parentSchema:Hl,data:a};e===null?e=[r]:e.push(r),t++}return zm.errors=e,t===0}zm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch182=jm;var _l=j.presentation.$defs.TableCellValue.oneOf[1];function jm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=jm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="number"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number",schema:_l.type,parentSchema:_l,data:a};e===null?e=[r]:e.push(r),t++}return jm.errors=e,t===0}jm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch183=Fm;var El=j.presentation.$defs.TableCellValue.oneOf[2];function Fm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Fm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:El.type,parentSchema:El,data:a};e===null?e=[r]:e.push(r),t++}return Fm.errors=e,t===0}Fm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch184=Tm;var Ul=j.presentation.$defs.TableCellValue.oneOf[3];function Tm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Tm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!==null){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"null"},message:"must be null",schema:Ul.type,parentSchema:Ul,data:a};e===null?e=[r]:e.push(r),t++}return Tm.errors=e,t===0}Tm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch185=Cm;var Kl=j.presentation.$defs.TableCellValue.oneOf[4];function ln(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ln.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;if(typeof a!="string"){const o={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[o]:e.push(o),t++}var g=i===t;g&&(n=!0,p=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:o};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:o};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:o};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:o};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:o};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:o};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:o};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:o};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!xt.test(o)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:o};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Nt.test(o)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:o};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:o};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let o=a.cite;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var c=w===t;c&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++){let k=o[P];if(typeof k=="string"){if(me(k)<1){const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}else{const D={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:k};e===null?e=[D]:e.push(D),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var c=q===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:o};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let o=a.footnote;const d=t;let O=!1,S=null;const w=t;if(typeof o=="string"){if(me(o)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:o};e===null?e=[f]:e.push(f),t++}var y=w===t;y&&(O=!0,S=0);const q=t;if(Array.isArray(o)){if(o.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[P]:e.push(P),t++}const f=o.length;for(let P=0;P<f;P++)W(o[P],{instancePath:s+"/footnote/"+P,parentData:o,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?W.errors:e.concat(W.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:o};e===null?e=[f]:e.push(f),t++}var y=q===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:o};e===null?e=[f]:e.push(f),t++}}}else{const o={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[o]:e.push(o),t++}var g=h===t;if(g&&n)n=!1,p=[p,1];else if(g){n=!0,p=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const o={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[o]:e.push(o),t++}return ln.errors=e,m.props=l,t===0}ln.evaluated={dynamicProps:!0,dynamicItems:!1};function Cm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Cm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)ln(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?ln.errors:e.concat(ln.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Kl.type,parentSchema:Kl,data:a};e===null?e=[r]:e.push(r),t++}return Cm.errors=e,t===0}Cm.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},$.definition11=Vm;function Vm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Vm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:tt.required,parentSchema:tt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="value"||r==="style"||r==="colSpan"||r==="rowSpan"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:tt,data:a};e===null?e=[n]:e.push(n),t++}if(a.value!==void 0&&(Yt(a.value,{instancePath:s+"/value",parentData:a,parentDataProperty:"value",rootData:v,dynamicAnchors:b})||(e=e===null?Yt.errors:e.concat(Yt.errors),t=e.length)),a.style!==void 0&&(va(a.style,{instancePath:s+"/style",parentData:a,parentDataProperty:"style",rootData:v,dynamicAnchors:b})||(e=e===null?va.errors:e.concat(va.errors),t=e.length)),a.colSpan!==void 0){let r=a.colSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:tt.properties.colSpan.type,parentSchema:tt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:tt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.rowSpan!==void 0){let r=a.rowSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:tt.properties.rowSpan.type,parentSchema:tt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:tt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rt.type,parentSchema:Rt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:tt.type,parentSchema:tt,data:a};e===null?e=[r]:e.push(r),t++}return Vm.errors=e,t===0}Vm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch186=Rm;var Lm=j.presentation.$defs.Catalogs.properties.default.oneOf[0];function dn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=dn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const C in a)if(!wa.call(bs.properties,C)){const T={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:C},message:"must NOT have additional properties",schema:!1,parentSchema:bs,data:a};e===null?e=[T]:e.push(T),t++}if(a.source!==void 0){let C=a.source;if(typeof C=="string"){if(!mh.test(C)){const T={instancePath:s+"/source",schemaPath:"#/$defs/CatalogSource/pattern",keyword:"pattern",params:{pattern:"^(?:https://[^\\s]+|pkg:[^\\s]+)$"},message:'must match pattern "^(?:https://[^\\s]+|pkg:[^\\s]+)$"',schema:"^(?:https://[^\\s]+|pkg:[^\\s]+)$",parentSchema:ar,data:C};e===null?e=[T]:e.push(T),t++}}else{const T={instancePath:s+"/source",schemaPath:"#/$defs/CatalogSource/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ar.type,parentSchema:ar,data:C};e===null?e=[T]:e.push(T),t++}}if(a.layouts!==void 0){let C=a.layouts;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/layouts",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var r=F===t;if(!r){const H={instancePath:s+"/layouts",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/layouts/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var n=Ke===t;G=G||n;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var n=at===t;if(G=G||n,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var p=ae===t;if(p){const R={instancePath:s+"/layouts/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/layouts",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}if(a.themes!==void 0){let C=a.themes;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/themes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var i=F===t;if(!i){const H={instancePath:s+"/themes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/themes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var h=Ke===t;G=G||h;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var h=at===t;if(G=G||h,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var c=ae===t;if(c){const R={instancePath:s+"/themes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/themes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}if(a.colorSchemes!==void 0){let C=a.colorSchemes;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/colorSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var y=F===t;if(!y){const H={instancePath:s+"/colorSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/colorSchemes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var g=Ke===t;G=G||g;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var g=at===t;if(G=G||g,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var l=ae===t;if(l){const R={instancePath:s+"/colorSchemes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/colorSchemes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}if(a.fontSchemes!==void 0){let C=a.fontSchemes;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/fontSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var o=F===t;if(!o){const H={instancePath:s+"/fontSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/fontSchemes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var d=Ke===t;G=G||d;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var d=at===t;if(G=G||d,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var O=ae===t;if(O){const R={instancePath:s+"/fontSchemes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/fontSchemes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}if(a.narratives!==void 0){let C=a.narratives;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/narratives",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var S=F===t;if(!S){const H={instancePath:s+"/narratives",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/narratives/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var w=Ke===t;G=G||w;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var w=at===t;if(G=G||w,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var q=ae===t;if(q){const R={instancePath:s+"/narratives/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/narratives",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}if(a.audiences!==void 0){let C=a.audiences;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/audiences",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var f=F===t;if(!f){const H={instancePath:s+"/audiences",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/audiences/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var P=Ke===t;G=G||P;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var P=at===t;if(G=G||P,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var k=ae===t;if(k){const R={instancePath:s+"/audiences/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/audiences",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}if(a.purposes!==void 0){let C=a.purposes;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/purposes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var D=F===t;if(!D){const H={instancePath:s+"/purposes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/purposes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var I=Ke===t;G=G||I;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var I=at===t;if(G=G||I,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var L=ae===t;if(L){const R={instancePath:s+"/purposes/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/purposes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}if(a.tones!==void 0){let C=a.tones;if(C&&typeof C=="object"&&!Array.isArray(C)){for(const T in C){const F=t;if(typeof T=="string"&&!gt.test(T)){const H={instancePath:s+"/tones",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.propertyNames,data:T,propertyName:T};e===null?e=[H]:e.push(H),t++}var Z=F===t;if(!Z){const H={instancePath:s+"/tones",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:T},message:"property name must be valid",schema:Y.propertyNames,parentSchema:Y,data:C};e===null?e=[H]:e.push(H),t++}}for(const T in C){let F=C[T];if(!(F&&typeof F=="object"&&!Array.isArray(F))){const R={instancePath:s+"/tones/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.additionalProperties.type,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}const H=t,ae=t,ee=t;let G=!1;const Ke=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.$schema===void 0){const R={};e===null?e=[R]:e.push(R),t++}var M=Ke===t;G=G||M;const at=t;if(F&&typeof F=="object"&&!Array.isArray(F)&&F.id===void 0){const R={};e===null?e=[R]:e.push(R),t++}var M=at===t;if(G=G||M,G)t=ee,e!==null&&(ee?e.length=ee:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var J=ae===t;if(J){const R={instancePath:s+"/tones/"+T.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.additionalProperties.not,parentSchema:Y.additionalProperties,data:F};e===null?e=[R]:e.push(R),t++}else t=H,e!==null&&(H?e.length=H:e=null)}}else{const T={instancePath:s+"/tones",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:C};e===null?e=[T]:e.push(T),t++}}}else{const C={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:bs.type,parentSchema:bs,data:a};e===null?e=[C]:e.push(C),t++}return dn.errors=e,t===0}dn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Rm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Rm.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),dn(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?dn.errors:e.concat(dn.errors),t=e.length);const r=t;let n=!0;const p=t,i=t;let h=!1;const c=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.layouts===void 0){const f={};e===null?e=[f]:e.push(f),t++}var w=c===t;h=h||w;const y=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.themes===void 0){const f={};e===null?e=[f]:e.push(f),t++}var w=y===t;h=h||w;const g=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.colorSchemes===void 0){const f={};e===null?e=[f]:e.push(f),t++}var w=g===t;h=h||w;const l=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.fontSchemes===void 0){const f={};e===null?e=[f]:e.push(f),t++}var w=l===t;h=h||w;const o=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.narratives===void 0){const f={};e===null?e=[f]:e.push(f),t++}var w=o===t;h=h||w;const d=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.audiences===void 0){const f={};e===null?e=[f]:e.push(f),t++}var w=d===t;h=h||w;const O=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.purposes===void 0){const f={};e===null?e=[f]:e.push(f),t++}var w=O===t;h=h||w;const S=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.tones===void 0){const f={};e===null?e=[f]:e.push(f),t++}var w=S===t;if(h=h||w,h)t=i,e!==null&&(i?e.length=i:e=null);else{const f={};e===null?e=[f]:e.push(f),t++}var q=p===t;if(t=r,e!==null&&(r?e.length=r:e=null),q){const f=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.source===void 0){const k={instancePath:s,schemaPath:"#/allOf/1/then/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:Lm.allOf[1].then.required,parentSchema:Lm.allOf[1].then,data:a};e===null?e=[k]:e.push(k),t++}var q=f===t;n=q}if(!n){const f={instancePath:s,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Lm.allOf[1].if,parentSchema:Lm.allOf[1],data:a};e===null?e=[f]:e.push(f),t++}return Rm.errors=e,t===0}Rm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch187=Zm;var fd=j.presentation.$defs.Catalogs.properties.default.oneOf[1];function Zm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Zm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!==!1){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:fd,data:a};e===null?e=[r]:e.push(r),t++}return Zm.errors=e,t===0}Zm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch188=Mm;var Jl=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[0];function Mm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Mm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.layouts===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"layouts"},message:"must have required property 'layouts'",schema:Jl.required,parentSchema:Jl,data:a};e===null?e=[r]:e.push(r),t++}return Mm.errors=e,t===0}Mm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch189=Bm;var Wl=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[1];function Bm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Bm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.themes===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"themes"},message:"must have required property 'themes'",schema:Wl.required,parentSchema:Wl,data:a};e===null?e=[r]:e.push(r),t++}return Bm.errors=e,t===0}Bm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch190=Hm;var Yl=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[2];function Hm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Hm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.colorSchemes===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"colorSchemes"},message:"must have required property 'colorSchemes'",schema:Yl.required,parentSchema:Yl,data:a};e===null?e=[r]:e.push(r),t++}return Hm.errors=e,t===0}Hm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch191=_m;var Xl=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[3];function _m(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=_m.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.fontSchemes===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"fontSchemes"},message:"must have required property 'fontSchemes'",schema:Xl.required,parentSchema:Xl,data:a};e===null?e=[r]:e.push(r),t++}return _m.errors=e,t===0}_m.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch192=Em;var Ql=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[4];function Em(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Em.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.narratives===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"narratives"},message:"must have required property 'narratives'",schema:Ql.required,parentSchema:Ql,data:a};e===null?e=[r]:e.push(r),t++}return Em.errors=e,t===0}Em.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch193=Um;var Gl=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[5];function Um(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Um.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.audiences===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"audiences"},message:"must have required property 'audiences'",schema:Gl.required,parentSchema:Gl,data:a};e===null?e=[r]:e.push(r),t++}return Um.errors=e,t===0}Um.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch194=Km;var ed=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[6];function Km(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Km.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.purposes===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"purposes"},message:"must have required property 'purposes'",schema:ed.required,parentSchema:ed,data:a};e===null?e=[r]:e.push(r),t++}return Km.errors=e,t===0}Km.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch195=Jm;var td=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[7];function Jm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Jm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.tones===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"tones"},message:"must have required property 'tones'",schema:td.required,parentSchema:td,data:a};e===null?e=[r]:e.push(r),t++}return Jm.errors=e,t===0}Jm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch196=Wm;var ad=j.presentation.$defs.CatalogRecords.additionalProperties.not.anyOf[0];function Wm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Wm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:ad.required,parentSchema:ad,data:a};e===null?e=[r]:e.push(r),t++}return Wm.errors=e,t===0}Wm.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch197=Ym;var sd=j.presentation.$defs.CatalogRecords.additionalProperties.not.anyOf[1];function Ym(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ym.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:sd.required,parentSchema:sd,data:a};e===null?e=[r]:e.push(r),t++}return Ym.errors=e,t===0}Ym.evaluated={dynamicProps:!1,dynamicItems:!1},$.root1=Xm;var $e=j.audience,Pt=jc().fullFormats.uri;function Xm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Xm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:$e.required,parentSchema:$e,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:$e.required,parentSchema:$e,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:$e.required,parentSchema:$e,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.$schema.type,parentSchema:$e.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-audience/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-audience/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-audience/v1",parentSchema:$e.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!gt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:$e.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.id.type,parentSchema:$e.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.name.type,parentSchema:$e.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.summary.type,parentSchema:$e.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.description.type,parentSchema:$e.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.seniority!==void 0){let r=a.seniority;if(typeof r!="string"){const n={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.seniority.type,parentSchema:$e.properties.seniority,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="ic"||r==="manager"||r==="director"||r==="vp"||r==="c-suite"||r==="mixed")){const n={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/enum",keyword:"enum",params:{allowedValues:$e.properties.seniority.enum},message:"must be equal to one of the allowed values",schema:$e.properties.seniority.enum,parentSchema:$e.properties.seniority,data:r};e===null?e=[n]:e.push(n),t++}}if(a.technicalFluency!==void 0){let r=a.technicalFluency;if(typeof r!="string"){const n={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.technicalFluency.type,parentSchema:$e.properties.technicalFluency,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="low"||r==="medium"||r==="high"||r==="mixed")){const n={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/enum",keyword:"enum",params:{allowedValues:$e.properties.technicalFluency.enum},message:"must be equal to one of the allowed values",schema:$e.properties.technicalFluency.enum,parentSchema:$e.properties.technicalFluency,data:r};e===null?e=[n]:e.push(n),t++}}if(a.decisionPower!==void 0){let r=a.decisionPower;if(typeof r!="string"){const n={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.decisionPower.type,parentSchema:$e.properties.decisionPower,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="informational"||r==="advisory"||r==="decision-maker")){const n={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/enum",keyword:"enum",params:{allowedValues:$e.properties.decisionPower.enum},message:"must be equal to one of the allowed values",schema:$e.properties.decisionPower.enum,parentSchema:$e.properties.decisionPower,data:r};e===null?e=[n]:e.push(n),t++}}if(a.attentionBudgetMinutes!==void 0){let r=a.attentionBudgetMinutes;if(typeof r=="number"){if(r<=0||isNaN(r)){const n={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:$e.properties.attentionBudgetMinutes,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/type",keyword:"type",params:{type:"number"},message:"must be number",schema:$e.properties.attentionBudgetMinutes.type,parentSchema:$e.properties.attentionBudgetMinutes,data:r};e===null?e=[n]:e.push(n),t++}}if(a.recommendedNarratives!==void 0){let r=a.recommendedNarratives;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/recommendedNarratives/"+p,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.recommendedNarratives.items.type,parentSchema:$e.properties.recommendedNarratives.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$e.properties.recommendedNarratives.type,parentSchema:$e.properties.recommendedNarratives,data:r};e===null?e=[n]:e.push(n),t++}}if(a.recommendedTones!==void 0){let r=a.recommendedTones;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/recommendedTones/"+p,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.recommendedTones.items.type,parentSchema:$e.properties.recommendedTones.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$e.properties.recommendedTones.type,parentSchema:$e.properties.recommendedTones,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/tags/"+p,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.tags.items.type,parentSchema:$e.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$e.properties.tags.type,parentSchema:$e.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:$e.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.preview.properties.src.type,parentSchema:$e.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:$e.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.preview.properties.thumbnailSrc.type,parentSchema:$e.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:$e.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.preview.properties.vectorSrc.type,parentSchema:$e.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:$e.properties.preview.type,parentSchema:$e.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:$e.type,parentSchema:$e,data:a};e===null?e=[r]:e.push(r),t++}return Xm.errors=e,t===0}Xm.evaluated={props:{$schema:!0,id:!0,name:!0,summary:!0,description:!0,seniority:!0,technicalFluency:!0,decisionPower:!0,attentionBudgetMinutes:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},$.root2=Qm;var Je=j.purpose;function Qm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:Je.required,parentSchema:Je,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Je.required,parentSchema:Je,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Je.required,parentSchema:Je,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Je.properties.$schema.type,parentSchema:Je.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-purpose/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-purpose/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-purpose/v1",parentSchema:Je.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!gt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Je.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Je.properties.id.type,parentSchema:Je.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Je.properties.name.type,parentSchema:Je.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Je.properties.summary.type,parentSchema:Je.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Je.properties.description.type,parentSchema:Je.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.outcome!==void 0){let r=a.outcome;if(typeof r!="string"){const n={instancePath:s+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Je.properties.outcome.type,parentSchema:Je.properties.outcome,data:r};e===null?e=[n]:e.push(n),t++}}if(a.successCriteria!==void 0){let r=a.successCriteria;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/successCriteria/"+p,schemaPath:"#/properties/successCriteria/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Je.properties.successCriteria.items.type,parentSchema:Je.properties.successCriteria.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/successCriteria",schemaPath:"#/properties/successCriteria/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Je.properties.successCriteria.type,parentSchema:Je.properties.successCriteria,data:r};e===null?e=[n]:e.push(n),t++}}if(a.recommendedNarratives!==void 0){let r=a.recommendedNarratives;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/recommendedNarratives/"+p,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Je.properties.recommendedNarratives.items.type,parentSchema:Je.properties.recommendedNarratives.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Je.properties.recommendedNarratives.type,parentSchema:Je.properties.recommendedNarratives,data:r};e===null?e=[n]:e.push(n),t++}}if(a.recommendedTones!==void 0){let r=a.recommendedTones;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/recommendedTones/"+p,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Je.properties.recommendedTones.items.type,parentSchema:Je.properties.recommendedTones.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Je.properties.recommendedTones.type,parentSchema:Je.properties.recommendedTones,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/tags/"+p,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Je.properties.tags.items.type,parentSchema:Je.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Je.properties.tags.type,parentSchema:Je.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Je.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Je.properties.preview.properties.src.type,parentSchema:Je.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Je.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Je.properties.preview.properties.thumbnailSrc.type,parentSchema:Je.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Je.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Je.properties.preview.properties.vectorSrc.type,parentSchema:Je.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Je.properties.preview.type,parentSchema:Je.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Je.type,parentSchema:Je,data:a};e===null?e=[r]:e.push(r),t++}return Qm.errors=e,t===0}Qm.evaluated={props:{$schema:!0,id:!0,name:!0,summary:!0,description:!0,outcome:!0,successCriteria:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},$.root3=Gm;var _e=j.tone;function Gm(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Gm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:_e.required,parentSchema:_e,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:_e.required,parentSchema:_e,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:_e.required,parentSchema:_e,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.$schema.type,parentSchema:_e.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-tone/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-tone/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-tone/v1",parentSchema:_e.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!gt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:_e.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.id.type,parentSchema:_e.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.name.type,parentSchema:_e.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.summary.type,parentSchema:_e.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.description.type,parentSchema:_e.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.voiceCues!==void 0){let r=a.voiceCues;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/voiceCues/"+p,schemaPath:"#/properties/voiceCues/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.voiceCues.items.type,parentSchema:_e.properties.voiceCues.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/voiceCues",schemaPath:"#/properties/voiceCues/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_e.properties.voiceCues.type,parentSchema:_e.properties.voiceCues,data:r};e===null?e=[n]:e.push(n),t++}}if(a.avoid!==void 0){let r=a.avoid;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/avoid/"+p,schemaPath:"#/properties/avoid/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.avoid.items.type,parentSchema:_e.properties.avoid.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/avoid",schemaPath:"#/properties/avoid/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_e.properties.avoid.type,parentSchema:_e.properties.avoid,data:r};e===null?e=[n]:e.push(n),t++}}if(a.samplePhrases!==void 0){let r=a.samplePhrases;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/samplePhrases/"+p,schemaPath:"#/properties/samplePhrases/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.samplePhrases.items.type,parentSchema:_e.properties.samplePhrases.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/samplePhrases",schemaPath:"#/properties/samplePhrases/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_e.properties.samplePhrases.type,parentSchema:_e.properties.samplePhrases,data:r};e===null?e=[n]:e.push(n),t++}}if(a.recommendedNarratives!==void 0){let r=a.recommendedNarratives;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/recommendedNarratives/"+p,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.recommendedNarratives.items.type,parentSchema:_e.properties.recommendedNarratives.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_e.properties.recommendedNarratives.type,parentSchema:_e.properties.recommendedNarratives,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/tags/"+p,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.tags.items.type,parentSchema:_e.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_e.properties.tags.type,parentSchema:_e.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:_e.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.preview.properties.src.type,parentSchema:_e.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:_e.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.preview.properties.thumbnailSrc.type,parentSchema:_e.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:_e.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.preview.properties.vectorSrc.type,parentSchema:_e.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:_e.properties.preview.type,parentSchema:_e.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:_e.type,parentSchema:_e,data:a};e===null?e=[r]:e.push(r),t++}return Gm.errors=e,t===0}Gm.evaluated={props:{$schema:!0,id:!0,name:!0,summary:!0,description:!0,voiceCues:!0,avoid:!0,samplePhrases:!0,recommendedNarratives:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},$.root4=ec;var ue=j.theme,ds=j.theme.$defs.ThemeBackground,Oa=j.theme.$defs.ThemeBackgroundSlot;function un(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=un.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ds.required,parentSchema:ds,data:a};e===null?e=[r]:e.push(r),t++}if(a.slot===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"slot"},message:"must have required property 'slot'",schema:ds.required,parentSchema:ds,data:a};e===null?e=[r]:e.push(r),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ds.properties.type.type,parentSchema:ds.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="theme"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"theme"},message:"must be equal to constant",schema:"theme",parentSchema:ds.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.slot!==void 0){let r=a.slot;if(typeof r!="string"){const n={instancePath:s+"/slot",schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oa.type,parentSchema:Oa,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2")){const n={instancePath:s+"/slot",schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:Oa.enum},message:"must be equal to one of the allowed values",schema:Oa.enum,parentSchema:Oa,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ds.type,parentSchema:ds,data:a};e===null?e=[r]:e.push(r),t++}return un.errors=e,t===0}un.evaluated={props:{type:!0,slot:!0},dynamicProps:!1,dynamicItems:!1};var ua=j.theme.$defs.ThemeVariant;function yn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=yn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.background===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"background"},message:"must have required property 'background'",schema:xe.required,parentSchema:xe,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="background"||r==="accents")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:xe,data:a};e===null?e=[n]:e.push(n),t++}if(a.background!==void 0){let r=a.background;if(typeof r!="string"){const n={instancePath:s+"/background",schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.type,parentSchema:je,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2")){const n={instancePath:s+"/background",schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:je.enum},message:"must be equal to one of the allowed values",schema:je.enum,parentSchema:je,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accents!==void 0){let r=a.accents;if(Array.isArray(r)){if(r.length>6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items",schema:6,parentSchema:xe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}if(r.length<6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/minItems",keyword:"minItems",params:{limit:6},message:"must NOT have fewer than 6 items",schema:6,parentSchema:xe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.properties.accents.items.type,parentSchema:xe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="accent1"||c==="accent2"||c==="accent3"||c==="accent4"||c==="accent5"||c==="accent6")){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/enum",keyword:"enum",params:{allowedValues:xe.properties.accents.items.enum},message:"must be equal to one of the allowed values",schema:xe.properties.accents.items.enum,parentSchema:xe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}}let p=r.length,i;if(p>1){const h={};for(;p--;){let c=r[p];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/accents",schemaPath:"#/properties/accents/uniqueItems",keyword:"uniqueItems",params:{i:p,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+p+" are identical)",schema:!0,parentSchema:xe.properties.accents,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=p}}}}else{const n={instancePath:s+"/accents",schemaPath:"#/properties/accents/type",keyword:"type",params:{type:"array"},message:"must be array",schema:xe.properties.accents.type,parentSchema:xe.properties.accents,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:xe.type,parentSchema:xe,data:a};e===null?e=[r]:e.push(r),t++}return yn.errors=e,t===0}yn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function fn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=fn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ua.required,parentSchema:ua,data:a};e===null?e=[n]:e.push(n),t++}if(a.name===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ua.required,parentSchema:ua,data:a};e===null?e=[n]:e.push(n),t++}if(a.variant===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"variant"},message:"must have required property 'variant'",schema:ua.required,parentSchema:ua,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="id"||n==="name"||n==="variant")){const p={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:ua,data:a};e===null?e=[p]:e.push(p),t++}if(a.id!==void 0){let n=a.id;if(typeof n=="string"){if(!gt.test(n)){const p={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:ua.properties.id,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ua.properties.id.type,parentSchema:ua.properties.id,data:n};e===null?e=[p]:e.push(p),t++}}if(a.name!==void 0){let n=a.name;if(typeof n!="string"){const p={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ua.properties.name.type,parentSchema:ua.properties.name,data:n};e===null?e=[p]:e.push(p),t++}}if(a.variant!==void 0){let n=a.variant;const p=t;let i=!1,h=null;const c=t;if(typeof n!="string"){const g={instancePath:s+"/variant",schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oa.type,parentSchema:Oa,data:n};e===null?e=[g]:e.push(g),t++}if(!(n==="light1"||n==="light2"||n==="dark1"||n==="dark2")){const g={instancePath:s+"/variant",schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:Oa.enum},message:"must be equal to one of the allowed values",schema:Oa.enum,parentSchema:Oa,data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;yn(n,{instancePath:s+"/variant",parentData:a,parentDataProperty:"variant",rootData:v,dynamicAnchors:b})||(e=e===null?yn.errors:e.concat(yn.errors),t=e.length);var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=p,e!==null&&(p?e.length=p:e=null);else{const g={instancePath:s+"/variant",schemaPath:"#/properties/variant/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:ua.properties.variant.oneOf,parentSchema:ua.properties.variant,data:n};e===null?e=[g]:e.push(g),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ua.type,parentSchema:ua,data:a};e===null?e=[n]:e.push(n),t++}return fn.errors=e,t===0}fn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ec(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ec.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:ue.required,parentSchema:ue,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ue.required,parentSchema:ue,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ue.required,parentSchema:ue,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.$schema.type,parentSchema:ue.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-theme/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-theme/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-theme/v1",parentSchema:ue.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!gt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:ue.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.id.type,parentSchema:ue.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.name.type,parentSchema:ue.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.summary.type,parentSchema:ue.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.description.type,parentSchema:ue.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.colorScheme!==void 0){let r=a.colorScheme;if(typeof r=="string"){if(!Vt.test(r)){const n={instancePath:s+"/colorScheme",schemaPath:"#/properties/colorScheme/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:ue.properties.colorScheme,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/colorScheme",schemaPath:"#/properties/colorScheme/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.colorScheme.type,parentSchema:ue.properties.colorScheme,data:r};e===null?e=[n]:e.push(n),t++}}if(a.fontScheme!==void 0){let r=a.fontScheme;if(typeof r=="string"){if(!Vt.test(r)){const n={instancePath:s+"/fontScheme",schemaPath:"#/properties/fontScheme/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:ue.properties.fontScheme,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/fontScheme",schemaPath:"#/properties/fontScheme/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.fontScheme.type,parentSchema:ue.properties.fontScheme,data:r};e===null?e=[n]:e.push(n),t++}}if(a.background!==void 0&&(un(a.background,{instancePath:s+"/background",parentData:a,parentDataProperty:"background",rootData:v,dynamicAnchors:b})||(e=e===null?un.errors:e.concat(un.errors),t=e.length)),a.variants!==void 0){let r=a.variants;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++)fn(r[p],{instancePath:s+"/variants/"+p,parentData:r,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?fn.errors:e.concat(fn.errors),t=e.length)}else{const n={instancePath:s+"/variants",schemaPath:"#/properties/variants/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ue.properties.variants.type,parentSchema:ue.properties.variants,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dimensions!==void 0){let r=a.dimensions;if(typeof r!="string"){const n={instancePath:s+"/dimensions",schemaPath:"#/properties/dimensions/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.dimensions.type,parentSchema:ue.properties.dimensions,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="16:9"||r==="4:3"||r==="16:10"||r==="1:1"||r==="4:5"||r==="9:16"||r==="letter"||r==="a4"||r==="widescreen"||r==="standard")){const n={instancePath:s+"/dimensions",schemaPath:"#/properties/dimensions/enum",keyword:"enum",params:{allowedValues:ue.properties.dimensions.enum},message:"must be equal to one of the allowed values",schema:ue.properties.dimensions.enum,parentSchema:ue.properties.dimensions,data:r};e===null?e=[n]:e.push(n),t++}}if(a.design!==void 0){let r=a.design;if(r&&typeof r=="object"&&!Array.isArray(r)){for(const n in r)if(!(n==="titleAlignment"||n==="contentAlignment"||n==="contentBox"||n==="contentDirection"||n==="imageFit"||n==="listBullet")){const p={instancePath:s+"/design",schemaPath:"#/properties/design/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:ue.properties.design,data:r};e===null?e=[p]:e.push(p),t++}if(r.titleAlignment!==void 0){let n=r.titleAlignment;if(typeof n!="string"){const p={instancePath:s+"/design/titleAlignment",schemaPath:"#/properties/design/properties/titleAlignment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.design.properties.titleAlignment.type,parentSchema:ue.properties.design.properties.titleAlignment,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="left"||n==="center"||n==="right")){const p={instancePath:s+"/design/titleAlignment",schemaPath:"#/properties/design/properties/titleAlignment/enum",keyword:"enum",params:{allowedValues:ue.properties.design.properties.titleAlignment.enum},message:"must be equal to one of the allowed values",schema:ue.properties.design.properties.titleAlignment.enum,parentSchema:ue.properties.design.properties.titleAlignment,data:n};e===null?e=[p]:e.push(p),t++}}if(r.contentAlignment!==void 0){let n=r.contentAlignment;if(typeof n!="string"){const p={instancePath:s+"/design/contentAlignment",schemaPath:"#/properties/design/properties/contentAlignment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.design.properties.contentAlignment.type,parentSchema:ue.properties.design.properties.contentAlignment,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="left"||n==="center"||n==="right")){const p={instancePath:s+"/design/contentAlignment",schemaPath:"#/properties/design/properties/contentAlignment/enum",keyword:"enum",params:{allowedValues:ue.properties.design.properties.contentAlignment.enum},message:"must be equal to one of the allowed values",schema:ue.properties.design.properties.contentAlignment.enum,parentSchema:ue.properties.design.properties.contentAlignment,data:n};e===null?e=[p]:e.push(p),t++}}if(r.contentBox!==void 0){let n=r.contentBox;if(typeof n!="boolean"){const p={instancePath:s+"/design/contentBox",schemaPath:"#/properties/design/properties/contentBox/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ue.properties.design.properties.contentBox.type,parentSchema:ue.properties.design.properties.contentBox,data:n};e===null?e=[p]:e.push(p),t++}}if(r.contentDirection!==void 0){let n=r.contentDirection;if(typeof n!="string"){const p={instancePath:s+"/design/contentDirection",schemaPath:"#/properties/design/properties/contentDirection/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.design.properties.contentDirection.type,parentSchema:ue.properties.design.properties.contentDirection,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="horizontal"||n==="vertical")){const p={instancePath:s+"/design/contentDirection",schemaPath:"#/properties/design/properties/contentDirection/enum",keyword:"enum",params:{allowedValues:ue.properties.design.properties.contentDirection.enum},message:"must be equal to one of the allowed values",schema:ue.properties.design.properties.contentDirection.enum,parentSchema:ue.properties.design.properties.contentDirection,data:n};e===null?e=[p]:e.push(p),t++}}if(r.imageFit!==void 0){let n=r.imageFit;if(typeof n!="string"){const p={instancePath:s+"/design/imageFit",schemaPath:"#/properties/design/properties/imageFit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.design.properties.imageFit.type,parentSchema:ue.properties.design.properties.imageFit,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="cover"||n==="contain"||n==="stretch")){const p={instancePath:s+"/design/imageFit",schemaPath:"#/properties/design/properties/imageFit/enum",keyword:"enum",params:{allowedValues:ue.properties.design.properties.imageFit.enum},message:"must be equal to one of the allowed values",schema:ue.properties.design.properties.imageFit.enum,parentSchema:ue.properties.design.properties.imageFit,data:n};e===null?e=[p]:e.push(p),t++}}if(r.listBullet!==void 0){let n=r.listBullet;if(typeof n!="string"){const p={instancePath:s+"/design/listBullet",schemaPath:"#/properties/design/properties/listBullet/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.design.properties.listBullet.type,parentSchema:ue.properties.design.properties.listBullet,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="character"||n==="image")){const p={instancePath:s+"/design/listBullet",schemaPath:"#/properties/design/properties/listBullet/enum",keyword:"enum",params:{allowedValues:ue.properties.design.properties.listBullet.enum},message:"must be equal to one of the allowed values",schema:ue.properties.design.properties.listBullet.enum,parentSchema:ue.properties.design.properties.listBullet,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/design",schemaPath:"#/properties/design/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ue.properties.design.type,parentSchema:ue.properties.design,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/tags/"+p,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.tags.items.type,parentSchema:ue.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ue.properties.tags.type,parentSchema:ue.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:ue.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.preview.properties.src.type,parentSchema:ue.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:ue.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.preview.properties.thumbnailSrc.type,parentSchema:ue.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:ue.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.preview.properties.vectorSrc.type,parentSchema:ue.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ue.properties.preview.type,parentSchema:ue.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ue.type,parentSchema:ue,data:a};e===null?e=[r]:e.push(r),t++}return ec.errors=e,t===0}ec.evaluated={props:{$schema:!0,id:!0,name:!0,summary:!0,description:!0,colorScheme:!0,fontScheme:!0,background:!0,variants:!0,dimensions:!0,design:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},$.branch198=tc,j.theme.$defs.ThemeVariant.properties.variant.oneOf[0];function tc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=tc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf-theme/v1#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Oa.type,parentSchema:Oa,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="light1"||a==="light2"||a==="dark1"||a==="dark2")){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf-theme/v1#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:Oa.enum},message:"must be equal to one of the allowed values",schema:Oa.enum,parentSchema:Oa,data:a};e===null?e=[r]:e.push(r),t++}return tc.errors=e,t===0}tc.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch199=ac,j.theme.$defs.ThemeVariant.properties.variant.oneOf[1];function gn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=gn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.background===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"background"},message:"must have required property 'background'",schema:xe.required,parentSchema:xe,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="background"||r==="accents")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:xe,data:a};e===null?e=[n]:e.push(n),t++}if(a.background!==void 0){let r=a.background;if(typeof r!="string"){const n={instancePath:s+"/background",schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.type,parentSchema:je,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2")){const n={instancePath:s+"/background",schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:je.enum},message:"must be equal to one of the allowed values",schema:je.enum,parentSchema:je,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accents!==void 0){let r=a.accents;if(Array.isArray(r)){if(r.length>6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items",schema:6,parentSchema:xe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}if(r.length<6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/minItems",keyword:"minItems",params:{limit:6},message:"must NOT have fewer than 6 items",schema:6,parentSchema:xe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.properties.accents.items.type,parentSchema:xe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="accent1"||c==="accent2"||c==="accent3"||c==="accent4"||c==="accent5"||c==="accent6")){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/enum",keyword:"enum",params:{allowedValues:xe.properties.accents.items.enum},message:"must be equal to one of the allowed values",schema:xe.properties.accents.items.enum,parentSchema:xe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}}let p=r.length,i;if(p>1){const h={};for(;p--;){let c=r[p];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/accents",schemaPath:"#/properties/accents/uniqueItems",keyword:"uniqueItems",params:{i:p,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+p+" are identical)",schema:!0,parentSchema:xe.properties.accents,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=p}}}}else{const n={instancePath:s+"/accents",schemaPath:"#/properties/accents/type",keyword:"type",params:{type:"array"},message:"must be array",schema:xe.properties.accents.type,parentSchema:xe.properties.accents,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:xe.type,parentSchema:xe,data:a};e===null?e=[r]:e.push(r),t++}return gn.errors=e,t===0}gn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ac(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ac.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),gn(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?gn.errors:e.concat(gn.errors),t=e.length),ac.errors=e,t===0}ac.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.root5=sc;var Ne=j.layout,ut=j.layout.$defs.DesignHints,Kt=j.layout.$defs.Composition,rd=new RegExp("^x-","u"),nd=j.layout.$defs.RegionEntry,Jt=j.layout.$defs.HeadingRegion,ot=j.layout.$defs.RegionSize;function Pn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Pn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Jt.required,parentSchema:Jt,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="name"||n==="size")){const p={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:Jt,data:a};e===null?e=[p]:e.push(p),t++}if(a.name!==void 0){let n=a.name;if(typeof n!="string"){const p={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Jt.properties.name.type,parentSchema:Jt.properties.name,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="title"||n==="subtitle")){const p={instancePath:s+"/name",schemaPath:"#/properties/name/enum",keyword:"enum",params:{allowedValues:Jt.properties.name.enum},message:"must be equal to one of the allowed values",schema:Jt.properties.name.enum,parentSchema:Jt.properties.name,data:n};e===null?e=[p]:e.push(p),t++}}if(a.size!==void 0){let n=a.size;const p=t;let i=!1,h=null;const c=t;if(typeof n=="number"){if(n>100||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:ot.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}if(n<=0||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ot.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ot.oneOf[0].type,parentSchema:ot.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;if(n!=="auto"){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/1/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:ot.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=p,e!==null&&(p?e.length=p:e=null);else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:ot.oneOf,parentSchema:ot,data:n};e===null?e=[g]:e.push(g),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Jt.type,parentSchema:Jt,data:a};e===null?e=[n]:e.push(n),t++}return Pn.errors=e,t===0}Pn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var se=j.layout.$defs.Region;function vn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:se.required,parentSchema:se,data:a};e===null?e=[i]:e.push(i),t++}for(const i in a)if(!wa.call(se.properties,i)){const h={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:se,data:a};e===null?e=[h]:e.push(h),t++}if(a.name!==void 0){let i=a.name;const h=t,c=t;if(!(i==="title"||i==="subtitle")){const y={};e===null?e=[y]:e.push(y),t++}var r=c===t;if(r){const y={instancePath:s+"/name",schemaPath:"#/properties/name/not",keyword:"not",params:{},message:"must NOT be valid",schema:se.properties.name.not,parentSchema:se.properties.name,data:i};e===null?e=[y]:e.push(y),t++}else t=h,e!==null&&(h?e.length=h:e=null);if(typeof i=="string"){if(!gt.test(i)){const y={instancePath:s+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:se.properties.name,data:i};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.name.type,parentSchema:se.properties.name,data:i};e===null?e=[y]:e.push(y),t++}}if(a.size!==void 0){let i=a.size;const h=t;let c=!1,y=null;const g=t;if(typeof i=="number"){if(i>100||isNaN(i)){const o={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:ot.oneOf[0],data:i};e===null?e=[o]:e.push(o),t++}if(i<=0||isNaN(i)){const o={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ot.oneOf[0],data:i};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ot.oneOf[0].type,parentSchema:ot.oneOf[0],data:i};e===null?e=[o]:e.push(o),t++}var n=g===t;n&&(c=!0,y=0);const l=t;if(i!=="auto"){const o={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/1/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:ot.oneOf[1],data:i};e===null?e=[o]:e.push(o),t++}var n=l===t;if(n&&c?(c=!1,y=[y,1]):n&&(c=!0,y=1),c)t=h,e!==null&&(h?e.length=h:e=null);else{const o={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:ot.oneOf,parentSchema:ot,data:i};e===null?e=[o]:e.push(o),t++}}if(a.accepts!==void 0){let i=a.accepts;if(Array.isArray(i)){if(i.length<1){const g={instancePath:s+"/accepts",schemaPath:"#/properties/accepts/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:se.properties.accepts,data:i};e===null?e=[g]:e.push(g),t++}const h=i.length;for(let g=0;g<h;g++){let l=i[g];if(typeof l!="string"){const o={instancePath:s+"/accepts/"+g,schemaPath:"#/properties/accepts/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.accepts.items.type,parentSchema:se.properties.accepts.items,data:l};e===null?e=[o]:e.push(o),t++}if(!(l==="text"||l==="list"||l==="image"||l==="video"||l==="chart"||l==="table"||l==="code"||l==="metric"||l==="quote"||l==="timeline"||l==="group")){const o={instancePath:s+"/accepts/"+g,schemaPath:"#/properties/accepts/items/enum",keyword:"enum",params:{allowedValues:se.properties.accepts.items.enum},message:"must be equal to one of the allowed values",schema:se.properties.accepts.items.enum,parentSchema:se.properties.accepts.items,data:l};e===null?e=[o]:e.push(o),t++}}let c=i.length,y;if(c>1){const g={};for(;c--;){let l=i[c];if(typeof l=="string"){if(typeof g[l]=="number"){y=g[l];const o={instancePath:s+"/accepts",schemaPath:"#/properties/accepts/uniqueItems",keyword:"uniqueItems",params:{i:c,j:y},message:"must NOT have duplicate items (items ## "+y+" and "+c+" are identical)",schema:!0,parentSchema:se.properties.accepts,data:i};e===null?e=[o]:e.push(o),t++;break}g[l]=c}}}}else{const h={instancePath:s+"/accepts",schemaPath:"#/properties/accepts/type",keyword:"type",params:{type:"array"},message:"must be array",schema:se.properties.accepts.type,parentSchema:se.properties.accepts,data:i};e===null?e=[h]:e.push(h),t++}}if(a.role!==void 0){let i=a.role;if(typeof i!="string"){const h={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.role.type,parentSchema:se.properties.role,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="primary"||i==="secondary"||i==="media"||i==="supporting")){const h={instancePath:s+"/role",schemaPath:"#/properties/role/enum",keyword:"enum",params:{allowedValues:se.properties.role.enum},message:"must be equal to one of the allowed values",schema:se.properties.role.enum,parentSchema:se.properties.role,data:i};e===null?e=[h]:e.push(h),t++}}if(a.flow!==void 0){let i=a.flow;if(typeof i!="string"){const h={instancePath:s+"/flow",schemaPath:"#/properties/flow/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.flow.type,parentSchema:se.properties.flow,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="none"||i==="grid"||i==="column"||i==="auto")){const h={instancePath:s+"/flow",schemaPath:"#/properties/flow/enum",keyword:"enum",params:{allowedValues:se.properties.flow.enum},message:"must be equal to one of the allowed values",schema:se.properties.flow.enum,parentSchema:se.properties.flow,data:i};e===null?e=[h]:e.push(h),t++}}if(a.max!==void 0){let i=a.max;if(!(typeof i=="number"&&!(i%1)&&!isNaN(i))){const h={instancePath:s+"/max",schemaPath:"#/properties/max/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:se.properties.max.type,parentSchema:se.properties.max,data:i};e===null?e=[h]:e.push(h),t++}if(typeof i=="number"){if(i>12||isNaN(i)){const h={instancePath:s+"/max",schemaPath:"#/properties/max/maximum",keyword:"maximum",params:{comparison:"<=",limit:12},message:"must be <= 12",schema:12,parentSchema:se.properties.max,data:i};e===null?e=[h]:e.push(h),t++}if(i<1||isNaN(i)){const h={instancePath:s+"/max",schemaPath:"#/properties/max/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:se.properties.max,data:i};e===null?e=[h]:e.push(h),t++}}}if(a.bleed!==void 0){let i=a.bleed;if(typeof i!="boolean"){const h={instancePath:s+"/bleed",schemaPath:"#/properties/bleed/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:se.properties.bleed.type,parentSchema:se.properties.bleed,data:i};e===null?e=[h]:e.push(h),t++}}if(a.listColumns!==void 0){let i=a.listColumns;const h=t;let c=!1,y=null;const g=t;if(i!=="auto"){const o={instancePath:s+"/listColumns",schemaPath:"#/properties/listColumns/oneOf/0/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:se.properties.listColumns.oneOf[0],data:i};e===null?e=[o]:e.push(o),t++}var p=g===t;p&&(c=!0,y=0);const l=t;if(i!==1){const o={instancePath:s+"/listColumns",schemaPath:"#/properties/listColumns/oneOf/1/const",keyword:"const",params:{allowedValue:1},message:"must be equal to constant",schema:1,parentSchema:se.properties.listColumns.oneOf[1],data:i};e===null?e=[o]:e.push(o),t++}var p=l===t;if(p&&c?(c=!1,y=[y,1]):p&&(c=!0,y=1),c)t=h,e!==null&&(h?e.length=h:e=null);else{const o={instancePath:s+"/listColumns",schemaPath:"#/properties/listColumns/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:se.properties.listColumns.oneOf,parentSchema:se.properties.listColumns,data:i};e===null?e=[o]:e.push(o),t++}}if(a.anchor!==void 0){let i=a.anchor;if(typeof i!="string"){const h={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.anchor.type,parentSchema:se.properties.anchor,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="top"||i==="middle"||i==="bottom")){const h={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/enum",keyword:"enum",params:{allowedValues:se.properties.anchor.enum},message:"must be equal to one of the allowed values",schema:se.properties.anchor.enum,parentSchema:se.properties.anchor,data:i};e===null?e=[h]:e.push(h),t++}}if(a.empty!==void 0){let i=a.empty;if(typeof i!="string"){const h={instancePath:s+"/empty",schemaPath:"#/properties/empty/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.empty.type,parentSchema:se.properties.empty,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="collapse"||i==="keep")){const h={instancePath:s+"/empty",schemaPath:"#/properties/empty/enum",keyword:"enum",params:{allowedValues:se.properties.empty.enum},message:"must be equal to one of the allowed values",schema:se.properties.empty.enum,parentSchema:se.properties.empty,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:se.type,parentSchema:se,data:a};e===null?e=[i]:e.push(i),t++}return vn.errors=e,t===0}vn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var pt=j.layout.$defs.Split,Qc={validate:Va};function bn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=bn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.direction===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"direction"},message:"must have required property 'direction'",schema:pt.required,parentSchema:pt,data:a};e===null?e=[n]:e.push(n),t++}if(a.regions===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"regions"},message:"must have required property 'regions'",schema:pt.required,parentSchema:pt,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="direction"||n==="regions"||n==="size"||n==="anchor")){const p={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:pt,data:a};e===null?e=[p]:e.push(p),t++}if(a.direction!==void 0){let n=a.direction;if(typeof n!="string"){const p={instancePath:s+"/direction",schemaPath:"#/properties/direction/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pt.properties.direction.type,parentSchema:pt.properties.direction,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="row"||n==="column")){const p={instancePath:s+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues:pt.properties.direction.enum},message:"must be equal to one of the allowed values",schema:pt.properties.direction.enum,parentSchema:pt.properties.direction,data:n};e===null?e=[p]:e.push(p),t++}}if(a.regions!==void 0){let n=a.regions;if(Array.isArray(n)){if(n.length>12){const i={instancePath:s+"/regions",schemaPath:"#/properties/regions/maxItems",keyword:"maxItems",params:{limit:12},message:"must NOT have more than 12 items",schema:12,parentSchema:pt.properties.regions,data:n};e===null?e=[i]:e.push(i),t++}if(n.length<1){const i={instancePath:s+"/regions",schemaPath:"#/properties/regions/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:pt.properties.regions,data:n};e===null?e=[i]:e.push(i),t++}const p=n.length;for(let i=0;i<p;i++)Qc.validate(n[i],{instancePath:s+"/regions/"+i,parentData:n,parentDataProperty:i,rootData:v,dynamicAnchors:b})||(e=e===null?Qc.validate.errors:e.concat(Qc.validate.errors),t=e.length)}else{const p={instancePath:s+"/regions",schemaPath:"#/properties/regions/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pt.properties.regions.type,parentSchema:pt.properties.regions,data:n};e===null?e=[p]:e.push(p),t++}}if(a.size!==void 0){let n=a.size;const p=t;let i=!1,h=null;const c=t;if(typeof n=="number"){if(n>100||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:ot.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}if(n<=0||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ot.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ot.oneOf[0].type,parentSchema:ot.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;if(n!=="auto"){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/1/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:ot.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=p,e!==null&&(p?e.length=p:e=null);else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:ot.oneOf,parentSchema:ot,data:n};e===null?e=[g]:e.push(g),t++}}if(a.anchor!==void 0){let n=a.anchor;if(typeof n!="string"){const p={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pt.properties.anchor.type,parentSchema:pt.properties.anchor,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="top"||n==="middle"||n==="bottom")){const p={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/enum",keyword:"enum",params:{allowedValues:pt.properties.anchor.enum},message:"must be equal to one of the allowed values",schema:pt.properties.anchor.enum,parentSchema:pt.properties.anchor,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:pt.type,parentSchema:pt,data:a};e===null?e=[n]:e.push(n),t++}return bn.errors=e,t===0}bn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Va(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Va.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,p=null;const i=t;Pn(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Pn.errors:e.concat(Pn.errors),t=e.length);var y=i===t;if(y){n=!0,p=0;var h=!0}const c=t;vn(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?vn.errors:e.concat(vn.errors),t=e.length);var y=c===t;if(y&&n)n=!1,p=[p,1];else{y&&(n=!0,p=1,h!==!0&&(h=!0));const g=t;bn(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?bn.errors:e.concat(bn.errors),t=e.length);var y=g===t;y&&n?(n=!1,p=[p,2]):y&&(n=!0,p=2,h!==!0&&(h=!0))}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:nd.oneOf,parentSchema:nd,data:a};e===null?e=[g]:e.push(g),t++}return Va.errors=e,m.props=h,t===0}Va.evaluated={dynamicProps:!0,dynamicItems:!1};function sc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=sc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:Ne.required,parentSchema:Ne,data:a};e===null?e=[n]:e.push(n),t++}if(a.id===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Ne.required,parentSchema:Ne,data:a};e===null?e=[n]:e.push(n),t++}if(a.name===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Ne.required,parentSchema:Ne,data:a};e===null?e=[n]:e.push(n),t++}if(a.regions===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"regions"},message:"must have required property 'regions'",schema:Ne.required,parentSchema:Ne,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(wa.call(Ne.properties,n)||rd.test(n))){const p={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:Ne,data:a};e===null?e=[p]:e.push(p),t++}if(a.$schema!==void 0){let n=a.$schema;if(typeof n!="string"){const p={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.$schema.type,parentSchema:Ne.properties.$schema,data:n};e===null?e=[p]:e.push(p),t++}if(n!=="https://openpresentation.org/schema/opf-layout/v2"){const p={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-layout/v2"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-layout/v2",parentSchema:Ne.properties.$schema,data:n};e===null?e=[p]:e.push(p),t++}}if(a.id!==void 0){let n=a.id;const p=t,i=t;if(n!=="auto"){const h={};e===null?e=[h]:e.push(h),t++}var r=i===t;if(r){const h={instancePath:s+"/id",schemaPath:"#/properties/id/not",keyword:"not",params:{},message:"must NOT be valid",schema:Ne.properties.id.not,parentSchema:Ne.properties.id,data:n};e===null?e=[h]:e.push(h),t++}else t=p,e!==null&&(p?e.length=p:e=null);if(typeof n=="string"){if(!gt.test(n)){const h={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Ne.properties.id,data:n};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.id.type,parentSchema:Ne.properties.id,data:n};e===null?e=[h]:e.push(h),t++}}if(a.name!==void 0){let n=a.name;if(typeof n!="string"){const p={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.name.type,parentSchema:Ne.properties.name,data:n};e===null?e=[p]:e.push(p),t++}}if(a.summary!==void 0){let n=a.summary;if(typeof n!="string"){const p={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.summary.type,parentSchema:Ne.properties.summary,data:n};e===null?e=[p]:e.push(p),t++}}if(a.description!==void 0){let n=a.description;if(typeof n!="string"){const p={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.description.type,parentSchema:Ne.properties.description,data:n};e===null?e=[p]:e.push(p),t++}}if(a.design!==void 0){let n=a.design;if(n&&typeof n=="object"&&!Array.isArray(n)){for(const p in n)if(!(p==="titleAlignment"||p==="contentAlignment"||p==="contentBox"||p==="contentDirection"||p==="chartPrimary"||p==="imageFit"||p==="listBullet"||p==="mirror")){const i={instancePath:s+"/design",schemaPath:"#/$defs/DesignHints/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:ut,data:n};e===null?e=[i]:e.push(i),t++}if(n.titleAlignment!==void 0){let p=n.titleAlignment;if(typeof p!="string"){const i={instancePath:s+"/design/titleAlignment",schemaPath:"#/$defs/DesignHints/properties/titleAlignment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ut.properties.titleAlignment.type,parentSchema:ut.properties.titleAlignment,data:p};e===null?e=[i]:e.push(i),t++}if(!(p==="left"||p==="center"||p==="right")){const i={instancePath:s+"/design/titleAlignment",schemaPath:"#/$defs/DesignHints/properties/titleAlignment/enum",keyword:"enum",params:{allowedValues:ut.properties.titleAlignment.enum},message:"must be equal to one of the allowed values",schema:ut.properties.titleAlignment.enum,parentSchema:ut.properties.titleAlignment,data:p};e===null?e=[i]:e.push(i),t++}}if(n.contentAlignment!==void 0){let p=n.contentAlignment;if(typeof p!="string"){const i={instancePath:s+"/design/contentAlignment",schemaPath:"#/$defs/DesignHints/properties/contentAlignment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ut.properties.contentAlignment.type,parentSchema:ut.properties.contentAlignment,data:p};e===null?e=[i]:e.push(i),t++}if(!(p==="left"||p==="center"||p==="right")){const i={instancePath:s+"/design/contentAlignment",schemaPath:"#/$defs/DesignHints/properties/contentAlignment/enum",keyword:"enum",params:{allowedValues:ut.properties.contentAlignment.enum},message:"must be equal to one of the allowed values",schema:ut.properties.contentAlignment.enum,parentSchema:ut.properties.contentAlignment,data:p};e===null?e=[i]:e.push(i),t++}}if(n.contentBox!==void 0){let p=n.contentBox;if(typeof p!="boolean"){const i={instancePath:s+"/design/contentBox",schemaPath:"#/$defs/DesignHints/properties/contentBox/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ut.properties.contentBox.type,parentSchema:ut.properties.contentBox,data:p};e===null?e=[i]:e.push(i),t++}}if(n.contentDirection!==void 0){let p=n.contentDirection;if(typeof p!="string"){const i={instancePath:s+"/design/contentDirection",schemaPath:"#/$defs/DesignHints/properties/contentDirection/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ut.properties.contentDirection.type,parentSchema:ut.properties.contentDirection,data:p};e===null?e=[i]:e.push(i),t++}if(!(p==="horizontal"||p==="vertical")){const i={instancePath:s+"/design/contentDirection",schemaPath:"#/$defs/DesignHints/properties/contentDirection/enum",keyword:"enum",params:{allowedValues:ut.properties.contentDirection.enum},message:"must be equal to one of the allowed values",schema:ut.properties.contentDirection.enum,parentSchema:ut.properties.contentDirection,data:p};e===null?e=[i]:e.push(i),t++}}if(n.chartPrimary!==void 0){let p=n.chartPrimary;if(typeof p!="string"){const i={instancePath:s+"/design/chartPrimary",schemaPath:"#/$defs/DesignHints/properties/chartPrimary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ut.properties.chartPrimary.type,parentSchema:ut.properties.chartPrimary,data:p};e===null?e=[i]:e.push(i),t++}if(!(p==="none"||p==="top"||p==="bottom"||p==="left"||p==="right")){const i={instancePath:s+"/design/chartPrimary",schemaPath:"#/$defs/DesignHints/properties/chartPrimary/enum",keyword:"enum",params:{allowedValues:ut.properties.chartPrimary.enum},message:"must be equal to one of the allowed values",schema:ut.properties.chartPrimary.enum,parentSchema:ut.properties.chartPrimary,data:p};e===null?e=[i]:e.push(i),t++}}if(n.imageFit!==void 0){let p=n.imageFit;if(typeof p!="string"){const i={instancePath:s+"/design/imageFit",schemaPath:"#/$defs/DesignHints/properties/imageFit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ut.properties.imageFit.type,parentSchema:ut.properties.imageFit,data:p};e===null?e=[i]:e.push(i),t++}if(!(p==="cover"||p==="contain"||p==="stretch")){const i={instancePath:s+"/design/imageFit",schemaPath:"#/$defs/DesignHints/properties/imageFit/enum",keyword:"enum",params:{allowedValues:ut.properties.imageFit.enum},message:"must be equal to one of the allowed values",schema:ut.properties.imageFit.enum,parentSchema:ut.properties.imageFit,data:p};e===null?e=[i]:e.push(i),t++}}if(n.listBullet!==void 0){let p=n.listBullet;if(typeof p!="string"){const i={instancePath:s+"/design/listBullet",schemaPath:"#/$defs/DesignHints/properties/listBullet/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ut.properties.listBullet.type,parentSchema:ut.properties.listBullet,data:p};e===null?e=[i]:e.push(i),t++}if(!(p==="character"||p==="image")){const i={instancePath:s+"/design/listBullet",schemaPath:"#/$defs/DesignHints/properties/listBullet/enum",keyword:"enum",params:{allowedValues:ut.properties.listBullet.enum},message:"must be equal to one of the allowed values",schema:ut.properties.listBullet.enum,parentSchema:ut.properties.listBullet,data:p};e===null?e=[i]:e.push(i),t++}}if(n.mirror!==void 0){let p=n.mirror;if(typeof p!="boolean"){const i={instancePath:s+"/design/mirror",schemaPath:"#/$defs/DesignHints/properties/mirror/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ut.properties.mirror.type,parentSchema:ut.properties.mirror,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s+"/design",schemaPath:"#/$defs/DesignHints/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ut.type,parentSchema:ut,data:n};e===null?e=[p]:e.push(p),t++}}if(a.direction!==void 0){let n=a.direction;if(typeof n!="string"){const p={instancePath:s+"/direction",schemaPath:"#/properties/direction/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.direction.type,parentSchema:Ne.properties.direction,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="row"||n==="column")){const p={instancePath:s+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues:Ne.properties.direction.enum},message:"must be equal to one of the allowed values",schema:Ne.properties.direction.enum,parentSchema:Ne.properties.direction,data:n};e===null?e=[p]:e.push(p),t++}}if(a.anchor!==void 0){let n=a.anchor;if(typeof n!="string"){const p={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.anchor.type,parentSchema:Ne.properties.anchor,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="top"||n==="middle"||n==="bottom")){const p={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/enum",keyword:"enum",params:{allowedValues:Ne.properties.anchor.enum},message:"must be equal to one of the allowed values",schema:Ne.properties.anchor.enum,parentSchema:Ne.properties.anchor,data:n};e===null?e=[p]:e.push(p),t++}}if(a.regions!==void 0){let n=a.regions;if(Array.isArray(n)){if(n.length>12){const i={instancePath:s+"/regions",schemaPath:"#/properties/regions/maxItems",keyword:"maxItems",params:{limit:12},message:"must NOT have more than 12 items",schema:12,parentSchema:Ne.properties.regions,data:n};e===null?e=[i]:e.push(i),t++}if(n.length<1){const i={instancePath:s+"/regions",schemaPath:"#/properties/regions/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Ne.properties.regions,data:n};e===null?e=[i]:e.push(i),t++}const p=n.length;for(let i=0;i<p;i++)Va(n[i],{instancePath:s+"/regions/"+i,parentData:n,parentDataProperty:i,rootData:v,dynamicAnchors:b})||(e=e===null?Va.errors:e.concat(Va.errors),t=e.length)}else{const p={instancePath:s+"/regions",schemaPath:"#/properties/regions/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ne.properties.regions.type,parentSchema:Ne.properties.regions,data:n};e===null?e=[p]:e.push(p),t++}}if(a.overflowRegion!==void 0){let n=a.overflowRegion;if(typeof n=="string"){if(!gt.test(n)){const p={instancePath:s+"/overflowRegion",schemaPath:"#/properties/overflowRegion/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Ne.properties.overflowRegion,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/overflowRegion",schemaPath:"#/properties/overflowRegion/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.overflowRegion.type,parentSchema:Ne.properties.overflowRegion,data:n};e===null?e=[p]:e.push(p),t++}}if(a.tags!==void 0){let n=a.tags;if(Array.isArray(n)){const p=n.length;for(let i=0;i<p;i++){let h=n[i];if(typeof h!="string"){const c={instancePath:s+"/tags/"+i,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.tags.items.type,parentSchema:Ne.properties.tags.items,data:h};e===null?e=[c]:e.push(c),t++}}}else{const p={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ne.properties.tags.type,parentSchema:Ne.properties.tags,data:n};e===null?e=[p]:e.push(p),t++}}if(a.preview!==void 0){let n=a.preview;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.src!==void 0){let p=n.src;if(typeof p=="string"){if(!Pt(p)){const i={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ne.properties.preview.properties.src,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.preview.properties.src.type,parentSchema:Ne.properties.preview.properties.src,data:p};e===null?e=[i]:e.push(i),t++}}if(n.thumbnailSrc!==void 0){let p=n.thumbnailSrc;if(typeof p=="string"){if(!Pt(p)){const i={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ne.properties.preview.properties.thumbnailSrc,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.preview.properties.thumbnailSrc.type,parentSchema:Ne.properties.preview.properties.thumbnailSrc,data:p};e===null?e=[i]:e.push(i),t++}}if(n.vectorSrc!==void 0){let p=n.vectorSrc;if(typeof p=="string"){if(!Pt(p)){const i={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ne.properties.preview.properties.vectorSrc,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.preview.properties.vectorSrc.type,parentSchema:Ne.properties.preview.properties.vectorSrc,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ne.properties.preview.type,parentSchema:Ne.properties.preview,data:n};e===null?e=[p]:e.push(p),t++}}if(a.composition!==void 0){let n=a.composition;if(!(n&&typeof n=="object"&&!Array.isArray(n))){const p={instancePath:s+"/composition",schemaPath:"#/properties/composition/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ne.properties.composition.type,parentSchema:Ne.properties.composition,data:n};e===null?e=[p]:e.push(p),t++}if(n&&typeof n=="object"&&!Array.isArray(n)){for(const p in n)if(!(p==="gap"||p==="padding"||p==="minFontSize"||p==="overflow")){const i={instancePath:s+"/composition",schemaPath:"#/$defs/Composition/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:Kt,data:n};e===null?e=[i]:e.push(i),t++}if(n.gap!==void 0){let p=n.gap;if(typeof p=="number"){if(p>.1||isNaN(p)){const i={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/maximum",keyword:"maximum",params:{comparison:"<=",limit:.1},message:"must be <= 0.1",schema:.1,parentSchema:Kt.properties.gap,data:p};e===null?e=[i]:e.push(i),t++}if(p<0||isNaN(p)){const i={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Kt.properties.gap,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Kt.properties.gap.type,parentSchema:Kt.properties.gap,data:p};e===null?e=[i]:e.push(i),t++}}if(n.padding!==void 0){let p=n.padding;if(typeof p=="number"){if(p>.2||isNaN(p)){const i={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/maximum",keyword:"maximum",params:{comparison:"<=",limit:.2},message:"must be <= 0.2",schema:.2,parentSchema:Kt.properties.padding,data:p};e===null?e=[i]:e.push(i),t++}if(p<0||isNaN(p)){const i={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Kt.properties.padding,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Kt.properties.padding.type,parentSchema:Kt.properties.padding,data:p};e===null?e=[i]:e.push(i),t++}}if(n.minFontSize!==void 0){let p=n.minFontSize;if(typeof p=="number"){if(p>32||isNaN(p)){const i={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/maximum",keyword:"maximum",params:{comparison:"<=",limit:32},message:"must be <= 32",schema:32,parentSchema:Kt.properties.minFontSize,data:p};e===null?e=[i]:e.push(i),t++}if(p<8||isNaN(p)){const i={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/minimum",keyword:"minimum",params:{comparison:">=",limit:8},message:"must be >= 8",schema:8,parentSchema:Kt.properties.minFontSize,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Kt.properties.minFontSize.type,parentSchema:Kt.properties.minFontSize,data:p};e===null?e=[i]:e.push(i),t++}}if(n.overflow!==void 0){let p=n.overflow;if(typeof p!="string"){const i={instancePath:s+"/composition/overflow",schemaPath:"#/$defs/Composition/properties/overflow/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Kt.properties.overflow.type,parentSchema:Kt.properties.overflow,data:p};e===null?e=[i]:e.push(i),t++}if(!(p==="warn"||p==="error")){const i={instancePath:s+"/composition/overflow",schemaPath:"#/$defs/Composition/properties/overflow/enum",keyword:"enum",params:{allowedValues:Kt.properties.overflow.enum},message:"must be equal to one of the allowed values",schema:Kt.properties.overflow.enum,parentSchema:Kt.properties.overflow,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s+"/composition",schemaPath:"#/$defs/Composition/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Kt.type,parentSchema:Kt,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ne.type,parentSchema:Ne,data:a};e===null?e=[n]:e.push(n),t++}return sc.errors=e,t===0}sc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch200=rc,j.layout.$defs.RegionEntry.oneOf[0];function On(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=On.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Jt.required,parentSchema:Jt,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="name"||n==="size")){const p={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:Jt,data:a};e===null?e=[p]:e.push(p),t++}if(a.name!==void 0){let n=a.name;if(typeof n!="string"){const p={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Jt.properties.name.type,parentSchema:Jt.properties.name,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="title"||n==="subtitle")){const p={instancePath:s+"/name",schemaPath:"#/properties/name/enum",keyword:"enum",params:{allowedValues:Jt.properties.name.enum},message:"must be equal to one of the allowed values",schema:Jt.properties.name.enum,parentSchema:Jt.properties.name,data:n};e===null?e=[p]:e.push(p),t++}}if(a.size!==void 0){let n=a.size;const p=t;let i=!1,h=null;const c=t;if(typeof n=="number"){if(n>100||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:ot.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}if(n<=0||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ot.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ot.oneOf[0].type,parentSchema:ot.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;if(n!=="auto"){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/1/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:ot.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=p,e!==null&&(p?e.length=p:e=null);else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:ot.oneOf,parentSchema:ot,data:n};e===null?e=[g]:e.push(g),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Jt.type,parentSchema:Jt,data:a};e===null?e=[n]:e.push(n),t++}return On.errors=e,t===0}On.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function rc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=rc.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),On(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?On.errors:e.concat(On.errors),t=e.length),rc.errors=e,t===0}rc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch201=nc,j.layout.$defs.RegionEntry.oneOf[1];function wn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=wn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:se.required,parentSchema:se,data:a};e===null?e=[i]:e.push(i),t++}for(const i in a)if(!wa.call(se.properties,i)){const h={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:se,data:a};e===null?e=[h]:e.push(h),t++}if(a.name!==void 0){let i=a.name;const h=t,c=t;if(!(i==="title"||i==="subtitle")){const y={};e===null?e=[y]:e.push(y),t++}var r=c===t;if(r){const y={instancePath:s+"/name",schemaPath:"#/properties/name/not",keyword:"not",params:{},message:"must NOT be valid",schema:se.properties.name.not,parentSchema:se.properties.name,data:i};e===null?e=[y]:e.push(y),t++}else t=h,e!==null&&(h?e.length=h:e=null);if(typeof i=="string"){if(!gt.test(i)){const y={instancePath:s+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:se.properties.name,data:i};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.name.type,parentSchema:se.properties.name,data:i};e===null?e=[y]:e.push(y),t++}}if(a.size!==void 0){let i=a.size;const h=t;let c=!1,y=null;const g=t;if(typeof i=="number"){if(i>100||isNaN(i)){const o={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:ot.oneOf[0],data:i};e===null?e=[o]:e.push(o),t++}if(i<=0||isNaN(i)){const o={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ot.oneOf[0],data:i};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ot.oneOf[0].type,parentSchema:ot.oneOf[0],data:i};e===null?e=[o]:e.push(o),t++}var n=g===t;n&&(c=!0,y=0);const l=t;if(i!=="auto"){const o={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/1/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:ot.oneOf[1],data:i};e===null?e=[o]:e.push(o),t++}var n=l===t;if(n&&c?(c=!1,y=[y,1]):n&&(c=!0,y=1),c)t=h,e!==null&&(h?e.length=h:e=null);else{const o={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:ot.oneOf,parentSchema:ot,data:i};e===null?e=[o]:e.push(o),t++}}if(a.accepts!==void 0){let i=a.accepts;if(Array.isArray(i)){if(i.length<1){const g={instancePath:s+"/accepts",schemaPath:"#/properties/accepts/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:se.properties.accepts,data:i};e===null?e=[g]:e.push(g),t++}const h=i.length;for(let g=0;g<h;g++){let l=i[g];if(typeof l!="string"){const o={instancePath:s+"/accepts/"+g,schemaPath:"#/properties/accepts/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.accepts.items.type,parentSchema:se.properties.accepts.items,data:l};e===null?e=[o]:e.push(o),t++}if(!(l==="text"||l==="list"||l==="image"||l==="video"||l==="chart"||l==="table"||l==="code"||l==="metric"||l==="quote"||l==="timeline"||l==="group")){const o={instancePath:s+"/accepts/"+g,schemaPath:"#/properties/accepts/items/enum",keyword:"enum",params:{allowedValues:se.properties.accepts.items.enum},message:"must be equal to one of the allowed values",schema:se.properties.accepts.items.enum,parentSchema:se.properties.accepts.items,data:l};e===null?e=[o]:e.push(o),t++}}let c=i.length,y;if(c>1){const g={};for(;c--;){let l=i[c];if(typeof l=="string"){if(typeof g[l]=="number"){y=g[l];const o={instancePath:s+"/accepts",schemaPath:"#/properties/accepts/uniqueItems",keyword:"uniqueItems",params:{i:c,j:y},message:"must NOT have duplicate items (items ## "+y+" and "+c+" are identical)",schema:!0,parentSchema:se.properties.accepts,data:i};e===null?e=[o]:e.push(o),t++;break}g[l]=c}}}}else{const h={instancePath:s+"/accepts",schemaPath:"#/properties/accepts/type",keyword:"type",params:{type:"array"},message:"must be array",schema:se.properties.accepts.type,parentSchema:se.properties.accepts,data:i};e===null?e=[h]:e.push(h),t++}}if(a.role!==void 0){let i=a.role;if(typeof i!="string"){const h={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.role.type,parentSchema:se.properties.role,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="primary"||i==="secondary"||i==="media"||i==="supporting")){const h={instancePath:s+"/role",schemaPath:"#/properties/role/enum",keyword:"enum",params:{allowedValues:se.properties.role.enum},message:"must be equal to one of the allowed values",schema:se.properties.role.enum,parentSchema:se.properties.role,data:i};e===null?e=[h]:e.push(h),t++}}if(a.flow!==void 0){let i=a.flow;if(typeof i!="string"){const h={instancePath:s+"/flow",schemaPath:"#/properties/flow/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.flow.type,parentSchema:se.properties.flow,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="none"||i==="grid"||i==="column"||i==="auto")){const h={instancePath:s+"/flow",schemaPath:"#/properties/flow/enum",keyword:"enum",params:{allowedValues:se.properties.flow.enum},message:"must be equal to one of the allowed values",schema:se.properties.flow.enum,parentSchema:se.properties.flow,data:i};e===null?e=[h]:e.push(h),t++}}if(a.max!==void 0){let i=a.max;if(!(typeof i=="number"&&!(i%1)&&!isNaN(i))){const h={instancePath:s+"/max",schemaPath:"#/properties/max/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:se.properties.max.type,parentSchema:se.properties.max,data:i};e===null?e=[h]:e.push(h),t++}if(typeof i=="number"){if(i>12||isNaN(i)){const h={instancePath:s+"/max",schemaPath:"#/properties/max/maximum",keyword:"maximum",params:{comparison:"<=",limit:12},message:"must be <= 12",schema:12,parentSchema:se.properties.max,data:i};e===null?e=[h]:e.push(h),t++}if(i<1||isNaN(i)){const h={instancePath:s+"/max",schemaPath:"#/properties/max/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:se.properties.max,data:i};e===null?e=[h]:e.push(h),t++}}}if(a.bleed!==void 0){let i=a.bleed;if(typeof i!="boolean"){const h={instancePath:s+"/bleed",schemaPath:"#/properties/bleed/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:se.properties.bleed.type,parentSchema:se.properties.bleed,data:i};e===null?e=[h]:e.push(h),t++}}if(a.listColumns!==void 0){let i=a.listColumns;const h=t;let c=!1,y=null;const g=t;if(i!=="auto"){const o={instancePath:s+"/listColumns",schemaPath:"#/properties/listColumns/oneOf/0/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:se.properties.listColumns.oneOf[0],data:i};e===null?e=[o]:e.push(o),t++}var p=g===t;p&&(c=!0,y=0);const l=t;if(i!==1){const o={instancePath:s+"/listColumns",schemaPath:"#/properties/listColumns/oneOf/1/const",keyword:"const",params:{allowedValue:1},message:"must be equal to constant",schema:1,parentSchema:se.properties.listColumns.oneOf[1],data:i};e===null?e=[o]:e.push(o),t++}var p=l===t;if(p&&c?(c=!1,y=[y,1]):p&&(c=!0,y=1),c)t=h,e!==null&&(h?e.length=h:e=null);else{const o={instancePath:s+"/listColumns",schemaPath:"#/properties/listColumns/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:se.properties.listColumns.oneOf,parentSchema:se.properties.listColumns,data:i};e===null?e=[o]:e.push(o),t++}}if(a.anchor!==void 0){let i=a.anchor;if(typeof i!="string"){const h={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.anchor.type,parentSchema:se.properties.anchor,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="top"||i==="middle"||i==="bottom")){const h={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/enum",keyword:"enum",params:{allowedValues:se.properties.anchor.enum},message:"must be equal to one of the allowed values",schema:se.properties.anchor.enum,parentSchema:se.properties.anchor,data:i};e===null?e=[h]:e.push(h),t++}}if(a.empty!==void 0){let i=a.empty;if(typeof i!="string"){const h={instancePath:s+"/empty",schemaPath:"#/properties/empty/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.empty.type,parentSchema:se.properties.empty,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="collapse"||i==="keep")){const h={instancePath:s+"/empty",schemaPath:"#/properties/empty/enum",keyword:"enum",params:{allowedValues:se.properties.empty.enum},message:"must be equal to one of the allowed values",schema:se.properties.empty.enum,parentSchema:se.properties.empty,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:se.type,parentSchema:se,data:a};e===null?e=[i]:e.push(i),t++}return wn.errors=e,t===0}wn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function nc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=nc.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),wn(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?wn.errors:e.concat(wn.errors),t=e.length),nc.errors=e,t===0}nc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch202=oc,j.layout.$defs.RegionEntry.oneOf[2];function Sn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Sn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.direction===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"direction"},message:"must have required property 'direction'",schema:pt.required,parentSchema:pt,data:a};e===null?e=[n]:e.push(n),t++}if(a.regions===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"regions"},message:"must have required property 'regions'",schema:pt.required,parentSchema:pt,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="direction"||n==="regions"||n==="size"||n==="anchor")){const p={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:pt,data:a};e===null?e=[p]:e.push(p),t++}if(a.direction!==void 0){let n=a.direction;if(typeof n!="string"){const p={instancePath:s+"/direction",schemaPath:"#/properties/direction/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pt.properties.direction.type,parentSchema:pt.properties.direction,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="row"||n==="column")){const p={instancePath:s+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues:pt.properties.direction.enum},message:"must be equal to one of the allowed values",schema:pt.properties.direction.enum,parentSchema:pt.properties.direction,data:n};e===null?e=[p]:e.push(p),t++}}if(a.regions!==void 0){let n=a.regions;if(Array.isArray(n)){if(n.length>12){const i={instancePath:s+"/regions",schemaPath:"#/properties/regions/maxItems",keyword:"maxItems",params:{limit:12},message:"must NOT have more than 12 items",schema:12,parentSchema:pt.properties.regions,data:n};e===null?e=[i]:e.push(i),t++}if(n.length<1){const i={instancePath:s+"/regions",schemaPath:"#/properties/regions/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:pt.properties.regions,data:n};e===null?e=[i]:e.push(i),t++}const p=n.length;for(let i=0;i<p;i++)Va(n[i],{instancePath:s+"/regions/"+i,parentData:n,parentDataProperty:i,rootData:v,dynamicAnchors:b})||(e=e===null?Va.errors:e.concat(Va.errors),t=e.length)}else{const p={instancePath:s+"/regions",schemaPath:"#/properties/regions/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pt.properties.regions.type,parentSchema:pt.properties.regions,data:n};e===null?e=[p]:e.push(p),t++}}if(a.size!==void 0){let n=a.size;const p=t;let i=!1,h=null;const c=t;if(typeof n=="number"){if(n>100||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:ot.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}if(n<=0||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ot.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ot.oneOf[0].type,parentSchema:ot.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;if(n!=="auto"){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/1/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:ot.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=p,e!==null&&(p?e.length=p:e=null);else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:ot.oneOf,parentSchema:ot,data:n};e===null?e=[g]:e.push(g),t++}}if(a.anchor!==void 0){let n=a.anchor;if(typeof n!="string"){const p={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pt.properties.anchor.type,parentSchema:pt.properties.anchor,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="top"||n==="middle"||n==="bottom")){const p={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/enum",keyword:"enum",params:{allowedValues:pt.properties.anchor.enum},message:"must be equal to one of the allowed values",schema:pt.properties.anchor.enum,parentSchema:pt.properties.anchor,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:pt.type,parentSchema:pt,data:a};e===null?e=[n]:e.push(n),t++}return Sn.errors=e,t===0}Sn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function oc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=oc.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Sn(a,{instancePath:s,parentData:x,parentDataProperty:N,rootData:v,dynamicAnchors:b})||(e=e===null?Sn.errors:e.concat(Sn.errors),t=e.length),oc.errors=e,t===0}oc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch203=ic;var pc=j.layout.$defs.RegionSize.oneOf[0];function ic(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ic.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="number"){if(a>100||isNaN(a)){const r={instancePath:s,schemaPath:"#/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:pc,data:a};e===null?e=[r]:e.push(r),t++}if(a<=0||isNaN(a)){const r={instancePath:s,schemaPath:"#/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:pc,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number",schema:pc.type,parentSchema:pc,data:a};e===null?e=[r]:e.push(r),t++}return ic.errors=e,t===0}ic.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch204=mc;var gd=j.layout.$defs.RegionSize.oneOf[1];function mc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=mc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!=="auto"){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:gd,data:a};e===null?e=[r]:e.push(r),t++}return mc.errors=e,t===0}mc.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch205=cc;var Pd=j.layout.$defs.Region.properties.listColumns.oneOf[0];function cc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=cc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!=="auto"){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:Pd,data:a};e===null?e=[r]:e.push(r),t++}return cc.errors=e,t===0}cc.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch206=hc;var vd=j.layout.$defs.Region.properties.listColumns.oneOf[1];function hc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=hc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!==1){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:1},message:"must be equal to constant",schema:1,parentSchema:vd,data:a};e===null?e=[r]:e.push(r),t++}return hc.errors=e,t===0}hc.evaluated={dynamicProps:!1,dynamicItems:!1},$.root6=lc;var Ze=j.chartType,bd=new RegExp("^[a-z0-9][a-z0-9-]*$","u"),us=j.chartType.$defs.ChartTypeMappings,ht=j.chartType.$defs.OpenXmlChartMapping,Gc={validate:xs};function xs(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xs.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const r in a)if(!wa.call(ht.properties,r)){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ht,data:a};e===null?e=[n]:e.push(n),t++}if(a.element!==void 0){let r=a.element;if(typeof r!="string"){const n={instancePath:s+"/element",schemaPath:"#/properties/element/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ht.properties.element.type,parentSchema:ht.properties.element,data:r};e===null?e=[n]:e.push(n),t++}}if(a.barDir!==void 0){let r=a.barDir;if(typeof r!="string"){const n={instancePath:s+"/barDir",schemaPath:"#/properties/barDir/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ht.properties.barDir.type,parentSchema:ht.properties.barDir,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="bar"||r==="col")){const n={instancePath:s+"/barDir",schemaPath:"#/properties/barDir/enum",keyword:"enum",params:{allowedValues:ht.properties.barDir.enum},message:"must be equal to one of the allowed values",schema:ht.properties.barDir.enum,parentSchema:ht.properties.barDir,data:r};e===null?e=[n]:e.push(n),t++}}if(a.grouping!==void 0){let r=a.grouping;if(typeof r!="string"){const n={instancePath:s+"/grouping",schemaPath:"#/properties/grouping/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ht.properties.grouping.type,parentSchema:ht.properties.grouping,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="standard"||r==="clustered"||r==="stacked"||r==="percentStacked")){const n={instancePath:s+"/grouping",schemaPath:"#/properties/grouping/enum",keyword:"enum",params:{allowedValues:ht.properties.grouping.enum},message:"must be equal to one of the allowed values",schema:ht.properties.grouping.enum,parentSchema:ht.properties.grouping,data:r};e===null?e=[n]:e.push(n),t++}}if(a.marker!==void 0){let r=a.marker;if(typeof r!="boolean"){const n={instancePath:s+"/marker",schemaPath:"#/properties/marker/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ht.properties.marker.type,parentSchema:ht.properties.marker,data:r};e===null?e=[n]:e.push(n),t++}}if(a.radarStyle!==void 0){let r=a.radarStyle;if(typeof r!="string"){const n={instancePath:s+"/radarStyle",schemaPath:"#/properties/radarStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ht.properties.radarStyle.type,parentSchema:ht.properties.radarStyle,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="standard"||r==="marker"||r==="filled")){const n={instancePath:s+"/radarStyle",schemaPath:"#/properties/radarStyle/enum",keyword:"enum",params:{allowedValues:ht.properties.radarStyle.enum},message:"must be equal to one of the allowed values",schema:ht.properties.radarStyle.enum,parentSchema:ht.properties.radarStyle,data:r};e===null?e=[n]:e.push(n),t++}}if(a.scatterStyle!==void 0){let r=a.scatterStyle;if(typeof r!="string"){const n={instancePath:s+"/scatterStyle",schemaPath:"#/properties/scatterStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ht.properties.scatterStyle.type,parentSchema:ht.properties.scatterStyle,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="line"||r==="lineMarker"||r==="marker"||r==="smooth"||r==="smoothMarker")){const n={instancePath:s+"/scatterStyle",schemaPath:"#/properties/scatterStyle/enum",keyword:"enum",params:{allowedValues:ht.properties.scatterStyle.enum},message:"must be equal to one of the allowed values",schema:ht.properties.scatterStyle.enum,parentSchema:ht.properties.scatterStyle,data:r};e===null?e=[n]:e.push(n),t++}}if(a.composition!==void 0){let r=a.composition;if(typeof r!="string"){const n={instancePath:s+"/composition",schemaPath:"#/properties/composition/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ht.properties.composition.type,parentSchema:ht.properties.composition,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="single"||r==="mixed"||r==="extension")){const n={instancePath:s+"/composition",schemaPath:"#/properties/composition/enum",keyword:"enum",params:{allowedValues:ht.properties.composition.enum},message:"must be equal to one of the allowed values",schema:ht.properties.composition.enum,parentSchema:ht.properties.composition,data:r};e===null?e=[n]:e.push(n),t++}}if(a.extension!==void 0){let r=a.extension;if(typeof r!="string"){const n={instancePath:s+"/extension",schemaPath:"#/properties/extension/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ht.properties.extension.type,parentSchema:ht.properties.extension,data:r};e===null?e=[n]:e.push(n),t++}}if(a.series!==void 0){let r=a.series;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++)Gc.validate(r[p],{instancePath:s+"/series/"+p,parentData:r,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?Gc.validate.errors:e.concat(Gc.validate.errors),t=e.length)}else{const n={instancePath:s+"/series",schemaPath:"#/properties/series/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ht.properties.series.type,parentSchema:ht.properties.series,data:r};e===null?e=[n]:e.push(n),t++}}if(a.notes!==void 0){let r=a.notes;if(typeof r!="string"){const n={instancePath:s+"/notes",schemaPath:"#/properties/notes/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ht.properties.notes.type,parentSchema:ht.properties.notes,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ht.type,parentSchema:ht,data:a};e===null?e=[r]:e.push(r),t++}return xs.errors=e,t===0}xs.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function kn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=kn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.openxml===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"openxml"},message:"must have required property 'openxml'",schema:us.required,parentSchema:us,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="openxml"||r==="renderers")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:us,data:a};e===null?e=[n]:e.push(n),t++}if(a.openxml!==void 0&&(xs(a.openxml,{instancePath:s+"/openxml",parentData:a,parentDataProperty:"openxml",rootData:v,dynamicAnchors:b})||(e=e===null?xs.errors:e.concat(xs.errors),t=e.length)),a.renderers!==void 0){let r=a.renderers;if(r&&typeof r=="object"&&!Array.isArray(r))for(const n in r){let p=r[n];if(!(p&&typeof p=="object"&&!Array.isArray(p))){const i={instancePath:s+"/renderers/"+n.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/renderers/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:us.properties.renderers.additionalProperties.type,parentSchema:us.properties.renderers.additionalProperties,data:p};e===null?e=[i]:e.push(i),t++}}else{const n={instancePath:s+"/renderers",schemaPath:"#/properties/renderers/type",keyword:"type",params:{type:"object"},message:"must be object",schema:us.properties.renderers.type,parentSchema:us.properties.renderers,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:us.type,parentSchema:us,data:a};e===null?e=[r]:e.push(r),t++}return kn.errors=e,t===0}kn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function lc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=lc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:Ze.required,parentSchema:Ze,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Ze.required,parentSchema:Ze,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Ze.required,parentSchema:Ze,data:a};e===null?e=[r]:e.push(r),t++}if(a.mappings===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"mappings"},message:"must have required property 'mappings'",schema:Ze.required,parentSchema:Ze,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(wa.call(Ze.properties,r)||rd.test(r))){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ze,data:a};e===null?e=[n]:e.push(n),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.$schema.type,parentSchema:Ze.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-chart-type/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-chart-type/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-chart-type/v1",parentSchema:Ze.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!bd.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z0-9][a-z0-9-]*$"},message:'must match pattern "^[a-z0-9][a-z0-9-]*$"',schema:"^[a-z0-9][a-z0-9-]*$",parentSchema:Ze.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.id.type,parentSchema:Ze.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.name.type,parentSchema:Ze.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.summary.type,parentSchema:Ze.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.description.type,parentSchema:Ze.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.mappings!==void 0&&(kn(a.mappings,{instancePath:s+"/mappings",parentData:a,parentDataProperty:"mappings",rootData:v,dynamicAnchors:b})||(e=e===null?kn.errors:e.concat(kn.errors),t=e.length)),a.group!==void 0){let r=a.group;if(typeof r!="string"){const n={instancePath:s+"/group",schemaPath:"#/properties/group/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.group.type,parentSchema:Ze.properties.group,data:r};e===null?e=[n]:e.push(n),t++}}if(a.groupSort!==void 0){let r=a.groupSort;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/groupSort",schemaPath:"#/properties/groupSort/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ze.properties.groupSort.type,parentSchema:Ze.properties.groupSort,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<0||isNaN(r))){const n={instancePath:s+"/groupSort",schemaPath:"#/properties/groupSort/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ze.properties.groupSort,data:r};e===null?e=[n]:e.push(n),t++}}if(a.complexity!==void 0){let r=a.complexity;if(typeof r!="string"){const n={instancePath:s+"/complexity",schemaPath:"#/properties/complexity/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.complexity.type,parentSchema:Ze.properties.complexity,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="simple"||r==="calculated"||r==="hierarchical"||r==="normalized")){const n={instancePath:s+"/complexity",schemaPath:"#/properties/complexity/enum",keyword:"enum",params:{allowedValues:Ze.properties.complexity.enum},message:"must be equal to one of the allowed values",schema:Ze.properties.complexity.enum,parentSchema:Ze.properties.complexity,data:r};e===null?e=[n]:e.push(n),t++}}if(a.series!==void 0){let r=a.series;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/series",schemaPath:"#/properties/series/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ze.properties.series.type,parentSchema:Ze.properties.series,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<0||isNaN(r))){const n={instancePath:s+"/series",schemaPath:"#/properties/series/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ze.properties.series,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/tags/"+p,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.tags.items.type,parentSchema:Ze.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ze.properties.tags.type,parentSchema:Ze.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ze.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.preview.properties.src.type,parentSchema:Ze.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ze.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.preview.properties.thumbnailSrc.type,parentSchema:Ze.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ze.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.preview.properties.vectorSrc.type,parentSchema:Ze.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ze.properties.preview.type,parentSchema:Ze.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ze.type,parentSchema:Ze,data:a};e===null?e=[r]:e.push(r),t++}return lc.errors=e,t===0}lc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.root7=dc;var Le=j.narrative,qt=j.narrative.$defs.Beat;function dc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=dc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:Le.required,parentSchema:Le,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Le.required,parentSchema:Le,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Le.required,parentSchema:Le,data:a};e===null?e=[r]:e.push(r),t++}if(a.beats===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"beats"},message:"must have required property 'beats'",schema:Le.required,parentSchema:Le,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.$schema.type,parentSchema:Le.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-narrative/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-narrative/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-narrative/v1",parentSchema:Le.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!gt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Le.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.id.type,parentSchema:Le.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.name.type,parentSchema:Le.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.summary.type,parentSchema:Le.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.description.type,parentSchema:Le.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.audienceFit!==void 0){let r=a.audienceFit;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/audienceFit/"+p,schemaPath:"#/properties/audienceFit/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.audienceFit.items.type,parentSchema:Le.properties.audienceFit.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/audienceFit",schemaPath:"#/properties/audienceFit/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Le.properties.audienceFit.type,parentSchema:Le.properties.audienceFit,data:r};e===null?e=[n]:e.push(n),t++}}if(a.duration!==void 0){let r=a.duration;if(r&&typeof r=="object"&&!Array.isArray(r)){for(const n in r)if(!(n==="min"||n==="max")){const p={instancePath:s+"/duration",schemaPath:"#/properties/duration/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:Le.properties.duration,data:r};e===null?e=[p]:e.push(p),t++}if(r.min!==void 0){let n=r.min;if(typeof n=="number"){if(n<=0||isNaN(n)){const p={instancePath:s+"/duration/min",schemaPath:"#/properties/duration/properties/min/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:Le.properties.duration.properties.min,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/duration/min",schemaPath:"#/properties/duration/properties/min/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Le.properties.duration.properties.min.type,parentSchema:Le.properties.duration.properties.min,data:n};e===null?e=[p]:e.push(p),t++}}if(r.max!==void 0){let n=r.max;if(typeof n=="number"){if(n<=0||isNaN(n)){const p={instancePath:s+"/duration/max",schemaPath:"#/properties/duration/properties/max/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:Le.properties.duration.properties.max,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/duration/max",schemaPath:"#/properties/duration/properties/max/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Le.properties.duration.properties.max.type,parentSchema:Le.properties.duration.properties.max,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/duration",schemaPath:"#/properties/duration/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Le.properties.duration.type,parentSchema:Le.properties.duration,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/tags/"+p,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.tags.items.type,parentSchema:Le.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Le.properties.tags.type,parentSchema:Le.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Le.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.preview.properties.src.type,parentSchema:Le.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Le.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.preview.properties.thumbnailSrc.type,parentSchema:Le.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Le.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.preview.properties.vectorSrc.type,parentSchema:Le.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Le.properties.preview.type,parentSchema:Le.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}if(a.beats!==void 0){let r=a.beats;if(Array.isArray(r)){if(r.length<1){const p={instancePath:s+"/beats",schemaPath:"#/properties/beats/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Le.properties.beats,data:r};e===null?e=[p]:e.push(p),t++}const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.id===void 0){const h={instancePath:s+"/beats/"+p,schemaPath:"#/$defs/Beat/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:qt.required,parentSchema:qt,data:i};e===null?e=[h]:e.push(h),t++}if(i.name===void 0){const h={instancePath:s+"/beats/"+p,schemaPath:"#/$defs/Beat/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:qt.required,parentSchema:qt,data:i};e===null?e=[h]:e.push(h),t++}if(i.id!==void 0){let h=i.id;if(typeof h=="string"){if(!gt.test(h)){const c={instancePath:s+"/beats/"+p+"/id",schemaPath:"#/$defs/Beat/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:qt.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:s+"/beats/"+p+"/id",schemaPath:"#/$defs/Beat/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qt.properties.id.type,parentSchema:qt.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}if(i.name!==void 0){let h=i.name;if(typeof h!="string"){const c={instancePath:s+"/beats/"+p+"/name",schemaPath:"#/$defs/Beat/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qt.properties.name.type,parentSchema:qt.properties.name,data:h};e===null?e=[c]:e.push(c),t++}}if(i.description!==void 0){let h=i.description;if(typeof h!="string"){const c={instancePath:s+"/beats/"+p+"/description",schemaPath:"#/$defs/Beat/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qt.properties.description.type,parentSchema:qt.properties.description,data:h};e===null?e=[c]:e.push(c),t++}}if(i.instructions!==void 0){let h=i.instructions;if(typeof h!="string"){const c={instancePath:s+"/beats/"+p+"/instructions",schemaPath:"#/$defs/Beat/properties/instructions/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qt.properties.instructions.type,parentSchema:qt.properties.instructions,data:h};e===null?e=[c]:e.push(c),t++}}if(i.type!==void 0){let h=i.type;if(typeof h!="string"){const c={instancePath:s+"/beats/"+p+"/type",schemaPath:"#/$defs/Beat/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qt.properties.type.type,parentSchema:qt.properties.type,data:h};e===null?e=[c]:e.push(c),t++}if(!(h==="text"||h==="list"||h==="image"||h==="video"||h==="chart"||h==="table"||h==="code"||h==="metric"||h==="quote"||h==="timeline")){const c={instancePath:s+"/beats/"+p+"/type",schemaPath:"#/$defs/Beat/properties/type/enum",keyword:"enum",params:{allowedValues:qt.properties.type.enum},message:"must be equal to one of the allowed values",schema:qt.properties.type.enum,parentSchema:qt.properties.type,data:h};e===null?e=[c]:e.push(c),t++}}if(i.layout!==void 0){let h=i.layout;if(typeof h!="string"){const c={instancePath:s+"/beats/"+p+"/layout",schemaPath:"#/$defs/Beat/properties/layout/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qt.properties.layout.type,parentSchema:qt.properties.layout,data:h};e===null?e=[c]:e.push(c),t++}}if(i.thoughtCues!==void 0){let h=i.thoughtCues;if(Array.isArray(h)){const c=h.length;for(let y=0;y<c;y++){let g=h[y];if(typeof g!="string"){const l={instancePath:s+"/beats/"+p+"/thoughtCues/"+y,schemaPath:"#/$defs/Beat/properties/thoughtCues/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qt.properties.thoughtCues.items.type,parentSchema:qt.properties.thoughtCues.items,data:g};e===null?e=[l]:e.push(l),t++}}}else{const c={instancePath:s+"/beats/"+p+"/thoughtCues",schemaPath:"#/$defs/Beat/properties/thoughtCues/type",keyword:"type",params:{type:"array"},message:"must be array",schema:qt.properties.thoughtCues.type,parentSchema:qt.properties.thoughtCues,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/beats/"+p,schemaPath:"#/$defs/Beat/type",keyword:"type",params:{type:"object"},message:"must be object",schema:qt.type,parentSchema:qt,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/beats",schemaPath:"#/properties/beats/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Le.properties.beats.type,parentSchema:Le.properties.beats,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Le.type,parentSchema:Le,data:a};e===null?e=[r]:e.push(r),t++}return dc.errors=e,t===0}dc.evaluated={props:{$schema:!0,id:!0,name:!0,summary:!0,description:!0,audienceFit:!0,duration:!0,tags:!0,preview:!0,beats:!0},dynamicProps:!1,dynamicItems:!1},$.root8=uc;var Xe=j.socialPlatform;function uc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=uc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:Xe.required,parentSchema:Xe,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Xe.required,parentSchema:Xe,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Xe.required,parentSchema:Xe,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.$schema.type,parentSchema:Xe.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-social-platform/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-social-platform/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-social-platform/v1",parentSchema:Xe.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!gt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Xe.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.id.type,parentSchema:Xe.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.name.type,parentSchema:Xe.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.summary.type,parentSchema:Xe.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.description.type,parentSchema:Xe.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.baseUrl!==void 0){let r=a.baseUrl;if(typeof r=="string"){if(!Pt(r)){const n={instancePath:s+"/baseUrl",schemaPath:"#/properties/baseUrl/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Xe.properties.baseUrl,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/baseUrl",schemaPath:"#/properties/baseUrl/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.baseUrl.type,parentSchema:Xe.properties.baseUrl,data:r};e===null?e=[n]:e.push(n),t++}}if(a.profileUrlPattern!==void 0){let r=a.profileUrlPattern;if(typeof r!="string"){const n={instancePath:s+"/profileUrlPattern",schemaPath:"#/properties/profileUrlPattern/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.profileUrlPattern.type,parentSchema:Xe.properties.profileUrlPattern,data:r};e===null?e=[n]:e.push(n),t++}}if(a.companyUrlPattern!==void 0){let r=a.companyUrlPattern;if(typeof r!="string"){const n={instancePath:s+"/companyUrlPattern",schemaPath:"#/properties/companyUrlPattern/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.companyUrlPattern.type,parentSchema:Xe.properties.companyUrlPattern,data:r};e===null?e=[n]:e.push(n),t++}}if(a.handlePrefix!==void 0){let r=a.handlePrefix;if(typeof r!="string"){const n={instancePath:s+"/handlePrefix",schemaPath:"#/properties/handlePrefix/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.handlePrefix.type,parentSchema:Xe.properties.handlePrefix,data:r};e===null?e=[n]:e.push(n),t++}}if(a.handleExample!==void 0){let r=a.handleExample;if(typeof r!="string"){const n={instancePath:s+"/handleExample",schemaPath:"#/properties/handleExample/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.handleExample.type,parentSchema:Xe.properties.handleExample,data:r};e===null?e=[n]:e.push(n),t++}}if(a.brandColor!==void 0){let r=a.brandColor;if(typeof r!="string"){const n={instancePath:s+"/brandColor",schemaPath:"#/properties/brandColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.brandColor.type,parentSchema:Xe.properties.brandColor,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/tags/"+p,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.tags.items.type,parentSchema:Xe.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Xe.properties.tags.type,parentSchema:Xe.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Xe.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.preview.properties.src.type,parentSchema:Xe.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Xe.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.preview.properties.thumbnailSrc.type,parentSchema:Xe.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Xe.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.preview.properties.vectorSrc.type,parentSchema:Xe.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Xe.properties.preview.type,parentSchema:Xe.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Xe.type,parentSchema:Xe,data:a};e===null?e=[r]:e.push(r),t++}return uc.errors=e,t===0}uc.evaluated={props:{$schema:!0,id:!0,name:!0,summary:!0,description:!0,baseUrl:!0,profileUrlPattern:!0,companyUrlPattern:!0,handlePrefix:!0,handleExample:!0,brandColor:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},$.root9=yc;var Ve=j.language;function yc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=yc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:Ve.required,parentSchema:Ve,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Ve.required,parentSchema:Ve,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Ve.required,parentSchema:Ve,data:a};e===null?e=[r]:e.push(r),t++}if(a.bcp47===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"bcp47"},message:"must have required property 'bcp47'",schema:Ve.required,parentSchema:Ve,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.$schema.type,parentSchema:Ve.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-language/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-language/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-language/v1",parentSchema:Ve.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!gt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Ve.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.id.type,parentSchema:Ve.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.name.type,parentSchema:Ve.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.code!==void 0){let r=a.code;if(typeof r!="string"){const n={instancePath:s+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.code.type,parentSchema:Ve.properties.code,data:r};e===null?e=[n]:e.push(n),t++}}if(a.bcp47!==void 0){let r=a.bcp47;if(typeof r!="string"){const n={instancePath:s+"/bcp47",schemaPath:"#/properties/bcp47/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.bcp47.type,parentSchema:Ve.properties.bcp47,data:r};e===null?e=[n]:e.push(n),t++}}if(a.ooxmlLang!==void 0){let r=a.ooxmlLang;if(typeof r!="string"){const n={instancePath:s+"/ooxmlLang",schemaPath:"#/properties/ooxmlLang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.ooxmlLang.type,parentSchema:Ve.properties.ooxmlLang,data:r};e===null?e=[n]:e.push(n),t++}}if(a.direction!==void 0){let r=a.direction;if(typeof r!="string"){const n={instancePath:s+"/direction",schemaPath:"#/properties/direction/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.direction.type,parentSchema:Ve.properties.direction,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="ltr"||r==="rtl")){const n={instancePath:s+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues:Ve.properties.direction.enum},message:"must be equal to one of the allowed values",schema:Ve.properties.direction.enum,parentSchema:Ve.properties.direction,data:r};e===null?e=[n]:e.push(n),t++}}if(a.script!==void 0){let r=a.script;if(typeof r!="string"){const n={instancePath:s+"/script",schemaPath:"#/properties/script/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.script.type,parentSchema:Ve.properties.script,data:r};e===null?e=[n]:e.push(n),t++}}if(a.fontScheme!==void 0){let r=a.fontScheme;if(typeof r!="string"){const n={instancePath:s+"/fontScheme",schemaPath:"#/properties/fontScheme/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.fontScheme.type,parentSchema:Ve.properties.fontScheme,data:r};e===null?e=[n]:e.push(n),t++}}if(a.googleFontScheme!==void 0){let r=a.googleFontScheme;if(typeof r!="string"){const n={instancePath:s+"/googleFontScheme",schemaPath:"#/properties/googleFontScheme/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.googleFontScheme.type,parentSchema:Ve.properties.googleFontScheme,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.summary.type,parentSchema:Ve.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.description.type,parentSchema:Ve.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/tags/"+p,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.tags.items.type,parentSchema:Ve.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ve.properties.tags.type,parentSchema:Ve.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ve.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.preview.properties.src.type,parentSchema:Ve.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ve.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.preview.properties.thumbnailSrc.type,parentSchema:Ve.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ve.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ve.properties.preview.properties.vectorSrc.type,parentSchema:Ve.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ve.properties.preview.type,parentSchema:Ve.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ve.type,parentSchema:Ve,data:a};e===null?e=[r]:e.push(r),t++}return yc.errors=e,t===0}yc.evaluated={props:{$schema:!0,id:!0,name:!0,code:!0,bcp47:!0,ooxmlLang:!0,direction:!0,script:!0,fontScheme:!0,googleFontScheme:!0,summary:!0,description:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},$.root10=fc;var ft=j.colorScheme,yt=j.colorScheme.$defs.HexColor;function fc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=fc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:ft.required,parentSchema:ft,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ft.required,parentSchema:ft,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ft.required,parentSchema:ft,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.$schema.type,parentSchema:ft.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-color-scheme/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-color-scheme/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-color-scheme/v1",parentSchema:ft.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!gt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:ft.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.id.type,parentSchema:ft.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.name.type,parentSchema:ft.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.summary.type,parentSchema:ft.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.description.type,parentSchema:ft.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent1!==void 0){let r=a.accent1;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.type,parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent2!==void 0){let r=a.accent2;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.type,parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent3!==void 0){let r=a.accent3;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent3",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent3",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.type,parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent4!==void 0){let r=a.accent4;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent4",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent4",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.type,parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent5!==void 0){let r=a.accent5;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent5",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent5",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.type,parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent6!==void 0){let r=a.accent6;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/accent6",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent6",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.type,parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dark1!==void 0){let r=a.dark1;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/dark1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dark1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.type,parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dark2!==void 0){let r=a.dark2;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/dark2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dark2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.type,parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.light1!==void 0){let r=a.light1;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/light1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/light1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.type,parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.light2!==void 0){let r=a.light2;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/light2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/light2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.type,parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.hyperlink!==void 0){let r=a.hyperlink;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/hyperlink",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/hyperlink",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.type,parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.followedHyperlink!==void 0){let r=a.followedHyperlink;if(typeof r=="string"){if(!we.test(r)){const n={instancePath:s+"/followedHyperlink",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/followedHyperlink",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.type,parentSchema:yt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/tags/"+p,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.tags.items.type,parentSchema:ft.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ft.properties.tags.type,parentSchema:ft.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:ft.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.preview.properties.src.type,parentSchema:ft.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:ft.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.preview.properties.thumbnailSrc.type,parentSchema:ft.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:ft.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.preview.properties.vectorSrc.type,parentSchema:ft.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ft.properties.preview.type,parentSchema:ft.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ft.type,parentSchema:ft,data:a};e===null?e=[r]:e.push(r),t++}return fc.errors=e,t===0}fc.evaluated={props:{$schema:!0,id:!0,name:!0,summary:!0,description:!0,accent1:!0,accent2:!0,accent3:!0,accent4:!0,accent5:!0,accent6:!0,dark1:!0,dark2:!0,light1:!0,light2:!0,hyperlink:!0,followedHyperlink:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},$.root11=gc;var ce=j.fontScheme,Od=new RegExp("^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$","u");function gc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=gc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:ce.required,parentSchema:ce,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ce.required,parentSchema:ce,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ce.required,parentSchema:ce,data:a};e===null?e=[r]:e.push(r),t++}if(a.major===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"major"},message:"must have required property 'major'",schema:ce.required,parentSchema:ce,data:a};e===null?e=[r]:e.push(r),t++}if(a.minor===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"minor"},message:"must have required property 'minor'",schema:ce.required,parentSchema:ce,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.$schema.type,parentSchema:ce.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-font-scheme/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-font-scheme/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-font-scheme/v1",parentSchema:ce.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!gt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:ce.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.id.type,parentSchema:ce.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.name.type,parentSchema:ce.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.major!==void 0){let r=a.major;if(typeof r!="string"){const n={instancePath:s+"/major",schemaPath:"#/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.major.type,parentSchema:ce.properties.major,data:r};e===null?e=[n]:e.push(n),t++}}if(a.minor!==void 0){let r=a.minor;if(typeof r!="string"){const n={instancePath:s+"/minor",schemaPath:"#/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.minor.type,parentSchema:ce.properties.minor,data:r};e===null?e=[n]:e.push(n),t++}}if(a.code!==void 0){let r=a.code;if(typeof r!="string"){const n={instancePath:s+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.code.type,parentSchema:ce.properties.code,data:r};e===null?e=[n]:e.push(n),t++}}if(a.eastAsian!==void 0){let r=a.eastAsian;if(r&&typeof r=="object"&&!Array.isArray(r)){if(Object.keys(r).length<1){const n={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:ce.properties.eastAsian,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="major"||n==="minor")){const p={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:ce.properties.eastAsian,data:r};e===null?e=[p]:e.push(p),t++}if(r.major!==void 0){let n=r.major;if(typeof n!="string"){const p={instancePath:s+"/eastAsian/major",schemaPath:"#/properties/eastAsian/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.eastAsian.properties.major.type,parentSchema:ce.properties.eastAsian.properties.major,data:n};e===null?e=[p]:e.push(p),t++}}if(r.minor!==void 0){let n=r.minor;if(typeof n!="string"){const p={instancePath:s+"/eastAsian/minor",schemaPath:"#/properties/eastAsian/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.eastAsian.properties.minor.type,parentSchema:ce.properties.eastAsian.properties.minor,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ce.properties.eastAsian.type,parentSchema:ce.properties.eastAsian,data:r};e===null?e=[n]:e.push(n),t++}}if(a.complexScript!==void 0){let r=a.complexScript;if(r&&typeof r=="object"&&!Array.isArray(r)){if(Object.keys(r).length<1){const n={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:ce.properties.complexScript,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="major"||n==="minor")){const p={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:ce.properties.complexScript,data:r};e===null?e=[p]:e.push(p),t++}if(r.major!==void 0){let n=r.major;if(typeof n!="string"){const p={instancePath:s+"/complexScript/major",schemaPath:"#/properties/complexScript/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.complexScript.properties.major.type,parentSchema:ce.properties.complexScript.properties.major,data:n};e===null?e=[p]:e.push(p),t++}}if(r.minor!==void 0){let n=r.minor;if(typeof n!="string"){const p={instancePath:s+"/complexScript/minor",schemaPath:"#/properties/complexScript/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.complexScript.properties.minor.type,parentSchema:ce.properties.complexScript.properties.minor,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ce.properties.complexScript.type,parentSchema:ce.properties.complexScript,data:r};e===null?e=[n]:e.push(n),t++}}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.type.type,parentSchema:ce.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="sans-serif"||r==="serif"||r==="monospace")){const n={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ce.properties.type.enum},message:"must be equal to one of the allowed values",schema:ce.properties.type.enum,parentSchema:ce.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.app!==void 0){let r=a.app;if(typeof r!="string"){const n={instancePath:s+"/app",schemaPath:"#/properties/app/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.app.type,parentSchema:ce.properties.app,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="powerpoint"||r==="google-slides")){const n={instancePath:s+"/app",schemaPath:"#/properties/app/enum",keyword:"enum",params:{allowedValues:ce.properties.app.enum},message:"must be equal to one of the allowed values",schema:ce.properties.app.enum,parentSchema:ce.properties.app,data:r};e===null?e=[n]:e.push(n),t++}}if(a.languageFamily!==void 0){let r=a.languageFamily;if(typeof r!="string"){const n={instancePath:s+"/languageFamily",schemaPath:"#/properties/languageFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.languageFamily.type,parentSchema:ce.properties.languageFamily,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="latin"||r==="ea"||r==="cs"||r==="eastAsian"||r==="complexScript")){const n={instancePath:s+"/languageFamily",schemaPath:"#/properties/languageFamily/enum",keyword:"enum",params:{allowedValues:ce.properties.languageFamily.enum},message:"must be equal to one of the allowed values",schema:ce.properties.languageFamily.enum,parentSchema:ce.properties.languageFamily,data:r};e===null?e=[n]:e.push(n),t++}}if(a.languages!==void 0){let r=a.languages;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i=="string"){if(!Od.test(i)){const h={instancePath:s+"/languages/"+p,schemaPath:"#/properties/languages/items/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$",parentSchema:ce.properties.languages.items,data:i};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/languages/"+p,schemaPath:"#/properties/languages/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.languages.items.type,parentSchema:ce.properties.languages.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/languages",schemaPath:"#/properties/languages/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ce.properties.languages.type,parentSchema:ce.properties.languages,data:r};e===null?e=[n]:e.push(n),t++}}if(a.textSample!==void 0){let r=a.textSample;if(typeof r!="string"){const n={instancePath:s+"/textSample",schemaPath:"#/properties/textSample/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.textSample.type,parentSchema:ce.properties.textSample,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.summary.type,parentSchema:ce.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.description.type,parentSchema:ce.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++){let i=r[p];if(typeof i!="string"){const h={instancePath:s+"/tags/"+p,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.tags.items.type,parentSchema:ce.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ce.properties.tags.type,parentSchema:ce.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:ce.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.preview.properties.src.type,parentSchema:ce.properties.preview.properties.src,data:n};e===null?e=[p]:e.push(p),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:ce.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.preview.properties.thumbnailSrc.type,parentSchema:ce.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[p]:e.push(p),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Pt(n)){const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:ce.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.preview.properties.vectorSrc.type,parentSchema:ce.properties.preview.properties.vectorSrc,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ce.properties.preview.type,parentSchema:ce.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ce.type,parentSchema:ce,data:a};e===null?e=[r]:e.push(r),t++}return gc.errors=e,t===0}gc.evaluated={props:{$schema:!0,id:!0,name:!0,major:!0,minor:!0,code:!0,eastAsian:!0,complexScript:!0,type:!0,app:!0,languageFamily:!0,languages:!0,textSample:!0,summary:!0,description:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},$.root12=Pc;var Ot=j.finding,Ee=j.finding.$defs.Finding,Cn=j.finding.$defs.FindingSeverity,La=j.finding.$defs.FindingCategory,Lt=j.finding.$defs.FindingLocation,ra=j.finding.$defs.FindingSuggestion,At=j.finding.$defs.ValidationIssue,wd=new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$","u"),Qt=j.finding.$defs.FindingFix,Qe=j.finding.$defs.JsonPatchOperation,Sa=j.finding.$defs.FindingFocus;function An(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=An.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.title===void 0){const p={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'",schema:Qt.required,parentSchema:Qt,data:a};e===null?e=[p]:e.push(p),t++}for(const p in a)if(!(p==="title"||p==="id"||p==="kind"||p==="safe"||p==="patch"||p==="focus")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:Qt,data:a};e===null?e=[i]:e.push(i),t++}if(a.title!==void 0){let p=a.title;if(typeof p=="string"){if(me(p)<1){const i={instancePath:s+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:Qt.properties.title,data:p};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qt.properties.title.type,parentSchema:Qt.properties.title,data:p};e===null?e=[i]:e.push(i),t++}}if(a.id!==void 0){let p=a.id;if(typeof p!="string"){const i={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qt.properties.id.type,parentSchema:Qt.properties.id,data:p};e===null?e=[i]:e.push(i),t++}}if(a.kind!==void 0){let p=a.kind;if(typeof p!="string"){const i={instancePath:s+"/kind",schemaPath:"#/properties/kind/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qt.properties.kind.type,parentSchema:Qt.properties.kind,data:p};e===null?e=[i]:e.push(i),t++}if(!(p==="patch"||p==="focus")){const i={instancePath:s+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Qt.properties.kind.enum},message:"must be equal to one of the allowed values",schema:Qt.properties.kind.enum,parentSchema:Qt.properties.kind,data:p};e===null?e=[i]:e.push(i),t++}}if(a.safe!==void 0){let p=a.safe;if(typeof p!="boolean"){const i={instancePath:s+"/safe",schemaPath:"#/properties/safe/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Qt.properties.safe.type,parentSchema:Qt.properties.safe,data:p};e===null?e=[i]:e.push(i),t++}}if(a.patch!==void 0){let p=a.patch;if(Array.isArray(p)){const i=p.length;for(let h=0;h<i;h++){let c=p[h];const y=t;let g=!1,l=null;const o=t;if(c&&typeof c=="object"&&!Array.isArray(c)){if(c.op===void 0){const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/required",keyword:"required",params:{missingProperty:"op"},message:"must have required property 'op'",schema:Qe.oneOf[0].required,parentSchema:Qe.oneOf[0],data:c};e===null?e=[O]:e.push(O),t++}if(c.path===void 0){const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:Qe.oneOf[0].required,parentSchema:Qe.oneOf[0],data:c};e===null?e=[O]:e.push(O),t++}if(c.value===void 0){const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:Qe.oneOf[0].required,parentSchema:Qe.oneOf[0],data:c};e===null?e=[O]:e.push(O),t++}for(const O in c)if(!(O==="op"||O==="path"||O==="value")){const S={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties",schema:!1,parentSchema:Qe.oneOf[0],data:c};e===null?e=[S]:e.push(S),t++}if(c.op!==void 0){let O=c.op;if(typeof O!="string"){const S={instancePath:s+"/patch/"+h+"/op",schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/properties/op/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qe.oneOf[0].properties.op.type,parentSchema:Qe.oneOf[0].properties.op,data:O};e===null?e=[S]:e.push(S),t++}if(!(O==="add"||O==="replace"||O==="test")){const S={instancePath:s+"/patch/"+h+"/op",schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/properties/op/enum",keyword:"enum",params:{allowedValues:Qe.oneOf[0].properties.op.enum},message:"must be equal to one of the allowed values",schema:Qe.oneOf[0].properties.op.enum,parentSchema:Qe.oneOf[0].properties.op,data:O};e===null?e=[S]:e.push(S),t++}}if(c.path!==void 0){let O=c.path;if(typeof O!="string"){const S={instancePath:s+"/patch/"+h+"/path",schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qe.oneOf[0].properties.path.type,parentSchema:Qe.oneOf[0].properties.path,data:O};e===null?e=[S]:e.push(S),t++}}}else{const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Qe.oneOf[0].type,parentSchema:Qe.oneOf[0],data:c};e===null?e=[O]:e.push(O),t++}var n=o===t;if(n){g=!0,l=0;var r=!0}const d=t;if(c&&typeof c=="object"&&!Array.isArray(c)){if(c.op===void 0){const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/1/required",keyword:"required",params:{missingProperty:"op"},message:"must have required property 'op'",schema:Qe.oneOf[1].required,parentSchema:Qe.oneOf[1],data:c};e===null?e=[O]:e.push(O),t++}if(c.path===void 0){const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/1/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:Qe.oneOf[1].required,parentSchema:Qe.oneOf[1],data:c};e===null?e=[O]:e.push(O),t++}for(const O in c)if(!(O==="op"||O==="path")){const S={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties",schema:!1,parentSchema:Qe.oneOf[1],data:c};e===null?e=[S]:e.push(S),t++}if(c.op!==void 0){let O=c.op;if(typeof O!="string"){const S={instancePath:s+"/patch/"+h+"/op",schemaPath:"#/$defs/JsonPatchOperation/oneOf/1/properties/op/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qe.oneOf[1].properties.op.type,parentSchema:Qe.oneOf[1].properties.op,data:O};e===null?e=[S]:e.push(S),t++}if(O!=="remove"){const S={instancePath:s+"/patch/"+h+"/op",schemaPath:"#/$defs/JsonPatchOperation/oneOf/1/properties/op/const",keyword:"const",params:{allowedValue:"remove"},message:"must be equal to constant",schema:"remove",parentSchema:Qe.oneOf[1].properties.op,data:O};e===null?e=[S]:e.push(S),t++}}if(c.path!==void 0){let O=c.path;if(typeof O!="string"){const S={instancePath:s+"/patch/"+h+"/path",schemaPath:"#/$defs/JsonPatchOperation/oneOf/1/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qe.oneOf[1].properties.path.type,parentSchema:Qe.oneOf[1].properties.path,data:O};e===null?e=[S]:e.push(S),t++}}}else{const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Qe.oneOf[1].type,parentSchema:Qe.oneOf[1],data:c};e===null?e=[O]:e.push(O),t++}var n=d===t;if(n&&g)g=!1,l=[l,1];else{n&&(g=!0,l=1,r!==!0&&(r=!0));const O=t;if(c&&typeof c=="object"&&!Array.isArray(c)){if(c.op===void 0){const w={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/required",keyword:"required",params:{missingProperty:"op"},message:"must have required property 'op'",schema:Qe.oneOf[2].required,parentSchema:Qe.oneOf[2],data:c};e===null?e=[w]:e.push(w),t++}if(c.from===void 0){const w={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/required",keyword:"required",params:{missingProperty:"from"},message:"must have required property 'from'",schema:Qe.oneOf[2].required,parentSchema:Qe.oneOf[2],data:c};e===null?e=[w]:e.push(w),t++}if(c.path===void 0){const w={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:Qe.oneOf[2].required,parentSchema:Qe.oneOf[2],data:c};e===null?e=[w]:e.push(w),t++}for(const w in c)if(!(w==="op"||w==="from"||w==="path")){const q={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:w},message:"must NOT have additional properties",schema:!1,parentSchema:Qe.oneOf[2],data:c};e===null?e=[q]:e.push(q),t++}if(c.op!==void 0){let w=c.op;if(typeof w!="string"){const q={instancePath:s+"/patch/"+h+"/op",schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/properties/op/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qe.oneOf[2].properties.op.type,parentSchema:Qe.oneOf[2].properties.op,data:w};e===null?e=[q]:e.push(q),t++}if(!(w==="move"||w==="copy")){const q={instancePath:s+"/patch/"+h+"/op",schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/properties/op/enum",keyword:"enum",params:{allowedValues:Qe.oneOf[2].properties.op.enum},message:"must be equal to one of the allowed values",schema:Qe.oneOf[2].properties.op.enum,parentSchema:Qe.oneOf[2].properties.op,data:w};e===null?e=[q]:e.push(q),t++}}if(c.from!==void 0){let w=c.from;if(typeof w!="string"){const q={instancePath:s+"/patch/"+h+"/from",schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/properties/from/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qe.oneOf[2].properties.from.type,parentSchema:Qe.oneOf[2].properties.from,data:w};e===null?e=[q]:e.push(q),t++}}if(c.path!==void 0){let w=c.path;if(typeof w!="string"){const q={instancePath:s+"/patch/"+h+"/path",schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qe.oneOf[2].properties.path.type,parentSchema:Qe.oneOf[2].properties.path,data:w};e===null?e=[q]:e.push(q),t++}}}else{const w={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Qe.oneOf[2].type,parentSchema:Qe.oneOf[2],data:c};e===null?e=[w]:e.push(w),t++}var n=O===t;n&&g?(g=!1,l=[l,2]):n&&(g=!0,l=2,r!==!0&&(r=!0))}if(g)t=y,e!==null&&(y?e.length=y:e=null);else{const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf",keyword:"oneOf",params:{passingSchemas:l},message:"must match exactly one schema in oneOf",schema:Qe.oneOf,parentSchema:Qe,data:c};e===null?e=[O]:e.push(O),t++}}}else{const i={instancePath:s+"/patch",schemaPath:"#/properties/patch/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Qt.properties.patch.type,parentSchema:Qt.properties.patch,data:p};e===null?e=[i]:e.push(i),t++}}if(a.focus!==void 0){let p=a.focus;if(p&&typeof p=="object"&&!Array.isArray(p)){if(p.path===void 0){const i={instancePath:s+"/focus",schemaPath:"#/$defs/FindingFocus/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:Sa.required,parentSchema:Sa,data:p};e===null?e=[i]:e.push(i),t++}if(p.field===void 0){const i={instancePath:s+"/focus",schemaPath:"#/$defs/FindingFocus/required",keyword:"required",params:{missingProperty:"field"},message:"must have required property 'field'",schema:Sa.required,parentSchema:Sa,data:p};e===null?e=[i]:e.push(i),t++}for(const i in p)if(!(i==="path"||i==="field"||i==="value")){const h={instancePath:s+"/focus",schemaPath:"#/$defs/FindingFocus/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:Sa,data:p};e===null?e=[h]:e.push(h),t++}if(p.path!==void 0){let i=p.path;if(typeof i!="string"){const h={instancePath:s+"/focus/path",schemaPath:"#/$defs/FindingFocus/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Sa.properties.path.type,parentSchema:Sa.properties.path,data:i};e===null?e=[h]:e.push(h),t++}}if(p.field!==void 0){let i=p.field;if(typeof i!="string"){const h={instancePath:s+"/focus/field",schemaPath:"#/$defs/FindingFocus/properties/field/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Sa.properties.field.type,parentSchema:Sa.properties.field,data:i};e===null?e=[h]:e.push(h),t++}}if(p.value!==void 0){let i=p.value;if(typeof i!="object"&&typeof i!="string"&&typeof i!="number"&&typeof i!="boolean"){const h={instancePath:s+"/focus/value",schemaPath:"#/$defs/FindingFocus/properties/value/type",keyword:"type",params:{type:Sa.properties.value.type},message:"must be string,number,boolean,null,array,object",schema:Sa.properties.value.type,parentSchema:Sa.properties.value,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s+"/focus",schemaPath:"#/$defs/FindingFocus/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Sa.type,parentSchema:Sa,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Qt.type,parentSchema:Qt,data:a};e===null?e=[p]:e.push(p),t++}return An.errors=e,t===0}An.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Dn(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Dn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.ruleId===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"ruleId"},message:"must have required property 'ruleId'",schema:Ee.required,parentSchema:Ee,data:a};e===null?e=[n]:e.push(n),t++}if(a.severity===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"severity"},message:"must have required property 'severity'",schema:Ee.required,parentSchema:Ee,data:a};e===null?e=[n]:e.push(n),t++}if(a.category===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"category"},message:"must have required property 'category'",schema:Ee.required,parentSchema:Ee,data:a};e===null?e=[n]:e.push(n),t++}if(a.path===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:Ee.required,parentSchema:Ee,data:a};e===null?e=[n]:e.push(n),t++}if(a.message===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"message"},message:"must have required property 'message'",schema:Ee.required,parentSchema:Ee,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!wa.call(Ee.properties,n)){const p={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:Ee,data:a};e===null?e=[p]:e.push(p),t++}if(a.ruleId!==void 0){let n=a.ruleId;if(typeof n=="string"){if(!wd.test(n)){const p={instancePath:s+"/ruleId",schemaPath:"#/properties/ruleId/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$"},message:'must match pattern "^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$"',schema:"^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$",parentSchema:Ee.properties.ruleId,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/ruleId",schemaPath:"#/properties/ruleId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.ruleId.type,parentSchema:Ee.properties.ruleId,data:n};e===null?e=[p]:e.push(p),t++}}if(a.source!==void 0){let n=a.source;if(typeof n!="string"){const p={instancePath:s+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.source.type,parentSchema:Ee.properties.source,data:n};e===null?e=[p]:e.push(p),t++}}if(a.severity!==void 0){let n=a.severity;if(typeof n!="string"){const p={instancePath:s+"/severity",schemaPath:"#/$defs/FindingSeverity/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Cn.type,parentSchema:Cn,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="error"||n==="warning"||n==="info")){const p={instancePath:s+"/severity",schemaPath:"#/$defs/FindingSeverity/enum",keyword:"enum",params:{allowedValues:Cn.enum},message:"must be equal to one of the allowed values",schema:Cn.enum,parentSchema:Cn,data:n};e===null?e=[p]:e.push(p),t++}}if(a.category!==void 0){let n=a.category;const p=t;let i=!1;const h=t;if(typeof n!="string"){const y={instancePath:s+"/category",schemaPath:"#/$defs/FindingCategory/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:La.anyOf[0].type,parentSchema:La.anyOf[0],data:n};e===null?e=[y]:e.push(y),t++}if(!(n==="format"||n==="references"||n==="policy"||n==="accessibility"||n==="layout"||n==="content")){const y={instancePath:s+"/category",schemaPath:"#/$defs/FindingCategory/anyOf/0/enum",keyword:"enum",params:{allowedValues:La.anyOf[0].enum},message:"must be equal to one of the allowed values",schema:La.anyOf[0].enum,parentSchema:La.anyOf[0],data:n};e===null?e=[y]:e.push(y),t++}var r=h===t;i=i||r;const c=t;if(typeof n=="string"){if(me(n)<1){const y={instancePath:s+"/category",schemaPath:"#/$defs/FindingCategory/anyOf/1/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:La.anyOf[1],data:n};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/category",schemaPath:"#/$defs/FindingCategory/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string",schema:La.anyOf[1].type,parentSchema:La.anyOf[1],data:n};e===null?e=[y]:e.push(y),t++}var r=c===t;if(i=i||r,i)t=p,e!==null&&(p?e.length=p:e=null);else{const y={instancePath:s+"/category",schemaPath:"#/$defs/FindingCategory/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:La.anyOf,parentSchema:La,data:n};e===null?e=[y]:e.push(y),t++}}if(a.path!==void 0){let n=a.path;if(typeof n!="string"){const p={instancePath:s+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.path.type,parentSchema:Ee.properties.path,data:n};e===null?e=[p]:e.push(p),t++}}if(a.scope!==void 0){let n=a.scope;if(typeof n!="string"){const p={instancePath:s+"/scope",schemaPath:"#/properties/scope/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.scope.type,parentSchema:Ee.properties.scope,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="document"||n==="context")){const p={instancePath:s+"/scope",schemaPath:"#/properties/scope/enum",keyword:"enum",params:{allowedValues:Ee.properties.scope.enum},message:"must be equal to one of the allowed values",schema:Ee.properties.scope.enum,parentSchema:Ee.properties.scope,data:n};e===null?e=[p]:e.push(p),t++}}if(a.message!==void 0){let n=a.message;if(typeof n=="string"){if(me(n)<1){const p={instancePath:s+"/message",schemaPath:"#/properties/message/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:Ee.properties.message,data:n};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/message",schemaPath:"#/properties/message/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.message.type,parentSchema:Ee.properties.message,data:n};e===null?e=[p]:e.push(p),t++}}if(a.help!==void 0){let n=a.help;if(typeof n!="string"){const p={instancePath:s+"/help",schemaPath:"#/properties/help/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.help.type,parentSchema:Ee.properties.help,data:n};e===null?e=[p]:e.push(p),t++}}if(a.slide!==void 0){let n=a.slide;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){const p={instancePath:s+"/slide",schemaPath:"#/properties/slide/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ee.properties.slide.type,parentSchema:Ee.properties.slide,data:n};e===null?e=[p]:e.push(p),t++}if(typeof n=="number"&&(n<0||isNaN(n))){const p={instancePath:s+"/slide",schemaPath:"#/properties/slide/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ee.properties.slide,data:n};e===null?e=[p]:e.push(p),t++}}if(a.slideId!==void 0){let n=a.slideId;if(typeof n!="string"){const p={instancePath:s+"/slideId",schemaPath:"#/properties/slideId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.slideId.type,parentSchema:Ee.properties.slideId,data:n};e===null?e=[p]:e.push(p),t++}}if(a.location!==void 0){let n=a.location;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.offset===void 0){const p={instancePath:s+"/location",schemaPath:"#/$defs/FindingLocation/required",keyword:"required",params:{missingProperty:"offset"},message:"must have required property 'offset'",schema:Lt.required,parentSchema:Lt,data:n};e===null?e=[p]:e.push(p),t++}if(n.length===void 0){const p={instancePath:s+"/location",schemaPath:"#/$defs/FindingLocation/required",keyword:"required",params:{missingProperty:"length"},message:"must have required property 'length'",schema:Lt.required,parentSchema:Lt,data:n};e===null?e=[p]:e.push(p),t++}if(n.line===void 0){const p={instancePath:s+"/location",schemaPath:"#/$defs/FindingLocation/required",keyword:"required",params:{missingProperty:"line"},message:"must have required property 'line'",schema:Lt.required,parentSchema:Lt,data:n};e===null?e=[p]:e.push(p),t++}if(n.column===void 0){const p={instancePath:s+"/location",schemaPath:"#/$defs/FindingLocation/required",keyword:"required",params:{missingProperty:"column"},message:"must have required property 'column'",schema:Lt.required,parentSchema:Lt,data:n};e===null?e=[p]:e.push(p),t++}for(const p in n)if(!(p==="offset"||p==="length"||p==="line"||p==="column")){const i={instancePath:s+"/location",schemaPath:"#/$defs/FindingLocation/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:Lt,data:n};e===null?e=[i]:e.push(i),t++}if(n.offset!==void 0){let p=n.offset;if(!(typeof p=="number"&&!(p%1)&&!isNaN(p))){const i={instancePath:s+"/location/offset",schemaPath:"#/$defs/FindingLocation/properties/offset/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Lt.properties.offset.type,parentSchema:Lt.properties.offset,data:p};e===null?e=[i]:e.push(i),t++}if(typeof p=="number"&&(p<0||isNaN(p))){const i={instancePath:s+"/location/offset",schemaPath:"#/$defs/FindingLocation/properties/offset/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Lt.properties.offset,data:p};e===null?e=[i]:e.push(i),t++}}if(n.length!==void 0){let p=n.length;if(!(typeof p=="number"&&!(p%1)&&!isNaN(p))){const i={instancePath:s+"/location/length",schemaPath:"#/$defs/FindingLocation/properties/length/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Lt.properties.length.type,parentSchema:Lt.properties.length,data:p};e===null?e=[i]:e.push(i),t++}if(typeof p=="number"&&(p<0||isNaN(p))){const i={instancePath:s+"/location/length",schemaPath:"#/$defs/FindingLocation/properties/length/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Lt.properties.length,data:p};e===null?e=[i]:e.push(i),t++}}if(n.line!==void 0){let p=n.line;if(!(typeof p=="number"&&!(p%1)&&!isNaN(p))){const i={instancePath:s+"/location/line",schemaPath:"#/$defs/FindingLocation/properties/line/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Lt.properties.line.type,parentSchema:Lt.properties.line,data:p};e===null?e=[i]:e.push(i),t++}if(typeof p=="number"&&(p<1||isNaN(p))){const i={instancePath:s+"/location/line",schemaPath:"#/$defs/FindingLocation/properties/line/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Lt.properties.line,data:p};e===null?e=[i]:e.push(i),t++}}if(n.column!==void 0){let p=n.column;if(!(typeof p=="number"&&!(p%1)&&!isNaN(p))){const i={instancePath:s+"/location/column",schemaPath:"#/$defs/FindingLocation/properties/column/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Lt.properties.column.type,parentSchema:Lt.properties.column,data:p};e===null?e=[i]:e.push(i),t++}if(typeof p=="number"&&(p<1||isNaN(p))){const i={instancePath:s+"/location/column",schemaPath:"#/$defs/FindingLocation/properties/column/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Lt.properties.column,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s+"/location",schemaPath:"#/$defs/FindingLocation/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Lt.type,parentSchema:Lt,data:n};e===null?e=[p]:e.push(p),t++}}if(a.definition!==void 0){let n=a.definition;if(typeof n!="string"){const p={instancePath:s+"/definition",schemaPath:"#/properties/definition/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.definition.type,parentSchema:Ee.properties.definition,data:n};e===null?e=[p]:e.push(p),t++}}if(a.lookup!==void 0){let n=a.lookup;if(Array.isArray(n)){const p=n.length;for(let i=0;i<p;i++){let h=n[i];if(typeof h!="string"){const c={instancePath:s+"/lookup/"+i,schemaPath:"#/properties/lookup/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.lookup.items.type,parentSchema:Ee.properties.lookup.items,data:h};e===null?e=[c]:e.push(c),t++}}}else{const p={instancePath:s+"/lookup",schemaPath:"#/properties/lookup/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ee.properties.lookup.type,parentSchema:Ee.properties.lookup,data:n};e===null?e=[p]:e.push(p),t++}}if(a.suggestions!==void 0){let n=a.suggestions;if(Array.isArray(n)){const p=n.length;for(let i=0;i<p;i++){let h=n[i];if(h&&typeof h=="object"&&!Array.isArray(h)){if(h.value===void 0){const c={instancePath:s+"/suggestions/"+i,schemaPath:"#/$defs/FindingSuggestion/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:ra.required,parentSchema:ra,data:h};e===null?e=[c]:e.push(c),t++}if(h.label===void 0){const c={instancePath:s+"/suggestions/"+i,schemaPath:"#/$defs/FindingSuggestion/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'",schema:ra.required,parentSchema:ra,data:h};e===null?e=[c]:e.push(c),t++}if(h.origin===void 0){const c={instancePath:s+"/suggestions/"+i,schemaPath:"#/$defs/FindingSuggestion/required",keyword:"required",params:{missingProperty:"origin"},message:"must have required property 'origin'",schema:ra.required,parentSchema:ra,data:h};e===null?e=[c]:e.push(c),t++}for(const c in h)if(!(c==="value"||c==="label"||c==="origin"||c==="definition")){const y={instancePath:s+"/suggestions/"+i,schemaPath:"#/$defs/FindingSuggestion/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties",schema:!1,parentSchema:ra,data:h};e===null?e=[y]:e.push(y),t++}if(h.value!==void 0){let c=h.value;if(typeof c!="string"&&typeof c!="number"&&typeof c!="boolean"&&c!==null){const y={instancePath:s+"/suggestions/"+i+"/value",schemaPath:"#/$defs/FindingSuggestion/properties/value/type",keyword:"type",params:{type:ra.properties.value.type},message:"must be string,number,boolean,null",schema:ra.properties.value.type,parentSchema:ra.properties.value,data:c};e===null?e=[y]:e.push(y),t++}}if(h.label!==void 0){let c=h.label;if(typeof c!="string"){const y={instancePath:s+"/suggestions/"+i+"/label",schemaPath:"#/$defs/FindingSuggestion/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ra.properties.label.type,parentSchema:ra.properties.label,data:c};e===null?e=[y]:e.push(y),t++}}if(h.origin!==void 0){let c=h.origin;if(typeof c!="string"){const y={instancePath:s+"/suggestions/"+i+"/origin",schemaPath:"#/$defs/FindingSuggestion/properties/origin/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ra.properties.origin.type,parentSchema:ra.properties.origin,data:c};e===null?e=[y]:e.push(y),t++}}if(h.definition!==void 0){let c=h.definition;if(typeof c!="string"){const y={instancePath:s+"/suggestions/"+i+"/definition",schemaPath:"#/$defs/FindingSuggestion/properties/definition/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ra.properties.definition.type,parentSchema:ra.properties.definition,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s+"/suggestions/"+i,schemaPath:"#/$defs/FindingSuggestion/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ra.type,parentSchema:ra,data:h};e===null?e=[c]:e.push(c),t++}}}else{const p={instancePath:s+"/suggestions",schemaPath:"#/properties/suggestions/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ee.properties.suggestions.type,parentSchema:Ee.properties.suggestions,data:n};e===null?e=[p]:e.push(p),t++}}if(a.measured!==void 0){let n=a.measured;if(n&&typeof n=="object"&&!Array.isArray(n))for(const p in n){let i=n[p];if(typeof i!="number"&&typeof i!="string"&&typeof i!="boolean"&&i!==null){const h={instancePath:s+"/measured/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/measured/additionalProperties/type",keyword:"type",params:{type:Ee.properties.measured.additionalProperties.type},message:"must be number,string,boolean,null",schema:Ee.properties.measured.additionalProperties.type,parentSchema:Ee.properties.measured.additionalProperties,data:i};e===null?e=[h]:e.push(h),t++}}else{const p={instancePath:s+"/measured",schemaPath:"#/properties/measured/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ee.properties.measured.type,parentSchema:Ee.properties.measured,data:n};e===null?e=[p]:e.push(p),t++}}if(a.fixes!==void 0){let n=a.fixes;if(Array.isArray(n)){const p=n.length;for(let i=0;i<p;i++)An(n[i],{instancePath:s+"/fixes/"+i,parentData:n,parentDataProperty:i,rootData:v,dynamicAnchors:b})||(e=e===null?An.errors:e.concat(An.errors),t=e.length)}else{const p={instancePath:s+"/fixes",schemaPath:"#/properties/fixes/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ee.properties.fixes.type,parentSchema:Ee.properties.fixes,data:n};e===null?e=[p]:e.push(p),t++}}if(a.validation!==void 0){let n=a.validation;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.path===void 0){const p={instancePath:s+"/validation",schemaPath:"#/$defs/ValidationIssue/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:At.required,parentSchema:At,data:n};e===null?e=[p]:e.push(p),t++}if(n.message===void 0){const p={instancePath:s+"/validation",schemaPath:"#/$defs/ValidationIssue/required",keyword:"required",params:{missingProperty:"message"},message:"must have required property 'message'",schema:At.required,parentSchema:At,data:n};e===null?e=[p]:e.push(p),t++}if(n.keyword===void 0){const p={instancePath:s+"/validation",schemaPath:"#/$defs/ValidationIssue/required",keyword:"required",params:{missingProperty:"keyword"},message:"must have required property 'keyword'",schema:At.required,parentSchema:At,data:n};e===null?e=[p]:e.push(p),t++}if(n.schemaPath===void 0){const p={instancePath:s+"/validation",schemaPath:"#/$defs/ValidationIssue/required",keyword:"required",params:{missingProperty:"schemaPath"},message:"must have required property 'schemaPath'",schema:At.required,parentSchema:At,data:n};e===null?e=[p]:e.push(p),t++}if(n.params===void 0){const p={instancePath:s+"/validation",schemaPath:"#/$defs/ValidationIssue/required",keyword:"required",params:{missingProperty:"params"},message:"must have required property 'params'",schema:At.required,parentSchema:At,data:n};e===null?e=[p]:e.push(p),t++}for(const p in n)if(!(p==="path"||p==="message"||p==="keyword"||p==="schemaPath"||p==="params"||p==="alternatives")){const i={instancePath:s+"/validation",schemaPath:"#/$defs/ValidationIssue/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:At,data:n};e===null?e=[i]:e.push(i),t++}if(n.path!==void 0){let p=n.path;if(typeof p!="string"){const i={instancePath:s+"/validation/path",schemaPath:"#/$defs/ValidationIssue/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:At.properties.path.type,parentSchema:At.properties.path,data:p};e===null?e=[i]:e.push(i),t++}}if(n.message!==void 0){let p=n.message;if(typeof p!="string"){const i={instancePath:s+"/validation/message",schemaPath:"#/$defs/ValidationIssue/properties/message/type",keyword:"type",params:{type:"string"},message:"must be string",schema:At.properties.message.type,parentSchema:At.properties.message,data:p};e===null?e=[i]:e.push(i),t++}}if(n.keyword!==void 0){let p=n.keyword;if(typeof p!="string"){const i={instancePath:s+"/validation/keyword",schemaPath:"#/$defs/ValidationIssue/properties/keyword/type",keyword:"type",params:{type:"string"},message:"must be string",schema:At.properties.keyword.type,parentSchema:At.properties.keyword,data:p};e===null?e=[i]:e.push(i),t++}}if(n.schemaPath!==void 0){let p=n.schemaPath;if(typeof p!="string"){const i={instancePath:s+"/validation/schemaPath",schemaPath:"#/$defs/ValidationIssue/properties/schemaPath/type",keyword:"type",params:{type:"string"},message:"must be string",schema:At.properties.schemaPath.type,parentSchema:At.properties.schemaPath,data:p};e===null?e=[i]:e.push(i),t++}}if(n.params!==void 0){let p=n.params;if(!(p&&typeof p=="object"&&!Array.isArray(p))){const i={instancePath:s+"/validation/params",schemaPath:"#/$defs/ValidationIssue/properties/params/type",keyword:"type",params:{type:"object"},message:"must be object",schema:At.properties.params.type,parentSchema:At.properties.params,data:p};e===null?e=[i]:e.push(i),t++}}if(n.alternatives!==void 0){let p=n.alternatives;if(Array.isArray(p)){const i=p.length;for(let h=0;h<i;h++){let c=p[h];if(typeof c!="string"){const y={instancePath:s+"/validation/alternatives/"+h,schemaPath:"#/$defs/ValidationIssue/properties/alternatives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:At.properties.alternatives.items.type,parentSchema:At.properties.alternatives.items,data:c};e===null?e=[y]:e.push(y),t++}}}else{const i={instancePath:s+"/validation/alternatives",schemaPath:"#/$defs/ValidationIssue/properties/alternatives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:At.properties.alternatives.type,parentSchema:At.properties.alternatives,data:p};e===null?e=[i]:e.push(i),t++}}}else{const p={instancePath:s+"/validation",schemaPath:"#/$defs/ValidationIssue/type",keyword:"type",params:{type:"object"},message:"must be object",schema:At.type,parentSchema:At,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ee.type,parentSchema:Ee,data:a};e===null?e=[n]:e.push(n),t++}return Dn.errors=e,t===0}Dn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Pc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Pc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.valid===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"valid"},message:"must have required property 'valid'",schema:Ot.required,parentSchema:Ot,data:a};e===null?e=[r]:e.push(r),t++}if(a.findings===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"findings"},message:"must have required property 'findings'",schema:Ot.required,parentSchema:Ot,data:a};e===null?e=[r]:e.push(r),t++}if(a.counts===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"counts"},message:"must have required property 'counts'",schema:Ot.required,parentSchema:Ot,data:a};e===null?e=[r]:e.push(r),t++}if(a.valid!==void 0){let r=a.valid;if(typeof r!="boolean"){const n={instancePath:s+"/valid",schemaPath:"#/properties/valid/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Ot.properties.valid.type,parentSchema:Ot.properties.valid,data:r};e===null?e=[n]:e.push(n),t++}}if(a.findings!==void 0){let r=a.findings;if(Array.isArray(r)){const n=r.length;for(let p=0;p<n;p++)Dn(r[p],{instancePath:s+"/findings/"+p,parentData:r,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?Dn.errors:e.concat(Dn.errors),t=e.length)}else{const n={instancePath:s+"/findings",schemaPath:"#/properties/findings/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ot.properties.findings.type,parentSchema:Ot.properties.findings,data:r};e===null?e=[n]:e.push(n),t++}}if(a.counts!==void 0){let r=a.counts;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.error===void 0){const n={instancePath:s+"/counts",schemaPath:"#/properties/counts/required",keyword:"required",params:{missingProperty:"error"},message:"must have required property 'error'",schema:Ot.properties.counts.required,parentSchema:Ot.properties.counts,data:r};e===null?e=[n]:e.push(n),t++}if(r.warning===void 0){const n={instancePath:s+"/counts",schemaPath:"#/properties/counts/required",keyword:"required",params:{missingProperty:"warning"},message:"must have required property 'warning'",schema:Ot.properties.counts.required,parentSchema:Ot.properties.counts,data:r};e===null?e=[n]:e.push(n),t++}if(r.info===void 0){const n={instancePath:s+"/counts",schemaPath:"#/properties/counts/required",keyword:"required",params:{missingProperty:"info"},message:"must have required property 'info'",schema:Ot.properties.counts.required,parentSchema:Ot.properties.counts,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="error"||n==="warning"||n==="info")){const p={instancePath:s+"/counts",schemaPath:"#/properties/counts/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:Ot.properties.counts,data:r};e===null?e=[p]:e.push(p),t++}if(r.error!==void 0){let n=r.error;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){const p={instancePath:s+"/counts/error",schemaPath:"#/properties/counts/properties/error/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ot.properties.counts.properties.error.type,parentSchema:Ot.properties.counts.properties.error,data:n};e===null?e=[p]:e.push(p),t++}if(typeof n=="number"&&(n<0||isNaN(n))){const p={instancePath:s+"/counts/error",schemaPath:"#/properties/counts/properties/error/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ot.properties.counts.properties.error,data:n};e===null?e=[p]:e.push(p),t++}}if(r.warning!==void 0){let n=r.warning;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){const p={instancePath:s+"/counts/warning",schemaPath:"#/properties/counts/properties/warning/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ot.properties.counts.properties.warning.type,parentSchema:Ot.properties.counts.properties.warning,data:n};e===null?e=[p]:e.push(p),t++}if(typeof n=="number"&&(n<0||isNaN(n))){const p={instancePath:s+"/counts/warning",schemaPath:"#/properties/counts/properties/warning/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ot.properties.counts.properties.warning,data:n};e===null?e=[p]:e.push(p),t++}}if(r.info!==void 0){let n=r.info;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){const p={instancePath:s+"/counts/info",schemaPath:"#/properties/counts/properties/info/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ot.properties.counts.properties.info.type,parentSchema:Ot.properties.counts.properties.info,data:n};e===null?e=[p]:e.push(p),t++}if(typeof n=="number"&&(n<0||isNaN(n))){const p={instancePath:s+"/counts/info",schemaPath:"#/properties/counts/properties/info/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ot.properties.counts.properties.info,data:n};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s+"/counts",schemaPath:"#/properties/counts/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ot.properties.counts.type,parentSchema:Ot.properties.counts,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ot.type,parentSchema:Ot,data:a};e===null?e=[r]:e.push(r),t++}return Pc.errors=e,t===0}Pc.evaluated={props:{valid:!0,findings:!0,counts:!0},dynamicProps:!1,dynamicItems:!1},$.branch207=vc;var Vn=j.finding.$defs.FindingCategory.anyOf[0];function vc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Vn.type,parentSchema:Vn,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="format"||a==="references"||a==="policy"||a==="accessibility"||a==="layout"||a==="content")){const r={instancePath:s,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Vn.enum},message:"must be equal to one of the allowed values",schema:Vn.enum,parentSchema:Vn,data:a};e===null?e=[r]:e.push(r),t++}return vc.errors=e,t===0}vc.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch208=bc;var eh=j.finding.$defs.FindingCategory.anyOf[1];function bc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=bc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(me(a)<1){const r={instancePath:s,schemaPath:"#/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:eh,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:eh.type,parentSchema:eh,data:a};e===null?e=[r]:e.push(r),t++}return bc.errors=e,t===0}bc.evaluated={dynamicProps:!1,dynamicItems:!1},$.branch209=Oc;var ya=j.finding.$defs.JsonPatchOperation.oneOf[0];function Oc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Oc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.op===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"op"},message:"must have required property 'op'",schema:ya.required,parentSchema:ya,data:a};e===null?e=[r]:e.push(r),t++}if(a.path===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:ya.required,parentSchema:ya,data:a};e===null?e=[r]:e.push(r),t++}if(a.value===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:ya.required,parentSchema:ya,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="op"||r==="path"||r==="value")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ya,data:a};e===null?e=[n]:e.push(n),t++}if(a.op!==void 0){let r=a.op;if(typeof r!="string"){const n={instancePath:s+"/op",schemaPath:"#/properties/op/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ya.properties.op.type,parentSchema:ya.properties.op,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="add"||r==="replace"||r==="test")){const n={instancePath:s+"/op",schemaPath:"#/properties/op/enum",keyword:"enum",params:{allowedValues:ya.properties.op.enum},message:"must be equal to one of the allowed values",schema:ya.properties.op.enum,parentSchema:ya.properties.op,data:r};e===null?e=[n]:e.push(n),t++}}if(a.path!==void 0){let r=a.path;if(typeof r!="string"){const n={instancePath:s+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ya.properties.path.type,parentSchema:ya.properties.path,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ya.type,parentSchema:ya,data:a};e===null?e=[r]:e.push(r),t++}return Oc.errors=e,t===0}Oc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch210=wc;var ja=j.finding.$defs.JsonPatchOperation.oneOf[1];function wc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=wc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.op===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"op"},message:"must have required property 'op'",schema:ja.required,parentSchema:ja,data:a};e===null?e=[r]:e.push(r),t++}if(a.path===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:ja.required,parentSchema:ja,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="op"||r==="path")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ja,data:a};e===null?e=[n]:e.push(n),t++}if(a.op!==void 0){let r=a.op;if(typeof r!="string"){const n={instancePath:s+"/op",schemaPath:"#/properties/op/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ja.properties.op.type,parentSchema:ja.properties.op,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="remove"){const n={instancePath:s+"/op",schemaPath:"#/properties/op/const",keyword:"const",params:{allowedValue:"remove"},message:"must be equal to constant",schema:"remove",parentSchema:ja.properties.op,data:r};e===null?e=[n]:e.push(n),t++}}if(a.path!==void 0){let r=a.path;if(typeof r!="string"){const n={instancePath:s+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ja.properties.path.type,parentSchema:ja.properties.path,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ja.type,parentSchema:ja,data:a};e===null?e=[r]:e.push(r),t++}return wc.errors=e,t===0}wc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},$.branch211=Sc;var na=j.finding.$defs.JsonPatchOperation.oneOf[2];function Sc(a,{instancePath:s="",parentData:x,parentDataProperty:N,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Sc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.op===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"op"},message:"must have required property 'op'",schema:na.required,parentSchema:na,data:a};e===null?e=[r]:e.push(r),t++}if(a.from===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"from"},message:"must have required property 'from'",schema:na.required,parentSchema:na,data:a};e===null?e=[r]:e.push(r),t++}if(a.path===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:na.required,parentSchema:na,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="op"||r==="from"||r==="path")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:na,data:a};e===null?e=[n]:e.push(n),t++}if(a.op!==void 0){let r=a.op;if(typeof r!="string"){const n={instancePath:s+"/op",schemaPath:"#/properties/op/type",keyword:"type",params:{type:"string"},message:"must be string",schema:na.properties.op.type,parentSchema:na.properties.op,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="move"||r==="copy")){const n={instancePath:s+"/op",schemaPath:"#/properties/op/enum",keyword:"enum",params:{allowedValues:na.properties.op.enum},message:"must be equal to one of the allowed values",schema:na.properties.op.enum,parentSchema:na.properties.op,data:r};e===null?e=[n]:e.push(n),t++}}if(a.from!==void 0){let r=a.from;if(typeof r!="string"){const n={instancePath:s+"/from",schemaPath:"#/properties/from/type",keyword:"type",params:{type:"string"},message:"must be string",schema:na.properties.from.type,parentSchema:na.properties.from,data:r};e===null?e=[n]:e.push(n),t++}}if(a.path!==void 0){let r=a.path;if(typeof r!="string"){const n={instancePath:s+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:na.properties.path.type,parentSchema:na.properties.path,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:na.type,parentSchema:na,data:a};e===null?e=[r]:e.push(r),t++}return Sc.errors=e,t===0}Sc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Sd={presentation:$.root0,audience:$.root1,purpose:$.root2,tone:$.root3,theme:$.root4,layout:$.root5,chartType:$.root6,narrative:$.root7,socialPlatform:$.root8,language:$.root9,colorScheme:$.root10,fontScheme:$.root11,finding:$.root12},kd={"presentation#/$defs/Variable":$.definition0,"presentation#/$defs/ColorVariable":$.definition1,"presentation#/$defs/TextVariable":$.definition2,"presentation#/$defs/NumberVariable":$.definition3,"presentation#/$defs/DateVariable":$.definition4,"presentation#/$defs/ImageVariable":$.definition5,"presentation#/$defs/UrlVariable":$.definition6,"presentation#/$defs/ListVariable":$.definition7,"presentation#/$defs/ChartData":$.definition8,"presentation#/$defs/DataColumn":$.definition9,"presentation#/$defs/DatasetRef":$.definition10,"presentation#/$defs/StyledTableCell":$.definition11},Ad=[{schema:"presentation",pointer:["properties","organization","oneOf",0],validate:$.branch0},{schema:"presentation",pointer:["properties","organization","oneOf",1],validate:$.branch1},{schema:"presentation",pointer:["properties","speaker","oneOf",0],validate:$.branch2},{schema:"presentation",pointer:["properties","speaker","oneOf",1],validate:$.branch3},{schema:"presentation",pointer:["properties","author","oneOf",0],validate:$.branch4},{schema:"presentation",pointer:["properties","author","oneOf",1],validate:$.branch5},{schema:"presentation",pointer:["properties","audience","oneOf",0],validate:$.branch6},{schema:"presentation",pointer:["properties","audience","oneOf",1],validate:$.branch7},{schema:"presentation",pointer:["properties","audience","oneOf",2],validate:$.branch8},{schema:"presentation",pointer:["properties","audience","oneOf",2,"items","oneOf",0],validate:$.branch9},{schema:"presentation",pointer:["properties","audience","oneOf",2,"items","oneOf",1],validate:$.branch10},{schema:"presentation",pointer:["properties","purpose","oneOf",0],validate:$.branch11},{schema:"presentation",pointer:["properties","purpose","oneOf",1],validate:$.branch12},{schema:"presentation",pointer:["properties","language","oneOf",0],validate:$.branch13},{schema:"presentation",pointer:["properties","language","oneOf",1],validate:$.branch14},{schema:"presentation",pointer:["properties","tone","oneOf",0],validate:$.branch15},{schema:"presentation",pointer:["properties","tone","oneOf",1],validate:$.branch16},{schema:"presentation",pointer:["properties","takeaway","oneOf",0],validate:$.branch17},{schema:"presentation",pointer:["properties","takeaway","oneOf",1],validate:$.branch18},{schema:"presentation",pointer:["$defs","Asset","oneOf",0],validate:$.branch19},{schema:"presentation",pointer:["$defs","Asset","oneOf",1],validate:$.branch20},{schema:"presentation",pointer:["$defs","Audience","anyOf",0],validate:$.branch21},{schema:"presentation",pointer:["$defs","Audience","anyOf",1],validate:$.branch22},{schema:"presentation",pointer:["$defs","Purpose","anyOf",0],validate:$.branch23},{schema:"presentation",pointer:["$defs","Purpose","anyOf",1],validate:$.branch24},{schema:"presentation",pointer:["$defs","Tone","anyOf",0],validate:$.branch25},{schema:"presentation",pointer:["$defs","Tone","anyOf",1],validate:$.branch26},{schema:"presentation",pointer:["$defs","Organization","properties","logo","oneOf",0],validate:$.branch27},{schema:"presentation",pointer:["$defs","Organization","properties","logo","oneOf",1],validate:$.branch28},{schema:"presentation",pointer:["$defs","Design","properties","colorScheme","oneOf",0],validate:$.branch29},{schema:"presentation",pointer:["$defs","Design","properties","colorScheme","oneOf",1],validate:$.branch30},{schema:"presentation",pointer:["$defs","Design","properties","fontScheme","oneOf",0],validate:$.branch31},{schema:"presentation",pointer:["$defs","Design","properties","fontScheme","oneOf",1],validate:$.branch32},{schema:"presentation",pointer:["$defs","Design","properties","dimensions","oneOf",0],validate:$.branch33},{schema:"presentation",pointer:["$defs","Design","properties","dimensions","oneOf",1],validate:$.branch34},{schema:"presentation",pointer:["$defs","Design","properties","background","oneOf",0],validate:$.branch35},{schema:"presentation",pointer:["$defs","Design","properties","background","oneOf",1],validate:$.branch36},{schema:"presentation",pointer:["$defs","Design","properties","variant","oneOf",0],validate:$.branch37},{schema:"presentation",pointer:["$defs","Design","properties","variant","oneOf",1],validate:$.branch38},{schema:"presentation",pointer:["$defs","Design","properties","logo","oneOf",0],validate:$.branch39},{schema:"presentation",pointer:["$defs","Design","properties","logo","oneOf",1],validate:$.branch40},{schema:"presentation",pointer:["$defs","Design","properties","watermark","oneOf",0],validate:$.branch41},{schema:"presentation",pointer:["$defs","Design","properties","watermark","oneOf",1],validate:$.branch42},{schema:"presentation",pointer:["$defs","Design","properties","watermark","oneOf",2],validate:$.branch43},{schema:"presentation",pointer:["$defs","Design","properties","header","oneOf",0],validate:$.branch44},{schema:"presentation",pointer:["$defs","Design","properties","header","oneOf",1],validate:$.branch45},{schema:"presentation",pointer:["$defs","Design","properties","footer","oneOf",0],validate:$.branch46},{schema:"presentation",pointer:["$defs","Design","properties","footer","oneOf",1],validate:$.branch47},{schema:"presentation",pointer:["$defs","ColorRef","anyOf",0],validate:$.branch48},{schema:"presentation",pointer:["$defs","ColorRef","anyOf",1],validate:$.branch49},{schema:"presentation",pointer:["$defs","ColorRef","anyOf",2],validate:$.branch50},{schema:"presentation",pointer:["$defs","Variable","oneOf",0],validate:$.branch51},{schema:"presentation",pointer:["$defs","Variable","oneOf",1],validate:$.branch52},{schema:"presentation",pointer:["$defs","Variable","oneOf",2],validate:$.branch53},{schema:"presentation",pointer:["$defs","Variable","oneOf",3],validate:$.branch54},{schema:"presentation",pointer:["$defs","Variable","oneOf",4],validate:$.branch55},{schema:"presentation",pointer:["$defs","Variable","oneOf",5],validate:$.branch56},{schema:"presentation",pointer:["$defs","Variable","oneOf",6],validate:$.branch57},{schema:"presentation",pointer:["$defs","Variable","oneOf",7],validate:$.branch58},{schema:"presentation",pointer:["$defs","TextVariable","properties","value","oneOf",0],validate:$.branch59},{schema:"presentation",pointer:["$defs","TextVariable","properties","value","oneOf",1],validate:$.branch60},{schema:"presentation",pointer:["$defs","TextVariable","properties","example","oneOf",0],validate:$.branch61},{schema:"presentation",pointer:["$defs","TextVariable","properties","example","oneOf",1],validate:$.branch62},{schema:"presentation",pointer:["$defs","BackgroundShortcut","oneOf",0],validate:$.branch63},{schema:"presentation",pointer:["$defs","BackgroundShortcut","oneOf",1],validate:$.branch64},{schema:"presentation",pointer:["$defs","BackgroundShortcut","oneOf",2],validate:$.branch65},{schema:"presentation",pointer:["$defs","Background","oneOf",0],validate:$.branch66},{schema:"presentation",pointer:["$defs","Background","oneOf",1],validate:$.branch67},{schema:"presentation",pointer:["$defs","Background","oneOf",2],validate:$.branch68},{schema:"presentation",pointer:["$defs","Background","oneOf",3],validate:$.branch69},{schema:"presentation",pointer:["$defs","Background","oneOf",4],validate:$.branch70},{schema:"presentation",pointer:["$defs","ImageRecolor","oneOf",0],validate:$.branch71},{schema:"presentation",pointer:["$defs","ImageRecolor","oneOf",1],validate:$.branch72},{schema:"presentation",pointer:["$defs","LogoSource","oneOf",0],validate:$.branch73},{schema:"presentation",pointer:["$defs","LogoSource","oneOf",1],validate:$.branch74},{schema:"presentation",pointer:["$defs","Watermark","oneOf",0],validate:$.branch75},{schema:"presentation",pointer:["$defs","Watermark","oneOf",1],validate:$.branch76},{schema:"presentation",pointer:["$defs","HeaderFooterItem","properties","date","oneOf",0],validate:$.branch77},{schema:"presentation",pointer:["$defs","HeaderFooterItem","properties","date","oneOf",1],validate:$.branch78},{schema:"presentation",pointer:["$defs","Slide","properties","beat","oneOf",0],validate:$.branch79},{schema:"presentation",pointer:["$defs","Slide","properties","beat","oneOf",1],validate:$.branch80},{schema:"presentation",pointer:["$defs","Slide","properties","title","oneOf",0],validate:$.branch81},{schema:"presentation",pointer:["$defs","Slide","properties","title","oneOf",1],validate:$.branch82},{schema:"presentation",pointer:["$defs","Slide","properties","subtitle","oneOf",0],validate:$.branch83},{schema:"presentation",pointer:["$defs","Slide","properties","subtitle","oneOf",1],validate:$.branch84},{schema:"presentation",pointer:["$defs","Slide","properties","tag","oneOf",0],validate:$.branch85},{schema:"presentation",pointer:["$defs","Slide","properties","tag","oneOf",1],validate:$.branch86},{schema:"presentation",pointer:["$defs","Slide","properties","text","oneOf",0],validate:$.branch87},{schema:"presentation",pointer:["$defs","Slide","properties","text","oneOf",1],validate:$.branch88},{schema:"presentation",pointer:["$defs","Slide","properties","code","oneOf",0],validate:$.branch89},{schema:"presentation",pointer:["$defs","Slide","properties","code","oneOf",1],validate:$.branch90},{schema:"presentation",pointer:["$defs","Slide","properties","metric","oneOf",0],validate:$.branch91},{schema:"presentation",pointer:["$defs","Slide","properties","metric","oneOf",1],validate:$.branch92},{schema:"presentation",pointer:["$defs","Slide","properties","metric","oneOf",2],validate:$.branch93},{schema:"presentation",pointer:["$defs","Slide","properties","quote","oneOf",0],validate:$.branch94},{schema:"presentation",pointer:["$defs","Slide","properties","quote","oneOf",1],validate:$.branch95},{schema:"presentation",pointer:["$defs","ContentPayload","properties","text","oneOf",0],validate:$.branch96},{schema:"presentation",pointer:["$defs","ContentPayload","properties","text","oneOf",1],validate:$.branch97},{schema:"presentation",pointer:["$defs","ContentPayload","properties","columns","oneOf",0],validate:$.branch98},{schema:"presentation",pointer:["$defs","ContentPayload","properties","columns","oneOf",1],validate:$.branch99},{schema:"presentation",pointer:["$defs","ContentPayload","properties","code","oneOf",0],validate:$.branch100},{schema:"presentation",pointer:["$defs","ContentPayload","properties","code","oneOf",1],validate:$.branch101},{schema:"presentation",pointer:["$defs","ContentPayload","properties","metric","oneOf",0],validate:$.branch102},{schema:"presentation",pointer:["$defs","ContentPayload","properties","metric","oneOf",1],validate:$.branch103},{schema:"presentation",pointer:["$defs","ContentPayload","properties","metric","oneOf",2],validate:$.branch104},{schema:"presentation",pointer:["$defs","ContentPayload","properties","quote","oneOf",0],validate:$.branch105},{schema:"presentation",pointer:["$defs","ContentPayload","properties","quote","oneOf",1],validate:$.branch106},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",11,"then","not","anyOf",0],validate:$.branch107},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",11,"then","not","anyOf",1],validate:$.branch108},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",11,"then","not","anyOf",2],validate:$.branch109},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",11,"then","not","anyOf",3],validate:$.branch110},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",11,"then","not","anyOf",4],validate:$.branch111},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",11,"then","not","anyOf",5],validate:$.branch112},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",11,"then","not","anyOf",6],validate:$.branch113},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",11,"then","not","anyOf",7],validate:$.branch114},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",11,"then","not","anyOf",8],validate:$.branch115},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",11,"then","not","anyOf",9],validate:$.branch116},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",11,"then","not","anyOf",10],validate:$.branch117},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",12,"then","anyOf",0],validate:$.branch118},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",12,"then","anyOf",1],validate:$.branch119},{schema:"presentation",pointer:["$defs","Quote","properties","text","oneOf",0],validate:$.branch120},{schema:"presentation",pointer:["$defs","Quote","properties","text","oneOf",1],validate:$.branch121},{schema:"presentation",pointer:["$defs","Code","properties","highlight","items","oneOf",0],validate:$.branch122},{schema:"presentation",pointer:["$defs","Code","properties","highlight","items","oneOf",1],validate:$.branch123},{schema:"presentation",pointer:["$defs","Metric","properties","value","oneOf",0],validate:$.branch124},{schema:"presentation",pointer:["$defs","Metric","properties","value","oneOf",1],validate:$.branch125},{schema:"presentation",pointer:["$defs","Metric","properties","delta","oneOf",0],validate:$.branch126},{schema:"presentation",pointer:["$defs","Metric","properties","delta","oneOf",1],validate:$.branch127},{schema:"presentation",pointer:["$defs","Timeline","oneOf",0],validate:$.branch128},{schema:"presentation",pointer:["$defs","Timeline","oneOf",1],validate:$.branch129},{schema:"presentation",pointer:["$defs","ListItem","oneOf",0],validate:$.branch130},{schema:"presentation",pointer:["$defs","ListItem","oneOf",1],validate:$.branch131},{schema:"presentation",pointer:["$defs","ListItem","oneOf",2],validate:$.branch132},{schema:"presentation",pointer:["$defs","ListItem","oneOf",2,"properties","text","oneOf",0],validate:$.branch133},{schema:"presentation",pointer:["$defs","ListItem","oneOf",2,"properties","text","oneOf",1],validate:$.branch134},{schema:"presentation",pointer:["$defs","ListItem","oneOf",2,"properties","description","oneOf",0],validate:$.branch135},{schema:"presentation",pointer:["$defs","ListItem","oneOf",2,"properties","description","oneOf",1],validate:$.branch136},{schema:"presentation",pointer:["$defs","BulletItem","oneOf",0],validate:$.branch137},{schema:"presentation",pointer:["$defs","BulletItem","oneOf",1],validate:$.branch138},{schema:"presentation",pointer:["$defs","BulletItem","oneOf",2],validate:$.branch139},{schema:"presentation",pointer:["$defs","BulletItem","oneOf",2,"properties","text","oneOf",0],validate:$.branch140},{schema:"presentation",pointer:["$defs","BulletItem","oneOf",2,"properties","text","oneOf",1],validate:$.branch141},{schema:"presentation",pointer:["$defs","NumberingSpec","oneOf",0],validate:$.branch142},{schema:"presentation",pointer:["$defs","NumberingSpec","oneOf",1],validate:$.branch143},{schema:"presentation",pointer:["$defs","NumberingSpec","oneOf",2],validate:$.branch144},{schema:"presentation",pointer:["$defs","NumberingSpec","oneOf",2,"items","oneOf",0],validate:$.branch145},{schema:"presentation",pointer:["$defs","NumberingSpec","oneOf",2,"items","oneOf",1],validate:$.branch146},{schema:"presentation",pointer:["$defs","TextRun","oneOf",0],validate:$.branch147},{schema:"presentation",pointer:["$defs","TextRun","oneOf",1],validate:$.branch148},{schema:"presentation",pointer:["$defs","TextRun","oneOf",1,"properties","cite","oneOf",0],validate:$.branch149},{schema:"presentation",pointer:["$defs","TextRun","oneOf",1,"properties","cite","oneOf",1],validate:$.branch150},{schema:"presentation",pointer:["$defs","TextRun","oneOf",1,"properties","footnote","oneOf",0],validate:$.branch151},{schema:"presentation",pointer:["$defs","TextRun","oneOf",1,"properties","footnote","oneOf",1],validate:$.branch152},{schema:"presentation",pointer:["$defs","Caption","oneOf",0],validate:$.branch153},{schema:"presentation",pointer:["$defs","Caption","oneOf",1],validate:$.branch154},{schema:"presentation",pointer:["$defs","Caption","oneOf",2],validate:$.branch155},{schema:"presentation",pointer:["$defs","Caption","oneOf",2,"properties","text","oneOf",0],validate:$.branch156},{schema:"presentation",pointer:["$defs","Caption","oneOf",2,"properties","text","oneOf",1],validate:$.branch157},{schema:"presentation",pointer:["$defs","Reference","properties","text","oneOf",0],validate:$.branch158},{schema:"presentation",pointer:["$defs","Reference","properties","text","oneOf",1],validate:$.branch159},{schema:"presentation",pointer:["$defs","Chart","properties","data","oneOf",0],validate:$.branch160},{schema:"presentation",pointer:["$defs","Chart","properties","data","oneOf",1],validate:$.branch161},{schema:"presentation",pointer:["$defs","Chart","properties","dataLabels","oneOf",0],validate:$.branch162},{schema:"presentation",pointer:["$defs","Chart","properties","dataLabels","oneOf",1],validate:$.branch163},{schema:"presentation",pointer:["$defs","Table","properties","columns","items","oneOf",0],validate:$.branch164},{schema:"presentation",pointer:["$defs","Table","properties","columns","items","oneOf",1],validate:$.branch165},{schema:"presentation",pointer:["$defs","Table","properties","columns","items","oneOf",2],validate:$.branch166},{schema:"presentation",pointer:["$defs","Table","properties","columns","items","oneOf",3],validate:$.branch167},{schema:"presentation",pointer:["$defs","Table","properties","columns","items","oneOf",4],validate:$.branch168},{schema:"presentation",pointer:["$defs","ChartData","properties","columns","items","oneOf",0],validate:$.branch169},{schema:"presentation",pointer:["$defs","ChartData","properties","columns","items","oneOf",1],validate:$.branch170},{schema:"presentation",pointer:["$defs","DataSourceRef","properties","retrieved","anyOf",0],validate:$.branch171},{schema:"presentation",pointer:["$defs","DataSourceRef","properties","retrieved","anyOf",1],validate:$.branch172},{schema:"presentation",pointer:["$defs","Dataset","properties","columns","items","oneOf",0],validate:$.branch173},{schema:"presentation",pointer:["$defs","Dataset","properties","columns","items","oneOf",1],validate:$.branch174},{schema:"presentation",pointer:["$defs","ChartDataCell","oneOf",0],validate:$.branch175},{schema:"presentation",pointer:["$defs","ChartDataCell","oneOf",1],validate:$.branch176},{schema:"presentation",pointer:["$defs","ChartDataCell","oneOf",2],validate:$.branch177},{schema:"presentation",pointer:["$defs","ChartDataCell","oneOf",3],validate:$.branch178},{schema:"presentation",pointer:["$defs","TableCell","oneOf",0],validate:$.branch179},{schema:"presentation",pointer:["$defs","TableCell","oneOf",1],validate:$.branch180},{schema:"presentation",pointer:["$defs","TableCellValue","oneOf",0],validate:$.branch181},{schema:"presentation",pointer:["$defs","TableCellValue","oneOf",1],validate:$.branch182},{schema:"presentation",pointer:["$defs","TableCellValue","oneOf",2],validate:$.branch183},{schema:"presentation",pointer:["$defs","TableCellValue","oneOf",3],validate:$.branch184},{schema:"presentation",pointer:["$defs","TableCellValue","oneOf",4],validate:$.branch185},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0],validate:$.branch186},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",1],validate:$.branch187},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",0],validate:$.branch188},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",1],validate:$.branch189},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",2],validate:$.branch190},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",3],validate:$.branch191},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",4],validate:$.branch192},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",5],validate:$.branch193},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",6],validate:$.branch194},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",7],validate:$.branch195},{schema:"presentation",pointer:["$defs","CatalogRecords","additionalProperties","not","anyOf",0],validate:$.branch196},{schema:"presentation",pointer:["$defs","CatalogRecords","additionalProperties","not","anyOf",1],validate:$.branch197},{schema:"theme",pointer:["$defs","ThemeVariant","properties","variant","oneOf",0],validate:$.branch198},{schema:"theme",pointer:["$defs","ThemeVariant","properties","variant","oneOf",1],validate:$.branch199},{schema:"layout",pointer:["$defs","RegionEntry","oneOf",0],validate:$.branch200},{schema:"layout",pointer:["$defs","RegionEntry","oneOf",1],validate:$.branch201},{schema:"layout",pointer:["$defs","RegionEntry","oneOf",2],validate:$.branch202},{schema:"layout",pointer:["$defs","RegionSize","oneOf",0],validate:$.branch203},{schema:"layout",pointer:["$defs","RegionSize","oneOf",1],validate:$.branch204},{schema:"layout",pointer:["$defs","Region","properties","listColumns","oneOf",0],validate:$.branch205},{schema:"layout",pointer:["$defs","Region","properties","listColumns","oneOf",1],validate:$.branch206},{schema:"finding",pointer:["$defs","FindingCategory","anyOf",0],validate:$.branch207},{schema:"finding",pointer:["$defs","FindingCategory","anyOf",1],validate:$.branch208},{schema:"finding",pointer:["$defs","JsonPatchOperation","oneOf",0],validate:$.branch209},{schema:"finding",pointer:["$defs","JsonPatchOperation","oneOf",1],validate:$.branch210},{schema:"finding",pointer:["$defs","JsonPatchOperation","oneOf",2],validate:$.branch211}],Dd="opf-precompiled-validators",th;function $d(){if(th)return th;const a=new WeakMap;for(const{schema:s,pointer:x,validate:N}of Ad){let v=j[s];for(const b of x)v=v?.[b];v&&typeof v=="object"&&a.set(v,N)}return th=a,a}var qd={root:a=>Sd[a],definition:(a,s)=>kd[`${a}#/$defs/${s}`],branch:a=>$d().get(a)},xd=()=>qd;export{Dd as precompiledMarker,xd as schemaEngine};
|