@hyperjump/json-schema 0.23.4 → 0.23.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json-schema-amd.js +132 -81
- package/dist/json-schema-amd.js.map +1 -1
- package/dist/json-schema-amd.min.js +3 -2
- package/dist/json-schema-cjs.js +132 -81
- package/dist/json-schema-cjs.js.map +1 -1
- package/dist/json-schema-cjs.min.js +1 -2
- package/dist/json-schema-esm.js +131 -80
- package/dist/json-schema-esm.js.map +1 -1
- package/dist/json-schema-esm.min.js +1 -2
- package/dist/json-schema-iife.js +132 -81
- package/dist/json-schema-iife.js.map +1 -1
- package/dist/json-schema-iife.min.js +3 -2
- package/dist/json-schema-system.js +131 -80
- package/dist/json-schema-system.js.map +1 -1
- package/dist/json-schema-system.min.js +3 -2
- package/dist/json-schema-umd.js +132 -81
- package/dist/json-schema-umd.js.map +1 -1
- package/dist/json-schema-umd.min.js +3 -2
- package/lib/keywords/additionalItems6.js +10 -1
- package/lib/keywords/dynamicRef.js +3 -4
- package/package.json +3 -2
- package/dist/json-schema-amd.min.js.map +0 -1
- package/dist/json-schema-cjs.min.js.map +0 -1
- package/dist/json-schema-esm.min.js.map +0 -1
- package/dist/json-schema-iife.min.js.map +0 -1
- package/dist/json-schema-system.min.js.map +0 -1
- package/dist/json-schema-umd.min.js.map +0 -1
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
define(["exports"],(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=function(e,t){return function n(){null==t&&(t=e.length);var r=[].slice.call(arguments);return r.length>=t?e.apply(this,r):function(){return n.apply(this,r.concat([].slice.call(arguments)))}}};var r={
|
|
2
|
-
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */!function(e,t){!function(e){function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,a=1;a<r;++a)t[a]=t[a].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function n(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function a(e){return e.toUpperCase()}function i(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function o(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}function s(e){var r="[A-Za-z]",a="[0-9]",i=t(a,"[A-Fa-f]"),o=n(n("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+n("%[89A-Fa-f]"+i+"%"+i+i)+"|"+n("%"+i+i)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),l=e?"[\\uE000-\\uF8FF]":"[]",p=t(r,a,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");n(r+t(r,a,"[\\+\\-\\.]")+"*"),n(n(o+"|"+t(p,s,"[\\:]"))+"*");var u=n(n("25[0-5]")+"|"+n("2[0-4]"+a)+"|"+n("1"+a+a)+"|"+n("0?[1-9]"+a)+"|0?0?"+a),m=n(u+"\\."+u+"\\."+u+"\\."+u),f=n(i+"{1,4}"),d=n(n(f+"\\:"+f)+"|"+m),h=n(n(f+"\\:")+"{6}"+d),y=n("\\:\\:"+n(f+"\\:")+"{5}"+d),v=n(n(f)+"?\\:\\:"+n(f+"\\:")+"{4}"+d),g=n(n(n(f+"\\:")+"{0,1}"+f)+"?\\:\\:"+n(f+"\\:")+"{3}"+d),b=n(n(n(f+"\\:")+"{0,2}"+f)+"?\\:\\:"+n(f+"\\:")+"{2}"+d),$=n(n(n(f+"\\:")+"{0,3}"+f)+"?\\:\\:"+f+"\\:"+d),w=n(n(n(f+"\\:")+"{0,4}"+f)+"?\\:\\:"+d),x=n(n(n(f+"\\:")+"{0,5}"+f)+"?\\:\\:"+f),S=n(n(n(f+"\\:")+"{0,6}"+f)+"?\\:\\:"),O=n([h,y,v,g,b,$,w,x,S].join("|")),I=n(n(p+"|"+o)+"+");n("[vV]"+i+"+\\."+t(p,s,"[\\:]")+"+"),n(n(o+"|"+t(p,s))+"*");var E=n(o+"|"+t(p,s,"[\\:\\@]"));return n(n(o+"|"+t(p,s,"[\\@]"))+"+"),n(n(E+"|"+t("[\\/\\?]",l))+"*"),{NOT_SCHEME:new RegExp(t("[^]",r,a,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",p,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",p,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",p,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",p,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",p,s,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",p,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",p,s),"g"),UNRESERVED:new RegExp(p,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",p,c),"g"),PCT_ENCODED:new RegExp(o,"g"),IPV4ADDRESS:new RegExp("^("+m+")$"),IPV6ADDRESS:new RegExp("^\\[?("+O+")"+n(n("\\%25|\\%(?!"+i+"{2})")+"("+I+")")+"?\\]?$")}}var c=s(!1),l=s(!0),p=function(){function e(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},m=2147483647,f=36,d=1,h=26,y=38,v=700,g=72,b=128,$="-",w=/^xn--/,x=/[^\0-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,O={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=f-d,E=Math.floor,j=String.fromCharCode;function A(e){throw new RangeError(O[e])}function C(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}function P(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+C((e=e.replace(S,".")).split("."),t).join(".")}function T(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&a)<<10)+(1023&i)+65536):(t.push(a),n--)}else t.push(a)}return t}var N=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:f},k=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},R=function(e,t,n){var r=0;for(e=n?E(e/v):e>>1,e+=E(e/t);e>I*h>>1;r+=f)e=E(e/I);return E(r+(I+1)*e/(e+y))},D=function(e){var t=[],n=e.length,r=0,a=b,i=g,o=e.lastIndexOf($);o<0&&(o=0);for(var s=0;s<o;++s)e.charCodeAt(s)>=128&&A("not-basic"),t.push(e.charCodeAt(s));for(var c=o>0?o+1:0;c<n;){for(var l=r,p=1,u=f;;u+=f){c>=n&&A("invalid-input");var y=N(e.charCodeAt(c++));(y>=f||y>E((m-r)/p))&&A("overflow"),r+=y*p;var v=u<=i?d:u>=i+h?h:u-i;if(y<v)break;var w=f-v;p>E(m/w)&&A("overflow"),p*=w}var x=t.length+1;i=R(r-l,x,0==l),E(r/x)>m-a&&A("overflow"),a+=E(r/x),r%=x,t.splice(r++,0,a)}return String.fromCodePoint.apply(String,t)},q=function(e){var t=[],n=(e=T(e)).length,r=b,a=0,i=g,o=!0,s=!1,c=void 0;try{for(var l,p=e[Symbol.iterator]();!(o=(l=p.next()).done);o=!0){var u=l.value;u<128&&t.push(j(u))}}catch(e){s=!0,c=e}finally{try{!o&&p.return&&p.return()}finally{if(s)throw c}}var y=t.length,v=y;for(y&&t.push($);v<n;){var w=m,x=!0,S=!1,O=void 0;try{for(var I,C=e[Symbol.iterator]();!(x=(I=C.next()).done);x=!0){var P=I.value;P>=r&&P<w&&(w=P)}}catch(e){S=!0,O=e}finally{try{!x&&C.return&&C.return()}finally{if(S)throw O}}var N=v+1;w-r>E((m-a)/N)&&A("overflow"),a+=(w-r)*N,r=w;var D=!0,q=!1,M=void 0;try{for(var _,L=e[Symbol.iterator]();!(D=(_=L.next()).done);D=!0){var F=_.value;if(F<r&&++a>m&&A("overflow"),F==r){for(var U=a,V=f;;V+=f){var z=V<=i?d:V>=i+h?h:V-i;if(U<z)break;var J=U-z,H=f-z;t.push(j(k(z+J%H,0))),U=E(J/H)}t.push(j(k(U,0))),i=R(a,N,v==y),a=0,++v}}}catch(e){q=!0,M=e}finally{try{!D&&L.return&&L.return()}finally{if(q)throw M}}++a,++r}return t.join("")},M=function(e){return P(e,(function(e){return w.test(e)?D(e.slice(4).toLowerCase()):e}))},_=function(e){return P(e,(function(e){return x.test(e)?"xn--"+q(e):e}))},L={version:"2.1.0",ucs2:{decode:T,encode:function(e){return String.fromCodePoint.apply(String,u(e))}},decode:D,encode:q,toASCII:_,toUnicode:M},F={};function U(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function V(e){for(var t="",n=0,r=e.length;n<r;){var a=parseInt(e.substr(n+1,2),16);if(a<128)t+=String.fromCharCode(a),n+=3;else if(a>=194&&a<224){if(r-n>=6){var i=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&a)<<6|63&i)}else t+=e.substr(n,6);n+=6}else if(a>=224){if(r-n>=9){var o=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&a)<<12|(63&o)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function z(e,t){function n(e){var n=V(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,U).replace(t.PCT_ENCODED,a)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,U).replace(t.PCT_ENCODED,a)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,U).replace(t.PCT_ENCODED,a)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,U).replace(t.PCT_ENCODED,a)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,U).replace(t.PCT_ENCODED,a)),e}function J(e){return e.replace(/^0*(.*)/,"$1")||"0"}function H(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=p(n,2)[1];return r?r.split(".").map(J).join("."):e}function B(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=p(n,3),a=r[1],i=r[2];if(a){for(var o=a.toLowerCase().split("::").reverse(),s=p(o,2),c=s[0],l=s[1],u=l?l.split(":").map(J):[],m=c.split(":").map(J),f=t.IPV4ADDRESS.test(m[m.length-1]),d=f?7:8,h=m.length-d,y=Array(d),v=0;v<d;++v)y[v]=u[v]||m[h+v]||"";f&&(y[d-1]=H(y[d-1],t));var g=y.reduce((function(e,t,n){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(g&&g.length>1){var $=y.slice(0,g.index),w=y.slice(g.index+g.length);b=$.join(":")+"::"+w.join(":")}else b=y.join(":");return i&&(b+="%"+i),b}return e}var G=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,K=void 0==="".match(/(){0}/)[1];function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?l:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var a=e.match(G);if(a){K?(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5])):(n.scheme=a[1]||void 0,n.userinfo=-1!==e.indexOf("@")?a[3]:void 0,n.host=-1!==e.indexOf("//")?a[4]:void 0,n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=-1!==e.indexOf("?")?a[7]:void 0,n.fragment=-1!==e.indexOf("#")?a[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?a[4]:void 0)),n.host&&(n.host=B(H(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var i=F[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)z(n,r);else{if(n.host&&(t.domainHost||i&&i.domainHost))try{n.host=L.toASCII(n.host.replace(r.PCT_ENCODED,V).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}z(n,c)}i&&i.parse&&i.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}function W(e,t){var n=!1!==t.iri?l:c,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(B(H(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}var X=/^\.\.?\//,Q=/^\/\.(\/|$)/,Y=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(Q))e=e.replace(Q,"/");else if(e.match(Y))e=e.replace(Y,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(ee);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?l:c,r=[],a=F[(t.scheme||e.scheme||"").toLowerCase()];if(a&&a.serialize&&a.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||a&&a.domainHost)try{e.host=t.iri?L.toUnicode(e.host):L.toASCII(e.host.replace(n.PCT_ENCODED,V).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}z(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=W(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var o=e.path;t.absolutePath||a&&a.absolutePath||(o=te(o)),void 0===i&&(o=o.replace(/^\/\//,"/%2F")),r.push(o)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=Z(ne(e,n),n),t=Z(ne(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=te(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function ae(e,t,n){var r=o({scheme:"null"},n);return ne(re(Z(e,r),Z(t,r),r,!0),r)}function ie(e,t){return"string"==typeof e?e=ne(Z(e,t),t):"object"===r(e)&&(e=Z(ne(e,t),t)),e}function oe(e,t,n){return"string"==typeof e?e=ne(Z(e,n),n):"object"===r(e)&&(e=ne(e,n)),"string"==typeof t?t=ne(Z(t,n),n):"object"===r(t)&&(t=ne(t,n)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?l.ESCAPE:c.ESCAPE,U)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?l.PCT_ENCODED:c.PCT_ENCODED,V)}var le={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},pe={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function ue(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var me={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=ue(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(ue(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=p(n,2),a=r[0],i=r[1];e.path=a&&"/"!==a?a:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},fe={scheme:"wss",domainHost:me.domainHost,parse:me.parse,serialize:me.serialize},de={},he="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ye="[0-9A-Fa-f]",ve=n(n("%[EFef]"+ye+"%"+ye+ye+"%"+ye+ye)+"|"+n("%[89A-Fa-f]"+ye+"%"+ye+ye)+"|"+n("%"+ye+ye)),ge="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),$e="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(he,"g"),xe=new RegExp(ve,"g"),Se=new RegExp(t("[^]",ge,"[\\.]",'[\\"]',be),"g"),Oe=new RegExp(t("[^]",he,$e),"g"),Ie=Oe;function Ee(e){var t=V(e);return t.match(we)?t:e}var je={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var a=!1,i={},o=n.query.split("&"),s=0,c=o.length;s<c;++s){var l=o[s].split("=");switch(l[0]){case"to":for(var p=l[1].split(","),u=0,m=p.length;u<m;++u)r.push(p[u]);break;case"subject":n.subject=ce(l[1],t);break;case"body":n.body=ce(l[1],t);break;default:a=!0,i[ce(l[0],t)]=ce(l[1],t)}}a&&(n.headers=i)}n.query=void 0;for(var f=0,d=r.length;f<d;++f){var h=r[f].split("@");if(h[0]=ce(h[0]),t.unicodeSupport)h[1]=ce(h[1],t).toLowerCase();else try{h[1]=L.toASCII(ce(h[1],t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}r[f]=h.join("@")}return n},serialize:function(e,t){var n=e,r=i(e.to);if(r){for(var o=0,s=r.length;o<s;++o){var c=String(r[o]),l=c.lastIndexOf("@"),p=c.slice(0,l).replace(xe,Ee).replace(xe,a).replace(Se,U),u=c.slice(l+1);try{u=t.iri?L.toUnicode(u):L.toASCII(ce(u,t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}r[o]=p+"@"+u}n.path=r.join(",")}var m=e.headers=e.headers||{};e.subject&&(m.subject=e.subject),e.body&&(m.body=e.body);var f=[];for(var d in m)m[d]!==de[d]&&f.push(d.replace(xe,Ee).replace(xe,a).replace(Oe,U)+"="+m[d].replace(xe,Ee).replace(xe,a).replace(Ie,U));return f.length&&(n.query=f.join("&")),n}},Ae=/^([^\:]+)\:(.*)/,Ce={scheme:"urn",parse:function(e,t){var n=e.path&&e.path.match(Ae),r=e;if(n){var a=t.scheme||r.scheme||"urn",i=n[1].toLowerCase(),o=n[2],s=a+":"+(t.nid||i),c=F[s];r.nid=i,r.nss=o,r.path=void 0,c&&(r=c.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var n=t.scheme||e.scheme||"urn",r=e.nid,a=n+":"+(t.nid||r),i=F[a];i&&(e=i.serialize(e,t));var o=e,s=e.nss;return o.path=(r||t.nid)+":"+s,o}},Pe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Te={scheme:"urn:uuid",parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&n.uuid.match(Pe)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};F[le.scheme]=le,F[pe.scheme]=pe,F[me.scheme]=me,F[fe.scheme]=fe,F[je.scheme]=je,F[Ce.scheme]=Ce,F[Te.scheme]=Te,e.SCHEMES=F,e.pctEncChar=U,e.pctDecChars=V,e.parse=Z,e.removeDotSegments=te,e.serialize=ne,e.resolveComponents=re,e.resolve=ae,e.normalize=ie,e.equal=oe,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,a.exports);const i=a.exports,o={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};var s={jsonTypeOf:(e,t)=>o[t](e),resolveUrl:(e,t)=>{const n=i.resolve(e,t,{iri:!0});if(i.resolve(e,"",{iri:!0})&&"file"===i.parse(n).scheme&&"file"!==i.parse(e).scheme)throw Error(`Can't access file '${n}' resource from network context '${e}'`);return n},urlFragment:e=>i.unescapeComponent(i.parse(e).fragment)||"",pathRelative:(e,t)=>{if(e===t)return"";let n=1;const r=e.length-1,a=t.length-n,i=r<a?r:a;let o=-1,s=0;for(;s<i;s++){const r=e.charCodeAt(s+1);if(r!==t.charCodeAt(n+s))break;47===r&&(o=s)}if(a>i){if(47===t.charCodeAt(n+s))return t.slice(n+s+1);if(0===s)return t.slice(n+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 n+=o,c.length>0?`${c}${t.slice(n,t.length)}`:(47===t.charCodeAt(n)&&++n,t.slice(n,t.length))}};const c=n,l=e=>{if(e.length>0&&"/"!==e[0])throw Error("Invalid JSON Pointer");return e.split("/").slice(1).map(y)},p=(e,t,n,r)=>{if(0===e.length)return n;if(e.length>1){if(Array.isArray(t)){const a=e.shift(),i=[...t];return i[a]=p(e,g(t,a,r),n,d(a,r)),i}{const a=e.shift();return{...t,[a]:p(e,g(t,a,r),n,d(a,r))}}}if(Array.isArray(t)){const r=[...t];return r[v(t,e[0])]=n,r}return"object"==typeof t&&null!==t?{...t,[e[0]]:n}:g(t,e[0],r)},u=(e,t,n,r)=>{if(0!==e.length)if(1!==e.length||b(t)){const a=e.shift();u(e,g(t,a,r),n,d(a,r))}else{t[v(t,e[0])]=n}},m=(e,t,n)=>{if(0!=e.length){if(e.length>1){const r=e.shift(),a=g(t,r,n);return{...t,[r]:m(e,a,d(r,n))}}if(Array.isArray(t))return t.filter(((t,n)=>n!=e[0]));if("object"==typeof t&&null!==t){const{[e[0]]:n,...r}=t;return r}return g(t,e[0],n)}},f=(e,t,n)=>{if(0!==e.length)if(e.length>1){const r=e.shift(),a=g(t,r,n);f(e,a,d(r,n))}else Array.isArray(t)?t.splice(e[0],1):"object"==typeof t&&null!==t?delete t[e[0]]:g(t,e[0],n)},d=c(((e,t)=>t+"/"+h(e))),h=e=>e.toString().replace(/~/g,"~0").replace(/\//g,"~1"),y=e=>e.toString().replace(/~1/g,"/").replace(/~0/g,"~"),v=(e,t)=>Array.isArray(e)&&"-"===t?e.length:t,g=(e,t,n="")=>{if(void 0===e)throw TypeError(`Value at '${n}' is undefined and does not have property '${t}'`);if(null===e)throw TypeError(`Value at '${n}' is null and does not have property '${t}'`);if(b(e))throw TypeError(`Value at '${n}' is a ${typeof e} and does not have property '${t}'`);return e[v(e,t)]},b=e=>null===e||"object"!=typeof e;var $={nil:"",append:d,get:(e,t)=>{const n=l(e),r=e=>n.reduce((([e,t],n)=>[g(e,n,t),d(n,t)]),[e,""])[0];return void 0===t?r:r(t)},set:(e,t,n)=>{const r=l(e),a=c(((e,t)=>p(r,e,t,"")));return void 0===t?a:a(t,n)},assign:(e,t,n)=>{const r=l(e),a=c(((e,t)=>u(r,e,t,"")));return void 0===t?a:a(t,n)},unset:(e,t)=>{const n=l(e),r=e=>m(n,e,"");return void 0===t?r:r(t)},remove:(e,t)=>{const n=l(e),r=e=>f(n,e,"");return void 0===t?r:r(t)}};const w=Symbol("$__value"),x=Symbol("$__href");var S={cons:(e,t)=>Object.freeze({[x]:e,[w]:t}),isReference:e=>e&&void 0!==e[x],href:e=>e[x],value:e=>e[w]};const O=$,I=n,{resolveUrl:E,jsonTypeOf:j}=s,A=S,C=Object.freeze({id:"",pointer:"",instance:void 0,value:void 0}),P=e=>A.isReference(e.value)?A.value(e.value):e.value,T=I(((e,t)=>j(P(e),t))),N=(e,t)=>Object.freeze({...t,pointer:O.append(e,t.pointer),value:P(t)[e]}),k=I(((e,t)=>P(t).map(((n,r,a,i)=>e(N(r,t),r,a,i))))),R=I(((e,t)=>P(t).forEach(((n,r,a,i)=>e(N(r,t),r,a,i))))),D=I(((e,t)=>P(t).map(((e,n,r,a)=>N(n,t))).filter(((t,n,r,a)=>e(t,n,r,a))))),q=I(((e,t,n)=>P(n).reduce(((t,r,a)=>e(t,N(a,n),a)),t))),M=I(((e,t)=>P(t).every(((n,r,a,i)=>e(N(r,t),r,a,i))))),_=I(((e,t)=>P(t).some(((n,r,a,i)=>e(N(r,t),r,a,i)))));var L={nil:C,cons:(e,t="")=>Object.freeze({...C,id:E(t,""),instance:e,value:e}),get:(e,t=C)=>{if(!e.startsWith("#"))throw Error(`No JSON document found at '${e.split("#")[0]}'`);return Object.freeze({...t,pointer:e.substr(1)})},uri:e=>`${e.id}#${encodeURI(e.pointer)}`,value:P,has:(e,t)=>e in P(t),typeOf:T,length:e=>P(e).length,step:N,entries:e=>Object.keys(P(e)).map((t=>[t,N(t,e)])),keys:e=>Object.keys(P(e)),map:k,forEach:R,filter:D,reduce:q,every:M,some:_},F=async e=>Object.entries(await e),U=function(e,t){return function n(){null==t&&(t=e.length);var r=[].slice.call(arguments);return r.length>=t?e.apply(this,r):function(){return n.apply(this,r.concat([].slice.call(arguments)))}}};var V=U((async(e,t)=>(await t).map(e)));var z=U((async(e,t,n)=>(await n).reduce((async(t,n)=>e(await t,n)),t)));const J=z;var H=U((async(e,t,n={})=>J((async(t,n)=>await e(n)?t.concat([n]):t),[],t,n)));const B=V;var G=U((async(e,t)=>{const n=await B(e,t);return(await Promise.all(n)).some((e=>e))}));const K=V;var Z=U((async(e,t)=>{const n=await K(e,t);return(await Promise.all(n)).every((e=>e))}));var W=U(((e,t)=>e.reduce((async(e,t)=>t(await e)),t)));const X=W,Q=F,Y=z;var ee,te,ne,re={entries:F,map:V,filter:H,reduce:z,some:G,every:Z,pipeline:W,all:e=>Promise.all(e),allValues:e=>X([Q,Y((async(e,[t,n])=>(e[t]=await n,e)),{})],e)},ae={exports:{}};te=t,ne=function(){var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n="boolean"==typeof(new RegExp).sticky;function r(e){return e&&"[object RegExp]"===t.call(e)}function a(e){return e&&"object"==typeof e&&!r(e)&&!Array.isArray(e)}function i(e){return"("+e+")"}function o(e){return e.length?"(?:"+e.map((function(e){return"(?:"+e+")"})).join("|")+")":"(?!)"}function s(e){if("string"==typeof e)return"(?:"+e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")";if(r(e)){if(e.ignoreCase)throw new Error("RegExp /i flag not allowed");if(e.global)throw new Error("RegExp /g flag is implied");if(e.sticky)throw new Error("RegExp /y flag is implied");if(e.multiline)throw new Error("RegExp /m flag is implied");return e.source}throw new Error("Not a pattern: "+e)}function c(e,t){return e.length>t?e:Array(t-e.length+1).join(" ")+e}function l(t,n){if(a(n)||(n={match:n}),n.include)throw new Error("Matching rules cannot also include states");var i={defaultType:t,lineBreaks:!!n.error||!!n.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var o in n)e.call(n,o)&&(i[o]=n[o]);if("string"==typeof i.type&&t!==i.type)throw new Error("Type transform cannot be a string (type '"+i.type+"' for token '"+t+"')");var s=i.match;return i.match=Array.isArray(s)?s:s?[s]:[],i.match.sort((function(e,t){return r(e)&&r(t)?0:r(t)?-1:r(e)?1:t.length-e.length})),i}function p(e){return Array.isArray(e)?function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(r.include)for(var a=[].concat(r.include),i=0;i<a.length;i++)t.push({include:a[i]});else{if(!r.type)throw new Error("Rule has no type: "+JSON.stringify(r));t.push(l(r.type,r))}}return t}(e):function(e){for(var t=Object.getOwnPropertyNames(e),n=[],r=0;r<t.length;r++){var i=t[r],o=e[i],s=[].concat(o);if("include"!==i){var c=[];s.forEach((function(e){a(e)?(c.length&&n.push(l(i,c)),n.push(l(i,e)),c=[]):c.push(e)})),c.length&&n.push(l(i,c))}else for(var p=0;p<s.length;p++)n.push({include:s[p]})}return n}(e)}var u=l("error",{lineBreaks:!0,shouldThrow:!0});function m(e,t){for(var a=null,c=Object.create(null),l=!0,p=null,m=[],f=[],d=0;d<e.length;d++)e[d].fallback&&(l=!1);for(d=0;d<e.length;d++){var h=e[d];if(h.include)throw new Error("Inheritance is not allowed in stateless lexers");if(h.error||h.fallback){if(a)throw!h.fallback==!a.fallback?new Error("Multiple "+(h.fallback?"fallback":"error")+" rules not allowed (for token '"+h.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+h.defaultType+"')");a=h}var y=h.match.slice();if(l)for(;y.length&&"string"==typeof y[0]&&1===y[0].length;)c[y.shift().charCodeAt(0)]=h;if(h.pop||h.push||h.next){if(!t)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+h.defaultType+"')");if(h.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+h.defaultType+"')")}if(0!==y.length){l=!1,m.push(h);for(var v=0;v<y.length;v++){var g=y[v];if(r(g))if(null===p)p=g.unicode;else if(p!==g.unicode&&!1===h.fallback)throw new Error("If one rule is /u then all must be")}var b=o(y.map(s)),$=new RegExp(b);if($.test(""))throw new Error("RegExp matches empty string: "+$);if(new RegExp("|"+b).exec("").length-1>0)throw new Error("RegExp has capture groups: "+$+"\nUse (?: … ) instead");if(!h.lineBreaks&&$.test("\n"))throw new Error("Rule should declare lineBreaks: "+$);f.push(i(b))}}var w=a&&a.fallback,x=n&&!w?"ym":"gm",S=n||w?"":"|";return!0===p&&(x+="u"),{regexp:new RegExp(o(f)+S,x),groups:m,fast:c,error:a||u}}function f(e,t,n){var r=e&&(e.push||e.next);if(r&&!n[r])throw new Error("Missing state '"+r+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!=+e.pop)throw new Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}var d=function(e,t){this.startState=t,this.states=e,this.buffer="",this.stack=[],this.reset()};d.prototype.reset=function(e,t){return this.buffer=e||"",this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedText=t?t.queuedText:"",this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},d.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},d.prototype.setState=function(e){if(e&&this.state!==e){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},d.prototype.popState=function(){this.setState(this.stack.pop())},d.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var h=n?function(e,t){return e.exec(t)}:function(e,t){var n=e.exec(t);return 0===n[0].length?null:n};function y(){return this.value}if(d.prototype._getGroup=function(e){for(var t=this.groups.length,n=0;n<t;n++)if(void 0!==e[n+1])return this.groups[n];throw new Error("Cannot find token type for matched text")},d.prototype.next=function(){var e=this.index;if(this.queuedGroup){var t=this._token(this.queuedGroup,this.queuedText,e);return this.queuedGroup=null,this.queuedText="",t}var n=this.buffer;if(e!==n.length){if(o=this.fast[n.charCodeAt(e)])return this._token(o,n.charAt(e),e);var r=this.re;r.lastIndex=e;var a=h(r,n),i=this.error;if(null==a)return this._token(i,n.slice(e,n.length),e);var o=this._getGroup(a),s=a[0];return i.fallback&&a.index!==e?(this.queuedGroup=o,this.queuedText=s,this._token(i,n.slice(e,a.index),e)):this._token(o,s,e)}},d.prototype._token=function(e,t,n){var r=0;if(e.lineBreaks){var a=/\n/g,i=1;if("\n"===t)r=1;else for(;a.exec(t);)r++,i=a.lastIndex}var o={type:"function"==typeof e.type&&e.type(t)||e.defaultType,value:"function"==typeof e.value?e.value(t):t,text:t,toString:y,offset:n,lineBreaks:r,line:this.line,col:this.col},s=t.length;if(this.index+=s,this.line+=r,0!==r?this.col=s-i+1:this.col+=s,e.shouldThrow)throw new Error(this.formatError(o,"invalid syntax"));return e.pop?this.popState():e.push?this.pushState(e.push):e.next&&this.setState(e.next),o},"undefined"!=typeof Symbol&&Symbol.iterator){var v=function(e){this.lexer=e};v.prototype.next=function(){var e=this.lexer.next();return{value:e,done:!e}},v.prototype[Symbol.iterator]=function(){return this},d.prototype[Symbol.iterator]=function(){return new v(this)}}return d.prototype.formatError=function(e,t){if(null==e){var n=this.buffer.slice(this.index);e={text:n,offset:this.index,lineBreaks:-1===n.indexOf("\n")?0:1,line:this.line,col:this.col}}var r=Math.max(e.line-2,1),a=e.line+2,i=String(a).length,o=function(e,t){for(var n=e.length,r=0;;){var a=e.lastIndexOf("\n",n-1);if(-1===a)break;if(n=a,++r===t)break;if(0===n)break}var i=r<t?0:n+1;return e.substring(i).split("\n")}(this.buffer,this.line-e.line+2+1).slice(0,5),s=[];s.push(t+" at line "+e.line+" col "+e.col+":"),s.push("");for(var l=0;l<o.length;l++){var p=o[l],u=r+l;s.push(c(String(u),i)+" "+p),u===e.line&&s.push(c("",i+e.col+1)+"^")}return s.join("\n")},d.prototype.clone=function(){return new d(this.states,this.state)},d.prototype.has=function(e){return!0},{compile:function(e){var t=m(p(e));return new d({start:t},"start")},states:function(e,t){var n=e.$all?p(e.$all):[];delete e.$all;var r=Object.getOwnPropertyNames(e);t||(t=r[0]);for(var a=Object.create(null),i=0;i<r.length;i++)a[b=r[i]]=p(e[b]).concat(n);for(i=0;i<r.length;i++)for(var o=a[b=r[i]],s=Object.create(null),c=0;c<o.length;c++){var l=o[c];if(l.include){var u=[c,1];if(l.include!==b&&!s[l.include]){s[l.include]=!0;var h=a[l.include];if(!h)throw new Error("Cannot include nonexistent state '"+l.include+"' (in state '"+b+"')");for(var y=0;y<h.length;y++){var v=h[y];-1===o.indexOf(v)&&u.push(v)}}o.splice.apply(o,u),c--}}var g=Object.create(null);for(i=0;i<r.length;i++){var b;g[b=r[i]]=m(a[b],!0)}for(i=0;i<r.length;i++){var $=r[i],w=g[$],x=w.groups;for(c=0;c<x.length;c++)f(x[c],$,g);var S=Object.getOwnPropertyNames(w.fast);for(c=0;c<S.length;c++)f(w.fast[S[c]],$,g)}return new d(g,t)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(e){for(var t="undefined"!=typeof Map,n=t?new Map:Object.create(null),r=Object.getOwnPropertyNames(e),a=0;a<r.length;a++){var i=r[a],o=e[i];(Array.isArray(o)?o:[o]).forEach((function(e){if("string"!=typeof e)throw new Error("keyword must be string (in keyword '"+i+"')");t?n.set(e,i):n[e]=i}))}return function(e){return t?n.get(e):n[e]}}}},(ee=ae).exports?ee.exports=ne():te.moo=ne();const ie=ae.exports,oe="[0-9]",se=`-?${`(?:0|[1-9]${oe}*)`}(?:${`\\.${oe}+`})?(?:${`[eE][-+]?${oe}+`})?`;const ce=$,le=e=>{const t=ie.states({main:{WS:{match:new RegExp("(?:(?:\\r?\\n)|[ \\t])+","u"),lineBreaks:!0},true:{match:"true",value:()=>!0},false:{match:"false",value:()=>!1},null:{match:"null",value:()=>null},number:{match:new RegExp(se,"u"),value:parseFloat},string:{match:new RegExp('"(?:[\\x20-\\x21\\x23-\\x5b\\x5d-\\u{10ffff}]|\\\\(?:["\\/\\\\brfnt]|u[0-9a-fA-F]{4}))*"',"u"),value:JSON.parse},"{":"{","}":"}","[":"[","]":"]",":":":",",":",",error:ie.error}});t.reset(e);const n=()=>{let e;do{if(e=t.next(),"error"===e?.type)throw SyntaxError(t.formatError(e,"Unrecognized token"))}while("WS"===e?.type);return e};let r,a=n();const i={offset:0,line:1,col:0,text:""};return{next:e=>{if(r=a,a=n(),e&&r?.type!==e)throw SyntaxError(t.formatError(r,`Expected a '${e}'`));return r},peek:()=>a,syntaxError:e=>{const n=r||i,a={...n,offset:n.offset+n.text.length,col:n.col+n.text.length};throw new SyntaxError(t.formatError(a,e))}}},pe=(e,t)=>t,ue=(e,t,n,r)=>{let a;const i=e.next();switch(i?.type){case"true":case"false":case"null":case"number":case"string":a=i.value;break;case"{":a=me(e,t,n,r);break;case"[":a=de(e,t,n,r);break;default:e.syntaxError("Expected a JSON value")}return r(t,a,n)},me=(e,t,n,r)=>{const a={};return"}"!==e.peek()?.type&&fe(e,t,n,r,a),e.next("}"),a},fe=(e,t,n,r,a)=>{const i=e.next("string").value;e.next(":"),ve(e.peek())||e.syntaxError("Expected a JSON value"),a[i]=ue(e,i,ce.append(i,n),r),","===e.peek()?.type?(e.next(),fe(e,i,n,r,a)):ve(e.peek())&&e.next(",")},de=(e,t,n,r)=>{const a=[];return"]"!==e.peek()?.type&&he(e,0,n,r,a),e.next("]"),a},he=(e,t,n,r,a)=>{ve(e.peek())||e.syntaxError("Expected a JSON value"),a[t]=ue(e,t,ce.append(t,n),r),","===e.peek()?.type?(e.next(),he(e,t+1,n,r,a)):ve(e.peek())&&e.next(",")},ye=new Set(["string","number","true","false","null","[","{"]),ve=e=>ye.has(e?.type);var ge=(e,t=pe)=>{const n=le(e),r=ue(n,"",ce.nil,t);return n.peek()&&n.syntaxError("A value has been parsed, but more tokens were found"),r};const be=$,$e=(e,t)=>t,we=(e,t,n,r,a,i)=>{let o;return e=t(r,e,a),o=Array.isArray(e)?xe(e,t,n,a,i):"object"==typeof e&&null!==e?Se(e,t,n,a,i):JSON.stringify(e),o},xe=(e,t,n,r,a)=>{0===e.length&&(n="");const i=n?`\n${n.repeat(a-1)}`:"";return"["+i+n+e.map(((e,i)=>{const o=be.append(i,r);return we(e,t,n,i,o,a+1)})).join(`,${i}${n}`)+i+"]"},Se=(e,t,n,r,a)=>{0===Object.keys(e).length&&(n="");const i=n?`\n${n.repeat(a-1)}`:"",o=n?" ":"";return"{"+i+n+Object.entries(e).map((([e,i])=>{const s=be.append(e,r);return JSON.stringify(e)+":"+o+we(i,t,n,e,s,a+1)})).join(`,${i}${n}`)+i+"}"};var Oe=(e,t=$e,n="")=>we(e,t,n,"",be.nil,1);var Ie={parse:ge,stringify:Oe},Ee=fetch,je={},Ae=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Ce=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,Pe=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Te=/\\([\u000b\u0020-\u00ff])/g,Ne=/([\\"])/g,ke=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function Re(e){var t=String(e);if(Pe.test(t))return t;if(t.length>0&&!Ce.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(Ne,"\\$1")+'"'}function De(e){this.parameters=Object.create(null),this.type=e}je.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,n=e.type;if(!n||!ke.test(n))throw new TypeError("invalid type");var r=n;if(t&&"object"==typeof t)for(var a,i=Object.keys(t).sort(),o=0;o<i.length;o++){if(a=i[o],!Pe.test(a))throw new TypeError("invalid parameter name");r+="; "+a+"="+Re(t[a])}return r},je.parse=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.substr(0,n).trim():t.trim();if(!ke.test(r))throw new TypeError("invalid media type");var a=new De(r.toLowerCase());if(-1!==n){var i,o,s;for(Ae.lastIndex=n;o=Ae.exec(t);){if(o.index!==n)throw new TypeError("invalid parameter format");n+=o[0].length,i=o[1].toLowerCase(),'"'===(s=o[2])[0]&&(s=s.substr(1,s.length-2).replace(Te,"$1")),a.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return a};const qe=je,Me={};var _e={addPlugin:(e,t)=>{Me[e]=t},parse:e=>{const t=qe.parse(e.headers.get("content-type"));if(!(t.type in Me))throw Error(`${e.url} is not a schema. Found a document with media type: ${t.type}`);return Me[t.type].parse(e,t.parameters)},getContentType:e=>{for(const t in Me)if(Me[t].matcher(e))return t;return"application/octet-stream"}};const Le=n,Fe=re,Ue=Ie,Ve=$,{jsonTypeOf:ze,resolveUrl:Je,urlFragment:He,pathRelative:Be}=s,Ge=Ee,Ke=S,Ze=_e,We="https://json-schema.org/draft/2019-09/vocab/core",Xe="https://json-schema.org/draft/2020-12/vocab/core",Qe={},Ye={},et=(e,t)=>{const n=Ye[e];return Qe[n]?.[t]},tt={},nt={},rt=(e,t="",n="")=>{e=JSON.parse(JSON.stringify(e));const r=Je(t,""),a=Je(e.$schema||n,"");if(!a)throw Error("Couldn't determine schema dialect");if(delete e.$schema,!(a in Ye))if(!0===e?.$vocabulary?.[We]&&a===at(e,r,We)[0])Ye[a]=We;else if(!0===e?.$vocabulary?.[Xe]&&a===at(e,r,Xe)[0])Ye[a]=Xe;else{const e=tt[a];if(!e)throw Error(`Couldn't determine JSON Schema version for dialect: '${a}'`);!0===e.vocabulary[We]?Ye[a]=We:!0===e.vocabulary[Xe]?Ye[a]=Xe:Ye[a]=Ye[e.dialectId]}const[i,o]=at(e,r,Ye[a]);if(!i)throw Error("Couldn't determine an identifier for the schema");const s=et(a,"baseToken");delete e[s],r&&(nt[r]=i);const c=et(a,"anchorToken");o&&s===c&&(e[c]=c!==s?encodeURI(o):`#${encodeURI(o)}`);const l={},p=et(a,"recursiveAnchorToken");let u;!0===e[p]&&(l[""]=`${i}#`,e[c]="",delete e[p]);const m=et(a,"vocabularyToken");ze(e[m],"object")?(u=e[m],delete e[m]):u={[Ye[a]]:!0};const f={"":""};return tt[i]={id:i,dialectId:a,schema:it(e,i,a,Ve.nil,f,l),anchors:f,dynamicAnchors:l,vocabulary:u,validated:!1},i},at=(e,t,n)=>{const r=Qe[n]?.baseToken,a=Je(t,e[r]||"");return[Je(a,""),He(a)]},it=(e,t,n,r,a,i)=>{if(ze(e,"object")){const o="string"==typeof e.$schema?Je(e.$schema,""):n,s=et(o,"embeddedToken"),c=et(o,"anchorToken");if("string"==typeof e[s]&&(s!==c||"#"!==e[s][0])){const r=Je(t,e[s]);return e[et(o,"baseToken")]=r,rt(e,r,n),Ke.cons(e[s],e)}const l=et(n,"anchorToken"),p=et(n,"dynamicAnchorToken");"string"==typeof e[p]&&(i[e[p]]=`${t}#${encodeURI(r)}`,a[e[p]]=r,delete e[p]);const u=et(n,"embeddedToken");if("string"==typeof e[l]){const t=l!==u?e[l]:e[l].slice(1);a[t]=r,delete e[l]}const m=et(n,"jrefToken");if("string"==typeof e[m])return Ke.cons(e[m],e);for(const o in e)e[o]=it(e[o],t,n,Ve.append(o,r),a,i);return e}return Array.isArray(e)?e.map(((e,o)=>it(e,t,n,Ve.append(o,r),a,i))):e},ot=e=>tt[nt[e]]||tt[e],st=Object.freeze({id:"",dialectId:void 0,vocabulary:{},pointer:Ve.nil,schema:void 0,value:void 0,anchors:{},dynamicAnchors:{},validated:!0}),ct=async(e,t=st)=>{const n=Je(ut(t),e),r=Je(n,""),a=He(n);if(!(e=>e in tt||e in nt)(r)){const e=await Ge(r,{headers:{Accept:"application/schema+json"}});if(e.status>=400)throw await e.text(),Error(`Failed to retrieve schema with id: ${r}`);const[t,n]=await Ze.parse(e);let a;a=t.$schema?Je(t.$schema,""):n?Je(r,n):"",a&&r!==a&&!(a in Ye)&&await ct(a),rt(t,r,a)}const i=ot(r),o="/"!==a[0]?pt(i,a):a,s=Object.freeze({...i,pointer:o,value:Ve.get(o,i.schema)});return lt(s)},lt=e=>Ke.isReference(e.value)?ct(Ke.href(e.value),e):e,pt=(e,t)=>{if(!(t in e.anchors))throw Error(`No such anchor '${encodeURI(e.id)}#${encodeURI(t)}'`);return e.anchors[t]},ut=e=>`${e.id}#${encodeURI(e.pointer)}`,mt=e=>Ke.isReference(e.value)?Ke.value(e.value):e.value,ft=(e,t)=>{const n=ot(t.id),r=Object.freeze({...t,pointer:Ve.append(e,t.pointer),value:mt(t)[e],validated:n.validated});return lt(r)},dt=Le(((e,t)=>Fe.pipeline([mt,Fe.map((async(n,r)=>e(await ft(r,t),r))),Fe.all],t))),ht={parentId:"",parentDialect:"",includeEmbedded:!0},yt=(e,t)=>{if(t.startsWith("file://")){const n=e.slice(7,e.lastIndexOf("/"));return""===e?"":Be(n,t.slice(7))}return t};var vt={setConfig:(e,t,n)=>{Ye[e]=e,Qe[e]||(Qe[e]={}),Qe[e][t]=n},getConfig:et,add:rt,get:ct,markValidated:e=>{tt[e].validated=!0},uri:ut,value:mt,getAnchorPointer:pt,typeOf:(e,t)=>ze(mt(e),t),has:(e,t)=>e in mt(t),step:ft,keys:e=>Object.keys(mt(e)),entries:e=>Fe.pipeline([mt,Object.keys,Fe.map((async t=>[t,await ft(t,e)])),Fe.all],e),map:dt,length:e=>mt(e).length,toSchema:(e,t={})=>{const n={...ht,...t},r=et(e.dialectId,"anchorToken"),a=et(e.dialectId,"dynamicAnchorToken"),i={};for(const t in e.anchors)""===t||e.dynamicAnchors[t]||(i[e.anchors[t]]=t);const o={};for(const t in e.dynamicAnchors){const n=He(e.dynamicAnchors[t]);o[n]=t}const s=JSON.parse(Ue.stringify(e.schema,((t,s,c)=>{if(Ke.isReference(s)){const t=Ke.value(s),r="string"==typeof t.$schema?Je(t.$schema,""):e.dialectId,a=et(r,"embeddedToken");return!n.includeEmbedded&&a in t?void 0:Ke.value(s)}return c in i&&(s={[r]:i[c],...s}),c in o&&(s={[a]:o[c],...s}),s}))),c=et(e.dialectId,"baseToken"),l=yt(n.parentId,e.id),p=n.parentDialect===e.dialectId?"":e.dialectId;return{...l&&{[c]:l},...p&&{$schema:p},...s}}};class gt extends Error{constructor(e){super("Invalid Schema"),this.name=this.constructor.name,this.output=e}}var bt=gt;const $t=vt;var wt={compile:e=>$t.value(e),interpret:()=>!0};const xt=n,St=r.exports,{resolveUrl:Ot}=s,It=L,Et=vt,jt=bt,At=_e,Ct=wt,Pt="FLAG",Tt="BASIC",Nt="DETAILED",kt="VERBOSE";let Rt=Nt,Dt=!0;At.addPlugin("application/schema+json",{parse:async(e,t)=>[await e.json(),t.schema||t.profile],matcher:e=>e.endsWith(".schema.json")});const qt=async e=>{const t={metaData:{}};return{ast:t,schemaUri:await Jt(e,t)}},Mt=xt((({ast:e,schemaUri:t},n,r=Pt)=>{if(![Pt,Tt,Nt,kt].includes(r))throw Error(`The '${r}' error format is not supported`);const a=[],i=St.subscribe("result",_t(r,a));return Bt(t,n,e,{}),St.unsubscribe(i),a[0]})),_t=(e,t)=>{const n=[];return(r,a)=>{if("result"===r){const{keyword:e,absoluteKeywordLocation:t,instanceLocation:r,valid:i}=a,o={keyword:e,absoluteKeywordLocation:t,instanceLocation:r,valid:i,errors:[]};n.push(o)}else if("result.start"===r)n.push(r);else if("result.end"===r){const r=n.pop();for(;"result.start"!==n[n.length-1];){const t=n.pop(),a=[t];e===Tt&&(a.push(...t.errors),delete t.errors),(e===kt||e!==Pt&&!t.valid)&&r.errors.unshift(...a)}n[n.length-1]=r,t[0]=r}}},Lt={},Ft=e=>Lt[e]||Ct,Ut=e=>e in Lt,Vt={},zt={},Jt=async(e,t)=>{if(e=await Ht(e),!Ut(`${e.dialectId}#validate`)){const t=await Et.get(e.dialectId);(Et.getConfig(t.id,"mandatoryVocabularies")||[]).forEach((e=>{if(!t.vocabulary[e])throw Error(`Vocabulary '${e}' must be explicitly declared and required`)})),Object.entries(t.vocabulary).forEach((([e,n])=>{if(e in Vt)Object.entries(Vt[e]).forEach((([e,n])=>{((e,t)=>{Lt[e]={collectEvaluatedItems:(e,n,r,a,i)=>t.interpret(e,n,r,a,i)&&new Set,collectEvaluatedProperties:(e,n,r,a,i)=>t.interpret(e,n,r,a,i)&&[],...t}})(`${t.id}#${e}`,n)}));else if(n)throw Error(`Missing required vocabulary: ${e}`)}))}if(Dt&&!e.validated){if(Et.markValidated(e.id),!(e.dialectId in zt)){const t=await Et.get(e.dialectId),n=await qt(t);zt[t.id]=Mt(n)}const t=It.cons(e.schema,e.id),n=zt[e.dialectId](t,Rt);if(!n.valid)throw new jt(n)}return e.id in t.metaData||(t.metaData[e.id]={id:e.id,dynamicAnchors:e.dynamicAnchors,anchors:e.anchors}),Ft(`${e.dialectId}#validate`).compile(e,t)},Ht=async e=>Et.typeOf(e,"string")?Ht(await Et.get(Et.value(e),e)):e,Bt=(e,t,n,r)=>{const a=Gt(e,n),i=Ot(e,"");return Ft(a).interpret(e,t,n,{...n.metaData[i].dynamicAnchors,...r})},Gt=(e,t)=>{if(!(e in t))throw Error(`No schema found at ${e}`);return t[e][0]};var Kt={validate:async(e,t,n)=>{const r=await qt(e),a=(e,t)=>Mt(r,It.cons(e),t);return void 0===t?a:a(t,n)},compile:qt,interpret:Mt,setMetaOutputFormat:e=>{Rt=e},setShouldMetaValidate:e=>{Dt=e},FLAG:Pt,BASIC:Tt,DETAILED:Nt,VERBOSE:kt,add:(e,t="",n="")=>{const r=Et.add(e,t,n);delete zt[r]},getKeyword:Ft,hasKeyword:Ut,defineVocabulary:(e,t)=>{Vt[e]=t},compileSchema:Jt,interpretSchema:Bt,collectEvaluatedProperties:(e,t,n,r,a)=>{const i=Gt(e,n);return Ft(i).collectEvaluatedProperties(e,t,n,r,a)},collectEvaluatedItems:(e,t,n,r,a)=>{const i=Gt(e,n);return Ft(i).collectEvaluatedItems(e,t,n,r,a)},addMediaTypePlugin:At.addPlugin};const Zt=re,Wt=r.exports,Xt=Kt,Qt=L,Yt=vt;var en={compile:async(e,t)=>{const n=Yt.uri(e);if(!(n in t)){t[n]=!1;const r=Yt.value(e);if(!["object","boolean"].includes(typeof r))throw Error(`No schema found at '${Yt.uri(e)}'`);t[n]=[`${e.dialectId}#validate`,Yt.uri(e),"boolean"==typeof r?r:await Zt.pipeline([Yt.entries,Zt.map((([t,n])=>[`${e.dialectId}#${t}`,n])),Zt.filter((([t])=>t!==`${e.dialectId}#validate`)),Zt.map((async([n,r])=>{const a=await Xt.getKeyword(n).compile(r,t,e);return[n,Yt.uri(r),a]})),Zt.all],e)]}return n},interpret:(e,t,n,r)=>{const[a,i,o]=n[e];Wt.publishSync("result.start");const s="boolean"==typeof o?o:o.every((([e,a,i])=>{Wt.publishSync("result.start");const o=Xt.getKeyword(e).interpret(i,t,n,r);return Wt.publishSync("result",{keyword:e,absoluteKeywordLocation:a,instanceLocation:Qt.uri(t),valid:o,ast:i}),Wt.publishSync("result.end"),o}));return Wt.publishSync("result",{keyword:a,absoluteKeywordLocation:i,instanceLocation:Qt.uri(t),valid:s,ast:e}),Wt.publishSync("result.end"),s},collectEvaluatedProperties:(e,t,n,r,a=!1)=>{const i=n[e][2];return"boolean"==typeof i?!!i&&[]:i.filter((([e])=>!a||!e.endsWith("#unevaluatedProperties"))).reduce(((e,[a,,i])=>{const o=e&&Xt.getKeyword(a).collectEvaluatedProperties(i,t,n,r);return!1!==o&&[...e,...o]}),[])},collectEvaluatedItems:(e,t,n,r,a=!1)=>{const i=n[e][2];return"boolean"==typeof i?!!i&&new Set:i.filter((([e])=>!a||!e.endsWith("#unevaluatedItems"))).reduce(((e,[a,,i])=>{const o=!1!==e&&Xt.getKeyword(a).collectEvaluatedItems(i,t,n,r);return!1!==o&&new Set([...e,...o])}),new Set)}};var tn={Core:Kt,Schema:vt,Instance:L,Reference:S,Keywords:{metaData:wt,validate:en},InvalidSchemaError:bt};const{Core:nn,Schema:rn,Instance:an}=tn;var on={compile:async(e,t,n)=>{const r=await rn.step("items",n),a=rn.typeOf(r,"array")?rn.length(r):Number.MAX_SAFE_INTEGER;return rn.typeOf(e,"boolean")?[a,rn.value(e)]:[a,await nn.compileSchema(e,t)]},interpret:([e,t],n,r,a)=>!an.typeOf(n,"array")||("string"==typeof t?an.every(((n,i)=>i<e||nn.interpretSchema(t,n,r,a)),n):an.every(((n,r)=>r<e||t),n))};const{Core:sn,Schema:cn,Instance:ln}=tn,pn=([e,t],n,r,a)=>!ln.typeOf(n,"array")||ln.every(((n,i)=>i<e||sn.interpretSchema(t,n,r,a)),n);var un={compile:async(e,t,n)=>{const r=await cn.step("items",n);return[cn.typeOf(r,"array")?cn.length(r):Number.MAX_SAFE_INTEGER,await sn.compileSchema(e,t)]},interpret:pn,collectEvaluatedItems:(e,t,n,r)=>pn(e,t,n,r)&&new Set(ln.map(((e,t)=>t),t))};const{Core:mn,Schema:fn,Instance:dn}=tn;var hn={compile:async(e,t,n)=>{const r=await fn.step("properties",n),a=fn.typeOf(r,"object")?fn.keys(r):[],i=await fn.step("patternProperties",n),o=fn.typeOf(i,"object")?fn.keys(i).map((e=>new RegExp(e))):[];return fn.typeOf(e,"boolean")?[a,o,fn.value(e)]:[a,o,await mn.compileSchema(e,t)]},interpret:([e,t,n],r,a,i)=>{if(!dn.typeOf(r,"object"))return!0;const o=dn.entries(r).filter((([n])=>!e.includes(n)&&!t.some((e=>e.test(n)))));return"string"==typeof n?o.every((([,e])=>mn.interpretSchema(n,e,a,i))):0===o.length||n}};const{Core:yn,Schema:vn,Instance:gn}=tn,bn=([e,t,n],r,a,i)=>!gn.typeOf(r,"object")||gn.entries(r).filter((([n])=>!e.includes(n)&&!t.some((e=>e.test(n))))).every((([,e])=>yn.interpretSchema(n,e,a,i)));var $n={compile:async(e,t,n)=>{const r=await vn.step("properties",n),a=vn.typeOf(r,"object")?vn.keys(r):[],i=await vn.step("patternProperties",n),o=vn.typeOf(i,"object")?vn.keys(i).map((e=>new RegExp(e))):[];return[a,o,await yn.compileSchema(e,t)]},interpret:bn,collectEvaluatedProperties:(e,t,n,r)=>bn(e,t,n,r)&&[new RegExp("")]};const{Core:wn,Schema:xn}=tn,Sn=re;var On={compile:(e,t)=>Sn.pipeline([xn.map((async e=>wn.compileSchema(await e,t))),Sn.all],e),interpret:(e,t,n,r)=>e.every((e=>wn.interpretSchema(e,t,n,r))),collectEvaluatedProperties:(e,t,n,r)=>e.reduce(((e,a)=>{const i=e&&wn.collectEvaluatedProperties(a,t,n,r);return!1!==i&&[...e,...i]}),[]),collectEvaluatedItems:(e,t,n,r)=>e.reduce(((e,a)=>{const i=!1!==e&&wn.collectEvaluatedItems(a,t,n,r);return!1!==i&&new Set([...e,...i])}),new Set)};const{Core:In,Schema:En}=tn,jn=re;var An={compile:(e,t)=>jn.pipeline([En.map((async e=>In.compileSchema(await e,t))),jn.all],e),interpret:(e,t,n,r)=>e.filter((e=>In.interpretSchema(e,t,n,r))).length>0,collectEvaluatedProperties:(e,t,n,r)=>e.reduce(((e,a)=>{const i=In.collectEvaluatedProperties(a,t,n,r);return!1!==i?[...e||[],...i]:e}),!1),collectEvaluatedItems:(e,t,n,r)=>e.reduce(((e,a)=>{const i=In.collectEvaluatedItems(a,t,n,r);return!1!==i?new Set([...e||[],...i]):e}),!1)},Cn=Object.keys,Pn=JSON.stringify;function Tn(e,t){var n,r,a,i,o,s,c;if("string"===(c=typeof e))return Pn(e);if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(e instanceof Array){for(a="[",r=e.length-1,n=0;n<r;n++)a+=Tn(e[n],!1)+",";return r>-1&&(a+=Tn(e[n],!1)),a+"]"}if(e instanceof Object){if("function"==typeof e.toJSON)return Tn(e.toJSON(),t);for(r=(i=Cn(e).sort()).length,a="",n=0;n<r;)void 0!==(s=Tn(e[o=i[n]],!0))&&(n&&""!==a&&(a+=","),a+=Pn(o)+":"+s),n++;return"{"+a+"}"}switch(c){case"function":case"undefined":return t?void 0:null;default:return isFinite(e)?e:null}}var Nn=function(e){return""+Tn(e,!1)};const{Schema:kn,Instance:Rn}=tn,Dn=Nn;var qn={compile:e=>Dn(kn.value(e)),interpret:(e,t)=>Dn(Rn.value(t))===e};const{Core:Mn,Instance:_n}=tn;var Ln={compile:(e,t)=>Mn.compileSchema(e,t),interpret:(e,t,n,r)=>!_n.typeOf(t,"array")||_n.some((t=>Mn.interpretSchema(e,t,n,r)),t)};const{Core:Fn,Schema:Un,Instance:Vn}=tn,zn=({contains:e,minContains:t,maxContains:n},r,a,i)=>{if(!Vn.typeOf(r,"array"))return!0;const o=Vn.reduce(((t,n)=>Fn.interpretSchema(e,n,a,i)?t+1:t),0,r);return o>=t&&o<=n};var Jn={compile:async(e,t,n)=>{const r=await Fn.compileSchema(e,t),a=await Un.step("minContains",n),i=Un.typeOf(a,"number")?Un.value(a):1,o=await Un.step("maxContains",n);return{contains:r,minContains:i,maxContains:Un.typeOf(o,"number")?Un.value(o):Number.MAX_SAFE_INTEGER}},interpret:zn,collectEvaluatedItems:(e,t,n,r)=>zn(e,t,n,r)&&Vn.reduce(((t,a,i)=>Fn.interpretSchema(e.contains,a,n,r)?t.add(i):t),new Set,t)};const{Core:Hn,Schema:Bn}=tn,Gn=re;var Kn={compile:async(e,t)=>{await Gn.pipeline([Bn.entries,Gn.map((([,e])=>Hn.compileSchema(e,t))),Gn.all],e)},interpret:()=>!0};const{Core:Zn,Schema:Wn,Instance:Xn}=tn,Qn=re;var Yn={compile:(e,t)=>Qn.pipeline([Wn.entries,Qn.map((async([e,n])=>[e,Wn.typeOf(n,"array")?Wn.value(n):await Zn.compileSchema(n,t)])),Qn.all],e),interpret:(e,t,n,r)=>{const a=Xn.value(t);return!Xn.typeOf(t,"object")||e.every((([e,i])=>!(e in a)||(Array.isArray(i)?i.every((e=>e in a)):Zn.interpretSchema(i,t,n,r))))}};const{Schema:er,Instance:tr}=tn,nr=re;var rr={compile:e=>nr.pipeline([er.entries,nr.map((([e,t])=>[e,er.value(t)])),nr.all],e),interpret:(e,t)=>{const n=tr.value(t);return!tr.typeOf(t,"object")||e.every((([e,t])=>!(e in n)||t.every((e=>e in n))))}};const{Core:ar,Schema:ir,Instance:or}=tn,sr=re;var cr={compile:(e,t)=>sr.pipeline([ir.entries,sr.map((async([e,n])=>[e,await ar.compileSchema(n,t)])),sr.all],e),interpret:(e,t,n,r)=>{const a=or.value(t);return!or.typeOf(t,"object")||e.every((([e,i])=>!(e in a)||ar.interpretSchema(i,t,n,r)))},collectEvaluatedProperties:(e,t,n,r)=>e.reduce(((e,[a,i])=>{if(!e||!or.has(a,t))return e;const o=ar.collectEvaluatedProperties(i,t,n,r);return!1!==o&&e.concat(o)}),[])};const{Schema:lr,Instance:pr}=tn,ur=Nn;var mr={compile:e=>lr.value(e).map(ur),interpret:(e,t)=>e.some((e=>ur(pr.value(t))===e))};const{Schema:fr,Instance:dr}=tn;var hr={compile:async e=>fr.value(e),interpret:(e,t)=>!dr.typeOf(t,"number")||dr.value(t)<e};const{Schema:yr,Instance:vr}=tn;var gr={compile:async e=>yr.value(e),interpret:(e,t)=>!vr.typeOf(t,"number")||vr.value(t)>e};const{Core:br}=tn;var $r={compile:(e,t)=>br.compileSchema(e,t),interpret:(e,t,n,r)=>(br.interpretSchema(e,t,n,r),!0),collectEvaluatedProperties:(e,t,n,r)=>br.collectEvaluatedProperties(e,t,n,r)||[],collectEvaluatedItems:(e,t,n,r)=>br.collectEvaluatedItems(e,t,n,r)||new Set};const{Core:wr,Schema:xr}=tn,Sr=(e,t,n,r)=>{const a=n[e][2];return"boolean"==typeof a?a:a.every((([e,,a])=>wr.getKeyword(e).interpret(a,t,n,r)))};var Or={compile:async(e,t,n)=>{if(xr.has("if",n)){const r=await xr.step("if",n);return[await wr.compileSchema(r,t),await wr.compileSchema(e,t)]}return[]},interpret:([e,t],n,r,a)=>void 0===e||!Sr(e,n,r,a)||wr.interpretSchema(t,n,r,a),collectEvaluatedProperties:([e,t],n,r,a)=>void 0!==e&&Sr(e,n,r,a)?wr.collectEvaluatedProperties(t,n,r,a):[],collectEvaluatedItems:([e,t],n,r,a)=>void 0!==e&&Sr(e,n,r,a)?wr.collectEvaluatedItems(t,n,r,a):new Set};const{Core:Ir,Schema:Er}=tn,jr=(e,t,n,r)=>{const a=n[e][2];return"boolean"==typeof a?a:a.every((([e,,a])=>Ir.getKeyword(e).interpret(a,t,n,r)))};var Ar={compile:async(e,t,n)=>{if(Er.has("if",n)){const r=await Er.step("if",n);return[await Ir.compileSchema(r,t),await Ir.compileSchema(e,t)]}return[]},interpret:([e,t],n,r,a)=>void 0===e||jr(e,n,r,a)||Ir.interpretSchema(t,n,r,a),collectEvaluatedProperties:([e,t],n,r,a)=>void 0===e||jr(e,n,r,a)?[]:Ir.collectEvaluatedProperties(t,n,r,a),collectEvaluatedItems:([e,t],n,r,a)=>void 0===e||jr(e,n,r,a)?new Set:Ir.collectEvaluatedItems(t,n,r,a)};const{Core:Cr,Schema:Pr,Instance:Tr}=tn,Nr=(e,t,n,r)=>!Tr.typeOf(t,"array")||("string"==typeof e?Tr.every((t=>Cr.interpretSchema(e,t,n,r)),t):Tr.every(((t,a)=>!(a in e)||Cr.interpretSchema(e[a],t,n,r)),t));var kr={compile:async(e,t)=>{if(Pr.typeOf(e,"array")){const n=await Pr.map((e=>Cr.compileSchema(e,t)),e);return Promise.all(n)}return Cr.compileSchema(e,t)},interpret:Nr,collectEvaluatedItems:(e,t,n,r)=>Nr(e,t,n,r)&&("string"==typeof e?new Set(Tr.map(((e,t)=>t),t)):new Set(e.map(((e,t)=>t))))};const{Core:Rr,Schema:Dr,Instance:qr}=tn,Mr=([e,t],n,r,a)=>!qr.typeOf(n,"array")||qr.every(((n,i)=>i<e||Rr.interpretSchema(t,n,r,a)),n);var _r={compile:async(e,t,n)=>{const r=await Dr.step("prefixItems",n);return[Dr.typeOf(r,"array")?Dr.length(r):0,await Rr.compileSchema(e,t)]},interpret:Mr,collectEvaluatedItems:(e,t,n,r)=>Mr(e,t,n,r)&&new Set(qr.map(((e,t)=>t),t))};const{Schema:Lr,Instance:Fr}=tn;var Ur={compile:e=>Lr.value(e),interpret:(e,t)=>!Fr.typeOf(t,"array")||Fr.length(t)<=e};const{Schema:Vr,Instance:zr}=tn;var Jr={compile:e=>Vr.value(e),interpret:(e,t)=>!zr.typeOf(t,"string")||[...zr.value(t)].length<=e};const{Schema:Hr,Instance:Br}=tn;var Gr={compile:e=>Hr.value(e),interpret:(e,t)=>!Br.typeOf(t,"object")||Br.keys(t).length<=e};const{Schema:Kr,Instance:Zr}=tn;var Wr={compile:async(e,t,n)=>{const r=await Kr.step("exclusiveMaximum",n),a=Kr.value(r);return[Kr.value(e),a]},interpret:([e,t],n)=>{if(!Zr.typeOf(n,"number"))return!0;const r=Zr.value(n);return t?r<e:r<=e}};const{Schema:Xr,Instance:Qr}=tn;var Yr={compile:async e=>Xr.value(e),interpret:(e,t)=>!Qr.typeOf(t,"number")||Qr.value(t)<=e};const{Schema:ea,Instance:ta}=tn;var na={compile:e=>ea.value(e),interpret:(e,t)=>!ta.typeOf(t,"array")||ta.length(t)>=e};const{Schema:ra,Instance:aa}=tn;var ia={compile:e=>ra.value(e),interpret:(e,t)=>!aa.typeOf(t,"string")||[...aa.value(t)].length>=e};const{Schema:oa,Instance:sa}=tn;var ca={compile:e=>oa.value(e),interpret:(e,t)=>!sa.typeOf(t,"object")||sa.keys(t).length>=e};const{Schema:la,Instance:pa}=tn;var ua={compile:async(e,t,n)=>{const r=await la.step("exclusiveMinimum",n),a=la.value(r);return[la.value(e),a]},interpret:([e,t],n)=>{if(!pa.typeOf(n,"number"))return!0;const r=pa.value(n);return t?r>e:r>=e}};const{Schema:ma,Instance:fa}=tn;var da={compile:async e=>ma.value(e),interpret:(e,t)=>!fa.typeOf(t,"number")||fa.value(t)>=e};const{Schema:ha,Instance:ya}=tn,va=(e,t)=>Math.abs(e-t)<1.1920929e-7;var ga={compile:e=>ha.value(e),interpret:(e,t)=>{if(!ya.typeOf(t,"number"))return!0;const n=ya.value(t)%e;return va(0,n)||va(e,n)}};const{Core:ba}=tn;var $a={compile:ba.compileSchema,interpret:(e,t,n,r)=>!ba.interpretSchema(e,t,n,r)};const{Core:wa,Schema:xa}=tn;var Sa={compile:async(e,t)=>{const n=await xa.map((e=>wa.compileSchema(e,t)),e);return Promise.all(n)},interpret:(e,t,n,r)=>{let a=0;for(const i of e)if(wa.interpretSchema(i,t,n,r)&&a++,a>1)break;return 1===a},collectEvaluatedProperties:(e,t,n,r)=>{let a=0;return e.reduce(((e,i)=>{if(a>1)return!1;const o=wa.collectEvaluatedProperties(i,t,n,r);return o?0==a++&&o:e}),!1)},collectEvaluatedItems:(e,t,n,r)=>{let a=0;return e.reduce(((e,i)=>{if(a>1)return!1;const o=wa.collectEvaluatedItems(i,t,n,r);return o?0==a++&&o:e}),!1)}};const{Schema:Oa,Instance:Ia}=tn;var Ea={compile:e=>new RegExp(Oa.value(e),"u"),interpret:(e,t)=>!Ia.typeOf(t,"string")||e.test(Ia.value(t))};const{Core:ja,Schema:Aa,Instance:Ca}=tn,Pa=re,Ta=(e,t,n,r)=>!Ca.typeOf(t,"object")||e.every((([e,a])=>Ca.entries(t).filter((([t])=>e.test(t))).every((([,e])=>ja.interpretSchema(a,e,n,r)))));var Na={compile:(e,t)=>Pa.pipeline([Aa.entries,Pa.map((async([e,n])=>[new RegExp(e,"u"),await ja.compileSchema(n,t)])),Pa.all],e),interpret:Ta,collectEvaluatedProperties:(e,t,n,r)=>Ta(e,t,n,r)&&e.map((([e])=>e))};var ka={isObject:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,escapeRegExp:e=>e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),splitUrl:e=>{const t=e.indexOf("#"),n=-1===t?e.length:t,r=e.slice(0,n),a=e.slice(n+1);return[decodeURI(r),decodeURI(a)]}};const{Core:Ra,Schema:Da,Instance:qa}=tn,Ma=re,{escapeRegExp:_a}=ka,La=(e,t,n,r)=>!qa.typeOf(t,"object")||qa.entries(t).filter((([t])=>t in e)).every((([t,a])=>Ra.interpretSchema(e[t],a,n,r)));var Fa={compile:(e,t)=>Ma.pipeline([Da.entries,Ma.reduce((async(e,[n,r])=>(e[n]=await Ra.compileSchema(r,t),e)),Object.create(null))],e),interpret:La,collectEvaluatedProperties:(e,t,n,r)=>La(e,t,n,r)&&Object.keys(e).map((e=>new RegExp(`^${_a(e)}$`)))};const{Core:Ua,Instance:Va}=tn;var za={compile:(e,t)=>Ua.compileSchema(e,t),interpret:(e,t,n,r)=>!Va.typeOf(t,"object")||Va.keys(t).every((t=>Ua.interpretSchema(e,Va.cons(t),n,r)))};const{Core:Ja,Schema:Ha}=tn,{splitUrl:Ba}=ka;var Ga={compile:async(e,t)=>{const[,n]=Ba(Ha.value(e)),r=await Ha.get(Ha.value(e),e);return await Ja.compileSchema(r,t),[r.id,n]},interpret:([e,t],n,r,a)=>{if(t in r.metaData[e].dynamicAnchors)return Ja.interpretSchema(a[t],n,r,a);{const i=Ha.getAnchorPointer(r.metaData[e],t);return Ja.interpretSchema(`${e}#${encodeURI(i)}`,n,r,a)}},collectEvaluatedProperties:Ja.collectEvaluatedProperties,collectEvaluatedItems:Ja.collectEvaluatedItems};const{Core:Ka,Schema:Za}=tn;var Wa={compile:async(e,t)=>{const n=await Za.get(Za.value(e),e);return Ka.compileSchema(n,t)},interpret:Ka.interpretSchema,collectEvaluatedProperties:Ka.collectEvaluatedProperties,collectEvaluatedItems:Ka.collectEvaluatedItems};const{Schema:Xa,Instance:Qa}=tn;var Ya={compile:e=>Xa.value(e),interpret:(e,t)=>!Qa.typeOf(t,"object")||e.every((e=>Object.prototype.hasOwnProperty.call(Qa.value(t),e)))};const{Core:ei,Schema:ti,Instance:ni}=tn,ri=re,ai=(e,t,n,r)=>!ni.typeOf(t,"array")||ni.every(((t,a)=>!(a in e)||ei.interpretSchema(e[a],t,n,r)),t);var ii={compile:(e,t)=>ri.pipeline([ti.map((e=>ei.compileSchema(e,t))),ri.all],e),interpret:ai,collectEvaluatedItems:(e,t,n,r)=>ai(e,t,n,r)&&new Set(e.map(((e,t)=>t)))};const{Schema:oi,Instance:si}=tn;var ci={compile:e=>oi.value(e),interpret:(e,t)=>"string"==typeof e?si.typeOf(t,e):e.some(si.typeOf(t))};const{Core:li,Schema:pi,Instance:ui}=tn,mi=([e,t],n,r,a)=>{if(!ui.typeOf(n,"array"))return!0;const i=li.collectEvaluatedItems(e,n,r,a,!0);return!1===i||ui.every(((e,o)=>i.has(o)||li.interpretSchema(t,ui.step(o,n),r,a)),n)};var fi={compile:async(e,t,n)=>[pi.uri(n),await li.compileSchema(e,t)],interpret:mi,collectEvaluatedItems:(e,t,n,r)=>mi(e,t,n,r)&&new Set(ui.map(((e,t)=>t),t))};const{Core:di,Schema:hi,Instance:yi}=tn,vi=([e,t],n,r,a)=>{if(!yi.typeOf(n,"object"))return!0;const i=di.collectEvaluatedProperties(e,n,r,a,!0);return!i||yi.entries(n).filter((([e])=>!i.some((t=>e.match(t))))).every((([,e])=>di.interpretSchema(t,e,r,a)))};var gi={compile:async(e,t,n)=>[hi.uri(n),await di.compileSchema(e,t)],interpret:vi,collectEvaluatedProperties:(e,t,n,r)=>vi(e,t,n,r)&&[new RegExp("")]};const{Schema:bi,Instance:$i}=tn,wi=Nn;var xi={compile:e=>bi.value(e),interpret:(e,t)=>{if(!$i.typeOf(t,"array")||!1===e)return!0;const n=$i.map((e=>wi($i.value(e))),t);return new Set(n).size===n.length}};const{Keywords:Si}=tn;var Oi={additionalItems:on,additionalItems6:un,additionalProperties:hn,additionalProperties6:$n,allOf:On,anyOf:An,const:qn,contains:Ln,containsMinContainsMaxContains:Jn,definitions:Kn,dependencies:Yn,dependentRequired:rr,dependentSchemas:cr,enum:mr,exclusiveMaximum:hr,exclusiveMinimum:gr,if:$r,then:Or,else:Ar,items:kr,items202012:_r,maxItems:Ur,maxLength:Jr,maxProperties:Gr,maximumExclusiveMaximum:Wr,maximum:Yr,metaData:Si.metaData,minItems:na,minLength:ia,minProperties:ca,minimumExclusiveMinimum:ua,minimum:da,multipleOf:ga,not:$a,oneOf:Sa,pattern:Ea,patternProperties:Na,properties:Fa,propertyNames:za,dynamicRef:Ga,ref:Wa,required:Ya,tupleItems:ii,type:ci,unevaluatedItems:fi,unevaluatedProperties:gi,uniqueItems:xi,validate:Si.validate};const{Core:Ii,Schema:Ei}=tn,ji=Oi,Ai="http://json-schema.org/draft-04/schema";Ei.setConfig(Ai,"baseToken","id"),Ei.setConfig(Ai,"embeddedToken","id"),Ei.setConfig(Ai,"anchorToken","id"),Ei.setConfig(Ai,"jrefToken","$ref"),Ei.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}')),Ii.defineVocabulary(Ai,{validate:ji.validate,additionalItems:ji.additionalItems,additionalProperties:ji.additionalProperties,allOf:ji.allOf,anyOf:ji.anyOf,default:ji.metaData,definitions:ji.definitions,dependencies:ji.dependencies,description:ji.metaData,enum:ji.enum,format:ji.metaData,items:ji.items,maxItems:ji.maxItems,maxLength:ji.maxLength,maxProperties:ji.maxProperties,maximum:ji.maximumExclusiveMaximum,minItems:ji.minItems,minLength:ji.minLength,minProperties:ji.minProperties,minimum:ji.minimumExclusiveMinimum,multipleOf:ji.multipleOf,not:ji.not,oneOf:ji.oneOf,pattern:ji.pattern,patternProperties:ji.patternProperties,properties:ji.properties,required:ji.required,title:ji.metaData,type:ji.type,uniqueItems:ji.uniqueItems});const{Core:Ci,Schema:Pi}=tn,Ti=Oi,Ni="http://json-schema.org/draft-06/schema";Pi.setConfig(Ni,"baseToken","$id"),Pi.setConfig(Ni,"embeddedToken","$id"),Pi.setConfig(Ni,"anchorToken","$id"),Pi.setConfig(Ni,"jrefToken","$ref"),Pi.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}')),Ci.defineVocabulary(Ni,{validate:Ti.validate,additionalItems:Ti.additionalItems6,additionalProperties:Ti.additionalProperties6,allOf:Ti.allOf,anyOf:Ti.anyOf,const:Ti.const,contains:Ti.contains,default:Ti.metaData,definitions:Ti.definitions,dependencies:Ti.dependencies,description:Ti.metaData,enum:Ti.enum,examples:Ti.metaData,exclusiveMaximum:Ti.exclusiveMaximum,exclusiveMinimum:Ti.exclusiveMinimum,format:Ti.metaData,items:Ti.items,maxItems:Ti.maxItems,maxLength:Ti.maxLength,maxProperties:Ti.maxProperties,maximum:Ti.maximum,minItems:Ti.minItems,minLength:Ti.minLength,minProperties:Ti.minProperties,minimum:Ti.minimum,multipleOf:Ti.multipleOf,not:Ti.not,oneOf:Ti.oneOf,pattern:Ti.pattern,patternProperties:Ti.patternProperties,properties:Ti.properties,propertyNames:Ti.propertyNames,required:Ti.required,title:Ti.metaData,type:Ti.type,uniqueItems:Ti.uniqueItems});const{Core:ki,Schema:Ri}=tn,Di=Oi,qi="http://json-schema.org/draft-07/schema";Ri.setConfig(qi,"baseToken","$id"),Ri.setConfig(qi,"embeddedToken","$id"),Ri.setConfig(qi,"anchorToken","$id"),Ri.setConfig(qi,"jrefToken","$ref"),Ri.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}')),ki.defineVocabulary(qi,{validate:Di.validate,additionalItems:Di.additionalItems6,additionalProperties:Di.additionalProperties6,allOf:Di.allOf,anyOf:Di.anyOf,const:Di.const,contains:Di.contains,default:Di.metaData,definitions:Di.definitions,dependencies:Di.dependencies,description:Di.metaData,enum:Di.enum,exclusiveMaximum:Di.exclusiveMaximum,exclusiveMinimum:Di.exclusiveMinimum,format:Di.metaData,if:Di.if,then:Di.then,else:Di.else,items:Di.items,maxItems:Di.maxItems,maxLength:Di.maxLength,maxProperties:Di.maxProperties,maximum:Di.maximum,minItems:Di.minItems,minLength:Di.minLength,minProperties:Di.minProperties,minimum:Di.minimum,multipleOf:Di.multipleOf,not:Di.not,oneOf:Di.oneOf,pattern:Di.pattern,patternProperties:Di.patternProperties,properties:Di.properties,propertyNames:Di.propertyNames,readOnly:Di.metaData,required:Di.required,title:Di.metaData,type:Di.type,uniqueItems:Di.uniqueItems,writeOnly:Di.metaData});const{Core:Mi,Schema:_i}=tn,Li=Oi,Fi="https://json-schema.org/draft/2019-09/vocab/core";_i.setConfig(Fi,"baseToken","$id"),_i.setConfig(Fi,"embeddedToken","$id"),_i.setConfig(Fi,"anchorToken","$anchor"),_i.setConfig(Fi,"recursiveAnchorToken","$recursiveAnchor"),_i.setConfig(Fi,"vocabularyToken","$vocabulary"),_i.setConfig(Fi,"mandatoryVocabularies",["https://json-schema.org/draft/2019-09/vocab/core"]),_i.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}')),_i.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}')),Mi.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/core",{validate:Li.validate,$defs:Li.definitions,$recursiveRef:Li.dynamicRef,$ref:Li.ref}),_i.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}')),Mi.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/applicator",{additionalItems:Li.additionalItems6,additionalProperties:Li.additionalProperties6,allOf:Li.allOf,anyOf:Li.anyOf,contains:Li.containsMinContainsMaxContains,dependentSchemas:Li.dependentSchemas,if:Li.if,then:Li.then,else:Li.else,items:Li.items,not:Li.not,oneOf:Li.oneOf,patternProperties:Li.patternProperties,properties:Li.properties,propertyNames:Li.propertyNames,unevaluatedItems:Li.unevaluatedItems,unevaluatedProperties:Li.unevaluatedProperties}),_i.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}')),Mi.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/validation",{const:Li.const,dependentRequired:Li.dependentRequired,enum:Li.enum,exclusiveMaximum:Li.exclusiveMaximum,exclusiveMinimum:Li.exclusiveMinimum,maxItems:Li.maxItems,maxLength:Li.maxLength,maxProperties:Li.maxProperties,maximum:Li.maximum,minItems:Li.minItems,minLength:Li.minLength,minProperties:Li.minProperties,minimum:Li.minimum,multipleOf:Li.multipleOf,pattern:Li.pattern,required:Li.required,type:Li.type,uniqueItems:Li.uniqueItems}),_i.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}')),Mi.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/meta-data",{default:Li.metaData,deprecated:Li.metaData,description:Li.metaData,examples:Li.metaData,readOnly:Li.metaData,title:Li.metaData,writeOnly:Li.metaData}),_i.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}')),_i.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}')),Mi.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/content",{contentEncoding:Li.metaData,contentMediaType:Li.metaData,contentSchema:Li.metaData});const{Core:Ui,Schema:Vi}=tn,zi=Oi,Ji="https://json-schema.org/draft/2020-12/vocab/core";Vi.setConfig(Ji,"baseToken","$id"),Vi.setConfig(Ji,"embeddedToken","$id"),Vi.setConfig(Ji,"anchorToken","$anchor"),Vi.setConfig(Ji,"dynamicAnchorToken","$dynamicAnchor"),Vi.setConfig(Ji,"vocabularyToken","$vocabulary"),Vi.setConfig(Ji,"mandatoryVocabularies",["https://json-schema.org/draft/2020-12/vocab/core"]),Vi.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}')),Vi.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}')),Ui.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/core",{validate:zi.validate,$defs:zi.definitions,$dynamicRef:zi.dynamicRef,$ref:zi.ref}),Vi.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}')),Ui.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/applicator",{additionalProperties:zi.additionalProperties6,allOf:zi.allOf,anyOf:zi.anyOf,contains:zi.containsMinContainsMaxContains,dependentSchemas:zi.dependentSchemas,if:zi.if,then:zi.then,else:zi.else,items:zi.items202012,not:zi.not,oneOf:zi.oneOf,patternProperties:zi.patternProperties,prefixItems:zi.tupleItems,properties:zi.properties,propertyNames:zi.propertyNames}),Vi.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}')),Ui.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/validation",{const:zi.const,dependentRequired:zi.dependentRequired,enum:zi.enum,exclusiveMaximum:zi.exclusiveMaximum,exclusiveMinimum:zi.exclusiveMinimum,maxItems:zi.maxItems,maxLength:zi.maxLength,maxProperties:zi.maxProperties,maximum:zi.maximum,minItems:zi.minItems,minLength:zi.minLength,minProperties:zi.minProperties,minimum:zi.minimum,multipleOf:zi.multipleOf,pattern:zi.pattern,required:zi.required,type:zi.type,uniqueItems:zi.uniqueItems}),Vi.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}')),Ui.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/meta-data",{default:zi.metaData,deprecated:zi.metaData,description:zi.metaData,examples:zi.metaData,readOnly:zi.metaData,title:zi.metaData,writeOnly:zi.metaData}),Vi.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}')),Ui.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/format-annotation",{format:zi.metaData}),Vi.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}')),Vi.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}')),Ui.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/content",{contentEncoding:zi.metaData,contentMediaType:zi.metaData,contentSchema:zi.metaData}),Vi.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}')),Ui.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/unevaluated",{unevaluatedItems:zi.unevaluatedItems,unevaluatedProperties:zi.unevaluatedProperties});const{Core:Hi,Schema:Bi,InvalidSchemaError:Gi}=tn,Ki=Oi;var Zi={add:Hi.add,get:Bi.get,validate:Hi.validate,compile:Hi.compile,interpret:Hi.interpret,setMetaOutputFormat:Hi.setMetaOutputFormat,setShouldMetaValidate:Hi.setShouldMetaValidate,addMediaTypePlugin:Hi.addMediaTypePlugin,FLAG:Hi.FLAG,BASIC:Hi.BASIC,DETAILED:Hi.DETAILED,VERBOSE:Hi.VERBOSE,Keywords:Ki,InvalidSchemaError:Gi};e.default=Zi,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
define(["exports"],(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=function(e,t){return function n(){null==t&&(t=e.length);var r=[].slice.call(arguments);return r.length>=t?e.apply(this,r):function(){return n.apply(this,r.concat([].slice.call(arguments)))}}};var r={};!function(e,n){!function(t,r){var a={};t.PubSub?(a=t.PubSub,console.warn("PubSub already loaded, using existing version")):(t.PubSub=a,function(e){var t={},n=-1,r="*";function a(e){var t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e){return function(){throw e}}function o(e,t,n){try{e(t,n)}catch(e){setTimeout(i(e),0)}}function s(e,t,n){e(t,n)}function c(e,n,r,a){var i,c=t[n],l=a?s:o;if(Object.prototype.hasOwnProperty.call(t,n))for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&l(c[i],e,r)}function l(e,t,n){return function(){var a=String(e),i=a.lastIndexOf(".");for(c(e,e,t,n);-1!==i;)i=(a=a.substr(0,i)).lastIndexOf("."),c(e,a,t,n);c(e,r,t,n)}}function p(e){var n=String(e);return Boolean(Object.prototype.hasOwnProperty.call(t,n)&&a(t[n]))}function u(e){for(var t=String(e),n=p(t)||p(r),a=t.lastIndexOf(".");!n&&-1!==a;)a=(t=t.substr(0,a)).lastIndexOf("."),n=p(t);return n}function m(e,t,n,r){var a=l(e="symbol"==typeof e?e.toString():e,t,r);return!!u(e)&&(!0===n?a():setTimeout(a,0),!0)}e.publish=function(t,n){return m(t,n,!1,e.immediateExceptions)},e.publishSync=function(t,n){return m(t,n,!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(t,e)||(t[e]={});var a="uid_"+String(++n);return t[e][a]=r,a},e.subscribeAll=function(t){return e.subscribe(r,t)},e.subscribeOnce=function(t,n){var r=e.subscribe(t,(function(){e.unsubscribe(r),n.apply(this,arguments)}));return e},e.clearAllSubscriptions=function(){t={}},e.clearSubscriptions=function(e){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&delete t[n]},e.countSubscriptions=function(e){var n,r,a=0;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)){for(r in t[n])a++;break}return a},e.getSubscriptions=function(e){var n,r=[];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&r.push(n);return r},e.unsubscribe=function(n){var r,a,i,o=function(e){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e))return!0;return!1},s="string"==typeof n&&(Object.prototype.hasOwnProperty.call(t,n)||o(n)),c=!s&&"string"==typeof n,l="function"==typeof n,p=!1;if(!s){for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(a=t[r],c&&a[n]){delete a[n],p=n;break}if(l)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&a[i]===n&&(delete a[i],p=!0)}return p}e.clearSubscriptions(n)}}(a)),void 0!==e&&e.exports&&(n=e.exports=a),n.PubSub=a,e.exports=n=a}("object"==typeof window&&window||t)}({get exports(){return r},set exports(e){r=e}},r);var a={};
|
|
2
|
+
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
3
|
+
!function(e,t){!function(e){function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,a=1;a<r;++a)t[a]=t[a].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function n(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function a(e){return e.toUpperCase()}function i(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function o(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}function s(e){var r="[A-Za-z]",a="[0-9]",i=t(a,"[A-Fa-f]"),o=n(n("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+n("%[89A-Fa-f]"+i+"%"+i+i)+"|"+n("%"+i+i)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),l=e?"[\\uE000-\\uF8FF]":"[]",p=t(r,a,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");n(r+t(r,a,"[\\+\\-\\.]")+"*"),n(n(o+"|"+t(p,s,"[\\:]"))+"*");var u=n(n("25[0-5]")+"|"+n("2[0-4]"+a)+"|"+n("1"+a+a)+"|"+n("0?[1-9]"+a)+"|0?0?"+a),m=n(u+"\\."+u+"\\."+u+"\\."+u),f=n(i+"{1,4}"),d=n(n(f+"\\:"+f)+"|"+m),h=n(n(f+"\\:")+"{6}"+d),y=n("\\:\\:"+n(f+"\\:")+"{5}"+d),v=n(n(f)+"?\\:\\:"+n(f+"\\:")+"{4}"+d),g=n(n(n(f+"\\:")+"{0,1}"+f)+"?\\:\\:"+n(f+"\\:")+"{3}"+d),b=n(n(n(f+"\\:")+"{0,2}"+f)+"?\\:\\:"+n(f+"\\:")+"{2}"+d),$=n(n(n(f+"\\:")+"{0,3}"+f)+"?\\:\\:"+f+"\\:"+d),w=n(n(n(f+"\\:")+"{0,4}"+f)+"?\\:\\:"+d),x=n(n(n(f+"\\:")+"{0,5}"+f)+"?\\:\\:"+f),S=n(n(n(f+"\\:")+"{0,6}"+f)+"?\\:\\:"),O=n([h,y,v,g,b,$,w,x,S].join("|")),I=n(n(p+"|"+o)+"+");n("[vV]"+i+"+\\."+t(p,s,"[\\:]")+"+"),n(n(o+"|"+t(p,s))+"*");var E=n(o+"|"+t(p,s,"[\\:\\@]"));return n(n(o+"|"+t(p,s,"[\\@]"))+"+"),n(n(E+"|"+t("[\\/\\?]",l))+"*"),{NOT_SCHEME:new RegExp(t("[^]",r,a,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",p,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",p,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",p,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",p,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",p,s,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",p,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",p,s),"g"),UNRESERVED:new RegExp(p,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",p,c),"g"),PCT_ENCODED:new RegExp(o,"g"),IPV4ADDRESS:new RegExp("^("+m+")$"),IPV6ADDRESS:new RegExp("^\\[?("+O+")"+n(n("\\%25|\\%(?!"+i+"{2})")+"("+I+")")+"?\\]?$")}}var c=s(!1),l=s(!0),p=function(){function e(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},m=2147483647,f=36,d=1,h=26,y=38,v=700,g=72,b=128,$="-",w=/^xn--/,x=/[^\0-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,O={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=f-d,E=Math.floor,j=String.fromCharCode;function A(e){throw new RangeError(O[e])}function C(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}function P(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+C((e=e.replace(S,".")).split("."),t).join(".")}function T(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&a)<<10)+(1023&i)+65536):(t.push(a),n--)}else t.push(a)}return t}var N=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:f},k=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},R=function(e,t,n){var r=0;for(e=n?E(e/v):e>>1,e+=E(e/t);e>I*h>>1;r+=f)e=E(e/I);return E(r+(I+1)*e/(e+y))},D=function(e){var t=[],n=e.length,r=0,a=b,i=g,o=e.lastIndexOf($);o<0&&(o=0);for(var s=0;s<o;++s)e.charCodeAt(s)>=128&&A("not-basic"),t.push(e.charCodeAt(s));for(var c=o>0?o+1:0;c<n;){for(var l=r,p=1,u=f;;u+=f){c>=n&&A("invalid-input");var y=N(e.charCodeAt(c++));(y>=f||y>E((m-r)/p))&&A("overflow"),r+=y*p;var v=u<=i?d:u>=i+h?h:u-i;if(y<v)break;var w=f-v;p>E(m/w)&&A("overflow"),p*=w}var x=t.length+1;i=R(r-l,x,0==l),E(r/x)>m-a&&A("overflow"),a+=E(r/x),r%=x,t.splice(r++,0,a)}return String.fromCodePoint.apply(String,t)},q=function(e){var t=[],n=(e=T(e)).length,r=b,a=0,i=g,o=!0,s=!1,c=void 0;try{for(var l,p=e[Symbol.iterator]();!(o=(l=p.next()).done);o=!0){var u=l.value;u<128&&t.push(j(u))}}catch(e){s=!0,c=e}finally{try{!o&&p.return&&p.return()}finally{if(s)throw c}}var y=t.length,v=y;for(y&&t.push($);v<n;){var w=m,x=!0,S=!1,O=void 0;try{for(var I,C=e[Symbol.iterator]();!(x=(I=C.next()).done);x=!0){var P=I.value;P>=r&&P<w&&(w=P)}}catch(e){S=!0,O=e}finally{try{!x&&C.return&&C.return()}finally{if(S)throw O}}var N=v+1;w-r>E((m-a)/N)&&A("overflow"),a+=(w-r)*N,r=w;var D=!0,q=!1,M=void 0;try{for(var _,L=e[Symbol.iterator]();!(D=(_=L.next()).done);D=!0){var F=_.value;if(F<r&&++a>m&&A("overflow"),F==r){for(var V=a,U=f;;U+=f){var z=U<=i?d:U>=i+h?h:U-i;if(V<z)break;var J=V-z,H=f-z;t.push(j(k(z+J%H,0))),V=E(J/H)}t.push(j(k(V,0))),i=R(a,N,v==y),a=0,++v}}}catch(e){q=!0,M=e}finally{try{!D&&L.return&&L.return()}finally{if(q)throw M}}++a,++r}return t.join("")},M=function(e){return P(e,(function(e){return w.test(e)?D(e.slice(4).toLowerCase()):e}))},_=function(e){return P(e,(function(e){return x.test(e)?"xn--"+q(e):e}))},L={version:"2.1.0",ucs2:{decode:T,encode:function(e){return String.fromCodePoint.apply(String,u(e))}},decode:D,encode:q,toASCII:_,toUnicode:M},F={};function V(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function U(e){for(var t="",n=0,r=e.length;n<r;){var a=parseInt(e.substr(n+1,2),16);if(a<128)t+=String.fromCharCode(a),n+=3;else if(a>=194&&a<224){if(r-n>=6){var i=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&a)<<6|63&i)}else t+=e.substr(n,6);n+=6}else if(a>=224){if(r-n>=9){var o=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&a)<<12|(63&o)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function z(e,t){function n(e){var n=U(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,V).replace(t.PCT_ENCODED,a)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,V).replace(t.PCT_ENCODED,a)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,V).replace(t.PCT_ENCODED,a)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,V).replace(t.PCT_ENCODED,a)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,V).replace(t.PCT_ENCODED,a)),e}function J(e){return e.replace(/^0*(.*)/,"$1")||"0"}function H(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=p(n,2)[1];return r?r.split(".").map(J).join("."):e}function B(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=p(n,3),a=r[1],i=r[2];if(a){for(var o=a.toLowerCase().split("::").reverse(),s=p(o,2),c=s[0],l=s[1],u=l?l.split(":").map(J):[],m=c.split(":").map(J),f=t.IPV4ADDRESS.test(m[m.length-1]),d=f?7:8,h=m.length-d,y=Array(d),v=0;v<d;++v)y[v]=u[v]||m[h+v]||"";f&&(y[d-1]=H(y[d-1],t));var g=y.reduce((function(e,t,n){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(g&&g.length>1){var $=y.slice(0,g.index),w=y.slice(g.index+g.length);b=$.join(":")+"::"+w.join(":")}else b=y.join(":");return i&&(b+="%"+i),b}return e}var G=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,K=void 0==="".match(/(){0}/)[1];function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?l:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var a=e.match(G);if(a){K?(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5])):(n.scheme=a[1]||void 0,n.userinfo=-1!==e.indexOf("@")?a[3]:void 0,n.host=-1!==e.indexOf("//")?a[4]:void 0,n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=-1!==e.indexOf("?")?a[7]:void 0,n.fragment=-1!==e.indexOf("#")?a[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?a[4]:void 0)),n.host&&(n.host=B(H(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var i=F[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)z(n,r);else{if(n.host&&(t.domainHost||i&&i.domainHost))try{n.host=L.toASCII(n.host.replace(r.PCT_ENCODED,U).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}z(n,c)}i&&i.parse&&i.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}function W(e,t){var n=!1!==t.iri?l:c,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(B(H(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}var X=/^\.\.?\//,Q=/^\/\.(\/|$)/,Y=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(Q))e=e.replace(Q,"/");else if(e.match(Y))e=e.replace(Y,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(ee);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?l:c,r=[],a=F[(t.scheme||e.scheme||"").toLowerCase()];if(a&&a.serialize&&a.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||a&&a.domainHost)try{e.host=t.iri?L.toUnicode(e.host):L.toASCII(e.host.replace(n.PCT_ENCODED,U).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}z(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=W(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var o=e.path;t.absolutePath||a&&a.absolutePath||(o=te(o)),void 0===i&&(o=o.replace(/^\/\//,"/%2F")),r.push(o)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=Z(ne(e,n),n),t=Z(ne(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=te(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function ae(e,t,n){var r=o({scheme:"null"},n);return ne(re(Z(e,r),Z(t,r),r,!0),r)}function ie(e,t){return"string"==typeof e?e=ne(Z(e,t),t):"object"===r(e)&&(e=Z(ne(e,t),t)),e}function oe(e,t,n){return"string"==typeof e?e=ne(Z(e,n),n):"object"===r(e)&&(e=ne(e,n)),"string"==typeof t?t=ne(Z(t,n),n):"object"===r(t)&&(t=ne(t,n)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?l.ESCAPE:c.ESCAPE,V)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?l.PCT_ENCODED:c.PCT_ENCODED,U)}var le={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},pe={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function ue(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var me={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=ue(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(ue(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=p(n,2),a=r[0],i=r[1];e.path=a&&"/"!==a?a:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},fe={scheme:"wss",domainHost:me.domainHost,parse:me.parse,serialize:me.serialize},de={},he="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ye="[0-9A-Fa-f]",ve=n(n("%[EFef]"+ye+"%"+ye+ye+"%"+ye+ye)+"|"+n("%[89A-Fa-f]"+ye+"%"+ye+ye)+"|"+n("%"+ye+ye)),ge="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),$e="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(he,"g"),xe=new RegExp(ve,"g"),Se=new RegExp(t("[^]",ge,"[\\.]",'[\\"]',be),"g"),Oe=new RegExp(t("[^]",he,$e),"g"),Ie=Oe;function Ee(e){var t=U(e);return t.match(we)?t:e}var je={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var a=!1,i={},o=n.query.split("&"),s=0,c=o.length;s<c;++s){var l=o[s].split("=");switch(l[0]){case"to":for(var p=l[1].split(","),u=0,m=p.length;u<m;++u)r.push(p[u]);break;case"subject":n.subject=ce(l[1],t);break;case"body":n.body=ce(l[1],t);break;default:a=!0,i[ce(l[0],t)]=ce(l[1],t)}}a&&(n.headers=i)}n.query=void 0;for(var f=0,d=r.length;f<d;++f){var h=r[f].split("@");if(h[0]=ce(h[0]),t.unicodeSupport)h[1]=ce(h[1],t).toLowerCase();else try{h[1]=L.toASCII(ce(h[1],t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}r[f]=h.join("@")}return n},serialize:function(e,t){var n=e,r=i(e.to);if(r){for(var o=0,s=r.length;o<s;++o){var c=String(r[o]),l=c.lastIndexOf("@"),p=c.slice(0,l).replace(xe,Ee).replace(xe,a).replace(Se,V),u=c.slice(l+1);try{u=t.iri?L.toUnicode(u):L.toASCII(ce(u,t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}r[o]=p+"@"+u}n.path=r.join(",")}var m=e.headers=e.headers||{};e.subject&&(m.subject=e.subject),e.body&&(m.body=e.body);var f=[];for(var d in m)m[d]!==de[d]&&f.push(d.replace(xe,Ee).replace(xe,a).replace(Oe,V)+"="+m[d].replace(xe,Ee).replace(xe,a).replace(Ie,V));return f.length&&(n.query=f.join("&")),n}},Ae=/^([^\:]+)\:(.*)/,Ce={scheme:"urn",parse:function(e,t){var n=e.path&&e.path.match(Ae),r=e;if(n){var a=t.scheme||r.scheme||"urn",i=n[1].toLowerCase(),o=n[2],s=a+":"+(t.nid||i),c=F[s];r.nid=i,r.nss=o,r.path=void 0,c&&(r=c.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var n=t.scheme||e.scheme||"urn",r=e.nid,a=n+":"+(t.nid||r),i=F[a];i&&(e=i.serialize(e,t));var o=e,s=e.nss;return o.path=(r||t.nid)+":"+s,o}},Pe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Te={scheme:"urn:uuid",parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&n.uuid.match(Pe)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};F[le.scheme]=le,F[pe.scheme]=pe,F[me.scheme]=me,F[fe.scheme]=fe,F[je.scheme]=je,F[Ce.scheme]=Ce,F[Te.scheme]=Te,e.SCHEMES=F,e.pctEncChar=V,e.pctDecChars=U,e.parse=Z,e.removeDotSegments=te,e.serialize=ne,e.resolveComponents=re,e.resolve=ae,e.normalize=ie,e.equal=oe,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,a);const i=a,o={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};var s={jsonTypeOf:(e,t)=>o[t](e),resolveUrl:(e,t)=>{const n=i.resolve(e,t,{iri:!0});if(i.resolve(e,"",{iri:!0})&&"file"===i.parse(n).scheme&&"file"!==i.parse(e).scheme)throw Error(`Can't access file '${n}' resource from network context '${e}'`);return n},urlFragment:e=>i.unescapeComponent(i.parse(e).fragment)||"",pathRelative:(e,t)=>{if(e===t)return"";let n=1;const r=e.length-1,a=t.length-n,i=r<a?r:a;let o=-1,s=0;for(;s<i;s++){const r=e.charCodeAt(s+1);if(r!==t.charCodeAt(n+s))break;47===r&&(o=s)}if(a>i){if(47===t.charCodeAt(n+s))return t.slice(n+s+1);if(0===s)return t.slice(n+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 n+=o,c.length>0?`${c}${t.slice(n,t.length)}`:(47===t.charCodeAt(n)&&++n,t.slice(n,t.length))}};const c=n,l="",p=Symbol("EXISTS"),u=e=>{if(e.length>0&&"/"!==e[0])throw Error("Invalid JSON Pointer");let t=1,n=0;return r=>{if(r===p)return n<e.length;if(n>=e.length)return;const a=e.indexOf("/",t);n=-1===a?e.length:a;const i=b(e.slice(t,n));return t=n+1,i}},m=(e,t,n)=>{if(e(p)){const r=e();return m(e,w(t,r,n),v(r,n))}return t},f=(e,t,n,r)=>{const a=e();if(void 0===a)return n;if(e(p)){if(Array.isArray(t)){const i=[...t];return i[a]=f(e,w(t,a,r),n,v(a,r)),i}return{...t,[a]:f(e,w(t,a,r),n,v(a,r))}}if(Array.isArray(t)){const e=[...t];return e[$(t,a)]=n,e}return"object"==typeof t&&null!==t?{...t,[a]:n}:w(t,a,r)},d=(e,t,n,r)=>{const a=e();void 0!==a&&(e(p)||x(t)?d(e,w(t,a,r),n,v(a,r)):t[$(t,a)]=n)},h=(e,t,n)=>{const r=e();if(void 0!==r){if(e(p)){const a=w(t,r,n);return{...t,[r]:h(e,a,v(r,n))}}if(Array.isArray(t)){const e=[...t];return delete e[$(t,r)],e}if("object"==typeof t&&null!==t){const{[r]:e,...n}=t;return n}return w(t,r,n)}},y=(e,t,n)=>{const r=e();if(void 0!==r)if(e(p)){const a=w(t,r,n);y(e,a,v(r,n))}else x(t)?w(t,r,n):delete t[r]},v=c(((e,t)=>t+"/"+g(e))),g=e=>e.toString().replace(/~/g,"~0").replace(/\//g,"~1"),b=e=>e.toString().replace(/~1/g,"/").replace(/~0/g,"~"),$=(e,t)=>Array.isArray(e)&&"-"===t?e.length:t,w=(e,t,n="")=>{if(void 0===e)throw TypeError(`Value at '${n}' is undefined and does not have property '${t}'`);if(null===e)throw TypeError(`Value at '${n}' is null and does not have property '${t}'`);if(x(e))throw TypeError(`Value at '${n}' is a ${typeof e} and does not have property '${t}'`);return e[$(e,t)]},x=e=>null===e||"object"!=typeof e;var S={nil:l,append:v,get:(e,t=undefined)=>{const n=u(e),r=e=>m(n,e,l);return void 0===t?r:r(t)},set:(e,t=undefined,n=undefined)=>{const r=u(e),a=c(((e,t)=>f(r,e,t,l)));return void 0===t?a:a(t,n)},assign:(e,t=undefined,n=undefined)=>{const r=u(e),a=c(((e,t)=>d(r,e,t,l)));return void 0===t?a:a(t,n)},unset:(e,t=undefined)=>{const n=u(e),r=e=>h(n,e,l);return void 0===t?r:r(t)},remove:(e,t=undefined)=>{const n=u(e),r=e=>y(n,e,l);return void 0===t?r:r(t)}};const O=Symbol("$__value"),I=Symbol("$__href");var E={cons:(e,t)=>Object.freeze({[I]:e,[O]:t}),isReference:e=>e&&void 0!==e[I],href:e=>e[I],value:e=>e[O]};const j=S,A=n,{resolveUrl:C,jsonTypeOf:P}=s,T=E,N=Object.freeze({id:"",pointer:"",instance:void 0,value:void 0}),k=e=>T.isReference(e.value)?T.value(e.value):e.value,R=A(((e,t)=>P(k(e),t))),D=(e,t)=>Object.freeze({...t,pointer:j.append(e,t.pointer),value:k(t)[e]}),q=A(((e,t)=>k(t).map(((n,r,a,i)=>e(D(r,t),r,a,i))))),M=A(((e,t)=>k(t).forEach(((n,r,a,i)=>e(D(r,t),r,a,i))))),_=A(((e,t)=>k(t).map(((e,n,r,a)=>D(n,t))).filter(((t,n,r,a)=>e(t,n,r,a))))),L=A(((e,t,n)=>k(n).reduce(((t,r,a)=>e(t,D(a,n),a)),t))),F=A(((e,t)=>k(t).every(((n,r,a,i)=>e(D(r,t),r,a,i))))),V=A(((e,t)=>k(t).some(((n,r,a,i)=>e(D(r,t),r,a,i)))));var U={nil:N,cons:(e,t="")=>Object.freeze({...N,id:C(t,""),instance:e,value:e}),get:(e,t=N)=>{if(!e.startsWith("#"))throw Error(`No JSON document found at '${e.split("#")[0]}'`);return Object.freeze({...t,pointer:e.substr(1)})},uri:e=>`${e.id}#${encodeURI(e.pointer)}`,value:k,has:(e,t)=>e in k(t),typeOf:R,length:e=>k(e).length,step:D,entries:e=>Object.keys(k(e)).map((t=>[t,D(t,e)])),keys:e=>Object.keys(k(e)),map:q,forEach:M,filter:_,reduce:L,every:F,some:V},z=async e=>Object.entries(await e),J=function(e,t){return function n(){null==t&&(t=e.length);var r=[].slice.call(arguments);return r.length>=t?e.apply(this,r):function(){return n.apply(this,r.concat([].slice.call(arguments)))}}};var H=J((async(e,t)=>(await t).map(e)));var B=J((async(e,t,n)=>(await n).reduce((async(t,n)=>e(await t,n)),t)));const G=B;var K=J((async(e,t,n={})=>G((async(t,n)=>await e(n)?t.concat([n]):t),[],t,n)));const Z=H;var W=J((async(e,t)=>{const n=await Z(e,t);return(await Promise.all(n)).some((e=>e))}));const X=H;var Q=J((async(e,t)=>{const n=await X(e,t);return(await Promise.all(n)).every((e=>e))}));var Y=J(((e,t)=>e.reduce((async(e,t)=>t(await e)),t)));const ee=Y,te=z,ne=B;var re,ae,ie,oe={entries:z,map:H,filter:K,reduce:B,some:W,every:Q,pipeline:Y,all:e=>Promise.all(e),allValues:e=>ee([te,ne((async(e,[t,n])=>(e[t]=await n,e)),{})],e)},se={};ae=t,ie=function(){var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n="boolean"==typeof(new RegExp).sticky;function r(e){return e&&"[object RegExp]"===t.call(e)}function a(e){return e&&"object"==typeof e&&!r(e)&&!Array.isArray(e)}function i(e){return"("+e+")"}function o(e){return e.length?"(?:"+e.map((function(e){return"(?:"+e+")"})).join("|")+")":"(?!)"}function s(e){if("string"==typeof e)return"(?:"+e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")";if(r(e)){if(e.ignoreCase)throw new Error("RegExp /i flag not allowed");if(e.global)throw new Error("RegExp /g flag is implied");if(e.sticky)throw new Error("RegExp /y flag is implied");if(e.multiline)throw new Error("RegExp /m flag is implied");return e.source}throw new Error("Not a pattern: "+e)}function c(e,t){return e.length>t?e:Array(t-e.length+1).join(" ")+e}function l(t,n){if(a(n)||(n={match:n}),n.include)throw new Error("Matching rules cannot also include states");var i={defaultType:t,lineBreaks:!!n.error||!!n.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var o in n)e.call(n,o)&&(i[o]=n[o]);if("string"==typeof i.type&&t!==i.type)throw new Error("Type transform cannot be a string (type '"+i.type+"' for token '"+t+"')");var s=i.match;return i.match=Array.isArray(s)?s:s?[s]:[],i.match.sort((function(e,t){return r(e)&&r(t)?0:r(t)?-1:r(e)?1:t.length-e.length})),i}function p(e){return Array.isArray(e)?function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(r.include)for(var a=[].concat(r.include),i=0;i<a.length;i++)t.push({include:a[i]});else{if(!r.type)throw new Error("Rule has no type: "+JSON.stringify(r));t.push(l(r.type,r))}}return t}(e):function(e){for(var t=Object.getOwnPropertyNames(e),n=[],r=0;r<t.length;r++){var i=t[r],o=e[i],s=[].concat(o);if("include"!==i){var c=[];s.forEach((function(e){a(e)?(c.length&&n.push(l(i,c)),n.push(l(i,e)),c=[]):c.push(e)})),c.length&&n.push(l(i,c))}else for(var p=0;p<s.length;p++)n.push({include:s[p]})}return n}(e)}var u=l("error",{lineBreaks:!0,shouldThrow:!0});function m(e,t){for(var a=null,c=Object.create(null),l=!0,p=null,m=[],f=[],d=0;d<e.length;d++)e[d].fallback&&(l=!1);for(d=0;d<e.length;d++){var h=e[d];if(h.include)throw new Error("Inheritance is not allowed in stateless lexers");if(h.error||h.fallback){if(a)throw!h.fallback==!a.fallback?new Error("Multiple "+(h.fallback?"fallback":"error")+" rules not allowed (for token '"+h.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+h.defaultType+"')");a=h}var y=h.match.slice();if(l)for(;y.length&&"string"==typeof y[0]&&1===y[0].length;)c[y.shift().charCodeAt(0)]=h;if(h.pop||h.push||h.next){if(!t)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+h.defaultType+"')");if(h.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+h.defaultType+"')")}if(0!==y.length){l=!1,m.push(h);for(var v=0;v<y.length;v++){var g=y[v];if(r(g))if(null===p)p=g.unicode;else if(p!==g.unicode&&!1===h.fallback)throw new Error("If one rule is /u then all must be")}var b=o(y.map(s)),$=new RegExp(b);if($.test(""))throw new Error("RegExp matches empty string: "+$);if(new RegExp("|"+b).exec("").length-1>0)throw new Error("RegExp has capture groups: "+$+"\nUse (?: … ) instead");if(!h.lineBreaks&&$.test("\n"))throw new Error("Rule should declare lineBreaks: "+$);f.push(i(b))}}var w=a&&a.fallback,x=n&&!w?"ym":"gm",S=n||w?"":"|";return!0===p&&(x+="u"),{regexp:new RegExp(o(f)+S,x),groups:m,fast:c,error:a||u}}function f(e,t,n){var r=e&&(e.push||e.next);if(r&&!n[r])throw new Error("Missing state '"+r+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!=+e.pop)throw new Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}var d=function(e,t){this.startState=t,this.states=e,this.buffer="",this.stack=[],this.reset()};d.prototype.reset=function(e,t){return this.buffer=e||"",this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedText=t?t.queuedText:"",this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},d.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},d.prototype.setState=function(e){if(e&&this.state!==e){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},d.prototype.popState=function(){this.setState(this.stack.pop())},d.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var h=n?function(e,t){return e.exec(t)}:function(e,t){var n=e.exec(t);return 0===n[0].length?null:n};function y(){return this.value}if(d.prototype._getGroup=function(e){for(var t=this.groups.length,n=0;n<t;n++)if(void 0!==e[n+1])return this.groups[n];throw new Error("Cannot find token type for matched text")},d.prototype.next=function(){var e=this.index;if(this.queuedGroup){var t=this._token(this.queuedGroup,this.queuedText,e);return this.queuedGroup=null,this.queuedText="",t}var n=this.buffer;if(e!==n.length){if(o=this.fast[n.charCodeAt(e)])return this._token(o,n.charAt(e),e);var r=this.re;r.lastIndex=e;var a=h(r,n),i=this.error;if(null==a)return this._token(i,n.slice(e,n.length),e);var o=this._getGroup(a),s=a[0];return i.fallback&&a.index!==e?(this.queuedGroup=o,this.queuedText=s,this._token(i,n.slice(e,a.index),e)):this._token(o,s,e)}},d.prototype._token=function(e,t,n){var r=0;if(e.lineBreaks){var a=/\n/g,i=1;if("\n"===t)r=1;else for(;a.exec(t);)r++,i=a.lastIndex}var o={type:"function"==typeof e.type&&e.type(t)||e.defaultType,value:"function"==typeof e.value?e.value(t):t,text:t,toString:y,offset:n,lineBreaks:r,line:this.line,col:this.col},s=t.length;if(this.index+=s,this.line+=r,0!==r?this.col=s-i+1:this.col+=s,e.shouldThrow)throw new Error(this.formatError(o,"invalid syntax"));return e.pop?this.popState():e.push?this.pushState(e.push):e.next&&this.setState(e.next),o},"undefined"!=typeof Symbol&&Symbol.iterator){var v=function(e){this.lexer=e};v.prototype.next=function(){var e=this.lexer.next();return{value:e,done:!e}},v.prototype[Symbol.iterator]=function(){return this},d.prototype[Symbol.iterator]=function(){return new v(this)}}return d.prototype.formatError=function(e,t){if(null==e){var n=this.buffer.slice(this.index);e={text:n,offset:this.index,lineBreaks:-1===n.indexOf("\n")?0:1,line:this.line,col:this.col}}var r=Math.max(e.line-2,1),a=e.line+2,i=String(a).length,o=function(e,t){for(var n=e.length,r=0;;){var a=e.lastIndexOf("\n",n-1);if(-1===a)break;if(n=a,++r===t)break;if(0===n)break}var i=r<t?0:n+1;return e.substring(i).split("\n")}(this.buffer,this.line-e.line+2+1).slice(0,5),s=[];s.push(t+" at line "+e.line+" col "+e.col+":"),s.push("");for(var l=0;l<o.length;l++){var p=o[l],u=r+l;s.push(c(String(u),i)+" "+p),u===e.line&&s.push(c("",i+e.col+1)+"^")}return s.join("\n")},d.prototype.clone=function(){return new d(this.states,this.state)},d.prototype.has=function(e){return!0},{compile:function(e){var t=m(p(e));return new d({start:t},"start")},states:function(e,t){var n=e.$all?p(e.$all):[];delete e.$all;var r=Object.getOwnPropertyNames(e);t||(t=r[0]);for(var a=Object.create(null),i=0;i<r.length;i++)a[b=r[i]]=p(e[b]).concat(n);for(i=0;i<r.length;i++)for(var o=a[b=r[i]],s=Object.create(null),c=0;c<o.length;c++){var l=o[c];if(l.include){var u=[c,1];if(l.include!==b&&!s[l.include]){s[l.include]=!0;var h=a[l.include];if(!h)throw new Error("Cannot include nonexistent state '"+l.include+"' (in state '"+b+"')");for(var y=0;y<h.length;y++){var v=h[y];-1===o.indexOf(v)&&u.push(v)}}o.splice.apply(o,u),c--}}var g=Object.create(null);for(i=0;i<r.length;i++){var b;g[b=r[i]]=m(a[b],!0)}for(i=0;i<r.length;i++){var $=r[i],w=g[$],x=w.groups;for(c=0;c<x.length;c++)f(x[c],$,g);var S=Object.getOwnPropertyNames(w.fast);for(c=0;c<S.length;c++)f(w.fast[S[c]],$,g)}return new d(g,t)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(e){for(var t="undefined"!=typeof Map,n=t?new Map:Object.create(null),r=Object.getOwnPropertyNames(e),a=0;a<r.length;a++){var i=r[a],o=e[i];(Array.isArray(o)?o:[o]).forEach((function(e){if("string"!=typeof e)throw new Error("keyword must be string (in keyword '"+i+"')");t?n.set(e,i):n[e]=i}))}return function(e){return t?n.get(e):n[e]}}}},(re={get exports(){return se},set exports(e){se=e}}).exports?re.exports=ie():ae.moo=ie();const ce=se,le="[0-9]",pe=`-?${`(?:0|[1-9]${le}*)`}(?:${`\\.${le}+`})?(?:${`[eE][-+]?${le}+`})?`;const ue=S,me=e=>{const t=ce.states({main:{WS:{match:new RegExp("(?:(?:\\r?\\n)|[ \\t])+","u"),lineBreaks:!0},true:{match:"true",value:()=>!0},false:{match:"false",value:()=>!1},null:{match:"null",value:()=>null},number:{match:new RegExp(pe,"u"),value:parseFloat},string:{match:new RegExp('"(?:[\\x20-\\x21\\x23-\\x5b\\x5d-\\u{10ffff}]|\\\\(?:["\\/\\\\brfnt]|u[0-9a-fA-F]{4}))*"',"u"),value:JSON.parse},"{":"{","}":"}","[":"[","]":"]",":":":",",":",",error:ce.error}});t.reset(e);const n=()=>{let e;do{if(e=t.next(),"error"===e?.type)throw SyntaxError(t.formatError(e,"Unrecognized token"))}while("WS"===e?.type);return e};let r,a=n();const i={offset:0,line:1,col:0,text:""};return{next:(e=undefined)=>{if(r=a,a=n(),e&&r?.type!==e)throw SyntaxError(t.formatError(r,`Expected a '${e}'`));return r},peek:()=>a,syntaxError:e=>{const n=r||i,a={...n,offset:n.offset+n.text.length,col:n.col+n.text.length};throw new SyntaxError(t.formatError(a,e))}}},fe=(e,t)=>t,de=(e,t,n,r)=>{let a;const i=e.next();switch(i?.type){case"true":case"false":case"null":case"number":case"string":a=i.value;break;case"{":a=he(e,t,n,r);break;case"[":a=ve(e,t,n,r);break;default:e.syntaxError("Expected a JSON value")}return r(t,a,n)},he=(e,t,n,r)=>{const a={};return"}"!==e.peek()?.type&&ye(e,t,n,r,a),e.next("}"),a},ye=(e,t,n,r,a)=>{const i=e.next("string").value;e.next(":"),$e(e.peek())||e.syntaxError("Expected a JSON value"),a[i]=de(e,i,ue.append(i,n),r),","===e.peek()?.type?(e.next(),ye(e,i,n,r,a)):$e(e.peek())&&e.next(",")},ve=(e,t,n,r)=>{const a=[];return"]"!==e.peek()?.type&&ge(e,0,n,r,a),e.next("]"),a},ge=(e,t,n,r,a)=>{$e(e.peek())||e.syntaxError("Expected a JSON value"),a[t]=de(e,t,ue.append(t,n),r),","===e.peek()?.type?(e.next(),ge(e,t+1,n,r,a)):$e(e.peek())&&e.next(",")},be=new Set(["string","number","true","false","null","[","{"]),$e=e=>be.has(e?.type);var we=(e,t=fe)=>{const n=me(e),r=de(n,"",ue.nil,t);return n.peek()&&n.syntaxError("A value has been parsed, but more tokens were found"),r};const xe=S,Se=(e,t)=>t,Oe=(e,t,n,r,a,i)=>{let o;return e=t(r,e,a),o=Array.isArray(e)?Ie(e,t,n,a,i):"object"==typeof e&&null!==e?Ee(e,t,n,a,i):JSON.stringify(e),o},Ie=(e,t,n,r,a)=>{0===e.length&&(n="");const i=n?`\n${n.repeat(a-1)}`:"";return"["+i+n+e.map(((e,i)=>{const o=xe.append(i,r);return Oe(e,t,n,i,o,a+1)})).join(`,${i}${n}`)+i+"]"},Ee=(e,t,n,r,a)=>{0===Object.keys(e).length&&(n="");const i=n?`\n${n.repeat(a-1)}`:"",o=n?" ":"";return"{"+i+n+Object.entries(e).map((([e,i])=>{const s=xe.append(e,r);return JSON.stringify(e)+":"+o+Oe(i,t,n,e,s,a+1)})).join(`,${i}${n}`)+i+"}"};var je=(e,t=Se,n="")=>Oe(e,t,n,"",xe.nil,1);var Ae={parse:we,stringify:je},Ce=fetch,Pe={},Te=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Ne=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,ke=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Re=/\\([\u000b\u0020-\u00ff])/g,De=/([\\"])/g,qe=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function Me(e){var t=String(e);if(ke.test(t))return t;if(t.length>0&&!Ne.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(De,"\\$1")+'"'}function _e(e){this.parameters=Object.create(null),this.type=e}Pe.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,n=e.type;if(!n||!qe.test(n))throw new TypeError("invalid type");var r=n;if(t&&"object"==typeof t)for(var a,i=Object.keys(t).sort(),o=0;o<i.length;o++){if(a=i[o],!ke.test(a))throw new TypeError("invalid parameter name");r+="; "+a+"="+Me(t[a])}return r},Pe.parse=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.slice(0,n).trim():t.trim();if(!qe.test(r))throw new TypeError("invalid media type");var a=new _e(r.toLowerCase());if(-1!==n){var i,o,s;for(Te.lastIndex=n;o=Te.exec(t);){if(o.index!==n)throw new TypeError("invalid parameter format");n+=o[0].length,i=o[1].toLowerCase(),34===(s=o[2]).charCodeAt(0)&&-1!==(s=s.slice(1,-1)).indexOf("\\")&&(s=s.replace(Re,"$1")),a.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return a};const Le=Pe,Fe={};var Ve={addPlugin:(e,t)=>{Fe[e]=t},parse:e=>{const t=Le.parse(e.headers.get("content-type"));if(!(t.type in Fe))throw Error(`${e.url} is not a schema. Found a document with media type: ${t.type}`);return Fe[t.type].parse(e,t.parameters)},getContentType:e=>{for(const t in Fe)if(Fe[t].matcher(e))return t;return"application/octet-stream"}};const Ue=n,ze=oe,Je=Ae,He=S,{jsonTypeOf:Be,resolveUrl:Ge,urlFragment:Ke,pathRelative:Ze}=s,We=Ce,Xe=E,Qe=Ve,Ye="https://json-schema.org/draft/2019-09/vocab/core",et="https://json-schema.org/draft/2020-12/vocab/core",tt={},nt={},rt=(e,t)=>{const n=nt[e];return tt[n]?.[t]},at={},it={},ot=(e,t="",n="")=>{e=JSON.parse(JSON.stringify(e));const r=Ge(t,""),a=Ge(e.$schema||n,"");if(!a)throw Error("Couldn't determine schema dialect");if(delete e.$schema,!(a in nt))if(!0===e?.$vocabulary?.[Ye]&&a===st(e,r,Ye)[0])nt[a]=Ye;else if(!0===e?.$vocabulary?.[et]&&a===st(e,r,et)[0])nt[a]=et;else{const e=at[a];if(!e)throw Error(`Couldn't determine JSON Schema version for dialect: '${a}'`);!0===e.vocabulary[Ye]?nt[a]=Ye:!0===e.vocabulary[et]?nt[a]=et:nt[a]=nt[e.dialectId]}const[i,o]=st(e,r,nt[a]);if(!i)throw Error("Couldn't determine an identifier for the schema");const s=rt(a,"baseToken");delete e[s],r&&(it[r]=i);const c=rt(a,"anchorToken");o&&s===c&&(e[c]=c!==s?encodeURI(o):`#${encodeURI(o)}`);const l={},p=rt(a,"recursiveAnchorToken");let u;!0===e[p]&&(l[""]=`${i}#`,e[c]="",delete e[p]);const m=rt(a,"vocabularyToken");Be(e[m],"object")?(u=e[m],delete e[m]):u={[nt[a]]:!0};const f={"":""};return at[i]={id:i,dialectId:a,schema:ct(e,i,a,He.nil,f,l),anchors:f,dynamicAnchors:l,vocabulary:u,validated:!1},i},st=(e,t,n)=>{const r=tt[n]?.baseToken,a=Ge(t,e[r]||"");return[Ge(a,""),Ke(a)]},ct=(e,t,n,r,a,i)=>{if(Be(e,"object")){const o="string"==typeof e.$schema?Ge(e.$schema,""):n,s=rt(o,"embeddedToken"),c=rt(o,"anchorToken");if("string"==typeof e[s]&&(s!==c||"#"!==e[s][0])){const r=Ge(t,e[s]);return e[rt(o,"baseToken")]=r,ot(e,r,n),Xe.cons(e[s],e)}const l=rt(n,"anchorToken"),p=rt(n,"dynamicAnchorToken");"string"==typeof e[p]&&(i[e[p]]=`${t}#${encodeURI(r)}`,a[e[p]]=r,delete e[p]);const u=rt(n,"embeddedToken");if("string"==typeof e[l]){const t=l!==u?e[l]:e[l].slice(1);a[t]=r,delete e[l]}const m=rt(n,"jrefToken");if("string"==typeof e[m])return Xe.cons(e[m],e);for(const o in e)e[o]=ct(e[o],t,n,He.append(o,r),a,i);return e}return Array.isArray(e)?e.map(((e,o)=>ct(e,t,n,He.append(o,r),a,i))):e},lt=e=>at[it[e]]||at[e],pt=Object.freeze({id:"",dialectId:void 0,vocabulary:{},pointer:He.nil,schema:void 0,value:void 0,anchors:{},dynamicAnchors:{},validated:!0}),ut=async(e,t=pt)=>{const n=Ge(dt(t),e),r=Ge(n,""),a=Ke(n);if(!(e=>e in at||e in it)(r)){const e=await We(r,{headers:{Accept:"application/schema+json"}});if(e.status>=400)throw await e.text(),Error(`Failed to retrieve schema with id: ${r}`);const[t,n]=await Qe.parse(e);let a;a=t.$schema?Ge(t.$schema,""):n?Ge(r,n):"",a&&r!==a&&!(a in nt)&&await ut(a),ot(t,r,a)}const i=lt(r),o="/"!==a[0]?ft(i,a):a,s=Object.freeze({...i,pointer:o,value:He.get(o,i.schema)});return mt(s)},mt=e=>Xe.isReference(e.value)?ut(Xe.href(e.value),e):e,ft=(e,t)=>{if(!(t in e.anchors))throw Error(`No such anchor '${encodeURI(e.id)}#${encodeURI(t)}'`);return e.anchors[t]},dt=e=>`${e.id}#${encodeURI(e.pointer)}`,ht=e=>Xe.isReference(e.value)?Xe.value(e.value):e.value,yt=(e,t)=>{const n=lt(t.id),r=Object.freeze({...t,pointer:He.append(e,t.pointer),value:ht(t)[e],validated:n.validated});return mt(r)},vt=Ue(((e,t)=>ze.pipeline([ht,ze.map((async(n,r)=>e(await yt(r,t),r))),ze.all],t))),gt={parentId:"",parentDialect:"",includeEmbedded:!0},bt=(e,t)=>{if(t.startsWith("file://")){const n=e.slice(7,e.lastIndexOf("/"));return""===e?"":Ze(n,t.slice(7))}return t};var $t={setConfig:(e,t,n)=>{nt[e]=e,tt[e]||(tt[e]={}),tt[e][t]=n},getConfig:rt,add:ot,get:ut,markValidated:e=>{at[e].validated=!0},uri:dt,value:ht,getAnchorPointer:ft,typeOf:(e,t)=>Be(ht(e),t),has:(e,t)=>e in ht(t),step:yt,keys:e=>Object.keys(ht(e)),entries:e=>ze.pipeline([ht,Object.keys,ze.map((async t=>[t,await yt(t,e)])),ze.all],e),map:vt,length:e=>ht(e).length,toSchema:(e,t={})=>{const n={...gt,...t},r=rt(e.dialectId,"anchorToken"),a=rt(e.dialectId,"dynamicAnchorToken"),i={};for(const t in e.anchors)""===t||e.dynamicAnchors[t]||(i[e.anchors[t]]=t);const o={};for(const t in e.dynamicAnchors){const n=Ke(e.dynamicAnchors[t]);o[n]=t}const s=JSON.parse(Je.stringify(e.schema,((t,s,c)=>{if(Xe.isReference(s)){const t=Xe.value(s),r="string"==typeof t.$schema?Ge(t.$schema,""):e.dialectId,a=rt(r,"embeddedToken");return!n.includeEmbedded&&a in t?void 0:Xe.value(s)}return c in i&&(s={[r]:i[c],...s}),c in o&&(s={[a]:o[c],...s}),s}))),c=rt(e.dialectId,"baseToken"),l=bt(n.parentId,e.id),p=n.parentDialect===e.dialectId?"":e.dialectId;return{...l&&{[c]:l},...p&&{$schema:p},...s}}};var wt=class extends Error{constructor(e){super("Invalid Schema"),this.name=this.constructor.name,this.output=e}};const xt=$t;var St={compile:e=>xt.value(e),interpret:()=>!0};const Ot=n,It=r,{resolveUrl:Et}=s,jt=U,At=$t,Ct=wt,Pt=Ve,Tt=St,Nt="FLAG",kt="BASIC",Rt="DETAILED",Dt="VERBOSE";let qt=Rt,Mt=!0;Pt.addPlugin("application/schema+json",{parse:async(e,t)=>[await e.json(),t.schema||t.profile],matcher:e=>e.endsWith(".schema.json")});const _t=async e=>{const t={metaData:{}};return{ast:t,schemaUri:await Gt(e,t)}},Lt=Ot((({ast:e,schemaUri:t},n,r=Nt)=>{if(![Nt,kt,Rt,Dt].includes(r))throw Error(`The '${r}' error format is not supported`);const a=[],i=It.subscribe("result",Ft(r,a));return Zt(t,n,e,{}),It.unsubscribe(i),a[0]})),Ft=(e,t)=>{const n=[];return(r,a)=>{if("result"===r){const{keyword:e,absoluteKeywordLocation:t,instanceLocation:r,valid:i}=a,o={keyword:e,absoluteKeywordLocation:t,instanceLocation:r,valid:i,errors:[]};n.push(o)}else if("result.start"===r)n.push(r);else if("result.end"===r){const r=n.pop();for(;"result.start"!==n[n.length-1];){const t=n.pop(),a=[t];e===kt&&(a.push(...t.errors),delete t.errors),(e===Dt||e!==Nt&&!t.valid)&&r.errors.unshift(...a)}n[n.length-1]=r,t[0]=r}}},Vt={},Ut=e=>(Vt[e]||Jt(e,Tt),Vt[e]),zt=e=>e in Vt,Jt=(e,t)=>{Vt[e]={collectEvaluatedItems:(e,n,r,a,i)=>t.interpret(e,n,r,a,i)&&new Set,collectEvaluatedProperties:(e,n,r,a,i)=>t.interpret(e,n,r,a,i)&&[],...t}},Ht={},Bt={},Gt=async(e,t)=>{if(e=await Kt(e),!zt(`${e.dialectId}#validate`)){const t=await At.get(e.dialectId);(At.getConfig(t.id,"mandatoryVocabularies")||[]).forEach((e=>{if(!t.vocabulary[e])throw Error(`Vocabulary '${e}' must be explicitly declared and required`)})),Object.entries(t.vocabulary).forEach((([e,n])=>{if(e in Ht)Object.entries(Ht[e]).forEach((([e,n])=>{Jt(`${t.id}#${e}`,n)}));else if(n)throw Error(`Missing required vocabulary: ${e}`)}))}if(Mt&&!e.validated){if(At.markValidated(e.id),!(e.dialectId in Bt)){const t=await At.get(e.dialectId),n=await _t(t);Bt[t.id]=Lt(n)}const t=jt.cons(e.schema,e.id),n=Bt[e.dialectId](t,qt);if(!n.valid)throw new Ct(n)}return e.id in t.metaData||(t.metaData[e.id]={id:e.id,dynamicAnchors:e.dynamicAnchors,anchors:e.anchors}),Ut(`${e.dialectId}#validate`).compile(e,t)},Kt=async e=>At.typeOf(e,"string")?Kt(await At.get(At.value(e),e)):e,Zt=(e,t,n,r)=>{const a=Wt(e,n),i=Et(e,"");return Ut(a).interpret(e,t,n,{...n.metaData[i].dynamicAnchors,...r})},Wt=(e,t)=>{if(!(e in t))throw Error(`No schema found at ${e}`);return t[e][0]};var Xt={validate:async(e,t=undefined,n=undefined)=>{const r=await _t(e),a=(e,t)=>Lt(r,jt.cons(e),t);return void 0===t?a:a(t,n)},compile:_t,interpret:Lt,setMetaOutputFormat:e=>{qt=e},setShouldMetaValidate:e=>{Mt=e},FLAG:Nt,BASIC:kt,DETAILED:Rt,VERBOSE:Dt,add:(e,t="",n="")=>{const r=At.add(e,t,n);delete Bt[r]},getKeyword:Ut,hasKeyword:zt,defineVocabulary:(e,t)=>{Ht[e]=t},compileSchema:Gt,interpretSchema:Zt,collectEvaluatedProperties:(e,t,n,r,a)=>{const i=Wt(e,n);return Ut(i).collectEvaluatedProperties(e,t,n,r,a)},collectEvaluatedItems:(e,t,n,r,a)=>{const i=Wt(e,n);return Ut(i).collectEvaluatedItems(e,t,n,r,a)},addMediaTypePlugin:Pt.addPlugin};const Qt=oe,Yt=r,en=Xt,tn=U,nn=$t;var rn={compile:async(e,t)=>{const n=nn.uri(e);if(!(n in t)){t[n]=!1;const r=nn.value(e);if(!["object","boolean"].includes(typeof r))throw Error(`No schema found at '${nn.uri(e)}'`);t[n]=[`${e.dialectId}#validate`,nn.uri(e),"boolean"==typeof r?r:await Qt.pipeline([nn.entries,Qt.map((([t,n])=>[`${e.dialectId}#${t}`,n])),Qt.filter((([t])=>t!==`${e.dialectId}#validate`)),Qt.map((async([n,r])=>{const a=await en.getKeyword(n).compile(r,t,e);return[n,nn.uri(r),a]})),Qt.all],e)]}return n},interpret:(e,t,n,r)=>{const[a,i,o]=n[e];Yt.publishSync("result.start");const s="boolean"==typeof o?o:o.every((([e,a,i])=>{Yt.publishSync("result.start");const o=en.getKeyword(e).interpret(i,t,n,r);return Yt.publishSync("result",{keyword:e,absoluteKeywordLocation:a,instanceLocation:tn.uri(t),valid:o,ast:i}),Yt.publishSync("result.end"),o}));return Yt.publishSync("result",{keyword:a,absoluteKeywordLocation:i,instanceLocation:tn.uri(t),valid:s,ast:e}),Yt.publishSync("result.end"),s},collectEvaluatedProperties:(e,t,n,r,a=!1)=>{const i=n[e][2];return"boolean"==typeof i?!!i&&[]:i.filter((([e])=>!a||!e.endsWith("#unevaluatedProperties"))).reduce(((e,[a,,i])=>{const o=e&&en.getKeyword(a).collectEvaluatedProperties(i,t,n,r);return!1!==o&&[...e,...o]}),[])},collectEvaluatedItems:(e,t,n,r,a=!1)=>{const i=n[e][2];return"boolean"==typeof i?!!i&&new Set:i.filter((([e])=>!a||!e.endsWith("#unevaluatedItems"))).reduce(((e,[a,,i])=>{const o=!1!==e&&en.getKeyword(a).collectEvaluatedItems(i,t,n,r);return!1!==o&&new Set([...e,...o])}),new Set)}};var an={Core:Xt,Schema:$t,Instance:U,Reference:E,Keywords:{metaData:St,validate:rn},InvalidSchemaError:wt};const{Core:on,Schema:sn,Instance:cn}=an;var ln={compile:async(e,t,n)=>{const r=await sn.step("items",n),a=sn.typeOf(r,"array")?sn.length(r):Number.MAX_SAFE_INTEGER;return sn.typeOf(e,"boolean")?[a,sn.value(e)]:[a,await on.compileSchema(e,t)]},interpret:([e,t],n,r,a)=>!cn.typeOf(n,"array")||("string"==typeof t?cn.every(((n,i)=>i<e||on.interpretSchema(t,n,r,a)),n):cn.every(((n,r)=>r<e||t),n))};const{Core:pn,Schema:un,Instance:mn}=an,fn=([e,t],n,r,a)=>!mn.typeOf(n,"array")||mn.every(((n,i)=>i<e||pn.interpretSchema(t,n,r,a)),n);var dn={compile:async(e,t,n)=>{const r=await un.step("items",n);return[un.typeOf(r,"array")?un.length(r):Number.MAX_SAFE_INTEGER,await pn.compileSchema(e,t)]},interpret:fn,collectEvaluatedItems:(e,t,n,r)=>{if(!fn(e,t,n,r))return!1;const a=new Set;for(let n=e[0];n<mn.length(t);n++)a.add(n);return a}};const{Core:hn,Schema:yn,Instance:vn}=an;var gn={compile:async(e,t,n)=>{const r=await yn.step("properties",n),a=yn.typeOf(r,"object")?yn.keys(r):[],i=await yn.step("patternProperties",n),o=yn.typeOf(i,"object")?yn.keys(i).map((e=>new RegExp(e))):[];return yn.typeOf(e,"boolean")?[a,o,yn.value(e)]:[a,o,await hn.compileSchema(e,t)]},interpret:([e,t,n],r,a,i)=>{if(!vn.typeOf(r,"object"))return!0;const o=vn.entries(r).filter((([n])=>!e.includes(n)&&!t.some((e=>e.test(n)))));return"string"==typeof n?o.every((([,e])=>hn.interpretSchema(n,e,a,i))):0===o.length||n}};const{Core:bn,Schema:$n,Instance:wn}=an,xn=([e,t,n],r,a,i)=>!wn.typeOf(r,"object")||wn.entries(r).filter((([n])=>!e.includes(n)&&!t.some((e=>e.test(n))))).every((([,e])=>bn.interpretSchema(n,e,a,i)));var Sn={compile:async(e,t,n)=>{const r=await $n.step("properties",n),a=$n.typeOf(r,"object")?$n.keys(r):[],i=await $n.step("patternProperties",n),o=$n.typeOf(i,"object")?$n.keys(i).map((e=>new RegExp(e))):[];return[a,o,await bn.compileSchema(e,t)]},interpret:xn,collectEvaluatedProperties:(e,t,n,r)=>xn(e,t,n,r)&&[new RegExp("")]};const{Core:On,Schema:In}=an,En=oe;var jn={compile:(e,t)=>En.pipeline([In.map((async e=>On.compileSchema(await e,t))),En.all],e),interpret:(e,t,n,r)=>e.every((e=>On.interpretSchema(e,t,n,r))),collectEvaluatedProperties:(e,t,n,r)=>e.reduce(((e,a)=>{const i=e&&On.collectEvaluatedProperties(a,t,n,r);return!1!==i&&[...e,...i]}),[]),collectEvaluatedItems:(e,t,n,r)=>e.reduce(((e,a)=>{const i=!1!==e&&On.collectEvaluatedItems(a,t,n,r);return!1!==i&&new Set([...e,...i])}),new Set)};const{Core:An,Schema:Cn}=an,Pn=oe;var Tn={compile:(e,t)=>Pn.pipeline([Cn.map((async e=>An.compileSchema(await e,t))),Pn.all],e),interpret:(e,t,n,r)=>e.filter((e=>An.interpretSchema(e,t,n,r))).length>0,collectEvaluatedProperties:(e,t,n,r)=>e.reduce(((e,a)=>{const i=An.collectEvaluatedProperties(a,t,n,r);return!1!==i?[...e||[],...i]:e}),!1),collectEvaluatedItems:(e,t,n,r)=>e.reduce(((e,a)=>{const i=An.collectEvaluatedItems(a,t,n,r);return!1!==i?new Set([...e||[],...i]):e}),!1)},Nn=Object.keys,kn=JSON.stringify;function Rn(e,t){var n,r,a,i,o,s,c;if("string"===(c=typeof e))return kn(e);if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(e instanceof Array){for(a="[",r=e.length-1,n=0;n<r;n++)a+=Rn(e[n],!1)+",";return r>-1&&(a+=Rn(e[n],!1)),a+"]"}if(e instanceof Object){if("function"==typeof e.toJSON)return Rn(e.toJSON(),t);for(r=(i=Nn(e).sort()).length,a="",n=0;n<r;)void 0!==(s=Rn(e[o=i[n]],!0))&&(n&&""!==a&&(a+=","),a+=kn(o)+":"+s),n++;return"{"+a+"}"}switch(c){case"function":case"undefined":return t?void 0:null;default:return isFinite(e)?e:null}}var Dn=function(e){return""+Rn(e,!1)};const{Schema:qn,Instance:Mn}=an,_n=Dn;var Ln={compile:e=>_n(qn.value(e)),interpret:(e,t)=>_n(Mn.value(t))===e};const{Core:Fn,Instance:Vn}=an;var Un={compile:(e,t)=>Fn.compileSchema(e,t),interpret:(e,t,n,r)=>!Vn.typeOf(t,"array")||Vn.some((t=>Fn.interpretSchema(e,t,n,r)),t)};const{Core:zn,Schema:Jn,Instance:Hn}=an,Bn=({contains:e,minContains:t,maxContains:n},r,a,i)=>{if(!Hn.typeOf(r,"array"))return!0;const o=Hn.reduce(((t,n)=>zn.interpretSchema(e,n,a,i)?t+1:t),0,r);return o>=t&&o<=n};var Gn={compile:async(e,t,n)=>{const r=await zn.compileSchema(e,t),a=await Jn.step("minContains",n),i=Jn.typeOf(a,"number")?Jn.value(a):1,o=await Jn.step("maxContains",n);return{contains:r,minContains:i,maxContains:Jn.typeOf(o,"number")?Jn.value(o):Number.MAX_SAFE_INTEGER}},interpret:Bn,collectEvaluatedItems:(e,t,n,r)=>Bn(e,t,n,r)&&Hn.reduce(((t,a,i)=>zn.interpretSchema(e.contains,a,n,r)?t.add(i):t),new Set,t)};const{Core:Kn,Schema:Zn}=an,Wn=oe;var Xn={compile:async(e,t)=>{await Wn.pipeline([Zn.entries,Wn.map((([,e])=>Kn.compileSchema(e,t))),Wn.all],e)},interpret:()=>!0};const{Core:Qn,Schema:Yn,Instance:er}=an,tr=oe;var nr={compile:(e,t)=>tr.pipeline([Yn.entries,tr.map((async([e,n])=>[e,Yn.typeOf(n,"array")?Yn.value(n):await Qn.compileSchema(n,t)])),tr.all],e),interpret:(e,t,n,r)=>{const a=er.value(t);return!er.typeOf(t,"object")||e.every((([e,i])=>!(e in a)||(Array.isArray(i)?i.every((e=>e in a)):Qn.interpretSchema(i,t,n,r))))}};const{Schema:rr,Instance:ar}=an,ir=oe;var or={compile:e=>ir.pipeline([rr.entries,ir.map((([e,t])=>[e,rr.value(t)])),ir.all],e),interpret:(e,t)=>{const n=ar.value(t);return!ar.typeOf(t,"object")||e.every((([e,t])=>!(e in n)||t.every((e=>e in n))))}};const{Core:sr,Schema:cr,Instance:lr}=an,pr=oe;var ur={compile:(e,t)=>pr.pipeline([cr.entries,pr.map((async([e,n])=>[e,await sr.compileSchema(n,t)])),pr.all],e),interpret:(e,t,n,r)=>{const a=lr.value(t);return!lr.typeOf(t,"object")||e.every((([e,i])=>!(e in a)||sr.interpretSchema(i,t,n,r)))},collectEvaluatedProperties:(e,t,n,r)=>e.reduce(((e,[a,i])=>{if(!e||!lr.has(a,t))return e;const o=sr.collectEvaluatedProperties(i,t,n,r);return!1!==o&&e.concat(o)}),[])};const{Schema:mr,Instance:fr}=an,dr=Dn;var hr={compile:e=>mr.value(e).map(dr),interpret:(e,t)=>e.some((e=>dr(fr.value(t))===e))};const{Schema:yr,Instance:vr}=an;var gr={compile:async e=>yr.value(e),interpret:(e,t)=>!vr.typeOf(t,"number")||vr.value(t)<e};const{Schema:br,Instance:$r}=an;var wr={compile:async e=>br.value(e),interpret:(e,t)=>!$r.typeOf(t,"number")||$r.value(t)>e};const{Core:xr}=an;var Sr={compile:(e,t)=>xr.compileSchema(e,t),interpret:(e,t,n,r)=>(xr.interpretSchema(e,t,n,r),!0),collectEvaluatedProperties:(e,t,n,r)=>xr.collectEvaluatedProperties(e,t,n,r)||[],collectEvaluatedItems:(e,t,n,r)=>xr.collectEvaluatedItems(e,t,n,r)||new Set};const{Core:Or,Schema:Ir}=an,Er=(e,t,n,r)=>{const a=n[e][2];return"boolean"==typeof a?a:a.every((([e,,a])=>Or.getKeyword(e).interpret(a,t,n,r)))};var jr={compile:async(e,t,n)=>{if(Ir.has("if",n)){const r=await Ir.step("if",n);return[await Or.compileSchema(r,t),await Or.compileSchema(e,t)]}return[]},interpret:([e,t],n,r,a)=>void 0===e||!Er(e,n,r,a)||Or.interpretSchema(t,n,r,a),collectEvaluatedProperties:([e,t],n,r,a)=>void 0!==e&&Er(e,n,r,a)?Or.collectEvaluatedProperties(t,n,r,a):[],collectEvaluatedItems:([e,t],n,r,a)=>void 0!==e&&Er(e,n,r,a)?Or.collectEvaluatedItems(t,n,r,a):new Set};const{Core:Ar,Schema:Cr}=an,Pr=(e,t,n,r)=>{const a=n[e][2];return"boolean"==typeof a?a:a.every((([e,,a])=>Ar.getKeyword(e).interpret(a,t,n,r)))};var Tr={compile:async(e,t,n)=>{if(Cr.has("if",n)){const r=await Cr.step("if",n);return[await Ar.compileSchema(r,t),await Ar.compileSchema(e,t)]}return[]},interpret:([e,t],n,r,a)=>void 0===e||Pr(e,n,r,a)||Ar.interpretSchema(t,n,r,a),collectEvaluatedProperties:([e,t],n,r,a)=>void 0===e||Pr(e,n,r,a)?[]:Ar.collectEvaluatedProperties(t,n,r,a),collectEvaluatedItems:([e,t],n,r,a)=>void 0===e||Pr(e,n,r,a)?new Set:Ar.collectEvaluatedItems(t,n,r,a)};const{Core:Nr,Schema:kr,Instance:Rr}=an,Dr=(e,t,n,r)=>!Rr.typeOf(t,"array")||("string"==typeof e?Rr.every((t=>Nr.interpretSchema(e,t,n,r)),t):Rr.every(((t,a)=>!(a in e)||Nr.interpretSchema(e[a],t,n,r)),t));var qr={compile:async(e,t)=>{if(kr.typeOf(e,"array")){const n=await kr.map((e=>Nr.compileSchema(e,t)),e);return Promise.all(n)}return Nr.compileSchema(e,t)},interpret:Dr,collectEvaluatedItems:(e,t,n,r)=>Dr(e,t,n,r)&&("string"==typeof e?new Set(Rr.map(((e,t)=>t),t)):new Set(e.map(((e,t)=>t))))};const{Core:Mr,Schema:_r,Instance:Lr}=an,Fr=([e,t],n,r,a)=>!Lr.typeOf(n,"array")||Lr.every(((n,i)=>i<e||Mr.interpretSchema(t,n,r,a)),n);var Vr={compile:async(e,t,n)=>{const r=await _r.step("prefixItems",n);return[_r.typeOf(r,"array")?_r.length(r):0,await Mr.compileSchema(e,t)]},interpret:Fr,collectEvaluatedItems:(e,t,n,r)=>Fr(e,t,n,r)&&new Set(Lr.map(((e,t)=>t),t))};const{Schema:Ur,Instance:zr}=an;var Jr={compile:e=>Ur.value(e),interpret:(e,t)=>!zr.typeOf(t,"array")||zr.length(t)<=e};const{Schema:Hr,Instance:Br}=an;var Gr={compile:e=>Hr.value(e),interpret:(e,t)=>!Br.typeOf(t,"string")||[...Br.value(t)].length<=e};const{Schema:Kr,Instance:Zr}=an;var Wr={compile:e=>Kr.value(e),interpret:(e,t)=>!Zr.typeOf(t,"object")||Zr.keys(t).length<=e};const{Schema:Xr,Instance:Qr}=an;var Yr={compile:async(e,t,n)=>{const r=await Xr.step("exclusiveMaximum",n),a=Xr.value(r);return[Xr.value(e),a]},interpret:([e,t],n)=>{if(!Qr.typeOf(n,"number"))return!0;const r=Qr.value(n);return t?r<e:r<=e}};const{Schema:ea,Instance:ta}=an;var na={compile:async e=>ea.value(e),interpret:(e,t)=>!ta.typeOf(t,"number")||ta.value(t)<=e};const{Schema:ra,Instance:aa}=an;var ia={compile:e=>ra.value(e),interpret:(e,t)=>!aa.typeOf(t,"array")||aa.length(t)>=e};const{Schema:oa,Instance:sa}=an;var ca={compile:e=>oa.value(e),interpret:(e,t)=>!sa.typeOf(t,"string")||[...sa.value(t)].length>=e};const{Schema:la,Instance:pa}=an;var ua={compile:e=>la.value(e),interpret:(e,t)=>!pa.typeOf(t,"object")||pa.keys(t).length>=e};const{Schema:ma,Instance:fa}=an;var da={compile:async(e,t,n)=>{const r=await ma.step("exclusiveMinimum",n),a=ma.value(r);return[ma.value(e),a]},interpret:([e,t],n)=>{if(!fa.typeOf(n,"number"))return!0;const r=fa.value(n);return t?r>e:r>=e}};const{Schema:ha,Instance:ya}=an;var va={compile:async e=>ha.value(e),interpret:(e,t)=>!ya.typeOf(t,"number")||ya.value(t)>=e};const{Schema:ga,Instance:ba}=an,$a=(e,t)=>Math.abs(e-t)<1.1920929e-7;var wa={compile:e=>ga.value(e),interpret:(e,t)=>{if(!ba.typeOf(t,"number"))return!0;const n=ba.value(t)%e;return $a(0,n)||$a(e,n)}};const{Core:xa}=an;var Sa={compile:xa.compileSchema,interpret:(e,t,n,r)=>!xa.interpretSchema(e,t,n,r)};const{Core:Oa,Schema:Ia}=an;var Ea={compile:async(e,t)=>{const n=await Ia.map((e=>Oa.compileSchema(e,t)),e);return Promise.all(n)},interpret:(e,t,n,r)=>{let a=0;for(const i of e)if(Oa.interpretSchema(i,t,n,r)&&a++,a>1)break;return 1===a},collectEvaluatedProperties:(e,t,n,r)=>{let a=0;return e.reduce(((e,i)=>{if(a>1)return!1;const o=Oa.collectEvaluatedProperties(i,t,n,r);return o?0==a++&&o:e}),!1)},collectEvaluatedItems:(e,t,n,r)=>{let a=0;return e.reduce(((e,i)=>{if(a>1)return!1;const o=Oa.collectEvaluatedItems(i,t,n,r);return o?0==a++&&o:e}),!1)}};const{Schema:ja,Instance:Aa}=an;var Ca={compile:e=>new RegExp(ja.value(e),"u"),interpret:(e,t)=>!Aa.typeOf(t,"string")||e.test(Aa.value(t))};const{Core:Pa,Schema:Ta,Instance:Na}=an,ka=oe,Ra=(e,t,n,r)=>!Na.typeOf(t,"object")||e.every((([e,a])=>Na.entries(t).filter((([t])=>e.test(t))).every((([,e])=>Pa.interpretSchema(a,e,n,r)))));var Da={compile:(e,t)=>ka.pipeline([Ta.entries,ka.map((async([e,n])=>[new RegExp(e,"u"),await Pa.compileSchema(n,t)])),ka.all],e),interpret:Ra,collectEvaluatedProperties:(e,t,n,r)=>Ra(e,t,n,r)&&e.map((([e])=>e))};var qa={isObject:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,escapeRegExp:e=>e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),splitUrl:e=>{const t=e.indexOf("#"),n=-1===t?e.length:t,r=e.slice(0,n),a=e.slice(n+1);return[decodeURI(r),decodeURI(a)]}};const{Core:Ma,Schema:_a,Instance:La}=an,Fa=oe,{escapeRegExp:Va}=qa,Ua=(e,t,n,r)=>!La.typeOf(t,"object")||La.entries(t).filter((([t])=>t in e)).every((([t,a])=>Ma.interpretSchema(e[t],a,n,r)));var za={compile:(e,t)=>Fa.pipeline([_a.entries,Fa.reduce((async(e,[n,r])=>(e[n]=await Ma.compileSchema(r,t),e)),Object.create(null))],e),interpret:Ua,collectEvaluatedProperties:(e,t,n,r)=>Ua(e,t,n,r)&&Object.keys(e).map((e=>new RegExp(`^${Va(e)}$`)))};const{Core:Ja,Instance:Ha}=an;var Ba={compile:(e,t)=>Ja.compileSchema(e,t),interpret:(e,t,n,r)=>!Ha.typeOf(t,"object")||Ha.keys(t).every((t=>Ja.interpretSchema(e,Ha.cons(t),n,r)))};const{Core:Ga,Schema:Ka}=an,{splitUrl:Za}=qa;var Wa={compile:async(e,t)=>{const[,n]=Za(Ka.value(e)),r=await Ka.get(Ka.value(e),e);return await Ga.compileSchema(r,t),[r.id,n,Ka.uri(r)]},interpret:([e,t,n],r,a,i)=>t in a.metaData[e].dynamicAnchors?Ga.interpretSchema(i[t],r,a,i):Ga.interpretSchema(n,r,a,i),collectEvaluatedProperties:Ga.collectEvaluatedProperties,collectEvaluatedItems:Ga.collectEvaluatedItems};const{Core:Xa,Schema:Qa}=an;var Ya={compile:async(e,t)=>{const n=await Qa.get(Qa.value(e),e);return Xa.compileSchema(n,t)},interpret:Xa.interpretSchema,collectEvaluatedProperties:Xa.collectEvaluatedProperties,collectEvaluatedItems:Xa.collectEvaluatedItems};const{Schema:ei,Instance:ti}=an;var ni={compile:e=>ei.value(e),interpret:(e,t)=>!ti.typeOf(t,"object")||e.every((e=>Object.prototype.hasOwnProperty.call(ti.value(t),e)))};const{Core:ri,Schema:ai,Instance:ii}=an,oi=oe,si=(e,t,n,r)=>!ii.typeOf(t,"array")||ii.every(((t,a)=>!(a in e)||ri.interpretSchema(e[a],t,n,r)),t);var ci={compile:(e,t)=>oi.pipeline([ai.map((e=>ri.compileSchema(e,t))),oi.all],e),interpret:si,collectEvaluatedItems:(e,t,n,r)=>si(e,t,n,r)&&new Set(e.map(((e,t)=>t)))};const{Schema:li,Instance:pi}=an;var ui={compile:e=>li.value(e),interpret:(e,t)=>"string"==typeof e?pi.typeOf(t,e):e.some(pi.typeOf(t))};const{Core:mi,Schema:fi,Instance:di}=an,hi=([e,t],n,r,a)=>{if(!di.typeOf(n,"array"))return!0;const i=mi.collectEvaluatedItems(e,n,r,a,!0);return!1===i||di.every(((e,o)=>i.has(o)||mi.interpretSchema(t,di.step(o,n),r,a)),n)};var yi={compile:async(e,t,n)=>[fi.uri(n),await mi.compileSchema(e,t)],interpret:hi,collectEvaluatedItems:(e,t,n,r)=>hi(e,t,n,r)&&new Set(di.map(((e,t)=>t),t))};const{Core:vi,Schema:gi,Instance:bi}=an,$i=([e,t],n,r,a)=>{if(!bi.typeOf(n,"object"))return!0;const i=vi.collectEvaluatedProperties(e,n,r,a,!0);return!i||bi.entries(n).filter((([e])=>!i.some((t=>e.match(t))))).every((([,e])=>vi.interpretSchema(t,e,r,a)))};var wi={compile:async(e,t,n)=>[gi.uri(n),await vi.compileSchema(e,t)],interpret:$i,collectEvaluatedProperties:(e,t,n,r)=>$i(e,t,n,r)&&[new RegExp("")]};const{Schema:xi,Instance:Si}=an,Oi=Dn;var Ii={compile:e=>xi.value(e),interpret:(e,t)=>{if(!Si.typeOf(t,"array")||!1===e)return!0;const n=Si.map((e=>Oi(Si.value(e))),t);return new Set(n).size===n.length}};const{Keywords:Ei}=an;var ji={additionalItems:ln,additionalItems6:dn,additionalProperties:gn,additionalProperties6:Sn,allOf:jn,anyOf:Tn,const:Ln,contains:Un,containsMinContainsMaxContains:Gn,definitions:Xn,dependencies:nr,dependentRequired:or,dependentSchemas:ur,enum:hr,exclusiveMaximum:gr,exclusiveMinimum:wr,if:Sr,then:jr,else:Tr,items:qr,items202012:Vr,maxItems:Jr,maxLength:Gr,maxProperties:Wr,maximumExclusiveMaximum:Yr,maximum:na,metaData:Ei.metaData,minItems:ia,minLength:ca,minProperties:ua,minimumExclusiveMinimum:da,minimum:va,multipleOf:wa,not:Sa,oneOf:Ea,pattern:Ca,patternProperties:Da,properties:za,propertyNames:Ba,dynamicRef:Wa,ref:Ya,required:ni,tupleItems:ci,type:ui,unevaluatedItems:yi,unevaluatedProperties:wi,uniqueItems:Ii,validate:Ei.validate};const{Core:Ai,Schema:Ci}=an,Pi=ji,Ti="http://json-schema.org/draft-04/schema";Ci.setConfig(Ti,"baseToken","id"),Ci.setConfig(Ti,"embeddedToken","id"),Ci.setConfig(Ti,"anchorToken","id"),Ci.setConfig(Ti,"jrefToken","$ref"),Ci.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}')),Ai.defineVocabulary(Ti,{validate:Pi.validate,additionalItems:Pi.additionalItems,additionalProperties:Pi.additionalProperties,allOf:Pi.allOf,anyOf:Pi.anyOf,default:Pi.metaData,definitions:Pi.definitions,dependencies:Pi.dependencies,description:Pi.metaData,enum:Pi.enum,format:Pi.metaData,items:Pi.items,maxItems:Pi.maxItems,maxLength:Pi.maxLength,maxProperties:Pi.maxProperties,maximum:Pi.maximumExclusiveMaximum,minItems:Pi.minItems,minLength:Pi.minLength,minProperties:Pi.minProperties,minimum:Pi.minimumExclusiveMinimum,multipleOf:Pi.multipleOf,not:Pi.not,oneOf:Pi.oneOf,pattern:Pi.pattern,patternProperties:Pi.patternProperties,properties:Pi.properties,required:Pi.required,title:Pi.metaData,type:Pi.type,uniqueItems:Pi.uniqueItems});const{Core:Ni,Schema:ki}=an,Ri=ji,Di="http://json-schema.org/draft-06/schema";ki.setConfig(Di,"baseToken","$id"),ki.setConfig(Di,"embeddedToken","$id"),ki.setConfig(Di,"anchorToken","$id"),ki.setConfig(Di,"jrefToken","$ref"),ki.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}')),Ni.defineVocabulary(Di,{validate:Ri.validate,additionalItems:Ri.additionalItems6,additionalProperties:Ri.additionalProperties6,allOf:Ri.allOf,anyOf:Ri.anyOf,const:Ri.const,contains:Ri.contains,default:Ri.metaData,definitions:Ri.definitions,dependencies:Ri.dependencies,description:Ri.metaData,enum:Ri.enum,examples:Ri.metaData,exclusiveMaximum:Ri.exclusiveMaximum,exclusiveMinimum:Ri.exclusiveMinimum,format:Ri.metaData,items:Ri.items,maxItems:Ri.maxItems,maxLength:Ri.maxLength,maxProperties:Ri.maxProperties,maximum:Ri.maximum,minItems:Ri.minItems,minLength:Ri.minLength,minProperties:Ri.minProperties,minimum:Ri.minimum,multipleOf:Ri.multipleOf,not:Ri.not,oneOf:Ri.oneOf,pattern:Ri.pattern,patternProperties:Ri.patternProperties,properties:Ri.properties,propertyNames:Ri.propertyNames,required:Ri.required,title:Ri.metaData,type:Ri.type,uniqueItems:Ri.uniqueItems});const{Core:qi,Schema:Mi}=an,_i=ji,Li="http://json-schema.org/draft-07/schema";Mi.setConfig(Li,"baseToken","$id"),Mi.setConfig(Li,"embeddedToken","$id"),Mi.setConfig(Li,"anchorToken","$id"),Mi.setConfig(Li,"jrefToken","$ref"),Mi.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}')),qi.defineVocabulary(Li,{validate:_i.validate,additionalItems:_i.additionalItems6,additionalProperties:_i.additionalProperties6,allOf:_i.allOf,anyOf:_i.anyOf,const:_i.const,contains:_i.contains,default:_i.metaData,definitions:_i.definitions,dependencies:_i.dependencies,description:_i.metaData,enum:_i.enum,exclusiveMaximum:_i.exclusiveMaximum,exclusiveMinimum:_i.exclusiveMinimum,format:_i.metaData,if:_i.if,then:_i.then,else:_i.else,items:_i.items,maxItems:_i.maxItems,maxLength:_i.maxLength,maxProperties:_i.maxProperties,maximum:_i.maximum,minItems:_i.minItems,minLength:_i.minLength,minProperties:_i.minProperties,minimum:_i.minimum,multipleOf:_i.multipleOf,not:_i.not,oneOf:_i.oneOf,pattern:_i.pattern,patternProperties:_i.patternProperties,properties:_i.properties,propertyNames:_i.propertyNames,readOnly:_i.metaData,required:_i.required,title:_i.metaData,type:_i.type,uniqueItems:_i.uniqueItems,writeOnly:_i.metaData});const{Core:Fi,Schema:Vi}=an,Ui=ji,zi="https://json-schema.org/draft/2019-09/vocab/core";Vi.setConfig(zi,"baseToken","$id"),Vi.setConfig(zi,"embeddedToken","$id"),Vi.setConfig(zi,"anchorToken","$anchor"),Vi.setConfig(zi,"recursiveAnchorToken","$recursiveAnchor"),Vi.setConfig(zi,"vocabularyToken","$vocabulary"),Vi.setConfig(zi,"mandatoryVocabularies",["https://json-schema.org/draft/2019-09/vocab/core"]),Vi.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}')),Vi.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}')),Fi.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/core",{validate:Ui.validate,$defs:Ui.definitions,$recursiveRef:Ui.dynamicRef,$ref:Ui.ref}),Vi.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}')),Fi.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/applicator",{additionalItems:Ui.additionalItems6,additionalProperties:Ui.additionalProperties6,allOf:Ui.allOf,anyOf:Ui.anyOf,contains:Ui.containsMinContainsMaxContains,dependentSchemas:Ui.dependentSchemas,if:Ui.if,then:Ui.then,else:Ui.else,items:Ui.items,not:Ui.not,oneOf:Ui.oneOf,patternProperties:Ui.patternProperties,properties:Ui.properties,propertyNames:Ui.propertyNames,unevaluatedItems:Ui.unevaluatedItems,unevaluatedProperties:Ui.unevaluatedProperties}),Vi.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}')),Fi.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/validation",{const:Ui.const,dependentRequired:Ui.dependentRequired,enum:Ui.enum,exclusiveMaximum:Ui.exclusiveMaximum,exclusiveMinimum:Ui.exclusiveMinimum,maxItems:Ui.maxItems,maxLength:Ui.maxLength,maxProperties:Ui.maxProperties,maximum:Ui.maximum,minItems:Ui.minItems,minLength:Ui.minLength,minProperties:Ui.minProperties,minimum:Ui.minimum,multipleOf:Ui.multipleOf,pattern:Ui.pattern,required:Ui.required,type:Ui.type,uniqueItems:Ui.uniqueItems}),Vi.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}')),Fi.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/meta-data",{default:Ui.metaData,deprecated:Ui.metaData,description:Ui.metaData,examples:Ui.metaData,readOnly:Ui.metaData,title:Ui.metaData,writeOnly:Ui.metaData}),Vi.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}')),Vi.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}')),Fi.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/content",{contentEncoding:Ui.metaData,contentMediaType:Ui.metaData,contentSchema:Ui.metaData});const{Core:Ji,Schema:Hi}=an,Bi=ji,Gi="https://json-schema.org/draft/2020-12/vocab/core";Hi.setConfig(Gi,"baseToken","$id"),Hi.setConfig(Gi,"embeddedToken","$id"),Hi.setConfig(Gi,"anchorToken","$anchor"),Hi.setConfig(Gi,"dynamicAnchorToken","$dynamicAnchor"),Hi.setConfig(Gi,"vocabularyToken","$vocabulary"),Hi.setConfig(Gi,"mandatoryVocabularies",["https://json-schema.org/draft/2020-12/vocab/core"]),Hi.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}')),Hi.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}')),Ji.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/core",{validate:Bi.validate,$defs:Bi.definitions,$dynamicRef:Bi.dynamicRef,$ref:Bi.ref}),Hi.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}')),Ji.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/applicator",{additionalProperties:Bi.additionalProperties6,allOf:Bi.allOf,anyOf:Bi.anyOf,contains:Bi.containsMinContainsMaxContains,dependentSchemas:Bi.dependentSchemas,if:Bi.if,then:Bi.then,else:Bi.else,items:Bi.items202012,not:Bi.not,oneOf:Bi.oneOf,patternProperties:Bi.patternProperties,prefixItems:Bi.tupleItems,properties:Bi.properties,propertyNames:Bi.propertyNames}),Hi.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}')),Ji.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/validation",{const:Bi.const,dependentRequired:Bi.dependentRequired,enum:Bi.enum,exclusiveMaximum:Bi.exclusiveMaximum,exclusiveMinimum:Bi.exclusiveMinimum,maxItems:Bi.maxItems,maxLength:Bi.maxLength,maxProperties:Bi.maxProperties,maximum:Bi.maximum,minItems:Bi.minItems,minLength:Bi.minLength,minProperties:Bi.minProperties,minimum:Bi.minimum,multipleOf:Bi.multipleOf,pattern:Bi.pattern,required:Bi.required,type:Bi.type,uniqueItems:Bi.uniqueItems}),Hi.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}')),Ji.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/meta-data",{default:Bi.metaData,deprecated:Bi.metaData,description:Bi.metaData,examples:Bi.metaData,readOnly:Bi.metaData,title:Bi.metaData,writeOnly:Bi.metaData}),Hi.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}')),Ji.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/format-annotation",{format:Bi.metaData}),Hi.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}')),Hi.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}')),Ji.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/content",{contentEncoding:Bi.metaData,contentMediaType:Bi.metaData,contentSchema:Bi.metaData}),Hi.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}')),Ji.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/unevaluated",{unevaluatedItems:Bi.unevaluatedItems,unevaluatedProperties:Bi.unevaluatedProperties});const{Core:Ki,Schema:Zi,InvalidSchemaError:Wi}=an,Xi=ji;var Qi={add:Ki.add,get:Zi.get,validate:Ki.validate,compile:Ki.compile,interpret:Ki.interpret,setMetaOutputFormat:Ki.setMetaOutputFormat,setShouldMetaValidate:Ki.setShouldMetaValidate,addMediaTypePlugin:Ki.addMediaTypePlugin,FLAG:Ki.FLAG,BASIC:Ki.BASIC,DETAILED:Ki.DETAILED,VERBOSE:Ki.VERBOSE,Keywords:Xi,InvalidSchemaError:Wi};e.default=Qi,Object.defineProperty(e,"__esModule",{value:!0})}));
|