dependency-cruiser
Version:
Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.
1 lines • 165 kB
JavaScript
"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 T=e;for(const c in s)if(!(c==="path"||c==="pathNot"||c==="orphan")){return ue.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;break}if(T===e){if(s.path!==void 0){let c=s.path;const d=e,o=e;let p=!1,y=null;const v=e;if(typeof c!="string"){const f={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),e++}var l=v===e;l&&(p=!0,y=0);const u=e;if(e===u)if(Array.isArray(c)){var a=!0;const f=c.length;for(let k=0;k<f;k++){const O=e;if(typeof c[k]!="string"){const J={instancePath:t+"/path/"+k,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[J]:r.push(J),e++}var a=O===e;if(!a)break}}else{const f={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[f]:r.push(f),e++}var l=u===e;if(l&&p?(p=!1,y=[y,1]):l&&(p=!0,y=1),p)e=o,r!==null&&(o?r.length=o:r=null);else{const f={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf"};return r===null?r=[f]:r.push(f),e++,ue.errors=r,!1}var n=d===e}else var n=!0;if(n){if(s.pathNot!==void 0){let c=s.pathNot;const d=e,o=e;let p=!1,y=null;const v=e;if(typeof c!="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 h=v===e;h&&(p=!0,y=0);const u=e;if(e===u)if(Array.isArray(c)){var i=!0;const k=c.length;for(let O=0;O<k;O++){const I=e;if(typeof c[O]!="string"){const G={instancePath:t+"/pathNot/"+O,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 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 h=u===e;if(h&&p?(p=!1,y=[y,1]):h&&(p=!0,y=1),p)e=o,r!==null&&(o?r.length=o:r=null);else{const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf"};return r===null?r=[k]:r.push(k),e++,ue.errors=r,!1}var n=d===e}else var n=!0;if(n)if(s.orphan!==void 0){const c=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=c===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"}}},Me={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"]},Be=Object.prototype.hasOwnProperty;function Se(s,{instancePath:t="",parentData:V,parentDataProperty:H,rootData:S=s}={}){let r=null,e=0;const a=e;let l=!1,n=null;const i=e,h=e;let T=!1,c=null;const d=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 y=d===e;y&&(T=!0,c=0);const o=e;if(e===o)if(Array.isArray(s)){var p=!0;const R=s.length;for(let q=0;q<R;q++){const U=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 p=U===e;if(!p)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 y=o===e;if(y&&T?(T=!1,c=[c,1]):y&&(T=!0,c=1),T)e=h,r!==null&&(h?r.length=h:r=null);else{const R={instancePath:t,schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf"};r===null?r=[R]:r.push(R),e++}var se=i===e;se&&(l=!0,n=0);const v=e;if(e===v)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 U={instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:q},message:"must NOT have additional properties"};r===null?r=[U]:r.push(U),e++;break}if(R===e){if(s.path!==void 0){let q=s.path;const U=e,$=e;let _=!1,w=null;const P=e;if(typeof q!="string"){const A={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[A]:r.push(A),e++}var f=P===e;f&&(_=!0,w=0);const X=e;if(e===X)if(Array.isArray(q)){var u=!0;const A=q.length;for(let D=0;D<A;D++){const Z=e;if(typeof q[D]!="string"){const Q={instancePath:t+"/path/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[Q]:r.push(Q),e++}var u=Z===e;if(!u)break}}else{const A={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[A]:r.push(A),e++}var f=X===e;if(f&&_?(_=!1,w=[w,1]):f&&(_=!0,w=1),_)e=$,r!==null&&($?r.length=$:r=null);else{const A={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:w},message:"must match exactly one schema in oneOf"};r===null?r=[A]:r.push(A),e++}var k=U===e}else var k=!0;if(k){if(s.pathNot!==void 0){let q=s.pathNot;const U=e,$=e;let _=!1,w=null;const P=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=P===e;I&&(_=!0,w=0);const X=e;if(e===X)if(Array.isArray(q)){var O=!0;const D=q.length;for(let Z=0;Z<D;Z++){const xe=e;if(typeof q[Z]!="string"){const Ue={instancePath:t+"/pathNot/"+Z,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[Ue]:r.push(Ue),e++}var O=xe===e;if(!O)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=X===e;if(I&&_?(_=!1,w=[w,1]):I&&(_=!0,w=1),_)e=$,r!==null&&($?r.length=$:r=null);else{const D={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:w},message:"must match exactly one schema in oneOf"};r===null?r=[D]:r.push(D),e++}var k=U===e}else var k=!0;if(k){if(s.dependencyTypes!==void 0){let q=s.dependencyTypes;const U=e;if(e===U)if(Array.isArray(q)){var J=!0;const _=q.length;for(let w=0;w<_;w++){let P=q[w];const X=e;if(typeof P!="string"){const D={instancePath:t+"/dependencyTypes/"+w,schemaPath:"#/definitions/DependencyTypeType/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[D]:r.push(D),e++}if(!(P==="aliased-subpath-import"||P==="aliased-tsconfig-base-url"||P==="aliased-tsconfig-paths"||P==="aliased-tsconfig"||P==="aliased-webpack"||P==="aliased-workspace"||P==="aliased"||P==="amd-define"||P==="amd-require"||P==="amd-exotic-require"||P==="core"||P==="deprecated"||P==="dynamic-import"||P==="exotic-require"||P==="export"||P==="import-equals"||P==="import"||P==="jsdoc"||P==="jsdoc-bracket-import"||P==="jsdoc-import-tag"||P==="local"||P==="localmodule"||P==="npm-bundled"||P==="npm-dev"||P==="npm-no-pkg"||P==="npm-optional"||P==="npm-peer"||P==="npm-unknown"||P==="npm"||P==="pre-compilation-only"||P==="process-get-builtin-module"||P==="require"||P==="triple-slash-amd-dependency"||P==="triple-slash-directive"||P==="triple-slash-file-reference"||P==="triple-slash-type-reference"||P==="type-import"||P==="type-only"||P==="undetermined"||P==="unknown")){const D={instancePath:t+"/dependencyTypes/"+w,schemaPath:"#/definitions/DependencyTypeType/enum",keyword:"enum",params:{allowedValues:Me.enum},message:"must be equal to one of the allowed values"};r===null?r=[D]:r.push(D),e++}var J=X===e;if(!J)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=U===e}else var k=!0;if(k)if(s.dependencyTypesNot!==void 0){let q=s.dependencyTypesNot;const U=e;if(e===U)if(Array.isArray(q)){var G=!0;const _=q.length;for(let w=0;w<_;w++){let P=q[w];const X=e;if(typeof P!="string"){const D={instancePath:t+"/dependencyTypesNot/"+w,schemaPath:"#/definitions/DependencyTypeType/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[D]:r.push(D),e++}if(!(P==="aliased-subpath-import"||P==="aliased-tsconfig-base-url"||P==="aliased-tsconfig-paths"||P==="aliased-tsconfig"||P==="aliased-webpack"||P==="aliased-workspace"||P==="aliased"||P==="amd-define"||P==="amd-require"||P==="amd-exotic-require"||P==="core"||P==="deprecated"||P==="dynamic-import"||P==="exotic-require"||P==="export"||P==="import-equals"||P==="import"||P==="jsdoc"||P==="jsdoc-bracket-import"||P==="jsdoc-import-tag"||P==="local"||P==="localmodule"||P==="npm-bundled"||P==="npm-dev"||P==="npm-no-pkg"||P==="npm-optional"||P==="npm-peer"||P==="npm-unknown"||P==="npm"||P==="pre-compilation-only"||P==="process-get-builtin-module"||P==="require"||P==="triple-slash-amd-dependency"||P==="triple-slash-directive"||P==="triple-slash-file-reference"||P==="triple-slash-type-reference"||P==="type-import"||P==="type-only"||P==="undetermined"||P==="unknown")){const D={instancePath:t+"/dependencyTypesNot/"+w,schemaPath:"#/definitions/DependencyTypeType/enum",keyword:"enum",params:{allowedValues:Me.enum},message:"must be equal to one of the allowed values"};r===null?r=[D]:r.push(D),e++}var G=X===e;if(!G)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=U===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=v===e;if(se&&l?(l=!1,n=[n,1]):se&&(l=!0,n=1),l)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 z(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(!Be.call(We.properties,R)){return z.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,U=e;let $=!1,_=null;const w=e;if(typeof R!="string"){const X={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[X]:r.push(X),e++}var l=w===e;l&&($=!0,_=0);const P=e;if(e===P)if(Array.isArray(R)){var a=!0;const X=R.length;for(let A=0;A<X;A++){const D=e;if(typeof R[A]!="string"){const xe={instancePath:t+"/path/"+A,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 X={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[X]:r.push(X),e++}var l=P===e;if(l&&$?($=!1,_=[_,1]):l&&($=!0,_=1),$)e=U,r!==null&&(U?r.length=U:r=null);else{const X={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[X]:r.push(X),e++,z.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,U=e;let $=!1,_=null;const w=e;if(typeof R!="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 h=w===e;h&&($=!0,_=0);const P=e;if(e===P)if(Array.isArray(R)){var i=!0;const A=R.length;for(let D=0;D<A;D++){const Z=e;if(typeof R[D]!="string"){const Q={instancePath:t+"/pathNot/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[Q]:r.push(Q),e++}var i=Z===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 h=P===e;if(h&&$?($=!1,_=[_,1]):h&&($=!0,_=1),$)e=U,r!==null&&(U?r.length=U:r=null);else{const A={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[A]:r.push(A),e++,z.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 z.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 z.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 z.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 z.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,U=e;let $=!1,_=null;const w=e;if(typeof R!="string"){const A={instancePath:t+"/exoticRequire",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[A]:r.push(A),e++}var c=w===e;c&&($=!0,_=0);const P=e;if(e===P)if(Array.isArray(R)){var T=!0;const A=R.length;for(let D=0;D<A;D++){const Z=e;if(typeof R[D]!="string"){const Q={instancePath:t+"/exoticRequire/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[Q]:r.push(Q),e++}var T=Z===e;if(!T)break}}else{const A={instancePath:t+"/exoticRequire",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[A]:r.push(A),e++}var c=P===e;if(c&&$?($=!1,_=[_,1]):c&&($=!0,_=1),$)e=U,r!==null&&(U?r.length=U:r=null);else{const A={instancePath:t+"/exoticRequire",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[A]:r.push(A),e++,z.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,U=e;let $=!1,_=null;const w=e;if(typeof R!="string"){const A={instancePath:t+"/exoticRequireNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[A]:r.push(A),e++}var o=w===e;o&&($=!0,_=0);const P=e;if(e===P)if(Array.isArray(R)){var d=!0;const A=R.length;for(let D=0;D<A;D++){const Z=e;if(typeof R[D]!="string"){const Q={instancePath:t+"/exoticRequireNot/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[Q]:r.push(Q),e++}var d=Z===e;if(!d)break}}else{const A={instancePath:t+"/exoticRequireNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[A]:r.push(A),e++}var o=P===e;if(o&&$?($=!1,_=[_,1]):o&&($=!0,_=1),$)e=U,r!==null&&(U?r.length=U:r=null);else{const A={instancePath:t+"/exoticRequireNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[A]:r.push(A),e++,z.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 z.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 p=!0;const $=R.length;for(let _=0;_<$;_++){let w=R[_];const P=e;if(typeof w!="string")return z.errors=[{instancePath:t+"/dependencyTypes/"+_,schemaPath:"#/definitions/DependencyTypeType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(w==="aliased-subpath-import"||w==="aliased-tsconfig-base-url"||w==="aliased-tsconfig-paths"||w==="aliased-tsconfig"||w==="aliased-webpack"||w==="aliased-workspace"||w==="aliased"||w==="amd-define"||w==="amd-require"||w==="amd-exotic-require"||w==="core"||w==="deprecated"||w==="dynamic-import"||w==="exotic-require"||w==="export"||w==="import-equals"||w==="import"||w==="jsdoc"||w==="jsdoc-bracket-import"||w==="jsdoc-import-tag"||w==="local"||w==="localmodule"||w==="npm-bundled"||w==="npm-dev"||w==="npm-no-pkg"||w==="npm-optional"||w==="npm-peer"||w==="npm-unknown"||w==="npm"||w==="pre-compilation-only"||w==="process-get-builtin-module"||w==="require"||w==="triple-slash-amd-dependency"||w==="triple-slash-directive"||w==="triple-slash-file-reference"||w==="triple-slash-type-reference"||w==="type-import"||w==="type-only"||w==="undetermined"||w==="unknown"))return z.errors=[{instancePath:t+"/dependencyTypes/"+_,schemaPath:"#/definitions/DependencyTypeType/enum",keyword:"enum",params:{allowedValues:Me.enum},message:"must be equal to one of the allowed values"}],!1;var p=P===e;if(!p)break}}else return z.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 y=!0;const $=R.length;for(let _=0;_<$;_++){let w=R[_];const P=e;if(typeof w!="string")return z.errors=[{instancePath:t+"/dependencyTypesNot/"+_,schemaPath:"#/definitions/DependencyTypeType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(w==="aliased-subpath-import"||w==="aliased-tsconfig-base-url"||w==="aliased-tsconfig-paths"||w==="aliased-tsconfig"||w==="aliased-webpack"||w==="aliased-workspace"||w==="aliased"||w==="amd-define"||w==="amd-require"||w==="amd-exotic-require"||w==="core"||w==="deprecated"||w==="dynamic-import"||w==="exotic-require"||w==="export"||w==="import-equals"||w==="import"||w==="jsdoc"||w==="jsdoc-bracket-import"||w==="jsdoc-import-tag"||w==="local"||w==="localmodule"||w==="npm-bundled"||w==="npm-dev"||w==="npm-no-pkg"||w==="npm-optional"||w==="npm-peer"||w==="npm-unknown"||w==="npm"||w==="pre-compilation-only"||w==="process-get-builtin-module"||w==="require"||w==="triple-slash-amd-dependency"||w==="triple-slash-directive"||w==="triple-slash-file-reference"||w==="triple-slash-type-reference"||w==="type-import"||w==="type-only"||w==="undetermined"||w==="unknown"))return z.errors=[{instancePath:t+"/dependencyTypesNot/"+_,schemaPath:"#/definitions/DependencyTypeType/enum",keyword:"enum",params:{allowedValues:Me.enum},message:"must be equal to one of the allowed values"}],!1;var y=P===e;if(!y)break}}else return z.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 z.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,U=e;let $=!1,_=null;const w=e;if(typeof R!="string"){const A={instancePath:t+"/license",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[A]:r.push(A),e++}var u=w===e;u&&($=!0,_=0);const P=e;if(e===P)if(Array.isArray(R)){var v=!0;const A=R.length;for(let D=0;D<A;D++){const Z=e;if(typeof R[D]!="string"){const Q={instancePath:t+"/license/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[Q]:r.push(Q),e++}var v=Z===e;if(!v)break}}else{const A={instancePath:t+"/license",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[A]:r.push(A),e++}var u=P===e;if(u&&$?($=!1,_=[_,1]):u&&($=!0,_=1),$)e=U,r!==null&&(U?r.length=U:r=null);else{const A={instancePath:t+"/license",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[A]:r.push(A),e++,z.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,U=e;let $=!1,_=null;const w=e;if(typeof R!="string"){const A={instancePath:t+"/licenseNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[A]:r.push(A),e++}var k=w===e;k&&($=!0,_=0);const P=e;if(e===P)if(Array.isArray(R)){var f=!0;const A=R.length;for(let D=0;D<A;D++){const Z=e;if(typeof R[D]!="string"){const Q={instancePath:t+"/licenseNot/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[Q]:r.push(Q),e++}var f=Z===e;if(!f)break}}else{const A={instancePath:t+"/licenseNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[A]:r.push(A),e++}var k=P===e;if(k&&$?($=!1,_=[_,1]):k&&($=!0,_=1),$)e=U,r!==null&&(U?r.length=U:r=null);else{const A={instancePath:t+"/licenseNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[A]:r.push(A),e++,z.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,U=e;let $=!1,_=null;const w=e;if(typeof R!="string"){const A={instancePath:t+"/viaNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[A]:r.push(A),e++}var I=w===e;I&&($=!0,_=0);const P=e;if(e===P)if(Array.isArray(R)){var O=!0;const A=R.length;for(let D=0;D<A;D++){const Z=e;if(typeof R[D]!="string"){const Q={instancePath:t+"/viaNot/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[Q]:r.push(Q),e++}var O=Z===e;if(!O)break}}else{const A={instancePath:t+"/viaNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[A]:r.push(A),e++}var I=P===e;if(I&&$?($=!1,_=[_,1]):I&&($=!0,_=1),$)e=U,r!==null&&(U?r.length=U:r=null);else{const A={instancePath:t+"/viaNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[A]:r.push(A),e++,z.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,U=e;let $=!1,_=null;const w=e;if(typeof R!="string"){const A={instancePath:t+"/viaSomeNot",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[A]:r.push(A),e++}var G=w===e;G&&($=!0,_=0);const P=e;if(e===P)if(Array.isArray(R)){var J=!0;const A=R.length;for(let D=0;D<A;D++){const Z=e;if(typeof R[D]!="string"){const Q={instancePath:t+"/viaSomeNot/"+D,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[Q]:r.push(Q),e++}var J=Z===e;if(!J)break}}else{const A={instancePath:t+"/viaSomeNot",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[A]:r.push(A),e++}var G=P===e;if(G&&$?($=!1,_=[_,1]):G&&($=!0,_=1),$)e=U,r!==null&&(U?r.length=U:r=null);else{const A={instancePath:t+"/viaSomeNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:_},message:"must match exactly one schema in oneOf"};return r===null?r=[A]:r.push(A),e++,z.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 z.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 z.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 z.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return z.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 l;if(s.from===void 0&&(l="from")||s.to===void 0&&(l="to"))return oe.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!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 h=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=h===e}else var a=!0;if(a){if(s.scope!==void 0){let i=s.scope;const h=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=h===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;z(s.to,{instancePath:t+"/to",parentData:s,parentDataProperty:"to",rootData:S})||(r=r===null?z.errors:r.concat(z.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 T=e;for(const c in s)if(!(c==="path"||c==="pathNot")){return ge.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;break}if(T===e){if(s.path!==void 0){let c=s.path;const d=e,o=e;let p=!1,y=null;const v=e;if(typeof c!="string"){const f={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),e++}var l=v===e;l&&(p=!0,y=0);const u=e;if(e===u)if(Array.isArray(c)){var a=!0;const f=c.length;for(let k=0;k<f;k++){const O=e;if(typeof c[k]!="string"){const J={instancePath:t+"/path/"+k,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[J]:r.push(J),e++}var a=O===e;if(!a)break}}else{const f={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[f]:r.push(f),e++}var l=u===e;if(l&&p?(p=!1,y=[y,1]):l&&(p=!0,y=1),p)e=o,r!==null&&(o?r.length=o:r=null);else{const f={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf"};return r===null?r=[f]:r.push(f),e++,ge.errors=r,!1}var n=d===e}else var n=!0;if(n)if(s.pathNot!==void 0){let c=s.pathNot;const d=e,o=e;let p=!1,y=null;const v=e;if(typeof c!="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 h=v===e;h&&(p=!0,y=0);const u=e;if(e===u)if(Array.isArray(c)){var i=!0;const k=c.length;for(let O=0;O<k;O++){const I=e;if(typeof c[O]!="string"){const G={instancePath:t+"/pathNot/"+O,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 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 h=u===e;if(h&&p?(p=!1,y=[y,1]):h&&(p=!0,y=1),p)e=o,r!==null&&(o?r.length=o:r=null);else{const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf"};return r===null?r=[k]:r.push(k),e++,ge.errors=r,!1}var n=d===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 T;if(s.reachable===void 0&&(T="reachable"))return ye.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:T},message:"must have required property '"+T+"'"}],!1;{const c=e;for(const d in s)if(!(d==="path"||d==="pathNot"||d==="reachable")){return ye.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"}],!1;break}if(c===e){if(s.path!==void 0){let d=s.path;const o=e,p=e;let y=!1,v=null;const u=e;if(typeof d!="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 l=u===e;l&&(y=!0,v=0);const f=e;if(e===f)if(Array.isArray(d)){var a=!0;const k=d.length;for(let O=0;O<k;O++){const I=e;if(typeof d[O]!="string"){const G={instancePath:t+"/path/"+O,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=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 l=f===e;if(l&&y?(y=!1,v=[v,1]):l&&(y=!0,v=1),y)e=p,r!==null&&(p?r.length=p:r=null);else{const k={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:v},message:"must match exactly one schema in oneOf"};return r===null?r=[k]:r.push(k),e++,ye.errors=r,!1}var n=o===e}else var n=!0;if(n){if(s.pathNot!==void 0){let d=s.pathNot;const o=e,p=e;let y=!1,v=null;const u=e;if(typeof d!="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 h=u===e;h&&(y=!0,v=0);const f=e;if(e===f)if(Array.isArray(d)){var i=!0;const O=d.length;for(let I=0;I<O;I++){const J=e;if(typeof d[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=J===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 h=f===e;if(h&&y?(y=!1,v=[v,1]):h&&(y=!0,v=1),y)e=p,r!==null&&(p?r.length=p:r=null);else{const O={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:v},message:"must match exactly one schema in oneOf"};return r===null?r=[O]:r.push(O),e++,ye.errors=r,!1}var n=o===e}else var n=!0;if(n)if(s.reachable!==void 0){const d=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=d===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 l;if(s.from===void 0&&(l="from")||s.to===void 0&&(l="to"))return pe.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!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 h=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=h===e}else var a=!0;if(a){if(s.scope!==void 0){let i=s.scope;const h=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=h===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 T=e;for(const c in s)if(!(c==="path"||c==="pathNot"||c==="numberOfDependentsLessThan"||c==="numberOfDependentsMoreThan")){return ne.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;break}if(T===e){if(s.path!==void 0){let c=s.path;const d=e,o=e;let p=!1,y=null;const v=e;if(typeof c!="string"){const f={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),e++}var l=v===e;l&&(p=!0,y=0);const u=e;if(e===u)if(Array.isArray(c)){var a=!0;const f=c.length;for(let k=0;k<f;k++){const O=e;if(typeof c[k]!="string"){const J={instancePath:t+"/path/"+k,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[J]:r.push(J),e++}var a=O===e;if(!a)break}}else{const f={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[f]:r.push(f),e++}var l=u===e;if(l&&p?(p=!1,y=[y,1]):l&&(p=!0,y=1),p)e=o,r!==null&&(o?r.length=o:r=null);else{const f={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf"};return r===null?r=[f]:r.push(f),e++,ne.errors=r,!1}var n=d===e}else var n=!0;if(n){if(s.pathNot!==void 0){let c=s.pathNot;const d=e,o=e;let p=!1,y=null;const v=e;if(typeof c!="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 h=v===e;h&&(p=!0,y=0);const u=e;if(e===u)if(Array.isArray(c)){var i=!0;const k=c.length;for(let O=0;O<k;O++){const I=e;if(typeof c[O]!="string"){const G={instancePath:t+"/pathNot/"+O,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 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 h=u===e;if(h&&p?(p=!1,y=[y,1]):h&&(p=!0,y=1),p)e=o,r!==null&&(o?r.length=o:r=null);else{const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf"};return r===null?r=[k]:r.push(k),e++,ne.errors=r,!1}var n=d===e}else var n=!0;if(n){if(s.numberOfDependentsLessThan!==void 0){let c=s.numberOfDependentsLessThan;const d=e;if(!(typeof c=="number"&&!(c%1)&&!isNaN(c)&&isFinite(c)))return ne.errors=[{instancePath:t+"/numberOfDependentsLessThan",schemaPath:"#/properties/numberOfDependentsLessThan/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(e===d&&typeof c=="number"&&isFinite(c)){if(c>100||isNaN(c))return ne.errors=[{instancePath:t+"/numberOfDependentsLessThan",schemaPath:"#/properties/numberOfDependentsLessThan/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100"}],!1;if(c<0||isNaN(c))return ne.errors=[{instancePath:t+"/numberOfDependentsLessThan",schemaPath:"#/properties/numberOfDependentsLessThan/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1}var n=d===e}else var n=!0;if(n)if(s.numberOfDependentsMoreThan!==void 0){let c=s.numberOfDependentsMoreThan;const d=e;if(!(typeof c=="number"&&!(c%1)&&!isNaN(c)&&isFinite(c)))return ne.errors=[{instancePath:t+"/numberOfDependentsMoreThan",schemaPath:"#/properties/numberOfDependentsMoreThan/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(e===d&&typeof c=="number"&&isFinite(c)){if(c>100||isNaN(c))return ne.errors=[{instancePath:t+"/numberOfDependentsMoreThan",schemaPath:"#/properties/numberOfDependentsMoreThan/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100"}],!1;if(c<0||isNaN(c))return ne.errors=[{instancePath:t+"/numberOfDependentsMoreThan",schemaPath:"#/properties/numberOfDependentsMoreThan/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1}var n=d===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 T=e;for(const c in s)if(!(c==="path"||c==="pathNot")){return De.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;break}if(T===e){if(s.path!==void 0){let c=s.path;const d=e,o=e;let p=!1,y=null;const v=e;if(typeof c!="string"){const f={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),e++}var l=v===e;l&&(p=!0,y=0);const u=e;if(e===u)if(Array.isArray(c)){var a=!0;const f=c.length;for(let k=0;k<f;k++){const O=e;if(typeof c[k]!="string"){const J={instancePath:t+"/path/"+k,schemaPath:"#/definitions/REAsStringsType/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[J]:r.push(J),e++}var a=O===e;if(!a)break}}else{const f={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[f]:r.push(f),e++}var l=u===e;if(l&&p?(p=!1,y=[y,1]):l&&(p=!0,y=1),p)e=o,r!==null&&(o?r.length=o:r=null);else{const f={instancePath:t+"/path",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf"};return r===null?r=[f]:r.push(f),e++,De.errors=r,!1}var n=d===e}else var n=!0;if(n)if(s.pathNot!==void 0){let c=s.pathNot;const d=e,o=e;let p=!1,y=null;const v=e;if(typeof c!="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 h=v===e;h&&(p=!0,y=0);const u=e;if(e===u)if(Array.isArray(c)){var i=!0;const k=c.length;for(let O=0;O<k;O++){const I=e;if(typeof c[O]!="string"){const G={instancePath:t+"/pathNot/"+O,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 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 h=u===e;if(h&&p?(p=!1,y=[y,1]):h&&(p=!0,y=1),p)e=o,r!==null&&(o?r.length=o:r=null);else{const k={instancePath:t+"/pathNot",schemaPath:"#/definitions/REAsStringsType/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf"};return r===null?r=[k]:r.push(k),e++,De.errors=r,!1}var n=d===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 l;if(s.module===void 0&&(l="module")||s.from===void 0&&(l="from"))return le.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!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