UNPKG

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.

7 lines • 11.6 kB
/* eslint-disable */ // @ts-nocheck /* * This file was automatically generated by "schema-utils". * DO NOT MODIFY BY HAND. */ "use strict";module.exports=y,module.exports.default=y;let t={type:"object",additionalProperties:!1,properties:{as:{$ref:"#/definitions/HtmlParserAs"},chunkName:{anyOf:[{type:"string",minLength:1},{instanceof:"Function"}]},sources:{anyOf:[{type:"array",items:{anyOf:[{enum:["..."]},{type:"object",additionalProperties:!1,properties:{attribute:{type:"string",minLength:1},filter:{instanceof:"Function"},tag:{type:"string",minLength:1},type:{anyOf:[{enum:["src","srcset","css-url","script","script-module","stylesheet","html","stylesheet-style","stylesheet-style-attribute","srcdoc"]},{enum:[!1]}]}},required:["attribute","type"]}]},minItems:1},{type:"boolean"}]},template:{instanceof:"Function"},urlHints:{$ref:"#/definitions/UrlHints"}}},r={anyOf:[{enum:["document"]},{type:"string"}]},e=function(t){let r=t.length,e,n=0,a=0;for(;a<r;)n++,(e=t.charCodeAt(a++))>=55296&&e<=56319&&a<r&&(64512&(e=t.charCodeAt(a)))==56320&&a++;return n},n={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"}}},a=Object.prototype.hasOwnProperty,s={validate:p};function o(t,{instancePath:r="",parentData,parentDataProperty,rootData=t}={}){let e=null,n=0;if(n===0){if(!Array.isArray(t))return o.errors=[{params:{type:"array"}}],!1;{let a=t.length;for(let l=0;l<a;l++){let a=n,i=n,p=!1,u=null,c=n;if(s.validate(t[l],{instancePath:r+"/"+l,parentData:t,parentDataProperty:l,rootData})||(n=(e=e===null?s.validate.errors:e.concat(s.validate.errors)).length),c===n&&(p=!0,u=0),!p){let t={params:{passingSchemas:u}};return e===null?e=[t]:e.push(t),n++,o.errors=e,!1}if(n=i,e!==null&&(i?e.length=i:e=null),a!==n)break}}}return o.errors=e,n===0}function l(t,{instancePath="",parentData,parentDataProperty,rootData=t}={}){if(!Array.isArray(t))return l.errors=[{params:{type:"array"}}],!1;{let r=t.length;for(let n=0;n<r;n++){let r=t[n];if("string"!=typeof r)return l.errors=[{params:{type:"string"}}],!1;if(e(r)<1)return l.errors=[{params:{limit:1}}],!1}}return l.errors=null,!0}function i(t,{instancePath:r="",parentData,parentDataProperty,rootData=t}={}){let n=null,a=0;if(a===0){if(!t||"object"!=typeof t||Array.isArray(t))return i.errors=[{params:{type:"object"}}],!1;{let c=a;for(let r in t)if("and"!==r&&"glob"!==r&&"not"!==r&&"or"!==r)return i.errors=[{params:{additionalProperty:r}}],!1;if(c===a){if(t.and!==void 0){let e=a,s=a,l=!1,u=null,c=a;if(o(t.and,{instancePath:r+"/and",parentData:t,parentDataProperty:"and",rootData})||(a=(n=n===null?o.errors:n.concat(o.errors)).length),c===a&&(l=!0,u=0),!l){let t={params:{passingSchemas:u}};return n===null?n=[t]:n.push(t),a++,i.errors=n,!1}a=s,n!==null&&(s?n.length=s:n=null);var p=e===a}else p=!0;if(p){if(t.glob!==void 0){let s=t.glob,o=a,c=a,f=!1,y=a;if(a==a)if("string"==typeof s){if(e(s)<1){let t={params:{limit:1}};n===null?n=[t]:n.push(t),a++}}else{let t={params:{type:"string"}};n===null?n=[t]:n.push(t),a++}var u=y===a;if(!(f=f||u)){let e=a;l(s,{instancePath:r+"/glob",parentData:t,parentDataProperty:"glob",rootData})||(a=(n=n===null?l.errors:n.concat(l.errors)).length),u=e===a,f=f||u}if(!f){let t={params:{}};return n===null?n=[t]:n.push(t),a++,i.errors=n,!1}a=c,n!==null&&(c?n.length=c:n=null),p=o===a}else p=!0;if(p){if(t.not!==void 0){let e=a,o=a,l=!1,u=null,c=a;if(s.validate(t.not,{instancePath:r+"/not",parentData:t,parentDataProperty:"not",rootData})||(a=(n=n===null?s.validate.errors:n.concat(s.validate.errors)).length),c===a&&(l=!0,u=0),!l){let t={params:{passingSchemas:u}};return n===null?n=[t]:n.push(t),a++,i.errors=n,!1}a=o,n!==null&&(o?n.length=o:n=null),p=e===a}else p=!0;if(p)if(t.or!==void 0){let e=a,s=a,l=!1,u=null,c=a;if(o(t.or,{instancePath:r+"/or",parentData:t,parentDataProperty:"or",rootData})||(a=(n=n===null?o.errors:n.concat(o.errors)).length),c===a&&(l=!0,u=0),!l){let t={params:{passingSchemas:u}};return n===null?n=[t]:n.push(t),a++,i.errors=n,!1}a=s,n!==null&&(s?n.length=s:n=null),p=e===a}else p=!0}}}}}return i.errors=n,a===0}function p(t,{instancePath="",parentData,parentDataProperty,rootData=t}={}){let r=null,e=0,n=e,a=!1,s=e;if(!(t instanceof RegExp)){let t={params:{}};r===null?r=[t]:r.push(t),e++}var l=s===e;if(!(a=a||l)){let n=e;if("string"!=typeof t){let t={params:{type:"string"}};r===null?r=[t]:r.push(t),e++}if(l=n===e,!(a=a||l)){let n=e;if(!(t instanceof Function)){let t={params:{}};r===null?r=[t]:r.push(t),e++}if(l=n===e,!(a=a||l)){let n=e;if(i(t,{instancePath,parentData,parentDataProperty,rootData})||(e=(r=r===null?i.errors:r.concat(i.errors)).length),l=n===e,!(a=a||l)){let n=e;o(t,{instancePath,parentData,parentDataProperty,rootData})||(e=(r=r===null?o.errors:r.concat(o.errors)).length),l=n===e,a=a||l}}}}if(!a){let t={params:{}};return r===null?r=[t]:r.push(t),e++,p.errors=r,!1}return e=n,r!==null&&(n?r.length=n:r=null),p.errors=r,e===0}function u(t,{instancePath:r="",parentData,parentDataProperty,rootData=t}={}){let e=null,s=0;if(s===0){if(!t||"object"!=typeof t||Array.isArray(t))return u.errors=[{params:{type:"object"}}],!1;{let l=s;for(let r in t)if(!a.call(n.properties,r))return u.errors=[{params:{additionalProperty:r}}],!1;if(l===s){if(t.as!==void 0){if("string"!=typeof t.as)return u.errors=[{params:{type:"string"}}],!1;var o=s===s}else o=!0;if(o){if(t.exclude!==void 0){let n=s;p(t.exclude,{instancePath:r+"/exclude",parentData:t,parentDataProperty:"exclude",rootData})||(s=(e=e===null?p.errors:e.concat(p.errors)).length),o=n===s}else o=!0;if(o){if(t.fetchPriority!==void 0){let r=t.fetchPriority;if("low"!==r&&"high"!==r&&"auto"!==r&&!1!==r)return u.errors=[{params:{allowedValues:n.properties.fetchPriority.enum}}],!1;o=s===s}else o=!0;if(o){if(t.include!==void 0){let n=s;p(t.include,{instancePath:r+"/include",parentData:t,parentDataProperty:"include",rootData})||(s=(e=e===null?p.errors:e.concat(p.errors)).length),o=n===s}else o=!0;if(o){if(t.media!==void 0){if("string"!=typeof t.media)return u.errors=[{params:{type:"string"}}],!1;o=s===s}else o=!0;if(o){if(t.prefetch!==void 0){if("boolean"!=typeof t.prefetch)return u.errors=[{params:{type:"boolean"}}],!1;o=s===s}else o=!0;if(o){if(t.preload!==void 0){if("boolean"!=typeof t.preload)return u.errors=[{params:{type:"boolean"}}],!1;o=s===s}else o=!0;if(o){if(t.test!==void 0){let n=s;p(t.test,{instancePath:r+"/test",parentData:t,parentDataProperty:"test",rootData})||(s=(e=e===null?p.errors:e.concat(p.errors)).length),o=n===s}else o=!0;if(o)if(t.type!==void 0){if("string"!=typeof t.type)return u.errors=[{params:{type:"string"}}],!1;o=s===s}else o=!0}}}}}}}}}}return u.errors=e,s===0}function c(t,{instancePath:r="",parentData,parentDataProperty,rootData=t}={}){let e=null,n=0;if(n===0){if(!Array.isArray(t))return c.errors=[{params:{type:"array"}}],!1;{let a=t.length;for(let s=0;s<a;s++){let a=n;if(u(t[s],{instancePath:r+"/"+s,parentData:t,parentDataProperty:s,rootData})||(n=(e=e===null?u.errors:e.concat(u.errors)).length),a!==n)break}}}return c.errors=e,n===0}function f(n,{instancePath:a="",parentData,parentDataProperty,rootData=n}={}){let s=null,o=0;if(o===0){if(!n||"object"!=typeof n||Array.isArray(n))return f.errors=[{params:{type:"object"}}],!1;{let d=o;for(let t in n)if("as"!==t&&"chunkName"!==t&&"sources"!==t&&"template"!==t&&"urlHints"!==t)return f.errors=[{params:{additionalProperty:t}}],!1;if(d===o){if(n.as!==void 0){let t=n.as,e=o,a=o,p=!1,u=o;if("document"!==t){let t={params:{allowedValues:r.anyOf[0].enum}};s===null?s=[t]:s.push(t),o++}var l=u===o;if(!(p=p||l)){let r=o;if("string"!=typeof t){let t={params:{type:"string"}};s===null?s=[t]:s.push(t),o++}l=r===o,p=p||l}if(!p){let t={params:{}};return s===null?s=[t]:s.push(t),o++,f.errors=s,!1}o=a,s!==null&&(a?s.length=a:s=null);var i=e===o}else i=!0;if(i){if(n.chunkName!==void 0){let t=n.chunkName,r=o,a=o,l=!1,u=o;if(o===u)if("string"==typeof t){if(e(t)<1){let t={params:{limit:1}};s===null?s=[t]:s.push(t),o++}}else{let t={params:{type:"string"}};s===null?s=[t]:s.push(t),o++}var p=u===o;if(!(l=l||p)){let r=o;if(!(t instanceof Function)){let t={params:{}};s===null?s=[t]:s.push(t),o++}p=r===o,l=l||p}if(!l){let t={params:{}};return s===null?s=[t]:s.push(t),o++,f.errors=s,!1}o=a,s!==null&&(a?s.length=a:s=null),i=r===o}else i=!0;if(i){if(n.sources!==void 0){let r=n.sources,a=o,l=o,p=!1,c=o;if(o===c)if(Array.isArray(r))if(r.length<1){let t={params:{limit:1}};s===null?s=[t]:s.push(t),o++}else{let n=r.length;for(let a=0;a<n;a++){let n=r[a],l=o,i=o,p=!1,c=o;if("..."!==n){let r={params:{allowedValues:t.properties.sources.anyOf[0].items.anyOf[0].enum}};s===null?s=[r]:s.push(r),o++}var u=c===o;if(!(p=p||u)){let r=o;if(o===r)if(n&&"object"==typeof n&&!Array.isArray(n)){let r;if(n.attribute===void 0&&(r="attribute")||n.type===void 0&&(r="type")){let t={params:{missingProperty:r}};s===null?s=[t]:s.push(t),o++}else{let r=o;for(let t in n)if("attribute"!==t&&"filter"!==t&&"tag"!==t&&"type"!==t){let r={params:{additionalProperty:t}};s===null?s=[r]:s.push(r),o++;break}if(r===o){if(n.attribute!==void 0){let t=n.attribute,r=o;if(o===r)if("string"==typeof t){if(e(t)<1){let t={params:{limit:1}};s===null?s=[t]:s.push(t),o++}}else{let t={params:{type:"string"}};s===null?s=[t]:s.push(t),o++}var y=r===o}else y=!0;if(y){if(n.filter!==void 0){let t=o;if(!(n.filter instanceof Function)){let t={params:{}};s===null?s=[t]:s.push(t),o++}y=t===o}else y=!0;if(y){if(n.tag!==void 0){let t=n.tag,r=o;if(o===r)if("string"==typeof t){if(e(t)<1){let t={params:{limit:1}};s===null?s=[t]:s.push(t),o++}}else{let t={params:{type:"string"}};s===null?s=[t]:s.push(t),o++}y=r===o}else y=!0;if(y)if(n.type!==void 0){let r=n.type,e=o,a=o,l=!1,i=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){let r={params:{allowedValues:t.properties.sources.anyOf[0].items.anyOf[1].properties.type.anyOf[0].enum}};s===null?s=[r]:s.push(r),o++}var h=i===o;if(!(l=l||h)){let e=o;if(!1!==r){let r={params:{allowedValues:t.properties.sources.anyOf[0].items.anyOf[1].properties.type.anyOf[1].enum}};s===null?s=[r]:s.push(r),o++}h=e===o,l=l||h}if(l)o=a,s!==null&&(a?s.length=a:s=null);else{let t={params:{}};s===null?s=[t]:s.push(t),o++}y=e===o}else y=!0}}}}}else{let t={params:{type:"object"}};s===null?s=[t]:s.push(t),o++}u=r===o,p=p||u}if(p)o=i,s!==null&&(i?s.length=i:s=null);else{let t={params:{}};s===null?s=[t]:s.push(t),o++}if(l!==o)break}}else{let t={params:{type:"array"}};s===null?s=[t]:s.push(t),o++}var m=c===o;if(!(p=p||m)){let t=o;if("boolean"!=typeof r){let t={params:{type:"boolean"}};s===null?s=[t]:s.push(t),o++}m=t===o,p=p||m}if(!p){let t={params:{}};return s===null?s=[t]:s.push(t),o++,f.errors=s,!1}o=l,s!==null&&(l?s.length=l:s=null),i=a===o}else i=!0;if(i){if(n.template!==void 0){if(!(n.template instanceof Function))return f.errors=[{params:{}}],!1;i=o===o}else i=!0;if(i)if(n.urlHints!==void 0){let t=o;c(n.urlHints,{instancePath:a+"/urlHints",parentData:n,parentDataProperty:"urlHints",rootData})||(o=(s=s===null?c.errors:s.concat(c.errors)).length),i=t===o}else i=!0}}}}}}return f.errors=s,o===0}function y(t,{instancePath="",parentData,parentDataProperty,rootData=t}={}){let r=null,e=0;return f(t,{instancePath,parentData,parentDataProperty,rootData})||(e=(r=r===null?f.errors:r.concat(f.errors)).length),y.errors=r,e===0}