@deep-foundation/deeplinks
Version:
[](https://www.npmjs.com/package/@deep-foundation/deeplinks) [](https://gitpod.io/#https://github.com/deep-fo
5 lines • 40.3 kB
JavaScript
const sync__handlers__package = ()=>{let sync__handlers__exports;
/*! For license information please see jsonschema.js.LICENSE.txt */
(()=>{var e={481:(e,t,r)=>{"use strict";var a=r(177),n=a.ValidatorResult,i=a.SchemaError,s={ignoreProperties:{id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0}},o=s.validators={};function h(e,t,r,a,n){var i=t.throwError,s=t.throwAll;t.throwError=!1,t.throwAll=!1;var o=this.validateSchema(e,n,t,r);return t.throwError=i,t.throwAll=s,!o.valid&&a instanceof Function&&a(o),o.valid}function u(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e)for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}function c(e,t,r,a,n,i){if(this.types.object(e)&&(!t.properties||void 0===t.properties[n]))if(!1===t.additionalProperties)i.addError({name:"additionalProperties",argument:n,message:"is not allowed to have the additional property "+JSON.stringify(n)});else{var s=t.additionalProperties||{};"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,n,s,r,a);var o=this.validateSchema(e[n],s,r,a.makeChild(s,n));o.instance!==i.instance[n]&&(i.instance[n]=o.instance),i.importErrors(o)}}o.type=function(e,t,r,a){if(void 0===e)return null;var i=new n(e,t,r,a),s=Array.isArray(t.type)?t.type:[t.type];if(!s.some(this.testType.bind(this,e,t,r,a))){var o=s.map((function(e){if(e){var t=e.$id||e.id;return t?"<"+t+">":e+""}}));i.addError({name:"type",argument:o,message:"is not of a type(s) "+o})}return i},o.anyOf=function(e,t,r,a){if(void 0===e)return null;var s=new n(e,t,r,a),o=new n(e,t,r,a);if(!Array.isArray(t.anyOf))throw new i("anyOf must be an array");if(!t.anyOf.some(h.bind(this,e,r,a,(function(e){o.importErrors(e)})))){var u=t.anyOf.map((function(e,t){var r=e.$id||e.id;return r?"<"+r+">":e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+t+"]"}));r.nestedErrors&&s.importErrors(o),s.addError({name:"anyOf",argument:u,message:"is not any of "+u.join(",")})}return s},o.allOf=function(e,t,r,a){if(void 0===e)return null;if(!Array.isArray(t.allOf))throw new i("allOf must be an array");var s=new n(e,t,r,a),o=this;return t.allOf.forEach((function(t,n){var i=o.validateSchema(e,t,r,a);if(!i.valid){var h=t.$id||t.id||t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+n+"]";s.addError({name:"allOf",argument:{id:h,length:i.errors.length,valid:i},message:"does not match allOf schema "+h+" with "+i.errors.length+" error[s]:"}),s.importErrors(i)}})),s},o.oneOf=function(e,t,r,a){if(void 0===e)return null;if(!Array.isArray(t.oneOf))throw new i("oneOf must be an array");var s=new n(e,t,r,a),o=new n(e,t,r,a),u=t.oneOf.filter(h.bind(this,e,r,a,(function(e){o.importErrors(e)}))).length,c=t.oneOf.map((function(e,t){return e.$id||e.id||e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+t+"]"}));return 1!==u&&(r.nestedErrors&&s.importErrors(o),s.addError({name:"oneOf",argument:c,message:"is not exactly one from "+c.join(",")})),s},o.if=function(e,t,r,i){if(void 0===e)return null;if(!a.isSchema(t.if))throw new Error('Expected "if" keyword to be a schema');var s,o=h.call(this,e,r,i,null,t.if),u=new n(e,t,r,i);if(o){if(void 0===t.then)return;if(!a.isSchema(t.then))throw new Error('Expected "then" keyword to be a schema');s=this.validateSchema(e,t.then,r,i.makeChild(t.then)),u.importErrors(s)}else{if(void 0===t.else)return;if(!a.isSchema(t.else))throw new Error('Expected "else" keyword to be a schema');s=this.validateSchema(e,t.else,r,i.makeChild(t.else)),u.importErrors(s)}return u},o.propertyNames=function(e,t,r,s){if(this.types.object(e)){var o=new n(e,t,r,s),h=void 0!==t.propertyNames?t.propertyNames:{};if(!a.isSchema(h))throw new i('Expected "propertyNames" to be a schema (object or boolean)');for(var c in e)if(void 0!==u(e,c)){var f=this.validateSchema(c,h,r,s.makeChild(h));o.importErrors(f)}return o}},o.properties=function(e,t,r,a){if(this.types.object(e)){var s=new n(e,t,r,a),o=t.properties||{};for(var h in o){var c=o[h];if(void 0!==c){if(null===c)throw new i('Unexpected null, expected schema in "properties"');"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,h,c,r,a);var f=u(e,h),m=this.validateSchema(f,c,r,a.makeChild(c,h));m.instance!==s.instance[h]&&(s.instance[h]=m.instance),s.importErrors(m)}}return s}},o.patternProperties=function(e,t,r,a){if(this.types.object(e)){var s=new n(e,t,r,a),o=t.patternProperties||{};for(var h in e){var u=!0;for(var f in o){var m=o[f];if(void 0!==m){if(null===m)throw new i('Unexpected null, expected schema in "patternProperties"');try{var l=new RegExp(f,"u")}catch(e){l=new RegExp(f)}if(l.test(h)){u=!1,"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,h,m,r,a);var p=this.validateSchema(e[h],m,r,a.makeChild(m,h));p.instance!==s.instance[h]&&(s.instance[h]=p.instance),s.importErrors(p)}}}u&&c.call(this,e,t,r,a,h,s)}return s}},o.additionalProperties=function(e,t,r,a){if(this.types.object(e)){if(t.patternProperties)return null;var i=new n(e,t,r,a);for(var s in e)c.call(this,e,t,r,a,s,i);return i}},o.minProperties=function(e,t,r,a){if(this.types.object(e)){var i=new n(e,t,r,a);return Object.keys(e).length>=t.minProperties||i.addError({name:"minProperties",argument:t.minProperties,message:"does not meet minimum property length of "+t.minProperties}),i}},o.maxProperties=function(e,t,r,a){if(this.types.object(e)){var i=new n(e,t,r,a);return Object.keys(e).length<=t.maxProperties||i.addError({name:"maxProperties",argument:t.maxProperties,message:"does not meet maximum property length of "+t.maxProperties}),i}},o.items=function(e,t,r,a){var i=this;if(this.types.array(e)&&void 0!==t.items){var s=new n(e,t,r,a);return e.every((function(e,n){if(Array.isArray(t.items))var o=void 0===t.items[n]?t.additionalItems:t.items[n];else o=t.items;if(void 0===o)return!0;if(!1===o)return s.addError({name:"items",message:"additionalItems not permitted"}),!1;var h=i.validateSchema(e,o,r,a.makeChild(o,n));return h.instance!==s.instance[n]&&(s.instance[n]=h.instance),s.importErrors(h),!0})),s}},o.contains=function(e,t,r,i){var s=this;if(this.types.array(e)&&void 0!==t.contains){if(!a.isSchema(t.contains))throw new Error('Expected "contains" keyword to be a schema');var o=new n(e,t,r,i);return!1===e.some((function(e,a){return 0===s.validateSchema(e,t.contains,r,i.makeChild(t.contains,a)).errors.length}))&&o.addError({name:"contains",argument:t.contains,message:"must contain an item matching given schema"}),o}},o.minimum=function(e,t,r,a){if(this.types.number(e)){var i=new n(e,t,r,a);return t.exclusiveMinimum&&!0===t.exclusiveMinimum?e>t.minimum||i.addError({name:"minimum",argument:t.minimum,message:"must be greater than "+t.minimum}):e>=t.minimum||i.addError({name:"minimum",argument:t.minimum,message:"must be greater than or equal to "+t.minimum}),i}},o.maximum=function(e,t,r,a){if(this.types.number(e)){var i=new n(e,t,r,a);return t.exclusiveMaximum&&!0===t.exclusiveMaximum?e<t.maximum||i.addError({name:"maximum",argument:t.maximum,message:"must be less than "+t.maximum}):e<=t.maximum||i.addError({name:"maximum",argument:t.maximum,message:"must be less than or equal to "+t.maximum}),i}},o.exclusiveMinimum=function(e,t,r,a){if("boolean"!=typeof t.exclusiveMinimum&&this.types.number(e)){var i=new n(e,t,r,a);return e>t.exclusiveMinimum||i.addError({name:"exclusiveMinimum",argument:t.exclusiveMinimum,message:"must be strictly greater than "+t.exclusiveMinimum}),i}},o.exclusiveMaximum=function(e,t,r,a){if("boolean"!=typeof t.exclusiveMaximum&&this.types.number(e)){var i=new n(e,t,r,a);return e<t.exclusiveMaximum||i.addError({name:"exclusiveMaximum",argument:t.exclusiveMaximum,message:"must be strictly less than "+t.exclusiveMaximum}),i}};var f=function(e,t,r,s,o,h){if(this.types.number(e)){var u=t[o];if(0==u)throw new i(o+" cannot be zero");var c=new n(e,t,r,s),f=a.getDecimalPlaces(e),m=a.getDecimalPlaces(u),l=Math.max(f,m),p=Math.pow(10,l);return Math.round(e*p)%Math.round(u*p)!=0&&c.addError({name:o,argument:u,message:h+JSON.stringify(u)}),c}};function m(e,t,r){var n,i=r.length;for(n=t+1;n<i;n++)if(a.deepCompareStrict(e,r[n]))return!1;return!0}o.multipleOf=function(e,t,r,a){return f.call(this,e,t,r,a,"multipleOf","is not a multiple of (divisible by) ")},o.divisibleBy=function(e,t,r,a){return f.call(this,e,t,r,a,"divisibleBy","is not divisible by (multiple of) ")},o.required=function(e,t,r,a){var i=new n(e,t,r,a);return void 0===e&&!0===t.required?i.addError({name:"required",message:"is required"}):this.types.object(e)&&Array.isArray(t.required)&&t.required.forEach((function(t){void 0===u(e,t)&&i.addError({name:"required",argument:t,message:"requires property "+JSON.stringify(t)})})),i},o.pattern=function(e,t,r,a){if(this.types.string(e)){var i=new n(e,t,r,a),s=t.pattern;try{var o=new RegExp(s,"u")}catch(e){o=new RegExp(s)}return e.match(o)||i.addError({name:"pattern",argument:t.pattern,message:"does not match pattern "+JSON.stringify(t.pattern.toString())}),i}},o.format=function(e,t,r,i){if(void 0!==e){var s=new n(e,t,r,i);return s.disableFormat||a.isFormat(e,t.format,this)||s.addError({name:"format",argument:t.format,message:"does not conform to the "+JSON.stringify(t.format)+" format"}),s}},o.minLength=function(e,t,r,a){if(this.types.string(e)){var i=new n(e,t,r,a),s=e.match(/[\uDC00-\uDFFF]/g);return e.length-(s?s.length:0)>=t.minLength||i.addError({name:"minLength",argument:t.minLength,message:"does not meet minimum length of "+t.minLength}),i}},o.maxLength=function(e,t,r,a){if(this.types.string(e)){var i=new n(e,t,r,a),s=e.match(/[\uDC00-\uDFFF]/g);return e.length-(s?s.length:0)<=t.maxLength||i.addError({name:"maxLength",argument:t.maxLength,message:"does not meet maximum length of "+t.maxLength}),i}},o.minItems=function(e,t,r,a){if(this.types.array(e)){var i=new n(e,t,r,a);return e.length>=t.minItems||i.addError({name:"minItems",argument:t.minItems,message:"does not meet minimum length of "+t.minItems}),i}},o.maxItems=function(e,t,r,a){if(this.types.array(e)){var i=new n(e,t,r,a);return e.length<=t.maxItems||i.addError({name:"maxItems",argument:t.maxItems,message:"does not meet maximum length of "+t.maxItems}),i}},o.uniqueItems=function(e,t,r,a){if(!0===t.uniqueItems&&this.types.array(e)){var i=new n(e,t,r,a);return e.every(m)||i.addError({name:"uniqueItems",message:"contains duplicate item"}),i}},o.dependencies=function(e,t,r,a){if(this.types.object(e)){var i=new n(e,t,r,a);for(var s in t.dependencies)if(void 0!==e[s]){var o=t.dependencies[s],h=a.makeChild(o,s);if("string"==typeof o&&(o=[o]),Array.isArray(o))o.forEach((function(t){void 0===e[t]&&i.addError({name:"dependencies",argument:h.propertyPath,message:"property "+t+" not found, required by "+h.propertyPath})}));else{var u=this.validateSchema(e,o,r,h);i.instance!==u.instance&&(i.instance=u.instance),u&&u.errors.length&&(i.addError({name:"dependencies",argument:h.propertyPath,message:"does not meet dependency required by "+h.propertyPath}),i.importErrors(u))}}return i}},o.enum=function(e,t,r,s){if(void 0===e)return null;if(!Array.isArray(t.enum))throw new i("enum expects an array",t);var o=new n(e,t,r,s);return t.enum.some(a.deepCompareStrict.bind(null,e))||o.addError({name:"enum",argument:t.enum,message:"is not one of enum values: "+t.enum.map(String).join(",")}),o},o.const=function(e,t,r,i){if(void 0===e)return null;var s=new n(e,t,r,i);return a.deepCompareStrict(t.const,e)||s.addError({name:"const",argument:t.const,message:"does not exactly match expected constant: "+t.const}),s},o.not=o.disallow=function(e,t,r,a){var i=this;if(void 0===e)return null;var s=new n(e,t,r,a),o=t.not||t.disallow;return o?(Array.isArray(o)||(o=[o]),o.forEach((function(n){if(i.testType(e,t,r,a,n)){var o=n&&(n.$id||n.id)||n;s.addError({name:"not",argument:o,message:"is of prohibited type "+o})}})),s):null},e.exports=s},177:(e,t,r)=>{"use strict";var a=r(575),n=t.ValidationError=function(e,t,r,a,n,i){if(Array.isArray(a)?(this.path=a,this.property=a.reduce((function(e,t){return e+f(t)}),"instance")):void 0!==a&&(this.property=a),e&&(this.message=e),r){var s=r.$id||r.id;this.schema=s||r}void 0!==t&&(this.instance=t),this.name=n,this.argument=i,this.stack=this.toString()};n.prototype.toString=function(){return this.property+" "+this.message};var i=t.ValidatorResult=function(e,t,r,a){this.instance=e,this.schema=t,this.options=r,this.path=a.path,this.propertyPath=a.propertyPath,this.errors=[],this.throwError=r&&r.throwError,this.throwFirst=r&&r.throwFirst,this.throwAll=r&&r.throwAll,this.disableFormat=r&&!0===r.disableFormat};function s(e,t){return t+": "+e.toString()+"\n"}function o(e){Error.captureStackTrace&&Error.captureStackTrace(this,o),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}i.prototype.addError=function(e){var t;if("string"==typeof e)t=new n(e,this.instance,this.schema,this.path);else{if(!e)throw new Error("Missing error detail");if(!e.message)throw new Error("Missing error message");if(!e.name)throw new Error("Missing validator type");t=new n(e.message,this.instance,this.schema,this.path,e.name,e.argument)}if(this.errors.push(t),this.throwFirst)throw new o(this);if(this.throwError)throw t;return t},i.prototype.importErrors=function(e){"string"==typeof e||e&&e.validatorType?this.addError(e):e&&e.errors&&(this.errors=this.errors.concat(e.errors))},i.prototype.toString=function(e){return this.errors.map(s).join("")},Object.defineProperty(i.prototype,"valid",{get:function(){return!this.errors.length}}),e.exports.ValidatorResultError=o,o.prototype=new Error,o.prototype.constructor=o,o.prototype.name="Validation Error";var h=t.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),Error.captureStackTrace(this,e)};h.prototype=Object.create(Error.prototype,{constructor:{value:h,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var u=t.SchemaContext=function(e,t,r,a,n){this.schema=e,this.options=t,Array.isArray(r)?(this.path=r,this.propertyPath=r.reduce((function(e,t){return e+f(t)}),"instance")):this.propertyPath=r,this.base=a,this.schemas=n};u.prototype.resolve=function(e){return a.resolve(this.base,e)},u.prototype.makeChild=function(e,t){var r=void 0===t?this.path:this.path.concat([t]),n=e.$id||e.id,i=a.resolve(this.base,n||""),s=new u(e,this.options,r,i,Object.create(this.schemas));return n&&!s.schemas[i]&&(s.schemas[i]=e),s};var c=t.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}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=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(e){return"string"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};c.regexp=c.regex,c.pattern=c.regex,c.ipv4=c["ip-address"],t.isFormat=function(e,t,r){if("string"==typeof e&&void 0!==c[t]){if(c[t]instanceof RegExp)return c[t].test(e);if("function"==typeof c[t])return c[t](e)}else if(r&&r.customFormats&&"function"==typeof r.customFormats[t])return r.customFormats[t](e);return!0};var f=t.makeSuffix=function(e){return(e=e.toString()).match(/[.\s\[\]]/)||e.match(/^[\d]/)?e.match(/^\d+$/)?"["+e+"]":"["+JSON.stringify(e)+"]":"."+e};function m(e,t,r,a){"object"==typeof r?t[a]=d(e[a],r):-1===e.indexOf(r)&&t.push(r)}function l(e,t,r){t[r]=e[r]}function p(e,t,r,a){"object"==typeof t[a]&&t[a]&&e[a]?r[a]=d(e[a],t[a]):r[a]=t[a]}function d(e,t){var r=Array.isArray(t),a=r&&[]||{};return r?(e=e||[],a=a.concat(e),t.forEach(m.bind(null,e,a))):(e&&"object"==typeof e&&Object.keys(e).forEach(l.bind(null,e,a)),Object.keys(t).forEach(p.bind(null,e,t,a))),a}function v(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}t.deepCompareStrict=function e(t,r){if(typeof t!=typeof r)return!1;if(Array.isArray(t))return!!Array.isArray(r)&&t.length===r.length&&t.every((function(a,n){return e(t[n],r[n])}));if("object"==typeof t){if(!t||!r)return t===r;var a=Object.keys(t),n=Object.keys(r);return a.length===n.length&&a.every((function(a){return e(t[a],r[a])}))}return t===r},e.exports.deepMerge=d,t.objectGetPath=function(e,t){for(var r,a=t.split("/").slice(1);"string"==typeof(r=a.shift());){var n=decodeURIComponent(r.replace(/~0/,"~").replace(/~1/g,"/"));if(!(n in e))return;e=e[n]}return e},t.encodePath=function(e){return e.map(v).join("")},t.getDecimalPlaces=function(e){var t=0;if(isNaN(e))return t;"number"!=typeof e&&(e=Number(e));var r=e.toString().split("e");if(2===r.length){if("-"!==r[1][0])return t;t=Number(r[1].slice(1))}var a=r[0].split(".");return 2===a.length&&(t+=a[1].length),t},t.isSchema=function(e){return"object"==typeof e&&e||"boolean"==typeof e}},660:(e,t,r)=>{"use strict";var a=e.exports.Validator=r(58);e.exports.ValidatorResult=r(177).ValidatorResult,e.exports.ValidatorResultError=r(177).ValidatorResultError,e.exports.ValidationError=r(177).ValidationError,e.exports.SchemaError=r(177).SchemaError,e.exports.SchemaScanResult=r(287).SchemaScanResult,e.exports.scan=r(287).scan,e.exports.validate=function(e,t,r){return(new a).validate(e,t,r)},sync__handlers__exports=e.exports},287:(e,t,r)=>{"use strict";var a=r(575),n=r(177);function i(e,t){this.id=e,this.ref=t}e.exports.SchemaScanResult=i,e.exports.scan=function(e,t){function r(e,t){if(t&&"object"==typeof t)if(t.$ref){var i=a.resolve(e,t.$ref);u[i]=u[i]?u[i]+1:0}else{var c=t.$id||t.id,f=c?a.resolve(e,c):e;if(f){if(f.indexOf("#")<0&&(f+="#"),h[f]){if(!n.deepCompareStrict(h[f],t))throw new Error("Schema <"+f+"> already exists with different definition");return h[f]}h[f]=t,"#"==f[f.length-1]&&(h[f.substring(0,f.length-1)]=t)}s(f+"/items",Array.isArray(t.items)?t.items:[t.items]),s(f+"/extends",Array.isArray(t.extends)?t.extends:[t.extends]),r(f+"/additionalItems",t.additionalItems),o(f+"/properties",t.properties),r(f+"/additionalProperties",t.additionalProperties),o(f+"/definitions",t.definitions),o(f+"/patternProperties",t.patternProperties),o(f+"/dependencies",t.dependencies),s(f+"/disallow",t.disallow),s(f+"/allOf",t.allOf),s(f+"/anyOf",t.anyOf),s(f+"/oneOf",t.oneOf),r(f+"/not",t.not)}}function s(e,t){if(Array.isArray(t))for(var a=0;a<t.length;a++)r(e+"/"+a,t[a])}function o(e,t){if(t&&"object"==typeof t)for(var a in t)r(e+"/"+a,t[a])}var h={},u={};return r(e,t),new i(h,u)}},58:(e,t,r)=>{"use strict";var a=r(575),n=r(481),i=r(177),s=r(287).scan,o=i.ValidatorResult,h=i.ValidatorResultError,u=i.SchemaError,c=i.SchemaContext,f=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(l),this.attributes=Object.create(n.validators)};function m(e){var t="string"==typeof e?e:e.$ref;return"string"==typeof t&&t}f.prototype.customFormats={},f.prototype.schemas=null,f.prototype.types=null,f.prototype.attributes=null,f.prototype.unresolvedRefs=null,f.prototype.addSchema=function(e,t){var r=this;if(!e)return null;var a=s(t||"/",e),n=t||e.$id||e.id;for(var i in a.id)this.schemas[i]=a.id[i];for(var i in a.ref)this.unresolvedRefs.push(i);return this.unresolvedRefs=this.unresolvedRefs.filter((function(e){return void 0===r.schemas[e]})),this.schemas[n]},f.prototype.addSubSchemaArray=function(e,t){if(Array.isArray(t))for(var r=0;r<t.length;r++)this.addSubSchema(e,t[r])},f.prototype.addSubSchemaObject=function(e,t){if(t&&"object"==typeof t)for(var r in t)this.addSubSchema(e,t[r])},f.prototype.setSchemas=function(e){this.schemas=e},f.prototype.getSchema=function(e){return this.schemas[e]},f.prototype.validate=function(e,t,r,n){if("boolean"!=typeof t&&"object"!=typeof t||null===t)throw new u("Expected `schema` to be an object or boolean");r||(r={});var i,f=t.$id||t.id,m=a.resolve(r.base||"/",f||"");if(!n){(n=new c(t,r,[],m,Object.create(this.schemas))).schemas[m]||(n.schemas[m]=t);var l=s(m,t);for(var p in l.id){var d=l.id[p];n.schemas[p]=d}}if(r.required&&void 0===e)return(i=new o(e,t,r,n)).addError("is required, but is undefined"),i;if(!(i=this.validateSchema(e,t,r,n)))throw new Error("Result undefined");if(r.throwAll&&i.errors.length)throw new h(i);return i},f.prototype.validateSchema=function(e,t,r,a){var s=new o(e,t,r,a);if("boolean"==typeof t)!0===t?t={}:!1===t&&(t={type:[]});else if(!t)throw new Error("schema is undefined");if(t.extends)if(Array.isArray(t.extends)){var h={schema:t,ctx:a};t.extends.forEach(this.schemaTraverser.bind(this,h)),t=h.schema,h.schema=null,h.ctx=null,h=null}else t=i.deepMerge(t,this.superResolve(t.extends,a));var f=m(t);if(f){var l=this.resolve(t,f,a),p=new c(l.subschema,r,a.path,l.switchSchema,a.schemas);return this.validateSchema(e,l.subschema,r,p)}var d=r&&r.skipAttributes||[];for(var v in t)if(!n.ignoreProperties[v]&&d.indexOf(v)<0){var y=null,g=this.attributes[v];if(g)y=g.call(this,e,t,r,a);else if(!1===r.allowUnknownAttributes)throw new u("Unsupported attribute: "+v,t);y&&s.importErrors(y)}if("function"==typeof r.rewrite){var A=r.rewrite.call(this,e,t,r,a);s.instance=A}return s},f.prototype.schemaTraverser=function(e,t){e.schema=i.deepMerge(e.schema,this.superResolve(t,e.ctx))},f.prototype.superResolve=function(e,t){var r=m(e);return r?this.resolve(e,r,t).subschema:e},f.prototype.resolve=function(e,t,r){if(t=r.resolve(t),r.schemas[t])return{subschema:r.schemas[t],switchSchema:t};var n=a.parse(t),s=n&&n.hash,o=s&&s.length&&t.substr(0,t.length-s.length);if(!o||!r.schemas[o])throw new u("no such schema <"+t+">",e);var h=i.objectGetPath(r.schemas[o],s.substr(1));if(void 0===h)throw new u("no such schema "+s+" located in <"+o+">",e);return{subschema:h,switchSchema:t}},f.prototype.testType=function(e,t,r,a,n){if(void 0!==n){if(null===n)throw new u('Unexpected null in "type" keyword');if("function"==typeof this.types[n])return this.types[n].call(this,e);if(n&&"object"==typeof n){var i=this.validateSchema(e,n,r,a);return void 0===i||!(i&&i.errors.length)}return!0}};var l=f.prototype.types={};l.string=function(e){return"string"==typeof e},l.number=function(e){return"number"==typeof e&&isFinite(e)},l.integer=function(e){return"number"==typeof e&&e%1==0},l.boolean=function(e){return"boolean"==typeof e},l.array=function(e){return Array.isArray(e)},l.null=function(e){return null===e},l.date=function(e){return e instanceof Date},l.any=function(e){return!0},l.object=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&!(e instanceof Date)},e.exports=f},587:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,a,n){r=r||"&",a=a||"=";var i={};if("string"!=typeof e||0===e.length)return i;var s=/\+/g;e=e.split(r);var o=1e3;n&&"number"==typeof n.maxKeys&&(o=n.maxKeys);var h=e.length;o>0&&h>o&&(h=o);for(var u=0;u<h;++u){var c,f,m,l,p=e[u].replace(s,"%20"),d=p.indexOf(a);d>=0?(c=p.substr(0,d),f=p.substr(d+1)):(c=p,f=""),m=decodeURIComponent(c),l=decodeURIComponent(f),t(i,m)?Array.isArray(i[m])?i[m].push(l):i[m]=[i[m],l]:i[m]=l}return i}},361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,a,n){return r=r||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(n){var i=encodeURIComponent(t(n))+a;return Array.isArray(e[n])?e[n].map((function(e){return i+encodeURIComponent(t(e))})).join(r):i+encodeURIComponent(t(e[n]))})).join(r):n?encodeURIComponent(t(n))+a+encodeURIComponent(t(e)):""}},673:(e,t,r)=>{"use strict";t.decode=t.parse=r(587),t.encode=t.stringify=r(361)},511:function(e,t,r){var a;e=r.nmd(e),function(n){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var s,o=2147483647,h=36,u=26,c=38,f=700,m=/^xn--/,l=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=h-1,y=Math.floor,g=String.fromCharCode;function A(e){throw RangeError(d[e])}function F(e,t){for(var r=e.length,a=[];r--;)a[r]=t(e[r]);return a}function b(e,t){var r=e.split("@"),a="";return r.length>1&&(a=r[0]+"@",e=r[1]),a+F((e=e.replace(p,".")).split("."),t).join(".")}function w(e){for(var t,r,a=[],n=0,i=e.length;n<i;)(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<i?56320==(64512&(r=e.charCodeAt(n++)))?a.push(((1023&t)<<10)+(1023&r)+65536):(a.push(t),n--):a.push(t);return a}function x(e){return F(e,(function(e){var t="";return e>65535&&(t+=g((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+g(e)})).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function z(e,t,r){var a=0;for(e=r?y(e/f):e>>1,e+=y(e/t);e>v*u>>1;a+=h)e=y(e/v);return y(a+(v+1)*e/(e+c))}function Z(e){var t,r,a,n,i,s,c,f,m,l,p,d=[],v=e.length,g=0,F=128,b=72;for((r=e.lastIndexOf("-"))<0&&(r=0),a=0;a<r;++a)e.charCodeAt(a)>=128&&A("not-basic"),d.push(e.charCodeAt(a));for(n=r>0?r+1:0;n<v;){for(i=g,s=1,c=h;n>=v&&A("invalid-input"),((f=(p=e.charCodeAt(n++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:h)>=h||f>y((o-g)/s))&&A("overflow"),g+=f*s,!(f<(m=c<=b?1:c>=b+u?u:c-b));c+=h)s>y(o/(l=h-m))&&A("overflow"),s*=l;b=z(g-i,t=d.length+1,0==i),y(g/t)>o-F&&A("overflow"),F+=y(g/t),g%=t,d.splice(g++,0,F)}return x(d)}function $(e){var t,r,a,n,i,s,c,f,m,l,p,d,v,F,b,x=[];for(d=(e=w(e)).length,t=128,r=0,i=72,s=0;s<d;++s)(p=e[s])<128&&x.push(g(p));for(a=n=x.length,n&&x.push("-");a<d;){for(c=o,s=0;s<d;++s)(p=e[s])>=t&&p<c&&(c=p);for(c-t>y((o-r)/(v=a+1))&&A("overflow"),r+=(c-t)*v,t=c,s=0;s<d;++s)if((p=e[s])<t&&++r>o&&A("overflow"),p==t){for(f=r,m=h;!(f<(l=m<=i?1:m>=i+u?u:m-i));m+=h)b=f-l,F=h-l,x.push(g(E(l+b%F,0))),f=y(b/F);x.push(g(E(f,0))),i=z(r,v,a==n),r=0,++a}++r,++t}return x.join("")}s={version:"1.3.2",ucs2:{decode:w,encode:x},decode:Z,encode:$,toASCII:function(e){return b(e,(function(e){return l.test(e)?"xn--"+$(e):e}))},toUnicode:function(e){return b(e,(function(e){return m.test(e)?Z(e.slice(4).toLowerCase()):e}))}},void 0===(a=function(){return s}.call(t,r,t,e))||(e.exports=a)}()},575:(e,t,r)=>{"use strict";var a=r(511),n=r(502);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=A,t.resolve=function(e,t){return A(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?A(e,!1,!0).resolveObject(t):t},t.format=function(e){return n.isString(e)&&(e=A(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var s=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,h=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),f=["%","/","?",";","#"].concat(c),m=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(673);function A(e,t,r){if(e&&n.isObject(e)&&e instanceof i)return e;var a=new i;return a.parse(e,t,r),a}i.prototype.parse=function(e,t,r){if(!n.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),o=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(o);u[0]=u[0].replace(/\\/g,"/");var A=e=u.join(o);if(A=A.trim(),!r&&1===e.split("#").length){var F=h.exec(A);if(F)return this.path=A,this.href=A,this.pathname=F[1],F[2]?(this.search=F[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var b=s.exec(A);if(b){var w=(b=b[0]).toLowerCase();this.protocol=w,A=A.substr(b.length)}if(r||b||A.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===A.substr(0,2);!x||b&&v[b]||(A=A.substr(2),this.slashes=!0)}if(!v[b]&&(x||b&&!y[b])){for(var E,z,Z=-1,$=0;$<m.length;$++)-1!==(S=A.indexOf(m[$]))&&(-1===Z||S<Z)&&(Z=S);for(-1!==(z=-1===Z?A.lastIndexOf("@"):A.lastIndexOf("@",Z))&&(E=A.slice(0,z),A=A.slice(z+1),this.auth=decodeURIComponent(E)),Z=-1,$=0;$<f.length;$++){var S;-1!==(S=A.indexOf(f[$]))&&(-1===Z||S<Z)&&(Z=S)}-1===Z&&(Z=A.length),this.host=A.slice(0,Z),A=A.slice(Z),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var j=this.hostname.split(/\./),_=($=0,j.length);$<_;$++){var P=j[$];if(P&&!P.match(l)){for(var C="",R=0,I=P.length;R<I;R++)P.charCodeAt(R)>127?C+="x":C+=P[R];if(!C.match(l)){var q=j.slice(0,$),k=j.slice($+1),M=P.match(p);M&&(q.push(M[1]),k.unshift(M[2])),k.length&&(A="/"+k.join(".")+A),this.hostname=q.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=a.toASCII(this.hostname));var V=this.port?":"+this.port:"",N=this.hostname||"";this.host=N+V,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==A[0]&&(A="/"+A))}if(!d[w])for($=0,_=c.length;$<_;$++){var U=c[$];if(-1!==A.indexOf(U)){var T=encodeURIComponent(U);T===U&&(T=escape(U)),A=A.split(U).join(T)}}var L=A.indexOf("#");-1!==L&&(this.hash=A.substr(L),A=A.slice(0,L));var D=A.indexOf("?");if(-1!==D?(this.search=A.substr(D),this.query=A.substr(D+1),t&&(this.query=g.parse(this.query)),A=A.slice(0,D)):t&&(this.search="",this.query={}),A&&(this.pathname=A),y[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){V=this.pathname||"";var J=this.search||"";this.path=V+J}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",a=this.hash||"",i=!1,s="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&n.isObject(this.query)&&Object.keys(this.query).length&&(s=g.stringify(this.query));var o=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),a&&"#"!==a.charAt(0)&&(a="#"+a),o&&"?"!==o.charAt(0)&&(o="?"+o),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(o=o.replace("#","%23"))+a},i.prototype.resolve=function(e){return this.resolveObject(A(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(n.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,a=Object.keys(this),s=0;s<a.length;s++){var o=a[s];r[o]=this[o]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var h=Object.keys(e),u=0;u<h.length;u++){var c=h[u];"protocol"!==c&&(r[c]=e[c])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var f=Object.keys(e),m=0;m<f.length;m++){var l=f[m];r[l]=e[l]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||v[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",g=r.search||"";r.path=d+g}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var A=r.pathname&&"/"===r.pathname.charAt(0),F=e.host||e.pathname&&"/"===e.pathname.charAt(0),b=F||A||r.host&&e.pathname,w=b,x=r.pathname&&r.pathname.split("/")||[],E=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(E&&(r.hostname="",r.port=null,r.host&&(""===x[0]?x[0]=r.host:x.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),b=b&&(""===p[0]||""===x[0])),F)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,x=p;else if(p.length)x||(x=[]),x.pop(),x=x.concat(p),r.search=e.search,r.query=e.query;else if(!n.isNullOrUndefined(e.search))return E&&(r.hostname=r.host=x.shift(),(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift())),r.search=e.search,r.query=e.query,n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var z=x.slice(-1)[0],Z=(r.host||e.host||x.length>1)&&("."===z||".."===z)||""===z,$=0,S=x.length;S>=0;S--)"."===(z=x[S])?x.splice(S,1):".."===z?(x.splice(S,1),$++):$&&(x.splice(S,1),$--);if(!b&&!w)for(;$--;$)x.unshift("..");!b||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),Z&&"/"!==x.join("/").substr(-1)&&x.push("");var O,j=""===x[0]||x[0]&&"/"===x[0].charAt(0);return E&&(r.hostname=r.host=j?"":x.length?x.shift():"",(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift())),(b=b||r.host&&x.length)&&!j&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=o.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},502:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}}},t={};function r(a){var n=t[a];if(void 0!==n)return n.exports;var i=t[a]={id:a,loaded:!1,exports:{}};return e[a].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r(660)})();return sync__handlers__exports;}
exports.code = sync__handlers__package.toString();
console.log("ok");