filer/dist/filer.min.js

249 lines
264 KiB
JavaScript
Raw Normal View History

2021-10-19 20:44:10 +00:00
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"b1ZG":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.promisify=e;var r="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__";function e(o){if("function"!=typeof o)throw new TypeError("Argument to promisify must be a function");var n=o[r],t=e.Promise||Promise;if("function"!=typeof t)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var r=this,e=arguments.length,i=Array(e),f=0;f<e;f++)i[f]=arguments[f];return new t(function(e,t){i.push(function(r){if(r)return t(r);for(var o=arguments.length,i=Array(1<o?o-1:0),f=1;f<o;f++)i[f-1]=arguments[f];if(1===i.length||!n)return e(i[0]);var u={};i.forEach(function(r,e){var o=n[e];o&&(u[o]=r)}),e(u)}),o.apply(r,i)})}}e.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",e.Promise=void 0;
},{}],"pBGv":[function(require,module,exports) {
var t,e,n=module.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function u(t){if(e===clearTimeout)return clearTimeout(t);if((e===o||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{return e(t)}catch(n){try{return e.call(null,t)}catch(n){return e.call(this,t)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(n){t=r}try{e="function"==typeof clearTimeout?clearTimeout:o}catch(n){e=o}}();var c,s=[],l=!1,a=-1;function f(){l&&c&&(l=!1,c.length?s=c.concat(s):a=-1,s.length&&h())}function h(){if(!l){var t=i(f);l=!0;for(var e=s.length;e;){for(c=s,s=[];++a<e;)c&&c[a].run();a=-1,e=s.length}c=null,l=!1,u(t)}}function m(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new m(t,e)),1!==s.length||l||i(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0};
},{}],"UUq2":[function(require,module,exports) {
var process = require("process");
var r=require("process");function t(r,t){for(var e=0,n=r.length-1;n>=0;n--){var o=r[n];"."===o?r.splice(n,1):".."===o?(r.splice(n,1),e++):e&&(r.splice(n,1),e--)}if(t)for(;e--;e)r.unshift("..");return r}function e(r){"string"!=typeof r&&(r+="");var t,e=0,n=-1,o=!0;for(t=r.length-1;t>=0;--t)if(47===r.charCodeAt(t)){if(!o){e=t+1;break}}else-1===n&&(o=!1,n=t+1);return-1===n?"":r.slice(e,n)}function n(r,t){if(r.filter)return r.filter(t);for(var e=[],n=0;n<r.length;n++)t(r[n],n,r)&&e.push(r[n]);return e}exports.resolve=function(){for(var e="",o=!1,s=arguments.length-1;s>=-1&&!o;s--){var i=s>=0?arguments[s]:r.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,o="/"===i.charAt(0))}return(o?"/":"")+(e=t(n(e.split("/"),function(r){return!!r}),!o).join("/"))||"."},exports.normalize=function(r){var e=exports.isAbsolute(r),s="/"===o(r,-1);return(r=t(n(r.split("/"),function(r){return!!r}),!e).join("/"))||e||(r="."),r&&s&&(r+="/"),(e?"/":"")+r},exports.isAbsolute=function(r){return"/"===r.charAt(0)},exports.join=function(){var r=Array.prototype.slice.call(arguments,0);return exports.normalize(n(r,function(r,t){if("string"!=typeof r)throw new TypeError("Arguments to path.join must be strings");return r}).join("/"))},exports.relative=function(r,t){function e(r){for(var t=0;t<r.length&&""===r[t];t++);for(var e=r.length-1;e>=0&&""===r[e];e--);return t>e?[]:r.slice(t,e-t+1)}r=exports.resolve(r).substr(1),t=exports.resolve(t).substr(1);for(var n=e(r.split("/")),o=e(t.split("/")),s=Math.min(n.length,o.length),i=s,u=0;u<s;u++)if(n[u]!==o[u]){i=u;break}var f=[];for(u=i;u<n.length;u++)f.push("..");return(f=f.concat(o.slice(i))).join("/")},exports.sep="/",exports.delimiter=":",exports.dirname=function(r){if("string"!=typeof r&&(r+=""),0===r.length)return".";for(var t=r.charCodeAt(0),e=47===t,n=-1,o=!0,s=r.length-1;s>=1;--s)if(47===(t=r.charCodeAt(s))){if(!o){n=s;break}}else o=!1;return-1===n?e?"/":".":e&&1===n?"/":r.slice(0,n)},exports.basename=function(r,t){var n=e(r);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},exports.extname=function(r){"string"!=typeof r&&(r+="");for(var t=-1,e=0,n=-1,o=!0,s=0,i=r.length-1;i>=0;--i){var u=r.charCodeAt(i);if(47!==u)-1===n&&(o=!1,n=i+1),46===u?-1===t?t=i:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){e=i+1;break}}return-1===t||-1===n||0===s||1===s&&t===n-1&&t===e+1?"":r.slice(t,n)};var o="b"==="ab".substr(-1)?function(r,t,e){return r.substr(t,e)}:function(r,t,e){return t<0&&(t=r.length+t),r.substr(t,e)};
},{"process":"pBGv"}],"UzoP":[function(require,module,exports) {
var process = require("process");
2021-10-16 12:36:13 +00:00
var r=require("process");r.cwd=function(){return"/"};var e=require("path"),n=Object.assign({},e);n.basename=function(r,n){var i=e.basename(r,n);return""===i?"/":i},n.normalize=function(r){return"/"===(r=e.normalize(r))?r:n.removeTrailing(r)},n.isNull=function(r){return-1!==(""+r).indexOf("\0")},n.addTrailing=function(r){return r.replace(/\/*$/,"/")},n.removeTrailing=function(r){return""===(r=r.replace(/\/*$/,""))?"/":r},module.exports=n;
},{"path":"UUq2","process":"pBGv"}],"iJA9":[function(require,module,exports) {
var _="READ",E="WRITE",O="CREATE",R="EXCLUSIVE",I="TRUNCATE",S="APPEND",T="CREATE",N="REPLACE";module.exports={FILE_SYSTEM_NAME:"local",FILE_STORE_NAME:"files",IDB_RO:"readonly",IDB_RW:"readwrite",WSQL_VERSION:"1",WSQL_SIZE:5242880,WSQL_DESC:"FileSystem Storage",NODE_TYPE_FILE:"FILE",NODE_TYPE_DIRECTORY:"DIRECTORY",NODE_TYPE_SYMBOLIC_LINK:"SYMLINK",NODE_TYPE_META:"META",DEFAULT_DIR_PERMISSIONS:493,DEFAULT_FILE_PERMISSIONS:420,FULL_READ_WRITE_EXEC_PERMISSIONS:511,READ_WRITE_PERMISSIONS:438,SYMLOOP_MAX:10,BINARY_MIME_TYPE:"application/octet-stream",JSON_MIME_TYPE:"application/json",ROOT_DIRECTORY_NAME:"/",FS_FORMAT:"FORMAT",FS_NOCTIME:"NOCTIME",FS_NOMTIME:"NOMTIME",FS_NODUPEIDCHECK:"FS_NODUPEIDCHECK",O_READ:_,O_WRITE:E,O_CREATE:O,O_EXCLUSIVE:R,O_TRUNCATE:I,O_APPEND:S,O_FLAGS:{r:[_],"r+":[_,E],w:[E,O,I],"w+":[E,_,O,I],wx:[E,O,R,I],"wx+":[E,_,O,R,I],a:[E,O,S],"a+":[E,_,O,S],ax:[E,O,R,S],"ax+":[E,_,O,R,S]},XATTR_CREATE:T,XATTR_REPLACE:N,FS_READY:"READY",FS_PENDING:"PENDING",FS_ERROR:"ERROR",SUPER_NODE_ID:"00000000-0000-0000-0000-000000000000",STDIN:0,STDOUT:1,STDERR:2,FIRST_DESCRIPTOR:3,ENVIRONMENT:{TMP:"/tmp",PATH:""},fsConstants:{O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_DSYNC:4194304,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_COPYFILE_EXCL:1,COPYFILE_EXCL:1}};
},{}],"yh9p":[function(require,module,exports) {
"use strict";exports.byteLength=u,exports.toByteArray=i,exports.fromByteArray=d;for(var r=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)r[o]=n[o],t[n.charCodeAt(o)]=o;function h(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");return-1===e&&(e=t),[e,e===t?0:4-e%4]}function u(r){var t=h(r),e=t[0],n=t[1];return 3*(e+n)/4-n}function c(r,t,e){return 3*(t+e)/4-e}function i(r){var n,o,a=h(r),u=a[0],i=a[1],f=new e(c(r,u,i)),A=0,d=i>0?u-4:u;for(o=0;o<d;o+=4)n=t[r.charCodeAt(o)]<<18|t[r.charCodeAt(o+1)]<<12|t[r.charCodeAt(o+2)]<<6|t[r.charCodeAt(o+3)],f[A++]=n>>16&255,f[A++]=n>>8&255,f[A++]=255&n;return 2===i&&(n=t[r.charCodeAt(o)]<<2|t[r.charCodeAt(o+1)]>>4,f[A++]=255&n),1===i&&(n=t[r.charCodeAt(o)]<<10|t[r.charCodeAt(o+1)]<<4|t[r.charCodeAt(o+2)]>>2,f[A++]=n>>8&255,f[A++]=255&n),f}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function A(r,t,e){for(var n,o=[],a=t;a<e;a+=3)n=(r[a]<<16&16711680)+(r[a+1]<<8&65280)+(255&r[a+2]),o.push(f(n));return o.join("")}function d(t){for(var e,n=t.length,o=n%3,a=[],h=0,u=n-o;h<u;h+=16383)a.push(A(t,h,h+16383>u?u:h+16383));return 1===o?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;
},{}],"JgNJ":[function(require,module,exports) {
exports.read=function(a,o,t,r,h){var M,p,w=8*h-r-1,f=(1<<w)-1,e=f>>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<<-i)-1,s>>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<<-i)-1,M>>=-i,i+=r;i>0;p=256*p+a[o+N],N+=n,i-=8);if(0===M)M=1-e;else{if(M===f)return p?NaN:1/0*(s?-1:1);p+=Math.pow(2,r),M-=e}return(s?-1:1)*p*Math.pow(2,M-r)},exports.write=function(a,o,t,r,h,M){var p,w,f,e=8*M-h-1,i=(1<<e)-1,N=i>>1,n=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,l=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(w=isNaN(o)?1:0,p=i):(p=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-p))<1&&(p--,f*=2),(o+=p+N>=1?n/f:n*Math.pow(2,1-N))*f>=2&&(p++,f/=2),p+N>=i?(w=0,p=i):p+N>=1?(w=(o*f-1)*Math.pow(2,h),p+=N):(w=o*Math.pow(2,N-1)*Math.pow(2,h),p=0));h>=8;a[t+s]=255&w,s+=u,w/=256,h-=8);for(p=p<<h|w,e+=h;e>0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l};
},{}],"REa7":[function(require,module,exports) {
var r={}.toString;module.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)};
},{}],"dskh":[function(require,module,exports) {
var global = arguments[3];
var t=arguments[3],r=require("base64-js"),e=require("ieee754"),n=require("isarray");function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(r){return!1}}function o(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,r){if(o()<r)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=f.prototype:(null===t&&(t=new f(r)),t.length=r),t}function f(t,r,e){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return s(this,t,r,e)}function s(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?g(t,r,e,n):"string"==typeof r?l(t,r,e):y(t,r)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function a(t,r,e,n){return h(r),r<=0?u(t,r):void 0!==e?"string"==typeof n?u(t,r).fill(e,n):u(t,r).fill(e):u(t,r)}function c(t,r){if(h(r),t=u(t,r<0?0:0|w(r)),!f.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function l(t,r,e){if("string"==typeof e&&""!==e||(e="utf8"),!f.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|v(r,e),i=(t=u(t,n)).write(r,e);return i!==n&&(t=t.slice(0,i)),t}function p(t,r){var e=r.length<0?0:0|w(r.length);t=u(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function g(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n),f.TYPED_ARRAY_SUPPORT?(t=r).__proto__=f.prototype:t=p(t,r),t}function y(t,r){if(f.isBuffer(r)){var e=0|w(r.length);return 0===(t=u(t,e)).length?t:(r.copy(t,0,0,e),t)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||W(r.length)?u(t,0):p(t,r);if("Buffer"===r.type&&n(r.data))return p(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function w(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),f.alloc(+t)}function v(t,r){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return K(t).length;default:if(n)return $(t).length;r=(""+r).toLowerCase(),n=!0}}function E(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,r,e);case"utf8":case"utf-8":return Y(this,r,e);case"ascii":return L(this,r,e);case"latin1":case"binary":return D(this,r,e);case"base64":return S(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function R(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=f.from(r,n)),f.
},{"base64-js":"yh9p","ieee754":"JgNJ","isarray":"REa7","buffer":"dskh"}],"QO4x":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
2019-02-07 21:38:32 +00:00
var global = arguments[3];
var t=require("buffer").Buffer,e=arguments[3],r=require("../constants.js").FILE_SYSTEM_NAME,n=require("../constants.js").FILE_STORE_NAME,o=require("../constants.js").IDB_RW,u=require("../constants.js").IDB_RO;function c(t,e){this.db=t,this.mode=e}function i(t){this.name=t||r,this.db=null}c.prototype._getObjectStore=function(){if(this.objectStore)return this.objectStore;var t=this.db.transaction(n,this.mode);return this.objectStore=t.objectStore(n),this.objectStore},c.prototype.clear=function(t){try{var e=this._getObjectStore().clear();e.onsuccess=function(){t()},e.onerror=function(e){e.preventDefault(),t(e.error)}}catch(r){t(r)}},c.prototype._get=function(t,e){try{var r=this._getObjectStore().get(t);r.onsuccess=function(t){var r=t.target.result;e(null,r)},r.onerror=function(t){t.preventDefault(),e(t.error)}}catch(n){e(n)}},c.prototype.getObject=function(t,e){this._get(t,e)},c.prototype.getBuffer=function(e,r){this._get(e,function(e,n){if(e)return r(e);r(null,t.from(n))})},c.prototype._put=function(t,e,r){try{var n=this._getObjectStore().put(e,t);n.onsuccess=function(t){var e=t.target.result;r(null,e)},n.onerror=function(t){t.preventDefault(),r(t.error)}}catch(o){r(o)}},c.prototype.putObject=function(t,e,r){this._put(t,e,r)},c.prototype.putBuffer=function(t,e,r){var n=e.buffer;this._put(t,n,r)},c.prototype.delete=function(t,e){try{var r=this._getObjectStore().delete(t);r.onsuccess=function(t){var r=t.target.result;e(null,r)},r.onerror=function(t){t.preventDefault(),e(t.error)}}catch(n){e(n)}},i.isSupported=function(){return!!(e.indexedDB||e.mozIndexedDB||e.webkitIndexedDB||e.msIndexedDB)},i.prototype.open=function(t){var r=this;if(r.db)return t();try{var o=(e.indexedDB||e.mozIndexedDB||e.webkitIndexedDB||e.msIndexedDB).open(r.name);o.onupgradeneeded=function(t){var e=t.target.result;e.objectStoreNames.contains(n)&&e.deleteObjectStore(n),e.createObjectStore(n)},o.onsuccess=function(e){r.db=e.target.result,t()},o.onerror=function(e){e.preventDefault(),t(e.error)}}catch(u){t(u)}},i.prototype.getReadOnlyContext=function(){return new c(this.db,u)},i.prototype.getReadWriteContext=function(){return new c(this.db,o)},module.exports=i;
},{"../constants.js":"iJA9","buffer":"dskh"}],"u4Zs":[function(require,module,exports) {
var process = require("process");
var define;
var e,t=require("process");!function(){var n={};void 0!==t&&t.nextTick?(n.nextTick=t.nextTick,"undefined"!=typeof setImmediate?n.setImmediate=function(e){setImmediate(e)}:n.setImmediate=n.nextTick):"function"==typeof setImmediate?(n.nextTick=function(e){setImmediate(e)},n.setImmediate=n.nextTick):(n.nextTick=function(e){setTimeout(e,0)},n.setImmediate=n.nextTick),n.eachSeries=function(e,t,n){if(n=n||function(){},!e.length)return n();var i=0;!function o(){t(e[i],function(t){t?(n(t),n=function(){}):(i+=1)>=e.length?n():o()})}()},n.forEachSeries=n.eachSeries,void 0!==e&&e.amd?e([],function(){return n}):"undefined"!=typeof module&&module.exports?module.exports=n:root.async=n}();
},{"process":"pBGv"}],"OWym":[function(require,module,exports) {
var t=require("../constants.js").FILE_SYSTEM_NAME,e=require("../../lib/async.js").setImmediate,o=function(){var t={};return function(e){return Object.prototype.hasOwnProperty.call(t,e)||(t[e]={}),t[e]}}();function n(t,e){this.readOnly=e,this.objectStore=t}function r(e){this.name=e||t}n.prototype.clear=function(t){if(this.readOnly)e(function(){t("[MemoryContext] Error: write operation on read only context")});else{var o=this.objectStore;Object.keys(o).forEach(function(t){delete o[t]}),e(t)}},n.prototype.getObject=n.prototype.getBuffer=function(t,o){var n=this;e(function(){o(null,n.objectStore[t])})},n.prototype.putObject=n.prototype.putBuffer=function(t,o,n){this.readOnly?e(function(){n("[MemoryContext] Error: write operation on read only context")}):(this.objectStore[t]=o,e(n))},n.prototype.delete=function(t,o){this.readOnly?e(function(){o("[MemoryContext] Error: write operation on read only context")}):(delete this.objectStore[t],e(o))},r.isSupported=function(){return!0},r.prototype.open=function(t){this.db=o(this.name),e(t)},r.prototype.getReadOnlyContext=function(){return new n(this.db,!0)},r.prototype.getReadWriteContext=function(){return new n(this.db,!1)},module.exports=r;
},{"../constants.js":"iJA9","../../lib/async.js":"u4Zs"}],"AiW7":[function(require,module,exports) {
2019-01-03 04:12:19 +00:00
var e=require("./indexeddb.js"),r=require("./memory.js");module.exports={IndexedDB:e,Default:e,Memory:r};
},{"./indexeddb.js":"QO4x","./memory.js":"OWym"}],"p8GN":[function(require,module,exports) {
2019-01-03 04:12:19 +00:00
var t={};["3:EACCES:permission denied","9:EBADF:bad file descriptor","10:EBUSY:resource busy or locked","18:EINVAL:invalid argument","27:ENOTDIR:not a directory","28:EISDIR:illegal operation on a directory","34:ENOENT:no such file or directory","47:EEXIST:file already exists","50:EPERM:operation not permitted","51:ELOOP:too many symbolic links encountered","53:ENOTEMPTY:directory not empty","55:EIO:i/o error","1000:ENOTMOUNTED:not mounted","1001:EFILESYSTEMERROR:missing super node, use 'FORMAT' flag to format filesystem.","1002:ENOATTR:attribute does not exist"].forEach(function(e){var o=+(e=e.split(":"))[0],r=e[1],i=e[2];function s(t,e){Error.call(this),this.name=r,this.code=r,this.errno=o,this.message=t||i,e&&(this.path=e),this.stack=new Error(this.message).stack}s.prototype=Object.create(Error.prototype),s.prototype.constructor=s,s.prototype.toString=function(){var t=this.path?", '"+this.path+"'":"";return this.name+": "+this.message+t},t[r]=t[o]=s}),module.exports=t;
},{}],"QMiB":[function(require,module,exports) {
2019-02-07 21:38:32 +00:00
"use strict";var t=require("../constants.js").ENVIRONMENT;module.exports=function(n){(n=n||{}).TMP=n.TMP||t.TMP,n.PATH=n.PATH||t.PATH,this.get=function(t){return n[t]},this.set=function(t,s){n[t]=s}};
},{"../constants.js":"iJA9"}],"bQx9":[function(require,module,exports) {
module.exports=function(t,o){for(var a=[],e=0;e<t.length;e++){var n=o(t[e],e);r(n)?a.push.apply(a,n):a.push(n)}return a};var r=Array.isArray||function(r){return"[object Array]"===Object.prototype.toString.call(r)};
},{}],"D9yG":[function(require,module,exports) {
"use strict";function e(e,r,i){e instanceof RegExp&&(e=n(e,i)),r instanceof RegExp&&(r=n(r,i));var o=t(e,r,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+r.length)}}function n(e,n){var t=n.match(e);return t?t[0]:null}function t(e,n,t){var r,i,o,f,l,s=t.indexOf(e),c=t.indexOf(n,s+1),p=s;if(s>=0&&c>0){for(r=[],o=t.length;p>=0&&!l;)p==s?(r.push(p),s=t.indexOf(e,p+1)):1==r.length?l=[r.pop(),c]:((i=r.pop())<o&&(o=i,f=c),c=t.indexOf(n,p+1)),p=s<c&&s>=0?s:c;r.length&&(l=[o,f])}return l}module.exports=e,e.range=t;
},{}],"dwXQ":[function(require,module,exports) {
var t=require("concat-map"),r=require("balanced-match");module.exports=f;var n="\0SLASH"+Math.random()+"\0",e="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0";function s(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function p(t){return t.split("\\\\").join(n).split("\\{").join(e).split("\\}").join(i).split("\\,").join(o).split("\\.").join(a)}function u(t){return t.split(n).join("\\").split(e).join("{").split(i).join("}").split(o).join(",").split(a).join(".")}function l(t){if(!t)return[""];var n=[],e=r("{","}",t);if(!e)return t.split(",");var i=e.pre,o=e.body,a=e.post,s=i.split(",");s[s.length-1]+="{"+o+"}";var p=l(a);return a.length&&(s[s.length-1]+=p.shift(),s.push.apply(s,p)),n.push.apply(n,s),n}function f(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),m(p(t),!0).map(u)):[]}function h(t){return t}function d(t){return"{"+t+"}"}function c(t){return/^-?0\d/.test(t)}function v(t,r){return t<=r}function g(t,r){return t>=r}function m(n,e){var o=[],a=r("{","}",n);if(!a||/\$$/.test(a.pre))return[n];var p,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),h=u||f,b=a.body.indexOf(",")>=0;if(!h&&!b)return a.post.match(/,.*\}/)?m(n=a.pre+"{"+a.body+i+a.post):[n];if(h)p=a.body.split(/\.\./);else if(1===(p=l(a.body)).length&&1===(p=m(p[0],!1).map(d)).length)return(M=a.post.length?m(a.post,!1):[""]).map(function(t){return a.pre+p[0]+t});var j,y=a.pre,M=a.post.length?m(a.post,!1):[""];if(h){var A=s(p[0]),C=s(p[1]),O=Math.max(p[0].length,p[1].length),S=3==p.length?Math.abs(s(p[2])):1,$=v;C<A&&(S*=-1,$=g);var x=p.some(c);j=[];for(var E=A;$(E,C);E+=S){var I;if(f)"\\"===(I=String.fromCharCode(E))&&(I="");else if(I=String(E),x){var q=O-I.length;if(q>0){var z=new Array(q+1).join("0");I=E<0?"-"+z+I.slice(1):z+I}}j.push(I)}}else j=t(p,function(t){return m(t,!1)});for(var L=0;L<j.length;L++)for(var P=0;P<M.length;P++){var Z=y+j[L]+M[P];(!e||h||Z)&&o.push(Z)}return o}
},{"concat-map":"bQx9","balanced-match":"D9yG"}],"NtKi":[function(require,module,exports) {
module.exports=g,g.Minimatch=l;var t={sep:"/"};try{t=require("path")}catch(O){}var e=g.GLOBSTAR=l.GLOBSTAR={},n=require("brace-expansion"),r={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},i="[^/]",s=i+"*?",a="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",o="(?:(?!(?:\\/|^)\\.).)*?",h=c("().*{}+?[]^$\\!");function c(t){return t.split("").reduce(function(t,e){return t[e]=!0,t},{})}var u=/\/+/;function p(t,e){return e=e||{},function(n,r,i){return g(n,t,e)}}function f(t,e){t=t||{},e=e||{};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function g(t,e,n){if("string"!=typeof e)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===e.charAt(0))&&(""===e.trim()?""===t:new l(e,n).match(t))}function l(e,n){if(!(this instanceof l))return new l(e,n);if("string"!=typeof e)throw new TypeError("glob pattern string required");n||(n={}),e=e.trim(),"/"!==t.sep&&(e=e.split(t.sep).join("/")),this.options=n,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function d(){if(!this._made){var t=this.pattern,e=this.options;if(e.nocomment||"#"!==t.charAt(0))if(t){this.parseNegate();var n=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map(function(t){return t.split(u)}),this.debug(this.pattern,n),n=n.map(function(t,e,n){return t.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(t){return-1===t.indexOf(!1)}),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}}function b(){var t=this.pattern,e=!1,n=0;if(!this.options.nonegate){for(var r=0,i=t.length;r<i&&"!"===t.charAt(r);r++)e=!e,n++;n&&(this.pattern=t.substr(n)),this.negate=e}}function m(t,e){if(e||(e=this instanceof l?this.options:{}),void 0===(t=void 0===t?this.pattern:t))throw new TypeError("undefined pattern");return e.nobrace||!t.match(/\{.*\}/)?[t]:n(t)}g.filter=p,g.defaults=function(t){if(!t||!Object.keys(t).length)return g;var e=g,n=function(n,r,i){return e.minimatch(n,r,f(t,i))};return n.Minimatch=function(n,r){return new e.Minimatch(n,f(t,r))},n},l.defaults=function(t){return t&&Object.keys(t).length?g.defaults(t).Minimatch:l},l.prototype.debug=function(){},l.prototype.make=d,l.prototype.parseNegate=b,g.braceExpand=function(t,e){return m(t,e)},l.prototype.braceExpand=m,l.prototype.parse=y;var v={};function y(t,n){if(t.length>65536)throw new TypeError("pattern is too long");var a=this.options;if(!a.noglobstar&&"**"===t)return e;if(""===t)return"";var o,c="",u=!!a.nocase,p=!1,f=[],g=[],l=!1,d=-1,b=-1,m="."===t.charAt(0)?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=this;function w(){if(o){switch(o){case"*":c+=s,u=!0;break;case"?":c+=i,u=!0;break;default:c+="\\"+o}y.debug("clearStateChar %j %j",o,c),o=!1}}for(var x,j=0,k=t.length;j<k&&(x=t.charAt(j));j++)if(this.debug("%s\t%s %s %j",t,j,c,x),p&&h[x])c+="\\"+x,p=!1;else switch(x){case"/":return!1;case"\\":w(),p=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",t,j,c,x),l){this.debug(" in class"),"!"===x&&j===b+1&&(x="^"),c+=x;continue}y.debug("call clearStateChar %j",o),w(),o=x,a.noext&&w();continue;case"(":if(l){c+="(";continue}if(!o){c+="\\(";continue}f.push({type:o,start:j-1,reStart:c.length,open:r[o].open,close:r[o].close}),c+="!"===o?"(?:(?!(?:":"(?:",this.debug("plType %j %j",o,c),o=!1;continue;case")":if(l||!f.length){c+="\\)";continue}w(),u=!0;var A=f.pop();c+=A.close,"!"===A.type&&g.push(A),A.reEnd=c.length;continue;case"|":if(l||!f.length||p){c+="\\|",p=!1;continue}w(),c+="|";continue;case"[":if(w(),l){c+="\\"+x;continue}l=!0,b=j,d=c.length,c+=x;continue;case"]":if(j===b+1||!l){c+="\\"+x,p=!1;continue}if(l){var S=t.substring(b+1,j);try{RegExp("["+S+"]")}catch(O){var $=this.parse(S,v);c=c.substr(0,d)+"\\["+$[0]+"\\]",u=u||$[1],l=!1;continue}}u=!0,l=!1,c+=x;continue;default:w(),p?p=!1:!h[x]||"^"===x&&l||(c+="\\"),c+
},{"path":"UUq2","brace-expansion":"dwXQ"}],"D1Ra":[function(require,module,exports) {
var n=require("es6-promisify"),t=n.promisify,e=require("../path.js"),i=require("../errors.js"),r=require("./environment.js"),o=require("../../lib/async.js"),u=require("minimatch");function c(n,o){var u=this,c=new r((o=o||{}).env),f="/";Object.defineProperty(this,"fs",{get:function(){return n},enumerable:!0}),Object.defineProperty(this,"env",{get:function(){return c},enumerable:!0}),this.cd=function(t,r){t=e.resolve(f,t),n.stat(t,function(n,e){n?r(new i.ENOTDIR(null,t)):"DIRECTORY"===e.type?(f=t,r()):r(new i.ENOTDIR(null,t))})},this.pwd=function(){return f},this.promises={},["cd","exec","touch","cat","ls","rm","tempDir","mkdirp","find"].forEach(function(n){u.promises[n]=t(u[n].bind(u))})}c.prototype.exec=function(n,t,i){var r=this.fs;"function"==typeof t&&(i=t,t=[]),t=t||[],i=i||function(){},n=e.resolve(this.pwd(),n),r.readFile(n,"utf8",function(n,e){if(n)i(n);else try{new Function("fs","args","callback",e)(r,t,i)}catch(o){i(o)}})},c.prototype.touch=function(n,t,i){var r=this.fs;"function"==typeof t&&(i=t,t={}),t=t||{},i=i||function(){},n=e.resolve(this.pwd(),n),r.stat(n,function(e){e?!0===t.updateOnly?i():function(n){r.writeFile(n,"",i)}(n):function(n){var e=Date.now(),o=t.date||e,u=t.date||e;r.utimes(n,o,u,i)}(n)})},c.prototype.cat=function(n,t){var r=this,u=r.fs,c="";t=t||function(){},n?(n="string"==typeof n?[n]:n,o.eachSeries(n,function(n,t){var i=e.resolve(r.pwd(),n);u.readFile(i,"utf8",function(n,e){n?t(n):(c+=e+"\n",t())})},function(n){n?t(n):t(null,c.replace(/\n$/,""))})):t(new i.EINVAL("Missing files argument"))},c.prototype.ls=function(n,t,r){var u=this,c=u.fs;"function"==typeof t&&(r=t,t={}),t=t||{},r=r||function(){},n?function n(i,r){var f=e.resolve(u.pwd(),i),s=[];c.readdir(f,function(i,u){i?r(i):o.eachSeries(u,function(i,r){i=e.join(f,i),c.stat(i,function(i,o){if(i)r(i);else{var u=o;t.recursive&&"DIRECTORY"===o.type?n(e.join(f,u.name),function(n,t){n?r(n):(u.contents=t,s.push(u),r())}):(s.push(u),r())}})},function(n){r(n,s)})})}(n,r):r(new i.EINVAL("Missing dir argument"))},c.prototype.rm=function(n,t,r){var u=this,c=u.fs;"function"==typeof t&&(r=t,t={}),t=t||{},r=r||function(){},n?function n(r,f){r=e.resolve(u.pwd(),r),c.stat(r,function(u,s){u?f(u):"FILE"!==s.type?c.readdir(r,function(u,s){u?f(u):0!==s.length?t.recursive?(s=s.map(function(n){return e.join(r,n)}),o.eachSeries(s,n,function(n){n?f(n):c.rmdir(r,f)})):f(new i.ENOTEMPTY(null,r)):c.rmdir(r,f)}):c.unlink(r,f)})}(n,r):r(new i.EINVAL("Missing path argument"))},c.prototype.tempDir=function(n){var t=this.fs,e=this.env.get("TMP");n=n||function(){},t.mkdir(e,function(){n(null,e)})},c.prototype.mkdirp=function(n,t){var r=this.fs;t=t||function(){},n?"/"!==(n=e.resolve(this.pwd(),n))?function n(t,o){r.stat(t,function(u,c){if(c){if(c.isDirectory())return void o();if(c.isFile())return void o(new i.ENOTDIR(null,t))}else{if(u&&"ENOENT"!==u.code)return void o(u);var f=e.dirname(t);"/"===f?r.mkdir(t,function(n){n&&"EEXIST"!==n.code?o(n):o()}):n(f,function(n){if(n)return o(n);r.mkdir(t,function(n){n&&"EEXIST"!==n.code?o(n):o()})})}})}(n,t):t():t(new i.EINVAL("Missing path argument"))},c.prototype.find=function(n,t,r){var c=this,f=c.fs;"function"==typeof t&&(r=t,t={}),r=r||function(){};var s=(t=t||{}).exec||function(n,t){t()},a=[];function p(n,i){var r=e.removeTrailing(n);!t.regex||t.regex.test(r)?t.name&&!u(e.basename(r),t.name)||t.path&&!u(e.dirname(r),t.path)?i():function(n,t){s(n,function(e){e?t(e):(a.push(n),t())})}(n,i):i()}function d(n,t){n=e.resolve(c.pwd(),n),f.readdir(n,function(i,r){i?"ENOTDIR"===i.code?p(n,t):t(i):p(e.addTrailing(n),function(i){i?t(i):(r=r.map(function(t){return e.join(n,t)}),o.eachSeries(r,d,function(n){t(n,a)}))})})}n?f.stat(n,function(t,e){t?r(t):e.isDirectory()?d(n,r):r(new i.ENOTDIR(null,n))}):r(new i.EINVAL("Missing path argument"))},module.exports=c;
2021-10-19 20:44:10 +00:00
},{"es6-promisify":"b1ZG","../path.js":"UzoP","../errors.js":"p8GN","./environment.js":"QMiB","../../lib/async.js":"u4Zs","minimatch":"NtKi"}],"J4Qg":[function(require,module,exports) {
function t(t,r){for(var o=r.length-1;o>=0;o--)r[o]===t&&r.splice(o,1);return r}var r=function(){};r.createInterface=function(r){var o={on:function(t,o){void 0===this[r]&&(this[r]={}),this[r].hasOwnProperty(t)||(this[r][t]=[]),this[r][t].push(o)},off:function(o,e){void 0!==this[r]&&this[r].hasOwnProperty(o)&&t(e,this[r][o])},trigger:function(t){if(void 0!==this[r]&&this[r].hasOwnProperty(t))for(var o=Array.prototype.slice.call(arguments,1),e=0;e<this[r][t].length;e++)this[r][t][e].apply(this[r][t][e],o)},removeAllListeners:function(t){if(void 0!==this[r]){var o=this;o[r][t].forEach(function(r){o.off(t,r)})}}};return o};var o=r.createInterface("_handlers");r.prototype._on=o.on,r.prototype._off=o.off,r.prototype._trigger=o.trigger;var e=r.createInterface("handlers");r.prototype.on=function(){e.on.apply(this,arguments),Array.prototype.unshift.call(arguments,"on"),this._trigger.apply(this,arguments)},r.prototype.off=e.off,r.prototype.trigger=e.trigger,r.prototype.removeAllListeners=e.removeAllListeners,module.exports=r;
},{}],"zBMa":[function(require,module,exports) {
2019-02-07 21:38:32 +00:00
function x(x){return x.replace(/[xy]/g,function(x){var n=16*Math.random()|0;return("x"===x?n:3&n|8).toString(16)})}function n(){return x("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").toUpperCase()}function r(n){return x("x".repeat(n=n||6))}function t(){}module.exports={guid:n,nop:t,randomChars:r};
},{}],"u7Jv":[function(require,module,exports) {
var global = arguments[3];
var t=arguments[3];function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=require("./eventemitter.js"),o=require("../src/shared.js").guid;function r(t,e){var n=0;return function(){var o=Date.now();o-n>t&&(n=o,e.apply(this,arguments))}}function i(t,n){if(void 0!==t&&t||(t={}),"object"===e(n))for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o]);return t}var a=function(t){return void 0===t||void 0===t.localStorage?{getItem:function(){},setItem:function(){},removeItem:function(){}}:t.localStorage}(t);function s(){var e=this,n=Date.now();this.origin=o(),this.lastMessage=n,this.receivedIDs={},this.previousValues={};var r=function(){e._onStorageEvent.apply(e,arguments)};"undefined"!=typeof document&&(document.attachEvent?document.attachEvent("onstorage",r):t.addEventListener("storage",r,!1))}s.prototype._transaction=function(t){var e=1e3,n=20,o=this,r=!1,i=!1,s=null;function c(){if(!r){var u=Date.now(),f=0|a.getItem(p);if(f&&u-f<e)return i||(o._on("storage",c),i=!0),void(s=setTimeout(c,n));r=!0,a.setItem(p,u),t(),function(){i&&o._off("storage",c);s&&clearTimeout(s);a.removeItem(p)}()}}c()},s.prototype._cleanup_emit=r(100,function(){this._transaction(function(){var t,e=Date.now()-f,n=0;try{t=JSON.parse(a.getItem(c)||"[]")}catch(r){t=[]}for(var o=t.length-1;o>=0;o--)t[o].timestamp<e&&(t.splice(o,1),n++);n>0&&a.setItem(c,JSON.stringify(t))})}),s.prototype._cleanup_once=r(100,function(){var t=this;t._transaction(function(){Date.now();var e,n,o=0;try{n=JSON.parse(a.getItem(u)||"{}")}catch(r){n={}}for(e in n)t._once_expired(e,n)&&(delete n[e],o++);o>0&&a.setItem(u,JSON.stringify(n))})}),s.prototype._once_expired=function(t,n){if(!n)return!0;if(!n.hasOwnProperty(t))return!0;if("object"!==e(n[t]))return!0;var o=n[t].ttl||m,r=Date.now();return n[t].timestamp<r-o},s.prototype._localStorageChanged=function(t,e){if(t&&t.key)return t.key===e;var n=a.getItem(e);return n!==this.previousValues[e]&&(this.previousValues[e]=n,!0)},s.prototype._onStorageEvent=function(e){e=e||t.event;var n=this;this._localStorageChanged(e,c)&&this._transaction(function(){var t,e=Date.now(),o=a.getItem(c);try{t=JSON.parse(o||"[]")}catch(i){t=[]}for(var r=0;r<t.length;r++)if(t[r].origin!==n.origin&&!(t[r].timestamp<n.lastMessage)){if(t[r].id){if(n.receivedIDs.hasOwnProperty(t[r].id))continue;n.receivedIDs[t[r].id]=!0}n.trigger(t[r].name,t[r].payload)}n.lastMessage=e}),this._trigger("storage",e)},s.prototype._emit=function(t,e,n){if((n="string"==typeof n||"number"==typeof n?String(n):null)&&n.length){if(this.receivedIDs.hasOwnProperty(n))return;this.receivedIDs[n]=!0}var o={id:n,name:t,origin:this.origin,timestamp:Date.now(),payload:e},r=this;this._transaction(function(){var n=a.getItem(c)||"[]",i="[]"===n?"":",";n=[n.substring(0,n.length-1),i,JSON.stringify(o),"]"].join(""),a.setItem(c,n),r.trigger(t,e),setTimeout(function(){r._cleanup_emit()},50)})},s.prototype.emit=function(t,e){this._emit.apply(this,arguments),this._trigger("emit",t,e)},s.prototype.once=function(t,e,n){if(s.supported){var o=this;this._transaction(function(){var r;try{r=JSON.parse(a.getItem(u)||"{}")}catch(i){r={}}o._once_expired(t,r)&&(r[t]={},r[t].timestamp=Date.now(),"number"==typeof n&&(r[t].ttl=1e3*n),a.setItem(u,JSON.stringify(r)),e(),setTimeout(function(){o._cleanup_once()},50))})}},i(s.prototype,n.prototype),s.supported=void 0!==a;var c="intercom",u="intercom_once",p="intercom_lock",f=5e4,m=36e5;s.destroy=function(){a.removeItem(p),a.removeItem(c),a.removeItem(u)},s.getInstance=function(){var t;return function(){return t||(t=new s),t}}(),module.exports=s;
},{"./eventemitter.js":"J4Qg","../src/shared.js":"zBMa"}],"VLEe":[function(require,module,exports) {
var e=require("../lib/eventemitter.js"),t=require("./path.js"),n=require("../lib/intercom.js");function r(){e.call(this);var r,i,o=this,s=!1;function c(e){(i===e||s&&0===e.indexOf(r))&&o.trigger("change","change",e)}o.start=function(e,o,a){if(!i){if(t.isNull(e))throw new Error("Path must be a string without null bytes.");i=t.normalize(e),(s=!0===a)&&(r="/"===i?"/":i+"/"),n.getInstance().on("change",c)}},o.close=function(){n.getInstance().off("change",c),o.removeAllListeners("change")}}r.prototype=new e,r.prototype.constructor=r,module.exports=r;
},{"../lib/eventemitter.js":"J4Qg","./path.js":"UzoP","../lib/intercom.js":"u7Jv"}],"ZECt":[function(require,module,exports) {
var t=require("./constants.js").NODE_TYPE_FILE;module.exports=function(s,e){this.id=s,this.type=e||t};
},{"./constants.js":"iJA9"}],"osLK":[function(require,module,exports) {
2019-01-03 04:12:19 +00:00
var r=require("./constants"),e=r.FIRST_DESCRIPTOR,n={},t=function(){for(var r=e;o(r);)r++;return r},o=function(r){return n[r]},i=function(r){var e=t();return n[e]=r,e},u=function(r){return delete n[r]};module.exports={allocDescriptor:i,releaseDescriptor:u,getOpenFileDescription:o};
},{"./constants":"iJA9"}],"KKNo":[function(require,module,exports) {
function t(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function i(t,i){for(var s=0;s<i.length;s++){var e=i[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function s(t,s,e){return s&&i(t.prototype,s),e&&i(t,e),t}var e=require("./constants"),n=e.NODE_TYPE_FILE,r=e.NODE_TYPE_DIRECTORY,a=e.NODE_TYPE_SYMBOLIC_LINK,o=e.DEFAULT_FILE_PERMISSIONS,u=e.DEFAULT_DIR_PERMISSIONS,h=require("./constants").fsConstants,c=h.S_IFREG,f=h.S_IFDIR,m=h.S_IFLNK;function d(t,i,s){if(t[i])return s();t.guid(function(e,n){if(e)return s(e);t[i]=n,s()})}function l(t,i){switch(t){case r:return(i||u)|f;case a:return(i||o)|m;case n:default:return(i||o)|c}}var p=function(){function i(s){t(this,i);var e=Date.now();this.id=s.id,this.data=s.data,this.size=s.size||0,this.atime=s.atime||e,this.ctime=s.ctime||e,this.mtime=s.mtime||e,this.flags=s.flags||[],this.xattrs=s.xattrs||{},this.nlinks=s.nlinks||0,"string"==typeof s.type?this.type=s.type:"string"==typeof s.mode?this.type=s.mode:this.type=n,this.permissions=s.permissions||l(this.type),this.uid=s.uid||0,this.gid=s.gid||0}return s(i,[{key:"toJSON",value:function(){return{id:this.id,data:this.data,size:this.size,atime:this.atime,ctime:this.ctime,mtime:this.ctime,flags:this.flags,xattrs:this.xattrs,nlinks:this.nlinks,mode:this.type,permissions:this.permissions,uid:this.uid,gid:this.gid}}},{key:"mode",get:function(){return l(this.type,this.permissions)},set:function(t){this.permissions=t}}]),i}();module.exports.create=function(t,i){d(t,"id",function(s){if(s)return i(s);d(t,"data",function(s){if(s)return i(s);i(null,new p(t))})})};
},{"./constants":"iJA9"}],"XWaV":[function(require,module,exports) {
var e=require("./errors.js"),t=require("./node");function i(e,t,i,r){this.path=e,this.id=t,this.flags=i,this.position=r}i.prototype.getNode=function(i,r){var o=this.id,n=this.path;i.getObject(o,function(i,o){return i?r(i):o?void t.create(o,r):r(new e.EBADF("file descriptor refers to unknown node",n))})},module.exports=i;
},{"./errors.js":"p8GN","./node":"KKNo"}],"JEp0":[function(require,module,exports) {
var t=require("./constants.js");function e(e){var i=Date.now();this.id=t.SUPER_NODE_ID,this.type=t.NODE_TYPE_META,this.atime=e.atime||i,this.ctime=e.ctime||i,this.mtime=e.mtime||i,this.rnode=e.rnode}e.create=function(t,i){t.guid(function(n,o){n?i(n):(t.rnode=t.rnode||o,i(null,new e(t)))})},module.exports=e;
},{"./constants.js":"iJA9"}],"dsCT":[function(require,module,exports) {
2019-02-07 21:38:32 +00:00
"use strict";var t=require("./constants.js"),i=require("./path.js");function e(t){return new Date(Number(t))}function s(t,s,o){this.dev=o,this.node=s.id,this.type=s.type,this.size=s.size,this.nlinks=s.nlinks,this.atime=e(s.atime),this.mtime=e(s.mtime),this.ctime=e(s.ctime),this.atimeMs=s.atime,this.mtimeMs=s.mtime,this.ctimeMs=s.ctime,this.version=s.version,this.mode=s.mode,this.uid=s.uid,this.gid=s.gid,this.name=i.basename(t)}s.prototype.isFile=function(){return this.type===t.NODE_TYPE_FILE},s.prototype.isDirectory=function(){return this.type===t.NODE_TYPE_DIRECTORY},s.prototype.isSymbolicLink=function(){return this.type===t.NODE_TYPE_SYMBOLIC_LINK},s.prototype.isSocket=s.prototype.isFIFO=s.prototype.isCharacterDevice=s.prototype.isBlockDevice=function(){return!1},module.exports=s;
2021-10-16 12:36:13 +00:00
},{"./constants.js":"iJA9","./path.js":"UzoP"}],"q4Wu":[function(require,module,exports) {
"use strict";var t=require("./stats.js");function o(r,s,e){this.constructor=o,t.call(this,r,s,e)}o.prototype=t.prototype,module.exports=o;
},{"./stats.js":"dsCT"}],"bsBG":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
2021-10-16 12:36:13 +00:00
var e=require("buffer").Buffer;function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var t=require("../path.js"),i=t.normalize,o=t.dirname,r=t.basename,u=t.isAbsolute,a=require("../shared.js"),c=require("../../lib/async.js"),f=require("../constants.js"),l=f.NODE_TYPE_FILE,s=f.NODE_TYPE_DIRECTORY,p=f.NODE_TYPE_SYMBOLIC_LINK,d=f.NODE_TYPE_META,m=f.FULL_READ_WRITE_EXEC_PERMISSIONS,E=f.ROOT_DIRECTORY_NAME,g=f.SUPER_NODE_ID,w=f.SYMLOOP_MAX,O=f.O_READ,b=f.O_WRITE,y=f.O_CREATE,v=f.O_EXCLUSIVE,N=f.O_APPEND,h=f.O_FLAGS,I=f.XATTR_CREATE,j=f.XATTR_REPLACE,A=f.FS_NOMTIME,D=f.FS_NOCTIME,T=require("../errors.js"),L=require("../directory-entry.js"),R=require("../open-files.js"),_=require("../open-file-description.js"),F=require("../super-node.js"),S=require("../node.js"),V=require("../dirent.js"),B=require("../stats.js");function P(e,n,t,i,o){var r=e.flags;r.includes(D)&&delete i.ctime,r.includes(A)&&delete i.mtime;var u=!1;function a(t){e.changes.push({event:"change",path:n}),o(t)}i.ctime&&(t.ctime=i.ctime,t.atime=i.ctime,u=!0),i.atime&&(t.atime=i.atime,u=!0),i.mtime&&(t.mtime=i.mtime,u=!0),u?e.putObject(t.id,t,a):a()}function x(e,n,t,u){if(t!==s&&t!==l)return u(new T.EINVAL("type must be a directory or file",n));n=i(n);var a,c,f,p=r(n),d=o(n);function m(t,i){!t&&i?u(new T.EEXIST("path name already exists",n)):!t||t instanceof T.ENOENT?e.getObject(a.data,E):u(t)}function E(n,i){n?u(n):(c=i,S.create({guid:e.guid,type:t},function(n,t){n?u(n):((f=t).nlinks+=1,e.putObject(f.id,f,w))}))}function g(n){if(n)u(n);else{var t=Date.now();P(e,d,f,{mtime:t,ctime:t},u)}}function w(n){n?u(n):(c[p]=new L(f.id,t),e.putObject(a.data,c,g))}k(e,d,function(t,i){t?u(t):i.type!==s?u(new T.ENOTDIR("a component of the path prefix is not a directory",n)):(a=i,k(e,n,m))})}function k(e,n,t){if(!(n=i(n)))return t(new T.ENOENT("path is an empty string"));var u=r(n),a=o(n),c=0;function f(n,i){if(n)return t(n);var o=new F(i);o&&o.type===d&&o.rnode?e.getObject(o.rnode,l):t(new T.EFILESYSTEMERROR)}function l(e,n){e?t(e):n?S.create(n,t):t(new T.ENOENT)}function m(i,o){i?t(i):o.type===s&&o.data?e.getObject(o.data,O):t(new T.ENOTDIR("a component of the path prefix is not a directory",n))}function O(i,o){if(i)t(i);else if(Object.prototype.hasOwnProperty.call(o,u)){var r=o[u].id;e.getObject(r,b)}else t(new T.ENOENT(null,n))}function b(e,n){if(e)return t(e);S.create(n,y)}function y(l,s){var d;l?t(l):s.type===p?++c>w?t(new T.ELOOP(null,n)):(d=s.data,d=i(d),a=o(d),u=r(d),E===u?e.getObject(g,f):k(e,a,m)):t(null,s)}E===u?e.getObject(g,f):k(e,a,m)}function C(e,n,t,i,o,r,u){var a=t.xattrs;r===I&&Object.prototype.hasOwnProperty.call(a,i)?u(new T.EEXIST("attribute already exists",n)):r!==j||Object.prototype.hasOwnProperty.call(a,i)?(a[i]=o,e.putObject(t.id,t,function(i){i?u(i):P(e,n,t,{ctime:Date.now()},u)})):u(new T.ENOATTR(null,n))}function X(e,n){var t,i,o;function r(o){o?n(o):S.create({guid:e.guid,id:t.rnode,type:s},function(t,o){t?n(t):((i=o).nlinks+=1,e.putObject(i.id,i,u))})}function u(t){t?n(t):(o={},e.putObject(i.data,o,n))}e.getObject(g,function(i,o){!i&&o?n():!i||i instanceof T.ENOENT?F.create({guid:e.guid},function(i,o){i?n(i):(t=o,e.putObject(t.id,t,r))}):n(i)})}function q(e,n,t){n=i(n);var u,a,c,f,l=r(n),p=o(n);function d(n,i){n?t(n):(c=i,e.getObject(c.data,m))}function m(n,i){n?t(n):(f=i,S.create({guid:e.guid,type:s},function(n,i){n?t(n):((u=i).nlinks+=1,e.putObject(u.id,u,E))}))}function E(n){n?t(n):(a={},e.putObject(u.data,a,w))}function g(n){if(n)t(n);else{var i=Date.now();P(e,p,c,{mtime:i,ctime:i},t)}}function w(n){n?t(n):(f[l]=new L(u.id,s),e.putObject(c.data,f,g))}k(e,n,function(i,o){!i&&o?t(new T.EEXIST(null,n)):!i||i instanceof T.ENOENT?k(e,p,d):t(i)})}function M(e,n,t,o){var r=f.fsConstants,u=r.F_OK,a=r.R_OK,c=r.W_OK,l=r.X_OK,s=r.S_IXUSR,p=r.S_IXGRP,d=r.S_IXOTH;k(e,n=i(n),function(e,i){if(e)return o(e);if(t===u)return o(null);var r=xe(i.mode,o);return r?t&(a|c)?o(null):t&l&&r&(s|p|d)?o
},{"../path.js":"UzoP","../shared.js":"zBMa","../../lib/async.js":"u4Zs","../constants.js":"iJA9","../errors.js":"p8GN","../directory-entry.js":"ZECt","../open-files.js":"osLK","../open-file-description.js":"XWaV","../super-node.js":"JEp0","../node.js":"KKNo","../dirent.js":"q4Wu","../stats.js":"dsCT","buffer":"dskh"}],"GMi4":[function(require,module,exports) {
2019-01-03 04:12:19 +00:00
var Buffer = require("buffer").Buffer;
2019-02-07 21:38:32 +00:00
var e=require("buffer").Buffer,r=require("es6-promisify"),t=r.promisify,n=require("../path.js"),a=require("../providers/index.js"),s=require("../shell/shell.js"),o=require("../../lib/intercom.js"),i=require("../fs-watcher.js"),u=require("../errors.js"),m=require("../shared.js"),c=m.nop,f=m.guid,l=require("../constants.js"),h=l.fsConstants,p=l.FILE_SYSTEM_NAME,d=l.FS_FORMAT,g=l.FS_READY,b=l.FS_PENDING,A=l.FS_ERROR,P=l.FS_NODUPEIDCHECK,v=l.STDIN,y=l.STDOUT,E=l.STDERR,R=require("./implementation.js");function w(e){return"function"==typeof e?e:function(e){if(e)throw e}}function S(e){e&&console.error("Filer error: ",e)}function O(e){if(!(e&&e.protocol&&e.pathname))return e;if("file:"!==e.protocol)throw new u.EINVAL("only file: URLs are supported for paths",e);for(var r=e.pathname,t=0;t<r.length;t++)if("%"===r[t]){var n=32|r.codePointAt(t+2);if("2"===r[t+1]&&102===n)throw new u.EINVAL("file: URLs must not include encoded / characters",e)}return decodeURIComponent(r)}function x(r){return e.isBuffer(r)?r.toString():r}function F(e,r){return e?n.isNull(e)?new u.EINVAL("Path must be a string without null bytes.",e):r||n.isAbsolute(e)?void 0:new u.EINVAL("Path must be absolute.",e):new u.EINVAL("Path must be a string",e)}function _(e,r,t){var n=e[r],a=F(n=x(n=O(n)),t);if(a)throw a;e[r]=n}function q(e,r){r=r||S;var m=(e=e||{}).flags||[],l=e.guid?e.guid:f,O=e.provider||new a.Default(e.name||p),x=e.name||O.name,F=m.includes(d),I=this;I.readyState=b,I.name=x,I.error=null,I.stdin=v,I.stdout=y,I.stderr=E,I.constants=h,I.F_OK=h.F_OK,I.R_OK=h.R_OK,I.W_OK=h.W_OK,I.X_OK=h.X_OK,this.Shell=s.bind(void 0,this);var N=[];function j(e){return function(r){m.includes(P)?r(null,l()):function r(t){var n=l();e.getObject(n,function(e,a){e?t(e):a?r(t):t(null,n)})}(r)}}this.queueOrRun=function(e){var r;return g===I.readyState?e.call(I):A===I.readyState?r=new u.EFILESYSTEMERROR("unknown error"):N.push(e),r},this.watch=function(e,r,t){if(n.isNull(e))throw new Error("Path must be a string without null bytes.");"function"==typeof r&&(t=r,r={}),r=r||{},t=t||c;var a=new i;return a.start(e,!1,r.recursive),a.on("change",t),a},O.open(function(e){function t(e){function t(e){var r=O[e]();return r.name=x,r.flags=m,r.changes=[],r.guid=j(r),r.close=function(){var e=r.changes;!function(e){if(e.length){var r=o.getInstance();e.forEach(function(e){r.emit(e.event,e.path)})}}(e),e.length=0},r}I.provider={openReadWriteContext:function(){return t("getReadWriteContext")},openReadOnlyContext:function(){return t("getReadOnlyContext")}},I.readyState=e?A:g,N.forEach(function(e){e.call(this)}.bind(I)),N=null,r(e,I)}if(e)return t(e);var n=O.getReadWriteContext();n.guid=j(n),F?n.clear(function(e){if(e)return t(e);R.ensureRootDirectory(n,t)}):R.ensureRootDirectory(n,t)}),q.prototype.promises={},[{name:"appendFile",promises:!0,absPathArgs:[0]},{name:"access",promises:!0,absPathArgs:[0]},{name:"chown",promises:!0,absPathArgs:[0]},{name:"chmod",promises:!0,absPathArgs:[0]},{name:"close"},{name:"exists",absPathArgs:[0]},{name:"fchown"},{name:"fchmod"},{name:"fgetxattr"},{name:"fremovexattr"},{name:"fsetxattr"},{name:"fstat"},{name:"fsync"},{name:"ftruncate"},{name:"futimes"},{name:"getxattr",promises:!0,absPathArgs:[0]},{name:"link",promises:!0,absPathArgs:[0,1]},{name:"lseek"},{name:"lstat",promises:!0},{name:"mkdir",promises:!0,absPathArgs:[0]},{name:"mkdtemp",promises:!0},{name:"mknod",promises:!0,absPathArgs:[0]},{name:"open",promises:!0,absPathArgs:[0]},{name:"readdir",promises:!0,absPathArgs:[0]},{name:"read"},{name:"readFile",promises:!0,absPathArgs:[0]},{name:"readlink",promises:!0,absPathArgs:[0]},{name:"removexattr",promises:!0,absPathArgs:[0]},{name:"rename",promises:!0,absPathArgs:[0,1]},{name:"rmdir",promises:!0,absPathArgs:[0]},{name:"setxattr",promises:!0,absPathArgs:[0]},{name:"stat",promises:!0,absPathArgs:[0]},{name:"symlink",promises:!0,relPathArgs:[0],absPathArgs:[1]},{name:"truncate",promises:!0,absPathArgs:[0]},{name:"unlink",promises:!0,absPathArgs:[0]},{name:"utimes",promises:!0,absPathArgs:[0]},{name:"writeFile",promises:!0,absPathArgs:[0]},{name:"write"}].forEach(
2021-10-19 20:44:10 +00:00
},{"es6-promisify":"b1ZG","../path.js":"UzoP","../providers/index.js":"AiW7","../shell/shell.js":"D1Ra","../../lib/intercom.js":"u7Jv","../fs-watcher.js":"VLEe","../errors.js":"p8GN","../shared.js":"zBMa","../constants.js":"iJA9","./implementation.js":"bsBG","buffer":"dskh"}],"iIhC":[function(require,module,exports) {
2021-10-16 12:36:13 +00:00
"use strict";function e(e,t,r){return{dataPath:void 0,schemaPath:void 0,keyword:"absolutePath",params:{absolutePath:r},message:e,parentSchema:t}}function t(t,r,a){return e(t?"The provided value ".concat(JSON.stringify(a)," is not an absolute path!"):"A relative path is expected. However, the provided value ".concat(JSON.stringify(a)," is an absolute path!"),r,a)}function r(r){return r.addKeyword("absolutePath",{errors:!0,type:"string",compile:function(r,a){var o=function o(s){var n=!0;return s.includes("!")&&(o.errors=[e("The provided value ".concat(JSON.stringify(s)," contains exclamation mark (!) which is not allowed because it's reserved for loader syntax."),a,s)],n=!1),r===/^(?:[A-Za-z]:(\\|\/)|\\\\|\/)/.test(s)||(o.errors=[t(r,a,s)],n=!1),n};return o.errors=[],o}}),r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var a=r;exports.default=a;
},{}],"GNtl":[function(require,module,exports) {
2021-10-19 20:44:10 +00:00
"use strict";function t(t,n){return a(t)||o(t,n)||r(t,n)||e()}function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function o(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(f){o=!0,a=f}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}return r}}function a(t){if(Array.isArray(t))return t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),t}var c=function(){function e(){i(this,e),this._left=[],this._right=[]}return f(e,[{key:"left",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._left.push([t,e])}},{key:"right",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._right.push([t,e])}},{key:"format",value:function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=t(e.getRangeValue(this._left,r),2),o=n[0],a=n[1],i=t(e.getRangeValue(this._right,!r),2),u=i[0],f=i[1];if(!Number.isFinite(o)&&!Number.isFinite(u))return"";var c=a?o+1:o;return c===(f?u-1:u)?"should be ".concat(r?"":"!","= ").concat(c):Number.isFinite(o)&&!Number.isFinite(u)?e.formatLeft(o,r,a):!Number.isFinite(o)&&Number.isFinite(u)?e.formatRight(u,r,f):e.formatRange(o,u,a,f,r)}}],[{key:"getOperator",value:function(t,e){return"left"===t?e?">":">=":e?"<":"<="}},{key:"formatRight",value:function(t,r,n){return!1===r?e.formatLeft(t,!r,!n):"should be ".concat(e.getOperator("right",n)," ").concat(t)}},{key:"formatLeft",value:function(t,r,n){return!1===r?e.formatRight(t,!r,!n):"should be ".concat(e.getOperator("left",n)," ").concat(t)}},{key:"formatRange",value:function(t,r,n,o,a){var i="should be";return i+=" ".concat(e.getOperator(a?"left":"right",a?n:!n)," ").concat(t," "),i+=a?"and":"or",i+=" ".concat(e.getOperator(a?"right":"left",a?o:!o)," ").concat(r)}},{key:"getRangeValue",value:function(e,r){for(var n=r?1/0:-1/0,o=-1,a=r?function(e){return t(e,1)[0]<=n}:function(e){return t(e,1)[0]>=n},i=0;i<e.length;i++)if(a(e[i])){var u=t(e[i],1);n=u[0],o=i}return o>-1?e[o]:[1/0,!0]}}]),e}();module.exports=c;
2021-10-16 12:36:13 +00:00
},{}],"SqDh":[function(require,module,exports) {
"use strict";function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function e(e){for(var r=1;r<arguments.length;r++){var m=null!=arguments[r]?arguments[r]:{};r%2?t(Object(m),!0).forEach(function(t){n(e,t,m[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(m)):t(Object(m)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(m,t))})}return e}function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=require("./Range");module.exports.stringHints=function(t,n){var r=[],m="string",i=e({},t);if(!n){var o=i.minLength,u=i.formatMinimum,a=i.formatExclusiveMaximum;i.minLength=i.maxLength,i.maxLength=o,i.formatMinimum=i.formatMaximum,i.formatMaximum=u,i.formatExclusiveMaximum=!i.formatExclusiveMinimum,i.formatExclusiveMinimum=!a}if("number"==typeof i.minLength)if(1===i.minLength)m="non-empty string";else{var c=Math.max(i.minLength-1,0);r.push("should be longer than ".concat(c," character").concat(c>1?"s":""))}if("number"==typeof i.maxLength)if(0===i.maxLength)m="empty string";else{var f=i.maxLength+1;r.push("should be shorter than ".concat(f," character").concat(f>1?"s":""))}return i.pattern&&r.push("should".concat(n?"":" not"," match pattern ").concat(JSON.stringify(i.pattern))),i.format&&r.push("should".concat(n?"":" not"," match format ").concat(JSON.stringify(i.format))),i.formatMinimum&&r.push("should be ".concat(i.formatExclusiveMinimum?">":">="," ").concat(JSON.stringify(i.formatMinimum))),i.formatMaximum&&r.push("should be ".concat(i.formatExclusiveMaximum?"<":"<="," ").concat(JSON.stringify(i.formatMaximum))),[m].concat(r)},module.exports.numberHints=function(t,e){var n=["integer"===t.type?"integer":"number"],m=new r;"number"==typeof t.minimum&&m.left(t.minimum),"number"==typeof t.exclusiveMinimum&&m.left(t.exclusiveMinimum,!0),"number"==typeof t.maximum&&m.right(t.maximum),"number"==typeof t.exclusiveMaximum&&m.right(t.exclusiveMaximum,!0);var i=m.format(e);return i&&n.push(i),"number"==typeof t.multipleOf&&n.push("should".concat(e?"":" not"," be multiple of ").concat(t.multipleOf)),n};
},{"./Range":"GNtl"}],"ySUA":[function(require,module,exports) {
2021-10-19 20:44:10 +00:00
"use strict";function t(t){return n(t)||r(t)||i(t)||e()}function e(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t){if(Array.isArray(t))return s(t)}function a(t){return m(t)||r(t)||i(t)||c()}function r(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function o(t,e){return m(t)||u(t,e)||i(t,e)||c()}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function u(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],a=!0,r=!1,o=void 0;try{for(var c,i=t[Symbol.iterator]();!(a=(c=i.next()).done)&&(n.push(c.value),!e||n.length!==e);a=!0);}catch(s){r=!0,o=s}finally{try{a||null==i.return||i.return()}finally{if(r)throw o}}return n}}function m(t){if(Array.isArray(t))return t}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function l(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&x(t,e)}function d(t){return function(){var e,n=O(t);if(S()){var a=O(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return y(this,e)}}function y(t,e){return!e||"object"!==j(e)&&"function"!=typeof e?v(t):e}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){var e="function"==typeof Map?new Map:void 0;return(g=function(t){if(null===t||!P(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return b(t,arguments,O(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),x(n,t)})(t)}function b(t,e,n){return(b=S()?Reflect.construct:function(t,e,n){var a=[null];a.push.apply(a,e);var r=new(Function.bind.apply(t,a));return n&&x(r,n.prototype),r}).apply(null,arguments)}function S(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function P(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function x(t,e){return(x=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var w=require("./util/hints"),D=w.stringHints,I=w.numberHints,T={type:1,not:1,oneOf:1,anyOf:1,if:1,enum:1,const:1,instanceof:1,required:2,pattern:2,patternRequired:2,format:2,formatMinimum:2,formatMaximum:2,minimum:2,exclusiveMinimum:2,maximum:2,exclusiveMaximum:2,multipleOf:2,uniqueItems:2,contains:2,minLength:2,maxLength:2,minItems:2,maxItems:2,mi
2021-10-16 12:36:13 +00:00
},{"./util/hints":"SqDh"}],"wWOq":[function(require,module,exports) {
var define;
var global = arguments[3];
var e,r=arguments[3];!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof e&&e.amd?e(["exports"],t):t(r.URI=r.URI||{})}(this,function(e){"use strict";function r(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];if(r.length>1){r[0]=r[0].slice(0,-1);for(var n=r.length-1,o=1;o<n;++o)r[o]=r[o].slice(1,-1);return r[n]=r[n].slice(1),r.join("")}return r[0]}function t(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function a(e){var n=r("[0-9]","[A-Fa-f]"),o=t(t("%[EFef]"+n+"%"+n+n+"%"+n+n)+"|"+t("%[89A-Fa-f]"+n+"%"+n+n)+"|"+t("%"+n+n)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",i=r("[\\:\\/\\?\\#\\[\\]\\@]",a),s=e?"[\\uE000-\\uF8FF]":"[]",u=r("[A-Za-z]","[0-9]","[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),c=t("[A-Za-z]"+r("[A-Za-z]","[0-9]","[\\+\\-\\.]")+"*"),p=t(t(o+"|"+r(u,a,"[\\:]"))+"*"),h=(t(t("25[0-5]")+"|"+t("2[0-4][0-9]")+"|"+t("1[0-9][0-9]")+"|"+t("[1-9][0-9]")+"|[0-9]"),t(t("25[0-5]")+"|"+t("2[0-4][0-9]")+"|"+t("1[0-9][0-9]")+"|"+t("0?[1-9][0-9]")+"|0?0?[0-9]")),f=t(h+"\\."+h+"\\."+h+"\\."+h),l=t(n+"{1,4}"),v=t(t(l+"\\:"+l)+"|"+f),d=t(t(l+"\\:")+"{6}"+v),g=t("\\:\\:"+t(l+"\\:")+"{5}"+v),m=t(t(l)+"?\\:\\:"+t(l+"\\:")+"{4}"+v),E=t(t(t(l+"\\:")+"{0,1}"+l)+"?\\:\\:"+t(l+"\\:")+"{3}"+v),C=t(t(t(l+"\\:")+"{0,2}"+l)+"?\\:\\:"+t(l+"\\:")+"{2}"+v),y=t(t(t(l+"\\:")+"{0,3}"+l)+"?\\:\\:"+l+"\\:"+v),S=t(t(t(l+"\\:")+"{0,4}"+l)+"?\\:\\:"+v),A=t(t(t(l+"\\:")+"{0,5}"+l)+"?\\:\\:"+l),D=t(t(t(l+"\\:")+"{0,6}"+l)+"?\\:\\:"),w=t([d,g,m,E,C,y,S,A,D].join("|")),b=t(t(u+"|"+o)+"+"),x=(t(w+"\\%25"+b),t(w+t("\\%25|\\%(?!"+n+"{2})")+b)),O=t("[vV]"+n+"+\\."+r(u,a,"[\\:]")+"+"),I=t("\\["+t(x+"|"+w+"|"+O)+"\\]"),F=t(t(o+"|"+r(u,a))+"*"),N=t(I+"|"+f+"(?!"+F+")|"+F),R=t("[0-9]*"),T=t(t(p+"@")+"?"+N+t("\\:"+R)+"?"),_=t(o+"|"+r(u,a,"[\\:\\@]")),P=t(_+"*"),U=t(_+"+"),j=t(t(o+"|"+r(u,a,"[\\@]"))+"+"),q=t(t("\\/"+P)+"*"),H=t("\\/"+t(U+q)+"?"),z=t(j+q),L=t(U+q),$="(?!"+_+")",V=(t(q+"|"+H+"|"+z+"|"+L+"|"+$),t(t(_+"|"+r("[\\/\\?]",s))+"*")),M=t(t(_+"|[\\/\\?]")+"*"),Z=t(t("\\/\\/"+T+q)+"|"+H+"|"+L+"|"+$),k=t(c+"\\:"+Z+t("\\?"+V)+"?"+t("\\#"+M)+"?"),G=t(t("\\/\\/"+T+q)+"|"+H+"|"+z+"|"+$),Q=t(G+t("\\?"+V)+"?"+t("\\#"+M)+"?");t(k+"|"+Q),t(c+"\\:"+Z+t("\\?"+V)+"?"),t(t("\\/\\/("+t("("+p+")@")+"?("+N+")"+t("\\:("+R+")")+"?)")+"?("+q+"|"+H+"|"+L+"|"+$+")"),t("\\?("+V+")"),t("\\#("+M+")"),t(t("\\/\\/("+t("("+p+")@")+"?("+N+")"+t("\\:("+R+")")+"?)")+"?("+q+"|"+H+"|"+z+"|"+$+")"),t("\\?("+V+")"),t("\\#("+M+")"),t(t("\\/\\/("+t("("+p+")@")+"?("+N+")"+t("\\:("+R+")")+"?)")+"?("+q+"|"+H+"|"+L+"|"+$+")"),t("\\?("+V+")"),t("\\#("+M+")"),t("("+p+")@"),t("\\:("+R+")");return{NOT_SCHEME:new RegExp(r("[^]","[A-Za-z]","[0-9]","[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",u,a),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",u,a),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",u,a),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",u,a),"g"),NOT_QUERY:new RegExp(r("[^\\%]",u,a,"[\\:\\@\\/\\?]",s),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",u,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",u,a),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",u,i),"g"),PCT_ENCODED:new RegExp(o,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+w+")"+t(t("\\%25|\\%(?!"+n+"{2})")+"("+b+")")+"?\\]?$")}}var i=a(!1),s=a(!0),u=function(){return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,r){var t=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(t.push(i.value),!r||t.length!==r);n=!0);}catch(u){o=!0,a=u}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return t}(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=2147483647,p=/^xn--/,h=/[^\0-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal
},{}],"dPQH":[function(require,module,exports) {
"use strict";module.exports=function r(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,n,u;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(n=o;0!=n--;)if(!r(t[n],e[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if((o=(u=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(n=o;0!=n--;)if(!Object.prototype.hasOwnProperty.call(e,u[n]))return!1;for(n=o;0!=n--;){var f=u[n];if(!r(t[f],e[f]))return!1}return!0}return t!=t&&e!=e};
},{}],"rD0p":[function(require,module,exports) {
"use strict";module.exports=function(r){for(var t,e=0,o=r.length,c=0;c<o;)e++,(t=r.charCodeAt(c++))>=55296&&t<=56319&&c<o&&56320==(64512&(t=r.charCodeAt(c)))&&c++;return e};
},{}],"Q1F7":[function(require,module,exports) {
"use strict";function e(e,r){for(var n in r=r||{},e)r[n]=e[n];return r}function r(e,r,n,t){var a=t?" !== ":" === ",o=t?" || ":" && ",u=t?"!":"",c=t?"":"!";switch(e){case"null":return r+a+"null";case"array":return u+"Array.isArray("+r+")";case"object":return"("+u+r+o+"typeof "+r+a+'"object"'+o+c+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+a+'"number"'+o+c+"("+r+" % 1)"+o+r+a+r+(n?o+u+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+a+'"'+e+'"'+(n?o+u+"isFinite("+r+")":"")+")";default:return"typeof "+r+a+'"'+e+'"'}}function n(e,n,t){switch(e.length){case 1:return r(e[0],n,t,!0);default:var a="",u=o(e);for(var c in u.array&&u.object&&(a=u.null?"(":"(!"+n+" || ",a+="typeof "+n+' !== "object")',delete u.null,delete u.array,delete u.object),u.number&&delete u.integer,u)a+=(a?" && ":"")+r(c,n,t,!0);return a}}module.exports={copy:e,checkDataType:r,checkDataTypes:n,coerceToTypes:a,toHash:o,getProperty:i,escapeQuotes:l,equal:require("fast-deep-equal"),ucs2length:require("./ucs2length"),varOccurences:f,varReplace:s,schemaHasRules:p,schemaHasRulesExcept:g,schemaUnknownRules:y,toQuotedString:h,getPathExpr:v,getPath:d,getData:w,unescapeFragment:E,unescapeJsonPointer:A,escapeFragment:R,escapeJsonPointer:x};var t=o(["string","number","integer","boolean","null"]);function a(e,r){if(Array.isArray(r)){for(var n=[],a=0;a<r.length;a++){var o=r[a];t[o]?n[n.length]=o:"array"===e&&"array"===o&&(n[n.length]=o)}if(n.length)return n}else{if(t[r])return[r];if("array"===e&&"array"===r)return["array"]}}function o(e){for(var r={},n=0;n<e.length;n++)r[e[n]]=!0;return r}var u=/^[a-z$_][a-z$_0-9]*$/i,c=/'|\\/g;function i(e){return"number"==typeof e?"["+e+"]":u.test(e)?"."+e:"['"+l(e)+"']"}function l(e){return e.replace(c,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function f(e,r){r+="[^0-9]";var n=e.match(new RegExp(r,"g"));return n?n.length:0}function s(e,r,n){return r+="([^0-9])",n=n.replace(/\$/g,"$$$$"),e.replace(new RegExp(r,"g"),n+"$1")}function p(e,r){if("boolean"==typeof e)return!e;for(var n in e)if(r[n])return!0}function g(e,r,n){if("boolean"==typeof e)return!e&&"not"!=n;for(var t in e)if(t!=n&&r[t])return!0}function y(e,r){if("boolean"!=typeof e)for(var n in e)if(!r[n])return n}function h(e){return"'"+l(e)+"'"}function v(e,r,n,t){return $(e,n?"'/' + "+r+(t?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):t?"'[' + "+r+" + ']'":"'[\\'' + "+r+" + '\\']'")}function d(e,r,n){return $(e,h(n?"/"+x(r):i(r)))}var m=/^\/(?:[^~]|~0|~1)*$/,b=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function w(e,r,n){var t,a,o,u;if(""===e)return"rootData";if("/"==e[0]){if(!m.test(e))throw new Error("Invalid JSON-pointer: "+e);a=e,o="rootData"}else{if(!(u=e.match(b)))throw new Error("Invalid JSON-pointer: "+e);if(t=+u[1],"#"==(a=u[2])){if(t>=r)throw new Error("Cannot access property/index "+t+" levels up, current level is "+r);return n[r-t]}if(t>r)throw new Error("Cannot access data "+t+" levels up, current level is "+r);if(o="data"+(r-t||""),!a)return o}for(var c=o,l=a.split("/"),f=0;f<l.length;f++){var s=l[f];s&&(c+=" && "+(o+=i(A(s))))}return c}function $(e,r){return'""'==e?r:(e+" + "+r).replace(/([^\\])' \+ '/g,"$1")}function E(e){return A(decodeURIComponent(e))}function R(e){return encodeURIComponent(x(e))}function x(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function A(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}
},{"fast-deep-equal":"dPQH","./ucs2length":"rD0p"}],"HHLG":[function(require,module,exports) {
"use strict";var t=require("./util");function e(e){t.copy(e,this)}module.exports=e;
},{"./util":"Q1F7"}],"uMRE":[function(require,module,exports) {
"use strict";var e=module.exports=function(e,i,t){"function"==typeof i&&(t=i,i={}),r(i,"function"==typeof(t=i.cb||t)?t:t.pre||function(){},t.post||function(){},e,"",e)};function r(t,n,o,s,a,m,p,f,u,y){if(s&&"object"==typeof s&&!Array.isArray(s)){for(var c in n(s,a,m,p,f,u,y),s){var d=s[c];if(Array.isArray(d)){if(c in e.arrayKeywords)for(var l=0;l<d.length;l++)r(t,n,o,d[l],a+"/"+c+"/"+l,m,a,c,s,l)}else if(c in e.propsKeywords){if(d&&"object"==typeof d)for(var w in d)r(t,n,o,d[w],a+"/"+c+"/"+i(w),m,a,c,s,w)}else(c in e.keywords||t.allKeys&&!(c in e.skipKeywords))&&r(t,n,o,d,a+"/"+c,m,a,c,s)}o(s,a,m,p,f,u,y)}}function i(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};
},{}],"w10T":[function(require,module,exports) {
"use strict";var e=require("uri-js"),r=require("fast-deep-equal"),t=require("./util"),i=require("./schema_obj"),s=require("json-schema-traverse");function a(e,r,t){var s=this._refs[t];if("string"==typeof s){if(!this._refs[s])return a.call(this,e,r,s);s=this._refs[s]}if((s=s||this._schemas[t])instanceof i)return u(s.schema,this._opts.inlineRefs)?s.schema:s.validate||this._compile(s);var o,f,c,h=n.call(this,r,t);return h&&(o=h.schema,r=h.root,c=h.baseId),o instanceof i?f=o.validate||e.call(this,o.schema,r,void 0,c):void 0!==o&&(f=u(o,this._opts.inlineRefs)?o:e.call(this,o,r,void 0,c)),f}function n(r,t){var s=e.parse(t),a=d(s),n=v(this._getId(r.schema));if(0===Object.keys(r.schema).length||a!==n){var f=g(a),h=this._refs[f];if("string"==typeof h)return o.call(this,r,h,s);if(h instanceof i)h.validate||this._compile(h),r=h;else{if(!((h=this._schemas[f])instanceof i))return;if(h.validate||this._compile(h),f==g(t))return{schema:h,root:r,baseId:n};r=h}if(!r.schema)return;n=v(this._getId(r.schema))}return c.call(this,s,n,r.schema,r)}function o(e,r,t){var i=n.call(this,e,r);if(i){var s=i.schema,a=i.baseId;e=i.root;var o=this._getId(s);return o&&(a=_(a,o)),c.call(this,t,a,s,e)}}module.exports=a,a.normalizeId=g,a.fullPath=v,a.url=_,a.ids=y,a.inlineRef=u,a.schema=n;var f=t.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function c(e,r,i,s){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var a=e.fragment.split("/"),o=1;o<a.length;o++){var c=a[o];if(c){if(void 0===(i=i[c=t.unescapeFragment(c)]))break;var h;if(!f[c]&&((h=this._getId(i))&&(r=_(r,h)),i.$ref)){var u=_(r,i.$ref),l=n.call(this,s,u);l&&(i=l.schema,s=l.root,r=l.baseId)}}}return void 0!==i&&i!==s.schema?{schema:i,root:s,baseId:r}:void 0}}var h=t.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function u(e,r){return!1!==r&&(void 0===r||!0===r?l(e):r?m(e)<=r:void 0)}function l(e){var r;if(Array.isArray(e)){for(var t=0;t<e.length;t++)if("object"==typeof(r=e[t])&&!l(r))return!1}else for(var i in e){if("$ref"==i)return!1;if("object"==typeof(r=e[i])&&!l(r))return!1}return!0}function m(e){var r,t=0;if(Array.isArray(e)){for(var i=0;i<e.length;i++)if("object"==typeof(r=e[i])&&(t+=m(r)),t==1/0)return 1/0}else for(var s in e){if("$ref"==s)return 1/0;if(h[s])t++;else if("object"==typeof(r=e[s])&&(t+=m(r)+1),t==1/0)return 1/0}return t}function v(r,t){return!1!==t&&(r=g(r)),d(e.parse(r))}function d(r){return e.serialize(r).split("#")[0]+"#"}var p=/#\/?$/;function g(e){return e?e.replace(p,""):""}function _(r,t){return t=g(t),e.resolve(r,t)}function y(i){var a=g(this._getId(i)),n={"":a},o={"":v(a,!1)},f={},c=this;return s(i,{allKeys:!0},function(i,s,a,h,u,l,m){if(""!==s){var v=c._getId(i),d=n[h],p=o[h]+"/"+u;if(void 0!==m&&(p+="/"+("number"==typeof m?m:t.escapeFragment(m))),"string"==typeof v){v=d=g(d?e.resolve(d,v):v);var _=c._refs[v];if("string"==typeof _&&(_=c._refs[_]),_&&_.schema){if(!r(i,_.schema))throw new Error('id "'+v+'" resolves to more than one schema')}else if(v!=g(p))if("#"==v[0]){if(f[v]&&!r(i,f[v]))throw new Error('id "'+v+'" resolves to more than one schema');f[v]=i}else c._refs[v]=p}n[s]=d,o[s]=p}}),f}
},{"uri-js":"wWOq","fast-deep-equal":"dPQH","./util":"Q1F7","./schema_obj":"HHLG","json-schema-traverse":"uMRE"}],"OtNE":[function(require,module,exports) {
"use strict";var e=require("./resolve");function t(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}function i(t,s,r){this.message=r||i.message(t,s),this.missingRef=e.url(t,s),this.missingSchema=e.normalizeId(e.fullPath(this.missingRef))}function s(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}module.exports={Validation:s(t),MissingRef:s(i)},i.message=function(e,t){return"can't resolve reference "+t+" from id "+e};
},{"./resolve":"w10T"}],"Xb3N":[function(require,module,exports) {
"use strict";module.exports=function(r,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var e,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(e=t.cmp,function(r){return function(t,n){var i={key:t,value:r[t]},u={key:n,value:r[n]};return e(i,u)}}),u=[];return function r(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var e,o;if(Array.isArray(t)){for(o="[",e=0;e<t.length;e++)e&&(o+=","),o+=r(t[e])||"null";return o+"]"}if(null===t)return"null";if(-1!==u.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var f=u.push(t)-1,c=Object.keys(t).sort(i&&i(t));for(o="",e=0;e<c.length;e++){var l=c[e],y=r(t[l]);y&&(o&&(o+=","),o+=JSON.stringify(l)+":"+y)}return u.splice(f,1),"{"+o+"}"}}(r)};
},{}],"yhC1":[function(require,module,exports) {
"use strict";module.exports=function(e,r,a){var t="",s=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),l=e.self._getId(e.schema);if(e.opts.strictKeywords){var i=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(i){var n="unknown keyword: "+i;if("log"!==e.opts.strictKeywords)throw new Error(n);e.logger.warn(n)}}if(e.isTop&&(t+=" var validate = ",s&&(e.async=!0,t+="async "),t+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",l&&(e.opts.sourceCode||e.opts.processCode)&&(t+=" /*# sourceURL="+l+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){var c=e.level,f=e.dataLevel,h=e.schema["false schema"],u=e.schemaPath+e.util.getProperty("false schema"),p=e.errSchemaPath+"/false schema",d=!e.opts.allErrors,m="data"+(f||""),v="valid"+c;if(!1===e.schema){e.isTop?d=!0:t+=" var "+v+" = false; ",(W=W||[]).push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ",!1!==e.opts.messages&&(t+=" , message: 'boolean schema is false' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),t+=" } "):t+=" {} ";var y=t;t=W.pop(),!e.compositeRule&&d?e.async?t+=" throw new ValidationError(["+y+"]); ":t+=" validate.errors = ["+y+"]; return false; ":t+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?t+=s?" return data; ":" validate.errors = null; return true; ":t+=" var "+v+" = true; ";return e.isTop&&(t+=" }; return validate; "),t}if(e.isTop){var g=e.isTop;c=e.level=0,f=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var w="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(w);e.logger.warn(w)}t+=" var vErrors = null; ",t+=" var errors = 0; ",t+=" if (rootData === undefined) rootData = data; "}else{c=e.level,m="data"+((f=e.dataLevel)||"");if(l&&(e.baseId=e.resolve.url(e.baseId,l)),s&&!e.async)throw new Error("async schema in sync schema");t+=" var errs_"+c+" = errors;"}v="valid"+c,d=!e.opts.allErrors;var E="",P="",b=e.schema.type,D=Array.isArray(b);if(b&&e.opts.nullable&&!0===e.schema.nullable&&(D?-1==b.indexOf("null")&&(b=b.concat("null")):"null"!=b&&(b=[b,"null"],D=!0)),D&&1==b.length&&(b=b[0],D=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(t+=" "+e.RULES.all.$comment.code(e,"$comment")),b){if(e.opts.coerceTypes)var S=e.util.coerceToTypes(e.opts.coerceTypes,b);var R=e.RULES.types[b];if(S||D||!0===R||R&&!X(R)){u=e.schemaPath+".type",p=e.errSchemaPath+"/type",u=e.schemaPath+".type",p=e.errSchemaPath+"/type";var T=D?"checkDataTypes":"checkDataType";if(t+=" if ("+e.util[T](b,m,e.opts.strictNumbers,!0)+") { ",S){var k="dataType"+c,$="coerced"+c;t+=" var "+k+" = typeof "+m+"; var "+$+" = undefined; ","array"==e.opts.coerceTypes&&(t+=" if ("+k+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+k+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+$+" = "+m+"; } "),t+=" if ("+$+" !== undefined) ; ";var L=S;if(L)for(var j,A=-1,I=L.length-1;A<I;)"string"==(j=L[A+=1])?t+=" else if ("+k+" == 'number' || "+k+" == 'boolean') "+$+" = '' + "+m+"; else if ("+m+" === null) "+$+" = ''; ":"number"==j||"integer"==j?(t+=" else if ("+k+" == 'boolean' || "+m+" === null || ("+k+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==j&&(t+=" && !("+m+" % 1)"),t+=")) "+$+" = +"+m+"; "):"boolean"==j?t+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+$+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+$+" = true; ":"null"
},{}],"qdYs":[function(require,module,exports) {
"use strict";var e=require("./resolve"),r=require("./util"),t=require("./error_classes"),i=require("fast-json-stable-stringify"),o=require("../dotjs/validate"),a=r.ucs2length,n=require("fast-deep-equal"),s=t.Validation;function l(f,g,y,w){var R=this,V=this._opts,S=[void 0],_={},b=[],E={},q=[],j={},x=[];g=g||{schema:f,refVal:S,refs:_};var $=c.call(this,f,g,w),k=this._compilations[$.index];if($.compiling)return k.callValidate=function e(){var r=k.validate;var t=r.apply(this,arguments);e.errors=r.errors;return t};var C=this._formats,P=this.RULES;try{var I=U(f,g,y,w);k.validate=I;var L=k.callValidate;return L&&(L.schema=I.schema,L.errors=null,L.refs=I.refs,L.refVal=I.refVal,L.root=I.root,L.$async=I.$async,V.sourceCode&&(L.source=I.source)),I}finally{u.call(this,f,g,w)}function U(i,c,u,f){var y=!c||c&&c.schema==i;if(c.schema!=g.schema)return l.call(R,i,c,u,f);var w,E=!0===i.$async,j=o({isTop:!0,schema:i,isRoot:y,baseId:f,root:c,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:t.MissingRef,RULES:P,validate:o,util:r,resolve:e,resolveRef:M,usePattern:T,useDefault:D,useCustomRule:F,opts:V,formats:C,logger:R.logger,self:R});j=p(S,h)+p(b,d)+p(q,v)+p(x,m)+j,V.processCode&&(j=V.processCode(j,i));try{w=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",j)(R,P,C,g,S,q,x,n,a,s),S[0]=w}catch($){throw R.logger.error("Error compiling schema, function code:",j),$}return w.schema=i,w.errors=null,w.refs=_,w.refVal=S,w.root=y?w:c,E&&(w.$async=!0),!0===V.sourceCode&&(w.source={code:j,patterns:b,defaults:q}),w}function M(r,t,i){t=e.url(r,t);var o,a,n=_[t];if(void 0!==n)return Q(o=S[n],a="refVal["+n+"]");if(!i&&g.refs){var s=g.refs[t];if(void 0!==s)return Q(o=g.refVal[s],a=O(t,o))}a=O(t);var c=e.call(R,U,g,t);if(void 0===c){var u=y&&y[t];u&&(c=e.inlineRef(u,V.inlineRefs)?u:l.call(R,u,g,y,r))}if(void 0!==c)return function(e,r){var t=_[e];S[t]=r}(t,c),Q(c,a);!function(e){delete _[e]}(t)}function O(e,r){var t=S.length;return S[t]=r,_[e]=t,"refVal"+t}function Q(e,r){return"object"==typeof e||"boolean"==typeof e?{code:r,schema:e,inline:!0}:{code:r,$async:e&&!!e.$async}}function T(e){var r=E[e];return void 0===r&&(r=E[e]=b.length,b[r]=e),"pattern"+r}function D(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return r.toQuotedString(e);case"object":if(null===e)return"null";var t=i(e),o=j[t];return void 0===o&&(o=j[t]=q.length,q[o]=e),"default"+o}}function F(e,r,t,i){if(!1!==R._opts.validateSchema){var o=e.definition.dependencies;if(o&&!o.every(function(e){return Object.prototype.hasOwnProperty.call(t,e)}))throw new Error("parent schema must have all required keywords: "+o.join(","));var a=e.definition.validateSchema;if(a)if(!a(r)){var n="keyword schema is invalid: "+R.errorsText(a.errors);if("log"!=R._opts.validateSchema)throw new Error(n);R.logger.error(n)}}var s,l=e.definition.compile,c=e.definition.inline,u=e.definition.macro;if(l)s=l.call(R,r,t,i);else if(u)s=u.call(R,r,t,i),!1!==V.validateSchema&&R.validateSchema(s,!0);else if(c)s=c.call(R,i,e.keyword,r,t);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var f=x.length;return x[f]=s,{code:"customRule"+f,validate:s}}}function c(e,r,t){var i=f.call(this,e,r,t);return i>=0?{index:i,compiling:!0}:(i=this._compilations.length,this._compilations[i]={schema:e,root:r,baseId:t},{index:i,compiling:!1})}function u(e,r,t){var i=f.call(this,e,r,t);i>=0&&this._compilations.splice(i,1)}function f(e,r,t){for(var i=0;i<this._compilations.length;i++){var o=this._compilations[i];if(o.schema==e&&o.root==r&&o.baseId==t)return i}return-1}function d(e,t){return"var pattern"+e+" = new RegExp("+r.toQuotedString(t[e])+");"}function v(e){return"var default"+e+" = defaults["+e+"];"}function h(e,r){return void 0===r[e]?"":"var refVal"+e+" = refVal["+e+"];"}function m(e){return"var customRule"+e+" = customRules["+e+"];"}function p(e,r){if(!e.length)return"";for(var t="",i=0;i<e.length;i++)t+=r(i,e);return t}module.exports=l;
},{"./resolve":"w10T","./util":"Q1F7","./error_classes":"OtNE","fast-json-stable-stringify":"Xb3N","../dotjs/validate":"yhC1","fast-deep-equal":"dPQH"}],"fXCy":[function(require,module,exports) {
"use strict";var t=module.exports=function(){this._cache={}};t.prototype.put=function(t,e){this._cache[t]=e},t.prototype.get=function(t){return this._cache[t]},t.prototype.del=function(t){delete this._cache[t]},t.prototype.clear=function(){this._cache={}};
},{}],"dfAH":[function(require,module,exports) {
"use strict";var d=require("./util"),a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,u=[0,31,28,31,30,31,30,31,31,30,31,30,31],F=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,f=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,D=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,t=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,r=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,e=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:
},{"./util":"Q1F7"}],"a2na":[function(require,module,exports) {
"use strict";module.exports=function(r,e,a){var s,t,o=" ",i=r.level,l=r.dataLevel,c=r.schema[e],n=r.errSchemaPath+"/"+e,h=!r.opts.allErrors,v="data"+(l||""),f="valid"+i;if("#"==c||"#/"==c)r.isRoot?(s=r.async,t="validate"):(s=!0===r.root.schema.$async,t="root.refVal[0]");else{var d=r.resolveRef(r.baseId,c,r.isRoot);if(void 0===d){var p=r.MissingRefError.message(r.baseId,c);if("fail"==r.opts.missingRefs){r.logger.error(p),(g=g||[]).push(o),o="",!1!==r.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(n)+" , params: { ref: '"+r.util.escapeQuotes(c)+"' } ",!1!==r.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+r.util.escapeQuotes(c)+"' "),r.opts.verbose&&(o+=" , schema: "+r.util.toQuotedString(c)+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+v+" "),o+=" } "):o+=" {} ";var m=o;o=g.pop(),!r.compositeRule&&h?r.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h&&(o+=" if (false) { ")}else{if("ignore"!=r.opts.missingRefs)throw new r.MissingRefError(r.baseId,c,p);r.logger.warn(p),h&&(o+=" if (true) { ")}}else if(d.inline){var u=r.util.copy(r);u.level++;var E="valid"+u.level;u.schema=d.schema,u.schemaPath="",u.errSchemaPath=c,o+=" "+r.validate(u).replace(/validate\.schema/g,d.code)+" ",h&&(o+=" if ("+E+") { ")}else s=!0===d.$async||r.async&&!1!==d.$async,t=d.code}if(t){var g;(g=g||[]).push(o),o="",r.opts.passContext?o+=" "+t+".call(this, ":o+=" "+t+"( ",o+=" "+v+", (dataPath || '')",'""'!=r.errorPath&&(o+=" + "+r.errorPath);var y=o+=" , "+(l?"data"+(l-1||""):"parentData")+" , "+(l?r.dataPathArr[l]:"parentDataProperty")+", rootData) ";if(o=g.pop(),s){if(!r.async)throw new Error("async schema referenced by sync schema");h&&(o+=" var "+f+"; "),o+=" try { await "+y+"; ",h&&(o+=" "+f+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",h&&(o+=" "+f+" = false; "),o+=" } ",h&&(o+=" if ("+f+") { ")}else o+=" if (!"+y+") { if (vErrors === null) vErrors = "+t+".errors; else vErrors = vErrors.concat("+t+".errors); errors = vErrors.length; } ",h&&(o+=" else { ")}return o};
},{}],"hRgn":[function(require,module,exports) {
"use strict";module.exports=function(e,t,a){var r=" ",s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,i=e.util.copy(e),o="";i.level++;var u="valid"+i.level,m=i.baseId,v=!0,d=s;if(d)for(var f,p=-1,n=d.length-1;p<n;)f=d[p+=1],(e.opts.strictKeywords?"object"==typeof f&&Object.keys(f).length>0||!1===f:e.util.schemaHasRules(f,e.RULES.all))&&(v=!1,i.schema=f,i.schemaPath=l+"["+p+"]",i.errSchemaPath=c+"/"+p,r+=" "+e.validate(i)+" ",i.baseId=m,h&&(r+=" if ("+u+") { ",o+="}"));return h&&(r+=v?" if (true) { ":" "+o.slice(0,-1)+" "),r};
},{}],"lo6J":[function(require,module,exports) {
"use strict";module.exports=function(e,r,a){var s=" ",t=e.level,o=e.dataLevel,l=e.schema[r],i=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,h=!e.opts.allErrors,v="data"+(o||""),m="valid"+t,u="errs__"+t,n=e.util.copy(e),d="";n.level++;var p="valid"+n.level;if(l.every(function(r){return e.opts.strictKeywords?"object"==typeof r&&Object.keys(r).length>0||!1===r:e.util.schemaHasRules(r,e.RULES.all)})){var f=n.baseId;s+=" var "+u+" = errors; var "+m+" = false; ";var E=e.compositeRule;e.compositeRule=n.compositeRule=!0;var y=l;if(y)for(var P,R=-1,g=y.length-1;R<g;)P=y[R+=1],n.schema=P,n.schemaPath=i+"["+R+"]",n.errSchemaPath=c+"/"+R,s+=" "+e.validate(n)+" ",n.baseId=f,s+=" "+m+" = "+m+" || "+p+"; if (!"+m+") { ",d+="}";e.compositeRule=n.compositeRule=E,s+=" "+d+" if (!"+m+") { var err = ",!1!==e.createErrors?(s+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(s+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(s+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+=" } else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",e.opts.allErrors&&(s+=" } ")}else h&&(s+=" if (true) { ");return s};
},{}],"Kkzr":[function(require,module,exports) {
"use strict";module.exports=function(t,o,e){var r=" ",s=t.schema[o],n=t.errSchemaPath+"/"+o,c=(t.opts.allErrors,t.util.toQuotedString(s));return!0===t.opts.$comment?r+=" console.log("+c+");":"function"==typeof t.opts.$comment&&(r+=" self._opts.$comment("+c+", "+t.util.toQuotedString(n)+", validate.root.schema);"),r};
},{}],"U4sD":[function(require,module,exports) {
"use strict";module.exports=function(a,e,r){var t=" ",s=a.level,o=a.dataLevel,l=a.schema[e],h=a.schemaPath+a.util.getProperty(e),c=a.errSchemaPath+"/"+e,d=!a.opts.allErrors,m="data"+(o||""),v="valid"+s,u=a.opts.$data&&l&&l.$data;u&&(t+=" var schema"+s+" = "+a.util.getData(l.$data,o,a.dataPathArr)+"; "),u||(t+=" var schema"+s+" = validate.schema"+h+";"),t+="var "+v+" = equal("+m+", schema"+s+"); if (!"+v+") { ";var i=i||[];i.push(t),t="",!1!==a.createErrors?(t+=" { keyword: 'const' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(c)+" , params: { allowedValue: schema"+s+" } ",!1!==a.opts.messages&&(t+=" , message: 'should be equal to constant' "),a.opts.verbose&&(t+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+m+" "),t+=" } "):t+=" {} ";var n=t;return t=i.pop(),!a.compositeRule&&d?a.async?t+=" throw new ValidationError(["+n+"]); ":t+=" validate.errors = ["+n+"]; return false; ":t+=" var err = "+n+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",d&&(t+=" else { "),t};
},{}],"EypH":[function(require,module,exports) {
"use strict";module.exports=function(e,r,a){var t=" ",s=e.level,l=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),v=e.errSchemaPath+"/"+r,h=!e.opts.allErrors,c="data"+(l||""),u="valid"+s,d="errs__"+s,m=e.util.copy(e);m.level++;var p="valid"+m.level,n="i"+s,P=m.dataLevel=e.dataLevel+1,f="data"+P,E=e.baseId,g=e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all);if(t+="var "+d+" = errors;var "+u+";",g){var R=e.compositeRule;e.compositeRule=m.compositeRule=!0,m.schema=o,m.schemaPath=i,m.errSchemaPath=v,t+=" var "+p+" = false; for (var "+n+" = 0; "+n+" < "+c+".length; "+n+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,n,e.opts.jsonPointers,!0);var y=c+"["+n+"]";m.dataPathArr[P]=n;var b=e.validate(m);m.baseId=E,e.util.varOccurences(b,f)<2?t+=" "+e.util.varReplace(b,f,y)+" ":t+=" var "+f+" = "+y+"; "+b+" ",t+=" if ("+p+") break; } ",e.compositeRule=m.compositeRule=R,t+=" if (!"+p+") {"}else t+=" if ("+c+".length == 0) {";var S=S||[];S.push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: {} ",!1!==e.opts.messages&&(t+=" , message: 'should contain a valid item' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var w=t;return t=S.pop(),!e.compositeRule&&h?e.async?t+=" throw new ValidationError(["+w+"]); ":t+=" validate.errors = ["+w+"]; return false; ":t+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { ",g&&(t+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } "),e.opts.allErrors&&(t+=" } "),t};
},{}],"Cpp7":[function(require,module,exports) {
"use strict";module.exports=function(e,r,t){var a=" ",s=e.level,o=e.dataLevel,p=e.schema[r],i=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,n="data"+(o||""),h="errs__"+s,c=e.util.copy(e),d="";c.level++;var v="valid"+c.level,P={},m={},y=e.opts.ownProperties;for(j in p)if("__proto__"!=j){var g=p[j],f=Array.isArray(g)?m:P;f[j]=g}a+="var "+h+" = errors;";var Q=e.errorPath;for(var j in a+="var missing"+s+";",m)if((f=m[j]).length){if(a+=" if ( "+n+e.util.getProperty(j)+" !== undefined ",y&&(a+=" && Object.prototype.hasOwnProperty.call("+n+", '"+e.util.escapeQuotes(j)+"') "),u){a+=" && ( ";var w=f;if(w)for(var E=-1,b=w.length-1;E<b;){x=w[E+=1],E&&(a+=" || "),a+=" ( ( "+(I=n+(D=e.util.getProperty(x)))+" === undefined ",y&&(a+=" || ! Object.prototype.hasOwnProperty.call("+n+", '"+e.util.escapeQuotes(x)+"') "),a+=") && (missing"+s+" = "+e.util.toQuotedString(e.opts.jsonPointers?x:D)+") ) "}a+=")) { ";var O="missing"+s,S="' + "+O+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(Q,O,!0):Q+" + "+O);var _=_||[];_.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(j)+"', missingProperty: '"+S+"', depsCount: "+f.length+", deps: '"+e.util.escapeQuotes(1==f.length?f[0]:f.join(", "))+"' } ",!1!==e.opts.messages&&(a+=" , message: 'should have ",1==f.length?a+="property "+e.util.escapeQuotes(f[0]):a+="properties "+e.util.escapeQuotes(f.join(", ")),a+=" when property "+e.util.escapeQuotes(j)+" is present' "),e.opts.verbose&&(a+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+n+" "),a+=" } "):a+=" {} ";var k=a;a=_.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+k+"]); ":a+=" validate.errors = ["+k+"]; return false; ":a+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{a+=" ) { ";var R=f;if(R)for(var x,A=-1,C=R.length-1;A<C;){x=R[A+=1];var D=e.util.getProperty(x),I=(S=e.util.escapeQuotes(x),n+D);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(Q,x,e.opts.jsonPointers)),a+=" if ( "+I+" === undefined ",y&&(a+=" || ! Object.prototype.hasOwnProperty.call("+n+", '"+e.util.escapeQuotes(x)+"') "),a+=") { var err = ",!1!==e.createErrors?(a+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(j)+"', missingProperty: '"+S+"', depsCount: "+f.length+", deps: '"+e.util.escapeQuotes(1==f.length?f[0]:f.join(", "))+"' } ",!1!==e.opts.messages&&(a+=" , message: 'should have ",1==f.length?a+="property "+e.util.escapeQuotes(f[0]):a+="properties "+e.util.escapeQuotes(f.join(", ")),a+=" when property "+e.util.escapeQuotes(j)+" is present' "),e.opts.verbose&&(a+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+n+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}a+=" } ",u&&(d+="}",a+=" else { ")}e.errorPath=Q;var L=c.baseId;for(var j in P){g=P[j];(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all))&&(a+=" "+v+" = true; if ( "+n+e.util.getProperty(j)+" !== undefined ",y&&(a+=" && Object.prototype.hasOwnProperty.call("+n+", '"+e.util.escapeQuotes(j)+"') "),a+=") { ",c.schema=g,c.schemaPath=i+e.util.getProperty(j),c.errSchemaPath=l+"/"+e.util.escapeFragment(j),a+=" "+e.validate(c)+" ",c.baseId=L,a+=" } ",u&&(a+=" if ("+v+") { ",d+="}"))}return u&&(a+=" "+d+" if ("+h+" == errors) {"),a};
},{}],"fqDY":[function(require,module,exports) {
"use strict";module.exports=function(a,e,r){var t=" ",s=a.level,l=a.dataLevel,o=a.schema[e],h=a.schemaPath+a.util.getProperty(e),d=a.errSchemaPath+"/"+e,i=!a.opts.allErrors,u="data"+(l||""),m="valid"+s,v=a.opts.$data&&o&&o.$data;v&&(t+=" var schema"+s+" = "+a.util.getData(o.$data,l,a.dataPathArr)+"; ");var c="i"+s,n="schema"+s;v||(t+=" var "+n+" = validate.schema"+h+";"),t+="var "+m+";",v&&(t+=" if (schema"+s+" === undefined) "+m+" = true; else if (!Array.isArray(schema"+s+")) "+m+" = false; else {"),t+=m+" = false;for (var "+c+"=0; "+c+"<"+n+".length; "+c+"++) if (equal("+u+", "+n+"["+c+"])) { "+m+" = true; break; }",v&&(t+=" } "),t+=" if (!"+m+") { ";var p=p||[];p.push(t),t="",!1!==a.createErrors?(t+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(d)+" , params: { allowedValues: schema"+s+" } ",!1!==a.opts.messages&&(t+=" , message: 'should be equal to one of the allowed values' "),a.opts.verbose&&(t+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+u+" "),t+=" } "):t+=" {} ";var f=t;return t=p.pop(),!a.compositeRule&&i?a.async?t+=" throw new ValidationError(["+f+"]); ":t+=" validate.errors = ["+f+"]; return false; ":t+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",i&&(t+=" else { "),t};
},{}],"avoW":[function(require,module,exports) {
"use strict";module.exports=function(a,t,r){var e=" ",o=a.level,s=a.dataLevel,i=a.schema[t],n=a.schemaPath+a.util.getProperty(t),f=a.errSchemaPath+"/"+t,c=!a.opts.allErrors,u="data"+(s||"");if(!1===a.opts.format)return c&&(e+=" if (true) { "),e;var m,h=a.opts.$data&&i&&i.$data;h?(e+=" var schema"+o+" = "+a.util.getData(i.$data,s,a.dataPathArr)+"; ",m="schema"+o):m=i;var l=a.opts.unknownFormats,d=Array.isArray(l);if(h){e+=" var "+(p="format"+o)+" = formats["+m+"]; var "+(v="isObject"+o)+" = typeof "+p+" == 'object' && !("+p+" instanceof RegExp) && "+p+".validate; var "+(y="formatType"+o)+" = "+v+" && "+p+".type || 'string'; if ("+v+") { ",a.async&&(e+=" var async"+o+" = "+p+".async; "),e+=" "+p+" = "+p+".validate; } if ( ",h&&(e+=" ("+m+" !== undefined && typeof "+m+" != 'string') || "),e+=" (","ignore"!=l&&(e+=" ("+m+" && !"+p+" ",d&&(e+=" && self._opts.unknownFormats.indexOf("+m+") == -1 "),e+=") || "),e+=" ("+p+" && "+y+" == '"+r+"' && !(typeof "+p+" == 'function' ? ",a.async?e+=" (async"+o+" ? await "+p+"("+u+") : "+p+"("+u+")) ":e+=" "+p+"("+u+") ",e+=" : "+p+".test("+u+"))))) {"}else{var p;if(!(p=a.formats[i])){if("ignore"==l)return a.logger.warn('unknown format "'+i+'" ignored in schema at path "'+a.errSchemaPath+'"'),c&&(e+=" if (true) { "),e;if(d&&l.indexOf(i)>=0)return c&&(e+=" if (true) { "),e;throw new Error('unknown format "'+i+'" is used in schema at path "'+a.errSchemaPath+'"')}var v,y=(v="object"==typeof p&&!(p instanceof RegExp)&&p.validate)&&p.type||"string";if(v){var g=!0===p.async;p=p.validate}if(y!=r)return c&&(e+=" if (true) { "),e;if(g){if(!a.async)throw new Error("async format in sync schema");e+=" if (!(await "+(w="formats"+a.util.getProperty(i)+".validate")+"("+u+"))) { "}else{e+=" if (! ";var w="formats"+a.util.getProperty(i);v&&(w+=".validate"),e+="function"==typeof p?" "+w+"("+u+") ":" "+w+".test("+u+") ",e+=") { "}}var P=P||[];P.push(e),e="",!1!==a.createErrors?(e+=" { keyword: 'format' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(f)+" , params: { format: ",e+=h?""+m:""+a.util.toQuotedString(i),e+=" } ",!1!==a.opts.messages&&(e+=" , message: 'should match format \"",e+=h?"' + "+m+" + '":""+a.util.escapeQuotes(i),e+="\"' "),a.opts.verbose&&(e+=" , schema: ",e+=h?"validate.schema"+n:""+a.util.toQuotedString(i),e+=" , parentSchema: validate.schema"+a.schemaPath+" , data: "+u+" "),e+=" } "):e+=" {} ";var E=e;return e=P.pop(),!a.compositeRule&&c?a.async?e+=" throw new ValidationError(["+E+"]); ":e+=" validate.errors = ["+E+"]; return false; ":e+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",e+=" } ",c&&(e+=" else { "),e};
},{}],"JHQ3":[function(require,module,exports) {
"use strict";module.exports=function(e,r,a){var s=" ",t=e.level,l=e.dataLevel,h=e.schema[r],o=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,i=!e.opts.allErrors,m="data"+(l||""),v="valid"+t,u="errs__"+t,d=e.util.copy(e);d.level++;var n="valid"+d.level,p=e.schema.then,P=e.schema.else,f=void 0!==p&&(e.opts.strictKeywords?"object"==typeof p&&Object.keys(p).length>0||!1===p:e.util.schemaHasRules(p,e.RULES.all)),E=void 0!==P&&(e.opts.strictKeywords?"object"==typeof P&&Object.keys(P).length>0||!1===P:e.util.schemaHasRules(P,e.RULES.all)),y=d.baseId;if(f||E){var R;d.createErrors=!1,d.schema=h,d.schemaPath=o,d.errSchemaPath=c,s+=" var "+u+" = errors; var "+v+" = true; ";var S=e.compositeRule;e.compositeRule=d.compositeRule=!0,s+=" "+e.validate(d)+" ",d.baseId=y,d.createErrors=!0,s+=" errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",e.compositeRule=d.compositeRule=S,f?(s+=" if ("+n+") { ",d.schema=e.schema.then,d.schemaPath=e.schemaPath+".then",d.errSchemaPath=e.errSchemaPath+"/then",s+=" "+e.validate(d)+" ",d.baseId=y,s+=" "+v+" = "+n+"; ",f&&E?s+=" var "+(R="ifClause"+t)+" = 'then'; ":R="'then'",s+=" } ",E&&(s+=" else { ")):s+=" if (!"+n+") { ",E&&(d.schema=e.schema.else,d.schemaPath=e.schemaPath+".else",d.errSchemaPath=e.errSchemaPath+"/else",s+=" "+e.validate(d)+" ",d.baseId=y,s+=" "+v+" = "+n+"; ",f&&E?s+=" var "+(R="ifClause"+t)+" = 'else'; ":R="'else'",s+=" } "),s+=" if (!"+v+") { var err = ",!1!==e.createErrors?(s+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+R+" } ",!1!==e.opts.messages&&(s+=" , message: 'should match \"' + "+R+" + '\" schema' "),e.opts.verbose&&(s+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&i&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+=" } ",i&&(s+=" else { ")}else i&&(s+=" if (true) { ");return s};
},{}],"aiPb":[function(require,module,exports) {
"use strict";module.exports=function(e,a,r){var t=" ",s=e.level,l=e.dataLevel,h=e.schema[a],o=e.schemaPath+e.util.getProperty(a),i=e.errSchemaPath+"/"+a,c=!e.opts.allErrors,v="data"+(l||""),d="valid"+s,n="errs__"+s,m=e.util.copy(e),u="";m.level++;var P="valid"+m.level,p="i"+s,f=m.dataLevel=e.dataLevel+1,g="data"+f,y=e.baseId;if(t+="var "+n+" = errors;var "+d+";",Array.isArray(h)){var b=e.schema.additionalItems;if(!1===b){t+=" "+d+" = "+v+".length <= "+h.length+"; ";var E=i;i=e.errSchemaPath+"/additionalItems",t+=" if (!"+d+") { ";var S=S||[];S.push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(i)+" , params: { limit: "+h.length+" } ",!1!==e.opts.messages&&(t+=" , message: 'should NOT have more than "+h.length+" items' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "),t+=" } "):t+=" {} ";var j=t;t=S.pop(),!e.compositeRule&&c?e.async?t+=" throw new ValidationError(["+j+"]); ":t+=" validate.errors = ["+j+"]; return false; ":t+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",i=E,c&&(u+="}",t+=" else { ")}var R=h;if(R)for(var I,O=-1,k=R.length-1;O<k;)if(I=R[O+=1],e.opts.strictKeywords?"object"==typeof I&&Object.keys(I).length>0||!1===I:e.util.schemaHasRules(I,e.RULES.all)){t+=" "+P+" = true; if ("+v+".length > "+O+") { ";var w=v+"["+O+"]";m.schema=I,m.schemaPath=o+"["+O+"]",m.errSchemaPath=i+"/"+O,m.errorPath=e.util.getPathExpr(e.errorPath,O,e.opts.jsonPointers,!0),m.dataPathArr[f]=O;var L=e.validate(m);m.baseId=y,e.util.varOccurences(L,g)<2?t+=" "+e.util.varReplace(L,g,w)+" ":t+=" var "+g+" = "+w+"; "+L+" ",t+=" } ",c&&(t+=" if ("+P+") { ",u+="}")}if("object"==typeof b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))){m.schema=b,m.schemaPath=e.schemaPath+".additionalItems",m.errSchemaPath=e.errSchemaPath+"/additionalItems",t+=" "+P+" = true; if ("+v+".length > "+h.length+") { for (var "+p+" = "+h.length+"; "+p+" < "+v+".length; "+p+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,p,e.opts.jsonPointers,!0);w=v+"["+p+"]";m.dataPathArr[f]=p;L=e.validate(m);m.baseId=y,e.util.varOccurences(L,g)<2?t+=" "+e.util.varReplace(L,g,w)+" ":t+=" var "+g+" = "+w+"; "+L+" ",c&&(t+=" if (!"+P+") break; "),t+=" } } ",c&&(t+=" if ("+P+") { ",u+="}")}}else if(e.opts.strictKeywords?"object"==typeof h&&Object.keys(h).length>0||!1===h:e.util.schemaHasRules(h,e.RULES.all)){m.schema=h,m.schemaPath=o,m.errSchemaPath=i,t+=" for (var "+p+" = 0; "+p+" < "+v+".length; "+p+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,p,e.opts.jsonPointers,!0);w=v+"["+p+"]";m.dataPathArr[f]=p;L=e.validate(m);m.baseId=y,e.util.varOccurences(L,g)<2?t+=" "+e.util.varReplace(L,g,w)+" ":t+=" var "+g+" = "+w+"; "+L+" ",c&&(t+=" if (!"+P+") break; "),t+=" }"}return c&&(t+=" "+u+" if ("+n+" == errors) {"),t};
},{}],"UJAl":[function(require,module,exports) {
"use strict";module.exports=function(e,r,a){var t,s=" ",o=e.level,i=e.dataLevel,m=e.schema[r],h=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,d="data"+(i||""),n=e.opts.$data&&m&&m.$data;n?(s+=" var schema"+o+" = "+e.util.getData(m.$data,i,e.dataPathArr)+"; ",t="schema"+o):t=m;var c="maximum"==r,v=c?"exclusiveMaximum":"exclusiveMinimum",p=e.schema[v],f=e.opts.$data&&p&&p.$data,b=c?"<":">",P=c?">":"<",E=void 0;if(!n&&"number"!=typeof m&&void 0!==m)throw new Error(r+" must be number");if(!f&&void 0!==p&&"number"!=typeof p&&"boolean"!=typeof p)throw new Error(v+" must be number or boolean");if(f){var y=e.util.getData(p.$data,i,e.dataPathArr),x="exclusive"+o,w="exclType"+o,g="exclIsNumber"+o,S="' + "+(k="op"+o)+" + '";s+=" var schemaExcl"+o+" = "+y+"; ",s+=" var "+x+"; var "+w+" = typeof "+(y="schemaExcl"+o)+"; if ("+w+" != 'boolean' && "+w+" != 'undefined' && "+w+" != 'number') { ";var $;E=v;($=$||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(E||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(s+=" , message: '"+v+" should be boolean' "),e.opts.verbose&&(s+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var M=s;s=$.pop(),!e.compositeRule&&l?e.async?s+=" throw new ValidationError(["+M+"]); ":s+=" validate.errors = ["+M+"]; return false; ":s+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else if ( ",n&&(s+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),s+=" "+w+" == 'number' ? ( ("+x+" = "+t+" === undefined || "+y+" "+b+"= "+t+") ? "+d+" "+P+"= "+y+" : "+d+" "+P+" "+t+" ) : ( ("+x+" = "+y+" === true) ? "+d+" "+P+"= "+t+" : "+d+" "+P+" "+t+" ) || "+d+" !== "+d+") { var op"+o+" = "+x+" ? '"+b+"' : '"+b+"='; ",void 0===m&&(E=v,u=e.errSchemaPath+"/"+v,t=y,n=f)}else{S=b;if((g="number"==typeof p)&&n){var k="'"+S+"'";s+=" if ( ",n&&(s+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),s+=" ( "+t+" === undefined || "+p+" "+b+"= "+t+" ? "+d+" "+P+"= "+p+" : "+d+" "+P+" "+t+" ) || "+d+" !== "+d+") { "}else{g&&void 0===m?(x=!0,E=v,u=e.errSchemaPath+"/"+v,t=p,P+="="):(g&&(t=Math[c?"min":"max"](p,m)),p===(!g||t)?(x=!0,E=v,u=e.errSchemaPath+"/"+v,P+="="):(x=!1,S+="="));k="'"+S+"'";s+=" if ( ",n&&(s+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),s+=" "+d+" "+P+" "+t+" || "+d+" !== "+d+") { "}}E=E||r,($=$||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(E||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+k+", limit: "+t+", exclusive: "+x+" } ",!1!==e.opts.messages&&(s+=" , message: 'should be "+S+" ",s+=n?"' + "+t:t+"'"),e.opts.verbose&&(s+=" , schema: ",s+=n?"validate.schema"+h:""+m,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";M=s;return s=$.pop(),!e.compositeRule&&l?e.async?s+=" throw new ValidationError(["+M+"]); ":s+=" validate.errors = ["+M+"]; return false; ":s+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",l&&(s+=" else { "),s};
},{}],"W8ih":[function(require,module,exports) {
"use strict";module.exports=function(e,r,a){var t,s=" ",o=e.level,m=e.dataLevel,h=e.schema[r],l=e.schemaPath+e.util.getProperty(r),i=e.errSchemaPath+"/"+r,d=!e.opts.allErrors,u="data"+(m||""),n=e.opts.$data&&h&&h.$data;if(n?(s+=" var schema"+o+" = "+e.util.getData(h.$data,m,e.dataPathArr)+"; ",t="schema"+o):t=h,!n&&"number"!=typeof h)throw new Error(r+" must be number");s+="if ( ",n&&(s+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),s+=" "+u+".length "+("maxItems"==r?">":"<")+" "+t+") { ";var c=r,p=p||[];p.push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(c||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(i)+" , params: { limit: "+t+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have ",s+="maxItems"==r?"more":"fewer",s+=" than ",s+=n?"' + "+t+" + '":""+h,s+=" items' "),e.opts.verbose&&(s+=" , schema: ",s+=n?"validate.schema"+l:""+h,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),s+=" } "):s+=" {} ";var v=s;return s=p.pop(),!e.compositeRule&&d?e.async?s+=" throw new ValidationError(["+v+"]); ":s+=" validate.errors = ["+v+"]; return false; ":s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",d&&(s+=" else { "),s};
},{}],"fZGX":[function(require,module,exports) {
"use strict";module.exports=function(e,r,a){var t,s=" ",o=e.level,h=e.dataLevel,l=e.schema[r],m=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,i=!e.opts.allErrors,u="data"+(h||""),c=e.opts.$data&&l&&l.$data;if(c?(s+=" var schema"+o+" = "+e.util.getData(l.$data,h,e.dataPathArr)+"; ",t="schema"+o):t=l,!c&&"number"!=typeof l)throw new Error(r+" must be number");var d="maxLength"==r?">":"<";s+="if ( ",c&&(s+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),!1===e.opts.unicode?s+=" "+u+".length ":s+=" ucs2length("+u+") ",s+=" "+d+" "+t+") { ";var p=r,v=v||[];v.push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(p||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { limit: "+t+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT be ",s+="maxLength"==r?"longer":"shorter",s+=" than ",s+=c?"' + "+t+" + '":""+l,s+=" characters' "),e.opts.verbose&&(s+=" , schema: ",s+=c?"validate.schema"+m:""+l,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),s+=" } "):s+=" {} ";var g=s;return s=v.pop(),!e.compositeRule&&i?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",i&&(s+=" else { "),s};
},{}],"JAEr":[function(require,module,exports) {
"use strict";module.exports=function(e,r,a){var t,s=" ",o=e.level,h=e.dataLevel,m=e.schema[r],i=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,d="data"+(h||""),u=e.opts.$data&&m&&m.$data;if(u?(s+=" var schema"+o+" = "+e.util.getData(m.$data,h,e.dataPathArr)+"; ",t="schema"+o):t=m,!u&&"number"!=typeof m)throw new Error(r+" must be number");s+="if ( ",u&&(s+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),s+=" Object.keys("+d+").length "+("maxProperties"==r?">":"<")+" "+t+") { ";var n=r,c=c||[];c.push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(n||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+t+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have ",s+="maxProperties"==r?"more":"fewer",s+=" than ",s+=u?"' + "+t+" + '":""+m,s+=" properties' "),e.opts.verbose&&(s+=" , schema: ",s+=u?"validate.schema"+i:""+m,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var v=s;return s=c.pop(),!e.compositeRule&&p?e.async?s+=" throw new ValidationError(["+v+"]); ":s+=" validate.errors = ["+v+"]; return false; ":s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",p&&(s+=" else { "),s};
},{}],"oNPH":[function(require,module,exports) {
"use strict";module.exports=function(e,r,a){var t,s=" ",i=e.level,o=e.dataLevel,l=e.schema[r],d=e.schemaPath+e.util.getProperty(r),h=e.errSchemaPath+"/"+r,n=!e.opts.allErrors,m="data"+(o||""),u=e.opts.$data&&l&&l.$data;if(u?(s+=" var schema"+i+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ",t="schema"+i):t=l,!u&&"number"!=typeof l)throw new Error(r+" must be number");s+="var division"+i+";if (",u&&(s+=" "+t+" !== undefined && ( typeof "+t+" != 'number' || "),s+=" (division"+i+" = "+m+" / "+t+", ",e.opts.multipleOfPrecision?s+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":s+=" division"+i+" !== parseInt(division"+i+") ",s+=" ) ",u&&(s+=" ) "),s+=" ) { ";var p=p||[];p.push(s),s="",!1!==e.createErrors?(s+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { multipleOf: "+t+" } ",!1!==e.opts.messages&&(s+=" , message: 'should be multiple of ",s+=u?"' + "+t:t+"'"),e.opts.verbose&&(s+=" , schema: ",s+=u?"validate.schema"+d:""+l,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),s+=" } "):s+=" {} ";var v=s;return s=p.pop(),!e.compositeRule&&n?e.async?s+=" throw new ValidationError(["+v+"]); ":s+=" validate.errors = ["+v+"]; return false; ":s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",n&&(s+=" else { "),s};
},{}],"mmjm":[function(require,module,exports) {
"use strict";module.exports=function(r,e,a){var s=" ",t=r.level,o=r.dataLevel,l=r.schema[e],h=r.schemaPath+r.util.getProperty(e),c=r.errSchemaPath+"/"+e,i=!r.opts.allErrors,m="data"+(o||""),v="errs__"+t,p=r.util.copy(r);p.level++;var u="valid"+p.level;if(r.opts.strictKeywords?"object"==typeof l&&Object.keys(l).length>0||!1===l:r.util.schemaHasRules(l,r.RULES.all)){p.schema=l,p.schemaPath=h,p.errSchemaPath=c,s+=" var "+v+" = errors; ";var d,E=r.compositeRule;r.compositeRule=p.compositeRule=!0,p.createErrors=!1,p.opts.allErrors&&(d=p.opts.allErrors,p.opts.allErrors=!1),s+=" "+r.validate(p)+" ",p.createErrors=!0,d&&(p.opts.allErrors=d),r.compositeRule=p.compositeRule=E,s+=" if ("+u+") { ";var n=n||[];n.push(s),s="",!1!==r.createErrors?(s+=" { keyword: 'not' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(c)+" , params: {} ",!1!==r.opts.messages&&(s+=" , message: 'should NOT be valid' "),r.opts.verbose&&(s+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+m+" "),s+=" } "):s+=" {} ";var P=s;s=n.pop(),!r.compositeRule&&i?r.async?s+=" throw new ValidationError(["+P+"]); ":s+=" validate.errors = ["+P+"]; return false; ":s+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { errors = "+v+"; if (vErrors !== null) { if ("+v+") vErrors.length = "+v+"; else vErrors = null; } ",r.opts.allErrors&&(s+=" } ")}else s+=" var err = ",!1!==r.createErrors?(s+=" { keyword: 'not' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(c)+" , params: {} ",!1!==r.opts.messages&&(s+=" , message: 'should NOT be valid' "),r.opts.verbose&&(s+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+m+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i&&(s+=" if (false) { ");return s};
},{}],"SSWF":[function(require,module,exports) {
"use strict";module.exports=function(e,r,a){var s=" ",t=e.level,l=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,h=!e.opts.allErrors,v="data"+(l||""),m="valid"+t,u="errs__"+t,n=e.util.copy(e),p="";n.level++;var d="valid"+n.level,f=n.baseId,E="prevValid"+t,P="passingSchemas"+t;s+="var "+u+" = errors , "+E+" = false , "+m+" = false , "+P+" = null; ";var g=e.compositeRule;e.compositeRule=n.compositeRule=!0;var y=o;if(y)for(var R,S=-1,b=y.length-1;S<b;)R=y[S+=1],(e.opts.strictKeywords?"object"==typeof R&&Object.keys(R).length>0||!1===R:e.util.schemaHasRules(R,e.RULES.all))?(n.schema=R,n.schemaPath=i+"["+S+"]",n.errSchemaPath=c+"/"+S,s+=" "+e.validate(n)+" ",n.baseId=f):s+=" var "+d+" = true; ",S&&(s+=" if ("+d+" && "+E+") { "+m+" = false; "+P+" = ["+P+", "+S+"]; } else { ",p+="}"),s+=" if ("+d+") { "+m+" = "+E+" = true; "+P+" = "+S+"; }";return e.compositeRule=n.compositeRule=g,s+=p+"if (!"+m+") { var err = ",!1!==e.createErrors?(s+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+P+" } ",!1!==e.opts.messages&&(s+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(s+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+="} else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; }",e.opts.allErrors&&(s+=" } "),s};
},{}],"mGZS":[function(require,module,exports) {
"use strict";module.exports=function(e,t,a){var r,s=" ",o=e.level,h=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),d=e.errSchemaPath+"/"+t,i=!e.opts.allErrors,n="data"+(h||""),p=e.opts.$data&&l&&l.$data;p?(s+=" var schema"+o+" = "+e.util.getData(l.$data,h,e.dataPathArr)+"; ",r="schema"+o):r=l,s+="if ( ",p&&(s+=" ("+r+" !== undefined && typeof "+r+" != 'string') || "),s+=" !"+(p?"(new RegExp("+r+"))":e.usePattern(l))+".test("+n+") ) { ";var c=c||[];c.push(s),s="",!1!==e.createErrors?(s+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { pattern: ",s+=p?""+r:""+e.util.toQuotedString(l),s+=" } ",!1!==e.opts.messages&&(s+=" , message: 'should match pattern \"",s+=p?"' + "+r+" + '":""+e.util.escapeQuotes(l),s+="\"' "),e.opts.verbose&&(s+=" , schema: ",s+=p?"validate.schema"+u:""+e.util.toQuotedString(l),s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+n+" "),s+=" } "):s+=" {} ";var m=s;return s=c.pop(),!e.compositeRule&&i?e.async?s+=" throw new ValidationError(["+m+"]); ":s+=" validate.errors = ["+m+"]; return false; ":s+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",i&&(s+=" else { "),s};
},{}],"jFnx":[function(require,module,exports) {
"use strict";module.exports=function(e,r,t){var a=" ",o=e.level,s=e.dataLevel,i=e.schema[r],l=e.schemaPath+e.util.getProperty(r),h=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,d="data"+(s||""),n="errs__"+o,c=e.util.copy(e),P="";c.level++;var u="valid"+c.level,v="key"+o,f="idx"+o,m=c.dataLevel=e.dataLevel+1,g="data"+m,y="dataProperties"+o,b=Object.keys(i||{}).filter(x),j=e.schema.patternProperties||{},O=Object.keys(j).filter(x),S=e.schema.additionalProperties,E=b.length||O.length,R=!1===S,k="object"==typeof S&&Object.keys(S).length,w=e.opts.removeAdditional,_=R||k||w,Q=e.opts.ownProperties,A=e.baseId,D=e.schema.required;if(D&&(!e.opts.$data||!D.$data)&&D.length<e.opts.loopRequired)var q=e.util.toHash(D);function x(e){return"__proto__"!==e}if(a+="var "+n+" = errors;var "+u+" = true;",Q&&(a+=" var "+y+" = undefined;"),_){if(a+=Q?" "+y+" = "+y+" || Object.keys("+d+"); for (var "+f+"=0; "+f+"<"+y+".length; "+f+"++) { var "+v+" = "+y+"["+f+"]; ":" for (var "+v+" in "+d+") { ",E){if(a+=" var isAdditional"+o+" = !(false ",b.length)if(b.length>8)a+=" || validate.schema"+l+".hasOwnProperty("+v+") ";else{var I=b;if(I)for(var L=-1,H=I.length-1;L<H;)M=I[L+=1],a+=" || "+v+" == "+e.util.toQuotedString(M)+" "}if(O.length){var F=O;if(F)for(var K=-1,U=F.length-1;K<U;)se=F[K+=1],a+=" || "+e.usePattern(se)+".test("+v+") "}a+=" ); if (isAdditional"+o+") { "}if("all"==w)a+=" delete "+d+"["+v+"]; ";else{var V=e.errorPath,$="' + "+v+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers)),R)if(w)a+=" delete "+d+"["+v+"]; ";else{a+=" "+u+" = false; ";var N=h;h=e.errSchemaPath+"/additionalProperties",(te=te||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { additionalProperty: '"+$+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is an invalid additional property":a+="should NOT have additional properties",a+="' "),e.opts.verbose&&(a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var T=a;a=te.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+T+"]); ":a+=" validate.errors = ["+T+"]; return false; ":a+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h=N,p&&(a+=" break; ")}else if(k)if("failing"==w){a+=" var "+n+" = errors; ";var z=e.compositeRule;e.compositeRule=c.compositeRule=!0,c.schema=S,c.schemaPath=e.schemaPath+".additionalProperties",c.errSchemaPath=e.errSchemaPath+"/additionalProperties",c.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers);var B=d+"["+v+"]";c.dataPathArr[m]=v;var C=e.validate(c);c.baseId=A,e.util.varOccurences(C,g)<2?a+=" "+e.util.varReplace(C,g,B)+" ":a+=" var "+g+" = "+B+"; "+C+" ",a+=" if (!"+u+") { errors = "+n+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+d+"["+v+"]; } ",e.compositeRule=c.compositeRule=z}else{c.schema=S,c.schemaPath=e.schemaPath+".additionalProperties",c.errSchemaPath=e.errSchemaPath+"/additionalProperties",c.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers);B=d+"["+v+"]";c.dataPathArr[m]=v;C=e.validate(c);c.baseId=A,e.util.varOccurences(C,g)<2?a+=" "+e.util.varReplace(C,g,B)+" ":a+=" var "+g+" = "+B+"; "+C+" ",p&&(a+=" if (!"+u+") break; ")}e.errorPath=V}E&&(a+=" } "),a+=" } ",p&&(a+=" if ("+u+") { ",P+="}")}var G=e.opts.useDefaults&&!e.compositeRule;if(b.length){var J=b;if(J)for(var M,W=-1,X=J.length-1;W<X;){var Y=i[M=J[W+=1]];if(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){var Z=e.util.getProperty(M),ee=(B=d+Z,G&&void 0!==Y.default);c.schema=Y,c.schemaPath=l+Z,c.errSchemaPath=h+"/"+e.util.escapeFragment(M),c.errorPath=e.util.getPath(e.errorPath,M,e.opts.jsonPointers),c.dataPathArr[m]=e.util.toQuotedString(M);C=e.validate
},{}],"XxjR":[function(require,module,exports) {
"use strict";module.exports=function(r,e,a){var t=" ",s=r.level,o=r.dataLevel,l=r.schema[e],i=r.schemaPath+r.util.getProperty(e),v=r.errSchemaPath+"/"+e,c=!r.opts.allErrors,p="data"+(o||""),m="errs__"+s,h=r.util.copy(r);h.level++;var d="valid"+h.level;if(t+="var "+m+" = errors;",r.opts.strictKeywords?"object"==typeof l&&Object.keys(l).length>0||!1===l:r.util.schemaHasRules(l,r.RULES.all)){h.schema=l,h.schemaPath=i,h.errSchemaPath=v;var u="key"+s,n="idx"+s,y="i"+s,E="' + "+u+" + '",P="data"+(h.dataLevel=r.dataLevel+1),f="dataProperties"+s,R=r.opts.ownProperties,b=r.baseId;R&&(t+=" var "+f+" = undefined; "),t+=R?" "+f+" = "+f+" || Object.keys("+p+"); for (var "+n+"=0; "+n+"<"+f+".length; "+n+"++) { var "+u+" = "+f+"["+n+"]; ":" for (var "+u+" in "+p+") { ",t+=" var startErrs"+s+" = errors; ";var g=u,k=r.compositeRule;r.compositeRule=h.compositeRule=!0;var w=r.validate(h);h.baseId=b,r.util.varOccurences(w,P)<2?t+=" "+r.util.varReplace(w,P,g)+" ":t+=" var "+P+" = "+g+"; "+w+" ",r.compositeRule=h.compositeRule=k,t+=" if (!"+d+") { for (var "+y+"=startErrs"+s+"; "+y+"<errors; "+y+"++) { vErrors["+y+"].propertyName = "+u+"; } var err = ",!1!==r.createErrors?(t+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(v)+" , params: { propertyName: '"+E+"' } ",!1!==r.opts.messages&&(t+=" , message: 'property name \\'"+E+"\\' is invalid' "),r.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+p+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&c&&(r.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),c&&(t+=" break; "),t+=" } }"}return c&&(t+=" if ("+m+" == errors) {"),t};
},{}],"Dht1":[function(require,module,exports) {
"use strict";module.exports=function(r,e,a){var t=" ",s=r.level,o=r.dataLevel,i=r.schema[e],h=r.schemaPath+r.util.getProperty(e),p=r.errSchemaPath+"/"+e,l=!r.opts.allErrors,d="data"+(o||""),u="valid"+s,P=r.opts.$data&&i&&i.$data;P&&(t+=" var schema"+s+" = "+r.util.getData(i.$data,o,r.dataPathArr)+"; ");var n="schema"+s;if(!P)if(i.length<r.opts.loopRequired&&r.schema.properties&&Object.keys(r.schema.properties).length){var c=[],m=i;if(m)for(var v,y=-1,g=m.length-1;y<g;){v=m[y+=1];var f=r.schema.properties[v];f&&(r.opts.strictKeywords?"object"==typeof f&&Object.keys(f).length>0||!1===f:r.util.schemaHasRules(f,r.RULES.all))||(c[c.length]=v)}}else c=i;if(P||c.length){var E=r.errorPath,q=P||c.length>=r.opts.loopRequired,w=r.opts.ownProperties;if(l)if(t+=" var missing"+s+"; ",q){P||(t+=" var "+n+" = validate.schema"+h+"; ");var b="' + "+(_="schema"+s+"["+(D="i"+s)+"]")+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(E,_,r.opts.jsonPointers)),t+=" var "+u+" = true; ",P&&(t+=" if (schema"+s+" === undefined) "+u+" = true; else if (!Array.isArray(schema"+s+")) "+u+" = false; else {"),t+=" for (var "+D+" = 0; "+D+" < "+n+".length; "+D+"++) { "+u+" = "+d+"["+n+"["+D+"]] !== undefined ",w&&(t+=" && Object.prototype.hasOwnProperty.call("+d+", "+n+"["+D+"]) "),t+="; if (!"+u+") break; } ",P&&(t+=" } "),t+=" if (!"+u+") { ",(Q=Q||[]).push(t),t="",!1!==r.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+b+"' } ",!1!==r.opts.messages&&(t+=" , message: '",r.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+b+"\\'",t+="' "),r.opts.verbose&&(t+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var S=t;t=Q.pop(),!r.compositeRule&&l?r.async?t+=" throw new ValidationError(["+S+"]); ":t+=" validate.errors = ["+S+"]; return false; ":t+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else{t+=" if ( ";var j=c;if(j)for(var D=-1,O=j.length-1;D<O;){R=j[D+=1],D&&(t+=" || "),t+=" ( ( "+(L=d+($=r.util.getProperty(R)))+" === undefined ",w&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+r.util.escapeQuotes(R)+"') "),t+=") && (missing"+s+" = "+r.util.toQuotedString(r.opts.jsonPointers?R:$)+") ) "}t+=") { ";var Q;b="' + "+(_="missing"+s)+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.opts.jsonPointers?r.util.getPathExpr(E,_,!0):E+" + "+_),(Q=Q||[]).push(t),t="",!1!==r.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+b+"' } ",!1!==r.opts.messages&&(t+=" , message: '",r.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+b+"\\'",t+="' "),r.opts.verbose&&(t+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";S=t;t=Q.pop(),!r.compositeRule&&l?r.async?t+=" throw new ValidationError(["+S+"]); ":t+=" validate.errors = ["+S+"]; return false; ":t+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else if(q){P||(t+=" var "+n+" = validate.schema"+h+"; ");var _;b="' + "+(_="schema"+s+"["+(D="i"+s)+"]")+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(E,_,r.opts.jsonPointers)),P&&(t+=" if ("+n+" && !Array.isArray("+n+")) { var err = ",!1!==r.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+b+"' } ",!1!==r.opts.messages&&(t+=" , message: '",r.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+b+"\\'",t+="' "),r.opts.verbose&&(t+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors =
},{}],"mmFQ":[function(require,module,exports) {
"use strict";module.exports=function(e,a,r){var t,i=" ",s=e.level,o=e.dataLevel,m=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,d="data"+(o||""),h="valid"+s,n=e.opts.$data&&m&&m.$data;if(n?(i+=" var schema"+s+" = "+e.util.getData(m.$data,o,e.dataPathArr)+"; ",t="schema"+s):t=m,(m||n)&&!1!==e.opts.uniqueItems){n&&(i+=" var "+h+"; if ("+t+" === false || "+t+" === undefined) "+h+" = true; else if (typeof "+t+" != 'boolean') "+h+" = false; else { "),i+=" var i = "+d+".length , "+h+" = true , j; if (i > 1) { ";var f=e.schema.items&&e.schema.items.type,v=Array.isArray(f);if(!f||"object"==f||"array"==f||v&&(f.indexOf("object")>=0||f.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+h+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var p="checkDataType"+(v?"s":"");i+=" if ("+e.util[p](f,"item",e.opts.strictNumbers,!0)+") continue; ",v&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",n&&(i+=" } "),i+=" if (!"+h+") { ";var y=y||[];y.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",i+=n?"validate.schema"+l:""+m,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var j=i;i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+j+"]); ":i+=" validate.errors = ["+j+"]; return false; ":i+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { ")}else u&&(i+=" if (true) { ");return i};
},{}],"Czyc":[function(require,module,exports) {
"use strict";module.exports={$ref:require("./ref"),allOf:require("./allOf"),anyOf:require("./anyOf"),$comment:require("./comment"),const:require("./const"),contains:require("./contains"),dependencies:require("./dependencies"),enum:require("./enum"),format:require("./format"),if:require("./if"),items:require("./items"),maximum:require("./_limit"),minimum:require("./_limit"),maxItems:require("./_limitItems"),minItems:require("./_limitItems"),maxLength:require("./_limitLength"),minLength:require("./_limitLength"),maxProperties:require("./_limitProperties"),minProperties:require("./_limitProperties"),multipleOf:require("./multipleOf"),not:require("./not"),oneOf:require("./oneOf"),pattern:require("./pattern"),properties:require("./properties"),propertyNames:require("./propertyNames"),required:require("./required"),uniqueItems:require("./uniqueItems"),validate:require("./validate")};
},{"./ref":"a2na","./allOf":"hRgn","./anyOf":"lo6J","./comment":"Kkzr","./const":"U4sD","./contains":"EypH","./dependencies":"Cpp7","./enum":"fqDY","./format":"avoW","./if":"JHQ3","./items":"aiPb","./_limit":"UJAl","./_limitItems":"W8ih","./_limitLength":"fZGX","./_limitProperties":"JAEr","./multipleOf":"oNPH","./not":"mmjm","./oneOf":"SSWF","./pattern":"mGZS","./properties":"jFnx","./propertyNames":"XxjR","./required":"Dht1","./uniqueItems":"mmFQ","./validate":"yhC1"}],"vBP0":[function(require,module,exports) {
"use strict";var e=require("../dotjs"),t=require("./util").toHash;module.exports=function(){var n=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"];return n.all=t(r),n.types=t(["number","integer","string","array","object","boolean","null"]),n.forEach(function(t){t.rules=t.rules.map(function(t){var i;if("object"==typeof t){var o=Object.keys(t)[0];i=t[o],t=o,i.forEach(function(e){r.push(e),n.all[e]=!0})}return r.push(t),n.all[t]={keyword:t,code:e[t],implements:i}}),n.all.$comment={keyword:"$comment",code:e.$comment},t.type&&(n.types[t.type]=t)}),n.keywords=t(r.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),n.custom={},n};
},{"../dotjs":"Czyc","./util":"Q1F7"}],"BunE":[function(require,module,exports) {
"use strict";var e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];module.exports=function(t,i){for(var r=0;r<i.length;r++){t=JSON.parse(JSON.stringify(t));var m,a=i[r].split("/"),n=t;for(m=1;m<a.length;m++)n=n[a[m]];for(m=0;m<e.length;m++){var s=e[m],o=n[s];o&&(n[s]={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t};
},{}],"mNRF":[function(require,module,exports) {
"use strict";var n=require("./error_classes").MissingRef;function e(t,r,o){var i=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(o=r,r=void 0);var a=c(t).then(function(){var e=i._addSchema(t,void 0,r);return e.validate||function e(t){try{return i._compile(t)}catch(a){if(a instanceof n)return function o(e){var o=e.missingSchema;if(h(o))throw new Error("Schema "+o+" is loaded but "+e.missingRef+" cannot be resolved");var a=i._loadingSchemas[o];a||(a=i._loadingSchemas[o]=i._opts.loadSchema(o)).then(s,s);return a.then(function(n){if(!h(o))return c(n).then(function(){h(o)||i.addSchema(n,o,void 0,r)})}).then(function(){return function t(o){try{return i._compile(o)}catch(e){if(e instanceof n)return a(e);throw e}function a(n){var e=n.missingSchema;if(h(e))throw new Error("Schema "+e+" is loaded but "+n.missingRef+" cannot be resolved");var a=i._loadingSchemas[e];return a||(a=i._loadingSchemas[e]=i._opts.loadSchema(e)).then(s,s),a.then(function(n){if(!h(e))return c(n).then(function(){h(e)||i.addSchema(n,e,void 0,r)})}).then(function(){return t(o)});function s(){delete i._loadingSchemas[e]}function h(n){return i._refs[n]||i._schemas[n]}}}(t)});function s(){delete i._loadingSchemas[o]}function h(n){return i._refs[n]||i._schemas[n]}}(a);throw a}function o(n){var o=n.missingSchema;if(h(o))throw new Error("Schema "+o+" is loaded but "+n.missingRef+" cannot be resolved");var a=i._loadingSchemas[o];return a||(a=i._loadingSchemas[o]=i._opts.loadSchema(o)).then(s,s),a.then(function(n){if(!h(o))return c(n).then(function(){h(o)||i.addSchema(n,o,void 0,r)})}).then(function(){return e(t)});function s(){delete i._loadingSchemas[o]}function h(n){return i._refs[n]||i._schemas[n]}}}(e)});return o&&a.then(function(n){o(null,n)},o),a;function c(n){var t=n.$schema;return t&&!i.getSchema(t)?e.call(i,{$ref:t},!0):Promise.resolve()}}module.exports=e;
},{"./error_classes":"OtNE"}],"Mzku":[function(require,module,exports) {
"use strict";module.exports=function(a,r,e){var t,s,o=" ",i=a.level,h=a.dataLevel,d=a.schema[r],l=a.schemaPath+a.util.getProperty(r),v=a.errSchemaPath+"/"+r,c=!a.opts.allErrors,n="data"+(h||""),m="valid"+i,u="errs__"+i,p=a.opts.$data&&d&&d.$data;p?(o+=" var schema"+i+" = "+a.util.getData(d.$data,h,a.dataPathArr)+"; ",s="schema"+i):s=d;var f,P,y,E,w,k="definition"+i,g=this.definition,R="";if(p&&g.$data){w="keywordValidate"+i;var S=g.validateSchema;o+=" var "+k+" = RULES.custom['"+r+"'].definition; var "+w+" = "+k+".validate;"}else{if(!(E=a.useCustomRule(this,d,a.schema,a)))return;s="validate.schema"+l,w=E.code,f=g.compile,P=g.inline,y=g.macro}var b=w+".errors",$="i"+i,A="ruleErr"+i,D=g.async;if(D&&!a.async)throw new Error("async keyword in sync schema");if(P||y||(o+=b+" = null;"),o+="var "+u+" = errors;var "+m+";",p&&g.$data&&(R+="}",o+=" if ("+s+" === undefined) { "+m+" = true; } else { ",S&&(R+="}",o+=" "+m+" = "+k+".validateSchema("+s+"); if ("+m+") { ")),P)g.statements?o+=" "+E.validate+" ":o+=" "+m+" = "+E.validate+"; ";else if(y){var V=a.util.copy(a);R="";V.level++;var x="valid"+V.level;V.schema=E.validate,V.schemaPath="";var C=a.compositeRule;a.compositeRule=V.compositeRule=!0;var L=a.validate(V).replace(/validate\.schema/g,w);a.compositeRule=V.compositeRule=C,o+=" "+L}else{(j=j||[]).push(o),o="",o+=" "+w+".call( ",a.opts.passContext?o+="this":o+="self",f||!1===g.schema?o+=" , "+n+" ":o+=" , "+s+" , "+n+" , validate.schema"+a.schemaPath+" ",o+=" , (dataPath || '')",'""'!=a.errorPath&&(o+=" + "+a.errorPath);var Q=h?"data"+(h-1||""):"parentData",_=h?a.dataPathArr[h]:"parentDataProperty",U=o+=" , "+Q+" , "+_+" , rootData ) ";o=j.pop(),!1===g.errors?(o+=" "+m+" = ",D&&(o+="await "),o+=U+"; "):o+=D?" var "+(b="customErrors"+i)+" = null; try { "+m+" = await "+U+"; } catch (e) { "+m+" = false; if (e instanceof ValidationError) "+b+" = e.errors; else throw e; } ":" "+b+" = null; "+m+" = "+U+"; "}if(g.modifying&&(o+=" if ("+Q+") "+n+" = "+Q+"["+_+"];"),o+=""+R,g.valid)c&&(o+=" if (true) { ");else{var j;o+=" if ( ",void 0===g.valid?(o+=" !",o+=y?""+x:""+m):o+=" "+!g.valid+" ",o+=") { ",t=this.keyword,(j=j||[]).push(o),o="",(j=j||[]).push(o),o="",!1!==a.createErrors?(o+=" { keyword: '"+(t||"custom")+"' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(v)+" , params: { keyword: '"+this.keyword+"' } ",!1!==a.opts.messages&&(o+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),a.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+n+" "),o+=" } "):o+=" {} ";var q=o;o=j.pop(),!a.compositeRule&&c?a.async?o+=" throw new ValidationError(["+q+"]); ":o+=" validate.errors = ["+q+"]; return false; ":o+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var z=o;o=j.pop(),P?g.errors?"full"!=g.errors&&(o+=" for (var "+$+"="+u+"; "+$+"<errors; "+$+"++) { var "+A+" = vErrors["+$+"]; if ("+A+".dataPath === undefined) "+A+".dataPath = (dataPath || '') + "+a.errorPath+"; if ("+A+".schemaPath === undefined) { "+A+'.schemaPath = "'+v+'"; } ',a.opts.verbose&&(o+=" "+A+".schema = "+s+"; "+A+".data = "+n+"; "),o+=" } "):!1===g.errors?o+=" "+z+" ":(o+=" if ("+u+" == errors) { "+z+" } else { for (var "+$+"="+u+"; "+$+"<errors; "+$+"++) { var "+A+" = vErrors["+$+"]; if ("+A+".dataPath === undefined) "+A+".dataPath = (dataPath || '') + "+a.errorPath+"; if ("+A+".schemaPath === undefined) { "+A+'.schemaPath = "'+v+'"; } ',a.opts.verbose&&(o+=" "+A+".schema = "+s+"; "+A+".data = "+n+"; "),o+=" } } "):y?(o+=" var err = ",!1!==a.createErrors?(o+=" { keyword: '"+(t||"custom")+"' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(v)+" , params: { keyword: '"+this.keyword+"' } ",!1!==a.opts.messages&&(o+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),a.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+n+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors
},{}],"ve7q":[function(require,module,exports) {
module.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};
},{}],"GIYw":[function(require,module,exports) {
"use strict";var e=require("./refs/json-schema-draft-07.json");module.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:e.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:e.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}};
},{"./refs/json-schema-draft-07.json":"ve7q"}],"UVv5":[function(require,module,exports) {
"use strict";var e=/^[a-z_$][a-z0-9_$-]*$/i,r=require("./dotjs/custom"),t=require("./definition_schema");function i(t,i){var o=this.RULES;if(o.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!e.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(i){this.validateKeyword(i,!0);var a=i.type;if(Array.isArray(a))for(var s=0;s<a.length;s++)d(t,a[s],i);else d(t,a,i);var n=i.metaSchema;n&&(i.$data&&this._opts.$data&&(n={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),i.validateSchema=this.compile(n,!0))}function d(e,t,i){for(var a,s=0;s<o.length;s++){var n=o[s];if(n.type==t){a=n;break}}a||(a={type:t,rules:[]},o.push(a));var d={keyword:e,definition:i,custom:!0,code:r,implements:i.implements};a.rules.push(d),o.custom[e]=d}return o.keywords[t]=o.all[t]=!0,this}function o(e){var r=this.RULES.custom[e];return r?r.definition:this.RULES.keywords[e]||!1}function a(e){var r=this.RULES;delete r.keywords[e],delete r.all[e],delete r.custom[e];for(var t=0;t<r.length;t++)for(var i=r[t].rules,o=0;o<i.length;o++)if(i[o].keyword==e){i.splice(o,1);break}return this}function s(e,r){s.errors=null;var i=this._validateKeyword=this._validateKeyword||this.compile(t,!0);if(i(e))return!0;if(s.errors=i.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(i.errors));return!1}module.exports={add:i,get:o,remove:a,validate:s};
},{"./dotjs/custom":"Mzku","./definition_schema":"GIYw"}],"xbmT":[function(require,module,exports) {
module.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};
},{}],"hi5j":[function(require,module,exports) {
"use strict";var e=require("./compile"),t=require("./compile/resolve"),r=require("./cache"),a=require("./compile/schema_obj"),i=require("fast-json-stable-stringify"),s=require("./compile/formats"),o=require("./compile/rules"),h=require("./data"),n=require("./compile/util");module.exports=p,p.prototype.validate=u,p.prototype.compile=v,p.prototype.addSchema=_,p.prototype.addMetaSchema=g,p.prototype.validateSchema=y,p.prototype.getSchema=S,p.prototype.removeSchema=q,p.prototype.addFormat=x,p.prototype.errorsText=k,p.prototype._addSchema=E,p.prototype._compile=I,p.prototype.compileAsync=require("./compile/async");var c=require("./keyword");p.prototype.addKeyword=c.add,p.prototype.getKeyword=c.get,p.prototype.removeKeyword=c.remove,p.prototype.validateKeyword=c.validate;var d=require("./compile/error_classes");p.ValidationError=d.Validation,p.MissingRefError=d.MissingRef,p.$dataMetaSchema=h;var l="http://json-schema.org/draft-07/schema",m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],f=["/properties"];function p(e){if(!(this instanceof p))return new p(e);e=this._opts=n.copy(e)||{},O(this),this._schemas={},this._refs={},this._fragments={},this._formats=s(e.format),this._cache=e.cache||new r,this._loadingSchemas={},this._compilations=[],this.RULES=o(),this._getId=M(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=i),this._metaOpts=F(this),e.formats&&D(this),e.keywords&&P(this),A(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),V(this)}function u(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var a=this._addSchema(e);r=a.validate||this._compile(a)}var i=r(t);return!0!==r.$async&&(this.errors=r.errors),i}function v(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)}function _(e,r,a,i){if(Array.isArray(e)){for(var s=0;s<e.length;s++)this.addSchema(e[s],void 0,a,i);return this}var o=this._getId(e);if(void 0!==o&&"string"!=typeof o)throw new Error("schema id must be string");return T(this,r=t.normalizeId(r||o)),this._schemas[r]=this._addSchema(e,a,i,!0),this}function g(e,t,r){return this.addSchema(e,t,r,!0),this}function y(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||w(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var a=this.validate(r,e);if(!a&&t){var i="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(i);this.logger.error(i)}return a}function w(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(l)?l:void 0,e._opts.defaultMeta}function S(e){var t=$(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return b(this,e)}}function b(r,i){var s=t.schema.call(r,{schema:{}},i);if(s){var o=s.schema,h=s.root,n=s.baseId,c=e.call(r,o,h,void 0,n);return r._fragments[i]=new a({ref:i,fragment:!0,schema:o,root:h,baseId:n,validate:c}),c}}function $(e,r){return r=t.normalizeId(r),e._schemas[r]||e._refs[r]||e._fragments[r]}function q(e){if(e instanceof RegExp)return j(this,this._schemas,e),j(this,this._refs,e),this;switch(typeof e){case"undefined":return j(this,this._schemas),j(this,this._refs),this._cache.clear(),this;case"string":var r=$(this,e);return r&&this._cache.del(r.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var a=this._opts.serialize,i=a?a(e):e;this._cache.del(i);var s=this._getId(e);s&&(s=t.normalizeId(s),delete this._schemas[s],delete this._refs[s])}return this}function j(e,t,r){for(var a in t){var i=t[a];i.meta||r&&!r.test(a)||(e._cache.del(i.cacheKey),delete t[a])}}function E(e,r,i,s){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var o=this._opts.serialize,h=o?o(e):e,n=this._cache.get(h);if(n)return n;s=s|
},{"./compile":"qdYs","./compile/resolve":"w10T","./cache":"fXCy","./compile/schema_obj":"HHLG","fast-json-stable-stringify":"Xb3N","./compile/formats":"dfAH","./compile/rules":"vBP0","./data":"BunE","./compile/util":"Q1F7","./compile/async":"mNRF","./keyword":"UVv5","./compile/error_classes":"OtNE","./refs/data.json":"xbmT","./refs/json-schema-draft-07.json":"ve7q"}],"dhP9":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var r=require("buffer").Buffer,e={Object:Object,Array:Array,Function:Function,Number:Number,String:String,Date:Date,RegExp:RegExp};module.exports=function n(t){return void 0!==r&&(e.Buffer=r),"undefined"!=typeof Promise&&(e.Promise=Promise),n.definition={compile:function(r){if("string"==typeof r){var e=i(r);return function(r){return r instanceof e}}var n=r.map(i);return function(r){for(var e=0;e<n.length;e++)if(r instanceof n[e])return!0;return!1}},CONSTRUCTORS:e,metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},t.addKeyword("instanceof",n.definition),t;function i(r){var n=e[r];if(n)return n;throw new Error('invalid "instanceof" keyword value '+r)}};
},{"buffer":"dskh"}],"uBCt":[function(require,module,exports) {
"use strict";module.exports=function e(n){return e.definition={type:"number",macro:function(e,n){var r=e[0],i=e[1],o=n.exclusiveRange;return function(e,n,r){if(void 0!==r&&"boolean"!=typeof r)throw new Error("Invalid schema for exclusiveRange keyword, should be boolean");if(e>n||r&&e==n)throw new Error("There are no numbers in range")}(r,i,o),!0===o?{exclusiveMinimum:r,exclusiveMaximum:i}:{minimum:r,maximum:i}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}},n.addKeyword("range",e.definition),n.addKeyword("exclusiveRange"),n};
},{}],"AtCq":[function(require,module,exports) {
"use strict";module.exports=function e(t){return e.definition={type:"string",inline:function(e,t,r){return function(){try{if("object"==typeof r)return new RegExp(r.pattern,r.flags);var e=r.match(/^\/(.*)\/([gimuy]*)$/);if(e)return new RegExp(e[1],e[2]);throw new Error("cannot parse string into RegExp")}catch(t){throw console.error("regular expression",r,"is invalid"),t}}()+".test(data"+(e.dataLevel||"")+")"},metaSchema:{type:["string","object"],properties:{pattern:{type:"string"},flags:{type:"string"}},required:["pattern"],additionalProperties:!1}},t.addKeyword("regexp",e.definition),t};
},{}],"yoml":[function(require,module,exports) {
"use strict";var e=["undefined","string","number","object","function","boolean","symbol"];module.exports=function t(n){return t.definition={inline:function(e,t,n){var i="data"+(e.dataLevel||"");return"string"==typeof n?"typeof "+i+' == "'+n+'"':(n="validate.schema"+e.schemaPath+"."+t)+".indexOf(typeof "+i+") >= 0"},metaSchema:{anyOf:[{type:"string",enum:e},{type:"array",items:{type:"string",enum:e}}]}},n.addKeyword("typeof",t.definition),n};
},{}],"FbE8":[function(require,module,exports) {
"use strict";var t={},n={timestamp:function(){return Date.now()},datetime:function(){return(new Date).toISOString()},date:function(){return(new Date).toISOString().slice(0,10)},time:function(){return(new Date).toISOString().slice(11)},random:function(){return Math.random()},randomint:function(t){var n=t&&t.max||2;return function(){return Math.floor(Math.random()*n)}},seq:function(n){var r=n&&n.name||"";return t[r]=t[r]||0,function(){return t[r]++}}};module.exports=function t(r){return t.definition={compile:function(t,n,r){var i={};for(var o in t){var u=t[o],a=e("string"==typeof u?u:u.func);i[o]=a.length?a(u.args):a}return r.opts.useDefaults&&!r.compositeRule?function(n){for(var e in t)void 0!==n[e]&&("empty"!=r.opts.useDefaults||null!==n[e]&&""!==n[e])||(n[e]=i[e]());return!0}:function(){return!0}},DEFAULTS:n,metaSchema:{type:"object",additionalProperties:{type:["string","object"],additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}}},r.addKeyword("dynamicDefaults",t.definition),r;function e(t){var r=n[t];if(r)return r;throw new Error('invalid "dynamicDefaults" keyword property value: '+t)}};
},{}],"CJDR":[function(require,module,exports) {
"use strict";module.exports=function e(r){return e.definition={type:"object",macro:function(e,r){if(!e)return!0;var t=Object.keys(r.properties);return 0==t.length||{required:t}},metaSchema:{type:"boolean"},dependencies:["properties"]},r.addKeyword("allRequired",e.definition),r};
},{}],"n1DR":[function(require,module,exports) {
"use strict";module.exports=function e(t){return e.definition={type:"object",macro:function(e){return 0==e.length||(1==e.length?{required:e}:{anyOf:e.map(function(e){return{required:[e]}})})},metaSchema:{type:"array",items:{type:"string"}}},t.addKeyword("anyRequired",e.definition),t};
},{}],"XrCF":[function(require,module,exports) {
"use strict";module.exports=function e(t){return e.definition={type:"object",macro:function(e){return 0==e.length||(1==e.length?{required:e}:{oneOf:e.map(function(e){return{required:[e]}})})},metaSchema:{type:"array",items:{type:"string"}}},t.addKeyword("oneRequired",e.definition),t};
},{}],"MFGI":[function(require,module,exports) {
"use strict";module.exports=function e(t){return e.definition={type:"object",macro:function(e){return 0==e.length||(1==e.length?{not:{required:e}}:{not:{anyOf:e.map(function(e){return{required:[e]}})}})},metaSchema:{type:"array",items:{type:"string"}}},t.addKeyword("prohibited",e.definition),t};
},{}],"m7Ap":[function(require,module,exports) {
"use strict";var e=["number","integer","string","boolean","null"];function r(r,t){return r.map(function(r){var n=t.items&&t.items.properties,i=n&&n[r]&&n[r].type;return Array.isArray(i)?i.indexOf("object")<0&&i.indexOf("array")<0:e.indexOf(i)>=0})}module.exports=function e(t){return e.definition={type:"array",compile:function(e,t,n){var i=n.util.equal,o=r(e,t);return function(r){if(r.length>1)for(var t=0;t<e.length;t++){var n,f=e[t];if(o[t]){var a={};for(n=r.length;n--;)if(r[n]&&"object"==typeof r[n]){var u=r[n][f];if(!u||"object"!=typeof u){if("string"==typeof u&&(u='"'+u),a[u])return!1;a[u]=!0}}}else for(n=r.length;n--;)if(r[n]&&"object"==typeof r[n])for(var p=n;p--;)if(r[p]&&"object"==typeof r[p]&&i(r[n][f],r[p][f]))return!1}return!0}},metaSchema:{type:"array",items:{type:"string"}}},t.addKeyword("uniqueItemProperties",e.definition),t};
},{}],"R4Fp":[function(require,module,exports) {
"use strict";module.exports={metaSchemaRef:t};var e="http://json-schema.org/draft-07/schema";function t(t){var a=t._opts.defaultMeta;return"string"==typeof a?{$ref:a}:t.getSchema(e)?{$ref:e}:(console.warn("meta schema not defined"),{})}
},{}],"kIuQ":[function(require,module,exports) {
"use strict";var e=require("./_util");function r(e,r){for(var i=e.split("/"),o={},n=o,a=1;a<i.length;a++){var p=i[a],s=a==i.length-1;p=t(p);var u=n.properties={},f=void 0;if(/[0-9]+/.test(p)){var c=+p;for(f=n.items=[];c--;)f.push({})}n=s?r:{},u[p]=n,f&&f.push(n)}return o}function t(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}module.exports=function t(i){return t.definition={type:"object",macro:function(e){var t=[];for(var i in e)t.push(r(i,e[i]));return{allOf:t}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:e.metaSchemaRef(i)}},i.addKeyword("deepProperties",t.definition),i};
},{"./_util":"R4Fp"}],"KB8y":[function(require,module,exports) {
"use strict";function e(e,t){var r="data"+(t||"");if(!e)return r;for(var n=r,o=e.split("/"),u=1;u<o.length;u++){n+=" && "+(r+=i(a(o[u])))}return n}module.exports=function t(r){return t.definition={type:"object",inline:function(t,r,n){for(var i="",a=0;a<n.length;a++)a&&(i+=" && "),i+="("+e(n[a],t.dataLevel)+" !== undefined)";return i},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}},r.addKeyword("deepRequired",t.definition),r};var t=/^[a-z$_][a-z$_0-9]*$/i,r=/^[0-9]+$/,n=/'|\\/g;function i(e){return r.test(e)?"["+e+"]":t.test(e)?"."+e:"['"+e.replace(n,"\\$&")+"']"}function a(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}
},{}],"KeB4":[function(require,module,exports) {
"use strict";module.exports=function(e,a,r){var t=" ",s=e.level,o=e.dataLevel,i=e.schema[a],l=e.schemaPath+e.util.getProperty(a),u=e.errSchemaPath+"/"+a,d=!e.opts.allErrors,m="data"+(o||""),f="valid"+s;if(t+="var "+f+" = undefined;",!1===e.opts.format)return t+=" "+f+" = true; ";var n=e.schema.format,h=e.opts.$data&&n.$data,c="";if(h){t+=" var "+(v="format"+s)+" = formats["+e.util.getData(n.$data,o,e.dataPathArr)+"] , "+(p="compare"+s)+" = "+v+" && "+v+".compare;"}else{var v;if(!(v=e.formats[n])||!v.compare)return t+=" "+f+" = true; ";var p="formats"+e.util.getProperty(n)+".compare"}var g,P="formatMaximum"==a,E="formatExclusive"+(P?"Maximum":"Minimum"),x=e.schema[E],y=e.opts.$data&&x&&x.$data,S=P?"<":">",$="result"+s,Q=e.opts.$data&&i&&i.$data;if(Q?(t+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",g="schema"+s):g=i,y){var b=e.util.getData(x.$data,o,e.dataPathArr),w="exclusive"+s,A="' + "+(M="op"+s)+" + '";t+=" var schemaExcl"+s+" = "+b+"; ",t+=" if (typeof "+(b="schemaExcl"+s)+" != 'boolean' && "+b+" !== undefined) { "+f+" = false; ";var D=E;(k=k||[]).push(t),t="",!1!==e.createErrors?(t+=" { keyword: '"+(D||"_formatExclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(t+=" , message: '"+E+" should be boolean' "),e.opts.verbose&&(t+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),t+=" } "):t+=" {} ";var L=t;t=k.pop(),!e.compositeRule&&d?e.async?t+=" throw new ValidationError(["+L+"]); ":t+=" validate.errors = ["+L+"]; return false; ":t+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",d&&(c+="}",t+=" else { "),Q&&(t+=" if ("+g+" === undefined) "+f+" = true; else if (typeof "+g+" != 'string') "+f+" = false; else { ",c+="}"),h&&(t+=" if (!"+p+") "+f+" = true; else { ",c+="}"),t+=" var "+$+" = "+p+"("+m+", ",t+=Q?""+g:""+e.util.toQuotedString(i),t+=" ); if ("+$+" === undefined) "+f+" = false; var "+w+" = "+b+" === true; if ("+f+" === undefined) { "+f+" = "+w+" ? "+$+" "+S+" 0 : "+$+" "+S+"= 0; } if (!"+f+") var op"+s+" = "+w+" ? '"+S+"' : '"+S+"=';"}else{A=S;(w=!0===x)||(A+="=");var M="'"+A+"'";Q&&(t+=" if ("+g+" === undefined) "+f+" = true; else if (typeof "+g+" != 'string') "+f+" = false; else { ",c+="}"),h&&(t+=" if (!"+p+") "+f+" = true; else { ",c+="}"),t+=" var "+$+" = "+p+"("+m+", ",t+=Q?""+g:""+e.util.toQuotedString(i),t+=" ); if ("+$+" === undefined) "+f+" = false; if ("+f+" === undefined) "+f+" = "+$+" "+S,w||(t+="="),t+=" 0;"}t+=c+"if (!"+f+") { ";var k;D=a;(k=k||[]).push(t),t="",!1!==e.createErrors?(t+=" { keyword: '"+(D||"_formatLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+M+", limit: ",t+=Q?""+g:""+e.util.toQuotedString(i),t+=" , exclusive: "+w+" } ",!1!==e.opts.messages&&(t+=" , message: 'should be "+A+' "',t+=Q?"' + "+g+" + '":""+e.util.escapeQuotes(i),t+="\"' "),e.opts.verbose&&(t+=" , schema: ",t+=Q?"validate.schema"+l:""+e.util.toQuotedString(i),t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),t+=" } "):t+=" {} ";L=t;return t=k.pop(),!e.compositeRule&&d?e.async?t+=" throw new ValidationError(["+L+"]); ":t+=" validate.errors = ["+L+"]; return false; ":t+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="}"};
},{}],"mYD7":[function(require,module,exports) {
"use strict";var t=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d:\d\d)?$/i,e=/t|\s/i,i={date:n,time:o,"date-time":d},r={type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};function a(t){var e=t._formats;for(var r in i){var a=e[r];("object"!=typeof a||a instanceof RegExp||!a.validate)&&(a=e[r]={validate:a}),a.compare||(a.compare=i[r])}}function n(t,e){if(t&&e)return t>e?1:t<e?-1:t===e?0:void 0}function o(e,i){if(e&&i&&(e=e.match(t),i=i.match(t),e&&i))return(e=e[1]+e[2]+e[3]+(e[4]||""))>(i=i[1]+i[2]+i[3]+(i[4]||""))?1:e<i?-1:e===i?0:void 0}function d(t,i){if(t&&i){t=t.split(e),i=i.split(e);var r=n(t[0],i[0]);if(void 0!==r)return r||o(t[1],i[1])}}module.exports=function(t){var e="format"+t;return function i(n){return i.definition={type:"string",inline:require("./dotjs/_formatLimit"),statements:!0,errors:"full",dependencies:["format"],metaSchema:{anyOf:[{type:"string"},r]}},n.addKeyword(e,i.definition),n.addKeyword("formatExclusive"+t,{dependencies:["format"+t],metaSchema:{anyOf:[{type:"boolean"},r]}}),a(n),n}};
},{"./dotjs/_formatLimit":"KeB4"}],"J927":[function(require,module,exports) {
"use strict";module.exports=require("./_formatLimit")("Minimum");
},{"./_formatLimit":"mYD7"}],"dgLz":[function(require,module,exports) {
"use strict";module.exports=require("./_formatLimit")("Maximum");
},{"./_formatLimit":"mYD7"}],"OTUE":[function(require,module,exports) {
"use strict";module.exports=function(e,r,a){var t=" ",s=e.level,o=e.dataLevel,h=e.schema[r],i=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,v=!e.opts.allErrors,n="data"+(o||""),d="valid"+s,p="key"+s,c="idx"+s,u="patternMatched"+s,m="dataProperties"+s,P="",f=e.opts.ownProperties;t+="var "+d+" = true;",f&&(t+=" var "+m+" = undefined;");var g=h;if(g)for(var y,E=-1,k=g.length-1;E<k;){y=g[E+=1],t+=" var "+u+" = false; ",t+=f?" "+m+" = "+m+" || Object.keys("+n+"); for (var "+c+"=0; "+c+"<"+m+".length; "+c+"++) { var "+p+" = "+m+"["+c+"]; ":" for (var "+p+" in "+n+") { ",t+=" "+u+" = "+e.usePattern(y)+".test("+p+"); if ("+u+") break; } ";var b=e.util.escapeQuotes(y);t+=" if (!"+u+") { "+d+" = false; var err = ",!1!==e.createErrors?(t+=" { keyword: 'patternRequired' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingPattern: '"+b+"' } ",!1!==e.opts.messages&&(t+=" , message: 'should have property matching pattern \\'"+b+"\\'' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+n+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ",v&&(P+="}",t+=" else { ")}return t+=""+P};
},{}],"u2zM":[function(require,module,exports) {
"use strict";module.exports=function e(t){return e.definition={type:"object",inline:require("./dotjs/patternRequired"),statements:!0,errors:"full",metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}},t.addKeyword("patternRequired",e.definition),t};
},{"./dotjs/patternRequired":"OTUE"}],"mlCb":[function(require,module,exports) {
"use strict";module.exports=function(e,r,a){var s=" ",t=e.level,o=e.dataLevel,h=e.schema[r],l=e.schemaPath+e.util.getProperty(r),i=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,v="data"+(o||""),n="valid"+t,d="errs__"+t,m=e.util.copy(e),p="";m.level++;var u,f="valid"+m.level,P="ifPassed"+e.level,E=m.baseId;s+="var "+P+";";var w=h;if(w)for(var y,b=-1,g=w.length-1;b<g;){if(y=w[b+=1],b&&!u&&(s+=" if (!"+P+") { ",p+="}"),y.if&&(e.opts.strictKeywords?"object"==typeof y.if&&Object.keys(y.if).length>0:e.util.schemaHasRules(y.if,e.RULES.all))){s+=" var "+d+" = errors; ";var R=e.compositeRule;if(e.compositeRule=m.compositeRule=!0,m.createErrors=!1,m.schema=y.if,m.schemaPath=l+"["+b+"].if",m.errSchemaPath=i+"/"+b+"/if",s+=" "+e.validate(m)+" ",m.baseId=E,m.createErrors=!0,e.compositeRule=m.compositeRule=R,s+=" "+P+" = "+f+"; if ("+P+") { ","boolean"==typeof y.then){if(!1===y.then){(I=I||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: 'switch' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(i)+" , params: { caseIndex: "+b+" } ",!1!==e.opts.messages&&(s+=" , message: 'should pass \"switch\" keyword validation' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "),s+=" } "):s+=" {} ";var S=s;s=I.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+S+"]); ":s+=" validate.errors = ["+S+"]; return false; ":s+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" var "+f+" = "+y.then+"; "}else m.schema=y.then,m.schemaPath=l+"["+b+"].then",m.errSchemaPath=i+"/"+b+"/then",s+=" "+e.validate(m)+" ",m.baseId=E;s+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } } "}else if(s+=" "+P+" = true; ","boolean"==typeof y.then){if(!1===y.then){var I;(I=I||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: 'switch' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(i)+" , params: { caseIndex: "+b+" } ",!1!==e.opts.messages&&(s+=" , message: 'should pass \"switch\" keyword validation' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "),s+=" } "):s+=" {} ";S=s;s=I.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+S+"]); ":s+=" validate.errors = ["+S+"]; return false; ":s+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" var "+f+" = "+y.then+"; "}else m.schema=y.then,m.schemaPath=l+"["+b+"].then",m.errSchemaPath=i+"/"+b+"/then",s+=" "+e.validate(m)+" ",m.baseId=E;u=y.continue}return s+=p+"var "+n+" = "+f+";"};
},{}],"KC2b":[function(require,module,exports) {
"use strict";var e=require("./_util");module.exports=function i(t){if(!t.RULES.keywords.switch||!t.RULES.keywords.if){var r=e.metaSchemaRef(t);return i.definition={inline:require("./dotjs/switch"),statements:!0,errors:"full",metaSchema:{type:"array",items:{required:["then"],properties:{if:r,then:{anyOf:[{type:"boolean"},r]},continue:{type:"boolean"}},additionalProperties:!1,dependencies:{continue:["if"]}}}},t.addKeyword("switch",i.definition),t}};
},{"./_util":"R4Fp","./dotjs/switch":"mlCb"}],"mwue":[function(require,module,exports) {
"use strict";var e=require("./_util");module.exports=function r(t){if(!t._opts.$data)return console.warn("keyword select requires $data option"),t;var a=e.metaSchemaRef(t),n=[];return r.definition={validate:function e(r,t,a){if(void 0===a.selectCases)throw new Error('keyword "selectCases" is absent');var n=o(a,!1),i=n.cases[r];if(void 0===i&&(i=n.default),"boolean"==typeof i)return i;var s=i(t);return s||(e.errors=i.errors),s},$data:!0,metaSchema:{type:["string","number","boolean","null"]}},t.addKeyword("select",r.definition),t.addKeyword("selectCases",{compile:function(e,r){var t=o(r);for(var a in e)t.cases[a]=i(e[a]);return function(){return!0}},valid:!0,metaSchema:{type:"object",additionalProperties:a}}),t.addKeyword("selectDefault",{compile:function(e,r){return o(r).default=i(e),function(){return!0}},valid:!0,metaSchema:a}),t;function o(e,r){var t;return n.some(function(r){if(r.parentSchema===e)return t=r,!0}),t||!1===r||(t={parentSchema:e,cases:{},default:!0},n.push(t)),t}function i(e){return"boolean"==typeof e?e:t.compile(e)}};
},{"./_util":"R4Fp"}],"selR":[function(require,module,exports) {
"use strict";module.exports=function e(r){var n={trimLeft:function(e){return e.replace(/^[\s]+/,"")},trimRight:function(e){return e.replace(/[\s]+$/,"")},trim:function(e){return e.trim()},toLowerCase:function(e){return e.toLowerCase()},toUpperCase:function(e){return e.toUpperCase()},toEnumCase:function(e,r){return r.hash[t(e)]||e}};return e.definition={type:"string",errors:!1,modifying:!0,valid:!0,compile:function(e,r){var i;if(-1!==e.indexOf("toEnumCase")){if(i={hash:{}},!r.enum)throw new Error('Missing enum. To use `transform:["toEnumCase"]`, `enum:[...]` is required.');for(var o=r.enum.length;o--;o){var u=r.enum[o];if("string"==typeof u){var s=t(u);if(i.hash[s])throw new Error('Invalid enum uniqueness. To use `transform:["toEnumCase"]`, all values must be unique when case insensitive.');i.hash[s]=u}}}return function(r,t,o,u){if(o){for(var s=0,a=e.length;s<a;s++)r=n[e[s]](r,i);o[u]=r}}},metaSchema:{type:"array",items:{type:"string",enum:["trimLeft","trimRight","trim","toLowerCase","toUpperCase","toEnumCase"]}}},r.addKeyword("transform",e.definition),r;function t(e){return e.toLowerCase()}};
},{}],"KP4Q":[function(require,module,exports) {
"use strict";module.exports={instanceof:require("./instanceof"),range:require("./range"),regexp:require("./regexp"),typeof:require("./typeof"),dynamicDefaults:require("./dynamicDefaults"),allRequired:require("./allRequired"),anyRequired:require("./anyRequired"),oneRequired:require("./oneRequired"),prohibited:require("./prohibited"),uniqueItemProperties:require("./uniqueItemProperties"),deepProperties:require("./deepProperties"),deepRequired:require("./deepRequired"),formatMinimum:require("./formatMinimum"),formatMaximum:require("./formatMaximum"),patternRequired:require("./patternRequired"),switch:require("./switch"),select:require("./select"),transform:require("./transform")};
},{"./instanceof":"dhP9","./range":"uBCt","./regexp":"AtCq","./typeof":"yoml","./dynamicDefaults":"FbE8","./allRequired":"CJDR","./anyRequired":"n1DR","./oneRequired":"XrCF","./prohibited":"MFGI","./uniqueItemProperties":"m7Ap","./deepProperties":"kIuQ","./deepRequired":"KB8y","./formatMinimum":"J927","./formatMaximum":"dgLz","./patternRequired":"u2zM","./switch":"KC2b","./select":"mwue","./transform":"selR"}],"n1A8":[function(require,module,exports) {
"use strict";var r=require("./keywords");function e(e,t){if(Array.isArray(t)){for(var o=0;o<t.length;o++)n(t[o])(e);return e}if(t)return n(t)(e),e;for(t in r)n(t)(e);return e}function n(e){var n=r[e];if(!n)throw new Error("Unknown keyword "+e);return n}module.exports=e,e.get=n;
},{"./keywords":"KP4Q"}],"STvH":[function(require,module,exports) {
"use strict";function r(r){if("undefined"==typeof Symbol||null==r[Symbol.iterator]){if(Array.isArray(r)||(r=n(r))){var t=0,e=function(){};return{s:e,n:function(){return t>=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(r){throw r},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,i=!0,u=!1;return{s:function(){o=r[Symbol.iterator]()},n:function(){var r=o.next();return i=r.done,r},e:function(r){u=!0,a=r},f:function(){try{i||null==o.return||o.return()}finally{if(u)throw a}}}}function t(r){return a(r)||o(r)||n(r)||e()}function e(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(r,t){if(r){if("string"==typeof r)return i(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);return"Object"===e&&r.constructor&&(e=r.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?i(r,t):void 0}}function o(r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(r))return Array.from(r)}function a(r){if(Array.isArray(r))return i(r)}function i(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}Object.defineProperty(exports,"__esModule",{value:!0}),exports.validate=y,Object.defineProperty(exports,"ValidationError",{enumerable:!0,get:function(){return c.default}});var u=f(require("./keywords/absolutePath")),c=f(require("./ValidationError"));function f(r){return r&&r.__esModule?r:{default:r}}var l=require("ajv"),d=require("ajv-keywords"),s=new l({allErrors:!0,verbose:!0,$data:!0});function y(r,e,n){var o=[];if(Array.isArray(e)?((o=Array.from(e,function(t){return h(r,t)})).forEach(function(r,t){r.forEach(function r(e){e.dataPath="[".concat(t,"]").concat(e.dataPath),e.children&&e.children.forEach(r)})}),o=o.reduce(function(r,e){return r.push.apply(r,t(e)),r},[])):o=h(r,e),o.length>0)throw new c.default(o,r,n)}function h(r,t){var e=s.compile(r);return e(t)?[]:e.errors?m(e.errors):[]}function m(t){var e,n=[],o=r(t);try{var a=function(){var r=e.value,t=r.dataPath,o=[];n=n.filter(function(r){return!r.dataPath.includes(t)||(r.children&&(o=o.concat(r.children.slice(0))),r.children=void 0,o.push(r),!1)}),o.length&&(r.children=o),n.push(r)};for(o.s();!(e=o.n()).done;)a()}catch(i){o.e(i)}finally{o.f()}return n}d(s,["instanceof","formatMinimum","formatMaximum","patternRequired"]),(0,u.default)(s);
},{"./keywords/absolutePath":"iIhC","./ValidationError":"ySUA","ajv":"hi5j","ajv-keywords":"n1A8"}],"pA46":[function(require,module,exports) {
"use strict";var a=require("./validate"),r=a.validate,i=a.ValidationError;module.exports={validate:r,ValidationError:i};
},{"./validate":"STvH"}],"t7hQ":[function(require,module,exports) {
function r(r,n){return i(r)||o(r,n)||e(r,n)||t()}function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(r,t){if(r){if("string"==typeof r)return n(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);return"Object"===e&&r.constructor&&(e=r.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?n(r,t):void 0}}function n(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}function o(r,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(r)){var e=[],n=!0,o=!1,i=void 0;try{for(var a,u=r[Symbol.iterator]();!(n=(a=u.next()).done)&&(e.push(a.value),!t||e.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return e}}function i(r){if(Array.isArray(r))return r}var a=require("schema-utils"),u=a.validate;function l(r,t){u(t,r)}function c(t,e){for(var n={},o=0,i=Object.entries(e);o<i.length;o++){var a=r(i[o],2),u=a[0],l=a[1];n[u]=t[u],void 0===n[u]&&(n[u]=l.default),l.process&&(n[u]=l.process(n[u]))}return n}module.exports={validateOptions:l,processOptions:c};
},{"schema-utils":"pA46"}],"uYXM":[function(require,module,exports) {
module.exports={type:"object",properties:{filerDir:{type:"string"},shimsDir:{type:"string"},shimFs:{type:"boolean"},shimPath:{type:"boolean"},fsProvider:{type:"string"},fsProviderDir:{type:"string"}}};
},{}],"qUtu":[function(require,module,exports) {
var process = require("process");
var e=require("process"),r=require("path"),s="<rootDir>",o=e.cwd();module.exports={filerDir:{process:function(e){return e?r.resolve(e.replace(s,o)):r.join(o,"node_modules","filer")}},shimsDir:{process:function(e){return e?r.resolve(e.replace(s,o)):r.join(o,"node_modules","filer","shims")}},fsProviderDir:{process:function(e){return e?r.resolve(e.replace(s,o)):r.join(o,"node_modules","filer","shims","providers")}},shimFs:{default:!0},shimPath:{default:!0},fsProvider:{default:"default"}};
},{"path":"UUq2","process":"pBGv"}],"Ge14":[function(require,module,exports) {
function e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function r(e,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e,i,o){return i&&r(e.prototype,i),o&&r(e,o),e}var o=require("path"),s=require("./utils"),t="filer-webpack-plugin",n=require("./schema"),a=require("./processors");module.exports=function(){function r(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,r),s.validateOptions(i,n),this.options=s.processOptions(i,a)}return i(r,[{key:"apply",value:function(e){var r=this;e.hooks.normalModuleFactory.tap(t,function(e){e.hooks.resolve.tap(t,function(e){if("fsProvider"===e.request&&e.context===r.options.shimsDir)return r.resolveFsProvider(e);if(!e.context.startsWith(r.options.filerDir))switch(e.request){case"fs":if(!r.options.shimFs)return;return r.applyFsShim(e);case"path":if(!r.options.shimPath)return;return r.applyPathShim(e);default:return}})})}},{key:"resolveFsProvider",value:function(e){switch(this.options.fsProvider){case"default":e.request=o.join(this.options.fsProviderDir,"default.js");break;case"indexeddb":e.request=o.join(this.options.fsProviderDir,"indexeddb.js");break;case"memory":e.request=o.join(this.options.fsProviderDir,"memory.js");break;case"custom":e.request=o.join(this.options.fsProviderDir,"custom.js");break;default:throw new Error(["Invalid option for fsProvider.","fsProvider must be one of 'default', 'indexeddb', 'memory' or 'custom'.","If using a custom fsProvider, you must also provide the fsProviderDir option."].join(" "))}}},{key:"applyFsShim",value:function(e){e.request=o.join(this.options.shimsDir,"fs.js")}},{key:"applyPathShim",value:function(e){e.request=o.join(this.options.shimsDir,"path.js")}}]),r}();
},{"path":"UUq2","./utils":"t7hQ","./schema":"uYXM","./processors":"qUtu"}],"Focm":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
2021-10-16 12:36:13 +00:00
var e=require("buffer").Buffer,r=null,l=null;module.exports=l={FileSystem:require("./filesystem/interface.js"),Buffer:e,Path:require("./path.js"),path:require("./path.js"),Errors:require("./errors.js"),Shell:require("./shell/shell.js"),FilerWebpackPlugin:require("./webpack-plugin")},Object.defineProperty(l,"fs",{enumerable:!0,get:function(){return r||(r=new l.FileSystem),r}});
},{"./filesystem/interface.js":"GMi4","./path.js":"UzoP","./errors.js":"p8GN","./shell/shell.js":"D1Ra","./webpack-plugin":"Ge14","buffer":"dskh"}]},{},["Focm"], "Filer")
//# sourceMappingURL=/filer.min.js.map