!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).ZSchema=e()}}(function(){return function a(o,s,l){function u(t,e){if(!s[t]){if(!o[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(d)return d(t,!0);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}var n=s[t]={exports:{}};o[t][0].call(n.exports,function(e){return u(o[t][1][e]||e)},n,n.exports,a,o,s,l)}return s[t].exports}for(var d="function"==typeof require&&require,e=0;er.minOccurrences;return e.split((0,n.default)(t)).length>r.minOccurrences};var i=o(e("./util/assertString")),n=o(e("./util/toString")),a=o(e("./util/merge"));function o(e){return e&&e.__esModule?e:{default:e}}var s={ignoreCase:!1,minOccurrences:1};t.exports=r.default,t.exports.default=r.default},{"./util/assertString":99,"./util/merge":101,"./util/toString":103}],8:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){return(0,n.default)(e),e===t};var i,n=(i=e("./util/assertString"))&&i.__esModule?i:{default:i};t.exports=r.default,t.exports.default=r.default},{"./util/assertString":99}],9:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,n.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var i,n=(i=e("./util/assertString"))&&i.__esModule?i:{default:i};t.exports=r.default,t.exports.default=r.default},{"./util/assertString":99}],10:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t=1=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}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 a,o=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(a);try{for(s.s();!(e=s.n()).done;){var l=(f=e.value,c=2,function(e){if(Array.isArray(e))return e}(f)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],i=!0,n=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw a}}return r}(f,c)||m(f,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],d=l[1];if(u.length!==d.length)return!1;o[d.charAt(0)]=u}}catch(e){s.e(e)}finally{s.f()}return new Date("".concat(o.m,"/").concat(o.d,"/").concat(o.y)).getDate()===+o.d}var f,c;var p;return!r.strictMode&&"[object Date]"===Object.prototype.toString.call(t)&&isFinite(t)};var i,h=(i=e("./util/merge"))&&i.__esModule?i:{default:i};function m(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r$)/g,""),i.endsWith(" ")&&(i=i.substr(0,i.length-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;var r=t.split('"').length===t.split('\\"').length;if(!r)return!1}return!0}(i))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>R)return!1;var n=e.split("@"),a=n.pop(),o=a.toLowerCase();if(t.host_blacklist.includes(o))return!1;var s=n.join("@");if(t.domain_specific_validation&&("gmail.com"===o||"googlemail.com"===o)){var l=(s=s.toLowerCase()).split("+")[0];if(!(0,_.default)(l.replace(/\./g,""),{min:6,max:30}))return!1;for(var u=l.split("."),d=0;d=t.min)&&(!t.hasOwnProperty("max")||i<=t.max)&&(!t.hasOwnProperty("lt")||it.gt)},r.locales=void 0;var i,n=(i=e("./util/assertString"))&&i.__esModule?i:{default:i},a=e("./alpha");var o=Object.keys(a.decimal);r.locales=o},{"./alpha":5,"./util/assertString":99}],34:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,n.default)(e),a.test(e)},r.fullWidth=void 0;var i,n=(i=e("./util/assertString"))&&i.__esModule?i:{default:i};var a=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;r.fullWidth=a},{"./util/assertString":99}],35:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){(0,n.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");return-1===t.indexOf(",")?o.test(t):a.test(t)};var i,n=(i=e("./util/assertString"))&&i.__esModule?i:{default:i};var a=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,o=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;t.exports=r.default,t.exports.default=r.default},{"./util/assertString":99}],36:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,n.default)(e),a.test(e)},r.halfWidth=void 0;var i,n=(i=e("./util/assertString"))&&i.__esModule?i:{default:i};var a=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;r.halfWidth=a},{"./util/assertString":99}],37:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){return(0,n.default)(e),new RegExp("^[a-fA-F0-9]{".concat(a[t],"}$")).test(e)};var i,n=(i=e("./util/assertString"))&&i.__esModule?i:{default:i};var a={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};t.exports=r.default,t.exports.default=r.default},{"./util/assertString":99}],38:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,n.default)(e),a.test(e)};var i,n=(i=e("./util/assertString"))&&i.__esModule?i:{default:i};var a=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;t.exports=r.default,t.exports.default=r.default},{"./util/assertString":99}],39:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,n.default)(e),a.test(e)};var i,n=(i=e("./util/assertString"))&&i.__esModule?i:{default:i};var a=/^(0x|0h)?[0-9A-F]+$/i;t.exports=r.default,t.exports.default=r.default},{"./util/assertString":99}],40:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,o.default)(e),i=e,n=i.replace(/[\s\-]+/gi,"").toUpperCase(),a=n.slice(0,2).toUpperCase(),a in s&&s[a].test(n)&&(t=e,r=t.replace(/[^A-Z0-9]+/gi,"").toUpperCase(),1===(r.slice(4)+r.slice(0,4)).replace(/[A-Z]/g,function(e){return e.charCodeAt(0)-55}).match(/\d{1,7}/g).reduce(function(e,t){return Number(e+t)%97},""));var t,r;var i,n,a},r.locales=void 0;var i,o=(i=e("./util/assertString"))&&i.__esModule?i:{default:i};var s={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};var n=Object.keys(s);r.locales=n},{"./util/assertString":99}],41:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){(0,l.default)(e);var r=u;(t=t||{}).allow_hyphens&&(r=d);if(!r.test(e))return!1;e=e.replace(/-/g,"");for(var i=0,n=2,a=0;a<14;a++){var o=e.substring(14-a-1,14-a),s=parseInt(o,10)*n;i+=10<=s?s%10+1:s,1===n?n+=1:n-=1}return(10-i%10)%10===parseInt(e.substring(14,15),10)};var i,l=(i=e("./util/assertString"))&&i.__esModule?i:{default:i};var u=/^[0-9]{15}$/,d=/^\d{2}-\d{6}-\d{6}-\d{1}$/;t.exports=r.default,t.exports.default=r.default},{"./util/assertString":99}],42:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t){var r=1new Date)&&(n.getFullYear()===t&&n.getMonth()===r-1&&n.getDate()===i)},l=function(e){return function(e){for(var t=e.substring(0,17),r=0,i=0;i<17;i++)r+=parseInt(t.charAt(i),10)*parseInt(n[i],10);return a[r%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var r=e.substring(0,2);if(!(t=o(r)))return!1;var i="19".concat(e.substring(6,12));return!!(t=s(i))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var r=e.substring(0,2);if(!(t=o(r)))return!1;var i=e.substring(6,14);return!!(t=s(i))&&l(e)}(t))},"zh-TW":function(e){var n={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},t=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(t)&&Array.from(t).reduce(function(e,t,r){if(0!==r)return 9===r?(10-e%10-Number(t))%10==0:e+Number(t)*(9-r);var i=n[t];return i%10*9+Math.floor(i/10)},0)}};t.exports=r.default,t.exports.default=r.default},{"./isInt":54,"./util/assertString":99}],53:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){var r;{if((0,n.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var i=[];for(r in t)({}).hasOwnProperty.call(t,r)&&(i[r]=(0,a.default)(t[r]));return 0<=i.indexOf(e)}if("object"===o(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return 0<=t.indexOf(e)}return!1};var n=i(e("./util/assertString")),a=i(e("./util/toString"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="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)}t.exports=r.default,t.exports.default=r.default},{"./util/assertString":99,"./util/toString":103}],54:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){(0,s.default)(e);var r=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?l:u,i=!t.hasOwnProperty("min")||e>=t.min,n=!t.hasOwnProperty("max")||e<=t.max,a=!t.hasOwnProperty("lt")||et.gt;return r.test(e)&&i&&n&&a&&o};var i,s=(i=e("./util/assertString"))&&i.__esModule?i:{default:i};var l=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,u=/^[-+]?[0-9]+$/;t.exports=r.default,t.exports.default=r.default},{"./util/assertString":99}],55:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){(0,n.default)(e);try{t=(0,a.default)(t,s);var r=[];t.allow_primitives&&(r=[null,!1,!0]);var i=JSON.parse(e);return r.includes(i)||!!i&&"object"===o(i)}catch(e){}return!1};var n=i(e("./util/assertString")),a=i(e("./util/merge"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="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 s={allow_primitives:!1};t.exports=r.default,t.exports.default=r.default},{"./util/assertString":99,"./util/merge":101}],56:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){(0,i.default)(e);var t=e.split("."),r=t.length;if(3=t.minLength&&r.lowercaseCount>=t.minLowercase&&r.uppercaseCount>=t.minUppercase&&r.numberCount>=t.minNumbers&&r.symbolCount>=t.minSymbols};var l=i(e("./util/merge")),u=i(e("./util/assertString"));function i(e){return e&&e.__esModule?e:{default:e}}var d=/^[A-Z]$/,f=/^[a-z]$/,c=/^[0-9]$/,p=/^[-#!$@%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,h={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};t.exports=r.default,t.exports.default=r.default},{"./util/assertString":99,"./util/merge":101}],79:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,n.default)(e),a.test(e)};var i,n=(i=e("./util/assertString"))&&i.__esModule?i:{default:i};var a=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;t.exports=r.default,t.exports.default=r.default},{"./util/assertString":99}],80:[function(e,t,r){"use strict";function o(e){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t=1e.length)&&(t=e.length);for(var r=0,i=new Array(t);ra?"".concat(o-1).concat(r):"".concat(o).concat(r);else if(r="".concat(o-1).concat(r),a-parseInt(r,10)<100)return!1}60]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,E.default)(t,S)).validate_length&&2083<=e.length)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var r,i,n,a,o,s,l,u;if(1<(l=(e=(l=(e=(l=e.split("#")).shift()).split("?")).shift()).split("://")).length){if(r=l.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(r))return!1}else{if(t.require_protocol)return!1;if("//"===e.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;l[0]=e.substr(2)}}if(""===(e=l.join("://")))return!1;if(""===(e=(l=e.split("/")).shift())&&!t.require_host)return!0;if(1<(l=e.split("@")).length){if(t.disallow_auth)return!1;if(""===l[0])return!1;if(0<=(i=l.shift()).indexOf(":")&&2e.length)&&(t=e.length);for(var r=0,i=new Array(t);r").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var i,n=(i=e("./util/assertString"))&&i.__esModule?i:{default:i};t.exports=r.default,t.exports.default=r.default},{"./util/assertString":99}],98:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.iso7064Check=function(e){for(var t=10,r=0;rt.maximum&&e.addError("MAXIMUM",[r,t.maximum],null,t):r>=t.maximum&&e.addError("MAXIMUM_EXCLUSIVE",[r,t.maximum],null,t))},exclusiveMaximum:function(){},minimum:function(e,t,r){m(this.validateOptions,["MINIMUM","MINIMUM_EXCLUSIVE"])||"number"==typeof r&&(!0!==t.exclusiveMinimum?rt.maxLength&&e.addError("MAX_LENGTH",[r.length,t.maxLength],null,t)},minLength:function(e,t,r){m(this.validateOptions,["MIN_LENGTH"])||"string"==typeof r&&h.ucs2decode(r).lengtht.items.length&&e.addError("ARRAY_ADDITIONAL_ITEMS",null,null,t)},items:function(){},maxItems:function(e,t,r){m(this.validateOptions,["ARRAY_LENGTH_LONG"])||Array.isArray(r)&&r.length>t.maxItems&&e.addError("ARRAY_LENGTH_LONG",[r.length,t.maxItems],null,t)},minItems:function(e,t,r){m(this.validateOptions,["ARRAY_LENGTH_SHORT"])||Array.isArray(r)&&r.lengtht.maxProperties&&e.addError("OBJECT_PROPERTIES_MAXIMUM",[i,t.maxProperties],null,t)}},minProperties:function(e,t,r){if(!m(this.validateOptions,["OBJECT_PROPERTIES_MINIMUM"])&&"object"===h.whatIs(r)){var i=Object.keys(r).length;i=this.reportOptions.maxErrors)){if(!t)throw new Error("No errorMessage known for code "+e);for(var a=(r=r||[]).length;a--;){var o=f.whatIs(r[a]),s="object"===o||"null"===o?JSON.stringify(r[a]):r[a];t=t.replace("{"+a+"}",s)}var l={code:e,params:r,message:t,path:this.getPath(this.options.reportPathAsArray),schemaId:this.getSchemaId()};if(l[f.schemaSymbol]=n,l[f.jsonSymbol]=this.getJson(),n&&"string"==typeof n?l.description=n:n&&"object"==typeof n&&(n.title&&(l.title=n.title),n.description&&(l.description=n.description)),null!=i){for(Array.isArray(i)||(i=[i]),l.inner=[],a=i.length;a--;)for(var u=i[a],d=u.errors.length;d--;)l.inner.push(u.errors[d]);0===l.inner.length&&(l.inner=void 0)}this.errors.push(l)}},t.exports=i}).call(this)}).call(this,e("_process"))},{"./Errors":105,"./Utils":113,_process:3,"lodash.get":1}],110:[function(e,t,r){"use strict";var n=e("lodash.isequal"),_=e("./Report"),g=e("./SchemaCompilation"),y=e("./SchemaValidation"),a=e("./Utils");function E(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function A(e,t){if("object"==typeof e&&null!==e){if(!t)return e;if(e.id&&(e.id===t||"#"===e.id[0]&&e.id.substring(1)===t))return e;var r,i;if(Array.isArray(e)){for(r=e.length;r--;)if(i=A(e[r],t))return i}else{var n=Object.keys(e);for(r=n.length;r--;){var a=n[r];if(0!==a.indexOf("__$")&&(i=A(e[a],t)))return i}}}}r.cacheSchemaByUri=function(e,t){var r=E(e);r&&(this.cache[r]=t)},r.removeFromCacheByUri=function(e){var t=E(e);t&&delete this.cache[t]},r.checkCacheForUri=function(e){var t=E(e);return!!t&&null!=this.cache[t]},r.getSchema=function(e,t){return"object"==typeof t&&(t=r.getSchemaByReference.call(this,e,t)),"string"==typeof t&&(t=r.getSchemaByUri.call(this,e,t)),t},r.getSchemaByReference=function(e,t){for(var r=this.referenceCache.length;r--;)if(n(this.referenceCache[r][0],t))return this.referenceCache[r][1];var i=a.cloneDeep(t);return this.referenceCache.push([t,i]),i},r.getSchemaByUri=function(e,t,r){var i,n,a,o=E(t),s=-1===(n=(i=t).indexOf("#"))?void 0:i.slice(n+1),l=o?this.cache[o]:r;if(l&&o&&l!==r){var u;e.path.push(o);var d=e.getAncestor(l.id);if(d)u=d;else if(u=new _(e),g.compileSchema.call(this,u,l)){var f=this.options;try{this.options=l.__$validationOptions||this.options,y.validateSchema.call(this,u,l)}finally{this.options=f}}var c=u.isValid();if(c||e.addError("REMOTE_NOT_VALID",[t],u),e.path.pop(),!c)return}if(l&&s)for(var p=s.split("/"),h=0,m=p.length;l&&h