@hyperjump/json-schema 0.18.3 → 0.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- define(["exports"],(function(e){"use strict";var n=function(e,n){return function t(){null==n&&(n=e.length);var r=[].slice.call(arguments);return r.length>=n?e.apply(this,r):function(){return t.apply(this,r.concat([].slice.call(arguments)))}}};var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var r=function(e,n){return e(n={exports:{}},n.exports),n.exports}((function(e,n){var r,a;r="object"==typeof window&&window||t,a={},r.PubSub?(a=r.PubSub,console.warn("PubSub already loaded, using existing version")):(r.PubSub=a,function(e){var n={},t=-1;function r(e,n,t){try{e(n,t)}catch(e){setTimeout(function(e){return function(){throw e}}(e),0)}}function a(e,n,t){e(n,t)}function i(e,t,i,o){var s,c=n[t],m=o?a:r;if(Object.prototype.hasOwnProperty.call(n,t))for(s in c)Object.prototype.hasOwnProperty.call(c,s)&&m(c[s],e,i)}function o(e){var t=String(e);return Boolean(Object.prototype.hasOwnProperty.call(n,t)&&function(e){var n;for(n in e)if(Object.prototype.hasOwnProperty.call(e,n))return!0;return!1}(n[t]))}function s(e,n,t,r){var a=function(e,n,t){return function(){var r=String(e),a=r.lastIndexOf(".");for(i(e,e,n,t);-1!==a;)a=(r=r.substr(0,a)).lastIndexOf("."),i(e,r,n,t);i(e,"*",n,t)}}(e="symbol"==typeof e?e.toString():e,n,r);return!!function(e){for(var n=String(e),t=o(n)||o("*"),r=n.lastIndexOf(".");!t&&-1!==r;)r=(n=n.substr(0,r)).lastIndexOf("."),t=o(n);return t}(e)&&(!0===t?a():setTimeout(a,0),!0)}e.publish=function(n,t){return s(n,t,!1,e.immediateExceptions)},e.publishSync=function(n,t){return s(n,t,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!=typeof r)return!1;e="symbol"==typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(n,e)||(n[e]={});var a="uid_"+String(++t);return n[e][a]=r,a},e.subscribeAll=function(n){return e.subscribe("*",n)},e.subscribeOnce=function(n,t){var r=e.subscribe(n,(function(){e.unsubscribe(r),t.apply(this,arguments)}));return e},e.clearAllSubscriptions=function(){n={}},e.clearSubscriptions=function(e){var t;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)&&delete n[t]},e.countSubscriptions=function(e){var t,r,a=0;for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)){for(r in n[t])a++;break}return a},e.getSubscriptions=function(e){var t,r=[];for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)&&r.push(t);return r},e.unsubscribe=function(t){var r,a,i,o="string"==typeof t&&(Object.prototype.hasOwnProperty.call(n,t)||function(e){var t;for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e))return!0;return!1}(t)),s=!o&&"string"==typeof t,c="function"==typeof t,m=!1;if(!o){for(r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(a=n[r],s&&a[t]){delete a[t],m=t;break}if(c)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&a[i]===t&&(delete a[i],m=!0)}return m}e.clearSubscriptions(t)}}(a)),void 0!==e&&e.exports&&(n=e.exports=a),n.PubSub=a,e.exports=n=a}));r.PubSub;var a=function(e,n){if(e=e.trim(),(n=n.trim()).startsWith("about:"))return n;const t=function(e){const n={host:"",path:"",query:"",protocol:""};let t=e,r=e.indexOf("//");n.protocol=t.substring(0,r),r+=2;const a=e.indexOf("/",r),i=e.indexOf("?"),o=e.indexOf("#");-1!==o&&(t=t.substring(0,o));if(-1!==i){const e=t.substring(i);n.query=e,t=t.substring(0,i)}if(-1!==a){const e=t.substring(0,a);n.host=e,t=t.substring(a),n.path=t}else n.host=t;return n}(e),r=function(e){const n={href:e,hash:"",query:"",netPath:!1,absolutePath:!1,relativePath:!1};if(s.test(e))return n.netPath=!0,n;"/"===e[0]?n.absolutePath=!0:""!==e&&(n.relativePath=!0);let t=e;const r=e.indexOf("?"),a=e.indexOf("#");if(-1!==a){const e=t.substring(a);n.hash=e,t=t.substring(0,a)}if(-1!==r){const e=t.substring(r);n.query=e,t=t.substring(0,r)}return n.path=t,n}(n);if(!t.protocol&&!r.netPath)throw new Error("Error, protocol is not specified");if(r.netPath)return r.href.startsWith("//")&&(r.href=t.protocol+r.href),function(e){const n=e.indexOf("//")+2,t=!e.includes("/",n),r=!e.includes("?",n),a=!e.includes("#",n);return t&&r&&a}(r.href)?i(r.href):r.href;if(r.absolutePath){const{path:e,query:n,hash:a}=r;return t.host+o(e)+n+a}if(r.relativePath){const{path:e,query:n,hash:a}=r;let i,s=t.path,c=t.host;return 0===e.length?i=s:(s=s.substring(0,s.lastIndexOf("/")),i=o(s+"/"+e)),c+=""!==i||n||a?i+n+a:"/",c}{const{host:e,path:n,query:a}=t;return n||a?e+n+a+r.hash:i(e)}};function i(e){return e+("/"===e[e.length-1]?"":"/")}function o(e){let n=e.split("/");""===n[0]&&(n=n.slice(1));let t=[];return n.forEach((e,r)=>{"."!==e&&(".."===e?t.pop():""===e&&r!==n.length-1||t.push(e))}),"/"+t.join("/")}const s=new RegExp("^([a-z][a-z0-9+.-]*:)?//","i");const c={null:e=>null===e,boolean:e=>"boolean"==typeof e,object:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,array:e=>Array.isArray(e),number:e=>"number"==typeof e,integer:e=>Number.isInteger(e),string:e=>"string"==typeof e},m=e=>{const n=e.indexOf("#"),t=-1===n?e.length:n,r=e.slice(0,t),a=e.slice(t+1);return[decodeURI(r),decodeURI(a)]},l=e=>{const n=RegExp(/^(.+):\/\//).exec(e);return n?n[1]:""};var p={jsonTypeOf:(e,n)=>c[n](e),splitUrl:m,safeResolveUrl:(e,n)=>{const t=a(e,n),r=m(e)[0];if(r&&"file"===l(t)&&"file"!==l(r))throw Error(`Can't access file '${t}' resource from network context '${e}'`);return t},pathRelative:(e,n)=>{if(e===n)return"";let t=1;const r=e.length-1,a=n.length-t,i=r<a?r:a;let o=-1,s=0;for(;s<i;s++){const r=e.charCodeAt(s+1);if(r!==n.charCodeAt(t+s))break;47===r&&(o=s)}if(a>i){if(47===n.charCodeAt(t+s))return n.slice(t+s+1);if(0===s)return n.slice(t+s)}r>i&&(47===e.charCodeAt(s+1)?o=s:0===i&&(o=0));let c="";for(s=o+2;s<=e.length;++s)s!==e.length&&47!==e.charCodeAt(s)||(c+=0===c.length?"..":"/..");return t+=o,c.length>0?`${c}${n.slice(t,n.length)}`:(47===n.charCodeAt(t)&&++t,n.slice(t,n.length))}};const u=e=>{if(e.length>0&&"/"!==e[0])throw Error("Invalid JSON Pointer");return e.split("/").slice(1).map(b)},d=(e,n,t,r)=>{if(0===e.length)return t;if(e.length>1){const a=e.shift();return{...n,[a]:d(e,O(n,a,r),t,v(a,r))}}if(Array.isArray(n)){const r=[...n];return r[$(n,e[0])]=t,r}return"object"==typeof n&&null!==n?{...n,[e[0]]:t}:O(n,e[0],r)},f=(e,n,t,r)=>{if(0!==e.length)if(1!==e.length||I(n)){const a=e.shift();f(e,O(n,a,r),t,v(a,r))}else{n[$(n,e[0])]=t}},y=(e,n,t)=>{if(0!=e.length){if(e.length>1){const r=e.shift(),a=O(n,r,t);return{...n,[r]:y(e,a,v(r,t))}}if(Array.isArray(n))return n.filter((n,t)=>t!=e[0]);if("object"==typeof n&&null!==n){const{[e[0]]:t,...r}=n;return r}return O(n,e[0],t)}},h=(e,n,t)=>{if(0!==e.length)if(e.length>1){const r=e.shift(),a=O(n,r,t);h(e,a,v(r,t))}else Array.isArray(n)?n.splice(e[0],1):"object"==typeof n&&null!==n?delete n[e[0]]:O(n,e[0],t)},v=n((e,n)=>n+"/"+g(e)),g=e=>e.toString().replace(/~/g,"~0").replace(/\//g,"~1"),b=e=>e.toString().replace(/~1/g,"/").replace(/~0/g,"~"),$=(e,n)=>Array.isArray(e)&&"-"===n?e.length:n,O=(e,n,t="")=>{if(void 0===e)throw TypeError(`Value at '${t}' is undefined and does not have property '${n}'`);if(null===e)throw TypeError(`Value at '${t}' is null and does not have property '${n}'`);if(I(e))throw TypeError(`Value at '${t}' is a ${typeof e} and does not have property '${n}'`);return e[$(e,n)]},I=e=>null===e||"object"!=typeof e;var S={nil:"",append:v,get:(e,n)=>{const t=u(e),r=e=>t.reduce(([e,n],t)=>[O(e,t,n),v(t,n)],[e,""])[0];return void 0===n?r:r(n)},set:(e,t,r)=>{const a=u(e),i=n((e,n)=>d(a,e,n,""));return void 0===t?i:i(t,r)},assign:(e,t,r)=>{const a=u(e),i=n((e,n)=>f(a,e,n,""));return void 0===t?i:i(t,r)},unset:(e,n)=>{const t=u(e),r=e=>y(t,e,"");return void 0===n?r:r(n)},remove:(e,n)=>{const t=u(e),r=e=>h(t,e,"");return void 0===n?r:r(n)}};S.nil,S.append,S.get,S.set,S.assign,S.unset,S.remove;const j=Symbol("$__value"),x=Symbol("$__href");var w={cons:(e,n)=>Object.freeze({[x]:e,[j]:n}),isReference:e=>e&&void 0!==e[x],href:e=>e[x],value:e=>e[j]};const{jsonTypeOf:P}=p,E=Object.freeze({id:"",pointer:"",instance:void 0,value:void 0}),A=e=>w.isReference(e.value)?w.value(e.value):e.value,C=n((e,n)=>P(A(e),n)),N=(e,n)=>Object.freeze({...n,pointer:S.append(e,n.pointer),value:A(n)[e]}),R=n((e,n)=>A(n).map((t,r,a,i)=>e(N(r,n),r,a,i))),T=n((e,n)=>A(n).map((e,t,r,a)=>N(t,n)).filter((n,t,r,a)=>e(n,t,r,a))),D=n((e,n,t)=>A(t).reduce((n,r,a)=>e(n,N(a,t),a),n)),k=n((e,n)=>A(n).every((t,r,a,i)=>e(N(r,n),r,a,i))),M=n((e,n)=>A(n).some((t,r,a,i)=>e(N(r,n),r,a,i)));var q={nil:E,cons:(e,n="")=>Object.freeze({...E,id:n,instance:e,value:e}),uri:e=>`${e.id}#${encodeURI(e.pointer)}`,value:A,has:(e,n)=>e in A(n),typeOf:C,step:N,entries:e=>Object.keys(A(e)).map(n=>[n,N(n,e)]),keys:e=>Object.keys(A(e)),map:R,filter:T,reduce:D,every:k,some:M,length:e=>A(e).length},V=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,L=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,J=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,_=/\\([\u000b\u0020-\u00ff])/g,U=/([\\"])/g,z=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function F(e){var n=String(e);if(J.test(n))return n;if(n.length>0&&!L.test(n))throw new TypeError("invalid parameter value");return'"'+n.replace(U,"\\$1")+'"'}function K(e){this.parameters=Object.create(null),this.type=e}var B={format:function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var n=e.parameters,t=e.type;if(!t||!z.test(t))throw new TypeError("invalid type");var r=t;if(n&&"object"==typeof n)for(var a,i=Object.keys(n).sort(),o=0;o<i.length;o++){if(a=i[o],!J.test(a))throw new TypeError("invalid parameter name");r+="; "+a+"="+F(n[a])}return r},parse:function(e){if(!e)throw new TypeError("argument string is required");var n="object"==typeof e?function(e){var n;"function"==typeof e.getHeader?n=e.getHeader("content-type"):"object"==typeof e.headers&&(n=e.headers&&e.headers["content-type"]);if("string"!=typeof n)throw new TypeError("content-type header is missing from object");return n}(e):e;if("string"!=typeof n)throw new TypeError("argument string is required to be a string");var t=n.indexOf(";"),r=-1!==t?n.substr(0,t).trim():n.trim();if(!z.test(r))throw new TypeError("invalid media type");var a=new K(r.toLowerCase());if(-1!==t){var i,o,s;for(V.lastIndex=t;o=V.exec(n);){if(o.index!==t)throw new TypeError("invalid parameter format");t+=o[0].length,i=o[1].toLowerCase(),'"'===(s=o[2])[0]&&(s=s.substr(1,s.length-2).replace(_,"$1")),a.parameters[i]=s}if(t!==n.length)throw new TypeError("invalid parameter format")}return a}},Z=async e=>Object.entries(await e),G=n(async(e,n)=>(await n).map(e)),W=n(async(e,n,t)=>(await t).reduce(async(n,t)=>e(await n,t),n)),X=n(async(e,n,t={})=>W(async(n,t)=>await e(t)?n.concat([t]):n,[],n,t)),H=n(async(e,n)=>{const t=await G(e,n);return(await Promise.all(t)).some(e=>e)}),Q=n(async(e,n)=>{const t=await G(e,n);return(await Promise.all(t)).every(e=>e)}),Y=n((e,n)=>e.reduce(async(e,n)=>n(await e),n)),ee={entries:Z,map:G,filter:X,reduce:W,some:H,every:Q,pipeline:Y,all:e=>Promise.all(e),allValues:e=>Y([Z,W(async(e,[n,t])=>(e[n]=await t,e),{})],e)};ee.entries,ee.map,ee.filter,ee.reduce,ee.some,ee.every,ee.pipeline,ee.all,ee.allValues;var ne=fetch;const{jsonTypeOf:te,splitUrl:re,safeResolveUrl:ae,pathRelative:ie}=p,oe={},se={},ce=(e,n)=>{const t=e in se?se[e]:e;if(t in oe)return oe[t][n]},me={},le={},pe=(e,n="",t="")=>{e=JSON.parse(JSON.stringify(e));const r=re(e.$schema||t)[0];if(!r)throw Error("Couldn't determine schema version");delete e.$schema;const a=ce(r,"baseToken"),i=ce(r,"anchorToken"),o=re(n)[0];if(!o&&!re(e[a]||"")[0])throw Error("Couldn't determine an identifier for the schema");const s=ae(o,e[a]||""),[c,m]=re(s);delete e[a],m&&a===i&&(e[i]=i!==a?encodeURI(m):"#"+encodeURI(m)),o&&(le[o]=c);const l={},p=ce(r,"recursiveAnchorToken");let u;!0===e[p]&&(l[""]=c+"#",e[i]="",delete e[p]);const d=ce(r,"vocabularyToken");te(e[d],"object")?(se[c]=r,u=e[d],delete e[d]):(se[c]=r,u={[r]:!0});const f={"":""};return me[c]={id:c,schemaVersion:r,schema:ue(e,c,r,S.nil,f,l),anchors:f,dynamicAnchors:l,vocabulary:u,validated:!1},c},ue=(e,n,t,r,a,i)=>{if(te(e,"object")){const o="string"==typeof e.$schema?re(e.$schema)[0]:t,s=ce(o,"embeddedToken"),c=ce(o,"anchorToken");if("string"==typeof e[s]&&(s!==c||"#"!==e[s][0])){const r=ae(n,e[s]);return e[s]=r,pe(e,r,t),w.cons(e[s],e)}const m=ce(t,"anchorToken"),l=ce(t,"dynamicAnchorToken");"string"==typeof e[l]&&(i[e[l]]=`${n}#${encodeURI(r)}`,a[e[l]]=r,delete e[l]);const p=ce(t,"embeddedToken");if("string"==typeof e[m]){const n=m!==p?e[m]:e[m].slice(1);a[n]=r,delete e[m]}const u=ce(t,"jrefToken");if("string"==typeof e[u])return w.cons(e[u],e);for(const o in e)e[o]=ue(e[o],n,t,S.append(o,r),a,i);return e}return Array.isArray(e)?e.map((e,o)=>ue(e,n,t,S.append(o,r),a,i)):e},de=e=>me[le[e]]||me[e],fe=Object.freeze({id:"",schemaVersion:void 0,vocabulary:{},pointer:S.nil,schema:void 0,value:void 0,anchors:{},dynamicAnchors:{},validated:!0}),ye=async(e,n=fe)=>{const t=ae(ge(n),e),[r,a]=re(t);if(!(e=>e in me||e in le)(r)){const e=await ne(r,{headers:{Accept:"application/schema+json"}});if(e.status>=400)throw await e.text(),Error("Failed to retrieve schema with id: "+r);if(e.headers.has("content-type")){const n=B.parse(e.headers.get("content-type")).type;if("application/schema+json"!==n)throw Error(`${r} is not a schema. Found a document with media type: ${n}`)}pe(await e.json(),r)}const i=de(r),o="/"!==a[0]?ve(i,a):a,s=Object.freeze({...i,pointer:o,value:S.get(o,i.schema)});return he(s)},he=e=>w.isReference(e.value)?ye(w.href(e.value),e):e,ve=(e,n)=>{if(!(n in e.anchors))throw Error(`No such anchor '${encodeURI(e.id)}#${encodeURI(n)}'`);return e.anchors[n]},ge=e=>`${e.id}#${encodeURI(e.pointer)}`,be=e=>w.isReference(e.value)?w.value(e.value):e.value,$e=(e,n)=>{const t=de(n.id),r=Object.freeze({...n,pointer:S.append(e,n.pointer),value:be(n)[e],validated:t.validated});return he(r)},Oe=n((e,n)=>ee.pipeline([be,ee.map(async(t,r)=>e(await $e(r,n),r)),ee.all],n)),Ie={parentId:"",parentDialect:"",includeEmbedded:!0},Se=(e,n)=>{if(n.startsWith("file://")){const t=e.slice(7,e.lastIndexOf("/"));return""===e?"":ie(t,n.slice(7))}return n};var je={setConfig:(e,n,t)=>{oe[e]||(oe[e]={}),oe[e][n]=t},getConfig:ce,add:pe,get:ye,markValidated:e=>{me[e].validated=!0},uri:ge,value:be,getAnchorPointer:ve,typeOf:(e,n)=>te(be(e),n),has:(e,n)=>e in be(n),step:$e,keys:e=>Object.keys(be(e)),entries:e=>ee.pipeline([be,Object.keys,ee.map(async n=>[n,await $e(n,e)]),ee.all],e),map:Oe,length:e=>be(e).length,toSchema:(e,n={})=>{const t={...Ie,...n},r=JSON.parse(JSON.stringify(e.schema,(n,r)=>{if(!w.isReference(r))return r;const a=w.value(r),i=a.$schema||e.schemaVersion,o=ce(i,"embeddedToken");return!t.includeEmbedded&&o in a?void 0:w.value(r)})),a=ce(e.schemaVersion,"dynamicAnchorToken");Object.entries(e.dynamicAnchors).forEach(([e,n])=>{const t=re(n)[1];S.assign(t,r,{[a]:e,...S.get(t,r)})});const i=ce(e.schemaVersion,"anchorToken");Object.entries(e.anchors).filter(([e])=>""!==e).forEach(([e,n])=>{S.assign(n,r,{[i]:e,...S.get(n,r)})});const o=ce(e.schemaVersion,"baseToken"),s=Se(t.parentId,e.id),c=t.parentDialect===e.schemaVersion?"":e.schemaVersion;return{...s&&{[o]:s},...c&&{$schema:c},...r}}};je.setConfig,je.getConfig,je.add,je.get,je.markValidated,je.uri,je.value,je.getAnchorPointer,je.typeOf,je.has,je.step,je.keys,je.entries,je.map,je.length,je.toSchema;class xe extends Error{constructor(e){super("Invalid Schema"),this.name=this.constructor.name,this.output=e}}var we=xe;const{splitUrl:Pe}=p,Ee="FLAG",Ae="BASIC",Ce="DETAILED",Ne="VERBOSE";let Re=Ce,Te=!0;const De=async e=>{const n={metaData:{}};return{ast:n,schemaUri:await Ue(e,n)}},ke=n(({ast:e,schemaUri:n},t,a=Ee)=>{if(![Ee,Ae,Ce,Ne].includes(a))throw Error(`The '${a}' error format is not supported`);const i=[],o=r.subscribe("result",Me(a,i));return Fe(n,t,e,{}),r.unsubscribe(o),i[0]}),Me=(e,n)=>{const t=[];return(r,a)=>{if("result"===r){const{keyword:e,absoluteKeywordLocation:n,instanceLocation:r,valid:i}=a,o={keyword:e,absoluteKeywordLocation:n,instanceLocation:r,valid:i,errors:[]};t.push(o)}else if("result.start"===r)t.push(r);else if("result.end"===r){const r=t.pop();for(;"result.start"!==t[t.length-1];){const n=t.pop(),a=[n];e===Ae&&(a.push(...n.errors),delete n.errors),(e===Ne||e!==Ee&&!n.valid)&&r.errors.unshift(...a)}t[t.length-1]=r,n[0]=r}}},qe={},Ve=e=>qe[e],Le=e=>e in qe,Je={},_e={},Ue=async(e,n)=>{if(e=await ze(e),!Le(e.schemaVersion+"#validate")){const n=await je.get(e.schemaVersion);(je.getConfig(n.id,"mandatoryVocabularies")||[]).forEach(e=>{if(!n.vocabulary[e])throw Error(`Vocabulary '${e}' must be explicitly declared and required`)}),Object.entries(n.vocabulary).forEach(([e,t])=>{if(e in Je)Object.entries(Je[e]).forEach(([e,t])=>{((e,n)=>{qe[e]={collectEvaluatedItems:(e,t,r,a,i)=>n.interpret(e,t,r,a,i)&&new Set,collectEvaluatedProperties:(e,t,r,a,i)=>n.interpret(e,t,r,a,i)&&[],...n}})(`${n.id}#${e}`,t)});else if(t)throw Error("Missing required vocabulary: "+e)})}if(Te&&!e.validated){if(je.markValidated(e.id),!(e.schemaVersion in _e)){const n=await je.get(e.schemaVersion),t=await De(n);_e[n.id]=ke(t)}const n=q.cons(e.schema,e.id),t=_e[e.schemaVersion](n,Re);if(!t.valid)throw new we(t)}return e.id in n.metaData||(n.metaData[e.id]={id:e.id,dynamicAnchors:e.dynamicAnchors,anchors:e.anchors}),Ve(e.schemaVersion+"#validate").compile(e,n)},ze=async e=>je.typeOf(e,"string")?ze(await je.get(je.value(e),e)):e,Fe=(e,n,t,r)=>{const a=Ke(e,t),i=Pe(e)[0];return Ve(a).interpret(e,n,t,{...t.metaData[i].dynamicAnchors,...r})},Ke=(e,n)=>{if(!(e in n))throw Error("No schema found at "+e);return n[e][0]};var Be={validate:async(e,n,t)=>{const r=await De(e),a=(e,n)=>ke(r,q.cons(e),n);return void 0===n?a:a(n,t)},compile:De,interpret:ke,setMetaOutputFormat:e=>{Re=e},setShouldMetaValidate:e=>{Te=e},FLAG:Ee,BASIC:Ae,DETAILED:Ce,VERBOSE:Ne,add:(e,n="",t="")=>{const r=je.add(e,n,t);delete _e[r]},getKeyword:Ve,hasKeyword:Le,defineVocabulary:(e,n)=>{Je[e]=n},compileSchema:Ue,interpretSchema:Fe,collectEvaluatedProperties:(e,n,t,r,a)=>{const i=Ke(e,t);return Ve(i).collectEvaluatedProperties(e,n,t,r,a)},collectEvaluatedItems:(e,n,t,r,a)=>{const i=Ke(e,t);return Ve(i).collectEvaluatedItems(e,n,t,r,a)}};var Ze={compile:e=>je.value(e),interpret:()=>!0};var Ge={compile:async(e,n)=>{const t=je.uri(e);if(!(t in n)){n[t]=!1;const r=je.value(e);if(!["object","boolean"].includes(typeof r))throw Error(`No schema found at '${je.uri(e)}'`);n[t]=[e.schemaVersion+"#validate",je.uri(e),"boolean"==typeof r?r:await ee.pipeline([je.entries,ee.map(([n,t])=>[`${e.schemaVersion}#${n}`,t]),ee.filter(([n])=>Be.hasKeyword(n)&&n!==e.schemaVersion+"#validate"),ee.map(async([t,r])=>{const a=await Be.getKeyword(t).compile(r,n,e);return[t,je.uri(r),a]}),ee.all],e)]}return t},interpret:(e,n,t,a)=>{const[i,o,s]=t[e];r.publishSync("result.start");const c="boolean"==typeof s?s:s.every(([e,i,o])=>{r.publishSync("result.start");const s=Be.getKeyword(e).interpret(o,n,t,a);return r.publishSync("result",{keyword:e,absoluteKeywordLocation:i,instanceLocation:q.uri(n),valid:s,ast:o}),r.publishSync("result.end"),s});return r.publishSync("result",{keyword:i,absoluteKeywordLocation:o,instanceLocation:q.uri(n),valid:c,ast:e}),r.publishSync("result.end"),c},collectEvaluatedProperties:(e,n,t,r,a=!1)=>{const i=t[e][2];return"boolean"==typeof i?!!i&&[]:i.filter(([e])=>!a||!e.endsWith("#unevaluatedProperties")).reduce((e,[a,,i])=>{const o=e&&Be.getKeyword(a).collectEvaluatedProperties(i,n,t,r);return!1!==o&&[...e,...o]},[])},collectEvaluatedItems:(e,n,t,r,a=!1)=>{const i=t[e][2];return"boolean"==typeof i?!!i&&new Set:i.filter(([e])=>!a||!e.endsWith("#unevaluatedItems")).reduce((e,[a,,i])=>{const o=!1!==e&&Be.getKeyword(a).collectEvaluatedItems(i,n,t,r);return!1!==o&&new Set([...e,...o])},new Set)}},We={metaData:Ze,validate:Ge},Xe={Core:Be,Schema:je,Instance:q,Reference:w,Keywords:We,InvalidSchemaError:we};const{Core:He,Schema:Qe,Instance:Ye}=Xe;var en={compile:async(e,n,t)=>{const r=await Qe.step("items",t),a=Qe.typeOf(r,"array")?Qe.length(r):Number.MAX_SAFE_INTEGER;return Qe.typeOf(e,"boolean")?[a,Qe.value(e)]:[a,await He.compileSchema(e,n)]},interpret:([e,n],t,r,a)=>!Ye.typeOf(t,"array")||("string"==typeof n?Ye.every((t,i)=>i<e||He.interpretSchema(n,t,r,a),t):Ye.every((t,r)=>r<e||n,t))};const{Core:nn,Schema:tn,Instance:rn}=Xe,an=([e,n],t,r,a)=>!rn.typeOf(t,"array")||rn.every((t,i)=>i<e||nn.interpretSchema(n,t,r,a),t);var on={compile:async(e,n,t)=>{const r=await tn.step("items",t);return[tn.typeOf(r,"array")?tn.length(r):Number.MAX_SAFE_INTEGER,await nn.compileSchema(e,n)]},interpret:an,collectEvaluatedItems:(e,n,t,r)=>an(e,n,t,r)&&new Set(rn.map((e,n)=>n,n))};const{Core:sn,Schema:cn,Instance:mn}=Xe;var ln={compile:async(e,n,t)=>{const r=await cn.step("properties",t),a=cn.typeOf(r,"object")?cn.keys(r):[],i=await cn.step("patternProperties",t),o=cn.typeOf(i,"object")?cn.keys(i).map(e=>new RegExp(e)):[];return cn.typeOf(e,"boolean")?[a,o,cn.value(e)]:[a,o,await sn.compileSchema(e,n)]},interpret:([e,n,t],r,a,i)=>{if(!mn.typeOf(r,"object"))return!0;const o=mn.entries(r).filter(([t])=>!e.includes(t)&&!n.some(e=>e.test(t)));return"string"==typeof t?o.every(([,e])=>sn.interpretSchema(t,e,a,i)):0===o.length||t}};const{Core:pn,Schema:un,Instance:dn}=Xe,fn=([e,n,t],r,a,i)=>!dn.typeOf(r,"object")||dn.entries(r).filter(([t])=>!e.includes(t)&&!n.some(e=>e.test(t))).every(([,e])=>pn.interpretSchema(t,e,a,i));var yn={compile:async(e,n,t)=>{const r=await un.step("properties",t),a=un.typeOf(r,"object")?un.keys(r):[],i=await un.step("patternProperties",t);return[a,un.typeOf(i,"object")?un.keys(i).map(e=>new RegExp(e)):[],await pn.compileSchema(e,n)]},interpret:fn,collectEvaluatedProperties:(e,n,t,r)=>fn(e,n,t,r)&&[new RegExp("")]};const{Core:hn,Schema:vn}=Xe;var gn={compile:(e,n)=>ee.pipeline([vn.map(async e=>hn.compileSchema(await e,n)),ee.all],e),interpret:(e,n,t,r)=>e.every(e=>hn.interpretSchema(e,n,t,r)),collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,a)=>{const i=e&&hn.collectEvaluatedProperties(a,n,t,r);return!1!==i&&[...e,...i]},[]),collectEvaluatedItems:(e,n,t,r)=>e.reduce((e,a)=>{const i=!1!==e&&hn.collectEvaluatedItems(a,n,t,r);return!1!==i&&new Set([...e,...i])},new Set)};const{Core:bn,Schema:$n}=Xe;var On={compile:(e,n)=>ee.pipeline([$n.map(async e=>bn.compileSchema(await e,n)),ee.all],e),interpret:(e,n,t,r)=>e.filter(e=>bn.interpretSchema(e,n,t,r)).length>0,collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,a)=>{const i=bn.collectEvaluatedProperties(a,n,t,r);return!1!==i?[...e||[],...i]:e},!1),collectEvaluatedItems:(e,n,t,r)=>e.reduce((e,a)=>{const i=bn.collectEvaluatedItems(a,n,t,r);return!1!==i?new Set([...e||[],...i]):e},!1)},In=Object.keys,Sn=JSON.stringify;var jn=function(e){return""+function e(n,t){var r,a,i,o,s,c,m;if("string"===(m=typeof n))return Sn(n);if(!0===n)return"true";if(!1===n)return"false";if(null===n)return"null";if(n instanceof Array){for(i="[",a=n.length-1,r=0;r<a;r++)i+=e(n[r],!1)+",";return a>-1&&(i+=e(n[r],!1)),i+"]"}if(n instanceof Object){if("function"==typeof n.toJSON)return e(n.toJSON(),t);for(a=(o=In(n).sort()).length,i="",r=0;r<a;)void 0!==(c=e(n[s=o[r]],!0))&&(r&&""!==i&&(i+=","),i+=Sn(s)+":"+c),r++;return"{"+i+"}"}switch(m){case"function":case"undefined":return t?void 0:null;default:return isFinite(n)?n:null}}(e,!1)};const{Schema:xn,Instance:wn}=Xe;var Pn={compile:e=>jn(xn.value(e)),interpret:(e,n)=>jn(wn.value(n))===e};const{Core:En,Instance:An}=Xe;var Cn={compile:(e,n)=>En.compileSchema(e,n),interpret:(e,n,t,r)=>!An.typeOf(n,"array")||An.some(n=>En.interpretSchema(e,n,t,r),n)};const{Core:Nn,Schema:Rn,Instance:Tn}=Xe,Dn=({contains:e,minContains:n,maxContains:t},r,a,i)=>{if(!Tn.typeOf(r,"array"))return!0;const o=Tn.reduce((n,t)=>Nn.interpretSchema(e,t,a,i)?n+1:n,0,r);return o>=n&&o<=t};var kn={compile:async(e,n,t)=>{const r=await Nn.compileSchema(e,n),a=await Rn.step("minContains",t),i=Rn.typeOf(a,"number")?Rn.value(a):1,o=await Rn.step("maxContains",t);return{contains:r,minContains:i,maxContains:Rn.typeOf(o,"number")?Rn.value(o):Number.MAX_SAFE_INTEGER}},interpret:Dn,collectEvaluatedItems:(e,n,t,r)=>Dn(e,n,t,r)&&Tn.reduce((n,a,i)=>Nn.interpretSchema(e.contains,a,t,r)?n.add(i):n,new Set,n)};const{Core:Mn,Schema:qn}=Xe;var Vn={compile:async(e,n)=>{await ee.pipeline([qn.entries,ee.map(([,e])=>Mn.compileSchema(e,n)),ee.all],e)},interpret:()=>!0};const{Core:Ln,Schema:Jn,Instance:_n}=Xe;var Un={compile:(e,n)=>ee.pipeline([Jn.entries,ee.map(async([e,t])=>[e,Jn.typeOf(t,"array")?Jn.value(t):await Ln.compileSchema(t,n)]),ee.all],e),interpret:(e,n,t,r)=>{const a=_n.value(n);return!_n.typeOf(n,"object")||e.every(([e,i])=>!(e in a)||(Array.isArray(i)?i.every(e=>e in a):Ln.interpretSchema(i,n,t,r)))}};const{Schema:zn,Instance:Fn}=Xe;var Kn={compile:e=>ee.pipeline([zn.entries,ee.map(([e,n])=>[e,zn.value(n)]),ee.all],e),interpret:(e,n)=>{const t=Fn.value(n);return!Fn.typeOf(n,"object")||e.every(([e,n])=>!(e in t)||n.every(e=>e in t))}};const{Core:Bn,Schema:Zn,Instance:Gn}=Xe;var Wn={compile:(e,n)=>ee.pipeline([Zn.entries,ee.map(async([e,t])=>[e,await Bn.compileSchema(t,n)]),ee.all],e),interpret:(e,n,t,r)=>{const a=Gn.value(n);return!Gn.typeOf(n,"object")||e.every(([e,i])=>!(e in a)||Bn.interpretSchema(i,n,t,r))},collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,[a,i])=>{if(!e||!Gn.has(a,n))return e;const o=Bn.collectEvaluatedProperties(i,n,t,r);return!1!==o&&e.concat(o)},[])};const{Schema:Xn,Instance:Hn}=Xe;var Qn={compile:e=>Xn.value(e).map(jn),interpret:(e,n)=>e.some(e=>jn(Hn.value(n))===e)};const{Schema:Yn,Instance:et}=Xe;var nt={compile:async e=>Yn.value(e),interpret:(e,n)=>!et.typeOf(n,"number")||et.value(n)<e};const{Schema:tt,Instance:rt}=Xe;var at={compile:async e=>tt.value(e),interpret:(e,n)=>!rt.typeOf(n,"number")||rt.value(n)>e};const{Core:it}=Xe;var ot={compile:(e,n)=>it.compileSchema(e,n),interpret:(e,n,t,r)=>(it.interpretSchema(e,n,t,r),!0),collectEvaluatedProperties:(e,n,t,r)=>it.collectEvaluatedProperties(e,n,t,r)||[],collectEvaluatedItems:(e,n,t,r)=>it.collectEvaluatedItems(e,n,t,r)||new Set};const{Core:st,Schema:ct}=Xe,mt=(e,n,t,r)=>{const a=t[e][2];return"boolean"==typeof a?a:a.every(([e,,a])=>st.getKeyword(e).interpret(a,n,t,r))};var lt={compile:async(e,n,t)=>{if(ct.has("if",t)){const r=await ct.step("if",t);return[await st.compileSchema(r,n),await st.compileSchema(e,n)]}return[]},interpret:([e,n],t,r,a)=>void 0===e||!mt(e,t,r,a)||st.interpretSchema(n,t,r,a),collectEvaluatedProperties:([e,n],t,r,a)=>void 0!==e&&mt(e,t,r,a)?st.collectEvaluatedProperties(n,t,r,a):[],collectEvaluatedItems:([e,n],t,r,a)=>void 0!==e&&mt(e,t,r,a)?st.collectEvaluatedItems(n,t,r,a):new Set};const{Core:pt,Schema:ut}=Xe,dt=(e,n,t,r)=>{const a=t[e][2];return"boolean"==typeof a?a:a.every(([e,,a])=>pt.getKeyword(e).interpret(a,n,t,r))};var ft={compile:async(e,n,t)=>{if(ut.has("if",t)){const r=await ut.step("if",t);return[await pt.compileSchema(r,n),await pt.compileSchema(e,n)]}return[]},interpret:([e,n],t,r,a)=>void 0===e||dt(e,t,r,a)||pt.interpretSchema(n,t,r,a),collectEvaluatedProperties:([e,n],t,r,a)=>void 0===e||dt(e,t,r,a)?[]:pt.collectEvaluatedProperties(n,t,r,a),collectEvaluatedItems:([e,n],t,r,a)=>void 0===e||dt(e,t,r,a)?new Set:pt.collectEvaluatedItems(n,t,r,a)};const{Core:yt,Schema:ht,Instance:vt}=Xe,gt=(e,n,t,r)=>!vt.typeOf(n,"array")||("string"==typeof e?vt.every(n=>yt.interpretSchema(e,n,t,r),n):vt.every((n,a)=>!(a in e)||yt.interpretSchema(e[a],n,t,r),n));var bt={compile:async(e,n)=>{if(ht.typeOf(e,"array")){const t=await ht.map(e=>yt.compileSchema(e,n),e);return Promise.all(t)}return yt.compileSchema(e,n)},interpret:gt,collectEvaluatedItems:(e,n,t,r)=>gt(e,n,t,r)&&("string"==typeof e?new Set(vt.map((e,n)=>n,n)):new Set(e.map((e,n)=>n)))};const{Core:$t,Schema:Ot,Instance:It}=Xe,St=([e,n],t,r,a)=>!It.typeOf(t,"array")||It.every((t,i)=>i<e||$t.interpretSchema(n,t,r,a),t);var jt={compile:async(e,n,t)=>{const r=await Ot.step("prefixItems",t);return[Ot.typeOf(r,"array")?Ot.length(r):0,await $t.compileSchema(e,n)]},interpret:St,collectEvaluatedItems:(e,n,t,r)=>St(e,n,t,r)&&new Set(It.map((e,n)=>n,n))};const{Schema:xt,Instance:wt}=Xe;var Pt={compile:e=>xt.value(e),interpret:(e,n)=>!wt.typeOf(n,"array")||wt.length(n)<=e};const{Schema:Et,Instance:At}=Xe;var Ct={compile:e=>Et.value(e),interpret:(e,n)=>!At.typeOf(n,"string")||At.length(n)<=e};const{Schema:Nt,Instance:Rt}=Xe;var Tt={compile:e=>Nt.value(e),interpret:(e,n)=>!Rt.typeOf(n,"string")||[...Rt.value(n)].length<=e};const{Schema:Dt,Instance:kt}=Xe;var Mt={compile:e=>Dt.value(e),interpret:(e,n)=>!kt.typeOf(n,"object")||kt.keys(n).length<=e};const{Schema:qt,Instance:Vt}=Xe;var Lt={compile:async(e,n,t)=>{const r=await qt.step("exclusiveMaximum",t),a=qt.value(r);return[qt.value(e),a]},interpret:([e,n],t)=>{if(!Vt.typeOf(t,"number"))return!0;const r=Vt.value(t);return n?r<e:r<=e}};const{Schema:Jt,Instance:_t}=Xe;var Ut={compile:async e=>Jt.value(e),interpret:(e,n)=>!_t.typeOf(n,"number")||_t.value(n)<=e};const{Schema:zt,Instance:Ft}=Xe;var Kt={compile:e=>zt.value(e),interpret:(e,n)=>!Ft.typeOf(n,"array")||Ft.length(n)>=e};const{Schema:Bt,Instance:Zt}=Xe;var Gt={compile:e=>Bt.value(e),interpret:(e,n)=>!Zt.typeOf(n,"string")||Zt.length(n)>=e};const{Schema:Wt,Instance:Xt}=Xe;var Ht={compile:e=>Wt.value(e),interpret:(e,n)=>!Xt.typeOf(n,"string")||[...Xt.value(n)].length>=e};const{Schema:Qt,Instance:Yt}=Xe;var er={compile:e=>Qt.value(e),interpret:(e,n)=>!Yt.typeOf(n,"object")||Yt.keys(n).length>=e};const{Schema:nr,Instance:tr}=Xe;var rr={compile:async(e,n,t)=>{const r=await nr.step("exclusiveMinimum",t),a=nr.value(r);return[nr.value(e),a]},interpret:([e,n],t)=>{if(!tr.typeOf(t,"number"))return!0;const r=tr.value(t);return n?r>e:r>=e}};const{Schema:ar,Instance:ir}=Xe;var or={compile:async e=>ar.value(e),interpret:(e,n)=>!ir.typeOf(n,"number")||ir.value(n)>=e};const{Schema:sr,Instance:cr}=Xe,mr=(e,n)=>Math.abs(e-n)<1.1920929e-7;var lr={compile:e=>sr.value(e),interpret:(e,n)=>{if(!cr.typeOf(n,"number"))return!0;const t=cr.value(n)%e;return mr(0,t)||mr(e,t)}};const{Core:pr}=Xe;var ur={compile:pr.compileSchema,interpret:(e,n,t,r)=>!pr.interpretSchema(e,n,t,r)};const{Core:dr,Schema:fr}=Xe;var yr={compile:async(e,n)=>{const t=await fr.map(e=>dr.compileSchema(e,n),e);return Promise.all(t)},interpret:(e,n,t,r)=>{let a=0;for(const i of e)if(dr.interpretSchema(i,n,t,r)&&a++,a>1)break;return 1===a},collectEvaluatedProperties:(e,n,t,r)=>{let a=0;return e.reduce((e,i)=>{if(a>1)return!1;const o=dr.collectEvaluatedProperties(i,n,t,r);return o?0==a++&&o:e},!1)},collectEvaluatedItems:(e,n,t,r)=>{let a=0;return e.reduce((e,i)=>{if(a>1)return!1;const o=dr.collectEvaluatedItems(i,n,t,r);return o?0==a++&&o:e},!1)}};const{Schema:hr,Instance:vr}=Xe;var gr={compile:e=>new RegExp(hr.value(e),"u"),interpret:(e,n)=>!vr.typeOf(n,"string")||e.test(vr.value(n))};const{Core:br,Schema:$r,Instance:Or}=Xe,Ir=(e,n,t,r)=>!Or.typeOf(n,"object")||e.every(([e,a])=>Or.entries(n).filter(([n])=>e.test(n)).every(([,e])=>br.interpretSchema(a,e,t,r)));var Sr={compile:(e,n)=>ee.pipeline([$r.entries,ee.map(async([e,t])=>[new RegExp(e,"u"),await br.compileSchema(t,n)]),ee.all],e),interpret:Ir,collectEvaluatedProperties:(e,n,t,r)=>Ir(e,n,t,r)&&e.map(([e])=>e)};var jr={isObject:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,escapeRegExp:e=>e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),splitUrl:e=>{const n=e.indexOf("#"),t=-1===n?e.length:n,r=e.slice(0,t),a=e.slice(t+1);return[decodeURI(r),decodeURI(a)]}};const{Core:xr,Schema:wr,Instance:Pr}=Xe,{escapeRegExp:Er}=jr,Ar=(e,n,t,r)=>!Pr.typeOf(n,"object")||Pr.entries(n).filter(([n])=>n in e).every(([n,a])=>xr.interpretSchema(e[n],a,t,r));var Cr={compile:(e,n)=>ee.pipeline([wr.entries,ee.reduce(async(e,[t,r])=>(e[t]=await xr.compileSchema(r,n),e),Object.create(null))],e),interpret:Ar,collectEvaluatedProperties:(e,n,t,r)=>Ar(e,n,t,r)&&Object.keys(e).map(e=>new RegExp(`^${Er(e)}$`))};const{Core:Nr,Instance:Rr}=Xe;var Tr={compile:(e,n)=>Nr.compileSchema(e,n),interpret:(e,n,t,r)=>!Rr.typeOf(n,"object")||Rr.keys(n).every(n=>Nr.interpretSchema(e,Rr.cons(n),t,r))};const{Core:Dr,Schema:kr}=Xe,{splitUrl:Mr}=jr;var qr={compile:async(e,n)=>{const[,t]=Mr(kr.value(e)),r=await kr.get(kr.value(e),e);return await Dr.compileSchema(r,n),[r.id,t]},interpret:([e,n],t,r,a)=>{if(n in r.metaData[e].dynamicAnchors)return Dr.interpretSchema(a[n],t,r,a);{const i=kr.getAnchorPointer(r.metaData[e],n);return Dr.interpretSchema(`${e}#${encodeURI(i)}`,t,r,a)}},collectEvaluatedProperties:Dr.collectEvaluatedProperties,collectEvaluatedItems:Dr.collectEvaluatedItems};const{Core:Vr,Schema:Lr}=Xe;var Jr={compile:async(e,n)=>{const t=await Lr.get(Lr.value(e),e);return Vr.compileSchema(t,n)},interpret:Vr.interpretSchema,collectEvaluatedProperties:Vr.collectEvaluatedProperties,collectEvaluatedItems:Vr.collectEvaluatedItems};const{Schema:_r,Instance:Ur}=Xe;var zr={compile:e=>_r.value(e),interpret:(e,n)=>!Ur.typeOf(n,"object")||e.every(e=>Object.prototype.hasOwnProperty.call(Ur.value(n),e))};const{Core:Fr,Schema:Kr,Instance:Br}=Xe,Zr=(e,n,t,r)=>!Br.typeOf(n,"array")||Br.every((n,a)=>!(a in e)||Fr.interpretSchema(e[a],n,t,r),n);var Gr={compile:(e,n)=>ee.pipeline([Kr.map(e=>Fr.compileSchema(e,n)),ee.all],e),interpret:Zr,collectEvaluatedItems:(e,n,t,r)=>Zr(e,n,t,r)&&new Set(e.map((e,n)=>n))};const{Schema:Wr,Instance:Xr}=Xe;var Hr={compile:e=>Wr.value(e),interpret:(e,n)=>"string"==typeof e?Xr.typeOf(n,e):e.some(Xr.typeOf(n))};const{Core:Qr,Schema:Yr,Instance:ea}=Xe,na=([e,n],t,r,a)=>{if(!ea.typeOf(t,"array"))return!0;const i=Qr.collectEvaluatedItems(e,t,r,a,!0);return!1===i||ea.every((e,o)=>i.has(o)||Qr.interpretSchema(n,ea.step(o,t),r,a),t)};var ta={compile:async(e,n,t)=>[Yr.uri(t),await Qr.compileSchema(e,n)],interpret:na,collectEvaluatedItems:(e,n,t,r)=>na(e,n,t,r)&&new Set(ea.map((e,n)=>n,n))};const{Core:ra,Schema:aa,Instance:ia}=Xe,oa=([e,n],t,r,a)=>{if(!ia.typeOf(t,"object"))return!0;const i=ra.collectEvaluatedProperties(e,t,r,a,!0);return!i||ia.entries(t).filter(([e])=>!i.some(n=>e.match(n))).every(([,e])=>ra.interpretSchema(n,e,r,a))};var sa={compile:async(e,n,t)=>[aa.uri(t),await ra.compileSchema(e,n)],interpret:oa,collectEvaluatedProperties:(e,n,t,r)=>oa(e,n,t,r)&&[new RegExp("")]};const{Schema:ca,Instance:ma}=Xe;var la={compile:e=>ca.value(e),interpret:(e,n)=>{if(!ma.typeOf(n,"array")||!1===e)return!0;const t=ma.map(e=>jn(ma.value(e)),n);return new Set(t).size===t.length}};const{Keywords:pa}=Xe;var ua={additionalItems:en,additionalItems6:on,additionalProperties:ln,additionalProperties6:yn,allOf:gn,anyOf:On,const:Pn,contains:Cn,containsMinContainsMaxContains:kn,definitions:Vn,dependencies:Un,dependentRequired:Kn,dependentSchemas:Wn,enum:Qn,exclusiveMaximum:nt,exclusiveMinimum:at,if:ot,then:lt,else:ft,items:bt,items202012:jt,maxItems:Pt,maxLength:Ct,maxLength6:Tt,maxProperties:Mt,maximumExclusiveMaximum:Lt,maximum:Ut,metaData:pa.metaData,minItems:Kt,minLength:Gt,minLength6:Ht,minProperties:er,minimumExclusiveMinimum:rr,minimum:or,multipleOf:lr,not:ur,oneOf:yr,pattern:gr,patternProperties:Sr,properties:Cr,propertyNames:Tr,dynamicRef:qr,ref:Jr,required:zr,tupleItems:Gr,type:Hr,unevaluatedItems:ta,unevaluatedProperties:sa,uniqueItems:la,validate:pa.validate};const{Core:da,Schema:fa}=Xe,ya="http://json-schema.org/draft-04/schema";fa.setConfig(ya,"baseToken","id"),fa.setConfig(ya,"embeddedToken","id"),fa.setConfig(ya,"anchorToken","id"),fa.setConfig(ya,"jrefToken","$ref"),fa.add(JSON.parse('{\n "id": "http://json-schema.org/draft-04/schema#",\n "$schema": "http://json-schema.org/draft-04/schema#",\n "description": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "positiveInteger": {\n "type": "integer",\n "minimum": 0\n },\n "positiveIntegerDefault0": {\n "allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ]\n },\n "simpleTypes": {\n "enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "minItems": 1,\n "uniqueItems": true\n }\n },\n "type": "object",\n "properties": {\n "id": {\n "type": "string"\n },\n "$schema": {\n "type": "string"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": {},\n "multipleOf": {\n "type": "number",\n "minimum": 0,\n "exclusiveMinimum": true\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "boolean",\n "default": false\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "boolean",\n "default": false\n },\n "maxLength": { "$ref": "#/definitions/positiveInteger" },\n "minLength": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": {\n "anyOf": [\n { "type": "boolean" },\n { "$ref": "#" }\n ],\n "default": {}\n },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": {}\n },\n "maxItems": { "$ref": "#/definitions/positiveInteger" },\n "minItems": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxProperties": { "$ref": "#/definitions/positiveInteger" },\n "minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": {\n "anyOf": [\n { "type": "boolean" },\n { "$ref": "#" }\n ],\n "default": {}\n },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "enum": {\n "type": "array",\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "dependencies": {\n "exclusiveMaximum": [ "maximum" ],\n "exclusiveMinimum": [ "minimum" ]\n },\n "default": {}\n}')),da.defineVocabulary(ya,{validate:ua.validate,additionalItems:ua.additionalItems,additionalProperties:ua.additionalProperties,allOf:ua.allOf,anyOf:ua.anyOf,default:ua.metaData,definitions:ua.definitions,dependencies:ua.dependencies,description:ua.metaData,enum:ua.enum,format:ua.metaData,items:ua.items,maxItems:ua.maxItems,maxLength:ua.maxLength,maxProperties:ua.maxProperties,maximum:ua.maximumExclusiveMaximum,minItems:ua.minItems,minLength:ua.minLength,minProperties:ua.minProperties,minimum:ua.minimumExclusiveMinimum,multipleOf:ua.multipleOf,not:ua.not,oneOf:ua.oneOf,pattern:ua.pattern,patternProperties:ua.patternProperties,properties:ua.properties,required:ua.required,title:ua.metaData,type:ua.type,uniqueItems:ua.uniqueItems});const{Core:ha,Schema:va}=Xe,ga="http://json-schema.org/draft-06/schema";va.setConfig(ga,"baseToken","$id"),va.setConfig(ga,"embeddedToken","$id"),va.setConfig(ga,"anchorToken","$id"),va.setConfig(ga,"jrefToken","$ref"),va.add(JSON.parse('{\n "$schema": "http://json-schema.org/draft-06/schema#",\n "$id": "http://json-schema.org/draft-06/schema#",\n "title": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "allOf": [\n { "$ref": "#/definitions/nonNegativeInteger" },\n { "default": 0 }\n ]\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n },\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": {},\n "examples": {\n "type": "array",\n "items": {}\n },\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },\n "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": { "$ref": "#" },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": {}\n },\n "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },\n "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "contains": { "$ref": "#" },\n "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },\n "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": { "$ref": "#" },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "propertyNames": { "$ref": "#" },\n "const": {},\n "enum": {\n "type": "array",\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "default": {}\n}')),ha.defineVocabulary(ga,{validate:ua.validate,additionalItems:ua.additionalItems6,additionalProperties:ua.additionalProperties6,allOf:ua.allOf,anyOf:ua.anyOf,const:ua.const,contains:ua.contains,default:ua.metaData,definitions:ua.definitions,dependencies:ua.dependencies,description:ua.metaData,enum:ua.enum,examples:ua.metaData,exclusiveMaximum:ua.exclusiveMaximum,exclusiveMinimum:ua.exclusiveMinimum,format:ua.metaData,items:ua.items,maxItems:ua.maxItems,maxLength:ua.maxLength6,maxProperties:ua.maxProperties,maximum:ua.maximum,minItems:ua.minItems,minLength:ua.minLength6,minProperties:ua.minProperties,minimum:ua.minimum,multipleOf:ua.multipleOf,not:ua.not,oneOf:ua.oneOf,pattern:ua.pattern,patternProperties:ua.patternProperties,properties:ua.properties,propertyNames:ua.propertyNames,required:ua.required,title:ua.metaData,type:ua.type,uniqueItems:ua.uniqueItems});const{Core:ba,Schema:$a}=Xe,Oa="http://json-schema.org/draft-07/schema";$a.setConfig(Oa,"baseToken","$id"),$a.setConfig(Oa,"embeddedToken","$id"),$a.setConfig(Oa,"anchorToken","$id"),$a.setConfig(Oa,"jrefToken","$ref"),$a.add(JSON.parse('{\n "$schema": "http://json-schema.org/draft-07/schema#",\n "$id": "http://json-schema.org/draft-07/schema#",\n "title": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "allOf": [\n { "$ref": "#/definitions/nonNegativeInteger" },\n { "default": 0 }\n ]\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n },\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$comment": {\n "type": "string"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n },\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },\n "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": { "$ref": "#" },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": true\n },\n "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },\n "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "contains": { "$ref": "#" },\n "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },\n "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": { "$ref": "#" },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "propertyNames": { "$ref": "#" },\n "const": true,\n "enum": {\n "type": "array",\n "items": true,\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "if": { "$ref": "#" },\n "then": { "$ref": "#" },\n "else": { "$ref": "#" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "default": true\n}')),ba.defineVocabulary(Oa,{validate:ua.validate,additionalItems:ua.additionalItems6,additionalProperties:ua.additionalProperties6,allOf:ua.allOf,anyOf:ua.anyOf,const:ua.const,contains:ua.contains,default:ua.metaData,definitions:ua.definitions,dependencies:ua.dependencies,description:ua.metaData,enum:ua.enum,exclusiveMaximum:ua.exclusiveMaximum,exclusiveMinimum:ua.exclusiveMinimum,format:ua.metaData,if:ua.if,then:ua.then,else:ua.else,items:ua.items,maxItems:ua.maxItems,maxLength:ua.maxLength6,maxProperties:ua.maxProperties,maximum:ua.maximum,minItems:ua.minItems,minLength:ua.minLength6,minProperties:ua.minProperties,minimum:ua.minimum,multipleOf:ua.multipleOf,not:ua.not,oneOf:ua.oneOf,pattern:ua.pattern,patternProperties:ua.patternProperties,properties:ua.properties,propertyNames:ua.propertyNames,readOnly:ua.metaData,required:ua.required,title:ua.metaData,type:ua.type,uniqueItems:ua.uniqueItems,writeOnly:ua.metaData});const{Core:Ia,Schema:Sa}=Xe,ja="https://json-schema.org/draft/2019-09/schema";Sa.setConfig(ja,"baseToken","$id"),Sa.setConfig(ja,"embeddedToken","$id"),Sa.setConfig(ja,"anchorToken","$anchor"),Sa.setConfig(ja,"recursiveAnchorToken","$recursiveAnchor"),Sa.setConfig(ja,"vocabularyToken","$vocabulary"),Sa.setConfig(ja,"mandatoryVocabularies",["https://json-schema.org/draft/2019-09/vocab/core"]),Sa.add(JSON.parse('{\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$id": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/core": true,\n "https://json-schema.org/draft/2019-09/vocab/applicator": true,\n "https://json-schema.org/draft/2019-09/vocab/validation": true,\n "https://json-schema.org/draft/2019-09/vocab/meta-data": true,\n "https://json-schema.org/draft/2019-09/vocab/format": false,\n "https://json-schema.org/draft/2019-09/vocab/content": true\n },\n "$recursiveAnchor": true,\n\n "title": "Core and Validation specifications meta-schema",\n "allOf": [\n {"$ref": "meta/core"},\n {"$ref": "meta/applicator"},\n {"$ref": "meta/validation"},\n {"$ref": "meta/meta-data"},\n {"$ref": "meta/format"},\n {"$ref": "meta/content"}\n ],\n "type": ["object", "boolean"],\n "properties": {\n "definitions": {\n "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n },\n "dependencies": {\n "$comment": "\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"",\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$recursiveRef": "#" },\n { "$ref": "meta/validation#/$defs/stringArray" }\n ]\n }\n }\n }\n}')),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/core",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/core": true\n },\n "$recursiveAnchor": true,\n\n "title": "Core vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference",\n "$comment": "Non-empty fragments not allowed.",\n "pattern": "^[^#]*#?$"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$anchor": {\n "type": "string",\n "pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$recursiveRef": {\n "type": "string",\n "format": "uri-reference"\n },\n "$recursiveAnchor": {\n "type": "boolean",\n "default": false\n },\n "$vocabulary": {\n "type": "object",\n "propertyNames": {\n "type": "string",\n "format": "uri"\n },\n "additionalProperties": {\n "type": "boolean"\n }\n },\n "$comment": {\n "type": "string"\n },\n "$defs": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n }\n }\n}')),Ia.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/core",{validate:ua.validate,$defs:ua.definitions,$recursiveRef:ua.dynamicRef,$ref:ua.ref}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/applicator",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/applicator": true\n },\n "$recursiveAnchor": true,\n\n "title": "Applicator vocabulary meta-schema",\n "properties": {\n "additionalItems": { "$recursiveRef": "#" },\n "unevaluatedItems": { "$recursiveRef": "#" },\n "items": {\n "anyOf": [\n { "$recursiveRef": "#" },\n { "$ref": "#/$defs/schemaArray" }\n ]\n },\n "contains": { "$recursiveRef": "#" },\n "additionalProperties": { "$recursiveRef": "#" },\n "unevaluatedProperties": { "$recursiveRef": "#" },\n "properties": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependentSchemas": {\n "type": "object",\n "additionalProperties": {\n "$recursiveRef": "#"\n }\n },\n "propertyNames": { "$recursiveRef": "#" },\n "if": { "$recursiveRef": "#" },\n "then": { "$recursiveRef": "#" },\n "else": { "$recursiveRef": "#" },\n "allOf": { "$ref": "#/$defs/schemaArray" },\n "anyOf": { "$ref": "#/$defs/schemaArray" },\n "oneOf": { "$ref": "#/$defs/schemaArray" },\n "not": { "$recursiveRef": "#" }\n },\n "$defs": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$recursiveRef": "#" }\n }\n }\n}')),Ia.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/applicator",{additionalItems:ua.additionalItems6,additionalProperties:ua.additionalProperties6,allOf:ua.allOf,anyOf:ua.anyOf,contains:ua.containsMinContainsMaxContains,dependentSchemas:ua.dependentSchemas,if:ua.if,then:ua.then,else:ua.else,items:ua.items,not:ua.not,oneOf:ua.oneOf,patternProperties:ua.patternProperties,properties:ua.properties,propertyNames:ua.propertyNames,unevaluatedItems:ua.unevaluatedItems,unevaluatedProperties:ua.unevaluatedProperties}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/validation",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/validation": true\n },\n "$recursiveAnchor": true,\n\n "title": "Validation vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/$defs/nonNegativeInteger" },\n "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "maxItems": { "$ref": "#/$defs/nonNegativeInteger" },\n "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxContains": { "$ref": "#/$defs/nonNegativeInteger" },\n "minContains": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 1\n },\n "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },\n "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/$defs/stringArray" },\n "dependentRequired": {\n "type": "object",\n "additionalProperties": {\n "$ref": "#/$defs/stringArray"\n }\n },\n "const": true,\n "enum": {\n "type": "array",\n "items": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/$defs/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/$defs/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n }\n },\n "$defs": {\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 0\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n }\n}')),Ia.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/validation",{const:ua.const,dependentRequired:ua.dependentRequired,enum:ua.enum,exclusiveMaximum:ua.exclusiveMaximum,exclusiveMinimum:ua.exclusiveMinimum,maxItems:ua.maxItems,maxLength:ua.maxLength6,maxProperties:ua.maxProperties,maximum:ua.maximum,minItems:ua.minItems,minLength:ua.minLength6,minProperties:ua.minProperties,minimum:ua.minimum,multipleOf:ua.multipleOf,pattern:ua.pattern,required:ua.required,type:ua.type,uniqueItems:ua.uniqueItems}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/meta-data",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/meta-data": true\n },\n "$recursiveAnchor": true,\n\n "title": "Meta-data vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "deprecated": {\n "type": "boolean",\n "default": false\n },\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n }\n }\n}')),Ia.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/meta-data",{default:ua.metaData,deprecated:ua.metaData,description:ua.metaData,examples:ua.metaData,readOnly:ua.metaData,title:ua.metaData,writeOnly:ua.metaData}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/format",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/format": true\n },\n "$recursiveAnchor": true,\n\n "title": "Format vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/content",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/content": true\n },\n "$recursiveAnchor": true,\n\n "title": "Content vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "contentSchema": { "$recursiveRef": "#" }\n }\n}')),Ia.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/content",{contentEncoding:ua.metaData,contentMediaType:ua.metaData,contentSchema:ua.metaData});const{Core:xa,Schema:wa}=Xe,Pa="https://json-schema.org/draft/2020-12/schema";wa.setConfig(Pa,"baseToken","$id"),wa.setConfig(Pa,"embeddedToken","$id"),wa.setConfig(Pa,"anchorToken","$anchor"),wa.setConfig(Pa,"dynamicAnchorToken","$dynamicAnchor"),wa.setConfig(Pa,"vocabularyToken","$vocabulary"),wa.setConfig(Pa,"mandatoryVocabularies",["https://json-schema.org/draft/2020-12/vocab/core"]),wa.add(JSON.parse('{\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$id": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/core": true,\n "https://json-schema.org/draft/2020-12/vocab/applicator": true,\n "https://json-schema.org/draft/2020-12/vocab/unevaluated": true,\n "https://json-schema.org/draft/2020-12/vocab/validation": true,\n "https://json-schema.org/draft/2020-12/vocab/meta-data": true,\n "https://json-schema.org/draft/2020-12/vocab/format-annotation": true,\n "https://json-schema.org/draft/2020-12/vocab/content": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Core and Validation specifications meta-schema",\n "allOf": [\n {"$ref": "meta/core"},\n {"$ref": "meta/applicator"},\n {"$ref": "meta/unevaluated"},\n {"$ref": "meta/validation"},\n {"$ref": "meta/meta-data"},\n {"$ref": "meta/format-annotation"},\n {"$ref": "meta/content"}\n ],\n "type": ["object", "boolean"],\n "properties": {\n "definitions": {\n "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n },\n "dependencies": {\n "$comment": "\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"",\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$dynamicRef": "#meta" },\n { "$ref": "meta/validation#/$defs/stringArray" }\n ]\n }\n }\n }\n}')),wa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/core",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/core": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Core vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference",\n "$comment": "Non-empty fragments not allowed.",\n "pattern": "^[^#]*#?$"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$anchor": {\n "type": "string",\n "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$dynamicRef": {\n "type": "string",\n "format": "uri-reference"\n },\n "$dynamicAnchor": {\n "type": "string",\n "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"\n },\n "$vocabulary": {\n "type": "object",\n "propertyNames": {\n "type": "string",\n "format": "uri"\n },\n "additionalProperties": {\n "type": "boolean"\n }\n },\n "$comment": {\n "type": "string"\n },\n "$defs": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n }\n }\n}')),xa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/core",{validate:ua.validate,$defs:ua.definitions,$dynamicRef:ua.dynamicRef,$ref:ua.ref}),wa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/applicator",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/applicator": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Applicator vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "prefixItems": { "$ref": "#/$defs/schemaArray" },\n "items": { "$dynamicRef": "#meta" },\n "contains": { "$dynamicRef": "#meta" },\n "additionalProperties": { "$dynamicRef": "#meta" },\n "properties": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependentSchemas": {\n "type": "object",\n "additionalProperties": {\n "$dynamicRef": "#meta"\n }\n },\n "propertyNames": { "$dynamicRef": "#meta" },\n "if": { "$dynamicRef": "#meta" },\n "then": { "$dynamicRef": "#meta" },\n "else": { "$dynamicRef": "#meta" },\n "allOf": { "$ref": "#/$defs/schemaArray" },\n "anyOf": { "$ref": "#/$defs/schemaArray" },\n "oneOf": { "$ref": "#/$defs/schemaArray" },\n "not": { "$dynamicRef": "#meta" }\n },\n "$defs": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$dynamicRef": "#meta" }\n }\n }\n}')),xa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/applicator",{additionalProperties:ua.additionalProperties6,allOf:ua.allOf,anyOf:ua.anyOf,contains:ua.containsMinContainsMaxContains,dependentSchemas:ua.dependentSchemas,if:ua.if,then:ua.then,else:ua.else,items:ua.items202012,not:ua.not,oneOf:ua.oneOf,patternProperties:ua.patternProperties,prefixItems:ua.tupleItems,properties:ua.properties,propertyNames:ua.propertyNames}),wa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/validation",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/validation": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Validation vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/$defs/nonNegativeInteger" },\n "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "maxItems": { "$ref": "#/$defs/nonNegativeInteger" },\n "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxContains": { "$ref": "#/$defs/nonNegativeInteger" },\n "minContains": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 1\n },\n "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },\n "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/$defs/stringArray" },\n "dependentRequired": {\n "type": "object",\n "additionalProperties": {\n "$ref": "#/$defs/stringArray"\n }\n },\n "const": true,\n "enum": {\n "type": "array",\n "items": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/$defs/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/$defs/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n }\n },\n "$defs": {\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 0\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n }\n}')),xa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/validation",{const:ua.const,dependentRequired:ua.dependentRequired,enum:ua.enum,exclusiveMaximum:ua.exclusiveMaximum,exclusiveMinimum:ua.exclusiveMinimum,maxItems:ua.maxItems,maxLength:ua.maxLength6,maxProperties:ua.maxProperties,maximum:ua.maximum,minItems:ua.minItems,minLength:ua.minLength6,minProperties:ua.minProperties,minimum:ua.minimum,multipleOf:ua.multipleOf,pattern:ua.pattern,required:ua.required,type:ua.type,uniqueItems:ua.uniqueItems}),wa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/meta-data",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/meta-data": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Meta-data vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "deprecated": {\n "type": "boolean",\n "default": false\n },\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n }\n }\n}')),xa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/meta-data",{default:ua.metaData,deprecated:ua.metaData,description:ua.metaData,examples:ua.metaData,readOnly:ua.metaData,title:ua.metaData,writeOnly:ua.metaData}),wa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/format-annotation": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Format vocabulary meta-schema for annotation results",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),xa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/format-annotation",{format:ua.metaData}),wa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/format-assertion",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/format-assertion": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Format vocabulary meta-schema for assertion results",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),wa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/content",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/content": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Content vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "contentSchema": { "$dynamicRef": "#meta" }\n }\n}')),xa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/content",{contentEncoding:ua.metaData,contentMediaType:ua.metaData,contentSchema:ua.metaData}),wa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/unevaluated": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Unevaluated applicator vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "unevaluatedItems": { "$dynamicRef": "#meta" },\n "unevaluatedProperties": { "$dynamicRef": "#meta" }\n }\n}')),xa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/unevaluated",{unevaluatedItems:ua.unevaluatedItems,unevaluatedProperties:ua.unevaluatedProperties});const{Core:Ea,Schema:Aa,InvalidSchemaError:Ca}=Xe;var Na={add:Ea.add,get:Aa.get,validate:Ea.validate,compile:Ea.compile,interpret:Ea.interpret,setMetaOutputFormat:Ea.setMetaOutputFormat,setShouldMetaValidate:Ea.setShouldMetaValidate,FLAG:Ea.FLAG,BASIC:Ea.BASIC,DETAILED:Ea.DETAILED,VERBOSE:Ea.VERBOSE,Keywords:ua,InvalidSchemaError:Ca},Ra=Na.add,Ta=Na.get,Da=Na.validate,ka=Na.compile,Ma=Na.interpret,qa=Na.setMetaOutputFormat,Va=Na.setShouldMetaValidate,La=Na.FLAG,Ja=Na.BASIC,_a=Na.DETAILED,Ua=Na.VERBOSE,za=Na.Keywords,Fa=Na.InvalidSchemaError;e.BASIC=Ja,e.DETAILED=_a,e.FLAG=La,e.InvalidSchemaError=Fa,e.Keywords=za,e.VERBOSE=Ua,e.add=Ra,e.compile=ka,e.default=Na,e.get=Ta,e.interpret=Ma,e.setMetaOutputFormat=qa,e.setShouldMetaValidate=Va,e.validate=Da,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports"],(function(e){"use strict";var n=function(e,n){return function t(){null==n&&(n=e.length);var r=[].slice.call(arguments);return r.length>=n?e.apply(this,r):function(){return t.apply(this,r.concat([].slice.call(arguments)))}}};var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var r=function(e,n){return e(n={exports:{}},n.exports),n.exports}((function(e,n){var r,a;r="object"==typeof window&&window||t,a={},r.PubSub?(a=r.PubSub,console.warn("PubSub already loaded, using existing version")):(r.PubSub=a,function(e){var n={},t=-1;function r(e,n,t){try{e(n,t)}catch(e){setTimeout(function(e){return function(){throw e}}(e),0)}}function a(e,n,t){e(n,t)}function i(e,t,i,o){var s,c=n[t],m=o?a:r;if(Object.prototype.hasOwnProperty.call(n,t))for(s in c)Object.prototype.hasOwnProperty.call(c,s)&&m(c[s],e,i)}function o(e){var t=String(e);return Boolean(Object.prototype.hasOwnProperty.call(n,t)&&function(e){var n;for(n in e)if(Object.prototype.hasOwnProperty.call(e,n))return!0;return!1}(n[t]))}function s(e,n,t,r){var a=function(e,n,t){return function(){var r=String(e),a=r.lastIndexOf(".");for(i(e,e,n,t);-1!==a;)a=(r=r.substr(0,a)).lastIndexOf("."),i(e,r,n,t);i(e,"*",n,t)}}(e="symbol"==typeof e?e.toString():e,n,r);return!!function(e){for(var n=String(e),t=o(n)||o("*"),r=n.lastIndexOf(".");!t&&-1!==r;)r=(n=n.substr(0,r)).lastIndexOf("."),t=o(n);return t}(e)&&(!0===t?a():setTimeout(a,0),!0)}e.publish=function(n,t){return s(n,t,!1,e.immediateExceptions)},e.publishSync=function(n,t){return s(n,t,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!=typeof r)return!1;e="symbol"==typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(n,e)||(n[e]={});var a="uid_"+String(++t);return n[e][a]=r,a},e.subscribeAll=function(n){return e.subscribe("*",n)},e.subscribeOnce=function(n,t){var r=e.subscribe(n,(function(){e.unsubscribe(r),t.apply(this,arguments)}));return e},e.clearAllSubscriptions=function(){n={}},e.clearSubscriptions=function(e){var t;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)&&delete n[t]},e.countSubscriptions=function(e){var t,r,a=0;for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)){for(r in n[t])a++;break}return a},e.getSubscriptions=function(e){var t,r=[];for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)&&r.push(t);return r},e.unsubscribe=function(t){var r,a,i,o="string"==typeof t&&(Object.prototype.hasOwnProperty.call(n,t)||function(e){var t;for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e))return!0;return!1}(t)),s=!o&&"string"==typeof t,c="function"==typeof t,m=!1;if(!o){for(r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(a=n[r],s&&a[t]){delete a[t],m=t;break}if(c)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&a[i]===t&&(delete a[i],m=!0)}return m}e.clearSubscriptions(t)}}(a)),void 0!==e&&e.exports&&(n=e.exports=a),n.PubSub=a,e.exports=n=a}));r.PubSub;var a=function(e,n){if(e=e.trim(),(n=n.trim()).startsWith("about:"))return n;const t=function(e){const n={host:"",path:"",query:"",protocol:""};let t=e,r=e.indexOf("//");n.protocol=t.substring(0,r),r+=2;const a=e.indexOf("/",r),i=e.indexOf("?"),o=e.indexOf("#");-1!==o&&(t=t.substring(0,o));if(-1!==i){const e=t.substring(i);n.query=e,t=t.substring(0,i)}if(-1!==a){const e=t.substring(0,a);n.host=e,t=t.substring(a),n.path=t}else n.host=t;return n}(e),r=function(e){const n={href:e,hash:"",query:"",netPath:!1,absolutePath:!1,relativePath:!1};if(s.test(e))return n.netPath=!0,n;"/"===e[0]?n.absolutePath=!0:""!==e&&(n.relativePath=!0);let t=e;const r=e.indexOf("?"),a=e.indexOf("#");if(-1!==a){const e=t.substring(a);n.hash=e,t=t.substring(0,a)}if(-1!==r){const e=t.substring(r);n.query=e,t=t.substring(0,r)}return n.path=t,n}(n);if(!t.protocol&&!r.netPath)throw new Error("Error, protocol is not specified");if(r.netPath)return r.href.startsWith("//")&&(r.href=t.protocol+r.href),function(e){const n=e.indexOf("//")+2,t=!e.includes("/",n),r=!e.includes("?",n),a=!e.includes("#",n);return t&&r&&a}(r.href)?i(r.href):r.href;if(r.absolutePath){const{path:e,query:n,hash:a}=r;return t.host+o(e)+n+a}if(r.relativePath){const{path:e,query:n,hash:a}=r;let i,s=t.path,c=t.host;return 0===e.length?i=s:(s=s.substring(0,s.lastIndexOf("/")),i=o(s+"/"+e)),c+=""!==i||n||a?i+n+a:"/",c}{const{host:e,path:n,query:a}=t;return n||a?e+n+a+r.hash:i(e)}};function i(e){return e+("/"===e[e.length-1]?"":"/")}function o(e){let n=e.split("/");""===n[0]&&(n=n.slice(1));let t=[];return n.forEach((e,r)=>{"."!==e&&(".."===e?t.pop():""===e&&r!==n.length-1||t.push(e))}),"/"+t.join("/")}const s=new RegExp("^([a-z][a-z0-9+.-]*:)?//","i");const c={null:e=>null===e,boolean:e=>"boolean"==typeof e,object:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,array:e=>Array.isArray(e),number:e=>"number"==typeof e,integer:e=>Number.isInteger(e),string:e=>"string"==typeof e},m=e=>{const n=e.indexOf("#"),t=-1===n?e.length:n,r=e.slice(0,t),a=e.slice(t+1);return[decodeURI(r),decodeURI(a)]},p=e=>{const n=RegExp(/^(.+):\/\//).exec(e);return n?n[1]:""};var l={jsonTypeOf:(e,n)=>c[n](e),splitUrl:m,safeResolveUrl:(e,n)=>{const t=a(e,n),r=m(e)[0];if(r&&"file"===p(t)&&"file"!==p(r))throw Error(`Can't access file '${t}' resource from network context '${e}'`);return t}};const u=e=>{if(e.length>0&&"/"!==e[0])throw Error("Invalid JSON Pointer");return e.split("/").slice(1).map(b)},d=(e,n,t,r)=>{if(0===e.length)return t;if(e.length>1){const a=e.shift();return{...n,[a]:d(e,I(n,a,r),t,v(a,r))}}if(Array.isArray(n)){const r=[...n];return r[$(n,e[0])]=t,r}return"object"==typeof n&&null!==n?{...n,[e[0]]:t}:I(n,e[0],r)},f=(e,n,t,r)=>{if(0!==e.length)if(1!==e.length||O(n)){const a=e.shift();f(e,I(n,a,r),t,v(a,r))}else{n[$(n,e[0])]=t}},y=(e,n,t)=>{if(0!=e.length){if(e.length>1){const r=e.shift(),a=I(n,r,t);return{...n,[r]:y(e,a,v(r,t))}}if(Array.isArray(n))return n.filter((n,t)=>t!=e[0]);if("object"==typeof n&&null!==n){const{[e[0]]:t,...r}=n;return r}return I(n,e[0],t)}},h=(e,n,t)=>{if(0!==e.length)if(e.length>1){const r=e.shift(),a=I(n,r,t);h(e,a,v(r,t))}else Array.isArray(n)?n.splice(e[0],1):"object"==typeof n&&null!==n?delete n[e[0]]:I(n,e[0],t)},v=n((e,n)=>n+"/"+g(e)),g=e=>e.toString().replace(/~/g,"~0").replace(/\//g,"~1"),b=e=>e.toString().replace(/~1/g,"/").replace(/~0/g,"~"),$=(e,n)=>Array.isArray(e)&&"-"===n?e.length:n,I=(e,n,t="")=>{if(void 0===e)throw TypeError(`Value at '${t}' is undefined and does not have property '${n}'`);if(null===e)throw TypeError(`Value at '${t}' is null and does not have property '${n}'`);if(O(e))throw TypeError(`Value at '${t}' is a ${typeof e} and does not have property '${n}'`);return e[$(e,n)]},O=e=>null===e||"object"!=typeof e;var S={nil:"",append:v,get:(e,n)=>{const t=u(e),r=e=>t.reduce(([e,n],t)=>[I(e,t,n),v(t,n)],[e,""])[0];return void 0===n?r:r(n)},set:(e,t,r)=>{const a=u(e),i=n((e,n)=>d(a,e,n,""));return void 0===t?i:i(t,r)},assign:(e,t,r)=>{const a=u(e),i=n((e,n)=>f(a,e,n,""));return void 0===t?i:i(t,r)},unset:(e,n)=>{const t=u(e),r=e=>y(t,e,"");return void 0===n?r:r(n)},remove:(e,n)=>{const t=u(e),r=e=>h(t,e,"");return void 0===n?r:r(n)}};S.nil,S.append,S.get,S.set,S.assign,S.unset,S.remove;const j=Symbol("$__value"),x=Symbol("$__href");var w={cons:(e,n)=>Object.freeze({[x]:e,[j]:n}),isReference:e=>e&&void 0!==e[x],href:e=>e[x],value:e=>e[j]};const{jsonTypeOf:P}=l,E=Object.freeze({id:"",pointer:"",instance:void 0,value:void 0}),A=e=>w.isReference(e.value)?w.value(e.value):e.value,C=n((e,n)=>P(A(e),n)),N=(e,n)=>Object.freeze({...n,pointer:S.append(e,n.pointer),value:A(n)[e]}),R=n((e,n)=>A(n).map((t,r,a,i)=>e(N(r,n),r,a,i))),T=n((e,n)=>A(n).map((e,t,r,a)=>N(t,n)).filter((n,t,r,a)=>e(n,t,r,a))),D=n((e,n,t)=>A(t).reduce((n,r,a)=>e(n,N(a,t),a),n)),M=n((e,n)=>A(n).every((t,r,a,i)=>e(N(r,n),r,a,i))),k=n((e,n)=>A(n).some((t,r,a,i)=>e(N(r,n),r,a,i)));var q={nil:E,cons:(e,n="")=>Object.freeze({...E,id:n,instance:e,value:e}),uri:e=>`${e.id}#${encodeURI(e.pointer)}`,value:A,has:(e,n)=>e in A(n),typeOf:C,step:N,entries:e=>Object.keys(A(e)).map(n=>[n,N(n,e)]),keys:e=>Object.keys(A(e)),map:R,filter:T,reduce:D,every:M,some:k,length:e=>A(e).length},L=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,V=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,J=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,_=/\\([\u000b\u0020-\u00ff])/g,U=/([\\"])/g,z=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function F(e){var n=String(e);if(J.test(n))return n;if(n.length>0&&!V.test(n))throw new TypeError("invalid parameter value");return'"'+n.replace(U,"\\$1")+'"'}function K(e){this.parameters=Object.create(null),this.type=e}var B={format:function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var n=e.parameters,t=e.type;if(!t||!z.test(t))throw new TypeError("invalid type");var r=t;if(n&&"object"==typeof n)for(var a,i=Object.keys(n).sort(),o=0;o<i.length;o++){if(a=i[o],!J.test(a))throw new TypeError("invalid parameter name");r+="; "+a+"="+F(n[a])}return r},parse:function(e){if(!e)throw new TypeError("argument string is required");var n="object"==typeof e?function(e){var n;"function"==typeof e.getHeader?n=e.getHeader("content-type"):"object"==typeof e.headers&&(n=e.headers&&e.headers["content-type"]);if("string"!=typeof n)throw new TypeError("content-type header is missing from object");return n}(e):e;if("string"!=typeof n)throw new TypeError("argument string is required to be a string");var t=n.indexOf(";"),r=-1!==t?n.substr(0,t).trim():n.trim();if(!z.test(r))throw new TypeError("invalid media type");var a=new K(r.toLowerCase());if(-1!==t){var i,o,s;for(L.lastIndex=t;o=L.exec(n);){if(o.index!==t)throw new TypeError("invalid parameter format");t+=o[0].length,i=o[1].toLowerCase(),'"'===(s=o[2])[0]&&(s=s.substr(1,s.length-2).replace(_,"$1")),a.parameters[i]=s}if(t!==n.length)throw new TypeError("invalid parameter format")}return a}},Z=async e=>Object.entries(await e),G=n(async(e,n)=>(await n).map(e)),W=n(async(e,n,t)=>(await t).reduce(async(n,t)=>e(await n,t),n)),X=n(async(e,n,t={})=>W(async(n,t)=>await e(t)?n.concat([t]):n,[],n,t)),H=n(async(e,n)=>{const t=await G(e,n);return(await Promise.all(t)).some(e=>e)}),Q=n(async(e,n)=>{const t=await G(e,n);return(await Promise.all(t)).every(e=>e)}),Y=n((e,n)=>e.reduce(async(e,n)=>n(await e),n)),ee={entries:Z,map:G,filter:X,reduce:W,some:H,every:Q,pipeline:Y,all:e=>Promise.all(e),allValues:e=>Y([Z,W(async(e,[n,t])=>(e[n]=await t,e),{})],e)};ee.entries,ee.map,ee.filter,ee.reduce,ee.some,ee.every,ee.pipeline,ee.all,ee.allValues;var ne=fetch;const{jsonTypeOf:te,splitUrl:re,safeResolveUrl:ae}=l,ie={},oe={},se=(e,n)=>{const t=e in oe?oe[e]:e;if(t in ie)return ie[t][n]},ce={},me={},pe=(e,n="",t="")=>{e=JSON.parse(JSON.stringify(e));const r=re(e.$schema||t)[0];if(!r)throw Error("Couldn't determine schema version");delete e.$schema;const a=se(r,"baseToken"),i=se(r,"anchorToken"),o=re(n)[0];if(!o&&!re(e[a]||"")[0])throw Error("Couldn't determine an identifier for the schema");const s=ae(o,e[a]||""),[c,m]=re(s);delete e[a],m&&a===i&&(e[i]=i!==a?encodeURI(m):"#"+encodeURI(m)),o&&(me[o]=c);const p={},l=se(r,"recursiveAnchorToken");let u;!0===e[l]&&(p[""]=c+"#",e[i]="",delete e[l]);const d=se(r,"vocabularyToken");te(e[d],"object")?(oe[c]=r,u=e[d],delete e[d]):(oe[c]=r,u={[r]:!0});const f={"":""};return ce[c]={id:c,schemaVersion:r,schema:le(e,c,r,S.nil,f,p),anchors:f,dynamicAnchors:p,vocabulary:u,validated:!1},c},le=(e,n,t,r,a,i)=>{if(te(e,"object")){const o="string"==typeof e.$schema?re(e.$schema)[0]:t,s=se(o,"embeddedToken"),c=se(o,"anchorToken");if("string"==typeof e[s]&&(s!==c||"#"!==e[s][0])){const r=ae(n,e[s]);return e[s]=r,pe(e,r,t),w.cons(e[s],e)}const m=se(t,"anchorToken"),p=se(t,"dynamicAnchorToken");"string"==typeof e[p]&&(i[e[p]]=`${n}#${encodeURI(r)}`,a[e[p]]=r,delete e[p]);const l=se(t,"embeddedToken");if("string"==typeof e[m]){const n=m!==l?e[m]:e[m].slice(1);a[n]=r,delete e[m]}const u=se(t,"jrefToken");if("string"==typeof e[u])return w.cons(e[u],e);for(const o in e)e[o]=le(e[o],n,t,S.append(o,r),a,i);return e}return Array.isArray(e)?e.map((e,o)=>le(e,n,t,S.append(o,r),a,i)):e},ue=e=>ce[me[e]]||ce[e],de=Object.freeze({id:"",schemaVersion:void 0,vocabulary:{},pointer:S.nil,schema:void 0,value:void 0,anchors:{},dynamicAnchors:{},validated:!0}),fe=async(e,n=de)=>{const t=ae(ve(n),e),[r,a]=re(t);if(!(e=>e in ce||e in me)(r)){const e=await ne(r,{headers:{Accept:"application/schema+json"}});if(e.status>=400)throw await e.text(),Error("Failed to retrieve schema with id: "+r);if(e.headers.has("content-type")){const n=B.parse(e.headers.get("content-type")).type;if("application/schema+json"!==n)throw Error(`${r} is not a schema. Found a document with media type: ${n}`)}pe(await e.json(),r)}const i=ue(r),o="/"!==a[0]?he(i,a):a,s=Object.freeze({...i,pointer:o,value:S.get(o,i.schema)});return ye(s)},ye=e=>w.isReference(e.value)?fe(w.href(e.value),e):e,he=(e,n)=>{if(!(n in e.anchors))throw Error(`No such anchor '${encodeURI(e.id)}#${encodeURI(n)}'`);return e.anchors[n]},ve=e=>`${e.id}#${encodeURI(e.pointer)}`,ge=e=>w.isReference(e.value)?w.value(e.value):e.value,be=(e,n)=>{const t=ue(n.id),r=Object.freeze({...n,pointer:S.append(e,n.pointer),value:ge(n)[e],validated:t.validated});return ye(r)},$e=n((e,n)=>ee.pipeline([ge,ee.map(async(t,r)=>e(await be(r,n),r)),ee.all],n));var Ie={setConfig:(e,n,t)=>{ie[e]||(ie[e]={}),ie[e][n]=t},getConfig:se,add:pe,get:fe,markValidated:e=>{ce[e].validated=!0},uri:ve,value:ge,getAnchorPointer:he,typeOf:(e,n)=>te(ge(e),n),has:(e,n)=>e in ge(n),step:be,keys:e=>Object.keys(ge(e)),entries:e=>ee.pipeline([ge,Object.keys,ee.map(async n=>[n,await be(n,e)]),ee.all],e),map:$e,length:e=>ge(e).length};Ie.setConfig,Ie.getConfig,Ie.add,Ie.get,Ie.markValidated,Ie.uri,Ie.value,Ie.getAnchorPointer,Ie.typeOf,Ie.has,Ie.step,Ie.keys,Ie.entries,Ie.map,Ie.length;class Oe extends Error{constructor(e){super("Invalid Schema"),this.name=this.constructor.name,this.output=e}}var Se=Oe;const{splitUrl:je}=l,xe="FLAG",we="BASIC",Pe="DETAILED",Ee="VERBOSE";let Ae=Pe,Ce=!0;const Ne=async e=>{const n={metaData:{}};return{ast:n,schemaUri:await Ve(e,n)}},Re=n(({ast:e,schemaUri:n},t,a=xe)=>{if(![xe,we,Pe,Ee].includes(a))throw Error(`The '${a}' error format is not supported`);const i=[],o=r.subscribe("result",Te(a,i));return _e(n,t,e,{}),r.unsubscribe(o),i[0]}),Te=(e,n)=>{const t=[];return(r,a)=>{if("result"===r){const{keyword:e,absoluteKeywordLocation:n,instanceLocation:r,valid:i}=a,o={keyword:e,absoluteKeywordLocation:n,instanceLocation:r,valid:i,errors:[]};t.push(o)}else if("result.start"===r)t.push(r);else if("result.end"===r){const r=t.pop();for(;"result.start"!==t[t.length-1];){const n=t.pop(),a=[n];e===we&&(a.push(...n.errors),delete n.errors),(e===Ee||e!==xe&&!n.valid)&&r.errors.unshift(...a)}t[t.length-1]=r,n[0]=r}}},De={},Me=e=>De[e],ke=e=>e in De,qe={},Le={},Ve=async(e,n)=>{if(e=await Je(e),!ke(e.schemaVersion+"#validate")){const n=await Ie.get(e.schemaVersion);(Ie.getConfig(n.id,"mandatoryVocabularies")||[]).forEach(e=>{if(!n.vocabulary[e])throw Error(`Vocabulary '${e}' must be explicitly declared and required`)}),Object.entries(n.vocabulary).forEach(([e,t])=>{if(e in qe)Object.entries(qe[e]).forEach(([e,t])=>{((e,n)=>{De[e]={collectEvaluatedItems:(e,t,r,a,i)=>n.interpret(e,t,r,a,i)&&new Set,collectEvaluatedProperties:(e,t,r,a,i)=>n.interpret(e,t,r,a,i)&&[],...n}})(`${n.id}#${e}`,t)});else if(t)throw Error("Missing required vocabulary: "+e)})}if(Ce&&!e.validated){if(Ie.markValidated(e.id),!(e.schemaVersion in Le)){const n=await Ie.get(e.schemaVersion),t=await Ne(n);Le[n.id]=Re(t)}const n=q.cons(e.schema,e.id),t=Le[e.schemaVersion](n,Ae);if(!t.valid)throw new Se(t)}return e.id in n.metaData||(n.metaData[e.id]={id:e.id,dynamicAnchors:e.dynamicAnchors,anchors:e.anchors}),Me(e.schemaVersion+"#validate").compile(e,n)},Je=async e=>Ie.typeOf(e,"string")?Je(await Ie.get(Ie.value(e),e)):e,_e=(e,n,t,r)=>{const a=Ue(e,t),i=je(e)[0];return Me(a).interpret(e,n,t,{...t.metaData[i].dynamicAnchors,...r})},Ue=(e,n)=>{if(!(e in n))throw Error("No schema found at "+e);return n[e][0]};var ze={validate:async(e,n,t)=>{const r=await Ne(e),a=(e,n)=>Re(r,q.cons(e),n);return void 0===n?a:a(n,t)},compile:Ne,interpret:Re,setMetaOutputFormat:e=>{Ae=e},setShouldMetaValidate:e=>{Ce=e},FLAG:xe,BASIC:we,DETAILED:Pe,VERBOSE:Ee,add:(e,n="",t="")=>{const r=Ie.add(e,n,t);delete Le[r]},getKeyword:Me,hasKeyword:ke,defineVocabulary:(e,n)=>{qe[e]=n},compileSchema:Ve,interpretSchema:_e,collectEvaluatedProperties:(e,n,t,r,a)=>{const i=Ue(e,t);return Me(i).collectEvaluatedProperties(e,n,t,r,a)},collectEvaluatedItems:(e,n,t,r,a)=>{const i=Ue(e,t);return Me(i).collectEvaluatedItems(e,n,t,r,a)}};var Fe={compile:e=>Ie.value(e),interpret:()=>!0};var Ke={compile:async(e,n)=>{const t=Ie.uri(e);if(!(t in n)){n[t]=!1;const r=Ie.value(e);if(!["object","boolean"].includes(typeof r))throw Error(`No schema found at '${Ie.uri(e)}'`);n[t]=[e.schemaVersion+"#validate",Ie.uri(e),"boolean"==typeof r?r:await ee.pipeline([Ie.entries,ee.map(([n,t])=>[`${e.schemaVersion}#${n}`,t]),ee.filter(([n])=>ze.hasKeyword(n)&&n!==e.schemaVersion+"#validate"),ee.map(async([t,r])=>{const a=await ze.getKeyword(t).compile(r,n,e);return[t,Ie.uri(r),a]}),ee.all],e)]}return t},interpret:(e,n,t,a)=>{const[i,o,s]=t[e];r.publishSync("result.start");const c="boolean"==typeof s?s:s.every(([e,i,o])=>{r.publishSync("result.start");const s=ze.getKeyword(e).interpret(o,n,t,a);return r.publishSync("result",{keyword:e,absoluteKeywordLocation:i,instanceLocation:q.uri(n),valid:s,ast:o}),r.publishSync("result.end"),s});return r.publishSync("result",{keyword:i,absoluteKeywordLocation:o,instanceLocation:q.uri(n),valid:c,ast:e}),r.publishSync("result.end"),c},collectEvaluatedProperties:(e,n,t,r,a=!1)=>{const i=t[e][2];return"boolean"==typeof i?!!i&&[]:i.filter(([e])=>!a||!e.endsWith("#unevaluatedProperties")).reduce((e,[a,,i])=>{const o=e&&ze.getKeyword(a).collectEvaluatedProperties(i,n,t,r);return!1!==o&&[...e,...o]},[])},collectEvaluatedItems:(e,n,t,r,a=!1)=>{const i=t[e][2];return"boolean"==typeof i?!!i&&new Set:i.filter(([e])=>!a||!e.endsWith("#unevaluatedItems")).reduce((e,[a,,i])=>{const o=!1!==e&&ze.getKeyword(a).collectEvaluatedItems(i,n,t,r);return!1!==o&&new Set([...e,...o])},new Set)}},Be={metaData:Fe,validate:Ke},Ze={Core:ze,Schema:Ie,Instance:q,Reference:w,Keywords:Be,InvalidSchemaError:Se};const{Core:Ge,Schema:We,Instance:Xe}=Ze;var He={compile:async(e,n,t)=>{const r=await We.step("items",t),a=We.typeOf(r,"array")?We.length(r):Number.MAX_SAFE_INTEGER;return We.typeOf(e,"boolean")?[a,We.value(e)]:[a,await Ge.compileSchema(e,n)]},interpret:([e,n],t,r,a)=>!Xe.typeOf(t,"array")||("string"==typeof n?Xe.every((t,i)=>i<e||Ge.interpretSchema(n,t,r,a),t):Xe.every((t,r)=>r<e||n,t))};const{Core:Qe,Schema:Ye,Instance:en}=Ze,nn=([e,n],t,r,a)=>!en.typeOf(t,"array")||en.every((t,i)=>i<e||Qe.interpretSchema(n,t,r,a),t);var tn={compile:async(e,n,t)=>{const r=await Ye.step("items",t);return[Ye.typeOf(r,"array")?Ye.length(r):Number.MAX_SAFE_INTEGER,await Qe.compileSchema(e,n)]},interpret:nn,collectEvaluatedItems:(e,n,t,r)=>nn(e,n,t,r)&&new Set(en.map((e,n)=>n,n))};const{Core:rn,Schema:an,Instance:on}=Ze;var sn={compile:async(e,n,t)=>{const r=await an.step("properties",t),a=an.typeOf(r,"object")?an.keys(r):[],i=await an.step("patternProperties",t),o=an.typeOf(i,"object")?an.keys(i).map(e=>new RegExp(e)):[];return an.typeOf(e,"boolean")?[a,o,an.value(e)]:[a,o,await rn.compileSchema(e,n)]},interpret:([e,n,t],r,a,i)=>{if(!on.typeOf(r,"object"))return!0;const o=on.entries(r).filter(([t])=>!e.includes(t)&&!n.some(e=>e.test(t)));return"string"==typeof t?o.every(([,e])=>rn.interpretSchema(t,e,a,i)):0===o.length||t}};const{Core:cn,Schema:mn,Instance:pn}=Ze,ln=([e,n,t],r,a,i)=>!pn.typeOf(r,"object")||pn.entries(r).filter(([t])=>!e.includes(t)&&!n.some(e=>e.test(t))).every(([,e])=>cn.interpretSchema(t,e,a,i));var un={compile:async(e,n,t)=>{const r=await mn.step("properties",t),a=mn.typeOf(r,"object")?mn.keys(r):[],i=await mn.step("patternProperties",t);return[a,mn.typeOf(i,"object")?mn.keys(i).map(e=>new RegExp(e)):[],await cn.compileSchema(e,n)]},interpret:ln,collectEvaluatedProperties:(e,n,t,r)=>ln(e,n,t,r)&&[new RegExp("")]};const{Core:dn,Schema:fn}=Ze;var yn={compile:(e,n)=>ee.pipeline([fn.map(async e=>dn.compileSchema(await e,n)),ee.all],e),interpret:(e,n,t,r)=>e.every(e=>dn.interpretSchema(e,n,t,r)),collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,a)=>{const i=e&&dn.collectEvaluatedProperties(a,n,t,r);return!1!==i&&[...e,...i]},[]),collectEvaluatedItems:(e,n,t,r)=>e.reduce((e,a)=>{const i=!1!==e&&dn.collectEvaluatedItems(a,n,t,r);return!1!==i&&new Set([...e,...i])},new Set)};const{Core:hn,Schema:vn}=Ze;var gn={compile:(e,n)=>ee.pipeline([vn.map(async e=>hn.compileSchema(await e,n)),ee.all],e),interpret:(e,n,t,r)=>e.filter(e=>hn.interpretSchema(e,n,t,r)).length>0,collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,a)=>{const i=hn.collectEvaluatedProperties(a,n,t,r);return!1!==i?[...e||[],...i]:e},!1),collectEvaluatedItems:(e,n,t,r)=>e.reduce((e,a)=>{const i=hn.collectEvaluatedItems(a,n,t,r);return!1!==i?new Set([...e||[],...i]):e},!1)},bn=Object.keys,$n=JSON.stringify;var In=function(e){return""+function e(n,t){var r,a,i,o,s,c,m;if("string"===(m=typeof n))return $n(n);if(!0===n)return"true";if(!1===n)return"false";if(null===n)return"null";if(n instanceof Array){for(i="[",a=n.length-1,r=0;r<a;r++)i+=e(n[r],!1)+",";return a>-1&&(i+=e(n[r],!1)),i+"]"}if(n instanceof Object){if("function"==typeof n.toJSON)return e(n.toJSON(),t);for(a=(o=bn(n).sort()).length,i="",r=0;r<a;)void 0!==(c=e(n[s=o[r]],!0))&&(r&&""!==i&&(i+=","),i+=$n(s)+":"+c),r++;return"{"+i+"}"}switch(m){case"function":case"undefined":return t?void 0:null;default:return isFinite(n)?n:null}}(e,!1)};const{Schema:On,Instance:Sn}=Ze;var jn={compile:e=>In(On.value(e)),interpret:(e,n)=>In(Sn.value(n))===e};const{Core:xn,Instance:wn}=Ze;var Pn={compile:(e,n)=>xn.compileSchema(e,n),interpret:(e,n,t,r)=>!wn.typeOf(n,"array")||wn.some(n=>xn.interpretSchema(e,n,t,r),n)};const{Core:En,Schema:An,Instance:Cn}=Ze,Nn=({contains:e,minContains:n,maxContains:t},r,a,i)=>{if(!Cn.typeOf(r,"array"))return!0;const o=Cn.reduce((n,t)=>En.interpretSchema(e,t,a,i)?n+1:n,0,r);return o>=n&&o<=t};var Rn={compile:async(e,n,t)=>{const r=await En.compileSchema(e,n),a=await An.step("minContains",t),i=An.typeOf(a,"number")?An.value(a):1,o=await An.step("maxContains",t);return{contains:r,minContains:i,maxContains:An.typeOf(o,"number")?An.value(o):Number.MAX_SAFE_INTEGER}},interpret:Nn,collectEvaluatedItems:(e,n,t,r)=>Nn(e,n,t,r)&&Cn.reduce((n,a,i)=>En.interpretSchema(e.contains,a,t,r)?n.add(i):n,new Set,n)};const{Core:Tn,Schema:Dn}=Ze;var Mn={compile:async(e,n)=>{await ee.pipeline([Dn.entries,ee.map(([,e])=>Tn.compileSchema(e,n)),ee.all],e)},interpret:()=>!0};const{Core:kn,Schema:qn,Instance:Ln}=Ze;var Vn={compile:(e,n)=>ee.pipeline([qn.entries,ee.map(async([e,t])=>[e,qn.typeOf(t,"array")?qn.value(t):await kn.compileSchema(t,n)]),ee.all],e),interpret:(e,n,t,r)=>{const a=Ln.value(n);return!Ln.typeOf(n,"object")||e.every(([e,i])=>!(e in a)||(Array.isArray(i)?i.every(e=>e in a):kn.interpretSchema(i,n,t,r)))}};const{Schema:Jn,Instance:_n}=Ze;var Un={compile:e=>ee.pipeline([Jn.entries,ee.map(([e,n])=>[e,Jn.value(n)]),ee.all],e),interpret:(e,n)=>{const t=_n.value(n);return!_n.typeOf(n,"object")||e.every(([e,n])=>!(e in t)||n.every(e=>e in t))}};const{Core:zn,Schema:Fn,Instance:Kn}=Ze;var Bn={compile:(e,n)=>ee.pipeline([Fn.entries,ee.map(async([e,t])=>[e,await zn.compileSchema(t,n)]),ee.all],e),interpret:(e,n,t,r)=>{const a=Kn.value(n);return!Kn.typeOf(n,"object")||e.every(([e,i])=>!(e in a)||zn.interpretSchema(i,n,t,r))},collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,[a,i])=>{if(!e||!Kn.has(a,n))return e;const o=zn.collectEvaluatedProperties(i,n,t,r);return!1!==o&&e.concat(o)},[])};const{Schema:Zn,Instance:Gn}=Ze;var Wn={compile:e=>Zn.value(e).map(In),interpret:(e,n)=>e.some(e=>In(Gn.value(n))===e)};const{Schema:Xn,Instance:Hn}=Ze;var Qn={compile:async e=>Xn.value(e),interpret:(e,n)=>!Hn.typeOf(n,"number")||Hn.value(n)<e};const{Schema:Yn,Instance:et}=Ze;var nt={compile:async e=>Yn.value(e),interpret:(e,n)=>!et.typeOf(n,"number")||et.value(n)>e};const{Core:tt}=Ze;var rt={compile:(e,n)=>tt.compileSchema(e,n),interpret:(e,n,t,r)=>(tt.interpretSchema(e,n,t,r),!0),collectEvaluatedProperties:(e,n,t,r)=>tt.collectEvaluatedProperties(e,n,t,r)||[],collectEvaluatedItems:(e,n,t,r)=>tt.collectEvaluatedItems(e,n,t,r)||new Set};const{Core:at,Schema:it}=Ze,ot=(e,n,t,r)=>{const a=t[e][2];return"boolean"==typeof a?a:a.every(([e,,a])=>at.getKeyword(e).interpret(a,n,t,r))};var st={compile:async(e,n,t)=>{if(it.has("if",t)){const r=await it.step("if",t);return[await at.compileSchema(r,n),await at.compileSchema(e,n)]}return[]},interpret:([e,n],t,r,a)=>void 0===e||!ot(e,t,r,a)||at.interpretSchema(n,t,r,a),collectEvaluatedProperties:([e,n],t,r,a)=>void 0!==e&&ot(e,t,r,a)?at.collectEvaluatedProperties(n,t,r,a):[],collectEvaluatedItems:([e,n],t,r,a)=>void 0!==e&&ot(e,t,r,a)?at.collectEvaluatedItems(n,t,r,a):new Set};const{Core:ct,Schema:mt}=Ze,pt=(e,n,t,r)=>{const a=t[e][2];return"boolean"==typeof a?a:a.every(([e,,a])=>ct.getKeyword(e).interpret(a,n,t,r))};var lt={compile:async(e,n,t)=>{if(mt.has("if",t)){const r=await mt.step("if",t);return[await ct.compileSchema(r,n),await ct.compileSchema(e,n)]}return[]},interpret:([e,n],t,r,a)=>void 0===e||pt(e,t,r,a)||ct.interpretSchema(n,t,r,a),collectEvaluatedProperties:([e,n],t,r,a)=>void 0===e||pt(e,t,r,a)?[]:ct.collectEvaluatedProperties(n,t,r,a),collectEvaluatedItems:([e,n],t,r,a)=>void 0===e||pt(e,t,r,a)?new Set:ct.collectEvaluatedItems(n,t,r,a)};const{Core:ut,Schema:dt,Instance:ft}=Ze,yt=(e,n,t,r)=>!ft.typeOf(n,"array")||("string"==typeof e?ft.every(n=>ut.interpretSchema(e,n,t,r),n):ft.every((n,a)=>!(a in e)||ut.interpretSchema(e[a],n,t,r),n));var ht={compile:async(e,n)=>{if(dt.typeOf(e,"array")){const t=await dt.map(e=>ut.compileSchema(e,n),e);return Promise.all(t)}return ut.compileSchema(e,n)},interpret:yt,collectEvaluatedItems:(e,n,t,r)=>yt(e,n,t,r)&&("string"==typeof e?new Set(ft.map((e,n)=>n,n)):new Set(e.map((e,n)=>n)))};const{Core:vt,Schema:gt,Instance:bt}=Ze,$t=([e,n],t,r,a)=>!bt.typeOf(t,"array")||bt.every((t,i)=>i<e||vt.interpretSchema(n,t,r,a),t);var It={compile:async(e,n,t)=>{const r=await gt.step("prefixItems",t);return[gt.typeOf(r,"array")?gt.length(r):0,await vt.compileSchema(e,n)]},interpret:$t,collectEvaluatedItems:(e,n,t,r)=>$t(e,n,t,r)&&new Set(bt.map((e,n)=>n,n))};const{Schema:Ot,Instance:St}=Ze;var jt={compile:e=>Ot.value(e),interpret:(e,n)=>!St.typeOf(n,"array")||St.length(n)<=e};const{Schema:xt,Instance:wt}=Ze;var Pt={compile:e=>xt.value(e),interpret:(e,n)=>!wt.typeOf(n,"string")||wt.length(n)<=e};const{Schema:Et,Instance:At}=Ze;var Ct={compile:e=>Et.value(e),interpret:(e,n)=>!At.typeOf(n,"string")||[...At.value(n)].length<=e};const{Schema:Nt,Instance:Rt}=Ze;var Tt={compile:e=>Nt.value(e),interpret:(e,n)=>!Rt.typeOf(n,"object")||Rt.keys(n).length<=e};const{Schema:Dt,Instance:Mt}=Ze;var kt={compile:async(e,n,t)=>{const r=await Dt.step("exclusiveMaximum",t),a=Dt.value(r);return[Dt.value(e),a]},interpret:([e,n],t)=>{if(!Mt.typeOf(t,"number"))return!0;const r=Mt.value(t);return n?r<e:r<=e}};const{Schema:qt,Instance:Lt}=Ze;var Vt={compile:async e=>qt.value(e),interpret:(e,n)=>!Lt.typeOf(n,"number")||Lt.value(n)<=e};const{Schema:Jt,Instance:_t}=Ze;var Ut={compile:e=>Jt.value(e),interpret:(e,n)=>!_t.typeOf(n,"array")||_t.length(n)>=e};const{Schema:zt,Instance:Ft}=Ze;var Kt={compile:e=>zt.value(e),interpret:(e,n)=>!Ft.typeOf(n,"string")||Ft.length(n)>=e};const{Schema:Bt,Instance:Zt}=Ze;var Gt={compile:e=>Bt.value(e),interpret:(e,n)=>!Zt.typeOf(n,"string")||[...Zt.value(n)].length>=e};const{Schema:Wt,Instance:Xt}=Ze;var Ht={compile:e=>Wt.value(e),interpret:(e,n)=>!Xt.typeOf(n,"object")||Xt.keys(n).length>=e};const{Schema:Qt,Instance:Yt}=Ze;var er={compile:async(e,n,t)=>{const r=await Qt.step("exclusiveMinimum",t),a=Qt.value(r);return[Qt.value(e),a]},interpret:([e,n],t)=>{if(!Yt.typeOf(t,"number"))return!0;const r=Yt.value(t);return n?r>e:r>=e}};const{Schema:nr,Instance:tr}=Ze;var rr={compile:async e=>nr.value(e),interpret:(e,n)=>!tr.typeOf(n,"number")||tr.value(n)>=e};const{Schema:ar,Instance:ir}=Ze,or=(e,n)=>Math.abs(e-n)<1.1920929e-7;var sr={compile:e=>ar.value(e),interpret:(e,n)=>{if(!ir.typeOf(n,"number"))return!0;const t=ir.value(n)%e;return or(0,t)||or(e,t)}};const{Core:cr}=Ze;var mr={compile:cr.compileSchema,interpret:(e,n,t,r)=>!cr.interpretSchema(e,n,t,r)};const{Core:pr,Schema:lr}=Ze;var ur={compile:async(e,n)=>{const t=await lr.map(e=>pr.compileSchema(e,n),e);return Promise.all(t)},interpret:(e,n,t,r)=>{let a=0;for(const i of e)if(pr.interpretSchema(i,n,t,r)&&a++,a>1)break;return 1===a},collectEvaluatedProperties:(e,n,t,r)=>{let a=0;return e.reduce((e,i)=>{if(a>1)return!1;const o=pr.collectEvaluatedProperties(i,n,t,r);return o?0==a++&&o:e},!1)},collectEvaluatedItems:(e,n,t,r)=>{let a=0;return e.reduce((e,i)=>{if(a>1)return!1;const o=pr.collectEvaluatedItems(i,n,t,r);return o?0==a++&&o:e},!1)}};const{Schema:dr,Instance:fr}=Ze;var yr={compile:e=>new RegExp(dr.value(e),"u"),interpret:(e,n)=>!fr.typeOf(n,"string")||e.test(fr.value(n))};const{Core:hr,Schema:vr,Instance:gr}=Ze,br=(e,n,t,r)=>!gr.typeOf(n,"object")||e.every(([e,a])=>gr.entries(n).filter(([n])=>e.test(n)).every(([,e])=>hr.interpretSchema(a,e,t,r)));var $r={compile:(e,n)=>ee.pipeline([vr.entries,ee.map(async([e,t])=>[new RegExp(e,"u"),await hr.compileSchema(t,n)]),ee.all],e),interpret:br,collectEvaluatedProperties:(e,n,t,r)=>br(e,n,t,r)&&e.map(([e])=>e)};var Ir={isObject:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,escapeRegExp:e=>e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),splitUrl:e=>{const n=e.indexOf("#"),t=-1===n?e.length:n,r=e.slice(0,t),a=e.slice(t+1);return[decodeURI(r),decodeURI(a)]}};const{Core:Or,Schema:Sr,Instance:jr}=Ze,{escapeRegExp:xr}=Ir,wr=(e,n,t,r)=>!jr.typeOf(n,"object")||jr.entries(n).filter(([n])=>n in e).every(([n,a])=>Or.interpretSchema(e[n],a,t,r));var Pr={compile:(e,n)=>ee.pipeline([Sr.entries,ee.reduce(async(e,[t,r])=>(e[t]=await Or.compileSchema(r,n),e),Object.create(null))],e),interpret:wr,collectEvaluatedProperties:(e,n,t,r)=>wr(e,n,t,r)&&Object.keys(e).map(e=>new RegExp(`^${xr(e)}$`))};const{Core:Er,Instance:Ar}=Ze;var Cr={compile:(e,n)=>Er.compileSchema(e,n),interpret:(e,n,t,r)=>!Ar.typeOf(n,"object")||Ar.keys(n).every(n=>Er.interpretSchema(e,Ar.cons(n),t,r))};const{Core:Nr,Schema:Rr}=Ze,{splitUrl:Tr}=Ir;var Dr={compile:async(e,n)=>{const[,t]=Tr(Rr.value(e)),r=await Rr.get(Rr.value(e),e);return await Nr.compileSchema(r,n),[r.id,t]},interpret:([e,n],t,r,a)=>{if(n in r.metaData[e].dynamicAnchors)return Nr.interpretSchema(a[n],t,r,a);{const i=Rr.getAnchorPointer(r.metaData[e],n);return Nr.interpretSchema(`${e}#${encodeURI(i)}`,t,r,a)}},collectEvaluatedProperties:Nr.collectEvaluatedProperties,collectEvaluatedItems:Nr.collectEvaluatedItems};const{Core:Mr,Schema:kr}=Ze;var qr={compile:async(e,n)=>{const t=await kr.get(kr.value(e),e);return Mr.compileSchema(t,n)},interpret:Mr.interpretSchema,collectEvaluatedProperties:Mr.collectEvaluatedProperties,collectEvaluatedItems:Mr.collectEvaluatedItems};const{Schema:Lr,Instance:Vr}=Ze;var Jr={compile:e=>Lr.value(e),interpret:(e,n)=>!Vr.typeOf(n,"object")||e.every(e=>Object.prototype.hasOwnProperty.call(Vr.value(n),e))};const{Core:_r,Schema:Ur,Instance:zr}=Ze,Fr=(e,n,t,r)=>!zr.typeOf(n,"array")||zr.every((n,a)=>!(a in e)||_r.interpretSchema(e[a],n,t,r),n);var Kr={compile:(e,n)=>ee.pipeline([Ur.map(e=>_r.compileSchema(e,n)),ee.all],e),interpret:Fr,collectEvaluatedItems:(e,n,t,r)=>Fr(e,n,t,r)&&new Set(e.map((e,n)=>n))};const{Schema:Br,Instance:Zr}=Ze;var Gr={compile:e=>Br.value(e),interpret:(e,n)=>"string"==typeof e?Zr.typeOf(n,e):e.some(Zr.typeOf(n))};const{Core:Wr,Schema:Xr,Instance:Hr}=Ze,Qr=([e,n],t,r,a)=>{if(!Hr.typeOf(t,"array"))return!0;const i=Wr.collectEvaluatedItems(e,t,r,a,!0);return!1===i||Hr.every((e,o)=>i.has(o)||Wr.interpretSchema(n,Hr.step(o,t),r,a),t)};var Yr={compile:async(e,n,t)=>[Xr.uri(t),await Wr.compileSchema(e,n)],interpret:Qr,collectEvaluatedItems:(e,n,t,r)=>Qr(e,n,t,r)&&new Set(Hr.map((e,n)=>n,n))};const{Core:ea,Schema:na,Instance:ta}=Ze,ra=([e,n],t,r,a)=>{if(!ta.typeOf(t,"object"))return!0;const i=ea.collectEvaluatedProperties(e,t,r,a,!0);return!i||ta.entries(t).filter(([e])=>!i.some(n=>e.match(n))).every(([,e])=>ea.interpretSchema(n,e,r,a))};var aa={compile:async(e,n,t)=>[na.uri(t),await ea.compileSchema(e,n)],interpret:ra,collectEvaluatedProperties:(e,n,t,r)=>ra(e,n,t,r)&&[new RegExp("")]};const{Schema:ia,Instance:oa}=Ze;var sa={compile:e=>ia.value(e),interpret:(e,n)=>{if(!oa.typeOf(n,"array")||!1===e)return!0;const t=oa.map(e=>In(oa.value(e)),n);return new Set(t).size===t.length}};const{Keywords:ca}=Ze;var ma={additionalItems:He,additionalItems6:tn,additionalProperties:sn,additionalProperties6:un,allOf:yn,anyOf:gn,const:jn,contains:Pn,containsMinContainsMaxContains:Rn,definitions:Mn,dependencies:Vn,dependentRequired:Un,dependentSchemas:Bn,enum:Wn,exclusiveMaximum:Qn,exclusiveMinimum:nt,if:rt,then:st,else:lt,items:ht,items202012:It,maxItems:jt,maxLength:Pt,maxLength6:Ct,maxProperties:Tt,maximumExclusiveMaximum:kt,maximum:Vt,metaData:ca.metaData,minItems:Ut,minLength:Kt,minLength6:Gt,minProperties:Ht,minimumExclusiveMinimum:er,minimum:rr,multipleOf:sr,not:mr,oneOf:ur,pattern:yr,patternProperties:$r,properties:Pr,propertyNames:Cr,dynamicRef:Dr,ref:qr,required:Jr,tupleItems:Kr,type:Gr,unevaluatedItems:Yr,unevaluatedProperties:aa,uniqueItems:sa,validate:ca.validate};const{Core:pa,Schema:la}=Ze,ua="http://json-schema.org/draft-04/schema";la.setConfig(ua,"baseToken","id"),la.setConfig(ua,"embeddedToken","id"),la.setConfig(ua,"anchorToken","id"),la.setConfig(ua,"jrefToken","$ref"),la.add(JSON.parse('{\n "id": "http://json-schema.org/draft-04/schema#",\n "$schema": "http://json-schema.org/draft-04/schema#",\n "description": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "positiveInteger": {\n "type": "integer",\n "minimum": 0\n },\n "positiveIntegerDefault0": {\n "allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ]\n },\n "simpleTypes": {\n "enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "minItems": 1,\n "uniqueItems": true\n }\n },\n "type": "object",\n "properties": {\n "id": {\n "type": "string"\n },\n "$schema": {\n "type": "string"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": {},\n "multipleOf": {\n "type": "number",\n "minimum": 0,\n "exclusiveMinimum": true\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "boolean",\n "default": false\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "boolean",\n "default": false\n },\n "maxLength": { "$ref": "#/definitions/positiveInteger" },\n "minLength": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": {\n "anyOf": [\n { "type": "boolean" },\n { "$ref": "#" }\n ],\n "default": {}\n },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": {}\n },\n "maxItems": { "$ref": "#/definitions/positiveInteger" },\n "minItems": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxProperties": { "$ref": "#/definitions/positiveInteger" },\n "minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": {\n "anyOf": [\n { "type": "boolean" },\n { "$ref": "#" }\n ],\n "default": {}\n },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "enum": {\n "type": "array",\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "dependencies": {\n "exclusiveMaximum": [ "maximum" ],\n "exclusiveMinimum": [ "minimum" ]\n },\n "default": {}\n}')),pa.defineVocabulary(ua,{validate:ma.validate,additionalItems:ma.additionalItems,additionalProperties:ma.additionalProperties,allOf:ma.allOf,anyOf:ma.anyOf,default:ma.metaData,definitions:ma.definitions,dependencies:ma.dependencies,description:ma.metaData,enum:ma.enum,format:ma.metaData,items:ma.items,maxItems:ma.maxItems,maxLength:ma.maxLength,maxProperties:ma.maxProperties,maximum:ma.maximumExclusiveMaximum,minItems:ma.minItems,minLength:ma.minLength,minProperties:ma.minProperties,minimum:ma.minimumExclusiveMinimum,multipleOf:ma.multipleOf,not:ma.not,oneOf:ma.oneOf,pattern:ma.pattern,patternProperties:ma.patternProperties,properties:ma.properties,required:ma.required,title:ma.metaData,type:ma.type,uniqueItems:ma.uniqueItems});const{Core:da,Schema:fa}=Ze,ya="http://json-schema.org/draft-06/schema";fa.setConfig(ya,"baseToken","$id"),fa.setConfig(ya,"embeddedToken","$id"),fa.setConfig(ya,"anchorToken","$id"),fa.setConfig(ya,"jrefToken","$ref"),fa.add(JSON.parse('{\n "$schema": "http://json-schema.org/draft-06/schema#",\n "$id": "http://json-schema.org/draft-06/schema#",\n "title": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "allOf": [\n { "$ref": "#/definitions/nonNegativeInteger" },\n { "default": 0 }\n ]\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n },\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": {},\n "examples": {\n "type": "array",\n "items": {}\n },\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },\n "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": { "$ref": "#" },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": {}\n },\n "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },\n "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "contains": { "$ref": "#" },\n "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },\n "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": { "$ref": "#" },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "propertyNames": { "$ref": "#" },\n "const": {},\n "enum": {\n "type": "array",\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "default": {}\n}')),da.defineVocabulary(ya,{validate:ma.validate,additionalItems:ma.additionalItems6,additionalProperties:ma.additionalProperties6,allOf:ma.allOf,anyOf:ma.anyOf,const:ma.const,contains:ma.contains,default:ma.metaData,definitions:ma.definitions,dependencies:ma.dependencies,description:ma.metaData,enum:ma.enum,examples:ma.metaData,exclusiveMaximum:ma.exclusiveMaximum,exclusiveMinimum:ma.exclusiveMinimum,format:ma.metaData,items:ma.items,maxItems:ma.maxItems,maxLength:ma.maxLength6,maxProperties:ma.maxProperties,maximum:ma.maximum,minItems:ma.minItems,minLength:ma.minLength6,minProperties:ma.minProperties,minimum:ma.minimum,multipleOf:ma.multipleOf,not:ma.not,oneOf:ma.oneOf,pattern:ma.pattern,patternProperties:ma.patternProperties,properties:ma.properties,propertyNames:ma.propertyNames,required:ma.required,title:ma.metaData,type:ma.type,uniqueItems:ma.uniqueItems});const{Core:ha,Schema:va}=Ze,ga="http://json-schema.org/draft-07/schema";va.setConfig(ga,"baseToken","$id"),va.setConfig(ga,"embeddedToken","$id"),va.setConfig(ga,"anchorToken","$id"),va.setConfig(ga,"jrefToken","$ref"),va.add(JSON.parse('{\n "$schema": "http://json-schema.org/draft-07/schema#",\n "$id": "http://json-schema.org/draft-07/schema#",\n "title": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "allOf": [\n { "$ref": "#/definitions/nonNegativeInteger" },\n { "default": 0 }\n ]\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n },\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$comment": {\n "type": "string"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n },\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },\n "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": { "$ref": "#" },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": true\n },\n "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },\n "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "contains": { "$ref": "#" },\n "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },\n "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": { "$ref": "#" },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "propertyNames": { "$ref": "#" },\n "const": true,\n "enum": {\n "type": "array",\n "items": true,\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "if": { "$ref": "#" },\n "then": { "$ref": "#" },\n "else": { "$ref": "#" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "default": true\n}')),ha.defineVocabulary(ga,{validate:ma.validate,additionalItems:ma.additionalItems6,additionalProperties:ma.additionalProperties6,allOf:ma.allOf,anyOf:ma.anyOf,const:ma.const,contains:ma.contains,default:ma.metaData,definitions:ma.definitions,dependencies:ma.dependencies,description:ma.metaData,enum:ma.enum,exclusiveMaximum:ma.exclusiveMaximum,exclusiveMinimum:ma.exclusiveMinimum,format:ma.metaData,if:ma.if,then:ma.then,else:ma.else,items:ma.items,maxItems:ma.maxItems,maxLength:ma.maxLength6,maxProperties:ma.maxProperties,maximum:ma.maximum,minItems:ma.minItems,minLength:ma.minLength6,minProperties:ma.minProperties,minimum:ma.minimum,multipleOf:ma.multipleOf,not:ma.not,oneOf:ma.oneOf,pattern:ma.pattern,patternProperties:ma.patternProperties,properties:ma.properties,propertyNames:ma.propertyNames,readOnly:ma.metaData,required:ma.required,title:ma.metaData,type:ma.type,uniqueItems:ma.uniqueItems,writeOnly:ma.metaData});const{Core:ba,Schema:$a}=Ze,Ia="https://json-schema.org/draft/2019-09/schema";$a.setConfig(Ia,"baseToken","$id"),$a.setConfig(Ia,"embeddedToken","$id"),$a.setConfig(Ia,"anchorToken","$anchor"),$a.setConfig(Ia,"recursiveAnchorToken","$recursiveAnchor"),$a.setConfig(Ia,"vocabularyToken","$vocabulary"),$a.setConfig(Ia,"mandatoryVocabularies",["https://json-schema.org/draft/2019-09/vocab/core"]),$a.add(JSON.parse('{\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$id": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/core": true,\n "https://json-schema.org/draft/2019-09/vocab/applicator": true,\n "https://json-schema.org/draft/2019-09/vocab/validation": true,\n "https://json-schema.org/draft/2019-09/vocab/meta-data": true,\n "https://json-schema.org/draft/2019-09/vocab/format": false,\n "https://json-schema.org/draft/2019-09/vocab/content": true\n },\n "$recursiveAnchor": true,\n\n "title": "Core and Validation specifications meta-schema",\n "allOf": [\n {"$ref": "meta/core"},\n {"$ref": "meta/applicator"},\n {"$ref": "meta/validation"},\n {"$ref": "meta/meta-data"},\n {"$ref": "meta/format"},\n {"$ref": "meta/content"}\n ],\n "type": ["object", "boolean"],\n "properties": {\n "definitions": {\n "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n },\n "dependencies": {\n "$comment": "\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"",\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$recursiveRef": "#" },\n { "$ref": "meta/validation#/$defs/stringArray" }\n ]\n }\n }\n }\n}')),$a.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/core",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/core": true\n },\n "$recursiveAnchor": true,\n\n "title": "Core vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference",\n "$comment": "Non-empty fragments not allowed.",\n "pattern": "^[^#]*#?$"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$anchor": {\n "type": "string",\n "pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$recursiveRef": {\n "type": "string",\n "format": "uri-reference"\n },\n "$recursiveAnchor": {\n "type": "boolean",\n "default": false\n },\n "$vocabulary": {\n "type": "object",\n "propertyNames": {\n "type": "string",\n "format": "uri"\n },\n "additionalProperties": {\n "type": "boolean"\n }\n },\n "$comment": {\n "type": "string"\n },\n "$defs": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n }\n }\n}')),ba.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/core",{validate:ma.validate,$defs:ma.definitions,$recursiveRef:ma.dynamicRef,$ref:ma.ref}),$a.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/applicator",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/applicator": true\n },\n "$recursiveAnchor": true,\n\n "title": "Applicator vocabulary meta-schema",\n "properties": {\n "additionalItems": { "$recursiveRef": "#" },\n "unevaluatedItems": { "$recursiveRef": "#" },\n "items": {\n "anyOf": [\n { "$recursiveRef": "#" },\n { "$ref": "#/$defs/schemaArray" }\n ]\n },\n "contains": { "$recursiveRef": "#" },\n "additionalProperties": { "$recursiveRef": "#" },\n "unevaluatedProperties": { "$recursiveRef": "#" },\n "properties": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependentSchemas": {\n "type": "object",\n "additionalProperties": {\n "$recursiveRef": "#"\n }\n },\n "propertyNames": { "$recursiveRef": "#" },\n "if": { "$recursiveRef": "#" },\n "then": { "$recursiveRef": "#" },\n "else": { "$recursiveRef": "#" },\n "allOf": { "$ref": "#/$defs/schemaArray" },\n "anyOf": { "$ref": "#/$defs/schemaArray" },\n "oneOf": { "$ref": "#/$defs/schemaArray" },\n "not": { "$recursiveRef": "#" }\n },\n "$defs": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$recursiveRef": "#" }\n }\n }\n}')),ba.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/applicator",{additionalItems:ma.additionalItems6,additionalProperties:ma.additionalProperties6,allOf:ma.allOf,anyOf:ma.anyOf,contains:ma.containsMinContainsMaxContains,dependentSchemas:ma.dependentSchemas,if:ma.if,then:ma.then,else:ma.else,items:ma.items,not:ma.not,oneOf:ma.oneOf,patternProperties:ma.patternProperties,properties:ma.properties,propertyNames:ma.propertyNames,unevaluatedItems:ma.unevaluatedItems,unevaluatedProperties:ma.unevaluatedProperties}),$a.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/validation",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/validation": true\n },\n "$recursiveAnchor": true,\n\n "title": "Validation vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/$defs/nonNegativeInteger" },\n "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "maxItems": { "$ref": "#/$defs/nonNegativeInteger" },\n "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxContains": { "$ref": "#/$defs/nonNegativeInteger" },\n "minContains": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 1\n },\n "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },\n "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/$defs/stringArray" },\n "dependentRequired": {\n "type": "object",\n "additionalProperties": {\n "$ref": "#/$defs/stringArray"\n }\n },\n "const": true,\n "enum": {\n "type": "array",\n "items": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/$defs/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/$defs/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n }\n },\n "$defs": {\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 0\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n }\n}')),ba.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/validation",{const:ma.const,dependentRequired:ma.dependentRequired,enum:ma.enum,exclusiveMaximum:ma.exclusiveMaximum,exclusiveMinimum:ma.exclusiveMinimum,maxItems:ma.maxItems,maxLength:ma.maxLength6,maxProperties:ma.maxProperties,maximum:ma.maximum,minItems:ma.minItems,minLength:ma.minLength6,minProperties:ma.minProperties,minimum:ma.minimum,multipleOf:ma.multipleOf,pattern:ma.pattern,required:ma.required,type:ma.type,uniqueItems:ma.uniqueItems}),$a.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/meta-data",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/meta-data": true\n },\n "$recursiveAnchor": true,\n\n "title": "Meta-data vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "deprecated": {\n "type": "boolean",\n "default": false\n },\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n }\n }\n}')),ba.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/meta-data",{default:ma.metaData,deprecated:ma.metaData,description:ma.metaData,examples:ma.metaData,readOnly:ma.metaData,title:ma.metaData,writeOnly:ma.metaData}),$a.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/format",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/format": true\n },\n "$recursiveAnchor": true,\n\n "title": "Format vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),$a.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/content",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/content": true\n },\n "$recursiveAnchor": true,\n\n "title": "Content vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "contentSchema": { "$recursiveRef": "#" }\n }\n}')),ba.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/content",{contentEncoding:ma.metaData,contentMediaType:ma.metaData,contentSchema:ma.metaData});const{Core:Oa,Schema:Sa}=Ze,ja="https://json-schema.org/draft/2020-12/schema";Sa.setConfig(ja,"baseToken","$id"),Sa.setConfig(ja,"embeddedToken","$id"),Sa.setConfig(ja,"anchorToken","$anchor"),Sa.setConfig(ja,"dynamicAnchorToken","$dynamicAnchor"),Sa.setConfig(ja,"vocabularyToken","$vocabulary"),Sa.setConfig(ja,"mandatoryVocabularies",["https://json-schema.org/draft/2020-12/vocab/core"]),Sa.add(JSON.parse('{\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$id": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/core": true,\n "https://json-schema.org/draft/2020-12/vocab/applicator": true,\n "https://json-schema.org/draft/2020-12/vocab/unevaluated": true,\n "https://json-schema.org/draft/2020-12/vocab/validation": true,\n "https://json-schema.org/draft/2020-12/vocab/meta-data": true,\n "https://json-schema.org/draft/2020-12/vocab/format-annotation": true,\n "https://json-schema.org/draft/2020-12/vocab/content": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Core and Validation specifications meta-schema",\n "allOf": [\n {"$ref": "meta/core"},\n {"$ref": "meta/applicator"},\n {"$ref": "meta/unevaluated"},\n {"$ref": "meta/validation"},\n {"$ref": "meta/meta-data"},\n {"$ref": "meta/format-annotation"},\n {"$ref": "meta/content"}\n ],\n "type": ["object", "boolean"],\n "properties": {\n "definitions": {\n "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n },\n "dependencies": {\n "$comment": "\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"",\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$dynamicRef": "#meta" },\n { "$ref": "meta/validation#/$defs/stringArray" }\n ]\n }\n }\n }\n}')),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/core",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/core": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Core vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference",\n "$comment": "Non-empty fragments not allowed.",\n "pattern": "^[^#]*#?$"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$anchor": {\n "type": "string",\n "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$dynamicRef": {\n "type": "string",\n "format": "uri-reference"\n },\n "$dynamicAnchor": {\n "type": "string",\n "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"\n },\n "$vocabulary": {\n "type": "object",\n "propertyNames": {\n "type": "string",\n "format": "uri"\n },\n "additionalProperties": {\n "type": "boolean"\n }\n },\n "$comment": {\n "type": "string"\n },\n "$defs": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n }\n }\n}')),Oa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/core",{validate:ma.validate,$defs:ma.definitions,$dynamicRef:ma.dynamicRef,$ref:ma.ref}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/applicator",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/applicator": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Applicator vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "prefixItems": { "$ref": "#/$defs/schemaArray" },\n "items": { "$dynamicRef": "#meta" },\n "contains": { "$dynamicRef": "#meta" },\n "additionalProperties": { "$dynamicRef": "#meta" },\n "properties": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependentSchemas": {\n "type": "object",\n "additionalProperties": {\n "$dynamicRef": "#meta"\n }\n },\n "propertyNames": { "$dynamicRef": "#meta" },\n "if": { "$dynamicRef": "#meta" },\n "then": { "$dynamicRef": "#meta" },\n "else": { "$dynamicRef": "#meta" },\n "allOf": { "$ref": "#/$defs/schemaArray" },\n "anyOf": { "$ref": "#/$defs/schemaArray" },\n "oneOf": { "$ref": "#/$defs/schemaArray" },\n "not": { "$dynamicRef": "#meta" }\n },\n "$defs": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$dynamicRef": "#meta" }\n }\n }\n}')),Oa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/applicator",{additionalProperties:ma.additionalProperties6,allOf:ma.allOf,anyOf:ma.anyOf,contains:ma.containsMinContainsMaxContains,dependentSchemas:ma.dependentSchemas,if:ma.if,then:ma.then,else:ma.else,items:ma.items202012,not:ma.not,oneOf:ma.oneOf,patternProperties:ma.patternProperties,prefixItems:ma.tupleItems,properties:ma.properties,propertyNames:ma.propertyNames}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/validation",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/validation": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Validation vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/$defs/nonNegativeInteger" },\n "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "maxItems": { "$ref": "#/$defs/nonNegativeInteger" },\n "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxContains": { "$ref": "#/$defs/nonNegativeInteger" },\n "minContains": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 1\n },\n "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },\n "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/$defs/stringArray" },\n "dependentRequired": {\n "type": "object",\n "additionalProperties": {\n "$ref": "#/$defs/stringArray"\n }\n },\n "const": true,\n "enum": {\n "type": "array",\n "items": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/$defs/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/$defs/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n }\n },\n "$defs": {\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 0\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n }\n}')),Oa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/validation",{const:ma.const,dependentRequired:ma.dependentRequired,enum:ma.enum,exclusiveMaximum:ma.exclusiveMaximum,exclusiveMinimum:ma.exclusiveMinimum,maxItems:ma.maxItems,maxLength:ma.maxLength6,maxProperties:ma.maxProperties,maximum:ma.maximum,minItems:ma.minItems,minLength:ma.minLength6,minProperties:ma.minProperties,minimum:ma.minimum,multipleOf:ma.multipleOf,pattern:ma.pattern,required:ma.required,type:ma.type,uniqueItems:ma.uniqueItems}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/meta-data",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/meta-data": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Meta-data vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "deprecated": {\n "type": "boolean",\n "default": false\n },\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n }\n }\n}')),Oa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/meta-data",{default:ma.metaData,deprecated:ma.metaData,description:ma.metaData,examples:ma.metaData,readOnly:ma.metaData,title:ma.metaData,writeOnly:ma.metaData}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/format-annotation": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Format vocabulary meta-schema for annotation results",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),Oa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/format-annotation",{format:ma.metaData}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/format-assertion",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/format-assertion": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Format vocabulary meta-schema for assertion results",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/content",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/content": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Content vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "contentSchema": { "$dynamicRef": "#meta" }\n }\n}')),Oa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/content",{contentEncoding:ma.metaData,contentMediaType:ma.metaData,contentSchema:ma.metaData}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/unevaluated": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Unevaluated applicator vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "unevaluatedItems": { "$dynamicRef": "#meta" },\n "unevaluatedProperties": { "$dynamicRef": "#meta" }\n }\n}')),Oa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/unevaluated",{unevaluatedItems:ma.unevaluatedItems,unevaluatedProperties:ma.unevaluatedProperties});const{Core:xa,Schema:wa,InvalidSchemaError:Pa}=Ze;var Ea={add:xa.add,get:wa.get,validate:xa.validate,compile:xa.compile,interpret:xa.interpret,setMetaOutputFormat:xa.setMetaOutputFormat,setShouldMetaValidate:xa.setShouldMetaValidate,FLAG:xa.FLAG,BASIC:xa.BASIC,DETAILED:xa.DETAILED,VERBOSE:xa.VERBOSE,Keywords:ma,InvalidSchemaError:Pa},Aa=Ea.add,Ca=Ea.get,Na=Ea.validate,Ra=Ea.compile,Ta=Ea.interpret,Da=Ea.setMetaOutputFormat,Ma=Ea.setShouldMetaValidate,ka=Ea.FLAG,qa=Ea.BASIC,La=Ea.DETAILED,Va=Ea.VERBOSE,Ja=Ea.Keywords,_a=Ea.InvalidSchemaError;e.BASIC=qa,e.DETAILED=La,e.FLAG=ka,e.InvalidSchemaError=_a,e.Keywords=Ja,e.VERBOSE=Va,e.add=Aa,e.compile=Ra,e.default=Ea,e.get=Ca,e.interpret=Ta,e.setMetaOutputFormat=Da,e.setShouldMetaValidate=Ma,e.validate=Na,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=json-schema-amd.min.js.map