webpack
Version:
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
6 lines • 9.45 kB
JavaScript
/*
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn fix:special` to update
*/
;module.exports=p,module.exports.default=p;const t={type:"object",additionalProperties:!1,properties:{as:{type:"string"},exclude:{$ref:"#/definitions/RuleSetCondition"},fetchPriority:{enum:["low","high","auto",!1]},include:{$ref:"#/definitions/RuleSetCondition"},media:{type:"string"},prefetch:{type:"boolean"},preload:{type:"boolean"},test:{$ref:"#/definitions/RuleSetCondition"},type:{type:"string"}}},r=Object.prototype.hasOwnProperty,e={validate:s};function a(t,{instancePath:r="",parentData:n,parentDataProperty:s,rootData:o=t}={}){let l=null,i=0;if(0===i){if(!Array.isArray(t))return a.errors=[{params:{type:"array"}}],!1;{const n=t.length;for(let s=0;s<n;s++){const n=i,p=i;let c=!1,u=null;const f=i;if(e.validate(t[s],{instancePath:r+"/"+s,parentData:t,parentDataProperty:s,rootData:o})||(l=null===l?e.validate.errors:l.concat(e.validate.errors),i=l.length),f===i&&(c=!0,u=0),!c){const t={params:{passingSchemas:u}};return null===l?l=[t]:l.push(t),i++,a.errors=l,!1}if(i=p,null!==l&&(p?l.length=p:l=null),n!==i)break}}}return a.errors=l,0===i}function n(t,{instancePath:r="",parentData:s,parentDataProperty:o,rootData:l=t}={}){let i=null,p=0;if(0===p){if(!t||"object"!=typeof t||Array.isArray(t))return n.errors=[{params:{type:"object"}}],!1;{const s=p;for(const r in t)if("and"!==r&&"not"!==r&&"or"!==r)return n.errors=[{params:{additionalProperty:r}}],!1;if(s===p){if(void 0!==t.and){const e=p,s=p;let o=!1,u=null;const f=p;if(a(t.and,{instancePath:r+"/and",parentData:t,parentDataProperty:"and",rootData:l})||(i=null===i?a.errors:i.concat(a.errors),p=i.length),f===p&&(o=!0,u=0),!o){const t={params:{passingSchemas:u}};return null===i?i=[t]:i.push(t),p++,n.errors=i,!1}p=s,null!==i&&(s?i.length=s:i=null);var c=e===p}else c=!0;if(c){if(void 0!==t.not){const a=p,s=p;let o=!1,u=null;const f=p;if(e.validate(t.not,{instancePath:r+"/not",parentData:t,parentDataProperty:"not",rootData:l})||(i=null===i?e.validate.errors:i.concat(e.validate.errors),p=i.length),f===p&&(o=!0,u=0),!o){const t={params:{passingSchemas:u}};return null===i?i=[t]:i.push(t),p++,n.errors=i,!1}p=s,null!==i&&(s?i.length=s:i=null),c=a===p}else c=!0;if(c)if(void 0!==t.or){const e=p,s=p;let o=!1,u=null;const f=p;if(a(t.or,{instancePath:r+"/or",parentData:t,parentDataProperty:"or",rootData:l})||(i=null===i?a.errors:i.concat(a.errors),p=i.length),f===p&&(o=!0,u=0),!o){const t={params:{passingSchemas:u}};return null===i?i=[t]:i.push(t),p++,n.errors=i,!1}p=s,null!==i&&(s?i.length=s:i=null),c=e===p}else c=!0}}}}return n.errors=i,0===p}function s(t,{instancePath:r="",parentData:e,parentDataProperty:o,rootData:l=t}={}){let i=null,p=0;const c=p;let u=!1;const f=p;if(!(t instanceof RegExp)){const t={params:{}};null===i?i=[t]:i.push(t),p++}var y=f===p;if(u=u||y,!u){const s=p;if("string"!=typeof t){const t={params:{type:"string"}};null===i?i=[t]:i.push(t),p++}if(y=s===p,u=u||y,!u){const s=p;if(!(t instanceof Function)){const t={params:{}};null===i?i=[t]:i.push(t),p++}if(y=s===p,u=u||y,!u){const s=p;if(n(t,{instancePath:r,parentData:e,parentDataProperty:o,rootData:l})||(i=null===i?n.errors:i.concat(n.errors),p=i.length),y=s===p,u=u||y,!u){const n=p;a(t,{instancePath:r,parentData:e,parentDataProperty:o,rootData:l})||(i=null===i?a.errors:i.concat(a.errors),p=i.length),y=n===p,u=u||y}}}}if(!u){const t={params:{}};return null===i?i=[t]:i.push(t),p++,s.errors=i,!1}return p=c,null!==i&&(c?i.length=c:i=null),s.errors=i,0===p}function o(e,{instancePath:a="",parentData:n,parentDataProperty:l,rootData:i=e}={}){let p=null,c=0;if(0===c){if(!e||"object"!=typeof e||Array.isArray(e))return o.errors=[{params:{type:"object"}}],!1;{const n=c;for(const a in e)if(!r.call(t.properties,a))return o.errors=[{params:{additionalProperty:a}}],!1;if(n===c){if(void 0!==e.as){const t=c;if("string"!=typeof e.as)return o.errors=[{params:{type:"string"}}],!1;var u=t===c}else u=!0;if(u){if(void 0!==e.exclude){const t=c;s(e.exclude,{instancePath:a+"/exclude",parentData:e,parentDataProperty:"exclude",rootData:i})||(p=null===p?s.errors:p.concat(s.errors),c=p.length),u=t===c}else u=!0;if(u){if(void 0!==e.fetchPriority){let t=e.fetchPriority;const r=c;if("low"!==t&&"high"!==t&&"auto"!==t&&!1!==t)return o.errors=[{params:{}}],!1;u=r===c}else u=!0;if(u){if(void 0!==e.include){const t=c;s(e.include,{instancePath:a+"/include",parentData:e,parentDataProperty:"include",rootData:i})||(p=null===p?s.errors:p.concat(s.errors),c=p.length),u=t===c}else u=!0;if(u){if(void 0!==e.media){const t=c;if("string"!=typeof e.media)return o.errors=[{params:{type:"string"}}],!1;u=t===c}else u=!0;if(u){if(void 0!==e.prefetch){const t=c;if("boolean"!=typeof e.prefetch)return o.errors=[{params:{type:"boolean"}}],!1;u=t===c}else u=!0;if(u){if(void 0!==e.preload){const t=c;if("boolean"!=typeof e.preload)return o.errors=[{params:{type:"boolean"}}],!1;u=t===c}else u=!0;if(u){if(void 0!==e.test){const t=c;s(e.test,{instancePath:a+"/test",parentData:e,parentDataProperty:"test",rootData:i})||(p=null===p?s.errors:p.concat(s.errors),c=p.length),u=t===c}else u=!0;if(u)if(void 0!==e.type){const t=c;if("string"!=typeof e.type)return o.errors=[{params:{type:"string"}}],!1;u=t===c}else u=!0}}}}}}}}}}return o.errors=p,0===c}function l(t,{instancePath:r="",parentData:e,parentDataProperty:a,rootData:n=t}={}){let s=null,i=0;if(0===i){if(!Array.isArray(t))return l.errors=[{params:{type:"array"}}],!1;{const e=t.length;for(let a=0;a<e;a++){const e=i;if(o(t[a],{instancePath:r+"/"+a,parentData:t,parentDataProperty:a,rootData:n})||(s=null===s?o.errors:s.concat(o.errors),i=s.length),e!==i)break}}}return l.errors=s,0===i}function i(t,{instancePath:r="",parentData:e,parentDataProperty:a,rootData:n=t}={}){let s=null,o=0;if(0===o){if(!t||"object"!=typeof t||Array.isArray(t))return i.errors=[{params:{type:"object"}}],!1;{const e=o;for(const r in t)if("as"!==r&&"sources"!==r&&"template"!==r&&"urlHints"!==r)return i.errors=[{params:{additionalProperty:r}}],!1;if(e===o){if(void 0!==t.as){let r=t.as;const e=o,a=o;let n=!1;const l=o;if("document"!==r){const t={params:{}};null===s?s=[t]:s.push(t),o++}var p=l===o;if(n=n||p,!n){const t=o;if("string"!=typeof r){const t={params:{type:"string"}};null===s?s=[t]:s.push(t),o++}p=t===o,n=n||p}if(!n){const t={params:{}};return null===s?s=[t]:s.push(t),o++,i.errors=s,!1}o=a,null!==s&&(a?s.length=a:s=null);var c=e===o}else c=!0;if(c){if(void 0!==t.sources){let r=t.sources;const e=o,a=o;let n=!1;const l=o;if(o===l)if(Array.isArray(r))if(r.length<1){const t={params:{limit:1}};null===s?s=[t]:s.push(t),o++}else{const t=r.length;for(let e=0;e<t;e++){let t=r[e];const a=o,n=o;let l=!1;const i=o;if("..."!==t){const t={params:{}};null===s?s=[t]:s.push(t),o++}var u=i===o;if(l=l||u,!l){const r=o;if(o===r)if(t&&"object"==typeof t&&!Array.isArray(t)){let r;if(void 0===t.attribute&&(r="attribute")||void 0===t.type&&(r="type")){const t={params:{missingProperty:r}};null===s?s=[t]:s.push(t),o++}else{const r=o;for(const r in t)if("attribute"!==r&&"filter"!==r&&"tag"!==r&&"type"!==r){const t={params:{additionalProperty:r}};null===s?s=[t]:s.push(t),o++;break}if(r===o){if(void 0!==t.attribute){let r=t.attribute;const e=o;if(o===e)if("string"==typeof r){if(r.length<1){const t={params:{}};null===s?s=[t]:s.push(t),o++}}else{const t={params:{type:"string"}};null===s?s=[t]:s.push(t),o++}var f=e===o}else f=!0;if(f){if(void 0!==t.filter){const r=o;if(!(t.filter instanceof Function)){const t={params:{}};null===s?s=[t]:s.push(t),o++}f=r===o}else f=!0;if(f){if(void 0!==t.tag){let r=t.tag;const e=o;if(o===e)if("string"==typeof r){if(r.length<1){const t={params:{}};null===s?s=[t]:s.push(t),o++}}else{const t={params:{type:"string"}};null===s?s=[t]:s.push(t),o++}f=e===o}else f=!0;if(f)if(void 0!==t.type){let r=t.type;const e=o,a=o;let n=!1;const l=o;if("src"!==r&&"srcset"!==r&&"css-url"!==r&&"script"!==r&&"script-module"!==r&&"stylesheet"!==r&&"html"!==r&&"stylesheet-style"!==r&&"stylesheet-style-attribute"!==r&&"srcdoc"!==r){const t={params:{}};null===s?s=[t]:s.push(t),o++}var y=l===o;if(n=n||y,!n){const t=o;if(!1!==r){const t={params:{}};null===s?s=[t]:s.push(t),o++}y=t===o,n=n||y}if(n)o=a,null!==s&&(a?s.length=a:s=null);else{const t={params:{}};null===s?s=[t]:s.push(t),o++}f=e===o}else f=!0}}}}}else{const t={params:{type:"object"}};null===s?s=[t]:s.push(t),o++}u=r===o,l=l||u}if(l)o=n,null!==s&&(n?s.length=n:s=null);else{const t={params:{}};null===s?s=[t]:s.push(t),o++}if(a!==o)break}}else{const t={params:{type:"array"}};null===s?s=[t]:s.push(t),o++}var h=l===o;if(n=n||h,!n){const t=o;if("boolean"!=typeof r){const t={params:{type:"boolean"}};null===s?s=[t]:s.push(t),o++}h=t===o,n=n||h}if(!n){const t={params:{}};return null===s?s=[t]:s.push(t),o++,i.errors=s,!1}o=a,null!==s&&(a?s.length=a:s=null),c=e===o}else c=!0;if(c){if(void 0!==t.template){const r=o;if(!(t.template instanceof Function))return i.errors=[{params:{}}],!1;c=r===o}else c=!0;if(c)if(void 0!==t.urlHints){const e=o;l(t.urlHints,{instancePath:r+"/urlHints",parentData:t,parentDataProperty:"urlHints",rootData:n})||(s=null===s?l.errors:s.concat(l.errors),o=s.length),c=e===o}else c=!0}}}}}return i.errors=s,0===o}function p(t,{instancePath:r="",parentData:e,parentDataProperty:a,rootData:n=t}={}){let s=null,o=0;return i(t,{instancePath:r,parentData:e,parentDataProperty:a,rootData:n})||(s=null===s?i.errors:s.concat(i.errors),o=s.length),p.errors=s,0===o}