UNPKG

149 kBJavaScriptView Raw
1module.exports=(()=>{var f={601:f=>{"use strict";f.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},8938:f=>{"use strict";f.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},1414:(f,e,n)=>{"use strict";var s=n(1645),l=n(2630),v=n(7246),r=n(7837),b=n(3600),g=n(9290),w=n(1665),j=n(6989),d=n(6057);f.exports=Ajv;Ajv.prototype.validate=validate;Ajv.prototype.compile=compile;Ajv.prototype.addSchema=addSchema;Ajv.prototype.addMetaSchema=addMetaSchema;Ajv.prototype.validateSchema=validateSchema;Ajv.prototype.getSchema=getSchema;Ajv.prototype.removeSchema=removeSchema;Ajv.prototype.addFormat=addFormat;Ajv.prototype.errorsText=errorsText;Ajv.prototype._addSchema=_addSchema;Ajv.prototype._compile=_compile;Ajv.prototype.compileAsync=n(75);var E=n(8093);Ajv.prototype.addKeyword=E.add;Ajv.prototype.getKeyword=E.get;Ajv.prototype.removeKeyword=E.remove;Ajv.prototype.validateKeyword=E.validate;var R=n(2718);Ajv.ValidationError=R.Validation;Ajv.MissingRefError=R.MissingRef;Ajv.$dataMetaSchema=j;var A="http://json-schema.org/draft-07/schema";var F=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var p=["/properties"];function Ajv(f){if(!(this instanceof Ajv))return new Ajv(f);f=this._opts=d.copy(f)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=g(f.format);this._cache=f.cache||new v;this._loadingSchemas={};this._compilations=[];this.RULES=w();this._getId=chooseGetId(f);f.loopRequired=f.loopRequired||Infinity;if(f.errorDataPath=="property")f._errorDataPathProperty=true;if(f.serialize===undefined)f.serialize=b;this._metaOpts=getMetaSchemaOptions(this);if(f.formats)addInitialFormats(this);if(f.keywords)addInitialKeywords(this);addDefaultMetaSchema(this);if(typeof f.meta=="object")this.addMetaSchema(f.meta);if(f.nullable)this.addKeyword("nullable",{metaSchema:{type:"boolean"}});addInitialSchemas(this)}function validate(f,e){var n;if(typeof f=="string"){n=this.getSchema(f);if(!n)throw new Error('no schema with key or ref "'+f+'"')}else{var s=this._addSchema(f);n=s.validate||this._compile(s)}var l=n(e);if(n.$async!==true)this.errors=n.errors;return l}function compile(f,e){var n=this._addSchema(f,undefined,e);return n.validate||this._compile(n)}function addSchema(f,e,n,s){if(Array.isArray(f)){for(var v=0;v<f.length;v++)this.addSchema(f[v],undefined,n,s);return this}var r=this._getId(f);if(r!==undefined&&typeof r!="string")throw new Error("schema id must be string");e=l.normalizeId(e||r);checkUnique(this,e);this._schemas[e]=this._addSchema(f,n,s,true);return this}function addMetaSchema(f,e,n){this.addSchema(f,e,n,true);return this}function validateSchema(f,e){var n=f.$schema;if(n!==undefined&&typeof n!="string")throw new Error("$schema must be a string");n=n||this._opts.defaultMeta||defaultMeta(this);if(!n){this.logger.warn("meta-schema not available");this.errors=null;return true}var s=this.validate(n,f);if(!s&&e){var l="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(l);else throw new Error(l)}return s}function defaultMeta(f){var e=f._opts.meta;f._opts.defaultMeta=typeof e=="object"?f._getId(e)||e:f.getSchema(A)?A:undefined;return f._opts.defaultMeta}function getSchema(f){var e=_getSchemaObj(this,f);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return _getSchemaFragment(this,f)}}function _getSchemaFragment(f,e){var n=l.schema.call(f,{schema:{}},e);if(n){var v=n.schema,b=n.root,g=n.baseId;var w=s.call(f,v,b,undefined,g);f._fragments[e]=new r({ref:e,fragment:true,schema:v,root:b,baseId:g,validate:w});return w}}function _getSchemaObj(f,e){e=l.normalizeId(e);return f._schemas[e]||f._refs[e]||f._fragments[e]}function removeSchema(f){if(f instanceof RegExp){_removeAllSchemas(this,this._schemas,f);_removeAllSchemas(this,this._refs,f);return this}switch(typeof f){case"undefined":_removeAllSchemas(this,this._schemas);_removeAllSchemas(this,this._refs);this._cache.clear();return this;case"string":var e=_getSchemaObj(this,f);if(e)this._cache.del(e.cacheKey);delete this._schemas[f];delete this._refs[f];return this;case"object":var n=this._opts.serialize;var s=n?n(f):f;this._cache.del(s);var v=this._getId(f);if(v){v=l.normalizeId(v);delete this._schemas[v];delete this._refs[v]}}return this}function _removeAllSchemas(f,e,n){for(var s in e){var l=e[s];if(!l.meta&&(!n||n.test(s))){f._cache.del(l.cacheKey);delete e[s]}}}function _addSchema(f,e,n,s){if(typeof f!="object"&&typeof f!="boolean")throw new Error("schema should be object or boolean");var v=this._opts.serialize;var b=v?v(f):f;var g=this._cache.get(b);if(g)return g;s=s||this._opts.addUsedSchema!==false;var w=l.normalizeId(this._getId(f));if(w&&s)checkUnique(this,w);var j=this._opts.validateSchema!==false&&!e;var d;if(j&&!(d=w&&w==l.normalizeId(f.$schema)))this.validateSchema(f,true);var E=l.ids.call(this,f);var R=new r({id:w,schema:f,localRefs:E,cacheKey:b,meta:n});if(w[0]!="#"&&s)this._refs[w]=R;this._cache.put(b,R);if(j&&d)this.validateSchema(f,true);return R}function _compile(f,e){if(f.compiling){f.validate=callValidate;callValidate.schema=f.schema;callValidate.errors=null;callValidate.root=e?e:callValidate;if(f.schema.$async===true)callValidate.$async=true;return callValidate}f.compiling=true;var n;if(f.meta){n=this._opts;this._opts=this._metaOpts}var l;try{l=s.call(this,f.schema,e,f.localRefs)}catch(e){delete f.validate;throw e}finally{f.compiling=false;if(f.meta)this._opts=n}f.validate=l;f.refs=l.refs;f.refVal=l.refVal;f.root=l.root;return l;function callValidate(){var e=f.validate;var n=e.apply(this,arguments);callValidate.errors=e.errors;return n}}function chooseGetId(f){switch(f.schemaId){case"auto":return _get$IdOrId;case"id":return _getId;default:return _get$Id}}function _getId(f){if(f.$id)this.logger.warn("schema $id ignored",f.$id);return f.id}function _get$Id(f){if(f.id)this.logger.warn("schema id ignored",f.id);return f.$id}function _get$IdOrId(f){if(f.$id&&f.id&&f.$id!=f.id)throw new Error("schema $id is different from id");return f.$id||f.id}function errorsText(f,e){f=f||this.errors;if(!f)return"No errors";e=e||{};var n=e.separator===undefined?", ":e.separator;var s=e.dataVar===undefined?"data":e.dataVar;var l="";for(var v=0;v<f.length;v++){var r=f[v];if(r)l+=s+r.dataPath+" "+r.message+n}return l.slice(0,-n.length)}function addFormat(f,e){if(typeof e=="string")e=new RegExp(e);this._formats[f]=e;return this}function addDefaultMetaSchema(f){var e;if(f._opts.$data){e=n(601);f.addMetaSchema(e,e.$id,true)}if(f._opts.meta===false)return;var s=n(8938);if(f._opts.$data)s=j(s,p);f.addMetaSchema(s,A,true);f._refs["http://json-schema.org/schema"]=A}function addInitialSchemas(f){var e=f._opts.schemas;if(!e)return;if(Array.isArray(e))f.addSchema(e);else for(var n in e)f.addSchema(e[n],n)}function addInitialFormats(f){for(var e in f._opts.formats){var n=f._opts.formats[e];f.addFormat(e,n)}}function addInitialKeywords(f){for(var e in f._opts.keywords){var n=f._opts.keywords[e];f.addKeyword(e,n)}}function checkUnique(f,e){if(f._schemas[e]||f._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function getMetaSchemaOptions(f){var e=d.copy(f._opts);for(var n=0;n<F.length;n++)delete e[F[n]];return e}function setLogger(f){var e=f._opts.logger;if(e===false){f.logger={log:noop,warn:noop,error:noop}}else{if(e===undefined)e=console;if(!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");f.logger=e}}function noop(){}},7246:f=>{"use strict";var e=f.exports=function Cache(){this._cache={}};e.prototype.put=function Cache_put(f,e){this._cache[f]=e};e.prototype.get=function Cache_get(f){return this._cache[f]};e.prototype.del=function Cache_del(f){delete this._cache[f]};e.prototype.clear=function Cache_clear(){this._cache={}}},75:(f,e,n)=>{"use strict";var s=n(2718).MissingRef;f.exports=compileAsync;function compileAsync(f,e,n){var l=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof e=="function"){n=e;e=undefined}var v=loadMetaSchemaOf(f).then(function(){var n=l._addSchema(f,undefined,e);return n.validate||_compileAsync(n)});if(n){v.then(function(f){n(null,f)},n)}return v;function loadMetaSchemaOf(f){var e=f.$schema;return e&&!l.getSchema(e)?compileAsync.call(l,{$ref:e},true):Promise.resolve()}function _compileAsync(f){try{return l._compile(f)}catch(f){if(f instanceof s)return loadMissingSchema(f);throw f}function loadMissingSchema(n){var s=n.missingSchema;if(added(s))throw new Error("Schema "+s+" is loaded but "+n.missingRef+" cannot be resolved");var v=l._loadingSchemas[s];if(!v){v=l._loadingSchemas[s]=l._opts.loadSchema(s);v.then(removePromise,removePromise)}return v.then(function(f){if(!added(s)){return loadMetaSchemaOf(f).then(function(){if(!added(s))l.addSchema(f,s,undefined,e)})}}).then(function(){return _compileAsync(f)});function removePromise(){delete l._loadingSchemas[s]}function added(f){return l._refs[f]||l._schemas[f]}}}}},2718:(f,e,n)=>{"use strict";var s=n(2630);f.exports={Validation:errorSubclass(ValidationError),MissingRef:errorSubclass(MissingRefError)};function ValidationError(f){this.message="validation failed";this.errors=f;this.ajv=this.validation=true}MissingRefError.message=function(f,e){return"can't resolve reference "+e+" from id "+f};function MissingRefError(f,e,n){this.message=n||MissingRefError.message(f,e);this.missingRef=s.url(f,e);this.missingSchema=s.normalizeId(s.fullPath(this.missingRef))}function errorSubclass(f){f.prototype=Object.create(Error.prototype);f.prototype.constructor=f;return f}},9290:(f,e,n)=>{"use strict";var s=n(6057);var l=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var v=[0,31,28,31,30,31,30,31,31,30,31,30,31];var r=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var b=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;var g=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var w=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var j=/^(?:(?:[^\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;var d=/^(?:(?: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;var E=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var R=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var A=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var F=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;f.exports=formats;function formats(f){f=f=="full"?"full":"fast";return s.copy(formats[f])}formats.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":j,url:d,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:b,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]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:E,"json-pointer":R,"json-pointer-uri-fragment":A,"relative-json-pointer":F};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":w,"uri-template":j,url:d,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:b,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]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:E,"json-pointer":R,"json-pointer-uri-fragment":A,"relative-json-pointer":F};function isLeapYear(f){return f%4===0&&(f%100!==0||f%400===0)}function date(f){var e=f.match(l);if(!e)return false;var n=+e[1];var s=+e[2];var r=+e[3];return s>=1&&s<=12&&r>=1&&r<=(s==2&&isLeapYear(n)?29:v[s])}function time(f,e){var n=f.match(r);if(!n)return false;var s=n[1];var l=n[2];var v=n[3];var b=n[5];return(s<=23&&l<=59&&v<=59||s==23&&l==59&&v==60)&&(!e||b)}var p=/t|\s/i;function date_time(f){var e=f.split(p);return e.length==2&&date(e[0])&&time(e[1],true)}var I=/\/|:/;function uri(f){return I.test(f)&&g.test(f)}var x=/[^\\]\\Z/;function regex(f){if(x.test(f))return false;try{new RegExp(f);return true}catch(f){return false}}},1645:(f,e,n)=>{"use strict";var s=n(2630),l=n(6057),v=n(2718),r=n(3600);var b=n(6131);var g=l.ucs2length;var w=n(3933);var j=v.Validation;f.exports=compile;function compile(f,e,n,d){var E=this,R=this._opts,A=[undefined],F={},p=[],I={},x=[],z={},U=[];e=e||{schema:f,refVal:A,refs:F};var N=checkCompiling.call(this,f,e,d);var Q=this._compilations[N.index];if(N.compiling)return Q.callValidate=callValidate;var q=this._formats;var O=this.RULES;try{var C=localCompile(f,e,n,d);Q.validate=C;var L=Q.callValidate;if(L){L.schema=C.schema;L.errors=null;L.refs=C.refs;L.refVal=C.refVal;L.root=C.root;L.$async=C.$async;if(R.sourceCode)L.source=C.source}return C}finally{endCompiling.call(this,f,e,d)}function callValidate(){var f=Q.validate;var e=f.apply(this,arguments);callValidate.errors=f.errors;return e}function localCompile(f,n,r,d){var I=!n||n&&n.schema==f;if(n.schema!=e.schema)return compile.call(E,f,n,r,d);var z=f.$async===true;var N=b({isTop:true,schema:f,isRoot:I,baseId:d,root:n,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:v.MissingRef,RULES:O,validate:b,util:l,resolve:s,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:R,formats:q,logger:E.logger,self:E});N=vars(A,refValCode)+vars(p,patternCode)+vars(x,defaultCode)+vars(U,customRuleCode)+N;if(R.processCode)N=R.processCode(N,f);var Q;try{var C=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",N);Q=C(E,O,q,e,A,x,U,w,g,j);A[0]=Q}catch(f){E.logger.error("Error compiling schema, function code:",N);throw f}Q.schema=f;Q.errors=null;Q.refs=F;Q.refVal=A;Q.root=I?Q:n;if(z)Q.$async=true;if(R.sourceCode===true){Q.source={code:N,patterns:p,defaults:x}}return Q}function resolveRef(f,l,v){l=s.url(f,l);var r=F[l];var b,g;if(r!==undefined){b=A[r];g="refVal["+r+"]";return resolvedRef(b,g)}if(!v&&e.refs){var w=e.refs[l];if(w!==undefined){b=e.refVal[w];g=addLocalRef(l,b);return resolvedRef(b,g)}}g=addLocalRef(l);var j=s.call(E,localCompile,e,l);if(j===undefined){var d=n&&n[l];if(d){j=s.inlineRef(d,R.inlineRefs)?d:compile.call(E,d,e,n,f)}}if(j===undefined){removeLocalRef(l)}else{replaceLocalRef(l,j);return resolvedRef(j,g)}}function addLocalRef(f,e){var n=A.length;A[n]=e;F[f]=n;return"refVal"+n}function removeLocalRef(f){delete F[f]}function replaceLocalRef(f,e){var n=F[f];A[n]=e}function resolvedRef(f,e){return typeof f=="object"||typeof f=="boolean"?{code:e,schema:f,inline:true}:{code:e,$async:f&&!!f.$async}}function usePattern(f){var e=I[f];if(e===undefined){e=I[f]=p.length;p[e]=f}return"pattern"+e}function useDefault(f){switch(typeof f){case"boolean":case"number":return""+f;case"string":return l.toQuotedString(f);case"object":if(f===null)return"null";var e=r(f);var n=z[e];if(n===undefined){n=z[e]=x.length;x[n]=f}return"default"+n}}function useCustomRule(f,e,n,s){if(E._opts.validateSchema!==false){var l=f.definition.dependencies;if(l&&!l.every(function(f){return Object.prototype.hasOwnProperty.call(n,f)}))throw new Error("parent schema must have all required keywords: "+l.join(","));var v=f.definition.validateSchema;if(v){var r=v(e);if(!r){var b="keyword schema is invalid: "+E.errorsText(v.errors);if(E._opts.validateSchema=="log")E.logger.error(b);else throw new Error(b)}}}var g=f.definition.compile,w=f.definition.inline,j=f.definition.macro;var d;if(g){d=g.call(E,e,n,s)}else if(j){d=j.call(E,e,n,s);if(R.validateSchema!==false)E.validateSchema(d,true)}else if(w){d=w.call(E,s,f.keyword,e,n)}else{d=f.definition.validate;if(!d)return}if(d===undefined)throw new Error('custom keyword "'+f.keyword+'"failed to compile');var A=U.length;U[A]=d;return{code:"customRule"+A,validate:d}}}function checkCompiling(f,e,n){var s=compIndex.call(this,f,e,n);if(s>=0)return{index:s,compiling:true};s=this._compilations.length;this._compilations[s]={schema:f,root:e,baseId:n};return{index:s,compiling:false}}function endCompiling(f,e,n){var s=compIndex.call(this,f,e,n);if(s>=0)this._compilations.splice(s,1)}function compIndex(f,e,n){for(var s=0;s<this._compilations.length;s++){var l=this._compilations[s];if(l.schema==f&&l.root==e&&l.baseId==n)return s}return-1}function patternCode(f,e){return"var pattern"+f+" = new RegExp("+l.toQuotedString(e[f])+");"}function defaultCode(f){return"var default"+f+" = defaults["+f+"];"}function refValCode(f,e){return e[f]===undefined?"":"var refVal"+f+" = refVal["+f+"];"}function customRuleCode(f){return"var customRule"+f+" = customRules["+f+"];"}function vars(f,e){if(!f.length)return"";var n="";for(var s=0;s<f.length;s++)n+=e(s,f);return n}},2630:(f,e,n)=>{"use strict";var s=n(4007),l=n(3933),v=n(6057),r=n(7837),b=n(2437);f.exports=resolve;resolve.normalizeId=normalizeId;resolve.fullPath=getFullPath;resolve.url=resolveUrl;resolve.ids=resolveIds;resolve.inlineRef=inlineRef;resolve.schema=resolveSchema;function resolve(f,e,n){var s=this._refs[n];if(typeof s=="string"){if(this._refs[s])s=this._refs[s];else return resolve.call(this,f,e,s)}s=s||this._schemas[n];if(s instanceof r){return inlineRef(s.schema,this._opts.inlineRefs)?s.schema:s.validate||this._compile(s)}var l=resolveSchema.call(this,e,n);var v,b,g;if(l){v=l.schema;e=l.root;g=l.baseId}if(v instanceof r){b=v.validate||f.call(this,v.schema,e,undefined,g)}else if(v!==undefined){b=inlineRef(v,this._opts.inlineRefs)?v:f.call(this,v,e,undefined,g)}return b}function resolveSchema(f,e){var n=s.parse(e),l=_getFullPath(n),v=getFullPath(this._getId(f.schema));if(Object.keys(f.schema).length===0||l!==v){var b=normalizeId(l);var g=this._refs[b];if(typeof g=="string"){return resolveRecursive.call(this,f,g,n)}else if(g instanceof r){if(!g.validate)this._compile(g);f=g}else{g=this._schemas[b];if(g instanceof r){if(!g.validate)this._compile(g);if(b==normalizeId(e))return{schema:g,root:f,baseId:v};f=g}else{return}}if(!f.schema)return;v=getFullPath(this._getId(f.schema))}return getJsonPointer.call(this,n,v,f.schema,f)}function resolveRecursive(f,e,n){var s=resolveSchema.call(this,f,e);if(s){var l=s.schema;var v=s.baseId;f=s.root;var r=this._getId(l);if(r)v=resolveUrl(v,r);return getJsonPointer.call(this,n,v,l,f)}}var g=v.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(f,e,n,s){f.fragment=f.fragment||"";if(f.fragment.slice(0,1)!="/")return;var l=f.fragment.split("/");for(var r=1;r<l.length;r++){var b=l[r];if(b){b=v.unescapeFragment(b);n=n[b];if(n===undefined)break;var w;if(!g[b]){w=this._getId(n);if(w)e=resolveUrl(e,w);if(n.$ref){var j=resolveUrl(e,n.$ref);var d=resolveSchema.call(this,s,j);if(d){n=d.schema;s=d.root;e=d.baseId}}}}}if(n!==undefined&&n!==s.schema)return{schema:n,root:s,baseId:e}}var w=v.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function inlineRef(f,e){if(e===false)return false;if(e===undefined||e===true)return checkNoRef(f);else if(e)return countKeys(f)<=e}function checkNoRef(f){var e;if(Array.isArray(f)){for(var n=0;n<f.length;n++){e=f[n];if(typeof e=="object"&&!checkNoRef(e))return false}}else{for(var s in f){if(s=="$ref")return false;e=f[s];if(typeof e=="object"&&!checkNoRef(e))return false}}return true}function countKeys(f){var e=0,n;if(Array.isArray(f)){for(var s=0;s<f.length;s++){n=f[s];if(typeof n=="object")e+=countKeys(n);if(e==Infinity)return Infinity}}else{for(var l in f){if(l=="$ref")return Infinity;if(w[l]){e++}else{n=f[l];if(typeof n=="object")e+=countKeys(n)+1;if(e==Infinity)return Infinity}}}return e}function getFullPath(f,e){if(e!==false)f=normalizeId(f);var n=s.parse(f);return _getFullPath(n)}function _getFullPath(f){return s.serialize(f).split("#")[0]+"#"}var j=/#\/?$/;function normalizeId(f){return f?f.replace(j,""):""}function resolveUrl(f,e){e=normalizeId(e);return s.resolve(f,e)}function resolveIds(f){var e=normalizeId(this._getId(f));var n={"":e};var r={"":getFullPath(e,false)};var g={};var w=this;b(f,{allKeys:true},function(f,e,b,j,d,E,R){if(e==="")return;var A=w._getId(f);var F=n[j];var p=r[j]+"/"+d;if(R!==undefined)p+="/"+(typeof R=="number"?R:v.escapeFragment(R));if(typeof A=="string"){A=F=normalizeId(F?s.resolve(F,A):A);var I=w._refs[A];if(typeof I=="string")I=w._refs[I];if(I&&I.schema){if(!l(f,I.schema))throw new Error('id "'+A+'" resolves to more than one schema')}else if(A!=normalizeId(p)){if(A[0]=="#"){if(g[A]&&!l(f,g[A]))throw new Error('id "'+A+'" resolves to more than one schema');g[A]=f}else{w._refs[A]=p}}}n[e]=F;r[e]=p});return g}},1665:(f,e,n)=>{"use strict";var s=n(4124),l=n(6057).toHash;f.exports=function rules(){var f=[{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"]}];var e=["type","$comment"];var n=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var v=["number","integer","string","array","object","boolean","null"];f.all=l(e);f.types=l(v);f.forEach(function(n){n.rules=n.rules.map(function(n){var l;if(typeof n=="object"){var v=Object.keys(n)[0];l=n[v];n=v;l.forEach(function(n){e.push(n);f.all[n]=true})}e.push(n);var r=f.all[n]={keyword:n,code:s[n],implements:l};return r});f.all.$comment={keyword:"$comment",code:s.$comment};if(n.type)f.types[n.type]=n});f.keywords=l(e.concat(n));f.custom={};return f}},7837:(f,e,n)=>{"use strict";var s=n(6057);f.exports=SchemaObject;function SchemaObject(f){s.copy(f,this)}},9652:f=>{"use strict";f.exports=function ucs2length(f){var e=0,n=f.length,s=0,l;while(s<n){e++;l=f.charCodeAt(s++);if(l>=55296&&l<=56319&&s<n){l=f.charCodeAt(s);if((l&64512)==56320)s++}}return e}},6057:(f,e,n)=>{"use strict";f.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:n(3933),ucs2length:n(9652),varOccurences:varOccurences,varReplace:varReplace,schemaHasRules:schemaHasRules,schemaHasRulesExcept:schemaHasRulesExcept,schemaUnknownRules:schemaUnknownRules,toQuotedString:toQuotedString,getPathExpr:getPathExpr,getPath:getPath,getData:getData,unescapeFragment:unescapeFragment,unescapeJsonPointer:unescapeJsonPointer,escapeFragment:escapeFragment,escapeJsonPointer:escapeJsonPointer};function copy(f,e){e=e||{};for(var n in f)e[n]=f[n];return e}function checkDataType(f,e,n,s){var l=s?" !== ":" === ",v=s?" || ":" && ",r=s?"!":"",b=s?"":"!";switch(f){case"null":return e+l+"null";case"array":return r+"Array.isArray("+e+")";case"object":return"("+r+e+v+"typeof "+e+l+'"object"'+v+b+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+l+'"number"'+v+b+"("+e+" % 1)"+v+e+l+e+(n?v+r+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+l+'"'+f+'"'+(n?v+r+"isFinite("+e+")":"")+")";default:return"typeof "+e+l+'"'+f+'"'}}function checkDataTypes(f,e,n){switch(f.length){case 1:return checkDataType(f[0],e,n,true);default:var s="";var l=toHash(f);if(l.array&&l.object){s=l.null?"(":"(!"+e+" || ";s+="typeof "+e+' !== "object")';delete l.null;delete l.array;delete l.object}if(l.number)delete l.integer;for(var v in l)s+=(s?" && ":"")+checkDataType(v,e,n,true);return s}}var s=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(f,e){if(Array.isArray(e)){var n=[];for(var l=0;l<e.length;l++){var v=e[l];if(s[v])n[n.length]=v;else if(f==="array"&&v==="array")n[n.length]=v}if(n.length)return n}else if(s[e]){return[e]}else if(f==="array"&&e==="array"){return["array"]}}function toHash(f){var e={};for(var n=0;n<f.length;n++)e[f[n]]=true;return e}var l=/^[a-z$_][a-z$_0-9]*$/i;var v=/'|\\/g;function getProperty(f){return typeof f=="number"?"["+f+"]":l.test(f)?"."+f:"['"+escapeQuotes(f)+"']"}function escapeQuotes(f){return f.replace(v,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function varOccurences(f,e){e+="[^0-9]";var n=f.match(new RegExp(e,"g"));return n?n.length:0}function varReplace(f,e,n){e+="([^0-9])";n=n.replace(/\$/g,"$$$$");return f.replace(new RegExp(e,"g"),n+"$1")}function schemaHasRules(f,e){if(typeof f=="boolean")return!f;for(var n in f)if(e[n])return true}function schemaHasRulesExcept(f,e,n){if(typeof f=="boolean")return!f&&n!="not";for(var s in f)if(s!=n&&e[s])return true}function schemaUnknownRules(f,e){if(typeof f=="boolean")return;for(var n in f)if(!e[n])return n}function toQuotedString(f){return"'"+escapeQuotes(f)+"'"}function getPathExpr(f,e,n,s){var l=n?"'/' + "+e+(s?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):s?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return joinPaths(f,l)}function getPath(f,e,n){var s=n?toQuotedString("/"+escapeJsonPointer(e)):toQuotedString(getProperty(e));return joinPaths(f,s)}var r=/^\/(?:[^~]|~0|~1)*$/;var b=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(f,e,n){var s,l,v,g;if(f==="")return"rootData";if(f[0]=="/"){if(!r.test(f))throw new Error("Invalid JSON-pointer: "+f);l=f;v="rootData"}else{g=f.match(b);if(!g)throw new Error("Invalid JSON-pointer: "+f);s=+g[1];l=g[2];if(l=="#"){if(s>=e)throw new Error("Cannot access property/index "+s+" levels up, current level is "+e);return n[e-s]}if(s>e)throw new Error("Cannot access data "+s+" levels up, current level is "+e);v="data"+(e-s||"");if(!l)return v}var w=v;var j=l.split("/");for(var d=0;d<j.length;d++){var E=j[d];if(E){v+=getProperty(unescapeJsonPointer(E));w+=" && "+v}}return w}function joinPaths(f,e){if(f=='""')return e;return(f+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function unescapeFragment(f){return unescapeJsonPointer(decodeURIComponent(f))}function escapeFragment(f){return encodeURIComponent(escapeJsonPointer(f))}function escapeJsonPointer(f){return f.replace(/~/g,"~0").replace(/\//g,"~1")}function unescapeJsonPointer(f){return f.replace(/~1/g,"/").replace(/~0/g,"~")}},6989:f=>{"use strict";var e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];f.exports=function(f,n){for(var s=0;s<n.length;s++){f=JSON.parse(JSON.stringify(f));var l=n[s].split("/");var v=f;var r;for(r=1;r<l.length;r++)v=v[l[r]];for(r=0;r<e.length;r++){var b=e[r];var g=v[b];if(g){v[b]={anyOf:[g,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}}}}return f}},5533:(f,e,n)=>{"use strict";var s=n(8938);f.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:s.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:s.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"}]}}}},3711:f=>{"use strict";f.exports=function generate__limit(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j;var d="data"+(v||"");var E=f.opts.$data&&r&&r.$data,R;if(E){s+=" var schema"+l+" = "+f.util.getData(r.$data,v,f.dataPathArr)+"; ";R="schema"+l}else{R=r}var A=e=="maximum",F=A?"exclusiveMaximum":"exclusiveMinimum",p=f.schema[F],I=f.opts.$data&&p&&p.$data,x=A?"<":">",z=A?">":"<",j=undefined;if(!(E||typeof r=="number"||r===undefined)){throw new Error(e+" must be number")}if(!(I||p===undefined||typeof p=="number"||typeof p=="boolean")){throw new Error(F+" must be number or boolean")}if(I){var U=f.util.getData(p.$data,v,f.dataPathArr),N="exclusive"+l,Q="exclType"+l,q="exclIsNumber"+l,O="op"+l,C="' + "+O+" + '";s+=" var schemaExcl"+l+" = "+U+"; ";U="schemaExcl"+l;s+=" var "+N+"; var "+Q+" = typeof "+U+"; if ("+Q+" != 'boolean' && "+Q+" != 'undefined' && "+Q+" != 'number') { ";var j=F;var L=L||[];L.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+(j||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: {} ";if(f.opts.messages!==false){s+=" , message: '"+F+" should be boolean' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+d+" "}s+=" } "}else{s+=" {} "}var J=s;s=L.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+J+"]); "}else{s+=" validate.errors = ["+J+"]; return false; "}}else{s+=" var err = "+J+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } else if ( ";if(E){s+=" ("+R+" !== undefined && typeof "+R+" != 'number') || "}s+=" "+Q+" == 'number' ? ( ("+N+" = "+R+" === undefined || "+U+" "+x+"= "+R+") ? "+d+" "+z+"= "+U+" : "+d+" "+z+" "+R+" ) : ( ("+N+" = "+U+" === true) ? "+d+" "+z+"= "+R+" : "+d+" "+z+" "+R+" ) || "+d+" !== "+d+") { var op"+l+" = "+N+" ? '"+x+"' : '"+x+"='; ";if(r===undefined){j=F;g=f.errSchemaPath+"/"+F;R=U;E=I}}else{var q=typeof p=="number",C=x;if(q&&E){var O="'"+C+"'";s+=" if ( ";if(E){s+=" ("+R+" !== undefined && typeof "+R+" != 'number') || "}s+=" ( "+R+" === undefined || "+p+" "+x+"= "+R+" ? "+d+" "+z+"= "+p+" : "+d+" "+z+" "+R+" ) || "+d+" !== "+d+") { "}else{if(q&&r===undefined){N=true;j=F;g=f.errSchemaPath+"/"+F;R=p;z+="="}else{if(q)R=Math[A?"min":"max"](p,r);if(p===(q?R:true)){N=true;j=F;g=f.errSchemaPath+"/"+F;z+="="}else{N=false;C+="="}}var O="'"+C+"'";s+=" if ( ";if(E){s+=" ("+R+" !== undefined && typeof "+R+" != 'number') || "}s+=" "+d+" "+z+" "+R+" || "+d+" !== "+d+") { "}}j=j||e;var L=L||[];L.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+(j||"_limit")+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { comparison: "+O+", limit: "+R+", exclusive: "+N+" } ";if(f.opts.messages!==false){s+=" , message: 'should be "+C+" ";if(E){s+="' + "+R}else{s+=""+R+"'"}}if(f.opts.verbose){s+=" , schema: ";if(E){s+="validate.schema"+b}else{s+=""+r}s+=" , parentSchema: validate.schema"+f.schemaPath+" , data: "+d+" "}s+=" } "}else{s+=" {} "}var J=s;s=L.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+J+"]); "}else{s+=" validate.errors = ["+J+"]; return false; "}}else{s+=" var err = "+J+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } ";if(w){s+=" else { "}return s}},5675:f=>{"use strict";f.exports=function generate__limitItems(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j;var d="data"+(v||"");var E=f.opts.$data&&r&&r.$data,R;if(E){s+=" var schema"+l+" = "+f.util.getData(r.$data,v,f.dataPathArr)+"; ";R="schema"+l}else{R=r}if(!(E||typeof r=="number")){throw new Error(e+" must be number")}var A=e=="maxItems"?">":"<";s+="if ( ";if(E){s+=" ("+R+" !== undefined && typeof "+R+" != 'number') || "}s+=" "+d+".length "+A+" "+R+") { ";var j=e;var F=F||[];F.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+(j||"_limitItems")+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { limit: "+R+" } ";if(f.opts.messages!==false){s+=" , message: 'should NOT have ";if(e=="maxItems"){s+="more"}else{s+="fewer"}s+=" than ";if(E){s+="' + "+R+" + '"}else{s+=""+r}s+=" items' "}if(f.opts.verbose){s+=" , schema: ";if(E){s+="validate.schema"+b}else{s+=""+r}s+=" , parentSchema: validate.schema"+f.schemaPath+" , data: "+d+" "}s+=" } "}else{s+=" {} "}var p=s;s=F.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+p+"]); "}else{s+=" validate.errors = ["+p+"]; return false; "}}else{s+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(w){s+=" else { "}return s}},6051:f=>{"use strict";f.exports=function generate__limitLength(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j;var d="data"+(v||"");var E=f.opts.$data&&r&&r.$data,R;if(E){s+=" var schema"+l+" = "+f.util.getData(r.$data,v,f.dataPathArr)+"; ";R="schema"+l}else{R=r}if(!(E||typeof r=="number")){throw new Error(e+" must be number")}var A=e=="maxLength"?">":"<";s+="if ( ";if(E){s+=" ("+R+" !== undefined && typeof "+R+" != 'number') || "}if(f.opts.unicode===false){s+=" "+d+".length "}else{s+=" ucs2length("+d+") "}s+=" "+A+" "+R+") { ";var j=e;var F=F||[];F.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+(j||"_limitLength")+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { limit: "+R+" } ";if(f.opts.messages!==false){s+=" , message: 'should NOT be ";if(e=="maxLength"){s+="longer"}else{s+="shorter"}s+=" than ";if(E){s+="' + "+R+" + '"}else{s+=""+r}s+=" characters' "}if(f.opts.verbose){s+=" , schema: ";if(E){s+="validate.schema"+b}else{s+=""+r}s+=" , parentSchema: validate.schema"+f.schemaPath+" , data: "+d+" "}s+=" } "}else{s+=" {} "}var p=s;s=F.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+p+"]); "}else{s+=" validate.errors = ["+p+"]; return false; "}}else{s+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(w){s+=" else { "}return s}},7043:f=>{"use strict";f.exports=function generate__limitProperties(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j;var d="data"+(v||"");var E=f.opts.$data&&r&&r.$data,R;if(E){s+=" var schema"+l+" = "+f.util.getData(r.$data,v,f.dataPathArr)+"; ";R="schema"+l}else{R=r}if(!(E||typeof r=="number")){throw new Error(e+" must be number")}var A=e=="maxProperties"?">":"<";s+="if ( ";if(E){s+=" ("+R+" !== undefined && typeof "+R+" != 'number') || "}s+=" Object.keys("+d+").length "+A+" "+R+") { ";var j=e;var F=F||[];F.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+(j||"_limitProperties")+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { limit: "+R+" } ";if(f.opts.messages!==false){s+=" , message: 'should NOT have ";if(e=="maxProperties"){s+="more"}else{s+="fewer"}s+=" than ";if(E){s+="' + "+R+" + '"}else{s+=""+r}s+=" properties' "}if(f.opts.verbose){s+=" , schema: ";if(E){s+="validate.schema"+b}else{s+=""+r}s+=" , parentSchema: validate.schema"+f.schemaPath+" , data: "+d+" "}s+=" } "}else{s+=" {} "}var p=s;s=F.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+p+"]); "}else{s+=" validate.errors = ["+p+"]; return false; "}}else{s+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(w){s+=" else { "}return s}},3639:f=>{"use strict";f.exports=function generate_allOf(f,e,n){var s=" ";var l=f.schema[e];var v=f.schemaPath+f.util.getProperty(e);var r=f.errSchemaPath+"/"+e;var b=!f.opts.allErrors;var g=f.util.copy(f);var w="";g.level++;var j="valid"+g.level;var d=g.baseId,E=true;var R=l;if(R){var A,F=-1,p=R.length-1;while(F<p){A=R[F+=1];if(f.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===false:f.util.schemaHasRules(A,f.RULES.all)){E=false;g.schema=A;g.schemaPath=v+"["+F+"]";g.errSchemaPath=r+"/"+F;s+=" "+f.validate(g)+" ";g.baseId=d;if(b){s+=" if ("+j+") { ";w+="}"}}}}if(b){if(E){s+=" if (true) { "}else{s+=" "+w.slice(0,-1)+" "}}return s}},1256:f=>{"use strict";f.exports=function generate_anyOf(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d="valid"+l;var E="errs__"+l;var R=f.util.copy(f);var A="";R.level++;var F="valid"+R.level;var p=r.every(function(e){return f.opts.strictKeywords?typeof e=="object"&&Object.keys(e).length>0||e===false:f.util.schemaHasRules(e,f.RULES.all)});if(p){var I=R.baseId;s+=" var "+E+" = errors; var "+d+" = false; ";var x=f.compositeRule;f.compositeRule=R.compositeRule=true;var z=r;if(z){var U,N=-1,Q=z.length-1;while(N<Q){U=z[N+=1];R.schema=U;R.schemaPath=b+"["+N+"]";R.errSchemaPath=g+"/"+N;s+=" "+f.validate(R)+" ";R.baseId=I;s+=" "+d+" = "+d+" || "+F+"; if (!"+d+") { ";A+="}"}}f.compositeRule=R.compositeRule=x;s+=" "+A+" if (!"+d+") { var err = ";if(f.createErrors!==false){s+=" { keyword: '"+"anyOf"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: {} ";if(f.opts.messages!==false){s+=" , message: 'should match some schema in anyOf' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(vErrors); "}else{s+=" validate.errors = vErrors; return false; "}}s+=" } else { errors = "+E+"; if (vErrors !== null) { if ("+E+") vErrors.length = "+E+"; else vErrors = null; } ";if(f.opts.allErrors){s+=" } "}}else{if(w){s+=" if (true) { "}}return s}},2660:f=>{"use strict";f.exports=function generate_comment(f,e,n){var s=" ";var l=f.schema[e];var v=f.errSchemaPath+"/"+e;var r=!f.opts.allErrors;var b=f.util.toQuotedString(l);if(f.opts.$comment===true){s+=" console.log("+b+");"}else if(typeof f.opts.$comment=="function"){s+=" self._opts.$comment("+b+", "+f.util.toQuotedString(v)+", validate.root.schema);"}return s}},184:f=>{"use strict";f.exports=function generate_const(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d="valid"+l;var E=f.opts.$data&&r&&r.$data,R;if(E){s+=" var schema"+l+" = "+f.util.getData(r.$data,v,f.dataPathArr)+"; ";R="schema"+l}else{R=r}if(!E){s+=" var schema"+l+" = validate.schema"+b+";"}s+="var "+d+" = equal("+j+", schema"+l+"); if (!"+d+") { ";var A=A||[];A.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"const"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { allowedValue: schema"+l+" } ";if(f.opts.messages!==false){s+=" , message: 'should be equal to constant' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}var F=s;s=A.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+F+"]); "}else{s+=" validate.errors = ["+F+"]; return false; "}}else{s+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" }";if(w){s+=" else { "}return s}},7419:f=>{"use strict";f.exports=function generate_contains(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d="valid"+l;var E="errs__"+l;var R=f.util.copy(f);var A="";R.level++;var F="valid"+R.level;var p="i"+l,I=R.dataLevel=f.dataLevel+1,x="data"+I,z=f.baseId,U=f.opts.strictKeywords?typeof r=="object"&&Object.keys(r).length>0||r===false:f.util.schemaHasRules(r,f.RULES.all);s+="var "+E+" = errors;var "+d+";";if(U){var N=f.compositeRule;f.compositeRule=R.compositeRule=true;R.schema=r;R.schemaPath=b;R.errSchemaPath=g;s+=" var "+F+" = false; for (var "+p+" = 0; "+p+" < "+j+".length; "+p+"++) { ";R.errorPath=f.util.getPathExpr(f.errorPath,p,f.opts.jsonPointers,true);var Q=j+"["+p+"]";R.dataPathArr[I]=p;var q=f.validate(R);R.baseId=z;if(f.util.varOccurences(q,x)<2){s+=" "+f.util.varReplace(q,x,Q)+" "}else{s+=" var "+x+" = "+Q+"; "+q+" "}s+=" if ("+F+") break; } ";f.compositeRule=R.compositeRule=N;s+=" "+A+" if (!"+F+") {"}else{s+=" if ("+j+".length == 0) {"}var O=O||[];O.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: {} ";if(f.opts.messages!==false){s+=" , message: 'should contain a valid item' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}var C=s;s=O.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+C+"]); "}else{s+=" validate.errors = ["+C+"]; return false; "}}else{s+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } else { ";if(U){s+=" errors = "+E+"; if (vErrors !== null) { if ("+E+") vErrors.length = "+E+"; else vErrors = null; } "}if(f.opts.allErrors){s+=" } "}return s}},7921:f=>{"use strict";f.exports=function generate_custom(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j;var d="data"+(v||"");var E="valid"+l;var R="errs__"+l;var A=f.opts.$data&&r&&r.$data,F;if(A){s+=" var schema"+l+" = "+f.util.getData(r.$data,v,f.dataPathArr)+"; ";F="schema"+l}else{F=r}var p=this,I="definition"+l,x=p.definition,z="";var U,N,Q,q,O;if(A&&x.$data){O="keywordValidate"+l;var C=x.validateSchema;s+=" var "+I+" = RULES.custom['"+e+"'].definition; var "+O+" = "+I+".validate;"}else{q=f.useCustomRule(p,r,f.schema,f);if(!q)return;F="validate.schema"+b;O=q.code;U=x.compile;N=x.inline;Q=x.macro}var L=O+".errors",J="i"+l,T="ruleErr"+l,G=x.async;if(G&&!f.async)throw new Error("async keyword in sync schema");if(!(N||Q)){s+=""+L+" = null;"}s+="var "+R+" = errors;var "+E+";";if(A&&x.$data){z+="}";s+=" if ("+F+" === undefined) { "+E+" = true; } else { ";if(C){z+="}";s+=" "+E+" = "+I+".validateSchema("+F+"); if ("+E+") { "}}if(N){if(x.statements){s+=" "+q.validate+" "}else{s+=" "+E+" = "+q.validate+"; "}}else if(Q){var H=f.util.copy(f);var z="";H.level++;var X="valid"+H.level;H.schema=q.validate;H.schemaPath="";var M=f.compositeRule;f.compositeRule=H.compositeRule=true;var Y=f.validate(H).replace(/validate\.schema/g,O);f.compositeRule=H.compositeRule=M;s+=" "+Y}else{var W=W||[];W.push(s);s="";s+=" "+O+".call( ";if(f.opts.passContext){s+="this"}else{s+="self"}if(U||x.schema===false){s+=" , "+d+" "}else{s+=" , "+F+" , "+d+" , validate.schema"+f.schemaPath+" "}s+=" , (dataPath || '')";if(f.errorPath!='""'){s+=" + "+f.errorPath}var B=v?"data"+(v-1||""):"parentData",c=v?f.dataPathArr[v]:"parentDataProperty";s+=" , "+B+" , "+c+" , rootData ) ";var Z=s;s=W.pop();if(x.errors===false){s+=" "+E+" = ";if(G){s+="await "}s+=""+Z+"; "}else{if(G){L="customErrors"+l;s+=" var "+L+" = null; try { "+E+" = await "+Z+"; } catch (e) { "+E+" = false; if (e instanceof ValidationError) "+L+" = e.errors; else throw e; } "}else{s+=" "+L+" = null; "+E+" = "+Z+"; "}}}if(x.modifying){s+=" if ("+B+") "+d+" = "+B+"["+c+"];"}s+=""+z;if(x.valid){if(w){s+=" if (true) { "}}else{s+=" if ( ";if(x.valid===undefined){s+=" !";if(Q){s+=""+X}else{s+=""+E}}else{s+=" "+!x.valid+" "}s+=") { ";j=p.keyword;var W=W||[];W.push(s);s="";var W=W||[];W.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+(j||"custom")+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { keyword: '"+p.keyword+"' } ";if(f.opts.messages!==false){s+=" , message: 'should pass \""+p.keyword+"\" keyword validation' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+d+" "}s+=" } "}else{s+=" {} "}var D=s;s=W.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+D+"]); "}else{s+=" validate.errors = ["+D+"]; return false; "}}else{s+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var K=s;s=W.pop();if(N){if(x.errors){if(x.errors!="full"){s+=" for (var "+J+"="+R+"; "+J+"<errors; "+J+"++) { var "+T+" = vErrors["+J+"]; if ("+T+".dataPath === undefined) "+T+".dataPath = (dataPath || '') + "+f.errorPath+"; if ("+T+".schemaPath === undefined) { "+T+'.schemaPath = "'+g+'"; } ';if(f.opts.verbose){s+=" "+T+".schema = "+F+"; "+T+".data = "+d+"; "}s+=" } "}}else{if(x.errors===false){s+=" "+K+" "}else{s+=" if ("+R+" == errors) { "+K+" } else { for (var "+J+"="+R+"; "+J+"<errors; "+J+"++) { var "+T+" = vErrors["+J+"]; if ("+T+".dataPath === undefined) "+T+".dataPath = (dataPath || '') + "+f.errorPath+"; if ("+T+".schemaPath === undefined) { "+T+'.schemaPath = "'+g+'"; } ';if(f.opts.verbose){s+=" "+T+".schema = "+F+"; "+T+".data = "+d+"; "}s+=" } } "}}}else if(Q){s+=" var err = ";if(f.createErrors!==false){s+=" { keyword: '"+(j||"custom")+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { keyword: '"+p.keyword+"' } ";if(f.opts.messages!==false){s+=" , message: 'should pass \""+p.keyword+"\" keyword validation' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+d+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(vErrors); "}else{s+=" validate.errors = vErrors; return false; "}}}else{if(x.errors===false){s+=" "+K+" "}else{s+=" if (Array.isArray("+L+")) { if (vErrors === null) vErrors = "+L+"; else vErrors = vErrors.concat("+L+"); errors = vErrors.length; for (var "+J+"="+R+"; "+J+"<errors; "+J+"++) { var "+T+" = vErrors["+J+"]; if ("+T+".dataPath === undefined) "+T+".dataPath = (dataPath || '') + "+f.errorPath+"; "+T+'.schemaPath = "'+g+'"; ';if(f.opts.verbose){s+=" "+T+".schema = "+F+"; "+T+".data = "+d+"; "}s+=" } } else { "+K+" } "}}s+=" } ";if(w){s+=" else { "}}return s}},7299:f=>{"use strict";f.exports=function generate_dependencies(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d="errs__"+l;var E=f.util.copy(f);var R="";E.level++;var A="valid"+E.level;var F={},p={},I=f.opts.ownProperties;for(N in r){if(N=="__proto__")continue;var x=r[N];var z=Array.isArray(x)?p:F;z[N]=x}s+="var "+d+" = errors;";var U=f.errorPath;s+="var missing"+l+";";for(var N in p){z=p[N];if(z.length){s+=" if ( "+j+f.util.getProperty(N)+" !== undefined ";if(I){s+=" && Object.prototype.hasOwnProperty.call("+j+", '"+f.util.escapeQuotes(N)+"') "}if(w){s+=" && ( ";var Q=z;if(Q){var q,O=-1,C=Q.length-1;while(O<C){q=Q[O+=1];if(O){s+=" || "}var L=f.util.getProperty(q),J=j+L;s+=" ( ( "+J+" === undefined ";if(I){s+=" || ! Object.prototype.hasOwnProperty.call("+j+", '"+f.util.escapeQuotes(q)+"') "}s+=") && (missing"+l+" = "+f.util.toQuotedString(f.opts.jsonPointers?q:L)+") ) "}}s+=")) { ";var T="missing"+l,G="' + "+T+" + '";if(f.opts._errorDataPathProperty){f.errorPath=f.opts.jsonPointers?f.util.getPathExpr(U,T,true):U+" + "+T}var H=H||[];H.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"dependencies"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { property: '"+f.util.escapeQuotes(N)+"', missingProperty: '"+G+"', depsCount: "+z.length+", deps: '"+f.util.escapeQuotes(z.length==1?z[0]:z.join(", "))+"' } ";if(f.opts.messages!==false){s+=" , message: 'should have ";if(z.length==1){s+="property "+f.util.escapeQuotes(z[0])}else{s+="properties "+f.util.escapeQuotes(z.join(", "))}s+=" when property "+f.util.escapeQuotes(N)+" is present' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}var X=s;s=H.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+X+"]); "}else{s+=" validate.errors = ["+X+"]; return false; "}}else{s+=" var err = "+X+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{s+=" ) { ";var M=z;if(M){var q,Y=-1,W=M.length-1;while(Y<W){q=M[Y+=1];var L=f.util.getProperty(q),G=f.util.escapeQuotes(q),J=j+L;if(f.opts._errorDataPathProperty){f.errorPath=f.util.getPath(U,q,f.opts.jsonPointers)}s+=" if ( "+J+" === undefined ";if(I){s+=" || ! Object.prototype.hasOwnProperty.call("+j+", '"+f.util.escapeQuotes(q)+"') "}s+=") { var err = ";if(f.createErrors!==false){s+=" { keyword: '"+"dependencies"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { property: '"+f.util.escapeQuotes(N)+"', missingProperty: '"+G+"', depsCount: "+z.length+", deps: '"+f.util.escapeQuotes(z.length==1?z[0]:z.join(", "))+"' } ";if(f.opts.messages!==false){s+=" , message: 'should have ";if(z.length==1){s+="property "+f.util.escapeQuotes(z[0])}else{s+="properties "+f.util.escapeQuotes(z.join(", "))}s+=" when property "+f.util.escapeQuotes(N)+" is present' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}}s+=" } ";if(w){R+="}";s+=" else { "}}}f.errorPath=U;var B=E.baseId;for(var N in F){var x=F[N];if(f.opts.strictKeywords?typeof x=="object"&&Object.keys(x).length>0||x===false:f.util.schemaHasRules(x,f.RULES.all)){s+=" "+A+" = true; if ( "+j+f.util.getProperty(N)+" !== undefined ";if(I){s+=" && Object.prototype.hasOwnProperty.call("+j+", '"+f.util.escapeQuotes(N)+"') "}s+=") { ";E.schema=x;E.schemaPath=b+f.util.getProperty(N);E.errSchemaPath=g+"/"+f.util.escapeFragment(N);s+=" "+f.validate(E)+" ";E.baseId=B;s+=" } ";if(w){s+=" if ("+A+") { ";R+="}"}}}if(w){s+=" "+R+" if ("+d+" == errors) {"}return s}},9795:f=>{"use strict";f.exports=function generate_enum(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d="valid"+l;var E=f.opts.$data&&r&&r.$data,R;if(E){s+=" var schema"+l+" = "+f.util.getData(r.$data,v,f.dataPathArr)+"; ";R="schema"+l}else{R=r}var A="i"+l,F="schema"+l;if(!E){s+=" var "+F+" = validate.schema"+b+";"}s+="var "+d+";";if(E){s+=" if (schema"+l+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+l+")) "+d+" = false; else {"}s+=""+d+" = false;for (var "+A+"=0; "+A+"<"+F+".length; "+A+"++) if (equal("+j+", "+F+"["+A+"])) { "+d+" = true; break; }";if(E){s+=" } "}s+=" if (!"+d+") { ";var p=p||[];p.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { allowedValues: schema"+l+" } ";if(f.opts.messages!==false){s+=" , message: 'should be equal to one of the allowed values' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}var I=s;s=p.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+I+"]); "}else{s+=" validate.errors = ["+I+"]; return false; "}}else{s+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" }";if(w){s+=" else { "}return s}},5801:f=>{"use strict";f.exports=function generate_format(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");if(f.opts.format===false){if(w){s+=" if (true) { "}return s}var d=f.opts.$data&&r&&r.$data,E;if(d){s+=" var schema"+l+" = "+f.util.getData(r.$data,v,f.dataPathArr)+"; ";E="schema"+l}else{E=r}var R=f.opts.unknownFormats,A=Array.isArray(R);if(d){var F="format"+l,p="isObject"+l,I="formatType"+l;s+=" var "+F+" = formats["+E+"]; var "+p+" = typeof "+F+" == 'object' && !("+F+" instanceof RegExp) && "+F+".validate; var "+I+" = "+p+" && "+F+".type || 'string'; if ("+p+") { ";if(f.async){s+=" var async"+l+" = "+F+".async; "}s+=" "+F+" = "+F+".validate; } if ( ";if(d){s+=" ("+E+" !== undefined && typeof "+E+" != 'string') || "}s+=" (";if(R!="ignore"){s+=" ("+E+" && !"+F+" ";if(A){s+=" && self._opts.unknownFormats.indexOf("+E+") == -1 "}s+=") || "}s+=" ("+F+" && "+I+" == '"+n+"' && !(typeof "+F+" == 'function' ? ";if(f.async){s+=" (async"+l+" ? await "+F+"("+j+") : "+F+"("+j+")) "}else{s+=" "+F+"("+j+") "}s+=" : "+F+".test("+j+"))))) {"}else{var F=f.formats[r];if(!F){if(R=="ignore"){f.logger.warn('unknown format "'+r+'" ignored in schema at path "'+f.errSchemaPath+'"');if(w){s+=" if (true) { "}return s}else if(A&&R.indexOf(r)>=0){if(w){s+=" if (true) { "}return s}else{throw new Error('unknown format "'+r+'" is used in schema at path "'+f.errSchemaPath+'"')}}var p=typeof F=="object"&&!(F instanceof RegExp)&&F.validate;var I=p&&F.type||"string";if(p){var x=F.async===true;F=F.validate}if(I!=n){if(w){s+=" if (true) { "}return s}if(x){if(!f.async)throw new Error("async format in sync schema");var z="formats"+f.util.getProperty(r)+".validate";s+=" if (!(await "+z+"("+j+"))) { "}else{s+=" if (! ";var z="formats"+f.util.getProperty(r);if(p)z+=".validate";if(typeof F=="function"){s+=" "+z+"("+j+") "}else{s+=" "+z+".test("+j+") "}s+=") { "}}var U=U||[];U.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { format: ";if(d){s+=""+E}else{s+=""+f.util.toQuotedString(r)}s+=" } ";if(f.opts.messages!==false){s+=" , message: 'should match format \"";if(d){s+="' + "+E+" + '"}else{s+=""+f.util.escapeQuotes(r)}s+="\"' "}if(f.opts.verbose){s+=" , schema: ";if(d){s+="validate.schema"+b}else{s+=""+f.util.toQuotedString(r)}s+=" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}var N=s;s=U.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+N+"]); "}else{s+=" validate.errors = ["+N+"]; return false; "}}else{s+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } ";if(w){s+=" else { "}return s}},4962:f=>{"use strict";f.exports=function generate_if(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d="valid"+l;var E="errs__"+l;var R=f.util.copy(f);R.level++;var A="valid"+R.level;var F=f.schema["then"],p=f.schema["else"],I=F!==undefined&&(f.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===false:f.util.schemaHasRules(F,f.RULES.all)),x=p!==undefined&&(f.opts.strictKeywords?typeof p=="object"&&Object.keys(p).length>0||p===false:f.util.schemaHasRules(p,f.RULES.all)),z=R.baseId;if(I||x){var U;R.createErrors=false;R.schema=r;R.schemaPath=b;R.errSchemaPath=g;s+=" var "+E+" = errors; var "+d+" = true; ";var N=f.compositeRule;f.compositeRule=R.compositeRule=true;s+=" "+f.validate(R)+" ";R.baseId=z;R.createErrors=true;s+=" errors = "+E+"; if (vErrors !== null) { if ("+E+") vErrors.length = "+E+"; else vErrors = null; } ";f.compositeRule=R.compositeRule=N;if(I){s+=" if ("+A+") { ";R.schema=f.schema["then"];R.schemaPath=f.schemaPath+".then";R.errSchemaPath=f.errSchemaPath+"/then";s+=" "+f.validate(R)+" ";R.baseId=z;s+=" "+d+" = "+A+"; ";if(I&&x){U="ifClause"+l;s+=" var "+U+" = 'then'; "}else{U="'then'"}s+=" } ";if(x){s+=" else { "}}else{s+=" if (!"+A+") { "}if(x){R.schema=f.schema["else"];R.schemaPath=f.schemaPath+".else";R.errSchemaPath=f.errSchemaPath+"/else";s+=" "+f.validate(R)+" ";R.baseId=z;s+=" "+d+" = "+A+"; ";if(I&&x){U="ifClause"+l;s+=" var "+U+" = 'else'; "}else{U="'else'"}s+=" } "}s+=" if (!"+d+") { var err = ";if(f.createErrors!==false){s+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { failingKeyword: "+U+" } ";if(f.opts.messages!==false){s+=" , message: 'should match \"' + "+U+" + '\" schema' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(vErrors); "}else{s+=" validate.errors = vErrors; return false; "}}s+=" } ";if(w){s+=" else { "}}else{if(w){s+=" if (true) { "}}return s}},4124:(f,e,n)=>{"use strict";f.exports={$ref:n(5746),allOf:n(3639),anyOf:n(1256),$comment:n(2660),const:n(184),contains:n(7419),dependencies:n(7299),enum:n(9795),format:n(5801),if:n(4962),items:n(9623),maximum:n(3711),minimum:n(3711),maxItems:n(5675),minItems:n(5675),maxLength:n(6051),minLength:n(6051),maxProperties:n(7043),minProperties:n(7043),multipleOf:n(9251),not:n(7739),oneOf:n(6857),pattern:n(8099),properties:n(9438),propertyNames:n(3466),required:n(8430),uniqueItems:n(2207),validate:n(6131)}},9623:f=>{"use strict";f.exports=function generate_items(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d="valid"+l;var E="errs__"+l;var R=f.util.copy(f);var A="";R.level++;var F="valid"+R.level;var p="i"+l,I=R.dataLevel=f.dataLevel+1,x="data"+I,z=f.baseId;s+="var "+E+" = errors;var "+d+";";if(Array.isArray(r)){var U=f.schema.additionalItems;if(U===false){s+=" "+d+" = "+j+".length <= "+r.length+"; ";var N=g;g=f.errSchemaPath+"/additionalItems";s+=" if (!"+d+") { ";var Q=Q||[];Q.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { limit: "+r.length+" } ";if(f.opts.messages!==false){s+=" , message: 'should NOT have more than "+r.length+" items' "}if(f.opts.verbose){s+=" , schema: false , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}var q=s;s=Q.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+q+"]); "}else{s+=" validate.errors = ["+q+"]; return false; "}}else{s+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } ";g=N;if(w){A+="}";s+=" else { "}}var O=r;if(O){var C,L=-1,J=O.length-1;while(L<J){C=O[L+=1];if(f.opts.strictKeywords?typeof C=="object"&&Object.keys(C).length>0||C===false:f.util.schemaHasRules(C,f.RULES.all)){s+=" "+F+" = true; if ("+j+".length > "+L+") { ";var T=j+"["+L+"]";R.schema=C;R.schemaPath=b+"["+L+"]";R.errSchemaPath=g+"/"+L;R.errorPath=f.util.getPathExpr(f.errorPath,L,f.opts.jsonPointers,true);R.dataPathArr[I]=L;var G=f.validate(R);R.baseId=z;if(f.util.varOccurences(G,x)<2){s+=" "+f.util.varReplace(G,x,T)+" "}else{s+=" var "+x+" = "+T+"; "+G+" "}s+=" } ";if(w){s+=" if ("+F+") { ";A+="}"}}}}if(typeof U=="object"&&(f.opts.strictKeywords?typeof U=="object"&&Object.keys(U).length>0||U===false:f.util.schemaHasRules(U,f.RULES.all))){R.schema=U;R.schemaPath=f.schemaPath+".additionalItems";R.errSchemaPath=f.errSchemaPath+"/additionalItems";s+=" "+F+" = true; if ("+j+".length > "+r.length+") { for (var "+p+" = "+r.length+"; "+p+" < "+j+".length; "+p+"++) { ";R.errorPath=f.util.getPathExpr(f.errorPath,p,f.opts.jsonPointers,true);var T=j+"["+p+"]";R.dataPathArr[I]=p;var G=f.validate(R);R.baseId=z;if(f.util.varOccurences(G,x)<2){s+=" "+f.util.varReplace(G,x,T)+" "}else{s+=" var "+x+" = "+T+"; "+G+" "}if(w){s+=" if (!"+F+") break; "}s+=" } } ";if(w){s+=" if ("+F+") { ";A+="}"}}}else if(f.opts.strictKeywords?typeof r=="object"&&Object.keys(r).length>0||r===false:f.util.schemaHasRules(r,f.RULES.all)){R.schema=r;R.schemaPath=b;R.errSchemaPath=g;s+=" for (var "+p+" = "+0+"; "+p+" < "+j+".length; "+p+"++) { ";R.errorPath=f.util.getPathExpr(f.errorPath,p,f.opts.jsonPointers,true);var T=j+"["+p+"]";R.dataPathArr[I]=p;var G=f.validate(R);R.baseId=z;if(f.util.varOccurences(G,x)<2){s+=" "+f.util.varReplace(G,x,T)+" "}else{s+=" var "+x+" = "+T+"; "+G+" "}if(w){s+=" if (!"+F+") break; "}s+=" }"}if(w){s+=" "+A+" if ("+E+" == errors) {"}return s}},9251:f=>{"use strict";f.exports=function generate_multipleOf(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d=f.opts.$data&&r&&r.$data,E;if(d){s+=" var schema"+l+" = "+f.util.getData(r.$data,v,f.dataPathArr)+"; ";E="schema"+l}else{E=r}if(!(d||typeof r=="number")){throw new Error(e+" must be number")}s+="var division"+l+";if (";if(d){s+=" "+E+" !== undefined && ( typeof "+E+" != 'number' || "}s+=" (division"+l+" = "+j+" / "+E+", ";if(f.opts.multipleOfPrecision){s+=" Math.abs(Math.round(division"+l+") - division"+l+") > 1e-"+f.opts.multipleOfPrecision+" "}else{s+=" division"+l+" !== parseInt(division"+l+") "}s+=" ) ";if(d){s+=" ) "}s+=" ) { ";var R=R||[];R.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { multipleOf: "+E+" } ";if(f.opts.messages!==false){s+=" , message: 'should be multiple of ";if(d){s+="' + "+E}else{s+=""+E+"'"}}if(f.opts.verbose){s+=" , schema: ";if(d){s+="validate.schema"+b}else{s+=""+r}s+=" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}var A=s;s=R.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+A+"]); "}else{s+=" validate.errors = ["+A+"]; return false; "}}else{s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(w){s+=" else { "}return s}},7739:f=>{"use strict";f.exports=function generate_not(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d="errs__"+l;var E=f.util.copy(f);E.level++;var R="valid"+E.level;if(f.opts.strictKeywords?typeof r=="object"&&Object.keys(r).length>0||r===false:f.util.schemaHasRules(r,f.RULES.all)){E.schema=r;E.schemaPath=b;E.errSchemaPath=g;s+=" var "+d+" = errors; ";var A=f.compositeRule;f.compositeRule=E.compositeRule=true;E.createErrors=false;var F;if(E.opts.allErrors){F=E.opts.allErrors;E.opts.allErrors=false}s+=" "+f.validate(E)+" ";E.createErrors=true;if(F)E.opts.allErrors=F;f.compositeRule=E.compositeRule=A;s+=" if ("+R+") { ";var p=p||[];p.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: {} ";if(f.opts.messages!==false){s+=" , message: 'should NOT be valid' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}var I=s;s=p.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+I+"]); "}else{s+=" validate.errors = ["+I+"]; return false; "}}else{s+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ";if(f.opts.allErrors){s+=" } "}}else{s+=" var err = ";if(f.createErrors!==false){s+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: {} ";if(f.opts.messages!==false){s+=" , message: 'should NOT be valid' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(w){s+=" if (false) { "}}return s}},6857:f=>{"use strict";f.exports=function generate_oneOf(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d="valid"+l;var E="errs__"+l;var R=f.util.copy(f);var A="";R.level++;var F="valid"+R.level;var p=R.baseId,I="prevValid"+l,x="passingSchemas"+l;s+="var "+E+" = errors , "+I+" = false , "+d+" = false , "+x+" = null; ";var z=f.compositeRule;f.compositeRule=R.compositeRule=true;var U=r;if(U){var N,Q=-1,q=U.length-1;while(Q<q){N=U[Q+=1];if(f.opts.strictKeywords?typeof N=="object"&&Object.keys(N).length>0||N===false:f.util.schemaHasRules(N,f.RULES.all)){R.schema=N;R.schemaPath=b+"["+Q+"]";R.errSchemaPath=g+"/"+Q;s+=" "+f.validate(R)+" ";R.baseId=p}else{s+=" var "+F+" = true; "}if(Q){s+=" if ("+F+" && "+I+") { "+d+" = false; "+x+" = ["+x+", "+Q+"]; } else { ";A+="}"}s+=" if ("+F+") { "+d+" = "+I+" = true; "+x+" = "+Q+"; }"}}f.compositeRule=R.compositeRule=z;s+=""+A+"if (!"+d+") { var err = ";if(f.createErrors!==false){s+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { passingSchemas: "+x+" } ";if(f.opts.messages!==false){s+=" , message: 'should match exactly one schema in oneOf' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(vErrors); "}else{s+=" validate.errors = vErrors; return false; "}}s+="} else { errors = "+E+"; if (vErrors !== null) { if ("+E+") vErrors.length = "+E+"; else vErrors = null; }";if(f.opts.allErrors){s+=" } "}return s}},8099:f=>{"use strict";f.exports=function generate_pattern(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d=f.opts.$data&&r&&r.$data,E;if(d){s+=" var schema"+l+" = "+f.util.getData(r.$data,v,f.dataPathArr)+"; ";E="schema"+l}else{E=r}var R=d?"(new RegExp("+E+"))":f.usePattern(r);s+="if ( ";if(d){s+=" ("+E+" !== undefined && typeof "+E+" != 'string') || "}s+=" !"+R+".test("+j+") ) { ";var A=A||[];A.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { pattern: ";if(d){s+=""+E}else{s+=""+f.util.toQuotedString(r)}s+=" } ";if(f.opts.messages!==false){s+=" , message: 'should match pattern \"";if(d){s+="' + "+E+" + '"}else{s+=""+f.util.escapeQuotes(r)}s+="\"' "}if(f.opts.verbose){s+=" , schema: ";if(d){s+="validate.schema"+b}else{s+=""+f.util.toQuotedString(r)}s+=" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}var F=s;s=A.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+F+"]); "}else{s+=" validate.errors = ["+F+"]; return false; "}}else{s+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(w){s+=" else { "}return s}},9438:f=>{"use strict";f.exports=function generate_properties(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d="errs__"+l;var E=f.util.copy(f);var R="";E.level++;var A="valid"+E.level;var F="key"+l,p="idx"+l,I=E.dataLevel=f.dataLevel+1,x="data"+I,z="dataProperties"+l;var U=Object.keys(r||{}).filter(notProto),N=f.schema.patternProperties||{},Q=Object.keys(N).filter(notProto),q=f.schema.additionalProperties,O=U.length||Q.length,C=q===false,L=typeof q=="object"&&Object.keys(q).length,J=f.opts.removeAdditional,T=C||L||J,G=f.opts.ownProperties,H=f.baseId;var X=f.schema.required;if(X&&!(f.opts.$data&&X.$data)&&X.length<f.opts.loopRequired){var M=f.util.toHash(X)}function notProto(f){return f!=="__proto__"}s+="var "+d+" = errors;var "+A+" = true;";if(G){s+=" var "+z+" = undefined;"}if(T){if(G){s+=" "+z+" = "+z+" || Object.keys("+j+"); for (var "+p+"=0; "+p+"<"+z+".length; "+p+"++) { var "+F+" = "+z+"["+p+"]; "}else{s+=" for (var "+F+" in "+j+") { "}if(O){s+=" var isAdditional"+l+" = !(false ";if(U.length){if(U.length>8){s+=" || validate.schema"+b+".hasOwnProperty("+F+") "}else{var Y=U;if(Y){var W,B=-1,c=Y.length-1;while(B<c){W=Y[B+=1];s+=" || "+F+" == "+f.util.toQuotedString(W)+" "}}}}if(Q.length){var Z=Q;if(Z){var D,K=-1,V=Z.length-1;while(K<V){D=Z[K+=1];s+=" || "+f.usePattern(D)+".test("+F+") "}}}s+=" ); if (isAdditional"+l+") { "}if(J=="all"){s+=" delete "+j+"["+F+"]; "}else{var y=f.errorPath;var k="' + "+F+" + '";if(f.opts._errorDataPathProperty){f.errorPath=f.util.getPathExpr(f.errorPath,F,f.opts.jsonPointers)}if(C){if(J){s+=" delete "+j+"["+F+"]; "}else{s+=" "+A+" = false; ";var h=g;g=f.errSchemaPath+"/additionalProperties";var a=a||[];a.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"additionalProperties"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { additionalProperty: '"+k+"' } ";if(f.opts.messages!==false){s+=" , message: '";if(f.opts._errorDataPathProperty){s+="is an invalid additional property"}else{s+="should NOT have additional properties"}s+="' "}if(f.opts.verbose){s+=" , schema: false , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}var S=s;s=a.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+S+"]); "}else{s+=" validate.errors = ["+S+"]; return false; "}}else{s+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}g=h;if(w){s+=" break; "}}}else if(L){if(J=="failing"){s+=" var "+d+" = errors; ";var m=f.compositeRule;f.compositeRule=E.compositeRule=true;E.schema=q;E.schemaPath=f.schemaPath+".additionalProperties";E.errSchemaPath=f.errSchemaPath+"/additionalProperties";E.errorPath=f.opts._errorDataPathProperty?f.errorPath:f.util.getPathExpr(f.errorPath,F,f.opts.jsonPointers);var P=j+"["+F+"]";E.dataPathArr[I]=F;var i=f.validate(E);E.baseId=H;if(f.util.varOccurences(i,x)<2){s+=" "+f.util.varReplace(i,x,P)+" "}else{s+=" var "+x+" = "+P+"; "+i+" "}s+=" if (!"+A+") { errors = "+d+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+j+"["+F+"]; } ";f.compositeRule=E.compositeRule=m}else{E.schema=q;E.schemaPath=f.schemaPath+".additionalProperties";E.errSchemaPath=f.errSchemaPath+"/additionalProperties";E.errorPath=f.opts._errorDataPathProperty?f.errorPath:f.util.getPathExpr(f.errorPath,F,f.opts.jsonPointers);var P=j+"["+F+"]";E.dataPathArr[I]=F;var i=f.validate(E);E.baseId=H;if(f.util.varOccurences(i,x)<2){s+=" "+f.util.varReplace(i,x,P)+" "}else{s+=" var "+x+" = "+P+"; "+i+" "}if(w){s+=" if (!"+A+") break; "}}}f.errorPath=y}if(O){s+=" } "}s+=" } ";if(w){s+=" if ("+A+") { ";R+="}"}}var _=f.opts.useDefaults&&!f.compositeRule;if(U.length){var u=U;if(u){var W,o=-1,$=u.length-1;while(o<$){W=u[o+=1];var t=r[W];if(f.opts.strictKeywords?typeof t=="object"&&Object.keys(t).length>0||t===false:f.util.schemaHasRules(t,f.RULES.all)){var ff=f.util.getProperty(W),P=j+ff,ef=_&&t.default!==undefined;E.schema=t;E.schemaPath=b+ff;E.errSchemaPath=g+"/"+f.util.escapeFragment(W);E.errorPath=f.util.getPath(f.errorPath,W,f.opts.jsonPointers);E.dataPathArr[I]=f.util.toQuotedString(W);var i=f.validate(E);E.baseId=H;if(f.util.varOccurences(i,x)<2){i=f.util.varReplace(i,x,P);var nf=P}else{var nf=x;s+=" var "+x+" = "+P+"; "}if(ef){s+=" "+i+" "}else{if(M&&M[W]){s+=" if ( "+nf+" === undefined ";if(G){s+=" || ! Object.prototype.hasOwnProperty.call("+j+", '"+f.util.escapeQuotes(W)+"') "}s+=") { "+A+" = false; ";var y=f.errorPath,h=g,sf=f.util.escapeQuotes(W);if(f.opts._errorDataPathProperty){f.errorPath=f.util.getPath(y,W,f.opts.jsonPointers)}g=f.errSchemaPath+"/required";var a=a||[];a.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { missingProperty: '"+sf+"' } ";if(f.opts.messages!==false){s+=" , message: '";if(f.opts._errorDataPathProperty){s+="is a required property"}else{s+="should have required property \\'"+sf+"\\'"}s+="' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}var S=s;s=a.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+S+"]); "}else{s+=" validate.errors = ["+S+"]; return false; "}}else{s+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}g=h;f.errorPath=y;s+=" } else { "}else{if(w){s+=" if ( "+nf+" === undefined ";if(G){s+=" || ! Object.prototype.hasOwnProperty.call("+j+", '"+f.util.escapeQuotes(W)+"') "}s+=") { "+A+" = true; } else { "}else{s+=" if ("+nf+" !== undefined ";if(G){s+=" && Object.prototype.hasOwnProperty.call("+j+", '"+f.util.escapeQuotes(W)+"') "}s+=" ) { "}}s+=" "+i+" } "}}if(w){s+=" if ("+A+") { ";R+="}"}}}}if(Q.length){var lf=Q;if(lf){var D,vf=-1,rf=lf.length-1;while(vf<rf){D=lf[vf+=1];var t=N[D];if(f.opts.strictKeywords?typeof t=="object"&&Object.keys(t).length>0||t===false:f.util.schemaHasRules(t,f.RULES.all)){E.schema=t;E.schemaPath=f.schemaPath+".patternProperties"+f.util.getProperty(D);E.errSchemaPath=f.errSchemaPath+"/patternProperties/"+f.util.escapeFragment(D);if(G){s+=" "+z+" = "+z+" || Object.keys("+j+"); for (var "+p+"=0; "+p+"<"+z+".length; "+p+"++) { var "+F+" = "+z+"["+p+"]; "}else{s+=" for (var "+F+" in "+j+") { "}s+=" if ("+f.usePattern(D)+".test("+F+")) { ";E.errorPath=f.util.getPathExpr(f.errorPath,F,f.opts.jsonPointers);var P=j+"["+F+"]";E.dataPathArr[I]=F;var i=f.validate(E);E.baseId=H;if(f.util.varOccurences(i,x)<2){s+=" "+f.util.varReplace(i,x,P)+" "}else{s+=" var "+x+" = "+P+"; "+i+" "}if(w){s+=" if (!"+A+") break; "}s+=" } ";if(w){s+=" else "+A+" = true; "}s+=" } ";if(w){s+=" if ("+A+") { ";R+="}"}}}}}if(w){s+=" "+R+" if ("+d+" == errors) {"}return s}},3466:f=>{"use strict";f.exports=function generate_propertyNames(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d="errs__"+l;var E=f.util.copy(f);var R="";E.level++;var A="valid"+E.level;s+="var "+d+" = errors;";if(f.opts.strictKeywords?typeof r=="object"&&Object.keys(r).length>0||r===false:f.util.schemaHasRules(r,f.RULES.all)){E.schema=r;E.schemaPath=b;E.errSchemaPath=g;var F="key"+l,p="idx"+l,I="i"+l,x="' + "+F+" + '",z=E.dataLevel=f.dataLevel+1,U="data"+z,N="dataProperties"+l,Q=f.opts.ownProperties,q=f.baseId;if(Q){s+=" var "+N+" = undefined; "}if(Q){s+=" "+N+" = "+N+" || Object.keys("+j+"); for (var "+p+"=0; "+p+"<"+N+".length; "+p+"++) { var "+F+" = "+N+"["+p+"]; "}else{s+=" for (var "+F+" in "+j+") { "}s+=" var startErrs"+l+" = errors; ";var O=F;var C=f.compositeRule;f.compositeRule=E.compositeRule=true;var L=f.validate(E);E.baseId=q;if(f.util.varOccurences(L,U)<2){s+=" "+f.util.varReplace(L,U,O)+" "}else{s+=" var "+U+" = "+O+"; "+L+" "}f.compositeRule=E.compositeRule=C;s+=" if (!"+A+") { for (var "+I+"=startErrs"+l+"; "+I+"<errors; "+I+"++) { vErrors["+I+"].propertyName = "+F+"; } var err = ";if(f.createErrors!==false){s+=" { keyword: '"+"propertyNames"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { propertyName: '"+x+"' } ";if(f.opts.messages!==false){s+=" , message: 'property name \\'"+x+"\\' is invalid' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(vErrors); "}else{s+=" validate.errors = vErrors; return false; "}}if(w){s+=" break; "}s+=" } }"}if(w){s+=" "+R+" if ("+d+" == errors) {"}return s}},5746:f=>{"use strict";f.exports=function generate_ref(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.errSchemaPath+"/"+e;var g=!f.opts.allErrors;var w="data"+(v||"");var j="valid"+l;var d,E;if(r=="#"||r=="#/"){if(f.isRoot){d=f.async;E="validate"}else{d=f.root.schema.$async===true;E="root.refVal[0]"}}else{var R=f.resolveRef(f.baseId,r,f.isRoot);if(R===undefined){var A=f.MissingRefError.message(f.baseId,r);if(f.opts.missingRefs=="fail"){f.logger.error(A);var F=F||[];F.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"$ref"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(b)+" , params: { ref: '"+f.util.escapeQuotes(r)+"' } ";if(f.opts.messages!==false){s+=" , message: 'can\\'t resolve reference "+f.util.escapeQuotes(r)+"' "}if(f.opts.verbose){s+=" , schema: "+f.util.toQuotedString(r)+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+w+" "}s+=" } "}else{s+=" {} "}var p=s;s=F.pop();if(!f.compositeRule&&g){if(f.async){s+=" throw new ValidationError(["+p+"]); "}else{s+=" validate.errors = ["+p+"]; return false; "}}else{s+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}if(g){s+=" if (false) { "}}else if(f.opts.missingRefs=="ignore"){f.logger.warn(A);if(g){s+=" if (true) { "}}else{throw new f.MissingRefError(f.baseId,r,A)}}else if(R.inline){var I=f.util.copy(f);I.level++;var x="valid"+I.level;I.schema=R.schema;I.schemaPath="";I.errSchemaPath=r;var z=f.validate(I).replace(/validate\.schema/g,R.code);s+=" "+z+" ";if(g){s+=" if ("+x+") { "}}else{d=R.$async===true||f.async&&R.$async!==false;E=R.code}}if(E){var F=F||[];F.push(s);s="";if(f.opts.passContext){s+=" "+E+".call(this, "}else{s+=" "+E+"( "}s+=" "+w+", (dataPath || '')";if(f.errorPath!='""'){s+=" + "+f.errorPath}var U=v?"data"+(v-1||""):"parentData",N=v?f.dataPathArr[v]:"parentDataProperty";s+=" , "+U+" , "+N+", rootData) ";var Q=s;s=F.pop();if(d){if(!f.async)throw new Error("async schema referenced by sync schema");if(g){s+=" var "+j+"; "}s+=" try { await "+Q+"; ";if(g){s+=" "+j+" = true; "}s+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ";if(g){s+=" "+j+" = false; "}s+=" } ";if(g){s+=" if ("+j+") { "}}else{s+=" if (!"+Q+") { if (vErrors === null) vErrors = "+E+".errors; else vErrors = vErrors.concat("+E+".errors); errors = vErrors.length; } ";if(g){s+=" else { "}}}return s}},8430:f=>{"use strict";f.exports=function generate_required(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d="valid"+l;var E=f.opts.$data&&r&&r.$data,R;if(E){s+=" var schema"+l+" = "+f.util.getData(r.$data,v,f.dataPathArr)+"; ";R="schema"+l}else{R=r}var A="schema"+l;if(!E){if(r.length<f.opts.loopRequired&&f.schema.properties&&Object.keys(f.schema.properties).length){var F=[];var p=r;if(p){var I,x=-1,z=p.length-1;while(x<z){I=p[x+=1];var U=f.schema.properties[I];if(!(U&&(f.opts.strictKeywords?typeof U=="object"&&Object.keys(U).length>0||U===false:f.util.schemaHasRules(U,f.RULES.all)))){F[F.length]=I}}}}else{var F=r}}if(E||F.length){var N=f.errorPath,Q=E||F.length>=f.opts.loopRequired,q=f.opts.ownProperties;if(w){s+=" var missing"+l+"; ";if(Q){if(!E){s+=" var "+A+" = validate.schema"+b+"; "}var O="i"+l,C="schema"+l+"["+O+"]",L="' + "+C+" + '";if(f.opts._errorDataPathProperty){f.errorPath=f.util.getPathExpr(N,C,f.opts.jsonPointers)}s+=" var "+d+" = true; ";if(E){s+=" if (schema"+l+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+l+")) "+d+" = false; else {"}s+=" for (var "+O+" = 0; "+O+" < "+A+".length; "+O+"++) { "+d+" = "+j+"["+A+"["+O+"]] !== undefined ";if(q){s+=" && Object.prototype.hasOwnProperty.call("+j+", "+A+"["+O+"]) "}s+="; if (!"+d+") break; } ";if(E){s+=" } "}s+=" if (!"+d+") { ";var J=J||[];J.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { missingProperty: '"+L+"' } ";if(f.opts.messages!==false){s+=" , message: '";if(f.opts._errorDataPathProperty){s+="is a required property"}else{s+="should have required property \\'"+L+"\\'"}s+="' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}var T=s;s=J.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+T+"]); "}else{s+=" validate.errors = ["+T+"]; return false; "}}else{s+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } else { "}else{s+=" if ( ";var G=F;if(G){var H,O=-1,X=G.length-1;while(O<X){H=G[O+=1];if(O){s+=" || "}var M=f.util.getProperty(H),Y=j+M;s+=" ( ( "+Y+" === undefined ";if(q){s+=" || ! Object.prototype.hasOwnProperty.call("+j+", '"+f.util.escapeQuotes(H)+"') "}s+=") && (missing"+l+" = "+f.util.toQuotedString(f.opts.jsonPointers?H:M)+") ) "}}s+=") { ";var C="missing"+l,L="' + "+C+" + '";if(f.opts._errorDataPathProperty){f.errorPath=f.opts.jsonPointers?f.util.getPathExpr(N,C,true):N+" + "+C}var J=J||[];J.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { missingProperty: '"+L+"' } ";if(f.opts.messages!==false){s+=" , message: '";if(f.opts._errorDataPathProperty){s+="is a required property"}else{s+="should have required property \\'"+L+"\\'"}s+="' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}var T=s;s=J.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+T+"]); "}else{s+=" validate.errors = ["+T+"]; return false; "}}else{s+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } else { "}}else{if(Q){if(!E){s+=" var "+A+" = validate.schema"+b+"; "}var O="i"+l,C="schema"+l+"["+O+"]",L="' + "+C+" + '";if(f.opts._errorDataPathProperty){f.errorPath=f.util.getPathExpr(N,C,f.opts.jsonPointers)}if(E){s+=" if ("+A+" && !Array.isArray("+A+")) { var err = ";if(f.createErrors!==false){s+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { missingProperty: '"+L+"' } ";if(f.opts.messages!==false){s+=" , message: '";if(f.opts._errorDataPathProperty){s+="is a required property"}else{s+="should have required property \\'"+L+"\\'"}s+="' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+A+" !== undefined) { "}s+=" for (var "+O+" = 0; "+O+" < "+A+".length; "+O+"++) { if ("+j+"["+A+"["+O+"]] === undefined ";if(q){s+=" || ! Object.prototype.hasOwnProperty.call("+j+", "+A+"["+O+"]) "}s+=") { var err = ";if(f.createErrors!==false){s+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { missingProperty: '"+L+"' } ";if(f.opts.messages!==false){s+=" , message: '";if(f.opts._errorDataPathProperty){s+="is a required property"}else{s+="should have required property \\'"+L+"\\'"}s+="' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ";if(E){s+=" } "}}else{var W=F;if(W){var H,B=-1,c=W.length-1;while(B<c){H=W[B+=1];var M=f.util.getProperty(H),L=f.util.escapeQuotes(H),Y=j+M;if(f.opts._errorDataPathProperty){f.errorPath=f.util.getPath(N,H,f.opts.jsonPointers)}s+=" if ( "+Y+" === undefined ";if(q){s+=" || ! Object.prototype.hasOwnProperty.call("+j+", '"+f.util.escapeQuotes(H)+"') "}s+=") { var err = ";if(f.createErrors!==false){s+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { missingProperty: '"+L+"' } ";if(f.opts.messages!==false){s+=" , message: '";if(f.opts._errorDataPathProperty){s+="is a required property"}else{s+="should have required property \\'"+L+"\\'"}s+="' "}if(f.opts.verbose){s+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}}}f.errorPath=N}else if(w){s+=" if (true) {"}return s}},2207:f=>{"use strict";f.exports=function generate_uniqueItems(f,e,n){var s=" ";var l=f.level;var v=f.dataLevel;var r=f.schema[e];var b=f.schemaPath+f.util.getProperty(e);var g=f.errSchemaPath+"/"+e;var w=!f.opts.allErrors;var j="data"+(v||"");var d="valid"+l;var E=f.opts.$data&&r&&r.$data,R;if(E){s+=" var schema"+l+" = "+f.util.getData(r.$data,v,f.dataPathArr)+"; ";R="schema"+l}else{R=r}if((r||E)&&f.opts.uniqueItems!==false){if(E){s+=" var "+d+"; if ("+R+" === false || "+R+" === undefined) "+d+" = true; else if (typeof "+R+" != 'boolean') "+d+" = false; else { "}s+=" var i = "+j+".length , "+d+" = true , j; if (i > 1) { ";var A=f.schema.items&&f.schema.items.type,F=Array.isArray(A);if(!A||A=="object"||A=="array"||F&&(A.indexOf("object")>=0||A.indexOf("array")>=0)){s+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+j+"[i], "+j+"[j])) { "+d+" = false; break outer; } } } "}else{s+=" var itemIndices = {}, item; for (;i--;) { var item = "+j+"[i]; ";var p="checkDataType"+(F?"s":"");s+=" if ("+f.util[p](A,"item",f.opts.strictNumbers,true)+") continue; ";if(F){s+=" if (typeof item == 'string') item = '\"' + item; "}s+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}s+=" } ";if(E){s+=" } "}s+=" if (!"+d+") { ";var I=I||[];I.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(g)+" , params: { i: i, j: j } ";if(f.opts.messages!==false){s+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(f.opts.verbose){s+=" , schema: ";if(E){s+="validate.schema"+b}else{s+=""+r}s+=" , parentSchema: validate.schema"+f.schemaPath+" , data: "+j+" "}s+=" } "}else{s+=" {} "}var x=s;s=I.pop();if(!f.compositeRule&&w){if(f.async){s+=" throw new ValidationError(["+x+"]); "}else{s+=" validate.errors = ["+x+"]; return false; "}}else{s+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } ";if(w){s+=" else { "}}else{if(w){s+=" if (true) { "}}return s}},6131:f=>{"use strict";f.exports=function generate_validate(f,e,n){var s="";var l=f.schema.$async===true,v=f.util.schemaHasRulesExcept(f.schema,f.RULES.all,"$ref"),r=f.self._getId(f.schema);if(f.opts.strictKeywords){var b=f.util.schemaUnknownRules(f.schema,f.RULES.keywords);if(b){var g="unknown keyword: "+b;if(f.opts.strictKeywords==="log")f.logger.warn(g);else throw new Error(g)}}if(f.isTop){s+=" var validate = ";if(l){f.async=true;s+="async "}s+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";if(r&&(f.opts.sourceCode||f.opts.processCode)){s+=" "+("/*# sourceURL="+r+" */")+" "}}if(typeof f.schema=="boolean"||!(v||f.schema.$ref)){var e="false schema";var w=f.level;var j=f.dataLevel;var d=f.schema[e];var E=f.schemaPath+f.util.getProperty(e);var R=f.errSchemaPath+"/"+e;var A=!f.opts.allErrors;var F;var p="data"+(j||"");var I="valid"+w;if(f.schema===false){if(f.isTop){A=true}else{s+=" var "+I+" = false; "}var x=x||[];x.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+(F||"false schema")+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(R)+" , params: {} ";if(f.opts.messages!==false){s+=" , message: 'boolean schema is false' "}if(f.opts.verbose){s+=" , schema: false , parentSchema: validate.schema"+f.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var z=s;s=x.pop();if(!f.compositeRule&&A){if(f.async){s+=" throw new ValidationError(["+z+"]); "}else{s+=" validate.errors = ["+z+"]; return false; "}}else{s+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{if(f.isTop){if(l){s+=" return data; "}else{s+=" validate.errors = null; return true; "}}else{s+=" var "+I+" = true; "}}if(f.isTop){s+=" }; return validate; "}return s}if(f.isTop){var U=f.isTop,w=f.level=0,j=f.dataLevel=0,p="data";f.rootId=f.resolve.fullPath(f.self._getId(f.root.schema));f.baseId=f.baseId||f.rootId;delete f.isTop;f.dataPathArr=[""];if(f.schema.default!==undefined&&f.opts.useDefaults&&f.opts.strictDefaults){var N="default is ignored in the schema root";if(f.opts.strictDefaults==="log")f.logger.warn(N);else throw new Error(N)}s+=" var vErrors = null; ";s+=" var errors = 0; ";s+=" if (rootData === undefined) rootData = data; "}else{var w=f.level,j=f.dataLevel,p="data"+(j||"");if(r)f.baseId=f.resolve.url(f.baseId,r);if(l&&!f.async)throw new Error("async schema in sync schema");s+=" var errs_"+w+" = errors;"}var I="valid"+w,A=!f.opts.allErrors,Q="",q="";var F;var O=f.schema.type,C=Array.isArray(O);if(O&&f.opts.nullable&&f.schema.nullable===true){if(C){if(O.indexOf("null")==-1)O=O.concat("null")}else if(O!="null"){O=[O,"null"];C=true}}if(C&&O.length==1){O=O[0];C=false}if(f.schema.$ref&&v){if(f.opts.extendRefs=="fail"){throw new Error('$ref: validation keywords used in schema at path "'+f.errSchemaPath+'" (see option extendRefs)')}else if(f.opts.extendRefs!==true){v=false;f.logger.warn('$ref: keywords ignored in schema at path "'+f.errSchemaPath+'"')}}if(f.schema.$comment&&f.opts.$comment){s+=" "+f.RULES.all.$comment.code(f,"$comment")}if(O){if(f.opts.coerceTypes){var L=f.util.coerceToTypes(f.opts.coerceTypes,O)}var J=f.RULES.types[O];if(L||C||J===true||J&&!$shouldUseGroup(J)){var E=f.schemaPath+".type",R=f.errSchemaPath+"/type";var E=f.schemaPath+".type",R=f.errSchemaPath+"/type",T=C?"checkDataTypes":"checkDataType";s+=" if ("+f.util[T](O,p,f.opts.strictNumbers,true)+") { ";if(L){var G="dataType"+w,H="coerced"+w;s+=" var "+G+" = typeof "+p+"; var "+H+" = undefined; ";if(f.opts.coerceTypes=="array"){s+=" if ("+G+" == 'object' && Array.isArray("+p+") && "+p+".length == 1) { "+p+" = "+p+"[0]; "+G+" = typeof "+p+"; if ("+f.util.checkDataType(f.schema.type,p,f.opts.strictNumbers)+") "+H+" = "+p+"; } "}s+=" if ("+H+" !== undefined) ; ";var X=L;if(X){var M,Y=-1,W=X.length-1;while(Y<W){M=X[Y+=1];if(M=="string"){s+=" else if ("+G+" == 'number' || "+G+" == 'boolean') "+H+" = '' + "+p+"; else if ("+p+" === null) "+H+" = ''; "}else if(M=="number"||M=="integer"){s+=" else if ("+G+" == 'boolean' || "+p+" === null || ("+G+" == 'string' && "+p+" && "+p+" == +"+p+" ";if(M=="integer"){s+=" && !("+p+" % 1)"}s+=")) "+H+" = +"+p+"; "}else if(M=="boolean"){s+=" else if ("+p+" === 'false' || "+p+" === 0 || "+p+" === null) "+H+" = false; else if ("+p+" === 'true' || "+p+" === 1) "+H+" = true; "}else if(M=="null"){s+=" else if ("+p+" === '' || "+p+" === 0 || "+p+" === false) "+H+" = null; "}else if(f.opts.coerceTypes=="array"&&M=="array"){s+=" else if ("+G+" == 'string' || "+G+" == 'number' || "+G+" == 'boolean' || "+p+" == null) "+H+" = ["+p+"]; "}}}s+=" else { ";var x=x||[];x.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+(F||"type")+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(R)+" , params: { type: '";if(C){s+=""+O.join(",")}else{s+=""+O}s+="' } ";if(f.opts.messages!==false){s+=" , message: 'should be ";if(C){s+=""+O.join(",")}else{s+=""+O}s+="' "}if(f.opts.verbose){s+=" , schema: validate.schema"+E+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var z=s;s=x.pop();if(!f.compositeRule&&A){if(f.async){s+=" throw new ValidationError(["+z+"]); "}else{s+=" validate.errors = ["+z+"]; return false; "}}else{s+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } if ("+H+" !== undefined) { ";var B=j?"data"+(j-1||""):"parentData",c=j?f.dataPathArr[j]:"parentDataProperty";s+=" "+p+" = "+H+"; ";if(!j){s+="if ("+B+" !== undefined)"}s+=" "+B+"["+c+"] = "+H+"; } "}else{var x=x||[];x.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+(F||"type")+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(R)+" , params: { type: '";if(C){s+=""+O.join(",")}else{s+=""+O}s+="' } ";if(f.opts.messages!==false){s+=" , message: 'should be ";if(C){s+=""+O.join(",")}else{s+=""+O}s+="' "}if(f.opts.verbose){s+=" , schema: validate.schema"+E+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var z=s;s=x.pop();if(!f.compositeRule&&A){if(f.async){s+=" throw new ValidationError(["+z+"]); "}else{s+=" validate.errors = ["+z+"]; return false; "}}else{s+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}s+=" } "}}if(f.schema.$ref&&!v){s+=" "+f.RULES.all.$ref.code(f,"$ref")+" ";if(A){s+=" } if (errors === ";if(U){s+="0"}else{s+="errs_"+w}s+=") { ";q+="}"}}else{var Z=f.RULES;if(Z){var J,D=-1,K=Z.length-1;while(D<K){J=Z[D+=1];if($shouldUseGroup(J)){if(J.type){s+=" if ("+f.util.checkDataType(J.type,p,f.opts.strictNumbers)+") { "}if(f.opts.useDefaults){if(J.type=="object"&&f.schema.properties){var d=f.schema.properties,V=Object.keys(d);var y=V;if(y){var k,h=-1,a=y.length-1;while(h<a){k=y[h+=1];var S=d[k];if(S.default!==undefined){var m=p+f.util.getProperty(k);if(f.compositeRule){if(f.opts.strictDefaults){var N="default is ignored for: "+m;if(f.opts.strictDefaults==="log")f.logger.warn(N);else throw new Error(N)}}else{s+=" if ("+m+" === undefined ";if(f.opts.useDefaults=="empty"){s+=" || "+m+" === null || "+m+" === '' "}s+=" ) "+m+" = ";if(f.opts.useDefaults=="shared"){s+=" "+f.useDefault(S.default)+" "}else{s+=" "+JSON.stringify(S.default)+" "}s+="; "}}}}}else if(J.type=="array"&&Array.isArray(f.schema.items)){var P=f.schema.items;if(P){var S,Y=-1,i=P.length-1;while(Y<i){S=P[Y+=1];if(S.default!==undefined){var m=p+"["+Y+"]";if(f.compositeRule){if(f.opts.strictDefaults){var N="default is ignored for: "+m;if(f.opts.strictDefaults==="log")f.logger.warn(N);else throw new Error(N)}}else{s+=" if ("+m+" === undefined ";if(f.opts.useDefaults=="empty"){s+=" || "+m+" === null || "+m+" === '' "}s+=" ) "+m+" = ";if(f.opts.useDefaults=="shared"){s+=" "+f.useDefault(S.default)+" "}else{s+=" "+JSON.stringify(S.default)+" "}s+="; "}}}}}}var _=J.rules;if(_){var u,o=-1,$=_.length-1;while(o<$){u=_[o+=1];if($shouldUseRule(u)){var t=u.code(f,u.keyword,J.type);if(t){s+=" "+t+" ";if(A){Q+="}"}}}}}if(A){s+=" "+Q+" ";Q=""}if(J.type){s+=" } ";if(O&&O===J.type&&!L){s+=" else { ";var E=f.schemaPath+".type",R=f.errSchemaPath+"/type";var x=x||[];x.push(s);s="";if(f.createErrors!==false){s+=" { keyword: '"+(F||"type")+"' , dataPath: (dataPath || '') + "+f.errorPath+" , schemaPath: "+f.util.toQuotedString(R)+" , params: { type: '";if(C){s+=""+O.join(",")}else{s+=""+O}s+="' } ";if(f.opts.messages!==false){s+=" , message: 'should be ";if(C){s+=""+O.join(",")}else{s+=""+O}s+="' "}if(f.opts.verbose){s+=" , schema: validate.schema"+E+" , parentSchema: validate.schema"+f.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var z=s;s=x.pop();if(!f.compositeRule&&A){if(f.async){s+=" throw new ValidationError(["+z+"]); "}else{s+=" validate.errors = ["+z+"]; return false; "}}else{s+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } "}}if(A){s+=" if (errors === ";if(U){s+="0"}else{s+="errs_"+w}s+=") { ";q+="}"}}}}}if(A){s+=" "+q+" "}if(U){if(l){s+=" if (errors === 0) return data; ";s+=" else throw new ValidationError(vErrors); "}else{s+=" validate.errors = vErrors; ";s+=" return errors === 0; "}s+=" }; return validate;"}else{s+=" var "+I+" = errors === errs_"+w+";"}function $shouldUseGroup(f){var e=f.rules;for(var n=0;n<e.length;n++)if($shouldUseRule(e[n]))return true}function $shouldUseRule(e){return f.schema[e.keyword]!==undefined||e.implements&&$ruleImplementsSomeKeyword(e)}function $ruleImplementsSomeKeyword(e){var n=e.implements;for(var s=0;s<n.length;s++)if(f.schema[n[s]]!==undefined)return true}return s}},8093:(f,e,n)=>{"use strict";var s=/^[a-z_$][a-z0-9_$-]*$/i;var l=n(7921);var v=n(5533);f.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(f,e){var n=this.RULES;if(n.keywords[f])throw new Error("Keyword "+f+" is already defined");if(!s.test(f))throw new Error("Keyword "+f+" is not a valid identifier");if(e){this.validateKeyword(e,true);var v=e.type;if(Array.isArray(v)){for(var r=0;r<v.length;r++)_addRule(f,v[r],e)}else{_addRule(f,v,e)}var b=e.metaSchema;if(b){if(e.$data&&this._opts.$data){b={anyOf:[b,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}}e.validateSchema=this.compile(b,true)}}n.keywords[f]=n.all[f]=true;function _addRule(f,e,s){var v;for(var r=0;r<n.length;r++){var b=n[r];if(b.type==e){v=b;break}}if(!v){v={type:e,rules:[]};n.push(v)}var g={keyword:f,definition:s,custom:true,code:l,implements:s.implements};v.rules.push(g);n.custom[f]=g}return this}function getKeyword(f){var e=this.RULES.custom[f];return e?e.definition:this.RULES.keywords[f]||false}function removeKeyword(f){var e=this.RULES;delete e.keywords[f];delete e.all[f];delete e.custom[f];for(var n=0;n<e.length;n++){var s=e[n].rules;for(var l=0;l<s.length;l++){if(s[l].keyword==f){s.splice(l,1);break}}}return this}function validateKeyword(f,e){validateKeyword.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(v,true);if(n(f))return true;validateKeyword.errors=n.errors;if(e)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));else return false}},3331:(f,e,n)=>{"use strict";f=n.nmd(f);const s=n(5747);const l=n(5622);const v=n(6417);const r=n(2357);const b=n(8614);const g=n(5514);const w=n(293);const j=n(6536);const d=n(7727);const E=n(175);const R=n(1414);const A=()=>Object.create(null);const F="aes-256-cbc";delete require.cache[__filename];const p=l.dirname(f.parent&&f.parent.filename||".");const I=(f,e)=>{const n=["undefined","symbol","function"];const s=typeof e;if(n.includes(s)){throw new TypeError(`Setting a value of type \`${s}\` for key \`${f}\` is not allowed as it's not supported by JSON`)}};class Conf{constructor(f){f={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:true,serialize:f=>JSON.stringify(f,null,"\t"),deserialize:JSON.parse,accessPropertiesByDotNotation:true,...f};if(!f.cwd){if(!f.projectName){const e=j.sync(p);f.projectName=e&&JSON.parse(s.readFileSync(e,"utf8")).name}if(!f.projectName){throw new Error("Project name could not be inferred. Please specify the `projectName` option.")}f.cwd=d(f.projectName,{suffix:f.projectSuffix}).config}this._options=f;if(f.schema){if(typeof f.schema!=="object"){throw new TypeError("The `schema` option must be an object.")}const e=new R({allErrors:true,format:"full",useDefaults:true,errorDataPath:"property"});const n={type:"object",properties:f.schema};this._validator=e.compile(n)}this.events=new b;this.encryptionKey=f.encryptionKey;this.serialize=f.serialize;this.deserialize=f.deserialize;const e=f.fileExtension?`.${f.fileExtension}`:"";this.path=l.resolve(f.cwd,`${f.configName}${e}`);const n=this.store;const v=Object.assign(A(),f.defaults,n);this._validate(v);try{r.deepEqual(n,v)}catch(f){this.store=v}}_validate(f){if(!this._validator){return}const e=this._validator(f);if(!e){const f=this._validator.errors.reduce((f,{dataPath:e,message:n})=>f+` \`${e.slice(1)}\` ${n};`,"");throw new Error("Config schema violation:"+f.slice(0,-1))}}get(f,e){if(this._options.accessPropertiesByDotNotation){return g.get(this.store,f,e)}return f in this.store?this.store[f]:e}set(f,e){if(typeof f!=="string"&&typeof f!=="object"){throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof f}`)}if(typeof f!=="object"&&e===undefined){throw new TypeError("Use `delete()` to clear values")}const{store:n}=this;const s=(f,e)=>{I(f,e);if(this._options.accessPropertiesByDotNotation){g.set(n,f,e)}else{n[f]=e}};if(typeof f==="object"){const e=f;for(const[f,n]of Object.entries(e)){s(f,n)}}else{s(f,e)}this.store=n}has(f){if(this._options.accessPropertiesByDotNotation){return g.has(this.store,f)}return f in this.store}delete(f){const{store:e}=this;if(this._options.accessPropertiesByDotNotation){g.delete(e,f)}else{delete e[f]}this.store=e}clear(){this.store=A()}onDidChange(f,e){if(typeof f!=="string"){throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof f}`)}if(typeof e!=="function"){throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof e}`)}const n=()=>this.get(f);return this.handleChange(n,e)}onDidAnyChange(f){if(typeof f!=="function"){throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof f}`)}const e=()=>this.store;return this.handleChange(e,f)}handleChange(f,e){let n=f();const s=()=>{const s=n;const l=f();try{r.deepEqual(l,s)}catch(f){n=l;e.call(this,l,s)}};this.events.on("change",s);return()=>this.events.removeListener("change",s)}get size(){return Object.keys(this.store).length}get store(){try{let f=s.readFileSync(this.path,this.encryptionKey?null:"utf8");if(this.encryptionKey){try{if(f.slice(16,17).toString()===":"){const e=f.slice(0,16);const n=v.pbkdf2Sync(this.encryptionKey,e.toString(),1e4,32,"sha512");const s=v.createDecipheriv(F,n,e);f=Buffer.concat([s.update(f.slice(17)),s.final()])}else{const e=v.createDecipher(F,this.encryptionKey);f=Buffer.concat([e.update(f),e.final()])}}catch(f){}}f=this.deserialize(f);this._validate(f);return Object.assign(A(),f)}catch(f){if(f.code==="ENOENT"){w.sync(l.dirname(this.path));return A()}if(this._options.clearInvalidConfig&&f.name==="SyntaxError"){return A()}throw f}}set store(f){w.sync(l.dirname(this.path));this._validate(f);let e=this.serialize(f);if(this.encryptionKey){const f=v.randomBytes(16);const n=v.pbkdf2Sync(this.encryptionKey,f.toString(),1e4,32,"sha512");const s=v.createCipheriv(F,n,f);e=Buffer.concat([f,Buffer.from(":"),s.update(Buffer.from(e)),s.final()])}E.sync(this.path,e);this.events.emit("change")}*[Symbol.iterator](){for(const[f,e]of Object.entries(this.store)){yield[f,e]}}}f.exports=Conf},5514:(f,e,n)=>{"use strict";const s=n(1771);const l=["__proto__","prototype","constructor"];const v=f=>!f.some(f=>l.includes(f));function getPathSegments(f){const e=f.split(".");const n=[];for(let f=0;f<e.length;f++){let s=e[f];while(s[s.length-1]==="\\"&&e[f+1]!==undefined){s=s.slice(0,-1)+".";s+=e[++f]}n.push(s)}if(!v(n)){return[]}return n}f.exports={get(f,e,n){if(!s(f)||typeof e!=="string"){return n===undefined?f:n}const l=getPathSegments(e);if(l.length===0){return}for(let e=0;e<l.length;e++){if(!Object.prototype.propertyIsEnumerable.call(f,l[e])){return n}f=f[l[e]];if(f===undefined||f===null){if(e!==l.length-1){return n}break}}return f},set(f,e,n){if(!s(f)||typeof e!=="string"){return f}const l=f;const v=getPathSegments(e);for(let e=0;e<v.length;e++){const l=v[e];if(!s(f[l])){f[l]={}}if(e===v.length-1){f[l]=n}f=f[l]}return l},delete(f,e){if(!s(f)||typeof e!=="string"){return}const n=getPathSegments(e);for(let e=0;e<n.length;e++){const l=n[e];if(e===n.length-1){delete f[l];return}f=f[l];if(!s(f)){return}}},has(f,e){if(!s(f)||typeof e!=="string"){return false}const n=getPathSegments(e);if(n.length===0){return false}for(let e=0;e<n.length;e++){if(s(f)){if(!(n[e]in f)){return false}f=f[n[e]]}else{return false}}return true}}},1771:f=>{"use strict";f.exports=(f=>{const e=typeof f;return f!==null&&(e==="object"||e==="function")})},7727:(f,e,n)=>{"use strict";const s=n(5622);const l=n(2087);const v=l.homedir();const r=l.tmpdir();const{env:b}=process;const g=f=>{const e=s.join(v,"Library");return{data:s.join(e,"Application Support",f),config:s.join(e,"Preferences",f),cache:s.join(e,"Caches",f),log:s.join(e,"Logs",f),temp:s.join(r,f)}};const w=f=>{const e=b.APPDATA||s.join(v,"AppData","Roaming");const n=b.LOCALAPPDATA||s.join(v,"AppData","Local");return{data:s.join(n,f,"Data"),config:s.join(e,f,"Config"),cache:s.join(n,f,"Cache"),log:s.join(n,f,"Log"),temp:s.join(r,f)}};const j=f=>{const e=s.basename(v);return{data:s.join(b.XDG_DATA_HOME||s.join(v,".local","share"),f),config:s.join(b.XDG_CONFIG_HOME||s.join(v,".config"),f),cache:s.join(b.XDG_CACHE_HOME||s.join(v,".cache"),f),log:s.join(b.XDG_STATE_HOME||s.join(v,".local","state"),f),temp:s.join(r,e,f)}};const d=(f,e)=>{if(typeof f!=="string"){throw new TypeError(`Expected string, got ${typeof f}`)}e=Object.assign({suffix:"nodejs"},e);if(e.suffix){f+=`-${e.suffix}`}if(process.platform==="darwin"){return g(f)}if(process.platform==="win32"){return w(f)}return j(f)};f.exports=d;f.exports.default=d},3933:f=>{"use strict";f.exports=function equal(f,e){if(f===e)return true;if(f&&e&&typeof f=="object"&&typeof e=="object"){if(f.constructor!==e.constructor)return false;var n,s,l;if(Array.isArray(f)){n=f.length;if(n!=e.length)return false;for(s=n;s--!==0;)if(!equal(f[s],e[s]))return false;return true}if(f.constructor===RegExp)return f.source===e.source&&f.flags===e.flags;if(f.valueOf!==Object.prototype.valueOf)return f.valueOf()===e.valueOf();if(f.toString!==Object.prototype.toString)return f.toString()===e.toString();l=Object.keys(f);n=l.length;if(n!==Object.keys(e).length)return false;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(e,l[s]))return false;for(s=n;s--!==0;){var v=l[s];if(!equal(f[v],e[v]))return false}return true}return f!==f&&e!==e}},3600:f=>{"use strict";f.exports=function(f,e){if(!e)e={};if(typeof e==="function")e={cmp:e};var n=typeof e.cycles==="boolean"?e.cycles:false;var s=e.cmp&&function(f){return function(e){return function(n,s){var l={key:n,value:e[n]};var v={key:s,value:e[s]};return f(l,v)}}}(e.cmp);var l=[];return function stringify(f){if(f&&f.toJSON&&typeof f.toJSON==="function"){f=f.toJSON()}if(f===undefined)return;if(typeof f=="number")return isFinite(f)?""+f:"null";if(typeof f!=="object")return JSON.stringify(f);var e,v;if(Array.isArray(f)){v="[";for(e=0;e<f.length;e++){if(e)v+=",";v+=stringify(f[e])||"null"}return v+"]"}if(f===null)return"null";if(l.indexOf(f)!==-1){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var r=l.push(f)-1;var b=Object.keys(f).sort(s&&s(f));v="";for(e=0;e<b.length;e++){var g=b[e];var w=stringify(f[g]);if(!w)continue;if(v)v+=",";v+=JSON.stringify(g)+":"+w}l.splice(r,1);return"{"+v+"}"}(f)}},8681:f=>{(function(){var e;function MurmurHash3(f,n){var s=this instanceof MurmurHash3?this:e;s.reset(n);if(typeof f==="string"&&f.length>0){s.hash(f)}if(s!==this){return s}}MurmurHash3.prototype.hash=function(f){var e,n,s,l,v;v=f.length;this.len+=v;n=this.k1;s=0;switch(this.rem){case 0:n^=v>s?f.charCodeAt(s++)&65535:0;case 1:n^=v>s?(f.charCodeAt(s++)&65535)<<8:0;case 2:n^=v>s?(f.charCodeAt(s++)&65535)<<16:0;case 3:n^=v>s?(f.charCodeAt(s)&255)<<24:0;n^=v>s?(f.charCodeAt(s++)&65280)>>8:0}this.rem=v+this.rem&3;v-=this.rem;if(v>0){e=this.h1;while(1){n=n*11601+(n&65535)*3432906752&4294967295;n=n<<15|n>>>17;n=n*13715+(n&65535)*461832192&4294967295;e^=n;e=e<<13|e>>>19;e=e*5+3864292196&4294967295;if(s>=v){break}n=f.charCodeAt(s++)&65535^(f.charCodeAt(s++)&65535)<<8^(f.charCodeAt(s++)&65535)<<16;l=f.charCodeAt(s++);n^=(l&255)<<24^(l&65280)>>8}n=0;switch(this.rem){case 3:n^=(f.charCodeAt(s+2)&65535)<<16;case 2:n^=(f.charCodeAt(s+1)&65535)<<8;case 1:n^=f.charCodeAt(s)&65535}this.h1=e}this.k1=n;return this};MurmurHash3.prototype.result=function(){var f,e;f=this.k1;e=this.h1;if(f>0){f=f*11601+(f&65535)*3432906752&4294967295;f=f<<15|f>>>17;f=f*13715+(f&65535)*461832192&4294967295;e^=f}e^=this.len;e^=e>>>16;e=e*51819+(e&65535)*2246770688&4294967295;e^=e>>>13;e=e*44597+(e&65535)*3266445312&4294967295;e^=e>>>16;return e>>>0};MurmurHash3.prototype.reset=function(f){this.h1=typeof f==="number"?f:0;this.rem=this.k1=this.len=0;return this};e=new MurmurHash3;if(true){f.exports=MurmurHash3}else{}})()},3010:f=>{f.exports=isTypedArray;isTypedArray.strict=isStrictTypedArray;isTypedArray.loose=isLooseTypedArray;var e=Object.prototype.toString;var n={"[object Int8Array]":true,"[object Int16Array]":true,"[object Int32Array]":true,"[object Uint8Array]":true,"[object Uint8ClampedArray]":true,"[object Uint16Array]":true,"[object Uint32Array]":true,"[object Float32Array]":true,"[object Float64Array]":true};function isTypedArray(f){return isStrictTypedArray(f)||isLooseTypedArray(f)}function isStrictTypedArray(f){return f instanceof Int8Array||f instanceof Int16Array||f instanceof Int32Array||f instanceof Uint8Array||f instanceof Uint8ClampedArray||f instanceof Uint16Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array}function isLooseTypedArray(f){return n[e.call(f)]}},2437:f=>{"use strict";var e=f.exports=function(f,e,n){if(typeof e=="function"){n=e;e={}}n=e.cb||n;var s=typeof n=="function"?n:n.pre||function(){};var l=n.post||function(){};_traverse(e,s,l,f,"",f)};e.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};e.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};e.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};e.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(f,n,s,l,v,r,b,g,w,j){if(l&&typeof l=="object"&&!Array.isArray(l)){n(l,v,r,b,g,w,j);for(var d in l){var E=l[d];if(Array.isArray(E)){if(d in e.arrayKeywords){for(var R=0;R<E.length;R++)_traverse(f,n,s,E[R],v+"/"+d+"/"+R,r,v,d,l,R)}}else if(d in e.propsKeywords){if(E&&typeof E=="object"){for(var A in E)_traverse(f,n,s,E[A],v+"/"+d+"/"+escapeJsonPtr(A),r,v,d,l,A)}}else if(d in e.keywords||f.allKeys&&!(d in e.skipKeywords)){_traverse(f,n,s,E,v+"/"+d,r,v,d,l)}}s(l,v,r,b,g,w,j)}}function escapeJsonPtr(f){return f.replace(/~/g,"~0").replace(/\//g,"~1")}},293:(f,e,n)=>{"use strict";const s=n(5747);const l=n(5622);const{promisify:v}=n(1669);const r=n(2519);const b=r.satisfies(process.version,">=10.12.0");const g=f=>{if(process.platform==="win32"){const e=/[<>:"|?*]/.test(f.replace(l.parse(f).root,""));if(e){const e=new Error(`Path contains invalid characters: ${f}`);e.code="EINVAL";throw e}}};const w=f=>{const e={mode:511&~process.umask(),fs:s};return{...e,...f}};const j=f=>{const e=new Error(`operation not permitted, mkdir '${f}'`);e.code="EPERM";e.errno=-4048;e.path=f;e.syscall="mkdir";return e};const d=async(f,e)=>{g(f);e=w(e);const n=v(e.fs.mkdir);const r=v(e.fs.stat);if(b&&e.fs.mkdir===s.mkdir){const s=l.resolve(f);await n(s,{mode:e.mode,recursive:true});return s}const d=async f=>{try{await n(f,e.mode);return f}catch(e){if(e.code==="EPERM"){throw e}if(e.code==="ENOENT"){if(l.dirname(f)===f){throw j(f)}if(e.message.includes("null bytes")){throw e}await d(l.dirname(f));return d(f)}try{const n=await r(f);if(!n.isDirectory()){throw new Error("The path is not a directory")}}catch(f){throw e}return f}};return d(l.resolve(f))};f.exports=d;f.exports.sync=((f,e)=>{g(f);e=w(e);if(b&&e.fs.mkdirSync===s.mkdirSync){const n=l.resolve(f);s.mkdirSync(n,{mode:e.mode,recursive:true});return n}const n=f=>{try{e.fs.mkdirSync(f,e.mode)}catch(s){if(s.code==="EPERM"){throw s}if(s.code==="ENOENT"){if(l.dirname(f)===f){throw j(f)}if(s.message.includes("null bytes")){throw s}n(l.dirname(f));return n(f)}try{if(!e.fs.statSync(f).isDirectory()){throw new Error("The path is not a directory")}}catch(f){throw s}}return f};return n(l.resolve(f))})},6536:(f,e,n)=>{"use strict";const s=n(4442);f.exports=(async({cwd:f}={})=>s("package.json",{cwd:f}));f.exports.sync=(({cwd:f}={})=>s.sync("package.json",{cwd:f}))},2317:(f,e,n)=>{var s=n(2357);var l=n(2935);var v=n(8614);if(typeof v!=="function"){v=v.EventEmitter}var r;if(process.__signal_exit_emitter__){r=process.__signal_exit_emitter__}else{r=process.__signal_exit_emitter__=new v;r.count=0;r.emitted={}}if(!r.infinite){r.setMaxListeners(Infinity);r.infinite=true}f.exports=function(f,e){s.equal(typeof f,"function","a callback must be provided for exit handler");if(g===false){load()}var n="exit";if(e&&e.alwaysLast){n="afterexit"}var l=function(){r.removeListener(n,f);if(r.listeners("exit").length===0&&r.listeners("afterexit").length===0){unload()}};r.on(n,f);return l};f.exports.unload=unload;function unload(){if(!g){return}g=false;l.forEach(function(f){try{process.removeListener(f,b[f])}catch(f){}});process.emit=j;process.reallyExit=w;r.count-=1}function emit(f,e,n){if(r.emitted[f]){return}r.emitted[f]=true;r.emit(f,e,n)}var b={};l.forEach(function(f){b[f]=function listener(){var e=process.listeners(f);if(e.length===r.count){unload();emit("exit",null,f);emit("afterexit",null,f);process.kill(process.pid,f)}}});f.exports.signals=function(){return l};f.exports.load=load;var g=false;function load(){if(g){return}g=true;r.count+=1;l=l.filter(function(f){try{process.on(f,b[f]);return true}catch(f){return false}});process.emit=processEmit;process.reallyExit=processReallyExit}var w=process.reallyExit;function processReallyExit(f){process.exitCode=f||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);w.call(process,process.exitCode)}var j=process.emit;function processEmit(f,e){if(f==="exit"){if(e!==undefined){process.exitCode=e}var n=j.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return n}else{return j.apply(this,arguments)}}},2935:f=>{f.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){f.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){f.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},4005:(f,e,n)=>{var s=n(3010).strict;f.exports=function typedarrayToBuffer(f){if(s(f)){var e=Buffer.from(f.buffer);if(f.byteLength!==f.buffer.byteLength){e=e.slice(f.byteOffset,f.byteOffset+f.byteLength)}return e}else{return Buffer.from(f)}}},4007:function(f,e){(function(f,n){true?n(e):0})(this,function(f){"use strict";function merge(){for(var f=arguments.length,e=Array(f),n=0;n<f;n++){e[n]=arguments[n]}if(e.length>1){e[0]=e[0].slice(0,-1);var s=e.length-1;for(var l=1;l<s;++l){e[l]=e[l].slice(1,-1)}e[s]=e[s].slice(1);return e.join("")}else{return e[0]}}function subexp(f){return"(?:"+f+")"}function typeOf(f){return f===undefined?"undefined":f===null?"null":Object.prototype.toString.call(f).split(" ").pop().split("]").shift().toLowerCase()}function toUpperCase(f){return f.toUpperCase()}function toArray(f){return f!==undefined&&f!==null?f instanceof Array?f:typeof f.length!=="number"||f.split||f.setInterval||f.call?[f]:Array.prototype.slice.call(f):[]}function assign(f,e){var n=f;if(e){for(var s in e){n[s]=e[s]}}return n}function buildExps(f){var e="[A-Za-z]",n="[\\x0D]",s="[0-9]",l="[\\x22]",v=merge(s,"[A-Fa-f]"),r="[\\x0A]",b="[\\x20]",g=subexp(subexp("%[EFef]"+v+"%"+v+v+"%"+v+v)+"|"+subexp("%[89A-Fa-f]"+v+"%"+v+v)+"|"+subexp("%"+v+v)),w="[\\:\\/\\?\\#\\[\\]\\@]",j="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",d=merge(w,j),E=f?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",R=f?"[\\uE000-\\uF8FF]":"[]",A=merge(e,s,"[\\-\\.\\_\\~]",E),F=subexp(e+merge(e,s,"[\\+\\-\\.]")+"*"),p=subexp(subexp(g+"|"+merge(A,j,"[\\:]"))+"*"),I=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+s)+"|"+subexp("1"+s+s)+"|"+subexp("[1-9]"+s)+"|"+s),x=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+s)+"|"+subexp("1"+s+s)+"|"+subexp("0?[1-9]"+s)+"|0?0?"+s),z=subexp(x+"\\."+x+"\\."+x+"\\."+x),U=subexp(v+"{1,4}"),N=subexp(subexp(U+"\\:"+U)+"|"+z),Q=subexp(subexp(U+"\\:")+"{6}"+N),q=subexp("\\:\\:"+subexp(U+"\\:")+"{5}"+N),O=subexp(subexp(U)+"?\\:\\:"+subexp(U+"\\:")+"{4}"+N),C=subexp(subexp(subexp(U+"\\:")+"{0,1}"+U)+"?\\:\\:"+subexp(U+"\\:")+"{3}"+N),L=subexp(subexp(subexp(U+"\\:")+"{0,2}"+U)+"?\\:\\:"+subexp(U+"\\:")+"{2}"+N),J=subexp(subexp(subexp(U+"\\:")+"{0,3}"+U)+"?\\:\\:"+U+"\\:"+N),T=subexp(subexp(subexp(U+"\\:")+"{0,4}"+U)+"?\\:\\:"+N),G=subexp(subexp(subexp(U+"\\:")+"{0,5}"+U)+"?\\:\\:"+U),H=subexp(subexp(subexp(U+"\\:")+"{0,6}"+U)+"?\\:\\:"),X=subexp([Q,q,O,C,L,J,T,G,H].join("|")),M=subexp(subexp(A+"|"+g)+"+"),Y=subexp(X+"\\%25"+M),W=subexp(X+subexp("\\%25|\\%(?!"+v+"{2})")+M),B=subexp("[vV]"+v+"+\\."+merge(A,j,"[\\:]")+"+"),c=subexp("\\["+subexp(W+"|"+X+"|"+B)+"\\]"),Z=subexp(subexp(g+"|"+merge(A,j))+"*"),D=subexp(c+"|"+z+"(?!"+Z+")"+"|"+Z),K=subexp(s+"*"),V=subexp(subexp(p+"@")+"?"+D+subexp("\\:"+K)+"?"),y=subexp(g+"|"+merge(A,j,"[\\:\\@]")),k=subexp(y+"*"),h=subexp(y+"+"),a=subexp(subexp(g+"|"+merge(A,j,"[\\@]"))+"+"),S=subexp(subexp("\\/"+k)+"*"),m=subexp("\\/"+subexp(h+S)+"?"),P=subexp(a+S),i=subexp(h+S),_="(?!"+y+")",u=subexp(S+"|"+m+"|"+P+"|"+i+"|"+_),o=subexp(subexp(y+"|"+merge("[\\/\\?]",R))+"*"),$=subexp(subexp(y+"|[\\/\\?]")+"*"),t=subexp(subexp("\\/\\/"+V+S)+"|"+m+"|"+i+"|"+_),ff=subexp(F+"\\:"+t+subexp("\\?"+o)+"?"+subexp("\\#"+$)+"?"),ef=subexp(subexp("\\/\\/"+V+S)+"|"+m+"|"+P+"|"+_),nf=subexp(ef+subexp("\\?"+o)+"?"+subexp("\\#"+$)+"?"),sf=subexp(ff+"|"+nf),lf=subexp(F+"\\:"+t+subexp("\\?"+o)+"?"),vf="^("+F+")\\:"+subexp(subexp("\\/\\/("+subexp("("+p+")@")+"?("+D+")"+subexp("\\:("+K+")")+"?)")+"?("+S+"|"+m+"|"+i+"|"+_+")")+subexp("\\?("+o+")")+"?"+subexp("\\#("+$+")")+"?$",rf="^(){0}"+subexp(subexp("\\/\\/("+subexp("("+p+")@")+"?("+D+")"+subexp("\\:("+K+")")+"?)")+"?("+S+"|"+m+"|"+P+"|"+_+")")+subexp("\\?("+o+")")+"?"+subexp("\\#("+$+")")+"?$",bf="^("+F+")\\:"+subexp(subexp("\\/\\/("+subexp("("+p+")@")+"?("+D+")"+subexp("\\:("+K+")")+"?)")+"?("+S+"|"+m+"|"+i+"|"+_+")")+subexp("\\?("+o+")")+"?$",gf="^"+subexp("\\#("+$+")")+"?$",wf="^"+subexp("("+p+")@")+"?("+D+")"+subexp("\\:("+K+")")+"?$";return{NOT_SCHEME:new RegExp(merge("[^]",e,s,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(merge("[^\\%\\:]",A,j),"g"),NOT_HOST:new RegExp(merge("[^\\%\\[\\]\\:]",A,j),"g"),NOT_PATH:new RegExp(merge("[^\\%\\/\\:\\@]",A,j),"g"),NOT_PATH_NOSCHEME:new RegExp(merge("[^\\%\\/\\@]",A,j),"g"),NOT_QUERY:new RegExp(merge("[^\\%]",A,j,"[\\:\\@\\/\\?]",R),"g"),NOT_FRAGMENT:new RegExp(merge("[^\\%]",A,j,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(merge("[^]",A,j),"g"),UNRESERVED:new RegExp(A,"g"),OTHER_CHARS:new RegExp(merge("[^\\%]",A,d),"g"),PCT_ENCODED:new RegExp(g,"g"),IPV4ADDRESS:new RegExp("^("+z+")$"),IPV6ADDRESS:new RegExp("^\\[?("+X+")"+subexp(subexp("\\%25|\\%(?!"+v+"{2})")+"("+M+")")+"?\\]?$")}}var e=buildExps(false);var n=buildExps(true);var s=function(){function sliceIterator(f,e){var n=[];var s=true;var l=false;var v=undefined;try{for(var r=f[Symbol.iterator](),b;!(s=(b=r.next()).done);s=true){n.push(b.value);if(e&&n.length===e)break}}catch(f){l=true;v=f}finally{try{if(!s&&r["return"])r["return"]()}finally{if(l)throw v}}return n}return function(f,e){if(Array.isArray(f)){return f}else if(Symbol.iterator in Object(f)){return sliceIterator(f,e)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var l=function(f){if(Array.isArray(f)){for(var e=0,n=Array(f.length);e<f.length;e++)n[e]=f[e];return n}else{return Array.from(f)}};var v=2147483647;var r=36;var b=1;var g=26;var w=38;var j=700;var d=72;var E=128;var R="-";var A=/^xn--/;var F=/[^\0-\x7E]/;var p=/[\x2E\u3002\uFF0E\uFF61]/g;var I={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var x=r-b;var z=Math.floor;var U=String.fromCharCode;function error$1(f){throw new RangeError(I[f])}function map(f,e){var n=[];var s=f.length;while(s--){n[s]=e(f[s])}return n}function mapDomain(f,e){var n=f.split("@");var s="";if(n.length>1){s=n[0]+"@";f=n[1]}f=f.replace(p,".");var l=f.split(".");var v=map(l,e).join(".");return s+v}function ucs2decode(f){var e=[];var n=0;var s=f.length;while(n<s){var l=f.charCodeAt(n++);if(l>=55296&&l<=56319&&n<s){var v=f.charCodeAt(n++);if((v&64512)==56320){e.push(((l&1023)<<10)+(v&1023)+65536)}else{e.push(l);n--}}else{e.push(l)}}return e}var N=function ucs2encode(f){return String.fromCodePoint.apply(String,l(f))};var Q=function basicToDigit(f){if(f-48<10){return f-22}if(f-65<26){return f-65}if(f-97<26){return f-97}return r};var q=function digitToBasic(f,e){return f+22+75*(f<26)-((e!=0)<<5)};var O=function adapt(f,e,n){var s=0;f=n?z(f/j):f>>1;f+=z(f/e);for(;f>x*g>>1;s+=r){f=z(f/x)}return z(s+(x+1)*f/(f+w))};var C=function decode(f){var e=[];var n=f.length;var s=0;var l=E;var w=d;var j=f.lastIndexOf(R);if(j<0){j=0}for(var A=0;A<j;++A){if(f.charCodeAt(A)>=128){error$1("not-basic")}e.push(f.charCodeAt(A))}for(var F=j>0?j+1:0;F<n;){var p=s;for(var I=1,x=r;;x+=r){if(F>=n){error$1("invalid-input")}var U=Q(f.charCodeAt(F++));if(U>=r||U>z((v-s)/I)){error$1("overflow")}s+=U*I;var N=x<=w?b:x>=w+g?g:x-w;if(U<N){break}var q=r-N;if(I>z(v/q)){error$1("overflow")}I*=q}var C=e.length+1;w=O(s-p,C,p==0);if(z(s/C)>v-l){error$1("overflow")}l+=z(s/C);s%=C;e.splice(s++,0,l)}return String.fromCodePoint.apply(String,e)};var L=function encode(f){var e=[];f=ucs2decode(f);var n=f.length;var s=E;var l=0;var w=d;var j=true;var A=false;var F=undefined;try{for(var p=f[Symbol.iterator](),I;!(j=(I=p.next()).done);j=true){var x=I.value;if(x<128){e.push(U(x))}}}catch(f){A=true;F=f}finally{try{if(!j&&p.return){p.return()}}finally{if(A){throw F}}}var N=e.length;var Q=N;if(N){e.push(R)}while(Q<n){var C=v;var L=true;var J=false;var T=undefined;try{for(var G=f[Symbol.iterator](),H;!(L=(H=G.next()).done);L=true){var X=H.value;if(X>=s&&X<C){C=X}}}catch(f){J=true;T=f}finally{try{if(!L&&G.return){G.return()}}finally{if(J){throw T}}}var M=Q+1;if(C-s>z((v-l)/M)){error$1("overflow")}l+=(C-s)*M;s=C;var Y=true;var W=false;var B=undefined;try{for(var c=f[Symbol.iterator](),Z;!(Y=(Z=c.next()).done);Y=true){var D=Z.value;if(D<s&&++l>v){error$1("overflow")}if(D==s){var K=l;for(var V=r;;V+=r){var y=V<=w?b:V>=w+g?g:V-w;if(K<y){break}var k=K-y;var h=r-y;e.push(U(q(y+k%h,0)));K=z(k/h)}e.push(U(q(K,0)));w=O(l,M,Q==N);l=0;++Q}}}catch(f){W=true;B=f}finally{try{if(!Y&&c.return){c.return()}}finally{if(W){throw B}}}++l;++s}return e.join("")};var J=function toUnicode(f){return mapDomain(f,function(f){return A.test(f)?C(f.slice(4).toLowerCase()):f})};var T=function toASCII(f){return mapDomain(f,function(f){return F.test(f)?"xn--"+L(f):f})};var G={version:"2.1.0",ucs2:{decode:ucs2decode,encode:N},decode:C,encode:L,toASCII:T,toUnicode:J};var H={};function pctEncChar(f){var e=f.charCodeAt(0);var n=void 0;if(e<16)n="%0"+e.toString(16).toUpperCase();else if(e<128)n="%"+e.toString(16).toUpperCase();else if(e<2048)n="%"+(e>>6|192).toString(16).toUpperCase()+"%"+(e&63|128).toString(16).toUpperCase();else n="%"+(e>>12|224).toString(16).toUpperCase()+"%"+(e>>6&63|128).toString(16).toUpperCase()+"%"+(e&63|128).toString(16).toUpperCase();return n}function pctDecChars(f){var e="";var n=0;var s=f.length;while(n<s){var l=parseInt(f.substr(n+1,2),16);if(l<128){e+=String.fromCharCode(l);n+=3}else if(l>=194&&l<224){if(s-n>=6){var v=parseInt(f.substr(n+4,2),16);e+=String.fromCharCode((l&31)<<6|v&63)}else{e+=f.substr(n,6)}n+=6}else if(l>=224){if(s-n>=9){var r=parseInt(f.substr(n+4,2),16);var b=parseInt(f.substr(n+7,2),16);e+=String.fromCharCode((l&15)<<12|(r&63)<<6|b&63)}else{e+=f.substr(n,9)}n+=9}else{e+=f.substr(n,3);n+=3}}return e}function _normalizeComponentEncoding(f,e){function decodeUnreserved(f){var n=pctDecChars(f);return!n.match(e.UNRESERVED)?f:n}if(f.scheme)f.scheme=String(f.scheme).replace(e.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(e.NOT_SCHEME,"");if(f.userinfo!==undefined)f.userinfo=String(f.userinfo).replace(e.PCT_ENCODED,decodeUnreserved).replace(e.NOT_USERINFO,pctEncChar).replace(e.PCT_ENCODED,toUpperCase);if(f.host!==undefined)f.host=String(f.host).replace(e.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(e.NOT_HOST,pctEncChar).replace(e.PCT_ENCODED,toUpperCase);if(f.path!==undefined)f.path=String(f.path).replace(e.PCT_ENCODED,decodeUnreserved).replace(f.scheme?e.NOT_PATH:e.NOT_PATH_NOSCHEME,pctEncChar).replace(e.PCT_ENCODED,toUpperCase);if(f.query!==undefined)f.query=String(f.query).replace(e.PCT_ENCODED,decodeUnreserved).replace(e.NOT_QUERY,pctEncChar).replace(e.PCT_ENCODED,toUpperCase);if(f.fragment!==undefined)f.fragment=String(f.fragment).replace(e.PCT_ENCODED,decodeUnreserved).replace(e.NOT_FRAGMENT,pctEncChar).replace(e.PCT_ENCODED,toUpperCase);return f}function _stripLeadingZeros(f){return f.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(f,e){var n=f.match(e.IPV4ADDRESS)||[];var l=s(n,2),v=l[1];if(v){return v.split(".").map(_stripLeadingZeros).join(".")}else{return f}}function _normalizeIPv6(f,e){var n=f.match(e.IPV6ADDRESS)||[];var l=s(n,3),v=l[1],r=l[2];if(v){var b=v.toLowerCase().split("::").reverse(),g=s(b,2),w=g[0],j=g[1];var d=j?j.split(":").map(_stripLeadingZeros):[];var E=w.split(":").map(_stripLeadingZeros);var R=e.IPV4ADDRESS.test(E[E.length-1]);var A=R?7:8;var F=E.length-A;var p=Array(A);for(var I=0;I<A;++I){p[I]=d[I]||E[F+I]||""}if(R){p[A-1]=_normalizeIPv4(p[A-1],e)}var x=p.reduce(function(f,e,n){if(!e||e==="0"){var s=f[f.length-1];if(s&&s.index+s.length===n){s.length++}else{f.push({index:n,length:1})}}return f},[]);var z=x.sort(function(f,e){return e.length-f.length})[0];var U=void 0;if(z&&z.length>1){var N=p.slice(0,z.index);var Q=p.slice(z.index+z.length);U=N.join(":")+"::"+Q.join(":")}else{U=p.join(":")}if(r){U+="%"+r}return U}else{return f}}var X=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var M="".match(/(){0}/)[1]===undefined;function parse(f){var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var l={};var v=s.iri!==false?n:e;if(s.reference==="suffix")f=(s.scheme?s.scheme+":":"")+"//"+f;var r=f.match(X);if(r){if(M){l.scheme=r[1];l.userinfo=r[3];l.host=r[4];l.port=parseInt(r[5],10);l.path=r[6]||"";l.query=r[7];l.fragment=r[8];if(isNaN(l.port)){l.port=r[5]}}else{l.scheme=r[1]||undefined;l.userinfo=f.indexOf("@")!==-1?r[3]:undefined;l.host=f.indexOf("//")!==-1?r[4]:undefined;l.port=parseInt(r[5],10);l.path=r[6]||"";l.query=f.indexOf("?")!==-1?r[7]:undefined;l.fragment=f.indexOf("#")!==-1?r[8]:undefined;if(isNaN(l.port)){l.port=f.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?r[4]:undefined}}if(l.host){l.host=_normalizeIPv6(_normalizeIPv4(l.host,v),v)}if(l.scheme===undefined&&l.userinfo===undefined&&l.host===undefined&&l.port===undefined&&!l.path&&l.query===undefined){l.reference="same-document"}else if(l.scheme===undefined){l.reference="relative"}else if(l.fragment===undefined){l.reference="absolute"}else{l.reference="uri"}if(s.reference&&s.reference!=="suffix"&&s.reference!==l.reference){l.error=l.error||"URI is not a "+s.reference+" reference."}var b=H[(s.scheme||l.scheme||"").toLowerCase()];if(!s.unicodeSupport&&(!b||!b.unicodeSupport)){if(l.host&&(s.domainHost||b&&b.domainHost)){try{l.host=G.toASCII(l.host.replace(v.PCT_ENCODED,pctDecChars).toLowerCase())}catch(f){l.error=l.error||"Host's domain name can not be converted to ASCII via punycode: "+f}}_normalizeComponentEncoding(l,e)}else{_normalizeComponentEncoding(l,v)}if(b&&b.parse){b.parse(l,s)}}else{l.error=l.error||"URI can not be parsed."}return l}function _recomposeAuthority(f,s){var l=s.iri!==false?n:e;var v=[];if(f.userinfo!==undefined){v.push(f.userinfo);v.push("@")}if(f.host!==undefined){v.push(_normalizeIPv6(_normalizeIPv4(String(f.host),l),l).replace(l.IPV6ADDRESS,function(f,e,n){return"["+e+(n?"%25"+n:"")+"]"}))}if(typeof f.port==="number"){v.push(":");v.push(f.port.toString(10))}return v.length?v.join(""):undefined}var Y=/^\.\.?\//;var W=/^\/\.(\/|$)/;var B=/^\/\.\.(\/|$)/;var c=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(f){var e=[];while(f.length){if(f.match(Y)){f=f.replace(Y,"")}else if(f.match(W)){f=f.replace(W,"/")}else if(f.match(B)){f=f.replace(B,"/");e.pop()}else if(f==="."||f===".."){f=""}else{var n=f.match(c);if(n){var s=n[0];f=f.slice(s.length);e.push(s)}else{throw new Error("Unexpected dot segment condition")}}}return e.join("")}function serialize(f){var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var l=s.iri?n:e;var v=[];var r=H[(s.scheme||f.scheme||"").toLowerCase()];if(r&&r.serialize)r.serialize(f,s);if(f.host){if(l.IPV6ADDRESS.test(f.host)){}else if(s.domainHost||r&&r.domainHost){try{f.host=!s.iri?G.toASCII(f.host.replace(l.PCT_ENCODED,pctDecChars).toLowerCase()):G.toUnicode(f.host)}catch(e){f.error=f.error||"Host's domain name can not be converted to "+(!s.iri?"ASCII":"Unicode")+" via punycode: "+e}}}_normalizeComponentEncoding(f,l);if(s.reference!=="suffix"&&f.scheme){v.push(f.scheme);v.push(":")}var b=_recomposeAuthority(f,s);if(b!==undefined){if(s.reference!=="suffix"){v.push("//")}v.push(b);if(f.path&&f.path.charAt(0)!=="/"){v.push("/")}}if(f.path!==undefined){var g=f.path;if(!s.absolutePath&&(!r||!r.absolutePath)){g=removeDotSegments(g)}if(b===undefined){g=g.replace(/^\/\//,"/%2F")}v.push(g)}if(f.query!==undefined){v.push("?");v.push(f.query)}if(f.fragment!==undefined){v.push("#");v.push(f.fragment)}return v.join("")}function resolveComponents(f,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var s=arguments[3];var l={};if(!s){f=parse(serialize(f,n),n);e=parse(serialize(e,n),n)}n=n||{};if(!n.tolerant&&e.scheme){l.scheme=e.scheme;l.userinfo=e.userinfo;l.host=e.host;l.port=e.port;l.path=removeDotSegments(e.path||"");l.query=e.query}else{if(e.userinfo!==undefined||e.host!==undefined||e.port!==undefined){l.userinfo=e.userinfo;l.host=e.host;l.port=e.port;l.path=removeDotSegments(e.path||"");l.query=e.query}else{if(!e.path){l.path=f.path;if(e.query!==undefined){l.query=e.query}else{l.query=f.query}}else{if(e.path.charAt(0)==="/"){l.path=removeDotSegments(e.path)}else{if((f.userinfo!==undefined||f.host!==undefined||f.port!==undefined)&&!f.path){l.path="/"+e.path}else if(!f.path){l.path=e.path}else{l.path=f.path.slice(0,f.path.lastIndexOf("/")+1)+e.path}l.path=removeDotSegments(l.path)}l.query=e.query}l.userinfo=f.userinfo;l.host=f.host;l.port=f.port}l.scheme=f.scheme}l.fragment=e.fragment;return l}function resolve(f,e,n){var s=assign({scheme:"null"},n);return serialize(resolveComponents(parse(f,s),parse(e,s),s,true),s)}function normalize(f,e){if(typeof f==="string"){f=serialize(parse(f,e),e)}else if(typeOf(f)==="object"){f=parse(serialize(f,e),e)}return f}function equal(f,e,n){if(typeof f==="string"){f=serialize(parse(f,n),n)}else if(typeOf(f)==="object"){f=serialize(f,n)}if(typeof e==="string"){e=serialize(parse(e,n),n)}else if(typeOf(e)==="object"){e=serialize(e,n)}return f===e}function escapeComponent(f,s){return f&&f.toString().replace(!s||!s.iri?e.ESCAPE:n.ESCAPE,pctEncChar)}function unescapeComponent(f,s){return f&&f.toString().replace(!s||!s.iri?e.PCT_ENCODED:n.PCT_ENCODED,pctDecChars)}var Z={scheme:"http",domainHost:true,parse:function parse(f,e){if(!f.host){f.error=f.error||"HTTP URIs must have a host."}return f},serialize:function serialize(f,e){if(f.port===(String(f.scheme).toLowerCase()!=="https"?80:443)||f.port===""){f.port=undefined}if(!f.path){f.path="/"}return f}};var D={scheme:"https",domainHost:Z.domainHost,parse:Z.parse,serialize:Z.serialize};var K={};var V=true;var y="[A-Za-z0-9\\-\\.\\_\\~"+(V?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var k="[0-9A-Fa-f]";var h=subexp(subexp("%[EFef]"+k+"%"+k+k+"%"+k+k)+"|"+subexp("%[89A-Fa-f]"+k+"%"+k+k)+"|"+subexp("%"+k+k));var a="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var S="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var m=merge(S,'[\\"\\\\]');var P="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var i=new RegExp(y,"g");var _=new RegExp(h,"g");var u=new RegExp(merge("[^]",a,"[\\.]",'[\\"]',m),"g");var o=new RegExp(merge("[^]",y,P),"g");var $=o;function decodeUnreserved(f){var e=pctDecChars(f);return!e.match(i)?f:e}var t={scheme:"mailto",parse:function parse$$1(f,e){var n=f;var s=n.to=n.path?n.path.split(","):[];n.path=undefined;if(n.query){var l=false;var v={};var r=n.query.split("&");for(var b=0,g=r.length;b<g;++b){var w=r[b].split("=");switch(w[0]){case"to":var j=w[1].split(",");for(var d=0,E=j.length;d<E;++d){s.push(j[d])}break;case"subject":n.subject=unescapeComponent(w[1],e);break;case"body":n.body=unescapeComponent(w[1],e);break;default:l=true;v[unescapeComponent(w[0],e)]=unescapeComponent(w[1],e);break}}if(l)n.headers=v}n.query=undefined;for(var R=0,A=s.length;R<A;++R){var F=s[R].split("@");F[0]=unescapeComponent(F[0]);if(!e.unicodeSupport){try{F[1]=G.toASCII(unescapeComponent(F[1],e).toLowerCase())}catch(f){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+f}}else{F[1]=unescapeComponent(F[1],e).toLowerCase()}s[R]=F.join("@")}return n},serialize:function serialize$$1(f,e){var n=f;var s=toArray(f.to);if(s){for(var l=0,v=s.length;l<v;++l){var r=String(s[l]);var b=r.lastIndexOf("@");var g=r.slice(0,b).replace(_,decodeUnreserved).replace(_,toUpperCase).replace(u,pctEncChar);var w=r.slice(b+1);try{w=!e.iri?G.toASCII(unescapeComponent(w,e).toLowerCase()):G.toUnicode(w)}catch(f){n.error=n.error||"Email address's domain name can not be converted to "+(!e.iri?"ASCII":"Unicode")+" via punycode: "+f}s[l]=g+"@"+w}n.path=s.join(",")}var j=f.headers=f.headers||{};if(f.subject)j["subject"]=f.subject;if(f.body)j["body"]=f.body;var d=[];for(var E in j){if(j[E]!==K[E]){d.push(E.replace(_,decodeUnreserved).replace(_,toUpperCase).replace(o,pctEncChar)+"="+j[E].replace(_,decodeUnreserved).replace(_,toUpperCase).replace($,pctEncChar))}}if(d.length){n.query=d.join("&")}return n}};var ff=/^([^\:]+)\:(.*)/;var ef={scheme:"urn",parse:function parse$$1(f,e){var n=f.path&&f.path.match(ff);var s=f;if(n){var l=e.scheme||s.scheme||"urn";var v=n[1].toLowerCase();var r=n[2];var b=l+":"+(e.nid||v);var g=H[b];s.nid=v;s.nss=r;s.path=undefined;if(g){s=g.parse(s,e)}}else{s.error=s.error||"URN can not be parsed."}return s},serialize:function serialize$$1(f,e){var n=e.scheme||f.scheme||"urn";var s=f.nid;var l=n+":"+(e.nid||s);var v=H[l];if(v){f=v.serialize(f,e)}var r=f;var b=f.nss;r.path=(s||e.nid)+":"+b;return r}};var nf=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;var sf={scheme:"urn:uuid",parse:function parse(f,e){var n=f;n.uuid=n.nss;n.nss=undefined;if(!e.tolerant&&(!n.uuid||!n.uuid.match(nf))){n.error=n.error||"UUID is not valid."}return n},serialize:function serialize(f,e){var n=f;n.nss=(f.uuid||"").toLowerCase();return n}};H[Z.scheme]=Z;H[D.scheme]=D;H[t.scheme]=t;H[ef.scheme]=ef;H[sf.scheme]=sf;f.SCHEMES=H;f.pctEncChar=pctEncChar;f.pctDecChars=pctDecChars;f.parse=parse;f.removeDotSegments=removeDotSegments;f.serialize=serialize;f.resolveComponents=resolveComponents;f.resolve=resolve;f.normalize=normalize;f.equal=equal;f.escapeComponent=escapeComponent;f.unescapeComponent=unescapeComponent;Object.defineProperty(f,"__esModule",{value:true})})},175:(f,e,n)=>{"use strict";f.exports=writeFile;f.exports.sync=writeFileSync;f.exports._getTmpname=getTmpname;f.exports._cleanupOnExit=cleanupOnExit;const s=n(5747);const l=n(8681);const v=n(2317);const r=n(5622);const b=n(3010);const g=n(4005);const{promisify:w}=n(1669);const j={};const d=function getId(){try{const f=n(5013);return f.threadId}catch(f){return 0}}();let E=0;function getTmpname(f){return f+"."+l(__filename).hash(String(process.pid)).hash(String(d)).hash(String(++E)).result()}function cleanupOnExit(f){return()=>{try{s.unlinkSync(typeof f==="function"?f():f)}catch(f){}}}function serializeActiveFile(f){return new Promise(e=>{if(!j[f])j[f]=[];j[f].push(e);if(j[f].length===1)e()})}async function writeFileAsync(f,e,n={}){if(typeof n==="string"){n={encoding:n}}let l;let d;const E=v(cleanupOnExit(()=>d));const R=r.resolve(f);try{await serializeActiveFile(R);const v=await w(s.realpath)(f).catch(()=>f);d=getTmpname(v);if(!n.mode||!n.chown){const f=await w(s.stat)(v).catch(()=>{});if(f){if(n.mode==null){n.mode=f.mode}if(n.chown==null&&process.getuid){n.chown={uid:f.uid,gid:f.gid}}}}l=await w(s.open)(d,"w",n.mode);if(n.tmpfileCreated){await n.tmpfileCreated(d)}if(b(e)){e=g(e)}if(Buffer.isBuffer(e)){await w(s.write)(l,e,0,e.length,0)}else if(e!=null){await w(s.write)(l,String(e),0,String(n.encoding||"utf8"))}if(n.fsync!==false){await w(s.fsync)(l)}await w(s.close)(l);l=null;if(n.chown){await w(s.chown)(d,n.chown.uid,n.chown.gid)}if(n.mode){await w(s.chmod)(d,n.mode)}await w(s.rename)(d,v)}finally{if(l){await w(s.close)(l).catch(()=>{})}E();await w(s.unlink)(d).catch(()=>{});j[R].shift();if(j[R].length>0){j[R][0]()}else delete j[R]}}function writeFile(f,e,n,s){if(n instanceof Function){s=n;n={}}const l=writeFileAsync(f,e,n);if(s){l.then(s,s)}return l}function writeFileSync(f,e,n){if(typeof n==="string")n={encoding:n};else if(!n)n={};try{f=s.realpathSync(f)}catch(f){}const l=getTmpname(f);if(!n.mode||!n.chown){try{const e=s.statSync(f);n=Object.assign({},n);if(!n.mode){n.mode=e.mode}if(!n.chown&&process.getuid){n.chown={uid:e.uid,gid:e.gid}}}catch(f){}}let r;const w=cleanupOnExit(l);const j=v(w);let d=true;try{r=s.openSync(l,"w",n.mode);if(n.tmpfileCreated){n.tmpfileCreated(l)}if(b(e)){e=g(e)}if(Buffer.isBuffer(e)){s.writeSync(r,e,0,e.length,0)}else if(e!=null){s.writeSync(r,String(e),0,String(n.encoding||"utf8"))}if(n.fsync!==false){s.fsyncSync(r)}s.closeSync(r);r=null;if(n.chown)s.chownSync(l,n.chown.uid,n.chown.gid);if(n.mode)s.chmodSync(l,n.mode);s.renameSync(l,f);d=false}finally{if(r){try{s.closeSync(r)}catch(f){}}j();if(d){w()}}}},2357:f=>{"use strict";f.exports=require("assert")},6417:f=>{"use strict";f.exports=require("crypto")},8614:f=>{"use strict";f.exports=require("events")},5747:f=>{"use strict";f.exports=require("fs")},4442:f=>{"use strict";f.exports=require("next/dist/compiled/find-up")},2519:f=>{"use strict";f.exports=require("next/dist/compiled/semver")},2087:f=>{"use strict";f.exports=require("os")},5622:f=>{"use strict";f.exports=require("path")},1669:f=>{"use strict";f.exports=require("util")},5013:f=>{"use strict";f.exports=require("worker_threads")}};var e={};function __nccwpck_require__(n){if(e[n]){return e[n].exports}var s=e[n]={id:n,loaded:false,exports:{}};var l=true;try{f[n].call(s.exports,s,s.exports,__nccwpck_require__);l=false}finally{if(l)delete e[n]}s.loaded=true;return s.exports}(()=>{__nccwpck_require__.nmd=(f=>{f.paths=[];if(!f.children)f.children=[];return f})})();__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(3331)})();
\No newline at end of file