UNPKG

prismarine-web-client

Version:
2 lines 30.7 MB
/*! For license information please see worker.js.LICENSE.txt */ (()=>{var __webpack_modules__={5096:(e,t,a)=>{"use strict";var n=a(7153),l=a(3610),s=a(7531),i=a(4022),o=a(5035),r=a(1516),_=a(7753),p=a(3978),u=a(2889);e.exports=b,b.prototype.validate=function(e,t){var a;if("string"==typeof e){if(!(a=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);a=n.validate||this._compile(n)}var l=a(t);return!0!==a.$async&&(this.errors=a.errors),l},b.prototype.compile=function(e,t){var a=this._addSchema(e,void 0,t);return a.validate||this._compile(a)},b.prototype.addSchema=function(e,t,a,n){if(Array.isArray(e)){for(var s=0;s<e.length;s++)this.addSchema(e[s],void 0,a,n);return this}var i=this._getId(e);if(void 0!==i&&"string"!=typeof i)throw new Error("schema id must be string");return S(this,t=l.normalizeId(t||i)),this._schemas[t]=this._addSchema(e,a,n,!0),this},b.prototype.addMetaSchema=function(e,t,a){return this.addSchema(e,t,a,!0),this},b.prototype.validateSchema=function(e,t){var a=e.$schema;if(void 0!==a&&"string"!=typeof a)throw new Error("$schema must be a string");if(!(a=a||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(d)?d:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(a,e);if(!n&&t){var l="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(l);this.logger.error(l)}return n},b.prototype.getSchema=function(e){var t=m(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var a=l.schema.call(e,{schema:{}},t);if(a){var s=a.schema,o=a.root,r=a.baseId,_=n.call(e,s,o,void 0,r);return e._fragments[t]=new i({ref:t,fragment:!0,schema:s,root:o,baseId:r,validate:_}),_}}(this,e)}},b.prototype.removeSchema=function(e){if(e instanceof RegExp)return w(this,this._schemas,e),w(this,this._refs,e),this;switch(typeof e){case"undefined":return w(this,this._schemas),w(this,this._refs),this._cache.clear(),this;case"string":var t=m(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var a=this._opts.serialize,n=a?a(e):e;this._cache.del(n);var s=this._getId(e);s&&(s=l.normalizeId(s),delete this._schemas[s],delete this._refs[s])}return this},b.prototype.addFormat=function(e,t){return"string"==typeof t&&(t=new RegExp(t)),this._formats[e]=t,this},b.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var a=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,l="",s=0;s<e.length;s++){var i=e[s];i&&(l+=n+i.dataPath+" "+i.message+a)}return l.slice(0,-a.length)},b.prototype._addSchema=function(e,t,a,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var s=this._opts.serialize,o=s?s(e):e,r=this._cache.get(o);if(r)return r;n=n||!1!==this._opts.addUsedSchema;var _=l.normalizeId(this._getId(e));_&&n&&S(this,_);var p,u=!1!==this._opts.validateSchema&&!t;u&&!(p=_&&_==l.normalizeId(e.$schema))&&this.validateSchema(e,!0);var y=l.ids.call(this,e),c=new i({id:_,schema:e,localRefs:y,cacheKey:o,meta:a});return"#"!=_[0]&&n&&(this._refs[_]=c),this._cache.put(o,c),u&&p&&this.validateSchema(e,!0),c},b.prototype._compile=function(e,t){if(e.compiling)return e.validate=s,s.schema=e.schema,s.errors=null,s.root=t||s,!0===e.schema.$async&&(s.$async=!0),s;var a,l;e.compiling=!0,e.meta&&(a=this._opts,this._opts=this._metaOpts);try{l=n.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=a)}return e.validate=l,e.refs=l.refs,e.refVal=l.refVal,e.root=l.root,l;function s(){var t=e.validate,a=t.apply(this,arguments);return s.errors=t.errors,a}},b.prototype.compileAsync=a(2931);var y=a(4895);b.prototype.addKeyword=y.add,b.prototype.getKeyword=y.get,b.prototype.removeKeyword=y.remove,b.prototype.validateKeyword=y.validate;var c=a(7802);b.ValidationError=c.Validation,b.MissingRefError=c.MissingRef,b.$dataMetaSchema=p;var d="http://json-schema.org/draft-07/schema",g=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],v=["/properties"];function b(e){if(!(this instanceof b))return new b(e);e=this._opts=u.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:x,warn:x,error:x};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=r(e.format),this._cache=e.cache||new s,this._loadingSchemas={},this._compilations=[],this.RULES=_(),this._getId=function(e){switch(e.schemaId){case"auto":return f;case"id":return h;default:return k}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=o),this._metaOpts=function(e){for(var t=u.copy(e._opts),a=0;a<g.length;a++)delete t[g[a]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var a=e._opts.formats[t];e.addFormat(t,a)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var a=e._opts.keywords[t];e.addKeyword(t,a)}}(this),function(e){var t;if(e._opts.$data&&(t=a(894),e.addMetaSchema(t,t.$id,!0)),!1!==e._opts.meta){var n=a(6680);e._opts.$data&&(n=p(n,v)),e.addMetaSchema(n,d,!0),e._refs["http://json-schema.org/schema"]=d}}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(t)if(Array.isArray(t))e.addSchema(t);else for(var a in t)e.addSchema(t[a],a)}(this)}function m(e,t){return t=l.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function w(e,t,a){for(var n in t){var l=t[n];l.meta||a&&!a.test(n)||(e._cache.del(l.cacheKey),delete t[n])}}function h(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function k(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function f(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function S(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function x(){}},7531:e=>{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},2931:(e,t,a)=>{"use strict";var n=a(7802).MissingRef;e.exports=function e(t,a,l){var s=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof a&&(l=a,a=void 0);var i=o(t).then((function(){var e=s._addSchema(t,void 0,a);return e.validate||r(e)}));return l&&i.then((function(e){l(null,e)}),l),i;function o(t){var a=t.$schema;return a&&!s.getSchema(a)?e.call(s,{$ref:a},!0):Promise.resolve()}function r(e){try{return s._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(_(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var l=s._loadingSchemas[n];return l||(l=s._loadingSchemas[n]=s._opts.loadSchema(n)).then(i,i),l.then((function(e){if(!_(n))return o(e).then((function(){_(n)||s.addSchema(e,n,void 0,a)}))})).then((function(){return r(e)}));function i(){delete s._loadingSchemas[n]}function _(e){return s._refs[e]||s._schemas[e]}}(t);throw t}}}},7802:(e,t,a)=>{"use strict";var n=a(3610);function l(e,t,a){this.message=a||l.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function s(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:s((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:s(l)},l.message=function(e,t){return"can't resolve reference "+t+" from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]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,_=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,p=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,u=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,y=/^(?:\/(?:[^~/]|~0|~1)*)*$/,c=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,d=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function g(e){return e="full"==e?"full":"fast",n.copy(g[e])}function v(e){var t=e.match(l);if(!t)return!1;var a=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(a)?29:s[n])}function b(e,t){var a=e.match(i);if(!a)return!1;var n=a[1],l=a[2],s=a[3],o=a[5];return(n<=23&&l<=59&&s<=59||23==n&&59==l&&60==s)&&(!t||o)}e.exports=g,g.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":_,url:p,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]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uri-fragment":c,"relative-json-pointer":d},g.full={date:v,time:b,"date-time":function(e){var t=e.split(m);return 2==t.length&&v(t[0])&&b(t[1],!0)},uri:function(e){return w.test(e)&&r.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*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9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:k,uuid:u,"json-pointer":y,"json-pointer-uri-fragment":c,"relative-json-pointer":d};var m=/t|\s/i,w=/\/|:/,h=/[^\\]\\Z/;function k(e){if(h.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},7153:(e,t,a)=>{"use strict";var n=a(3610),l=a(2889),s=a(7802),i=a(5035),o=a(9508),r=l.ucs2length,_=a(4063),p=s.Validation;function u(e,t,a){var n=c.call(this,e,t,a);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:a},{index:n,compiling:!1})}function y(e,t,a){var n=c.call(this,e,t,a);n>=0&&this._compilations.splice(n,1)}function c(e,t,a){for(var n=0;n<this._compilations.length;n++){var l=this._compilations[n];if(l.schema==e&&l.root==t&&l.baseId==a)return n}return-1}function d(e,t){return"var pattern"+e+" = new RegExp("+l.toQuotedString(t[e])+");"}function g(e){return"var default"+e+" = defaults["+e+"];"}function v(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function b(e){return"var customRule"+e+" = customRules["+e+"];"}function m(e,t){if(!e.length)return"";for(var a="",n=0;n<e.length;n++)a+=t(n,e);return a}e.exports=function e(t,a,c,w){var h=this,k=this._opts,f=[void 0],S={},x=[],L={},I=[],B={},N=[];a=a||{schema:t,refVal:f,refs:S};var z=u.call(this,t,a,w),T=this._compilations[z.index];if(z.compiling)return T.callValidate=function e(){var t=T.validate,a=t.apply(this,arguments);return e.errors=t.errors,a};var C=this._formats,P=this.RULES;try{var j=W(t,a,c,w);T.validate=j;var O=T.callValidate;return O&&(O.schema=j.schema,O.errors=null,O.refs=j.refs,O.refVal=j.refVal,O.root=j.root,O.$async=j.$async,k.sourceCode&&(O.source=j.source)),j}finally{y.call(this,t,a,w)}function W(t,i,u,y){var c=!i||i&&i.schema==t;if(i.schema!=a.schema)return e.call(h,t,i,u,y);var w,L=!0===t.$async,B=o({isTop:!0,schema:t,isRoot:c,baseId:y,root:i,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:s.MissingRef,RULES:P,validate:o,util:l,resolve:n,resolveRef:E,usePattern:F,useDefault:V,useCustomRule:R,opts:k,formats:C,logger:h.logger,self:h});B=m(f,v)+m(x,d)+m(I,g)+m(N,b)+B,k.processCode&&(B=k.processCode(B,t));try{w=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",B)(h,P,C,a,f,I,N,_,r,p),f[0]=w}catch(e){throw h.logger.error("Error compiling schema, function code:",B),e}return w.schema=t,w.errors=null,w.refs=S,w.refVal=f,w.root=c?w:i,L&&(w.$async=!0),!0===k.sourceCode&&(w.source={code:B,patterns:x,defaults:I}),w}function E(t,l,s){l=n.url(t,l);var i,o,r=S[l];if(void 0!==r)return G(i=f[r],o="refVal["+r+"]");if(!s&&a.refs){var _=a.refs[l];if(void 0!==_)return G(i=a.refVal[_],o=D(l,i))}o=D(l);var p=n.call(h,W,a,l);if(void 0===p){var u=c&&c[l];u&&(p=n.inlineRef(u,k.inlineRefs)?u:e.call(h,u,a,c,t))}if(void 0!==p)return function(e,t){var a=S[e];f[a]=t}(l,p),G(p,o);!function(e){delete S[e]}(l)}function D(e,t){var a=f.length;return f[a]=t,S[e]=a,"refVal"+a}function G(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function F(e){var t=L[e];return void 0===t&&(t=L[e]=x.length,x[t]=e),"pattern"+t}function V(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return l.toQuotedString(e);case"object":if(null===e)return"null";var t=i(e),a=B[t];return void 0===a&&(a=B[t]=I.length,I[a]=e),"default"+a}}function R(e,t,a,n){if(!1!==h._opts.validateSchema){var l=e.definition.dependencies;if(l&&!l.every((function(e){return Object.prototype.hasOwnProperty.call(a,e)})))throw new Error("parent schema must have all required keywords: "+l.join(","));var s=e.definition.validateSchema;if(s&&!s(t)){var i="keyword schema is invalid: "+h.errorsText(s.errors);if("log"!=h._opts.validateSchema)throw new Error(i);h.logger.error(i)}}var o,r=e.definition.compile,_=e.definition.inline,p=e.definition.macro;if(r)o=r.call(h,t,a,n);else if(p)o=p.call(h,t,a,n),!1!==k.validateSchema&&h.validateSchema(o,!0);else if(_)o=_.call(h,n,e.keyword,t,a);else if(!(o=e.definition.validate))return;if(void 0===o)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var u=N.length;return N[u]=o,{code:"customRule"+u,validate:o}}}},3610:(e,t,a)=>{"use strict";var n=a(540),l=a(4063),s=a(2889),i=a(4022),o=a(9461);function r(e,t,a){var n=this._refs[a];if("string"==typeof n){if(!this._refs[n])return r.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[a])instanceof i)return d(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var l,s,o,p=_.call(this,t,a);return p&&(l=p.schema,t=p.root,o=p.baseId),l instanceof i?s=l.validate||e.call(this,l.schema,t,void 0,o):void 0!==l&&(s=d(l,this._opts.inlineRefs)?l:e.call(this,l,t,void 0,o)),s}function _(e,t){var a=n.parse(t),l=m(a),s=b(this._getId(e.schema));if(0===Object.keys(e.schema).length||l!==s){var o=h(l),r=this._refs[o];if("string"==typeof r)return p.call(this,e,r,a);if(r instanceof i)r.validate||this._compile(r),e=r;else{if(!((r=this._schemas[o])instanceof i))return;if(r.validate||this._compile(r),o==h(t))return{schema:r,root:e,baseId:s};e=r}if(!e.schema)return;s=b(this._getId(e.schema))}return y.call(this,a,s,e.schema,e)}function p(e,t,a){var n=_.call(this,e,t);if(n){var l=n.schema,s=n.baseId;e=n.root;var i=this._getId(l);return i&&(s=k(s,i)),y.call(this,a,s,l,e)}}e.exports=r,r.normalizeId=h,r.fullPath=b,r.url=k,r.ids=function(e){var t=h(this._getId(e)),a={"":t},i={"":b(t,!1)},r={},_=this;return o(e,{allKeys:!0},(function(e,t,o,p,u,y,c){if(""!==t){var d=_._getId(e),g=a[p],v=i[p]+"/"+u;if(void 0!==c&&(v+="/"+("number"==typeof c?c:s.escapeFragment(c))),"string"==typeof d){d=g=h(g?n.resolve(g,d):d);var b=_._refs[d];if("string"==typeof b&&(b=_._refs[b]),b&&b.schema){if(!l(e,b.schema))throw new Error('id "'+d+'" resolves to more than one schema')}else if(d!=h(v))if("#"==d[0]){if(r[d]&&!l(e,r[d]))throw new Error('id "'+d+'" resolves to more than one schema');r[d]=e}else _._refs[d]=v}a[t]=g,i[t]=v}})),r},r.inlineRef=d,r.schema=_;var u=s.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,t,a,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var l=e.fragment.split("/"),i=1;i<l.length;i++){var o=l[i];if(o){if(void 0===(a=a[o=s.unescapeFragment(o)]))break;var r;if(!u[o]&&((r=this._getId(a))&&(t=k(t,r)),a.$ref)){var p=k(t,a.$ref),y=_.call(this,n,p);y&&(a=y.schema,n=y.root,t=y.baseId)}}}return void 0!==a&&a!==n.schema?{schema:a,root:n,baseId:t}:void 0}}var c=s.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function d(e,t){return!1!==t&&(void 0===t||!0===t?g(e):t?v(e)<=t:void 0)}function g(e){var t;if(Array.isArray(e)){for(var a=0;a<e.length;a++)if("object"==typeof(t=e[a])&&!g(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!g(t))return!1}return!0}function v(e){var t,a=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(a+=v(t)),a==1/0)return 1/0}else for(var l in e){if("$ref"==l)return 1/0;if(c[l])a++;else if("object"==typeof(t=e[l])&&(a+=v(t)+1),a==1/0)return 1/0}return a}function b(e,t){return!1!==t&&(e=h(e)),m(n.parse(e))}function m(e){return n.serialize(e).split("#")[0]+"#"}var w=/#\/?$/;function h(e){return e?e.replace(w,""):""}function k(e,t){return t=h(t),n.resolve(e,t)}},7753:(e,t,a)=>{"use strict";var n=a(6674),l=a(2889).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=l(t),e.types=l(["number","integer","string","array","object","boolean","null"]),e.forEach((function(a){a.rules=a.rules.map((function(a){var l;if("object"==typeof a){var s=Object.keys(a)[0];l=a[s],a=s,l.forEach((function(a){t.push(a),e.all[a]=!0}))}return t.push(a),e.all[a]={keyword:a,code:n[a],implements:l}})),e.all.$comment={keyword:"$comment",code:n.$comment},a.type&&(e.types[a.type]=a)})),e.keywords=l(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},4022:(e,t,a)=>{"use strict";var n=a(2889);e.exports=function(e){n.copy(e,this)}},4442:e=>{"use strict";e.exports=function(e){for(var t,a=0,n=e.length,l=0;l<n;)a++,(t=e.charCodeAt(l++))>=55296&&t<=56319&&l<n&&56320==(64512&(t=e.charCodeAt(l)))&&l++;return a}},2889:(e,t,a)=>{"use strict";function n(e,t,a,n){var l=n?" !== ":" === ",s=n?" || ":" && ",i=n?"!":"",o=n?"":"!";switch(e){case"null":return t+l+"null";case"array":return i+"Array.isArray("+t+")";case"object":return"("+i+t+s+"typeof "+t+l+'"object"'+s+o+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+l+'"number"'+s+o+"("+t+" % 1)"+s+t+l+t+(a?s+i+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+l+'"'+e+'"'+(a?s+i+"isFinite("+t+")":"")+")";default:return"typeof "+t+l+'"'+e+'"'}}e.exports={copy:function(e,t){for(var a in t=t||{},e)t[a]=e[a];return t},checkDataType:n,checkDataTypes:function(e,t,a){if(1===e.length)return n(e[0],t,a,!0);var l="",i=s(e);for(var o in i.array&&i.object&&(l=i.null?"(":"(!"+t+" || ",l+="typeof "+t+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer,i)l+=(l?" && ":"")+n(o,t,a,!0);return l},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var a=[],n=0;n<t.length;n++){var s=t[n];(l[s]||"array"===e&&"array"===s)&&(a[a.length]=s)}if(a.length)return a}else{if(l[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:s,getProperty:r,escapeQuotes:_,equal:a(4063),ucs2length:a(4442),varOccurences:function(e,t){t+="[^0-9]";var a=e.match(new RegExp(t,"g"));return a?a.length:0},varReplace:function(e,t,a){return t+="([^0-9])",a=a.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),a+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var a in e)if(t[a])return!0},schemaHasRulesExcept:function(e,t,a){if("boolean"==typeof e)return!e&&"not"!=a;for(var n in e)if(n!=a&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"!=typeof e)for(var a in e)if(!t[a])return a},toQuotedString:p,getPathExpr:function(e,t,a,n){return c(e,a?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,a){return c(e,p(a?"/"+d(t):r(t)))},getData:function(e,t,a){var n,l,s,i;if(""===e)return"rootData";if("/"==e[0]){if(!u.test(e))throw new Error("Invalid JSON-pointer: "+e);l=e,s="rootData"}else{if(!(i=e.match(y)))throw new Error("Invalid JSON-pointer: "+e);if(n=+i[1],"#"==(l=i[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return a[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(s="data"+(t-n||""),!l)return s}for(var o=s,_=l.split("/"),p=0;p<_.length;p++){var c=_[p];c&&(o+=" && "+(s+=r(g(c))))}return o},unescapeFragment:function(e){return g(decodeURIComponent(e))},unescapeJsonPointer:g,escapeFragment:function(e){return encodeURIComponent(d(e))},escapeJsonPointer:d};var l=s(["string","number","integer","boolean","null"]);function s(e){for(var t={},a=0;a<e.length;a++)t[e[a]]=!0;return t}var i=/^[a-z$_][a-z$_0-9]*$/i,o=/'|\\/g;function r(e){return"number"==typeof e?"["+e+"]":i.test(e)?"."+e:"['"+_(e)+"']"}function _(e){return e.replace(o,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function p(e){return"'"+_(e)+"'"}var u=/^\/(?:[^~]|~0|~1)*$/,y=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function c(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function d(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function g(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},3978:e=>{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,a){for(var n=0;n<a.length;n++){e=JSON.parse(JSON.stringify(e));var l,s=a[n].split("/"),i=e;for(l=1;l<s.length;l++)i=i[s[l]];for(l=0;l<t.length;l++){var o=t[l],r=i[o];r&&(i[o]={anyOf:[r,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},1128:(e,t,a)=>{"use strict";var n=a(6680);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},8210:e=>{"use strict";e.exports=function(e,t,a){var n,l=" ",s=e.level,i=e.dataLevel,o=e.schema[t],r=e.schemaPath+e.util.getProperty(t),_=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,u="data"+(i||""),y=e.opts.$data&&o&&o.$data;y?(l+=" var schema"+s+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; ",n="schema"+s):n=o;var c="maximum"==t,d=c?"exclusiveMaximum":"exclusiveMinimum",g=e.schema[d],v=e.opts.$data&&g&&g.$data,b=c?"<":">",m=c?">":"<",w=void 0;if(!y&&"number"!=typeof o&&void 0!==o)throw new Error(t+" must be number");if(!v&&void 0!==g&&"number"!=typeof g&&"boolean"!=typeof g)throw new Error(d+" must be number or boolean");if(v){var h,k=e.util.getData(g.$data,i,e.dataPathArr),f="exclusive"+s,S="exclType"+s,x="exclIsNumber"+s,L="' + "+(B="op"+s)+" + '";l+=" var schemaExcl"+s+" = "+k+"; ",l+=" var "+f+"; var "+S+" = typeof "+(k="schemaExcl"+s)+"; if ("+S+" != 'boolean' && "+S+" != 'undefined' && "+S+" != 'number') { ",w=d,(h=h||[]).push(l),l="",!1!==e.createErrors?(l+=" { keyword: '"+(w||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(_)+" , params: {} ",!1!==e.opts.messages&&(l+=" , message: '"+d+" should be boolean' "),e.opts.verbose&&(l+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),l+=" } "):l+=" {} ";var I=l;l=h.pop(),!e.compositeRule&&p?e.async?l+=" throw new ValidationError(["+I+"]); ":l+=" validate.errors = ["+I+"]; return false; ":l+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l+=" } else if ( ",y&&(l+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),l+=" "+S+" == 'number' ? ( ("+f+" = "+n+" === undefined || "+k+" "+b+"= "+n+") ? "+u+" "+m+"= "+k+" : "+u+" "+m+" "+n+" ) : ( ("+f+" = "+k+" === true) ? "+u+" "+m+"= "+n+" : "+u+" "+m+" "+n+" ) || "+u+" !== "+u+") { var op"+s+" = "+f+" ? '"+b+"' : '"+b+"='; ",void 0===o&&(w=d,_=e.errSchemaPath+"/"+d,n=k,y=v)}else if(L=b,(x="number"==typeof g)&&y){var B="'"+L+"'";l+=" if ( ",y&&(l+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),l+=" ( "+n+" === undefined || "+g+" "+b+"= "+n+" ? "+u+" "+m+"= "+g+" : "+u+" "+m+" "+n+" ) || "+u+" !== "+u+") { "}else x&&void 0===o?(f=!0,w=d,_=e.errSchemaPath+"/"+d,n=g,m+="="):(x&&(n=Math[c?"min":"max"](g,o)),g===(!x||n)?(f=!0,w=d,_=e.errSchemaPath+"/"+d,m+="="):(f=!1,L+="=")),B="'"+L+"'",l+=" if ( ",y&&(l+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),l+=" "+u+" "+m+" "+n+" || "+u+" !== "+u+") { ";return w=w||t,(h=h||[]).push(l),l="",!1!==e.createErrors?(l+=" { keyword: '"+(w||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(_)+" , params: { comparison: "+B+", limit: "+n+", exclusive: "+f+" } ",!1!==e.opts.messages&&(l+=" , message: 'should be "+L+" ",l+=y?"' + "+n:n+"'"),e.opts.verbose&&(l+=" , schema: ",l+=y?"validate.schema"+r:""+o,l+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),l+=" } "):l+=" {} ",I=l,l=h.pop(),!e.compositeRule&&p?e.async?l+=" throw new ValidationError(["+I+"]); ":l+=" validate.errors = ["+I+"]; return false; ":l+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l+=" } ",p&&(l+=" else { "),l}},3038:e=>{"use strict";e.exports=function(e,t,a){var n,l=" ",s=e.level,i=e.dataLevel,o=e.schema[t],r=e.schemaPath+e.util.getProperty(t),_=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,u="data"+(i||""),y=e.opts.$data&&o&&o.$data;if(y?(l+=" var schema"+s+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; ",n="schema"+s):n=o,!y&&"number"!=typeof o)throw new Error(t+" must be number");l+="if ( ",y&&(l+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),l+=" "+u+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var c=t,d=d||[];d.push(l),l="",!1!==e.createErrors?(l+=" { keyword: '"+(c||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(_)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(l+=" , message: 'should NOT have ",l+="maxItems"==t?"more":"fewer",l+=" than ",l+=y?"' + "+n+" + '":""+o,l+=" items' "),e.opts.verbose&&(l+=" , schema: ",l+=y?"validate.schema"+r:""+o,l+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),l+=" } "):l+=" {} ";var g=l;return l=d.pop(),!e.compositeRule&&p?e.async?l+=" throw new ValidationError(["+g+"]); ":l+=" validate.errors = ["+g+"]; return false; ":l+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l+="} ",p&&(l+=" else { "),l}},425:e=>{"use strict";e.exports=function(e,t,a){var n,l=" ",s=e.level,i=e.dataLevel,o=e.schema[t],r=e.schemaPath+e.util.getProperty(t),_=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,u="data"+(i||""),y=e.opts.$data&&o&&o.$data;if(y?(l+=" var schema"+s+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; ",n="schema"+s):n=o,!y&&"number"!=typeof o)throw new Error(t+" must be number");var c="maxLength"==t?">":"<";l+="if ( ",y&&(l+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?l+=" "+u+".length ":l+=" ucs2length("+u+") ",l+=" "+c+" "+n+") { ";var d=t,g=g||[];g.push(l),l="",!1!==e.createErrors?(l+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(_)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(l+=" , message: 'should NOT be ",l+="maxLength"==t?"longer":"shorter",l+=" than ",l+=y?"' + "+n+" + '":""+o,l+=" characters' "),e.opts.verbose&&(l+=" , schema: ",l+=y?"validate.schema"+r:""+o,l+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),l+=" } "):l+=" {} ";var v=l;return l=g.pop(),!e.compositeRule&&p?e.async?l+=" throw new ValidationError(["+v+"]); ":l+=" validate.errors = ["+v+"]; return false; ":l+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l+="} ",p&&(l+=" else { "),l}},8204:e=>{"use strict";e.exports=function(e,t,a){var n,l=" ",s=e.level,i=e.dataLevel,o=e.schema[t],r=e.schemaPath+e.util.getProperty(t),_=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,u="data"+(i||""),y=e.opts.$data&&o&&o.$data;if(y?(l+=" var schema"+s+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; ",n="schema"+s):n=o,!y&&"number"!=typeof o)throw new Error(t+" must be number");l+="if ( ",y&&(l+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),l+=" Object.keys("+u+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var c=t,d=d||[];d.push(l),l="",!1!==e.createErrors?(l+=" { keyword: '"+(c||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(_)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(l+=" , message: 'should NOT have ",l+="maxProperties"==t?"more":"fewer",l+=" than ",l+=y?"' + "+n+" + '":""+o,l+=" properties' "),e.opts.verbose&&(l+=" , schema: ",l+=y?"validate.schema"+r:""+o,l+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),l+=" } "):l+=" {} ";var g=l;return l=d.pop(),!e.compositeRule&&p?e.async?l+=" throw new ValidationError(["+g+"]); ":l+=" validate.errors = ["+g+"]; return false; ":l+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l+="} ",p&&(l+=" else { "),l}},2988:e=>{"use strict";e.exports=function(e,t,a){var n=" ",l=e.schema[t],s=e.schemaPath+e.util.getProperty(t),i=e.errSchemaPath+"/"+t,o=!e.opts.allErrors,r=e.util.copy(e),_="";r.level++;var p="valid"+r.level,u=r.baseId,y=!0,c=l;if(c)for(var d,g=-1,v=c.length-1;g<v;)d=c[g+=1],(e.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(y=!1,r.schema=d,r.schemaPath=s+"["+g+"]",r.errSchemaPath=i+"/"+g,n+=" "+e.validate(r)+" ",r.baseId=u,o&&(n+=" if ("+p+") { ",_+="}"));return o&&(n+=y?" if (true) { ":" "+_.slice(0,-1)+" "),n}},9996:e=>{"use strict";e.exports=function(e,t,a){var n=" ",l=e.level,s=e.dataLevel,i=e.schema[t],o=e.schemaPath+e.util.getProperty(t),r=e.errSchemaPath+"/"+t,_=!e.opts.allErrors,p="data"+(s||""),u="valid"+l,y="errs__"+l,c=e.util.copy(e),d="";c.level++;var g="valid"+c.level,v=i.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(v){var b=c.baseId;n+=" var "+y+" = errors; var "+u+" = false; ";var m=e.compositeRule;e.compositeRule=c.compositeRule=!0;var w=i;if(w)for(var h,k=-1,f=w.length-1;k<f;)h=w[k+=1],c.schema=h,c.schemaPath=o+"["+k+"]",c.errSchemaPath=r+"/"+k,n+=" "+e.validate(c)+" ",c.baseId=b,n+=" "+u+" = "+u+" || "+g+"; if (!"+u+") { ",d+="}";e.compositeRule=c.compositeRule=m,n+=" "+d+" if (!"+u+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(r)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&_&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+y+"; if (vErrors !== null) { if ("+y+") vErrors.length = "+y+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else _&&(n+=" if (true) { ");return n}},7812:e=>{"use strict";e.exports=function(e,t,a){var n=" ",l=e.schema[t],s=e.errSchemaPath+"/"+t,i=(e.opts.allErrors,e.util.toQuotedString(l));return!0===e.opts.$comment?n+=" console.log("+i+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+i+", "+e.util.toQuotedString(s)+", validate.root.schema);"),n}},5306:e=>{"use strict";e.exports=function(e,t,a){var n=" ",l=e.level,s=e.dataLevel,i=e.schema[t],o=e.schemaPath+e.util.getProperty(t),r=e.errSchemaPath+"/"+t,_=!e.opts.allErrors,p="data"+(s||""),u="valid"+l,y=e.opts.$data&&i&&i.$data;y&&(n+=" var schema"+l+" = "+e.util.getData(i.$data,s,e.dataPathArr)+"; "),y||(n+=" var schema"+l+" = validate.schema"+o+";"),n+="var "+u+" = equal("+p+", schema"+l+"); if (!"+u+") { ";var c=c||[];c.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(r)+" , params: { allowedValue: schema"+l+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var d=n;return n=c.pop(),!e.compositeRule&&_?e.async?n+=" throw new ValidationError(["+d+"]); ":n+=" validate.errors = ["+d+"]; return false; ":n+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",_&&(n+=" else { "),n}},2840:e=>{"use strict";e.exports=function(e,t,a){var n=" ",l=e.level,s=e.dataLevel,i=e.schema[t],o=e.schemaPath+e.util.getProperty(t),r=e.errSchemaPath+"/"+t,_=!e.opts.allErrors,p="data"+(s||""),u="valid"+l,y="errs__"+l,c=e.util.copy(e);c.level++;var d="valid"+c.level,g="i"+l,v=c.dataLevel=e.dataLevel+1,b="data"+v,m=e.baseId,w=e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all);if(n+="var "+y+" = errors;var "+u+";",w){var h=e.compositeRule;e.compositeRule=c.compositeRule=!0,c.schema=i,c.schemaPath=o,c.errSchemaPath=r,n+=" var "+d+" = false; for (var "+g+" = 0; "+g+" < "+p+".length; "+g+"++) { ",c.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var k=p+"["+g+"]";c.dataPathArr[v]=g;var f=e.validate(c);c.baseId=m,e.util.varOccurences(f,b)<2?n+=" "+e.util.varReplace(f,b,k)+" ":n+=" var "+b+" = "+k+"; "+f+" ",n+=" if ("+d+") break; } ",e.compositeRule=c.compositeRule=h,n+=" if (!"+d+") {"}else n+=" if ("+p+".length == 0) {";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(r)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var x=n;return n=S.pop(),!e.compositeRule&&_?e.async?n+=" throw new ValidationError(["+x+"]); ":n+=" validate.errors = ["+x+"]; return false; ":n+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",w&&(n+=" errors = "+y+"; if (vErrors !== null) { if ("+y+") vErrors.length = "+y+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},4165:e=>{"use strict";e.exports=function(e,t,a){var n,l,s=" ",i=e.level,o=e.dataLevel,r=e.schema[t],_=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,y="data"+(o||""),c="valid"+i,d="errs__"+i,g=e.opts.$data&&r&&r.$data;g?(s+=" var schema"+i+" = "+e.util.getData(r.$data,o,e.dataPathArr)+"; ",l="schema"+i):l=r;var v,b,m,w,h,k=this,f="definition"+i,S=k.definition,x="";if(g&&S.$data){h="keywordValidate"+i;var L=S.validateSchema;s+=" var "+f+" = RULES.custom['"+t+"'].definition; var "+h+" = "+f+".validate;"}else{if(!(w=e.useCustomRule(k,r,e.schema,e)))return;l="validate.schema"+_,h=w.code,v=S.compile,b=S.inline,m=S.macro}var I=h+".errors",B="i"+i,N="ruleErr"+i,z=S.async;if(z&&!e.async)throw new Error("async keyword in sync schema");if(b||m||(s+=I+" = null;"),s+="var "+d+" = errors;var "+c+";",g&&S.$data&&(x+="}",s+=" if ("+l+" === undefined) { "+c+" = true; } else { ",L&&(x+="}",s+=" "+c+" = "+f+".validateSchema("+l+"); if ("+c+") { ")),b)S.statements?s+=" "+w.validate+" ":s+=" "+c+" = "+w.validate+"; ";else if(m){var T=e.util.copy(e);x="",T.level++;var C="valid"+T.level;T.schema=w.validate,T.schemaPath="";var P=e.compositeRule;e.compositeRule=T.compositeRule=!0;var j=e.validate(T).replace(/validate\.schema/g,h);e.compositeRule=T.compositeRule=P,s+=" "+j}else{(D=D||[]).push(s),s="",s+=" "+h+".call( ",e.opts.passContext?s+="this":s+="self",v||!1===S.schema?s+=" , "+y+" ":s+=" , "+l+" , "+y+" , validate.schema"+e.schemaPath+" ",s+=" , (dataPath || '')",'""'!=e.errorPath&&(s+=" + "+e.errorPath);var O=o?"data"+(o-1||""):"parentData",W=o?e.dataPathArr[o]:"parentDataProperty",E=s+=" , "+O+" , "+W+" , rootData ) ";s=D.pop(),!1===S.errors?(s+=" "+c+" = ",z&&(s+="await "),s+=E+"; "):s+=z?" var "+(I="customErrors"+i)+" = null; try { "+c+" = await "+E+"; } catch (e) { "+c+" = false; if (e instanceof ValidationError) "+I+" = e.errors; else throw e; } ":" "+I+" = null; "+c+" = "+E+"; "}if(S.modifying&&(s+=" if ("+O+") "+y+" = "+O+"["+W+"];"),s+=""+x,S.valid)u&&(s+=" if (true) { ");else{var D;s+=" if ( ",void 0===S.valid?(s+=" !",s+=m?""+C:""+c):s+=" "+!S.valid+" ",s+=") { ",n=k.keyword,(D=D||[]).push(s),s="",(D=D||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { keyword: '"+k.keyword+"' } ",!1!==e.opts.messages&&(s+=" , message: 'should pass \""+k.keyword+"\" keyword validation' "),e.opts.verbose&&(s+=" , schema: validate.schema"+_+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),s+=" } "):s+=" {} ";var G=s;s=D.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+G+"]); ":s+=" validate.errors = ["+G+"]; return false; ":s+=" var err = "+G+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var F=s;s=D.pop(),b?S.errors?"full"!=S.errors&&(s+=" for (var "+B+"="+d+"; "+B+"<errors; "+B+"++) { var "+N+" = vErrors["+B+"]; if ("+N+".dataPath === undefined) "+N+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+N+".schemaPath === undefined) { "+N+'.schemaPath = "'+p+'"; } ',e.opts.verbose&&(s+=" "+N+".schema = "+l+"; "+N+".data = "+y+"; "),s+=" } "):!1===S.errors?s+=" "+F+" ":(s+=" if ("+d+" == errors) { "+F+" } else { for (var "+B+"="+d+"; "+B+"<errors; "+B+"++) { var "+N+" = vErrors["+B+"]; if ("+N+".dataPath === undefined) "+N+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+N+".schemaPath === undefined) { "+N+'.schemaPath = "'+p+'"; } ',e.opts.verbose&&(s+=" "+N+".schema = "+l+"; "+N+".data = "+y+"; "),s+=" } } "):m?(s+=" var err = ",!1!==e.createErrors?(s+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { keyword: '"+k.keyword+"' } ",!1!==e.opts.messages&&(s+=" , message: 'should pass \""+k.keyword+"\" keyword validation' "),e.opts.verbose&&(s+=" , schema: validate.schema"+_+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; ")):!1===S.errors?s+=" "+F+" ":(s+=" if (Array.isArray("+I+")) { if (vErrors === null) vErrors = "+I+"; else vErrors = vErrors.concat("+I+"); errors = vErrors.length; for (var "+B+"="+d+"; "+B+"<errors; "+B+"++) { var "+N+" = vErrors["+B+"]; if ("+N+".dataPath === undefined) "+N+".dataPath = (dataPath || '') + "+e.errorPath+"; "+N+'.schemaPath = "'+p+'"; ',e.opts.verbose&&(s+=" "+N+".schema = "+l+"; "+N+".data = "+y+"; "),s+=" } } else { "+F+" } "),s+=" } ",u&&(s+=" else { ")}return s}},6659:e=>{"use strict";e.exports=function(e,t,a){var n=" ",l=e.level,s=e.dataLevel,i=e.schema[t],o=e.schemaPath+e.util.getProperty(t),r=e.errSchemaPath+"/"+t,_=!e.opts.allErrors,p="data"+(s||""),u="errs__"+l,y=e.util.copy(e),c="";y.level++;var d="valid"+y.level,g={},v={},b=e.opts.ownProperties;for(k in i)if("__proto__"!=k){var m=i[k],w=Array.isArray(m)?v:g;w[k]=m}n+="var "+u+" = errors;";var h=e.errorPath;for(var k in n+="var missing"+l+";",v)if((w=v[k]).length){if(n+=" if ( "+p+e.util.getProperty(k)+" !== undefined ",b&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(k)+"') "),_){n+=" && ( ";var f=w;if(f)for(var S=-1,x=f.length-1;S<x;)T=f[S+=1],S&&(n+=" || "),n+=" ( ( "+(O=p+(j=e.util.getProperty(T)))+" === undefined ",b&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(T)+"') "),n+=") && (missing"+l+" = "+e.util.toQuotedString(e.opts.jsonPointers?T:j)+") ) ";n+=")) { ";var L="missing"+l,I="' + "+L+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(h,L,!0):h+" + "+L);var B=B||[];B.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(r)+" , params: { property: '"+e.util.escapeQuotes(k)+"', missingProperty: '"+I+"', depsCount: "+w.length+", deps: '"+e.util.escapeQuotes(1==w.length?w[0]:w.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==w.length?n+="property "+e.util.escapeQuotes(w[0]):n+="properties "+e.util.escapeQuotes(w.join(", ")),n+=" when property "+e.util.escapeQuotes(k)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var N=n;n=B.pop(),!e.compositeRule&&_?e.async?n+=" throw new ValidationError(["+N+"]); ":n+=" validate.errors = ["+N+"]; return false; ":n+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var z=w;if(z)for(var T,C=-1,P=z.length-1;C<P;){T=z[C+=1];var j=e.util.getProperty(T),O=(I=e.util.escapeQuotes(T),p+j);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(h,T,e.opts.jsonPointers)),n+=" if ( "+O+" === undefined ",b&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(T)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(r)+" , params: { property: '