UNPKG

dependency-cruiser

Version:

Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.

1 lines 157 kB
"use strict";export const validate=de;export default de;const Ie={type:"string",enum:["error","warn","info","ignore"]};const Qe={type:"object",required:["from","to"],additionalProperties:!1,properties:{name:{type:"string"},severity:{$ref:"#/definitions/SeverityType"},scope:{type:"string",enum:["module","folder"]},comment:{type:"string"},from:{$ref:"#/definitions/FromRestrictionType"},to:{$ref:"#/definitions/ToRestrictionType"}}};function ue(s,{instancePath:t="",parentData:V,parentDataProperty:H,rootData:S=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){const m=e;for(const p in s)if(!(p==="path"||p==="pathNot"||p==="orphan")){return ue.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"}],!1;break}if(m===e){if(s.path!==void 0){let p=s.path;const h=e,P=e;let l=!1,o=null;const c=e;if(typeof p!="string"){const w={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[w]:r.push(w),e++}var f=c===e;f&&(l=!0,o=0);const T=e;if(e===T)if(Array.isArray(p)){var a=!0;const w=p.length;for(let k=0;k<w;k++){const A=e;if(typeof p[k]!="string"){const G={instancePath:t+"/path/"+k,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[G]:r.push(G),e++}var a=A===e;if(!a)break}}else{const w={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[w]:r.push(w),e++}var f=T===e;if(f&&l?(l=!1,o=[o,1]):f&&(l=!0,o=1),l)e=P,r!==null&&(P?r.length=P:r=null);else{const w={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf"};return r===null?r=[w]:r.push(w),e++,ue.errors=r,!1}var n=h===e}else var n=!0;if(n){if(s.pathNot!==void 0){let p=s.pathNot;const h=e,P=e;let l=!1,o=null;const c=e;if(typeof p!="string"){const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[k]:r.push(k),e++}var d=c===e;d&&(l=!0,o=0);const T=e;if(e===T)if(Array.isArray(p)){var i=!0;const k=p.length;for(let A=0;A<k;A++){const I=e;if(typeof p[A]!="string"){const z={instancePath:t+"/pathNot/"+A,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[z]:r.push(z),e++}var i=I===e;if(!i)break}}else{const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[k]:r.push(k),e++}var d=T===e;if(d&&l?(l=!1,o=[o,1]):d&&(l=!0,o=1),l)e=P,r!==null&&(P?r.length=P:r=null);else{const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf"};return r===null?r=[k]:r.push(k),e++,ue.errors=r,!1}var n=h===e}else var n=!0;if(n)if(s.orphan!==void 0){const p=e;if(typeof s.orphan!="boolean")return ue.errors=[{instancePath:t+"/orphan",schemaPath:"#/properties/orphan/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var n=p===e}else var n=!0}}}else return ue.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ue.errors=r,e===0}const We={type:"object",additionalProperties:!1,properties:{path:{$ref:"#/definitions/REAsStringsType"},pathNot:{$ref:"#/definitions/REAsStringsType"},couldNotResolve:{type:"boolean"},circular:{type:"boolean"},dynamic:{type:"boolean"},exoticallyRequired:{type:"boolean"},exoticRequire:{$ref:"#/definitions/REAsStringsType"},exoticRequireNot:{$ref:"#/definitions/REAsStringsType"},preCompilationOnly:{type:"boolean"},dependencyTypes:{type:"array",items:{$ref:"#/definitions/DependencyTypeType"}},dependencyTypesNot:{type:"array",items:{$ref:"#/definitions/DependencyTypeType"}},moreThanOneDependencyType:{type:"boolean"},license:{$ref:"#/definitions/REAsStringsType"},licenseNot:{$ref:"#/definitions/REAsStringsType"},via:{$ref:"#/definitions/MiniDependencyRestrictionType"},viaOnly:{$ref:"#/definitions/MiniDependencyRestrictionType"},viaNot:{deprecated:!0,$ref:"#/definitions/REAsStringsType"},viaSomeNot:{deprecated:!0,$ref:"#/definitions/REAsStringsType"},moreUnstable:{type:"boolean"},ancestor:{type:"boolean"}}},Ce={type:"string",enum:["aliased-subpath-import","aliased-tsconfig-base-url","aliased-tsconfig-paths","aliased-tsconfig","aliased-webpack","aliased-workspace","aliased","amd-define","amd-require","amd-exotic-require","core","deprecated","dynamic-import","exotic-require","export","import-equals","import","jsdoc","jsdoc-bracket-import","jsdoc-import-tag","local","localmodule","npm-bundled","npm-dev","npm-no-pkg","npm-optional","npm-peer","npm-unknown","npm","pre-compilation-only","process-get-builtin-module","require","triple-slash-amd-dependency","triple-slash-directive","triple-slash-file-reference","triple-slash-type-reference","type-import","type-only","undetermined","unknown"]},Ue=Object.prototype.hasOwnProperty;function Se(s,{instancePath:t="",parentData:V,parentDataProperty:H,rootData:S=s}={}){let r=null,e=0;const a=e;let f=!1,n=null;const i=e,d=e;let m=!1,p=null;const h=e;if(typeof s!="string"){const R={instancePath:t,schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[R]:r.push(R),e++}var o=h===e;o&&(m=!0,p=0);const P=e;if(e===P)if(Array.isArray(s)){var l=!0;const R=s.length;for(let q=0;q<R;q++){const C=e;if(typeof s[q]!="string"){const _={instancePath:t+"/"+q,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[_]:r.push(_),e++}var l=C===e;if(!l)break}}else{const R={instancePath:t,schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[R]:r.push(R),e++}var o=P===e;if(o&&m?(m=!1,p=[p,1]):o&&(m=!0,p=1),m)e=d,r!==null&&(d?r.length=d:r=null);else{const R={instancePath:t,schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf"};r===null?r=[R]:r.push(R),e++}var se=i===e;se&&(f=!0,n=0);const c=e;if(e===c)if(s&&typeof s=="object"&&!Array.isArray(s)){const R=e;for(const q in s)if(!(q==="path"||q==="pathNot"||q==="dependencyTypes"||q==="dependencyTypesNot")){const C={instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:q},message:"must NOT have additional properties"};r===null?r=[C]:r.push(C),e++;break}if(R===e){if(s.path!==void 0){let q=s.path;const C=e,$=e;let _=!1,v=null;const b=e;if(typeof q!="string"){const O={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[O]:r.push(O),e++}var w=b===e;w&&(_=!0,v=0);const W=e;if(e===W)if(Array.isArray(q)){var T=!0;const O=q.length;for(let D=0;D<O;D++){const Z=e;if(typeof q[D]!="string"){const K={instancePath:t+"/path/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[K]:r.push(K),e++}var T=Z===e;if(!T)break}}else{const O={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[O]:r.push(O),e++}var w=W===e;if(w&&_?(_=!1,v=[v,1]):w&&(_=!0,v=1),_)e=$,r!==null&&($?r.length=$:r=null);else{const O={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:v},message:"must match exactly one schema in oneOf"};r===null?r=[O]:r.push(O),e++}var k=C===e}else var k=!0;if(k){if(s.pathNot!==void 0){let q=s.pathNot;const C=e,$=e;let _=!1,v=null;const b=e;if(typeof q!="string"){const D={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[D]:r.push(D),e++}var I=b===e;I&&(_=!0,v=0);const W=e;if(e===W)if(Array.isArray(q)){var A=!0;const D=q.length;for(let Z=0;Z<D;Z++){const xe=e;if(typeof q[Z]!="string"){const Ve={instancePath:t+"/pathNot/"+Z,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[Ve]:r.push(Ve),e++}var A=xe===e;if(!A)break}}else{const D={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[D]:r.push(D),e++}var I=W===e;if(I&&_?(_=!1,v=[v,1]):I&&(_=!0,v=1),_)e=$,r!==null&&($?r.length=$:r=null);else{const D={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:v},message:"must match exactly one schema in oneOf"};r===null?r=[D]:r.push(D),e++}var k=C===e}else var k=!0;if(k){if(s.dependencyTypes!==void 0){let q=s.dependencyTypes;const C=e;if(e===C)if(Array.isArray(q)){var G=!0;const _=q.length;for(let v=0;v<_;v++){let b=q[v];const W=e;if(typeof b!="string"){const D={instancePath:t+"/dependencyTypes/"+v,schemaPath:"#/definitions/DependencyTypeType/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[D]:r.push(D),e++}if(!(b==="aliased-subpath-import"||b==="aliased-tsconfig-base-url"||b==="aliased-tsconfig-paths"||b==="aliased-tsconfig"||b==="aliased-webpack"||b==="aliased-workspace"||b==="aliased"||b==="amd-define"||b==="amd-require"||b==="amd-exotic-require"||b==="core"||b==="deprecated"||b==="dynamic-import"||b==="exotic-require"||b==="export"||b==="import-equals"||b==="import"||b==="jsdoc"||b==="jsdoc-bracket-import"||b==="jsdoc-import-tag"||b==="local"||b==="localmodule"||b==="npm-bundled"||b==="npm-dev"||b==="npm-no-pkg"||b==="npm-optional"||b==="npm-peer"||b==="npm-unknown"||b==="npm"||b==="pre-compilation-only"||b==="process-get-builtin-module"||b==="require"||b==="triple-slash-amd-dependency"||b==="triple-slash-directive"||b==="triple-slash-file-reference"||b==="triple-slash-type-reference"||b==="type-import"||b==="type-only"||b==="undetermined"||b==="unknown")){const D={instancePath:t+"/dependencyTypes/"+v,schemaPath:"#/definitions/DependencyTypeType/enum",keyword:"enum",params:{allowedValues:Ce.enum},message:"must be equal to one of the allowed values"};r===null?r=[D]:r.push(D),e++}var G=W===e;if(!G)break}}else{const _={instancePath:t+"/dependencyTypes",schemaPath:"#/oneOf/1/properties/dependencyTypes/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[_]:r.push(_),e++}var k=C===e}else var k=!0;if(k)if(s.dependencyTypesNot!==void 0){let q=s.dependencyTypesNot;const C=e;if(e===C)if(Array.isArray(q)){var z=!0;const _=q.length;for(let v=0;v<_;v++){let b=q[v];const W=e;if(typeof b!="string"){const D={instancePath:t+"/dependencyTypesNot/"+v,schemaPath:"#/definitions/DependencyTypeType/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[D]:r.push(D),e++}if(!(b==="aliased-subpath-import"||b==="aliased-tsconfig-base-url"||b==="aliased-tsconfig-paths"||b==="aliased-tsconfig"||b==="aliased-webpack"||b==="aliased-workspace"||b==="aliased"||b==="amd-define"||b==="amd-require"||b==="amd-exotic-require"||b==="core"||b==="deprecated"||b==="dynamic-import"||b==="exotic-require"||b==="export"||b==="import-equals"||b==="import"||b==="jsdoc"||b==="jsdoc-bracket-import"||b==="jsdoc-import-tag"||b==="local"||b==="localmodule"||b==="npm-bundled"||b==="npm-dev"||b==="npm-no-pkg"||b==="npm-optional"||b==="npm-peer"||b==="npm-unknown"||b==="npm"||b==="pre-compilation-only"||b==="process-get-builtin-module"||b==="require"||b==="triple-slash-amd-dependency"||b==="triple-slash-directive"||b==="triple-slash-file-reference"||b==="triple-slash-type-reference"||b==="type-import"||b==="type-only"||b==="undetermined"||b==="unknown")){const D={instancePath:t+"/dependencyTypesNot/"+v,schemaPath:"#/definitions/DependencyTypeType/enum",keyword:"enum",params:{allowedValues:Ce.enum},message:"must be equal to one of the allowed values"};r===null?r=[D]:r.push(D),e++}var z=W===e;if(!z)break}}else{const _={instancePath:t+"/dependencyTypesNot",schemaPath:"#/oneOf/1/properties/dependencyTypesNot/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[_]:r.push(_),e++}var k=C===e}else var k=!0}}}}else{const R={instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[R]:r.push(R),e++}var se=c===e;if(se&&f?(f=!1,n=[n,1]):se&&(f=!0,n=1),f)e=a,r!==null&&(a?r.length=a:r=null);else{const R={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:n},message:"must match exactly one schema in oneOf"};return r===null?r=[R]:r.push(R),e++,Se.errors=r,!1}return Se.errors=r,e===0}function U(s,{instancePath:t="",parentData:V,parentDataProperty:H,rootData:S=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){const se=e;for(const R in s)if(!Ue.call(We.properties,R)){return U.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:R},message:"must NOT have additional properties"}],!1;break}if(se===e){if(s.path!==void 0){let R=s.path;const q=e,C=e;let $=!1,_=null;const v=e;if(typeof R!="string"){const W={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[W]:r.push(W),e++}var f=v===e;f&&($=!0,_=0);const b=e;if(e===b)if(Array.isArray(R)){var a=!0;const W=R.length;for(let O=0;O<W;O++){const D=e;if(typeof R[O]!="string"){const xe={instancePath:t+"/path/"+O,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[xe]:r.push(xe),e++}var a=D===e;if(!a)break}}else{const W={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[W]:r.push(W),e++}var f=b===e;if(f&&$?($=!1,_=[_,1]):f&&($=!0,_=1),$)e=C,r!==null&&(C?r.length=C:r=null);else{const W={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[W]:r.push(W),e++,U.errors=r,!1}var n=q===e}else var n=!0;if(n){if(s.pathNot!==void 0){let R=s.pathNot;const q=e,C=e;let $=!1,_=null;const v=e;if(typeof R!="string"){const O={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[O]:r.push(O),e++}var d=v===e;d&&($=!0,_=0);const b=e;if(e===b)if(Array.isArray(R)){var i=!0;const O=R.length;for(let D=0;D<O;D++){const Z=e;if(typeof R[D]!="string"){const K={instancePath:t+"/pathNot/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[K]:r.push(K),e++}var i=Z===e;if(!i)break}}else{const O={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[O]:r.push(O),e++}var d=b===e;if(d&&$?($=!1,_=[_,1]):d&&($=!0,_=1),$)e=C,r!==null&&(C?r.length=C:r=null);else{const O={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[O]:r.push(O),e++,U.errors=r,!1}var n=q===e}else var n=!0;if(n){if(s.couldNotResolve!==void 0){const R=e;if(typeof s.couldNotResolve!="boolean")return U.errors=[{instancePath:t+"/couldNotResolve",schemaPath:"#/properties/couldNotResolve/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var n=R===e}else var n=!0;if(n){if(s.circular!==void 0){const R=e;if(typeof s.circular!="boolean")return U.errors=[{instancePath:t+"/circular",schemaPath:"#/properties/circular/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var n=R===e}else var n=!0;if(n){if(s.dynamic!==void 0){const R=e;if(typeof s.dynamic!="boolean")return U.errors=[{instancePath:t+"/dynamic",schemaPath:"#/properties/dynamic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var n=R===e}else var n=!0;if(n){if(s.exoticallyRequired!==void 0){const R=e;if(typeof s.exoticallyRequired!="boolean")return U.errors=[{instancePath:t+"/exoticallyRequired",schemaPath:"#/properties/exoticallyRequired/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var n=R===e}else var n=!0;if(n){if(s.exoticRequire!==void 0){let R=s.exoticRequire;const q=e,C=e;let $=!1,_=null;const v=e;if(typeof R!="string"){const O={instancePath:t+"/exoticRequire",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[O]:r.push(O),e++}var p=v===e;p&&($=!0,_=0);const b=e;if(e===b)if(Array.isArray(R)){var m=!0;const O=R.length;for(let D=0;D<O;D++){const Z=e;if(typeof R[D]!="string"){const K={instancePath:t+"/exoticRequire/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[K]:r.push(K),e++}var m=Z===e;if(!m)break}}else{const O={instancePath:t+"/exoticRequire",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[O]:r.push(O),e++}var p=b===e;if(p&&$?($=!1,_=[_,1]):p&&($=!0,_=1),$)e=C,r!==null&&(C?r.length=C:r=null);else{const O={instancePath:t+"/exoticRequire",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[O]:r.push(O),e++,U.errors=r,!1}var n=q===e}else var n=!0;if(n){if(s.exoticRequireNot!==void 0){let R=s.exoticRequireNot;const q=e,C=e;let $=!1,_=null;const v=e;if(typeof R!="string"){const O={instancePath:t+"/exoticRequireNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[O]:r.push(O),e++}var P=v===e;P&&($=!0,_=0);const b=e;if(e===b)if(Array.isArray(R)){var h=!0;const O=R.length;for(let D=0;D<O;D++){const Z=e;if(typeof R[D]!="string"){const K={instancePath:t+"/exoticRequireNot/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[K]:r.push(K),e++}var h=Z===e;if(!h)break}}else{const O={instancePath:t+"/exoticRequireNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[O]:r.push(O),e++}var P=b===e;if(P&&$?($=!1,_=[_,1]):P&&($=!0,_=1),$)e=C,r!==null&&(C?r.length=C:r=null);else{const O={instancePath:t+"/exoticRequireNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[O]:r.push(O),e++,U.errors=r,!1}var n=q===e}else var n=!0;if(n){if(s.preCompilationOnly!==void 0){const R=e;if(typeof s.preCompilationOnly!="boolean")return U.errors=[{instancePath:t+"/preCompilationOnly",schemaPath:"#/properties/preCompilationOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var n=R===e}else var n=!0;if(n){if(s.dependencyTypes!==void 0){let R=s.dependencyTypes;const q=e;if(e===q)if(Array.isArray(R)){var l=!0;const $=R.length;for(let _=0;_<$;_++){let v=R[_];const b=e;if(typeof v!="string")return U.errors=[{instancePath:t+"/dependencyTypes/"+_,schemaPath:"#/definitions/DependencyTypeType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(v==="aliased-subpath-import"||v==="aliased-tsconfig-base-url"||v==="aliased-tsconfig-paths"||v==="aliased-tsconfig"||v==="aliased-webpack"||v==="aliased-workspace"||v==="aliased"||v==="amd-define"||v==="amd-require"||v==="amd-exotic-require"||v==="core"||v==="deprecated"||v==="dynamic-import"||v==="exotic-require"||v==="export"||v==="import-equals"||v==="import"||v==="jsdoc"||v==="jsdoc-bracket-import"||v==="jsdoc-import-tag"||v==="local"||v==="localmodule"||v==="npm-bundled"||v==="npm-dev"||v==="npm-no-pkg"||v==="npm-optional"||v==="npm-peer"||v==="npm-unknown"||v==="npm"||v==="pre-compilation-only"||v==="process-get-builtin-module"||v==="require"||v==="triple-slash-amd-dependency"||v==="triple-slash-directive"||v==="triple-slash-file-reference"||v==="triple-slash-type-reference"||v==="type-import"||v==="type-only"||v==="undetermined"||v==="unknown"))return U.errors=[{instancePath:t+"/dependencyTypes/"+_,schemaPath:"#/definitions/DependencyTypeType/enum",keyword:"enum",params:{allowedValues:Ce.enum},message:"must be equal to one of the allowed values"}],!1;var l=b===e;if(!l)break}}else return U.errors=[{instancePath:t+"/dependencyTypes",schemaPath:"#/properties/dependencyTypes/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var n=q===e}else var n=!0;if(n){if(s.dependencyTypesNot!==void 0){let R=s.dependencyTypesNot;const q=e;if(e===q)if(Array.isArray(R)){var o=!0;const $=R.length;for(let _=0;_<$;_++){let v=R[_];const b=e;if(typeof v!="string")return U.errors=[{instancePath:t+"/dependencyTypesNot/"+_,schemaPath:"#/definitions/DependencyTypeType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(v==="aliased-subpath-import"||v==="aliased-tsconfig-base-url"||v==="aliased-tsconfig-paths"||v==="aliased-tsconfig"||v==="aliased-webpack"||v==="aliased-workspace"||v==="aliased"||v==="amd-define"||v==="amd-require"||v==="amd-exotic-require"||v==="core"||v==="deprecated"||v==="dynamic-import"||v==="exotic-require"||v==="export"||v==="import-equals"||v==="import"||v==="jsdoc"||v==="jsdoc-bracket-import"||v==="jsdoc-import-tag"||v==="local"||v==="localmodule"||v==="npm-bundled"||v==="npm-dev"||v==="npm-no-pkg"||v==="npm-optional"||v==="npm-peer"||v==="npm-unknown"||v==="npm"||v==="pre-compilation-only"||v==="process-get-builtin-module"||v==="require"||v==="triple-slash-amd-dependency"||v==="triple-slash-directive"||v==="triple-slash-file-reference"||v==="triple-slash-type-reference"||v==="type-import"||v==="type-only"||v==="undetermined"||v==="unknown"))return U.errors=[{instancePath:t+"/dependencyTypesNot/"+_,schemaPath:"#/definitions/DependencyTypeType/enum",keyword:"enum",params:{allowedValues:Ce.enum},message:"must be equal to one of the allowed values"}],!1;var o=b===e;if(!o)break}}else return U.errors=[{instancePath:t+"/dependencyTypesNot",schemaPath:"#/properties/dependencyTypesNot/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var n=q===e}else var n=!0;if(n){if(s.moreThanOneDependencyType!==void 0){const R=e;if(typeof s.moreThanOneDependencyType!="boolean")return U.errors=[{instancePath:t+"/moreThanOneDependencyType",schemaPath:"#/properties/moreThanOneDependencyType/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var n=R===e}else var n=!0;if(n){if(s.license!==void 0){let R=s.license;const q=e,C=e;let $=!1,_=null;const v=e;if(typeof R!="string"){const O={instancePath:t+"/license",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[O]:r.push(O),e++}var T=v===e;T&&($=!0,_=0);const b=e;if(e===b)if(Array.isArray(R)){var c=!0;const O=R.length;for(let D=0;D<O;D++){const Z=e;if(typeof R[D]!="string"){const K={instancePath:t+"/license/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[K]:r.push(K),e++}var c=Z===e;if(!c)break}}else{const O={instancePath:t+"/license",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[O]:r.push(O),e++}var T=b===e;if(T&&$?($=!1,_=[_,1]):T&&($=!0,_=1),$)e=C,r!==null&&(C?r.length=C:r=null);else{const O={instancePath:t+"/license",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[O]:r.push(O),e++,U.errors=r,!1}var n=q===e}else var n=!0;if(n){if(s.licenseNot!==void 0){let R=s.licenseNot;const q=e,C=e;let $=!1,_=null;const v=e;if(typeof R!="string"){const O={instancePath:t+"/licenseNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[O]:r.push(O),e++}var k=v===e;k&&($=!0,_=0);const b=e;if(e===b)if(Array.isArray(R)){var w=!0;const O=R.length;for(let D=0;D<O;D++){const Z=e;if(typeof R[D]!="string"){const K={instancePath:t+"/licenseNot/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[K]:r.push(K),e++}var w=Z===e;if(!w)break}}else{const O={instancePath:t+"/licenseNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[O]:r.push(O),e++}var k=b===e;if(k&&$?($=!1,_=[_,1]):k&&($=!0,_=1),$)e=C,r!==null&&(C?r.length=C:r=null);else{const O={instancePath:t+"/licenseNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[O]:r.push(O),e++,U.errors=r,!1}var n=q===e}else var n=!0;if(n){if(s.via!==void 0){const R=e;Se(s.via,{instancePath:t+"/via",parentData:s,parentDataProperty:"via",rootData:S})||(r=r===null?Se.errors:r.concat(Se.errors),e=r.length);var n=R===e}else var n=!0;if(n){if(s.viaOnly!==void 0){const R=e;Se(s.viaOnly,{instancePath:t+"/viaOnly",parentData:s,parentDataProperty:"viaOnly",rootData:S})||(r=r===null?Se.errors:r.concat(Se.errors),e=r.length);var n=R===e}else var n=!0;if(n){if(s.viaNot!==void 0){let R=s.viaNot;const q=e,C=e;let $=!1,_=null;const v=e;if(typeof R!="string"){const O={instancePath:t+"/viaNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[O]:r.push(O),e++}var I=v===e;I&&($=!0,_=0);const b=e;if(e===b)if(Array.isArray(R)){var A=!0;const O=R.length;for(let D=0;D<O;D++){const Z=e;if(typeof R[D]!="string"){const K={instancePath:t+"/viaNot/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[K]:r.push(K),e++}var A=Z===e;if(!A)break}}else{const O={instancePath:t+"/viaNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[O]:r.push(O),e++}var I=b===e;if(I&&$?($=!1,_=[_,1]):I&&($=!0,_=1),$)e=C,r!==null&&(C?r.length=C:r=null);else{const O={instancePath:t+"/viaNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[O]:r.push(O),e++,U.errors=r,!1}var n=q===e}else var n=!0;if(n){if(s.viaSomeNot!==void 0){let R=s.viaSomeNot;const q=e,C=e;let $=!1,_=null;const v=e;if(typeof R!="string"){const O={instancePath:t+"/viaSomeNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[O]:r.push(O),e++}var z=v===e;z&&($=!0,_=0);const b=e;if(e===b)if(Array.isArray(R)){var G=!0;const O=R.length;for(let D=0;D<O;D++){const Z=e;if(typeof R[D]!="string"){const K={instancePath:t+"/viaSomeNot/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[K]:r.push(K),e++}var G=Z===e;if(!G)break}}else{const O={instancePath:t+"/viaSomeNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[O]:r.push(O),e++}var z=b===e;if(z&&$?($=!1,_=[_,1]):z&&($=!0,_=1),$)e=C,r!==null&&(C?r.length=C:r=null);else{const O={instancePath:t+"/viaSomeNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[O]:r.push(O),e++,U.errors=r,!1}var n=q===e}else var n=!0;if(n){if(s.moreUnstable!==void 0){const R=e;if(typeof s.moreUnstable!="boolean")return U.errors=[{instancePath:t+"/moreUnstable",schemaPath:"#/properties/moreUnstable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var n=R===e}else var n=!0;if(n)if(s.ancestor!==void 0){const R=e;if(typeof s.ancestor!="boolean")return U.errors=[{instancePath:t+"/ancestor",schemaPath:"#/properties/ancestor/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var n=R===e}else var n=!0}}}}}}}}}}}}}}}}}}}}else return U.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return U.errors=r,e===0}function oe(s,{instancePath:t="",parentData:V,parentDataProperty:H,rootData:S=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){let f;if(s.from===void 0&&(f="from")||s.to===void 0&&(f="to"))return oe.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const n=e;for(const i in s)if(!(i==="name"||i==="severity"||i==="scope"||i==="comment"||i==="from"||i==="to")){return oe.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;break}if(n===e){if(s.name!==void 0){const i=e;if(typeof s.name!="string")return oe.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=i===e}else var a=!0;if(a){if(s.severity!==void 0){let i=s.severity;const d=e;if(typeof i!="string")return oe.errors=[{instancePath:t+"/severity",schemaPath:"#/definitions/SeverityType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="error"||i==="warn"||i==="info"||i==="ignore"))return oe.errors=[{instancePath:t+"/severity",schemaPath:"#/definitions/SeverityType/enum",keyword:"enum",params:{allowedValues:Ie.enum},message:"must be equal to one of the allowed values"}],!1;var a=d===e}else var a=!0;if(a){if(s.scope!==void 0){let i=s.scope;const d=e;if(typeof i!="string")return oe.errors=[{instancePath:t+"/scope",schemaPath:"#/properties/scope/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="module"||i==="folder"))return oe.errors=[{instancePath:t+"/scope",schemaPath:"#/properties/scope/enum",keyword:"enum",params:{allowedValues:Qe.properties.scope.enum},message:"must be equal to one of the allowed values"}],!1;var a=d===e}else var a=!0;if(a){if(s.comment!==void 0){const i=e;if(typeof s.comment!="string")return oe.errors=[{instancePath:t+"/comment",schemaPath:"#/properties/comment/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=i===e}else var a=!0;if(a){if(s.from!==void 0){const i=e;ue(s.from,{instancePath:t+"/from",parentData:s,parentDataProperty:"from",rootData:S})||(r=r===null?ue.errors:r.concat(ue.errors),e=r.length);var a=i===e}else var a=!0;if(a)if(s.to!==void 0){const i=e;U(s.to,{instancePath:t+"/to",parentData:s,parentDataProperty:"to",rootData:S})||(r=r===null?U.errors:r.concat(U.errors),e=r.length);var a=i===e}else var a=!0}}}}}}}else return oe.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return oe.errors=r,e===0}const Xe={type:"object",required:["from","to"],additionalProperties:!1,properties:{name:{type:"string"},severity:{$ref:"#/definitions/SeverityType"},scope:{type:"string",enum:["module","folder"]},comment:{type:"string"},from:{$ref:"#/definitions/ReachabilityFromRestrictionType"},to:{$ref:"#/definitions/ReachabilityToRestrictionType"}}};function ge(s,{instancePath:t="",parentData:V,parentDataProperty:H,rootData:S=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){const m=e;for(const p in s)if(!(p==="path"||p==="pathNot")){return ge.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"}],!1;break}if(m===e){if(s.path!==void 0){let p=s.path;const h=e,P=e;let l=!1,o=null;const c=e;if(typeof p!="string"){const w={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[w]:r.push(w),e++}var f=c===e;f&&(l=!0,o=0);const T=e;if(e===T)if(Array.isArray(p)){var a=!0;const w=p.length;for(let k=0;k<w;k++){const A=e;if(typeof p[k]!="string"){const G={instancePath:t+"/path/"+k,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[G]:r.push(G),e++}var a=A===e;if(!a)break}}else{const w={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[w]:r.push(w),e++}var f=T===e;if(f&&l?(l=!1,o=[o,1]):f&&(l=!0,o=1),l)e=P,r!==null&&(P?r.length=P:r=null);else{const w={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf"};return r===null?r=[w]:r.push(w),e++,ge.errors=r,!1}var n=h===e}else var n=!0;if(n)if(s.pathNot!==void 0){let p=s.pathNot;const h=e,P=e;let l=!1,o=null;const c=e;if(typeof p!="string"){const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[k]:r.push(k),e++}var d=c===e;d&&(l=!0,o=0);const T=e;if(e===T)if(Array.isArray(p)){var i=!0;const k=p.length;for(let A=0;A<k;A++){const I=e;if(typeof p[A]!="string"){const z={instancePath:t+"/pathNot/"+A,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[z]:r.push(z),e++}var i=I===e;if(!i)break}}else{const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[k]:r.push(k),e++}var d=T===e;if(d&&l?(l=!1,o=[o,1]):d&&(l=!0,o=1),l)e=P,r!==null&&(P?r.length=P:r=null);else{const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf"};return r===null?r=[k]:r.push(k),e++,ge.errors=r,!1}var n=h===e}else var n=!0}}else return ge.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ge.errors=r,e===0}function ye(s,{instancePath:t="",parentData:V,parentDataProperty:H,rootData:S=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){let m;if(s.reachable===void 0&&(m="reachable"))return ye.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:m},message:"must have required property '"+m+"'"}],!1;{const p=e;for(const h in s)if(!(h==="path"||h==="pathNot"||h==="reachable")){return ye.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties"}],!1;break}if(p===e){if(s.path!==void 0){let h=s.path;const P=e,l=e;let o=!1,c=null;const T=e;if(typeof h!="string"){const k={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[k]:r.push(k),e++}var f=T===e;f&&(o=!0,c=0);const w=e;if(e===w)if(Array.isArray(h)){var a=!0;const k=h.length;for(let A=0;A<k;A++){const I=e;if(typeof h[A]!="string"){const z={instancePath:t+"/path/"+A,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[z]:r.push(z),e++}var a=I===e;if(!a)break}}else{const k={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[k]:r.push(k),e++}var f=w===e;if(f&&o?(o=!1,c=[c,1]):f&&(o=!0,c=1),o)e=l,r!==null&&(l?r.length=l:r=null);else{const k={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf"};return r===null?r=[k]:r.push(k),e++,ye.errors=r,!1}var n=P===e}else var n=!0;if(n){if(s.pathNot!==void 0){let h=s.pathNot;const P=e,l=e;let o=!1,c=null;const T=e;if(typeof h!="string"){const A={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[A]:r.push(A),e++}var d=T===e;d&&(o=!0,c=0);const w=e;if(e===w)if(Array.isArray(h)){var i=!0;const A=h.length;for(let I=0;I<A;I++){const G=e;if(typeof h[I]!="string"){const se={instancePath:t+"/pathNot/"+I,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[se]:r.push(se),e++}var i=G===e;if(!i)break}}else{const A={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[A]:r.push(A),e++}var d=w===e;if(d&&o?(o=!1,c=[c,1]):d&&(o=!0,c=1),o)e=l,r!==null&&(l?r.length=l:r=null);else{const A={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf"};return r===null?r=[A]:r.push(A),e++,ye.errors=r,!1}var n=P===e}else var n=!0;if(n)if(s.reachable!==void 0){const h=e;if(typeof s.reachable!="boolean")return ye.errors=[{instancePath:t+"/reachable",schemaPath:"#/properties/reachable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var n=h===e}else var n=!0}}}}else return ye.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ye.errors=r,e===0}function pe(s,{instancePath:t="",parentData:V,parentDataProperty:H,rootData:S=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){let f;if(s.from===void 0&&(f="from")||s.to===void 0&&(f="to"))return pe.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const n=e;for(const i in s)if(!(i==="name"||i==="severity"||i==="scope"||i==="comment"||i==="from"||i==="to")){return pe.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;break}if(n===e){if(s.name!==void 0){const i=e;if(typeof s.name!="string")return pe.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=i===e}else var a=!0;if(a){if(s.severity!==void 0){let i=s.severity;const d=e;if(typeof i!="string")return pe.errors=[{instancePath:t+"/severity",schemaPath:"#/definitions/SeverityType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="error"||i==="warn"||i==="info"||i==="ignore"))return pe.errors=[{instancePath:t+"/severity",schemaPath:"#/definitions/SeverityType/enum",keyword:"enum",params:{allowedValues:Ie.enum},message:"must be equal to one of the allowed values"}],!1;var a=d===e}else var a=!0;if(a){if(s.scope!==void 0){let i=s.scope;const d=e;if(typeof i!="string")return pe.errors=[{instancePath:t+"/scope",schemaPath:"#/properties/scope/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="module"||i==="folder"))return pe.errors=[{instancePath:t+"/scope",schemaPath:"#/properties/scope/enum",keyword:"enum",params:{allowedValues:Xe.properties.scope.enum},message:"must be equal to one of the allowed values"}],!1;var a=d===e}else var a=!0;if(a){if(s.comment!==void 0){const i=e;if(typeof s.comment!="string")return pe.errors=[{instancePath:t+"/comment",schemaPath:"#/properties/comment/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=i===e}else var a=!0;if(a){if(s.from!==void 0){const i=e;ge(s.from,{instancePath:t+"/from",parentData:s,parentDataProperty:"from",rootData:S})||(r=r===null?ge.errors:r.concat(ge.errors),e=r.length);var a=i===e}else var a=!0;if(a)if(s.to!==void 0){const i=e;ye(s.to,{instancePath:t+"/to",parentData:s,parentDataProperty:"to",rootData:S})||(r=r===null?ye.errors:r.concat(ye.errors),e=r.length);var a=i===e}else var a=!0}}}}}}}else return pe.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return pe.errors=r,e===0}const Ye={type:"object",required:["module","from"],additionalProperties:!1,properties:{name:{type:"string"},severity:{$ref:"#/definitions/SeverityType"},scope:{type:"string",enum:["module","folder"]},comment:{type:"string"},module:{$ref:"#/definitions/DependentsModuleRestrictionType"},from:{$ref:"#/definitions/DependentsFromRestrictionType"}}};function ne(s,{instancePath:t="",parentData:V,parentDataProperty:H,rootData:S=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){const m=e;for(const p in s)if(!(p==="path"||p==="pathNot"||p==="numberOfDependentsLessThan"||p==="numberOfDependentsMoreThan")){return ne.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"}],!1;break}if(m===e){if(s.path!==void 0){let p=s.path;const h=e,P=e;let l=!1,o=null;const c=e;if(typeof p!="string"){const w={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[w]:r.push(w),e++}var f=c===e;f&&(l=!0,o=0);const T=e;if(e===T)if(Array.isArray(p)){var a=!0;const w=p.length;for(let k=0;k<w;k++){const A=e;if(typeof p[k]!="string"){const G={instancePath:t+"/path/"+k,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[G]:r.push(G),e++}var a=A===e;if(!a)break}}else{const w={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[w]:r.push(w),e++}var f=T===e;if(f&&l?(l=!1,o=[o,1]):f&&(l=!0,o=1),l)e=P,r!==null&&(P?r.length=P:r=null);else{const w={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf"};return r===null?r=[w]:r.push(w),e++,ne.errors=r,!1}var n=h===e}else var n=!0;if(n){if(s.pathNot!==void 0){let p=s.pathNot;const h=e,P=e;let l=!1,o=null;const c=e;if(typeof p!="string"){const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[k]:r.push(k),e++}var d=c===e;d&&(l=!0,o=0);const T=e;if(e===T)if(Array.isArray(p)){var i=!0;const k=p.length;for(let A=0;A<k;A++){const I=e;if(typeof p[A]!="string"){const z={instancePath:t+"/pathNot/"+A,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[z]:r.push(z),e++}var i=I===e;if(!i)break}}else{const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[k]:r.push(k),e++}var d=T===e;if(d&&l?(l=!1,o=[o,1]):d&&(l=!0,o=1),l)e=P,r!==null&&(P?r.length=P:r=null);else{const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf"};return r===null?r=[k]:r.push(k),e++,ne.errors=r,!1}var n=h===e}else var n=!0;if(n){if(s.numberOfDependentsLessThan!==void 0){let p=s.numberOfDependentsLessThan;const h=e;if(!(typeof p=="number"&&!(p%1)&&!isNaN(p)&&isFinite(p)))return ne.errors=[{instancePath:t+"/numberOfDependentsLessThan",schemaPath:"#/properties/numberOfDependentsLessThan/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(e===h&&typeof p=="number"&&isFinite(p)){if(p>100||isNaN(p))return ne.errors=[{instancePath:t+"/numberOfDependentsLessThan",schemaPath:"#/properties/numberOfDependentsLessThan/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100"}],!1;if(p<0||isNaN(p))return ne.errors=[{instancePath:t+"/numberOfDependentsLessThan",schemaPath:"#/properties/numberOfDependentsLessThan/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1}var n=h===e}else var n=!0;if(n)if(s.numberOfDependentsMoreThan!==void 0){let p=s.numberOfDependentsMoreThan;const h=e;if(!(typeof p=="number"&&!(p%1)&&!isNaN(p)&&isFinite(p)))return ne.errors=[{instancePath:t+"/numberOfDependentsMoreThan",schemaPath:"#/properties/numberOfDependentsMoreThan/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(e===h&&typeof p=="number"&&isFinite(p)){if(p>100||isNaN(p))return ne.errors=[{instancePath:t+"/numberOfDependentsMoreThan",schemaPath:"#/properties/numberOfDependentsMoreThan/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100"}],!1;if(p<0||isNaN(p))return ne.errors=[{instancePath:t+"/numberOfDependentsMoreThan",schemaPath:"#/properties/numberOfDependentsMoreThan/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1}var n=h===e}else var n=!0}}}}else return ne.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ne.errors=r,e===0}function De(s,{instancePath:t="",parentData:V,parentDataProperty:H,rootData:S=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){const m=e;for(const p in s)if(!(p==="path"||p==="pathNot")){return De.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"}],!1;break}if(m===e){if(s.path!==void 0){let p=s.path;const h=e,P=e;let l=!1,o=null;const c=e;if(typeof p!="string"){const w={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[w]:r.push(w),e++}var f=c===e;f&&(l=!0,o=0);const T=e;if(e===T)if(Array.isArray(p)){var a=!0;const w=p.length;for(let k=0;k<w;k++){const A=e;if(typeof p[k]!="string"){const G={instancePath:t+"/path/"+k,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[G]:r.push(G),e++}var a=A===e;if(!a)break}}else{const w={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[w]:r.push(w),e++}var f=T===e;if(f&&l?(l=!1,o=[o,1]):f&&(l=!0,o=1),l)e=P,r!==null&&(P?r.length=P:r=null);else{const w={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf"};return r===null?r=[w]:r.push(w),e++,De.errors=r,!1}var n=h===e}else var n=!0;if(n)if(s.pathNot!==void 0){let p=s.pathNot;const h=e,P=e;let l=!1,o=null;const c=e;if(typeof p!="string"){const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[k]:r.push(k),e++}var d=c===e;d&&(l=!0,o=0);const T=e;if(e===T)if(Array.isArray(p)){var i=!0;const k=p.length;for(let A=0;A<k;A++){const I=e;if(typeof p[A]!="string"){const z={instancePath:t+"/pathNot/"+A,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[z]:r.push(z),e++}var i=I===e;if(!i)break}}else{const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[k]:r.push(k),e++}var d=T===e;if(d&&l?(l=!1,o=[o,1]):d&&(l=!0,o=1),l)e=P,r!==null&&(P?r.length=P:r=null);else{const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf"};return r===null?r=[k]:r.push(k),e++,De.errors=r,!1}var n=h===e}else var n=!0}}else return De.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return De.errors=r,e===0}function le(s,{instancePath:t="",parentData:V,parentDataProperty:H,rootData:S=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){let f;if(s.module===void 0&&(f="module")||s.from===void 0&&(f="from"))return le.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const n=e;for(const i in s)if(!(i==="name"||i==="severity"||i==="scope"||i==="comment"||i==="module"||i==="from")){return le.errors=[{instancePath:t,schemaPath:"#/additionalProperties",key