forked from projectmoon/tenebrous-dicebot
6 lines
20 KiB
JavaScript
6 lines
20 KiB
JavaScript
/*
|
|
* This file was automatically generated.
|
|
* DO NOT MODIFY BY HAND.
|
|
* Run `yarn special-lint-fix` to update
|
|
*/
|
|
const r=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;function t(r,{instancePath:e="",parentData:n,parentDataProperty:a,rootData:s=r}={}){if(!Array.isArray(r))return t.errors=[{params:{type:"array"}}],!1;{const e=r.length;for(let n=0;n<e;n++){let e=r[n];const a=0;if("string"!=typeof e)return t.errors=[{params:{type:"string"}}],!1;if(e.length<1)return t.errors=[{params:{}}],!1;if(0!==a)break}}return t.errors=null,!0}function e(r,{instancePath:n="",parentData:a,parentDataProperty:s,rootData:o=r}={}){let l=null,i=0;if(0===i){if(!r||"object"!=typeof r||Array.isArray(r))return e.errors=[{params:{type:"object"}}],!1;{let a;if(void 0===r.import&&(a="import"))return e.errors=[{params:{missingProperty:a}}],!1;{const a=i;for(const t in r)if("import"!==t&&"name"!==t)return e.errors=[{params:{additionalProperty:t}}],!1;if(a===i){if(void 0!==r.import){let a=r.import;const s=i,c=i;let u=!1;const m=i;if(i==i)if("string"==typeof a){if(a.length<1){const r={params:{}};null===l?l=[r]:l.push(r),i++}}else{const r={params:{type:"string"}};null===l?l=[r]:l.push(r),i++}var p=m===i;if(u=u||p,!u){const e=i;t(a,{instancePath:n+"/import",parentData:r,parentDataProperty:"import",rootData:o})||(l=null===l?t.errors:l.concat(t.errors),i=l.length),p=e===i,u=u||p}if(!u){const r={params:{}};return null===l?l=[r]:l.push(r),i++,e.errors=l,!1}i=c,null!==l&&(c?l.length=c:l=null);var f=s===i}else f=!0;if(f)if(void 0!==r.name){const t=i;if("string"!=typeof r.name)return e.errors=[{params:{type:"string"}}],!1;f=t===i}else f=!0}}}}return e.errors=l,0===i}function n(r,{instancePath:a="",parentData:s,parentDataProperty:o,rootData:l=r}={}){let i=null,p=0;if(0===p){if(!r||"object"!=typeof r||Array.isArray(r))return n.errors=[{params:{type:"object"}}],!1;for(const s in r){let o=r[s];const c=p,u=p;let m=!1;const y=p;e(o,{instancePath:a+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:s,rootData:l})||(i=null===i?e.errors:i.concat(e.errors),p=i.length);var f=y===p;if(m=m||f,!m){const e=p;if(p==p)if("string"==typeof o){if(o.length<1){const r={params:{}};null===i?i=[r]:i.push(r),p++}}else{const r={params:{type:"string"}};null===i?i=[r]:i.push(r),p++}if(f=e===p,m=m||f,!m){const e=p;t(o,{instancePath:a+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:s,rootData:l})||(i=null===i?t.errors:i.concat(t.errors),p=i.length),f=e===p,m=m||f}}if(!m){const r={params:{}};return null===i?i=[r]:i.push(r),p++,n.errors=i,!1}if(p=u,null!==i&&(u?i.length=u:i=null),c!==p)break}}return n.errors=i,0===p}function a(r,{instancePath:t="",parentData:e,parentDataProperty:s,rootData:o=r}={}){let l=null,i=0;const p=i;let f=!1;const c=i;if(i===c)if(Array.isArray(r)){const e=r.length;for(let a=0;a<e;a++){let e=r[a];const s=i,p=i;let f=!1;const c=i;if(i==i)if("string"==typeof e){if(e.length<1){const r={params:{}};null===l?l=[r]:l.push(r),i++}}else{const r={params:{type:"string"}};null===l?l=[r]:l.push(r),i++}var u=c===i;if(f=f||u,!f){const s=i;n(e,{instancePath:t+"/"+a,parentData:r,parentDataProperty:a,rootData:o})||(l=null===l?n.errors:l.concat(n.errors),i=l.length),u=s===i,f=f||u}if(f)i=p,null!==l&&(p?l.length=p:l=null);else{const r={params:{}};null===l?l=[r]:l.push(r),i++}if(s!==i)break}}else{const r={params:{type:"array"}};null===l?l=[r]:l.push(r),i++}var m=c===i;if(f=f||m,!f){const a=i;n(r,{instancePath:t,parentData:e,parentDataProperty:s,rootData:o})||(l=null===l?n.errors:l.concat(n.errors),i=l.length),m=a===i,f=f||m}if(!f){const r={params:{}};return null===l?l=[r]:l.push(r),i++,a.errors=l,!1}return i=p,null!==l&&(p?l.length=p:l=null),a.errors=l,0===i}function s(r,{instancePath:t="",parentData:e,parentDataProperty:n,rootData:a=r}={}){let o=null,l=0;const i=l;let p=!1;const f=l;if("string"!=typeof r){const r={params:{type:"string"}};null===o?o=[r]:o.push(r),l++}var c=f===l;if(p=p||c,!p){const t=l;if(l==l)if(r&&"object"==typeof r&&!Array.isArray(r)){const t=l;for(const t in r)if("amd"!==t&&"commonjs"!==t&&"commonjs2"!==t&&"root"!==t){const r={params:{additionalProperty:t}};null===o?o=[r]:o.push(r),l++;break}if(t===l){if(void 0!==r.amd){const t=l;if("string"!=typeof r.amd){const r={params:{type:"string"}};null===o?o=[r]:o.push(r),l++}var u=t===l}else u=!0;if(u){if(void 0!==r.commonjs){const t=l;if("string"!=typeof r.commonjs){const r={params:{type:"string"}};null===o?o=[r]:o.push(r),l++}u=t===l}else u=!0;if(u){if(void 0!==r.commonjs2){const t=l;if("string"!=typeof r.commonjs2){const r={params:{type:"string"}};null===o?o=[r]:o.push(r),l++}u=t===l}else u=!0;if(u)if(void 0!==r.root){const t=l;if("string"!=typeof r.root){const r={params:{type:"string"}};null===o?o=[r]:o.push(r),l++}u=t===l}else u=!0}}}}else{const r={params:{type:"object"}};null===o?o=[r]:o.push(r),l++}c=t===l,p=p||c}if(!p){const r={params:{}};return null===o?o=[r]:o.push(r),l++,s.errors=o,!1}return l=i,null!==o&&(i?o.length=i:o=null),s.errors=o,0===l}function o(r,{instancePath:t="",parentData:e,parentDataProperty:n,rootData:a=r}={}){let s=null,l=0;const i=l;let p=!1;const f=l;if(l===f)if(Array.isArray(r))if(r.length<1){const r={params:{limit:1}};null===s?s=[r]:s.push(r),l++}else{const t=r.length;for(let e=0;e<t;e++){let t=r[e];const n=l;if(l===n)if("string"==typeof t){if(t.length<1){const r={params:{}};null===s?s=[r]:s.push(r),l++}}else{const r={params:{type:"string"}};null===s?s=[r]:s.push(r),l++}if(n!==l)break}}else{const r={params:{type:"array"}};null===s?s=[r]:s.push(r),l++}var c=f===l;if(p=p||c,!p){const t=l;if(l===t)if("string"==typeof r){if(r.length<1){const r={params:{}};null===s?s=[r]:s.push(r),l++}}else{const r={params:{type:"string"}};null===s?s=[r]:s.push(r),l++}if(c=t===l,p=p||c,!p){const t=l;if(l==l)if(r&&"object"==typeof r&&!Array.isArray(r)){const t=l;for(const t in r)if("amd"!==t&&"commonjs"!==t&&"root"!==t){const r={params:{additionalProperty:t}};null===s?s=[r]:s.push(r),l++;break}if(t===l){if(void 0!==r.amd){let t=r.amd;const e=l;if(l===e)if("string"==typeof t){if(t.length<1){const r={params:{}};null===s?s=[r]:s.push(r),l++}}else{const r={params:{type:"string"}};null===s?s=[r]:s.push(r),l++}var u=e===l}else u=!0;if(u){if(void 0!==r.commonjs){let t=r.commonjs;const e=l;if(l===e)if("string"==typeof t){if(t.length<1){const r={params:{}};null===s?s=[r]:s.push(r),l++}}else{const r={params:{type:"string"}};null===s?s=[r]:s.push(r),l++}u=e===l}else u=!0;if(u)if(void 0!==r.root){let t=r.root;const e=l,n=l;let a=!1;const o=l;if(l===o)if(Array.isArray(t)){const r=t.length;for(let e=0;e<r;e++){let r=t[e];const n=l;if(l===n)if("string"==typeof r){if(r.length<1){const r={params:{}};null===s?s=[r]:s.push(r),l++}}else{const r={params:{type:"string"}};null===s?s=[r]:s.push(r),l++}if(n!==l)break}}else{const r={params:{type:"array"}};null===s?s=[r]:s.push(r),l++}var m=o===l;if(a=a||m,!a){const r=l;if(l===r)if("string"==typeof t){if(t.length<1){const r={params:{}};null===s?s=[r]:s.push(r),l++}}else{const r={params:{type:"string"}};null===s?s=[r]:s.push(r),l++}m=r===l,a=a||m}if(a)l=n,null!==s&&(n?s.length=n:s=null);else{const r={params:{}};null===s?s=[r]:s.push(r),l++}u=e===l}else u=!0}}}else{const r={params:{type:"object"}};null===s?s=[r]:s.push(r),l++}c=t===l,p=p||c}}if(!p){const r={params:{}};return null===s?s=[r]:s.push(r),l++,o.errors=s,!1}return l=i,null!==s&&(i?s.length=i:s=null),o.errors=s,0===l}function l(r,{instancePath:t="",parentData:e,parentDataProperty:n,rootData:a=r}={}){let i=null,p=0;if(0===p){if(!r||"object"!=typeof r||Array.isArray(r))return l.errors=[{params:{type:"object"}}],!1;{let e;if(void 0===r.type&&(e="type"))return l.errors=[{params:{missingProperty:e}}],!1;{const e=p;for(const t in r)if("auxiliaryComment"!==t&&"export"!==t&&"name"!==t&&"type"!==t&&"umdNamedDefine"!==t)return l.errors=[{params:{additionalProperty:t}}],!1;if(e===p){if(void 0!==r.auxiliaryComment){const e=p;s(r.auxiliaryComment,{instancePath:t+"/auxiliaryComment",parentData:r,parentDataProperty:"auxiliaryComment",rootData:a})||(i=null===i?s.errors:i.concat(s.errors),p=i.length);var f=e===p}else f=!0;if(f){if(void 0!==r.export){let t=r.export;const e=p,n=p;let a=!1;const s=p;if(p===s)if(Array.isArray(t)){const r=t.length;for(let e=0;e<r;e++){let r=t[e];const n=p;if(p===n)if("string"==typeof r){if(r.length<1){const r={params:{}};null===i?i=[r]:i.push(r),p++}}else{const r={params:{type:"string"}};null===i?i=[r]:i.push(r),p++}if(n!==p)break}}else{const r={params:{type:"array"}};null===i?i=[r]:i.push(r),p++}var c=s===p;if(a=a||c,!a){const r=p;if(p===r)if("string"==typeof t){if(t.length<1){const r={params:{}};null===i?i=[r]:i.push(r),p++}}else{const r={params:{type:"string"}};null===i?i=[r]:i.push(r),p++}c=r===p,a=a||c}if(!a){const r={params:{}};return null===i?i=[r]:i.push(r),p++,l.errors=i,!1}p=n,null!==i&&(n?i.length=n:i=null),f=e===p}else f=!0;if(f){if(void 0!==r.name){const e=p;o(r.name,{instancePath:t+"/name",parentData:r,parentDataProperty:"name",rootData:a})||(i=null===i?o.errors:i.concat(o.errors),p=i.length),f=e===p}else f=!0;if(f){if(void 0!==r.type){let t=r.type;const e=p,n=p;let a=!1;const s=p;if("var"!==t&&"module"!==t&&"assign"!==t&&"assign-properties"!==t&&"this"!==t&&"window"!==t&&"self"!==t&&"global"!==t&&"commonjs"!==t&&"commonjs2"!==t&&"commonjs-module"!==t&&"amd"!==t&&"amd-require"!==t&&"umd"!==t&&"umd2"!==t&&"jsonp"!==t&&"system"!==t){const r={params:{}};null===i?i=[r]:i.push(r),p++}var u=s===p;if(a=a||u,!a){const r=p;if("string"!=typeof t){const r={params:{type:"string"}};null===i?i=[r]:i.push(r),p++}u=r===p,a=a||u}if(!a){const r={params:{}};return null===i?i=[r]:i.push(r),p++,l.errors=i,!1}p=n,null!==i&&(n?i.length=n:i=null),f=e===p}else f=!0;if(f)if(void 0!==r.umdNamedDefine){const t=p;if("boolean"!=typeof r.umdNamedDefine)return l.errors=[{params:{type:"boolean"}}],!1;f=t===p}else f=!0}}}}}}}return l.errors=i,0===p}function i(r,{instancePath:t="",parentData:e,parentDataProperty:n,rootData:a=r}={}){if(!Array.isArray(r))return i.errors=[{params:{type:"array"}}],!1;{const t=r.length;for(let e=0;e<t;e++){let t=r[e];const n=0;if("string"!=typeof t)return i.errors=[{params:{type:"string"}}],!1;if(t.length<1)return i.errors=[{params:{}}],!1;if(0!==n)break}}return i.errors=null,!0}function p(r,{instancePath:t="",parentData:e,parentDataProperty:n,rootData:a=r}={}){let s=null,o=0;if(0===o){if(!r||"object"!=typeof r||Array.isArray(r))return p.errors=[{params:{type:"object"}}],!1;{let e;if(void 0===r.external&&(e="external"))return p.errors=[{params:{missingProperty:e}}],!1;{const e=o;for(const t in r)if("external"!==t&&"shareScope"!==t)return p.errors=[{params:{additionalProperty:t}}],!1;if(e===o){if(void 0!==r.external){let e=r.external;const n=o,c=o;let u=!1;const m=o;if(o==o)if("string"==typeof e){if(e.length<1){const r={params:{}};null===s?s=[r]:s.push(r),o++}}else{const r={params:{type:"string"}};null===s?s=[r]:s.push(r),o++}var l=m===o;if(u=u||l,!u){const n=o;i(e,{instancePath:t+"/external",parentData:r,parentDataProperty:"external",rootData:a})||(s=null===s?i.errors:s.concat(i.errors),o=s.length),l=n===o,u=u||l}if(!u){const r={params:{}};return null===s?s=[r]:s.push(r),o++,p.errors=s,!1}o=c,null!==s&&(c?s.length=c:s=null);var f=n===o}else f=!0;if(f)if(void 0!==r.shareScope){let t=r.shareScope;const e=o;if(o===e){if("string"!=typeof t)return p.errors=[{params:{type:"string"}}],!1;if(t.length<1)return p.errors=[{params:{}}],!1}f=e===o}else f=!0}}}}return p.errors=s,0===o}function f(r,{instancePath:t="",parentData:e,parentDataProperty:n,rootData:a=r}={}){let s=null,o=0;if(0===o){if(!r||"object"!=typeof r||Array.isArray(r))return f.errors=[{params:{type:"object"}}],!1;for(const e in r){let n=r[e];const c=o,u=o;let m=!1;const y=o;p(n,{instancePath:t+"/"+e.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:e,rootData:a})||(s=null===s?p.errors:s.concat(p.errors),o=s.length);var l=y===o;if(m=m||l,!m){const p=o;if(o==o)if("string"==typeof n){if(n.length<1){const r={params:{}};null===s?s=[r]:s.push(r),o++}}else{const r={params:{type:"string"}};null===s?s=[r]:s.push(r),o++}if(l=p===o,m=m||l,!m){const p=o;i(n,{instancePath:t+"/"+e.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:e,rootData:a})||(s=null===s?i.errors:s.concat(i.errors),o=s.length),l=p===o,m=m||l}}if(!m){const r={params:{}};return null===s?s=[r]:s.push(r),o++,f.errors=s,!1}if(o=u,null!==s&&(u?s.length=u:s=null),c!==o)break}}return f.errors=s,0===o}function c(r,{instancePath:t="",parentData:e,parentDataProperty:n,rootData:a=r}={}){let s=null,o=0;const l=o;let i=!1;const p=o;if(o===p)if(Array.isArray(r)){const e=r.length;for(let n=0;n<e;n++){let e=r[n];const l=o,i=o;let p=!1;const c=o;if(o==o)if("string"==typeof e){if(e.length<1){const r={params:{}};null===s?s=[r]:s.push(r),o++}}else{const r={params:{type:"string"}};null===s?s=[r]:s.push(r),o++}var u=c===o;if(p=p||u,!p){const l=o;f(e,{instancePath:t+"/"+n,parentData:r,parentDataProperty:n,rootData:a})||(s=null===s?f.errors:s.concat(f.errors),o=s.length),u=l===o,p=p||u}if(p)o=i,null!==s&&(i?s.length=i:s=null);else{const r={params:{}};null===s?s=[r]:s.push(r),o++}if(l!==o)break}}else{const r={params:{type:"array"}};null===s?s=[r]:s.push(r),o++}var m=p===o;if(i=i||m,!i){const l=o;f(r,{instancePath:t,parentData:e,parentDataProperty:n,rootData:a})||(s=null===s?f.errors:s.concat(f.errors),o=s.length),m=l===o,i=i||m}if(!i){const r={params:{}};return null===s?s=[r]:s.push(r),o++,c.errors=s,!1}return o=l,null!==s&&(l?s.length=l:s=null),c.errors=s,0===o}module.exports=D,module.exports.default=D;const u={eager:{type:"boolean"},import:{anyOf:[{enum:[!1]},{$ref:"#/definitions/SharedItem"}]},packageName:{type:"string",minLength:1},requiredVersion:{anyOf:[{enum:[!1]},{type:"string"}]},shareKey:{type:"string",minLength:1},shareScope:{type:"string",minLength:1},singleton:{type:"boolean"},strictVersion:{type:"boolean"},version:{anyOf:[{enum:[!1]},{type:"string"}]}},m=Object.prototype.hasOwnProperty;function y(r,{instancePath:t="",parentData:e,parentDataProperty:n,rootData:a=r}={}){let s=null,o=0;if(0===o){if(!r||"object"!=typeof r||Array.isArray(r))return y.errors=[{params:{type:"object"}}],!1;{const t=o;for(const t in r)if(!m.call(u,t))return y.errors=[{params:{additionalProperty:t}}],!1;if(t===o){if(void 0!==r.eager){const t=o;if("boolean"!=typeof r.eager)return y.errors=[{params:{type:"boolean"}}],!1;var l=t===o}else l=!0;if(l){if(void 0!==r.import){let t=r.import;const e=o,n=o;let a=!1;const p=o;if(!1!==t){const r={params:{}};null===s?s=[r]:s.push(r),o++}var i=p===o;if(a=a||i,!a){const r=o;if(o==o)if("string"==typeof t){if(t.length<1){const r={params:{}};null===s?s=[r]:s.push(r),o++}}else{const r={params:{type:"string"}};null===s?s=[r]:s.push(r),o++}i=r===o,a=a||i}if(!a){const r={params:{}};return null===s?s=[r]:s.push(r),o++,y.errors=s,!1}o=n,null!==s&&(n?s.length=n:s=null),l=e===o}else l=!0;if(l){if(void 0!==r.packageName){let t=r.packageName;const e=o;if(o===e){if("string"!=typeof t)return y.errors=[{params:{type:"string"}}],!1;if(t.length<1)return y.errors=[{params:{}}],!1}l=e===o}else l=!0;if(l){if(void 0!==r.requiredVersion){let t=r.requiredVersion;const e=o,n=o;let a=!1;const i=o;if(!1!==t){const r={params:{}};null===s?s=[r]:s.push(r),o++}var p=i===o;if(a=a||p,!a){const r=o;if("string"!=typeof t){const r={params:{type:"string"}};null===s?s=[r]:s.push(r),o++}p=r===o,a=a||p}if(!a){const r={params:{}};return null===s?s=[r]:s.push(r),o++,y.errors=s,!1}o=n,null!==s&&(n?s.length=n:s=null),l=e===o}else l=!0;if(l){if(void 0!==r.shareKey){let t=r.shareKey;const e=o;if(o===e){if("string"!=typeof t)return y.errors=[{params:{type:"string"}}],!1;if(t.length<1)return y.errors=[{params:{}}],!1}l=e===o}else l=!0;if(l){if(void 0!==r.shareScope){let t=r.shareScope;const e=o;if(o===e){if("string"!=typeof t)return y.errors=[{params:{type:"string"}}],!1;if(t.length<1)return y.errors=[{params:{}}],!1}l=e===o}else l=!0;if(l){if(void 0!==r.singleton){const t=o;if("boolean"!=typeof r.singleton)return y.errors=[{params:{type:"boolean"}}],!1;l=t===o}else l=!0;if(l){if(void 0!==r.strictVersion){const t=o;if("boolean"!=typeof r.strictVersion)return y.errors=[{params:{type:"boolean"}}],!1;l=t===o}else l=!0;if(l)if(void 0!==r.version){let t=r.version;const e=o,n=o;let a=!1;const i=o;if(!1!==t){const r={params:{}};null===s?s=[r]:s.push(r),o++}var f=i===o;if(a=a||f,!a){const r=o;if("string"!=typeof t){const r={params:{type:"string"}};null===s?s=[r]:s.push(r),o++}f=r===o,a=a||f}if(!a){const r={params:{}};return null===s?s=[r]:s.push(r),o++,y.errors=s,!1}o=n,null!==s&&(n?s.length=n:s=null),l=e===o}else l=!0}}}}}}}}}}return y.errors=s,0===o}function h(r,{instancePath:t="",parentData:e,parentDataProperty:n,rootData:a=r}={}){let s=null,o=0;if(0===o){if(!r||"object"!=typeof r||Array.isArray(r))return h.errors=[{params:{type:"object"}}],!1;for(const e in r){let n=r[e];const i=o,p=o;let f=!1;const c=o;y(n,{instancePath:t+"/"+e.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:e,rootData:a})||(s=null===s?y.errors:s.concat(y.errors),o=s.length);var l=c===o;if(f=f||l,!f){const r=o;if(o==o)if("string"==typeof n){if(n.length<1){const r={params:{}};null===s?s=[r]:s.push(r),o++}}else{const r={params:{type:"string"}};null===s?s=[r]:s.push(r),o++}l=r===o,f=f||l}if(!f){const r={params:{}};return null===s?s=[r]:s.push(r),o++,h.errors=s,!1}if(o=p,null!==s&&(p?s.length=p:s=null),i!==o)break}}return h.errors=s,0===o}function g(r,{instancePath:t="",parentData:e,parentDataProperty:n,rootData:a=r}={}){let s=null,o=0;const l=o;let i=!1;const p=o;if(o===p)if(Array.isArray(r)){const e=r.length;for(let n=0;n<e;n++){let e=r[n];const l=o,i=o;let p=!1;const c=o;if(o==o)if("string"==typeof e){if(e.length<1){const r={params:{}};null===s?s=[r]:s.push(r),o++}}else{const r={params:{type:"string"}};null===s?s=[r]:s.push(r),o++}var f=c===o;if(p=p||f,!p){const l=o;h(e,{instancePath:t+"/"+n,parentData:r,parentDataProperty:n,rootData:a})||(s=null===s?h.errors:s.concat(h.errors),o=s.length),f=l===o,p=p||f}if(p)o=i,null!==s&&(i?s.length=i:s=null);else{const r={params:{}};null===s?s=[r]:s.push(r),o++}if(l!==o)break}}else{const r={params:{type:"array"}};null===s?s=[r]:s.push(r),o++}var c=p===o;if(i=i||c,!i){const l=o;h(r,{instancePath:t,parentData:e,parentDataProperty:n,rootData:a})||(s=null===s?h.errors:s.concat(h.errors),o=s.length),c=l===o,i=i||c}if(!i){const r={params:{}};return null===s?s=[r]:s.push(r),o++,g.errors=s,!1}return o=l,null!==s&&(l?s.length=l:s=null),g.errors=s,0===o}function D(t,{instancePath:e="",parentData:n,parentDataProperty:s,rootData:o=t}={}){let i=null,p=0;if(0===p){if(!t||"object"!=typeof t||Array.isArray(t))return D.errors=[{params:{type:"object"}}],!1;{const n=p;for(const r in t)if("exposes"!==r&&"filename"!==r&&"library"!==r&&"name"!==r&&"remoteType"!==r&&"remotes"!==r&&"shareScope"!==r&&"shared"!==r)return D.errors=[{params:{additionalProperty:r}}],!1;if(n===p){if(void 0!==t.exposes){const r=p;a(t.exposes,{instancePath:e+"/exposes",parentData:t,parentDataProperty:"exposes",rootData:o})||(i=null===i?a.errors:i.concat(a.errors),p=i.length);var f=r===p}else f=!0;if(f){if(void 0!==t.filename){let e=t.filename;const n=p;if(p===n){if("string"!=typeof e)return D.errors=[{params:{type:"string"}}],!1;if(e.includes("!")||!1!==r.test(e))return D.errors=[{params:{}}],!1}f=n===p}else f=!0;if(f){if(void 0!==t.library){const r=p;l(t.library,{instancePath:e+"/library",parentData:t,parentDataProperty:"library",rootData:o})||(i=null===i?l.errors:i.concat(l.errors),p=i.length),f=r===p}else f=!0;if(f){if(void 0!==t.name){const r=p;if("string"!=typeof t.name)return D.errors=[{params:{type:"string"}}],!1;f=r===p}else f=!0;if(f){if(void 0!==t.remoteType){let r=t.remoteType;const e=p,n=p;let a=!1,s=null;const o=p;if("var"!==r&&"module"!==r&&"assign"!==r&&"this"!==r&&"window"!==r&&"self"!==r&&"global"!==r&&"commonjs"!==r&&"commonjs2"!==r&&"commonjs-module"!==r&&"amd"!==r&&"amd-require"!==r&&"umd"!==r&&"umd2"!==r&&"jsonp"!==r&&"system"!==r&&"promise"!==r&&"import"!==r&&"script"!==r){const r={params:{}};null===i?i=[r]:i.push(r),p++}if(o===p&&(a=!0,s=0),!a){const r={params:{passingSchemas:s}};return null===i?i=[r]:i.push(r),p++,D.errors=i,!1}p=n,null!==i&&(n?i.length=n:i=null),f=e===p}else f=!0;if(f){if(void 0!==t.remotes){const r=p;c(t.remotes,{instancePath:e+"/remotes",parentData:t,parentDataProperty:"remotes",rootData:o})||(i=null===i?c.errors:i.concat(c.errors),p=i.length),f=r===p}else f=!0;if(f){if(void 0!==t.shareScope){let r=t.shareScope;const e=p;if(p===e){if("string"!=typeof r)return D.errors=[{params:{type:"string"}}],!1;if(r.length<1)return D.errors=[{params:{}}],!1}f=e===p}else f=!0;if(f)if(void 0!==t.shared){const r=p;g(t.shared,{instancePath:e+"/shared",parentData:t,parentDataProperty:"shared",rootData:o})||(i=null===i?g.errors:i.concat(g.errors),p=i.length),f=r===p}else f=!0}}}}}}}}}return D.errors=i,0===p} |