text: /** @license @lljj/vue2-form-iview3 (c) 2020-2021 Liu.Jun License: Apache-2.0 */
  !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).vue2FormIview3={},e.Vue)}(this,(function(e,r){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(r);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)}function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n(){return(n=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function s(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function l(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?s(Object(t),!0).forEach((function(r){i(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function c(e,r){if(null==e)return{};var t,a,o=function(e,r){if(null==e)return{};var t,a,o={},i=Object.keys(e);for(a=0;a<i.length;a++)t=i[a],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)t=i[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function u(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],a=!0,o=!1,i=void 0;try{for(var n,s=e[Symbol.iterator]();!(a=(n=s.next()).done)&&(t.push(n.value),!r||t.length!==r);a=!0);}catch(e){o=!0,i=e}finally{try{a||null==s.return||s.return()}finally{if(o)throw i}}return t}(e,r)||p(e,r)||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.")}()}function d(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||p(e)||function(){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 p(e,r){if(e){if("string"==typeof e)return h(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,r):void 0}}function h(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function m(e){var r=function(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,r||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:String(r)}function f(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function g(e,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object.assign({},e);return f(r)?Object.keys(r).reduce((function(a,o){var i=e?e[o]:{},n=r[o];return e&&e.hasOwnProperty(o)&&f(n)?a[o]=g(i,n,t):t&&Array.isArray(i)&&Array.isArray(n)?a[o]=i.concat(n):a[o]=n,a}),a):a}function y(e){var r,t=e.type;return!t&&e.const?(r=e.const,Array.isArray(r)?"array":"string"==typeof r?"string":null==r?"null":"boolean"==typeof r?"boolean":isNaN(r)?"object"===o(r)?"object":"string":"number"):!t&&e.enum?"string":!t&&e.items?"array":t||!e.properties&&!e.additionalProperties?t instanceof Array&&2===t.length&&t.includes("null")?t.find((function(e){return"null"!==e})):t:"object"}function b(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===r)return!0;if("function"==typeof e||"function"==typeof r)return!0;if("object"!==o(e)||"object"!==o(r))return!1;if(null===e||null===r)return!1;if(e instanceof Date&&r instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp&&r instanceof RegExp)return e.source===r.source&&e.global===r.global&&e.multiline===r.multiline&&e.lastIndex===r.lastIndex&&e.ignoreCase===r.ignoreCase;if(v(e)||v(r)){if(!v(e)||!v(r))return!1;var i=Array.prototype.slice;return b(i.call(e),i.call(r),t,a)}if(e.constructor!==r.constructor)return!1;var n=Object.keys(e),s=Object.keys(r);if(0===n.length&&0===s.length)return!0;if(n.length!==s.length)return!1;for(var l,c=t.length;c--;)if(t[c]===e)return a[c]===r;t.push(e),a.push(r),n.sort(),s.sort();for(var u=n.length-1;u>=0;u--)if(n[u]!==s[u])return!1;for(var d=n.length-1;d>=0;d--)if(!b(e[l=n[d]],r[l],t,a))return!1;return t.pop(),a.pop(),!0}var P,w,E=(P="".concat(+new Date),w=0,function(){var e="".concat(+new Date);return e===P?w+=1:w=0,"".concat(P=e,"x").concat(w)});function S(e){if(!e)return!0;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))return!1;return!0}function F(e,r){return Object.entries(e).reduce((function(e,t){var a=u(t,2),o=a[0],i=a[1],n=r(o,i);return void 0!==n&&(e[n]=i),e}),{})}function x(e){return void 0===e?e:String(e).replace(/^./,(function(e){return e.toLocaleLowerCase()}))}function O(e,r){return e*r/function e(r,t){return 0===t?r:e(t,r%t)}(e,r)}function _(e,r){for(var t=r.split("/"),a=0;a<t.length;a+=1){if(void 0===e)return;e=""===t[a]?e:e[t[a]]}return e}function D(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e;if(!e.startsWith("#"))throw new Error("Could not find a definition for ".concat(t,"."));var a=_(r,e=decodeURIComponent(e.substring(1)));if(void 0===a)throw new Error("Could not find a definition for ".concat(t,"."));return a.hasOwnProperty("$ref")?D(a.$ref,r):a}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function $(e,r){return e(r={exports:{}},r.exports),r.exports}function k(e){return e&&e.default||e}var j,I=$((function(e,r){
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
  !function(e){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 a=r.length-1,o=1;o<a;++o)r[o]=r[o].slice(1,-1);return r[a]=r[a].slice(1),r.join("")}return r[0]}function t(e){return"(?:"+e+")"}function a(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 i(e){var a=r("[0-9]","[A-Fa-f]"),o=t(t("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+t("%[89A-Fa-f]"+a+"%"+a+a)+"|"+t("%"+a+a)),i="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",n=r("[\\:\\/\\?\\#\\[\\]\\@]",i),s=e?"[\\uE000-\\uF8FF]":"[]",l=r("[A-Za-z]","[0-9]","[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");t("[A-Za-z]"+r("[A-Za-z]","[0-9]","[\\+\\-\\.]")+"*"),t(t(o+"|"+r(l,i,"[\\:]"))+"*");var c=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]"),u=t(c+"\\."+c+"\\."+c+"\\."+c),d=t(a+"{1,4}"),p=t(t(d+"\\:"+d)+"|"+u),h=t(t(d+"\\:")+"{6}"+p),m=t("\\:\\:"+t(d+"\\:")+"{5}"+p),f=t(t(d)+"?\\:\\:"+t(d+"\\:")+"{4}"+p),v=t(t(t(d+"\\:")+"{0,1}"+d)+"?\\:\\:"+t(d+"\\:")+"{3}"+p),g=t(t(t(d+"\\:")+"{0,2}"+d)+"?\\:\\:"+t(d+"\\:")+"{2}"+p),y=t(t(t(d+"\\:")+"{0,3}"+d)+"?\\:\\:"+d+"\\:"+p),b=t(t(t(d+"\\:")+"{0,4}"+d)+"?\\:\\:"+p),P=t(t(t(d+"\\:")+"{0,5}"+d)+"?\\:\\:"+d),w=t(t(t(d+"\\:")+"{0,6}"+d)+"?\\:\\:"),E=t([h,m,f,v,g,y,b,P,w].join("|")),S=t(t(l+"|"+o)+"+");t("[vV]"+a+"+\\."+r(l,i,"[\\:]")+"+"),t(t(o+"|"+r(l,i))+"*");var F=t(o+"|"+r(l,i,"[\\:\\@]"));return t(t(o+"|"+r(l,i,"[\\@]"))+"+"),t(t(F+"|"+r("[\\/\\?]",s))+"*"),{NOT_SCHEME:new RegExp(r("[^]","[A-Za-z]","[0-9]","[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",l,i),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",l,i),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",l,i),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",l,i),"g"),NOT_QUERY:new RegExp(r("[^\\%]",l,i,"[\\:\\@\\/\\?]",s),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",l,i,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",l,i),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",l,n),"g"),PCT_ENCODED:new RegExp(o,"g"),IPV4ADDRESS:new RegExp("^("+u+")$"),IPV6ADDRESS:new RegExp("^\\[?("+E+")"+t(t("\\%25|\\%(?!"+a+"{2})")+"("+S+")")+"?\\]?$")}}var n=i(!1),s=i(!0),l=function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,r){var t=[],a=!0,o=!1,i=void 0;try{for(var n,s=e[Symbol.iterator]();!(a=(n=s.next()).done)&&(t.push(n.value),!r||t.length!==r);a=!0);}catch(e){o=!0,i=e}finally{try{!a&&s.return&&s.return()}finally{if(o)throw i}}return t}(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")},c=2147483647,u=/^xn--/,d=/[^\0-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,f=String.fromCharCode;function v(e){throw new RangeError(h[e])}function g(e,r){var t=e.split("@"),a="";t.length>1&&(a=t[0]+"@",e=t[1]);var o=function(e,r){for(var t=[],a=e.length;a--;)t[a]=r(e[a]);return t}((e=e.replace(p,".")).split("."),r).join(".");return a+o}function y(e){for(var r=[],t=0,a=e.length;t<a;){var o=e.charCodeAt(t++);if(o>=55296&&o<=56319&&t<a){var i=e.charCodeAt(t++);56320==(64512&i)?r.push(((1023&o)<<10)+(1023&i)+65536):(r.push(o),t--)}else r.push(o)}return r}var b=function(e,r){return e+22+75*(e<26)-((0!=r)<<5)},P=function(e,r,t){var a=0;for(e=t?m(e/700):e>>1,e+=m(e/r);e>455;a+=36)e=m(e/35);return m(a+36*e/(e+38))},w=function(e){var r,t=[],a=e.length,o=0,i=128,n=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var l=0;l<s;++l)e.charCodeAt(l)>=128&&v("not-basic"),t.push(e.charCodeAt(l));for(var u=s>0?s+1:0;u<a;){for(var d=o,p=1,h=36;;h+=36){u>=a&&v("invalid-input");var f=(r=e.charCodeAt(u++))-48<10?r-22:r-65<26?r-65:r-97<26?r-97:36;(f>=36||f>m((c-o)/p))&&v("overflow"),o+=f*p;var g=h<=n?1:h>=n+26?26:h-n;if(f<g)break;var y=36-g;p>m(c/y)&&v("overflow"),p*=y}var b=t.length+1;n=P(o-d,b,0==d),m(o/b)>c-i&&v("overflow"),i+=m(o/b),o%=b,t.splice(o++,0,i)}return String.fromCodePoint.apply(String,t)},E=function(e){var r=[],t=(e=y(e)).length,a=128,o=0,i=72,n=!0,s=!1,l=void 0;try{for(var u,d=e[Symbol.iterator]();!(n=(u=d.next()).done);n=!0){var p=u.value;p<128&&r.push(f(p))}}catch(e){s=!0,l=e}finally{try{!n&&d.return&&d.return()}finally{if(s)throw l}}var h=r.length,g=h;for(h&&r.push("-");g<t;){var w=c,E=!0,S=!1,F=void 0;try{for(var x,O=e[Symbol.iterator]();!(E=(x=O.next()).done);E=!0){var _=x.value;_>=a&&_<w&&(w=_)}}catch(e){S=!0,F=e}finally{try{!E&&O.return&&O.return()}finally{if(S)throw F}}var D=g+1;w-a>m((c-o)/D)&&v("overflow"),o+=(w-a)*D,a=w;var $=!0,k=!1,j=void 0;try{for(var I,A=e[Symbol.iterator]();!($=(I=A.next()).done);$=!0){var C=I.value;if(C<a&&++o>c&&v("overflow"),C==a){for(var R=o,N=36;;N+=36){var L=N<=i?1:N>=i+26?26:N-i;if(R<L)break;var T=R-L,z=36-L;r.push(f(b(L+T%z,0))),R=m(T/z)}r.push(f(b(R,0))),i=P(o,D,g==h),o=0,++g}}}catch(e){k=!0,j=e}finally{try{!$&&A.return&&A.return()}finally{if(k)throw j}}++o,++a}return r.join("")},S=function(e){return g(e,(function(e){return d.test(e)?"xn--"+E(e):e}))},F=function(e){return g(e,(function(e){return u.test(e)?w(e.slice(4).toLowerCase()):e}))},x={};function O(e){var r=e.charCodeAt(0);return r<16?"%0"+r.toString(16).toUpperCase():r<128?"%"+r.toString(16).toUpperCase():r<2048?"%"+(r>>6|192).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase():"%"+(r>>12|224).toString(16).toUpperCase()+"%"+(r>>6&63|128).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase()}function _(e){for(var r="",t=0,a=e.length;t<a;){var o=parseInt(e.substr(t+1,2),16);if(o<128)r+=String.fromCharCode(o),t+=3;else if(o>=194&&o<224){if(a-t>=6){var i=parseInt(e.substr(t+4,2),16);r+=String.fromCharCode((31&o)<<6|63&i)}else r+=e.substr(t,6);t+=6}else if(o>=224){if(a-t>=9){var n=parseInt(e.substr(t+4,2),16),s=parseInt(e.substr(t+7,2),16);r+=String.fromCharCode((15&o)<<12|(63&n)<<6|63&s)}else r+=e.substr(t,9);t+=9}else r+=e.substr(t,3),t+=3}return r}function D(e,r){function t(e){var t=_(e);return t.match(r.UNRESERVED)?t:e}return e.scheme&&(e.scheme=String(e.scheme).replace(r.PCT_ENCODED,t).toLowerCase().replace(r.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(r.PCT_ENCODED,t).replace(r.NOT_USERINFO,O).replace(r.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(r.PCT_ENCODED,t).toLowerCase().replace(r.NOT_HOST,O).replace(r.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(r.PCT_ENCODED,t).replace(e.scheme?r.NOT_PATH:r.NOT_PATH_NOSCHEME,O).replace(r.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(r.PCT_ENCODED,t).replace(r.NOT_QUERY,O).replace(r.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(r.PCT_ENCODED,t).replace(r.NOT_FRAGMENT,O).replace(r.PCT_ENCODED,o)),e}function $(e){return e.replace(/^0*(.*)/,"$1")||"0"}function k(e,r){var t=e.match(r.IPV4ADDRESS)||[],a=l(t,2)[1];return a?a.split(".").map($).join("."):e}function j(e,r){var t=e.match(r.IPV6ADDRESS)||[],a=l(t,3),o=a[1],i=a[2];if(o){for(var n=o.toLowerCase().split("::").reverse(),s=l(n,2),c=s[0],u=s[1],d=u?u.split(":").map($):[],p=c.split(":").map($),h=r.IPV4ADDRESS.test(p[p.length-1]),m=h?7:8,f=p.length-m,v=Array(m),g=0;g<m;++g)v[g]=d[g]||p[f+g]||"";h&&(v[m-1]=k(v[m-1],r));var y=v.reduce((function(e,r,t){if(!r||"0"===r){var a=e[e.length-1];a&&a.index+a.length===t?a.length++:e.push({index:t,length:1})}return e}),[]).sort((function(e,r){return r.length-e.length}))[0],b=void 0;if(y&&y.length>1){var P=v.slice(0,y.index),w=v.slice(y.index+y.length);b=P.join(":")+"::"+w.join(":")}else b=v.join(":");return i&&(b+="%"+i),b}return e}var I=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,A=void 0==="".match(/(){0}/)[1];function C(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t={},a=!1!==r.iri?s:n;"suffix"===r.reference&&(e=(r.scheme?r.scheme+":":"")+"//"+e);var o=e.match(I);if(o){A?(t.scheme=o[1],t.userinfo=o[3],t.host=o[4],t.port=parseInt(o[5],10),t.path=o[6]||"",t.query=o[7],t.fragment=o[8],isNaN(t.port)&&(t.port=o[5])):(t.scheme=o[1]||void 0,t.userinfo=-1!==e.indexOf("@")?o[3]:void 0,t.host=-1!==e.indexOf("//")?o[4]:void 0,t.port=parseInt(o[5],10),t.path=o[6]||"",t.query=-1!==e.indexOf("?")?o[7]:void 0,t.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(t.port)&&(t.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),t.host&&(t.host=j(k(t.host,a),a)),void 0!==t.scheme||void 0!==t.userinfo||void 0!==t.host||void 0!==t.port||t.path||void 0!==t.query?void 0===t.scheme?t.reference="relative":void 0===t.fragment?t.reference="absolute":t.reference="uri":t.reference="same-document",r.reference&&"suffix"!==r.reference&&r.reference!==t.reference&&(t.error=t.error||"URI is not a "+r.reference+" reference.");var i=x[(r.scheme||t.scheme||"").toLowerCase()];if(r.unicodeSupport||i&&i.unicodeSupport)D(t,a);else{if(t.host&&(r.domainHost||i&&i.domainHost))try{t.host=S(t.host.replace(a.PCT_ENCODED,_).toLowerCase())}catch(e){t.error=t.error||"Host's domain name can not be converted to ASCII via punycode: "+e}D(t,n)}i&&i.parse&&i.parse(t,r)}else t.error=t.error||"URI can not be parsed.";return t}function R(e,r){var t=!1!==r.iri?s:n,a=[];return void 0!==e.userinfo&&(a.push(e.userinfo),a.push("@")),void 0!==e.host&&a.push(j(k(String(e.host),t),t).replace(t.IPV6ADDRESS,(function(e,r,t){return"["+r+(t?"%25"+t:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(a.push(":"),a.push(String(e.port))),a.length?a.join(""):void 0}var N=/^\.\.?\//,L=/^\/\.(\/|$)/,T=/^\/\.\.(\/|$)/,z=/^\/?(?:.|\n)*?(?=\/|$)/;function V(e){for(var r=[];e.length;)if(e.match(N))e=e.replace(N,"");else if(e.match(L))e=e.replace(L,"/");else if(e.match(T))e=e.replace(T,"/"),r.pop();else if("."===e||".."===e)e="";else{var t=e.match(z);if(!t)throw new Error("Unexpected dot segment condition");var a=t[0];e=e.slice(a.length),r.push(a)}return r.join("")}function q(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=r.iri?s:n,a=[],o=x[(r.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,r),e.host)if(t.IPV6ADDRESS.test(e.host));else if(r.domainHost||o&&o.domainHost)try{e.host=r.iri?F(e.host):S(e.host.replace(t.PCT_ENCODED,_).toLowerCase())}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(r.iri?"Unicode":"ASCII")+" via punycode: "+t}D(e,t),"suffix"!==r.reference&&e.scheme&&(a.push(e.scheme),a.push(":"));var i=R(e,r);if(void 0!==i&&("suffix"!==r.reference&&a.push("//"),a.push(i),e.path&&"/"!==e.path.charAt(0)&&a.push("/")),void 0!==e.path){var l=e.path;r.absolutePath||o&&o.absolutePath||(l=V(l)),void 0===i&&(l=l.replace(/^\/\//,"/%2F")),a.push(l)}return void 0!==e.query&&(a.push("?"),a.push(e.query)),void 0!==e.fragment&&(a.push("#"),a.push(e.fragment)),a.join("")}function M(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments[3],o={};return a||(e=C(q(e,t),t),r=C(q(r,t),t)),!(t=t||{}).tolerant&&r.scheme?(o.scheme=r.scheme,o.userinfo=r.userinfo,o.host=r.host,o.port=r.port,o.path=V(r.path||""),o.query=r.query):(void 0!==r.userinfo||void 0!==r.host||void 0!==r.port?(o.userinfo=r.userinfo,o.host=r.host,o.port=r.port,o.path=V(r.path||""),o.query=r.query):(r.path?("/"===r.path.charAt(0)?o.path=V(r.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path:o.path=r.path:o.path="/"+r.path,o.path=V(o.path)),o.query=r.query):(o.path=e.path,void 0!==r.query?o.query=r.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=r.fragment,o}function W(e,r){return e&&e.toString().replace(r&&r.iri?s.PCT_ENCODED:n.PCT_ENCODED,_)}var B={scheme:"http",domainHost:!0,parse:function(e,r){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,r){var t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},U={scheme:"https",domainHost:B.domainHost,parse:B.parse,serialize:B.serialize};function Q(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var H={scheme:"ws",domainHost:!0,parse:function(e,r){var t=e;return t.secure=Q(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t},serialize:function(e,r){if(e.port!==(Q(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var t=e.resourceName.split("?"),a=l(t,2),o=a[0],i=a[1];e.path=o&&"/"!==o?o:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},K={scheme:"wss",domainHost:H.domainHost,parse:H.parse,serialize:H.serialize},G={},J="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Z="[0-9A-Fa-f]",Y=t(t("%[EFef]"+Z+"%"+Z+Z+"%"+Z+Z)+"|"+t("%[89A-Fa-f]"+Z+"%"+Z+Z)+"|"+t("%"+Z+Z)),X=r("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ee=new RegExp(J,"g"),re=new RegExp(Y,"g"),te=new RegExp(r("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',X),"g"),ae=new RegExp(r("[^]",J,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),oe=ae;function ie(e){var r=_(e);return r.match(ee)?r:e}var ne={scheme:"mailto",parse:function(e,r){var t=e,a=t.to=t.path?t.path.split(","):[];if(t.path=void 0,t.query){for(var o=!1,i={},n=t.query.split("&"),s=0,l=n.length;s<l;++s){var c=n[s].split("=");switch(c[0]){case"to":for(var u=c[1].split(","),d=0,p=u.length;d<p;++d)a.push(u[d]);break;case"subject":t.subject=W(c[1],r);break;case"body":t.body=W(c[1],r);break;default:o=!0,i[W(c[0],r)]=W(c[1],r)}}o&&(t.headers=i)}t.query=void 0;for(var h=0,m=a.length;h<m;++h){var f=a[h].split("@");if(f[0]=W(f[0]),r.unicodeSupport)f[1]=W(f[1],r).toLowerCase();else try{f[1]=S(W(f[1],r).toLowerCase())}catch(e){t.error=t.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}a[h]=f.join("@")}return t},serialize:function(e,r){var t,a=e,i=null!=(t=e.to)?t instanceof Array?t:"number"!=typeof t.length||t.split||t.setInterval||t.call?[t]:Array.prototype.slice.call(t):[];if(i){for(var n=0,s=i.length;n<s;++n){var l=String(i[n]),c=l.lastIndexOf("@"),u=l.slice(0,c).replace(re,ie).replace(re,o).replace(te,O),d=l.slice(c+1);try{d=r.iri?F(d):S(W(d,r).toLowerCase())}catch(e){a.error=a.error||"Email address's domain name can not be converted to "+(r.iri?"Unicode":"ASCII")+" via punycode: "+e}i[n]=u+"@"+d}a.path=i.join(",")}var p=e.headers=e.headers||{};e.subject&&(p.subject=e.subject),e.body&&(p.body=e.body);var h=[];for(var m in p)p[m]!==G[m]&&h.push(m.replace(re,ie).replace(re,o).replace(ae,O)+"="+p[m].replace(re,ie).replace(re,o).replace(oe,O));return h.length&&(a.query=h.join("&")),a}},se=/^([^\:]+)\:(.*)/,le={scheme:"urn",parse:function(e,r){var t=e.path&&e.path.match(se),a=e;if(t){var o=r.scheme||a.scheme||"urn",i=t[1].toLowerCase(),n=t[2],s=o+":"+(r.nid||i),l=x[s];a.nid=i,a.nss=n,a.path=void 0,l&&(a=l.parse(a,r))}else a.error=a.error||"URN can not be parsed.";return a},serialize:function(e,r){var t=r.scheme||e.scheme||"urn",a=e.nid,o=t+":"+(r.nid||a),i=x[o];i&&(e=i.serialize(e,r));var n=e,s=e.nss;return n.path=(a||r.nid)+":"+s,n}},ce=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ue={scheme:"urn:uuid",parse:function(e,r){var t=e;return t.uuid=t.nss,t.nss=void 0,r.tolerant||t.uuid&&t.uuid.match(ce)||(t.error=t.error||"UUID is not valid."),t},serialize:function(e,r){var t=e;return t.nss=(e.uuid||"").toLowerCase(),t}};x[B.scheme]=B,x[U.scheme]=U,x[H.scheme]=H,x[K.scheme]=K,x[ne.scheme]=ne,x[le.scheme]=le,x[ue.scheme]=ue,e.SCHEMES=x,e.pctEncChar=O,e.pctDecChars=_,e.parse=C,e.removeDotSegments=V,e.serialize=q,e.resolveComponents=M,e.resolve=function(e,r,t){var a=function(e,r){var t=e;if(r)for(var a in r)t[a]=r[a];return t}({scheme:"null"},t);return q(M(C(e,a),C(r,a),a,!0),a)},e.normalize=function(e,r){return"string"==typeof e?e=q(C(e,r),r):"object"===a(e)&&(e=C(q(e,r),r)),e},e.equal=function(e,r,t){return"string"==typeof e?e=q(C(e,t),t):"object"===a(e)&&(e=q(e,t)),"string"==typeof r?r=q(C(r,t),t):"object"===a(r)&&(r=q(r,t)),e===r},e.escapeComponent=function(e,r){return e&&e.toString().replace(r&&r.iri?s.ESCAPE:n.ESCAPE,O)},e.unescapeComponent=W,Object.defineProperty(e,"__esModule",{value:!0})}(r)}));(j=I)&&j.__esModule&&Object.prototype.hasOwnProperty.call(j,"default")&&j.default;var A=function e(r,t){if(r===t)return!0;if(r&&t&&"object"==typeof r&&"object"==typeof t){if(r.constructor!==t.constructor)return!1;var a,o,i;if(Array.isArray(r)){if((a=r.length)!=t.length)return!1;for(o=a;0!=o--;)if(!e(r[o],t[o]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if((a=(i=Object.keys(r)).length)!==Object.keys(t).length)return!1;for(o=a;0!=o--;)if(!Object.prototype.hasOwnProperty.call(t,i[o]))return!1;for(o=a;0!=o--;){var n=i[o];if(!e(r[n],t[n]))return!1}return!0}return r!=r&&t!=t},C={copy:function(e,r){for(var t in r=r||{},e)r[t]=e[t];return r},checkDataType:R,checkDataTypes:function(e,r,t){switch(e.length){case 1:return R(e[0],r,t,!0);default:var a="",o=L(e);for(var i in o.array&&o.object&&(a=o.null?"(":"(!"+r+" || ",a+="typeof "+r+' !== "object")',delete o.null,delete o.array,delete o.object),o.number&&delete o.integer,o)a+=(a?" && ":"")+R(i,r,t,!0);return a}},coerceToTypes:function(e,r){if(Array.isArray(r)){for(var t=[],a=0;a<r.length;a++){var o=r[a];(N[o]||"array"===e&&"array"===o)&&(t[t.length]=o)}if(t.length)return t}else{if(N[r])return[r];if("array"===e&&"array"===r)return["array"]}},toHash:L,getProperty:V,escapeQuotes:q,equal:A,ucs2length:function(e){for(var r,t=0,a=e.length,o=0;o<a;)t++,(r=e.charCodeAt(o++))>=55296&&r<=56319&&o<a&&56320==(64512&(r=e.charCodeAt(o)))&&o++;return t},varOccurences:function(e,r){r+="[^0-9]";var t=e.match(new RegExp(r,"g"));return t?t.length:0},varReplace:function(e,r,t){return r+="([^0-9])",t=t.replace(/\$/g,"$$$$"),e.replace(new RegExp(r,"g"),t+"$1")},schemaHasRules:function(e,r){if("boolean"==typeof e)return!e;for(var t in e)if(r[t])return!0},schemaHasRulesExcept:function(e,r,t){if("boolean"==typeof e)return!e&&"not"!=t;for(var a in e)if(a!=t&&r[a])return!0},schemaUnknownRules:function(e,r){if("boolean"==typeof e)return;for(var t in e)if(!r[t])return t},toQuotedString:M,getPathExpr:function(e,r,t,a){return U(e,t?"'/' + "+r+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+r+" + ']'":"'[\\'' + "+r+" + '\\']'")},getPath:function(e,r,t){var a=M(t?"/"+Q(r):V(r));return U(e,a)},getData:function(e,r,t){var a,o,i,n;if(""===e)return"rootData";if("/"==e[0]){if(!W.test(e))throw new Error("Invalid JSON-pointer: "+e);o=e,i="rootData"}else{if(!(n=e.match(B)))throw new Error("Invalid JSON-pointer: "+e);if(a=+n[1],"#"==(o=n[2])){if(a>=r)throw new Error("Cannot access property/index "+a+" levels up, current level is "+r);return t[r-a]}if(a>r)throw new Error("Cannot access data "+a+" levels up, current level is "+r);if(i="data"+(r-a||""),!o)return i}for(var s=i,l=o.split("/"),c=0;c<l.length;c++){var u=l[c];u&&(i+=V(H(u)),s+=" && "+i)}return s},unescapeFragment:function(e){return H(decodeURIComponent(e))},unescapeJsonPointer:H,escapeFragment:function(e){return encodeURIComponent(Q(e))},escapeJsonPointer:Q};function R(e,r,t,a){var o=a?" !== ":" === ",i=a?" || ":" && ",n=a?"!":"",s=a?"":"!";switch(e){case"null":return r+o+"null";case"array":return n+"Array.isArray("+r+")";case"object":return"("+n+r+i+"typeof "+r+o+'"object"'+i+s+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+o+'"number"'+i+s+"("+r+" % 1)"+i+r+o+r+(t?i+n+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+o+'"'+e+'"'+(t?i+n+"isFinite("+r+")":"")+")";default:return"typeof "+r+o+'"'+e+'"'}}var N=L(["string","number","integer","boolean","null"]);function L(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!0;return r}var T=/^[a-z$_][a-z$_0-9]*$/i,z=/'|\\/g;function V(e){return"number"==typeof e?"["+e+"]":T.test(e)?"."+e:"['"+q(e)+"']"}function q(e){return e.replace(z,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function M(e){return"'"+q(e)+"'"}var W=/^\/(?:[^~]|~0|~1)*$/,B=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function U(e,r){return'""'==e?r:(e+" + "+r).replace(/([^\\])' \+ '/g,"$1")}function Q(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function H(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}var K=function(e){C.copy(e,this)};var G=$((function(e){var r=e.exports=function(e,t,a){"function"==typeof t&&(a=t,t={}),function e(t,a,o,i,n,s,l,c,u,d){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var p in a(i,n,s,l,c,u,d),i){var h=i[p];if(Array.isArray(h)){if(p in r.arrayKeywords)for(var m=0;m<h.length;m++)e(t,a,o,h[m],n+"/"+p+"/"+m,s,n,p,i,m)}else if(p in r.propsKeywords){if(h&&"object"==typeof h)for(var f in h)e(t,a,o,h[f],n+"/"+p+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),s,n,p,i,f)}else(p in r.keywords||t.allKeys&&!(p in r.skipKeywords))&&e(t,a,o,h,n+"/"+p,s,n,p,i)}o(i,n,s,l,c,u,d)}}(t,"function"==typeof(a=t.cb||a)?a:a.pre||function(){},a.post||function(){},e,"",e)};r.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},r.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},r.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},r.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}})),J=Z;function Z(e,r,t){var a=this._refs[t];if("string"==typeof a){if(!this._refs[a])return Z.call(this,e,r,a);a=this._refs[a]}if((a=a||this._schemas[t])instanceof K)return ae(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var o,i,n,s=Y.call(this,r,t);return s&&(o=s.schema,r=s.root,n=s.baseId),o instanceof K?i=o.validate||e.call(this,o.schema,r,void 0,n):void 0!==o&&(i=ae(o,this._opts.inlineRefs)?o:e.call(this,o,r,void 0,n)),i}function Y(e,r){var t=I.parse(r),a=ie(t),o=oe(this._getId(e.schema));if(0===Object.keys(e.schema).length||a!==o){var i=se(a),n=this._refs[i];if("string"==typeof n)return X.call(this,e,n,t);if(n instanceof K)n.validate||this._compile(n),e=n;else{if(!((n=this._schemas[i])instanceof K))return;if(n.validate||this._compile(n),i==se(r))return{schema:n,root:e,baseId:o};e=n}if(!e.schema)return;o=oe(this._getId(e.schema))}return re.call(this,t,o,e.schema,e)}function X(e,r,t){var a=Y.call(this,e,r);if(a){var o=a.schema,i=a.baseId;e=a.root;var n=this._getId(o);return n&&(i=le(i,n)),re.call(this,t,i,o,e)}}Z.normalizeId=se,Z.fullPath=oe,Z.url=le,Z.ids=function(e){var r=se(this._getId(e)),t={"":r},a={"":oe(r,!1)},o={},i=this;return G(e,{allKeys:!0},(function(e,r,n,s,l,c,u){if(""!==r){var d=i._getId(e),p=t[s],h=a[s]+"/"+l;if(void 0!==u&&(h+="/"+("number"==typeof u?u:C.escapeFragment(u))),"string"==typeof d){d=p=se(p?I.resolve(p,d):d);var m=i._refs[d];if("string"==typeof m&&(m=i._refs[m]),m&&m.schema){if(!A(e,m.schema))throw new Error('id "'+d+'" resolves to more than one schema')}else if(d!=se(h))if("#"==d[0]){if(o[d]&&!A(e,o[d]))throw new Error('id "'+d+'" resolves to more than one schema');o[d]=e}else i._refs[d]=h}t[r]=p,a[r]=h}})),o},Z.inlineRef=ae,Z.schema=Y;var ee=C.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function re(e,r,t,a){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var o=e.fragment.split("/"),i=1;i<o.length;i++){var n=o[i];if(n){if(void 0===(t=t[n=C.unescapeFragment(n)]))break;var s;if(!ee[n]&&((s=this._getId(t))&&(r=le(r,s)),t.$ref)){var l=le(r,t.$ref),c=Y.call(this,a,l);c&&(t=c.schema,a=c.root,r=c.baseId)}}}return void 0!==t&&t!==a.schema?{schema:t,root:a,baseId:r}:void 0}}var te=C.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function ae(e,r){return!1!==r&&(void 0===r||!0===r?function e(r){var t;if(Array.isArray(r)){for(var a=0;a<r.length;a++)if("object"==typeof(t=r[a])&&!e(t))return!1}else for(var o in r){if("$ref"==o)return!1;if("object"==typeof(t=r[o])&&!e(t))return!1}return!0}(e):r?function e(r){var t,a=0;if(Array.isArray(r)){for(var o=0;o<r.length;o++)if("object"==typeof(t=r[o])&&(a+=e(t)),a==1/0)return 1/0}else for(var i in r){if("$ref"==i)return 1/0;if(te[i])a++;else if("object"==typeof(t=r[i])&&(a+=e(t)+1),a==1/0)return 1/0}return a}(e)<=r:void 0)}function oe(e,r){return!1!==r&&(e=se(e)),ie(I.parse(e))}function ie(e){return I.serialize(e).split("#")[0]+"#"}var ne=/#\/?$/;function se(e){return e?e.replace(ne,""):""}function le(e,r){return r=se(r),I.resolve(e,r)}var ce={Validation:de((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:de(ue)};function ue(e,r,t){this.message=t||ue.message(e,r),this.missingRef=J.url(e,r),this.missingSchema=J.normalizeId(J.fullPath(this.missingRef))}function de(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}ue.message=function(e,r){return"can't resolve reference "+r+" from id "+e};var pe=function(e,r){r||(r={}),"function"==typeof r&&(r={cmp:r});var t="boolean"==typeof r.cycles&&r.cycles,a=r.cmp&&function(e){return function(r){return function(t,a){var o={key:t,value:r[t]},i={key:a,value:r[a]};return e(o,i)}}}(r.cmp),o=[];return function e(r){if(r&&r.toJSON&&"function"==typeof r.toJSON&&(r=r.toJSON()),void 0!==r){if("number"==typeof r)return isFinite(r)?""+r:"null";if("object"!=typeof r)return JSON.stringify(r);var i,n;if(Array.isArray(r)){for(n="[",i=0;i<r.length;i++)i&&(n+=","),n+=e(r[i])||"null";return n+"]"}if(null===r)return"null";if(-1!==o.indexOf(r)){if(t)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(r)-1,l=Object.keys(r).sort(a&&a(r));for(n="",i=0;i<l.length;i++){var c=l[i],u=e(r[c]);u&&(n&&(n+=","),n+=JSON.stringify(c)+":"+u)}return o.splice(s,1),"{"+n+"}"}}(e)},he=function(e,r,t){var a="",o=!0===e.schema.$async,i=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),n=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var l="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(l);e.logger.warn(l)}}if(e.isTop&&(a+=" var validate = ",o&&(e.async=!0,a+="async "),a+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",n&&(e.opts.sourceCode||e.opts.processCode)&&(a+=" /*# sourceURL="+n+" */ ")),"boolean"==typeof e.schema||!i&&!e.schema.$ref){var c=e.level,u=e.dataLevel,d=e.schema["false schema"],p=e.schemaPath+e.util.getProperty("false schema"),h=e.errSchemaPath+"/false schema",m=!e.opts.allErrors,f="data"+(u||""),v="valid"+c;if(!1===e.schema){e.isTop?m=!0:a+=" var "+v+" = false; ",(J=J||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: 'boolean schema is false' "),e.opts.verbose&&(a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";var g=a;a=J.pop(),!e.compositeRule&&m?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?a+=o?" return data; ":" validate.errors = null; return true; ":a+=" var "+v+" = true; ";return e.isTop&&(a+=" }; return validate; "),a}if(e.isTop){var y=e.isTop;c=e.level=0,u=e.dataLevel=0,f="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 b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}a+=" var vErrors = null; ",a+=" var errors = 0;     ",a+=" if (rootData === undefined) rootData = data; "}else{c=e.level,f="data"+((u=e.dataLevel)||"");if(n&&(e.baseId=e.resolve.url(e.baseId,n)),o&&!e.async)throw new Error("async schema in sync schema");a+=" var errs_"+c+" = errors;"}v="valid"+c,m=!e.opts.allErrors;var P="",w="",E=e.schema.type,S=Array.isArray(E);if(E&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==E.indexOf("null")&&(E=E.concat("null")):"null"!=E&&(E=[E,"null"],S=!0)),S&&1==E.length&&(E=E[0],S=!1),e.schema.$ref&&i){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&&(i=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(a+=" "+e.RULES.all.$comment.code(e,"$comment")),E){if(e.opts.coerceTypes)var F=e.util.coerceToTypes(e.opts.coerceTypes,E);var x=e.RULES.types[E];if(F||S||!0===x||x&&!Z(x)){p=e.schemaPath+".type",h=e.errSchemaPath+"/type",p=e.schemaPath+".type",h=e.errSchemaPath+"/type";var O=S?"checkDataTypes":"checkDataType";if(a+=" if ("+e.util[O](E,f,e.opts.strictNumbers,!0)+") { ",F){var _="dataType"+c,D="coerced"+c;a+=" var "+_+" = typeof "+f+"; var "+D+" = undefined; ","array"==e.opts.coerceTypes&&(a+=" if ("+_+" == 'object' && Array.isArray("+f+") && "+f+".length == 1) { "+f+" = "+f+"[0]; "+_+" = typeof "+f+"; if ("+e.util.checkDataType(e.schema.type,f,e.opts.strictNumbers)+") "+D+" = "+f+"; } "),a+=" if ("+D+" !== undefined) ; ";var $=F;if($)for(var k,j=-1,I=$.length-1;j<I;)"string"==(k=$[j+=1])?a+=" else if ("+_+" == 'number' || "+_+" == 'boolean') "+D+" = '' + "+f+"; else if ("+f+" === null) "+D+" = ''; ":"number"==k||"integer"==k?(a+=" else if ("+_+" == 'boolean' || "+f+" === null || ("+_+" == 'string' && "+f+" && "+f+" == +"+f+" ","integer"==k&&(a+=" && !("+f+" % 1)"),a+=")) "+D+" = +"+f+"; "):"boolean"==k?a+=" else if ("+f+" === 'false' || "+f+" === 0 || "+f+" === null) "+D+" = false; else if ("+f+" === 'true' || "+f+" === 1) "+D+" = true; ":"null"==k?a+=" else if ("+f+" === '' || "+f+" === 0 || "+f+" === false) "+D+" = null; ":"array"==e.opts.coerceTypes&&"array"==k&&(a+=" else if ("+_+" == 'string' || "+_+" == 'number' || "+_+" == 'boolean' || "+f+" == null) "+D+" = ["+f+"]; ");a+=" else {   ",(J=J||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",a+=S?""+E.join(","):""+E,a+="' } ",!1!==e.opts.messages&&(a+=" , message: 'should be ",a+=S?""+E.join(","):""+E,a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";g=a;a=J.pop(),!e.compositeRule&&m?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } if ("+D+" !== undefined) {  ";var A=u?"data"+(u-1||""):"parentData";a+=" "+f+" = "+D+"; ",u||(a+="if ("+A+" !== undefined)"),a+=" "+A+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+D+"; } "}else{(J=J||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",a+=S?""+E.join(","):""+E,a+="' } ",!1!==e.opts.messages&&(a+=" , message: 'should be ",a+=S?""+E.join(","):""+E,a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";g=a;a=J.pop(),!e.compositeRule&&m?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } "}}if(e.schema.$ref&&!i)a+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",m&&(a+=" } if (errors === ",a+=y?"0":"errs_"+c,a+=") { ",w+="}");else{var C=e.RULES;if(C)for(var R=-1,N=C.length-1;R<N;)if(Z(x=C[R+=1])){if(x.type&&(a+=" if ("+e.util.checkDataType(x.type,f,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==x.type&&e.schema.properties){d=e.schema.properties;var L=Object.keys(d);if(L)for(var T,z=-1,V=L.length-1;z<V;){if(void 0!==(W=d[T=L[z+=1]]).default){var q=f+e.util.getProperty(T);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+q;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else a+=" if ("+q+" === undefined ","empty"==e.opts.useDefaults&&(a+=" || "+q+" === null || "+q+" === '' "),a+=" ) "+q+" = ","shared"==e.opts.useDefaults?a+=" "+e.useDefault(W.default)+" ":a+=" "+JSON.stringify(W.default)+" ",a+="; "}}}else if("array"==x.type&&Array.isArray(e.schema.items)){var M=e.schema.items;if(M){j=-1;for(var W,B=M.length-1;j<B;)if(void 0!==(W=M[j+=1]).default){q=f+"["+j+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+q;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else a+=" if ("+q+" === undefined ","empty"==e.opts.useDefaults&&(a+=" || "+q+" === null || "+q+" === '' "),a+=" ) "+q+" = ","shared"==e.opts.useDefaults?a+=" "+e.useDefault(W.default)+" ":a+=" "+JSON.stringify(W.default)+" ",a+="; "}}}var U=x.rules;if(U)for(var Q,H=-1,K=U.length-1;H<K;)if(Y(Q=U[H+=1])){var G=Q.code(e,Q.keyword,x.type);G&&(a+=" "+G+" ",m&&(P+="}"))}if(m&&(a+=" "+P+" ",P=""),x.type&&(a+=" } ",E&&E===x.type&&!F)){a+=" else { ";var J;p=e.schemaPath+".type",h=e.errSchemaPath+"/type";(J=J||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",a+=S?""+E.join(","):""+E,a+="' } ",!1!==e.opts.messages&&(a+=" , message: 'should be ",a+=S?""+E.join(","):""+E,a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";g=a;a=J.pop(),!e.compositeRule&&m?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } "}m&&(a+=" if (errors === ",a+=y?"0":"errs_"+c,a+=") { ",w+="}")}}function Z(e){for(var r=e.rules,t=0;t<r.length;t++)if(Y(r[t]))return!0}function Y(r){return void 0!==e.schema[r.keyword]||r.implements&&function(r){for(var t=r.implements,a=0;a<t.length;a++)if(void 0!==e.schema[t[a]])return!0}(r)}return m&&(a+=" "+w+" "),y?(o?(a+=" if (errors === 0) return data;           ",a+=" else throw new ValidationError(vErrors); "):(a+=" validate.errors = vErrors; ",a+=" return errors === 0;       "),a+=" }; return validate;"):a+=" var "+v+" = errors === errs_"+c+";",a},me=C.ucs2length,fe=ce.Validation,ve=function e(r,t,a,o){var i=this,n=this._opts,s=[void 0],l={},c=[],u={},d=[],p={},h=[];t=t||{schema:r,refVal:s,refs:l};var m=ge.call(this,r,t,o),f=this._compilations[m.index];if(m.compiling)return f.callValidate=function e(){var r=f.validate,t=r.apply(this,arguments);return e.errors=r.errors,t};var v=this._formats,g=this.RULES;try{var y=P(r,t,a,o);f.validate=y;var b=f.callValidate;return b&&(b.schema=y.schema,b.errors=null,b.refs=y.refs,b.refVal=y.refVal,b.root=y.root,b.$async=y.$async,n.sourceCode&&(b.source=y.source)),y}finally{ye.call(this,r,t,o)}function P(r,a,o,u){var p=!a||a&&a.schema==r;if(a.schema!=t.schema)return e.call(i,r,a,o,u);var m,f=!0===r.$async,y=he({isTop:!0,schema:r,isRoot:p,baseId:u,root:a,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:ce.MissingRef,RULES:g,validate:he,util:C,resolve:J,resolveRef:w,usePattern:F,useDefault:x,useCustomRule:O,opts:n,formats:v,logger:i.logger,self:i});y=Fe(s,Ee)+Fe(c,Pe)+Fe(d,we)+Fe(h,Se)+y,n.processCode&&(y=n.processCode(y,r));try{m=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",y)(i,g,v,t,s,d,h,A,me,fe),s[0]=m}catch(e){throw i.logger.error("Error compiling schema, function code:",y),e}return m.schema=r,m.errors=null,m.refs=l,m.refVal=s,m.root=p?m:a,f&&(m.$async=!0),!0===n.sourceCode&&(m.source={code:y,patterns:c,defaults:d}),m}function w(r,o,c){o=J.url(r,o);var u,d,p=l[o];if(void 0!==p)return S(u=s[p],d="refVal["+p+"]");if(!c&&t.refs){var h=t.refs[o];if(void 0!==h)return S(u=t.refVal[h],d=E(o,u))}d=E(o);var m=J.call(i,P,t,o);if(void 0===m){var f=a&&a[o];f&&(m=J.inlineRef(f,n.inlineRefs)?f:e.call(i,f,t,a,r))}if(void 0!==m)return function(e,r){var t=l[e];s[t]=r}(o,m),S(m,d);!function(e){delete l[e]}(o)}function E(e,r){var t=s.length;return s[t]=r,l[e]=t,"refVal"+t}function S(e,r){return"object"==typeof e||"boolean"==typeof e?{code:r,schema:e,inline:!0}:{code:r,$async:e&&!!e.$async}}function F(e){var r=u[e];return void 0===r&&(r=u[e]=c.length,c[r]=e),"pattern"+r}function x(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return C.toQuotedString(e);case"object":if(null===e)return"null";var r=pe(e),t=p[r];return void 0===t&&(t=p[r]=d.length,d[t]=e),"default"+t}}function O(e,r,t,a){if(!1!==i._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 s=e.definition.validateSchema;if(s)if(!s(r)){var l="keyword schema is invalid: "+i.errorsText(s.errors);if("log"!=i._opts.validateSchema)throw new Error(l);i.logger.error(l)}}var c,u=e.definition.compile,d=e.definition.inline,p=e.definition.macro;if(u)c=u.call(i,r,t,a);else if(p)c=p.call(i,r,t,a),!1!==n.validateSchema&&i.validateSchema(c,!0);else if(d)c=d.call(i,a,e.keyword,r,t);else if(!(c=e.definition.validate))return;if(void 0===c)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var m=h.length;return h[m]=c,{code:"customRule"+m,validate:c}}};function ge(e,r,t){var a=be.call(this,e,r,t);return a>=0?{index:a,compiling:!0}:(a=this._compilations.length,this._compilations[a]={schema:e,root:r,baseId:t},{index:a,compiling:!1})}function ye(e,r,t){var a=be.call(this,e,r,t);a>=0&&this._compilations.splice(a,1)}function be(e,r,t){for(var a=0;a<this._compilations.length;a++){var o=this._compilations[a];if(o.schema==e&&o.root==r&&o.baseId==t)return a}return-1}function Pe(e,r){return"var pattern"+e+" = new RegExp("+C.toQuotedString(r[e])+");"}function we(e){return"var default"+e+" = defaults["+e+"];"}function Ee(e,r){return void 0===r[e]?"":"var refVal"+e+" = refVal["+e+"];"}function Se(e){return"var customRule"+e+" = customRules["+e+"];"}function Fe(e,r){if(!e.length)return"";for(var t="",a=0;a<e.length;a++)t+=r(a,e);return t}var xe=$((function(e){var r=e.exports=function(){this._cache={}};r.prototype.put=function(e,r){this._cache[e]=r},r.prototype.get=function(e){return this._cache[e]},r.prototype.del=function(e){delete this._cache[e]},r.prototype.clear=function(){this._cache={}}})),Oe=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,_e=[0,31,28,31,30,31,30,31,31,30,31,30,31],De=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,$e=/^(?=.{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,ke=/^(?:[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,je=/^(?:(?:[^\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,Ie=/^(?:(?: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])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\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])*)?$/i,Ae=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Ce=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Re=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Ne=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,Le=Te;function Te(e){return e="full"==e?"full":"fast",C.copy(Te[e])}function ze(e){var r=e.match(Oe);if(!r)return!1;var t=+r[1],a=+r[2],o=+r[3];return a>=1&&a<=12&&o>=1&&o<=(2==a&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(t)?29:_e[a])}function Ve(e,r){var t=e.match(De);if(!t)return!1;var a=t[1],o=t[2],i=t[3],n=t[5];return(a<=23&&o<=59&&i<=59||23==a&&59==o&&60==i)&&(!r||n)}Te.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":je,url:Ie,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:$e,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Be,uuid:Ae,"json-pointer":Ce,"json-pointer-uri-fragment":Re,"relative-json-pointer":Ne},Te.full={date:ze,time:Ve,"date-time":function(e){var r=e.split(qe);return 2==r.length&&ze(r[0])&&Ve(r[1],!0)},uri:function(e){return Me.test(e)&&ke.test(e)},"uri-reference":/^(?:[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,"uri-template":je,url:Ie,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:$e,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Be,uuid:Ae,"json-pointer":Ce,"json-pointer-uri-fragment":Re,"relative-json-pointer":Ne};var qe=/t|\s/i;var Me=/\/|:/;var We=/[^\\]\\Z/;function Be(e){if(We.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}var Ue=function(e,r,t){var a,o=" ",i=e.level,n=e.dataLevel,s=e.schema[r],l=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(n||""),p=e.opts.$data&&s&&s.$data;p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ",a="schema"+i):a=s;var h="maximum"==r,m=h?"exclusiveMaximum":"exclusiveMinimum",f=e.schema[m],v=e.opts.$data&&f&&f.$data,g=h?"<":">",y=h?">":"<",b=void 0;if(!p&&"number"!=typeof s&&void 0!==s)throw new Error(r+" must be number");if(!v&&void 0!==f&&"number"!=typeof f&&"boolean"!=typeof f)throw new Error(m+" must be number or boolean");if(v){var P=e.util.getData(f.$data,n,e.dataPathArr),w="exclusive"+i,E="exclType"+i,S="exclIsNumber"+i,F="' + "+(_="op"+i)+" + '";o+=" var schemaExcl"+i+" = "+P+"; ",o+=" var "+w+"; var "+E+" = typeof "+(P="schemaExcl"+i)+"; if ("+E+" != 'boolean' && "+E+" != 'undefined' && "+E+" != 'number') { ";var x;b=m;(x=x||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: '"+m+" should be boolean' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var O=o;o=x.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+O+"]); ":o+=" validate.errors = ["+O+"]; return false; ":o+=" var err = "+O+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else if ( ",p&&(o+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),o+=" "+E+" == 'number' ? ( ("+w+" = "+a+" === undefined || "+P+" "+g+"= "+a+") ? "+d+" "+y+"= "+P+" : "+d+" "+y+" "+a+" ) : ( ("+w+" = "+P+" === true) ? "+d+" "+y+"= "+a+" : "+d+" "+y+" "+a+" ) || "+d+" !== "+d+") { var op"+i+" = "+w+" ? '"+g+"' : '"+g+"='; ",void 0===s&&(b=m,c=e.errSchemaPath+"/"+m,a=P,p=v)}else{F=g;if((S="number"==typeof f)&&p){var _="'"+F+"'";o+=" if ( ",p&&(o+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),o+=" ( "+a+" === undefined || "+f+" "+g+"= "+a+" ? "+d+" "+y+"= "+f+" : "+d+" "+y+" "+a+" ) || "+d+" !== "+d+") { "}else{S&&void 0===s?(w=!0,b=m,c=e.errSchemaPath+"/"+m,a=f,y+="="):(S&&(a=Math[h?"min":"max"](f,s)),f===(!S||a)?(w=!0,b=m,c=e.errSchemaPath+"/"+m,y+="="):(w=!1,F+="="));_="'"+F+"'";o+=" if ( ",p&&(o+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),o+=" "+d+" "+y+" "+a+" || "+d+" !== "+d+") { "}}b=b||r,(x=x||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+_+", limit: "+a+", exclusive: "+w+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be "+F+" ",o+=p?"' + "+a:a+"'"),e.opts.verbose&&(o+=" , schema:  ",o+=p?"validate.schema"+l:""+s,o+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";O=o;return o=x.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+O+"]); ":o+=" validate.errors = ["+O+"]; return false; ":o+=" var err = "+O+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",u&&(o+=" else { "),o},Qe=function(e,r,t){var a,o=" ",i=e.level,n=e.dataLevel,s=e.schema[r],l=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(n||""),p=e.opts.$data&&s&&s.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ",a="schema"+i):a=s,!p&&"number"!=typeof s)throw new Error(r+" must be number");o+="if ( ",p&&(o+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),o+=" "+d+".length "+("maxItems"==r?">":"<")+" "+a+") { ";var h=r,m=m||[];m.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(h||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxItems"==r?"more":"fewer",o+=" than ",o+=p?"' + "+a+" + '":""+s,o+=" items' "),e.opts.verbose&&(o+=" , schema:  ",o+=p?"validate.schema"+l:""+s,o+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var f=o;return o=m.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+f+"]); ":o+=" validate.errors = ["+f+"]; return false; ":o+=" var err = "+f+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",u&&(o+=" else { "),o},He=function(e,r,t){var a,o=" ",i=e.level,n=e.dataLevel,s=e.schema[r],l=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(n||""),p=e.opts.$data&&s&&s.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ",a="schema"+i):a=s,!p&&"number"!=typeof s)throw new Error(r+" must be number");var h="maxLength"==r?">":"<";o+="if ( ",p&&(o+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),!1===e.opts.unicode?o+=" "+d+".length ":o+=" ucs2length("+d+") ",o+=" "+h+" "+a+") { ";var m=r,f=f||[];f.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT be ",o+="maxLength"==r?"longer":"shorter",o+=" than ",o+=p?"' + "+a+" + '":""+s,o+=" characters' "),e.opts.verbose&&(o+=" , schema:  ",o+=p?"validate.schema"+l:""+s,o+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var v=o;return o=f.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+v+"]); ":o+=" validate.errors = ["+v+"]; return false; ":o+=" var err = "+v+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",u&&(o+=" else { "),o},Ke=function(e,r,t){var a,o=" ",i=e.level,n=e.dataLevel,s=e.schema[r],l=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(n||""),p=e.opts.$data&&s&&s.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ",a="schema"+i):a=s,!p&&"number"!=typeof s)throw new Error(r+" must be number");o+="if ( ",p&&(o+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),o+=" Object.keys("+d+").length "+("maxProperties"==r?">":"<")+" "+a+") { ";var h=r,m=m||[];m.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(h||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxProperties"==r?"more":"fewer",o+=" than ",o+=p?"' + "+a+" + '":""+s,o+=" properties' "),e.opts.verbose&&(o+=" , schema:  ",o+=p?"validate.schema"+l:""+s,o+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var f=o;return o=m.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+f+"]); ":o+=" validate.errors = ["+f+"]; return false; ":o+=" var err = "+f+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",u&&(o+=" else { "),o},Ge={$ref:function(e,r,t){var a,o,i=" ",n=e.level,s=e.dataLevel,l=e.schema[r],c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(s||""),p="valid"+n;if("#"==l||"#/"==l)e.isRoot?(a=e.async,o="validate"):(a=!0===e.root.schema.$async,o="root.refVal[0]");else{var h=e.resolveRef(e.baseId,l,e.isRoot);if(void 0===h){var m=e.MissingRefError.message(e.baseId,l);if("fail"==e.opts.missingRefs){e.logger.error(m),(y=y||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",!1!==e.opts.messages&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var f=i;i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(i+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,l,m);e.logger.warn(m),u&&(i+=" if (true) { ")}}else if(h.inline){var v=e.util.copy(e);v.level++;var g="valid"+v.level;v.schema=h.schema,v.schemaPath="",v.errSchemaPath=l,i+=" "+e.validate(v).replace(/validate\.schema/g,h.code)+" ",u&&(i+=" if ("+g+") { ")}else a=!0===h.$async||e.async&&!1!==h.$async,o=h.code}if(o){var y;(y=y||[]).push(i),i="",e.opts.passContext?i+=" "+o+".call(this, ":i+=" "+o+"( ",i+=" "+d+", (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var b=i+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData)  ";if(i=y.pop(),a){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(i+=" var "+p+"; "),i+=" try { await "+b+"; ",u&&(i+=" "+p+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(i+=" "+p+" = false; "),i+=" } ",u&&(i+=" if ("+p+") { ")}else i+=" if (!"+b+") { if (vErrors === null) vErrors = "+o+".errors; else vErrors = vErrors.concat("+o+".errors); errors = vErrors.length; } ",u&&(i+=" else { ")}return i},allOf:function(e,r,t){var a=" ",o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,s=!e.opts.allErrors,l=e.util.copy(e),c="";l.level++;var u="valid"+l.level,d=l.baseId,p=!0,h=o;if(h)for(var m,f=-1,v=h.length-1;f<v;)m=h[f+=1],(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all))&&(p=!1,l.schema=m,l.schemaPath=i+"["+f+"]",l.errSchemaPath=n+"/"+f,a+="  "+e.validate(l)+" ",l.baseId=d,s&&(a+=" if ("+u+") { ",c+="}"));return s&&(a+=p?" if (true) { ":" "+c.slice(0,-1)+" "),a},anyOf:function(e,r,t){var a=" ",o=e.level,i=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p="errs__"+o,h=e.util.copy(e),m="";h.level++;var f="valid"+h.level;if(n.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 v=h.baseId;a+=" var "+p+" = errors; var "+d+" = false;  ";var g=e.compositeRule;e.compositeRule=h.compositeRule=!0;var y=n;if(y)for(var b,P=-1,w=y.length-1;P<w;)b=y[P+=1],h.schema=b,h.schemaPath=s+"["+P+"]",h.errSchemaPath=l+"/"+P,a+="  "+e.validate(h)+" ",h.baseId=v,a+=" "+d+" = "+d+" || "+f+"; if (!"+d+") { ",m+="}";e.compositeRule=h.compositeRule=g,a+=" "+m+" if (!"+d+") {   var err =   ",!1!==e.createErrors?(a+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ",a+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),a+=" } else {  errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(a+=" } ")}else c&&(a+=" if (true) { ");return a},$comment:function(e,r,t){var a=" ",o=e.schema[r],i=e.errSchemaPath+"/"+r;e.opts.allErrors;var n=e.util.toQuotedString(o);return!0===e.opts.$comment?a+=" console.log("+n+");":"function"==typeof e.opts.$comment&&(a+=" self._opts.$comment("+n+", "+e.util.toQuotedString(i)+", validate.root.schema);"),a},const:function(e,r,t){var a=" ",o=e.level,i=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p=e.opts.$data&&n&&n.$data;p&&(a+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; "),p||(a+=" var schema"+o+" = validate.schema"+s+";"),a+="var "+d+" = equal("+u+", schema"+o+"); if (!"+d+") {   ";var h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+o+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be equal to constant' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var m=a;return a=h.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" }",c&&(a+=" else { "),a},contains:function(e,r,t){var a=" ",o=e.level,i=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p="errs__"+o,h=e.util.copy(e);h.level++;var m="valid"+h.level,f="i"+o,v=h.dataLevel=e.dataLevel+1,g="data"+v,y=e.baseId,b=e.opts.strictKeywords?"object"==typeof n&&Object.keys(n).length>0||!1===n:e.util.schemaHasRules(n,e.RULES.all);if(a+="var "+p+" = errors;var "+d+";",b){var P=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=n,h.schemaPath=s,h.errSchemaPath=l,a+=" var "+m+" = false; for (var "+f+" = 0; "+f+" < "+u+".length; "+f+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,f,e.opts.jsonPointers,!0);var w=u+"["+f+"]";h.dataPathArr[v]=f;var E=e.validate(h);h.baseId=y,e.util.varOccurences(E,g)<2?a+=" "+e.util.varReplace(E,g,w)+" ":a+=" var "+g+" = "+w+"; "+E+" ",a+=" if ("+m+") break; }  ",e.compositeRule=h.compositeRule=P,a+="  if (!"+m+") {"}else a+=" if ("+u+".length == 0) {";var S=S||[];S.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: 'should contain a valid item' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var F=a;return a=S.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+F+"]); ":a+=" validate.errors = ["+F+"]; return false; ":a+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { ",b&&(a+="  errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(a+=" } "),a},dependencies:function(e,r,t){var a=" ",o=e.level,i=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(i||""),d="errs__"+o,p=e.util.copy(e),h="";p.level++;var m="valid"+p.level,f={},v={},g=e.opts.ownProperties;for(w in n)if("__proto__"!=w){var y=n[w],b=Array.isArray(y)?v:f;b[w]=y}a+="var "+d+" = errors;";var P=e.errorPath;for(var w in a+="var missing"+o+";",v)if((b=v[w]).length){if(a+=" if ( "+u+e.util.getProperty(w)+" !== undefined ",g&&(a+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(w)+"') "),c){a+=" && ( ";var E=b;if(E)for(var S=-1,F=E.length-1;S<F;){k=E[S+=1],S&&(a+=" || "),a+=" ( ( "+(C=u+(A=e.util.getProperty(k)))+" === undefined ",g&&(a+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(k)+"') "),a+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?k:A)+") ) "}a+=")) {  ";var x="missing"+o,O="' + "+x+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(P,x,!0):P+" + "+x);var _=_||[];_.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+O+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(a+=" , message: 'should have ",1==b.length?a+="property "+e.util.escapeQuotes(b[0]):a+="properties "+e.util.escapeQuotes(b.join(", ")),a+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var D=a;a=_.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+D+"]); ":a+=" validate.errors = ["+D+"]; return false; ":a+=" var err = "+D+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{a+=" ) { ";var $=b;if($)for(var k,j=-1,I=$.length-1;j<I;){k=$[j+=1];var A=e.util.getProperty(k),C=(O=e.util.escapeQuotes(k),u+A);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,k,e.opts.jsonPointers)),a+=" if ( "+C+" === undefined ",g&&(a+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(k)+"') "),a+=") {  var err =   ",!1!==e.createErrors?(a+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+O+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(a+=" , message: 'should have ",1==b.length?a+="property "+e.util.escapeQuotes(b[0]):a+="properties "+e.util.escapeQuotes(b.join(", ")),a+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ",a+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}a+=" }   ",c&&(h+="}",a+=" else { ")}e.errorPath=P;var R=p.baseId;for(var w in f){y=f[w];(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0||!1===y:e.util.schemaHasRules(y,e.RULES.all))&&(a+=" "+m+" = true; if ( "+u+e.util.getProperty(w)+" !== undefined ",g&&(a+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(w)+"') "),a+=") { ",p.schema=y,p.schemaPath=s+e.util.getProperty(w),p.errSchemaPath=l+"/"+e.util.escapeFragment(w),a+="  "+e.validate(p)+" ",p.baseId=R,a+=" }  ",c&&(a+=" if ("+m+") { ",h+="}"))}return c&&(a+="   "+h+" if ("+d+" == errors) {"),a},enum:function(e,r,t){var a=" ",o=e.level,i=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p=e.opts.$data&&n&&n.$data;p&&(a+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ");var h="i"+o,m="schema"+o;p||(a+=" var "+m+" = validate.schema"+s+";"),a+="var "+d+";",p&&(a+=" if (schema"+o+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+o+")) "+d+" = false; else {"),a+=d+" = false;for (var "+h+"=0; "+h+"<"+m+".length; "+h+"++) if (equal("+u+", "+m+"["+h+"])) { "+d+" = true; break; }",p&&(a+="  }  "),a+=" if (!"+d+") {   ";var f=f||[];f.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+o+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var v=a;return a=f.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+v+"]); ":a+=" validate.errors = ["+v+"]; return false; ":a+=" var err = "+v+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" }",c&&(a+=" else { "),a},format:function(e,r,t){var a=" ",o=e.level,i=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(i||"");if(!1===e.opts.format)return c&&(a+=" if (true) { "),a;var d,p=e.opts.$data&&n&&n.$data;p?(a+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",d="schema"+o):d=n;var h=e.opts.unknownFormats,m=Array.isArray(h);if(p){a+=" var "+(f="format"+o)+" = formats["+d+"]; var "+(v="isObject"+o)+" = typeof "+f+" == 'object' && !("+f+" instanceof RegExp) && "+f+".validate; var "+(g="formatType"+o)+" = "+v+" && "+f+".type || 'string'; if ("+v+") { ",e.async&&(a+=" var async"+o+" = "+f+".async; "),a+=" "+f+" = "+f+".validate; } if (  ",p&&(a+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "),a+=" (","ignore"!=h&&(a+=" ("+d+" && !"+f+" ",m&&(a+=" && self._opts.unknownFormats.indexOf("+d+") == -1 "),a+=") || "),a+=" ("+f+" && "+g+" == '"+t+"' && !(typeof "+f+" == 'function' ? ",e.async?a+=" (async"+o+" ? await "+f+"("+u+") : "+f+"("+u+")) ":a+=" "+f+"("+u+") ",a+=" : "+f+".test("+u+"))))) {"}else{var f;if(!(f=e.formats[n])){if("ignore"==h)return e.logger.warn('unknown format "'+n+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(a+=" if (true) { "),a;if(m&&h.indexOf(n)>=0)return c&&(a+=" if (true) { "),a;throw new Error('unknown format "'+n+'" is used in schema at path "'+e.errSchemaPath+'"')}var v,g=(v="object"==typeof f&&!(f instanceof RegExp)&&f.validate)&&f.type||"string";if(v){var y=!0===f.async;f=f.validate}if(g!=t)return c&&(a+=" if (true) { "),a;if(y){if(!e.async)throw new Error("async format in sync schema");a+=" if (!(await "+(b="formats"+e.util.getProperty(n)+".validate")+"("+u+"))) { "}else{a+=" if (! ";var b="formats"+e.util.getProperty(n);v&&(b+=".validate"),a+="function"==typeof f?" "+b+"("+u+") ":" "+b+".test("+u+") ",a+=") { "}}var P=P||[];P.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format:  ",a+=p?""+d:""+e.util.toQuotedString(n),a+="  } ",!1!==e.opts.messages&&(a+=" , message: 'should match format \"",a+=p?"' + "+d+" + '":""+e.util.escapeQuotes(n),a+="\"' "),e.opts.verbose&&(a+=" , schema:  ",a+=p?"validate.schema"+s:""+e.util.toQuotedString(n),a+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var w=a;return a=P.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",c&&(a+=" else { "),a},if:function(e,r,t){var a=" ",o=e.level,i=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p="errs__"+o,h=e.util.copy(e);h.level++;var m="valid"+h.level,f=e.schema.then,v=e.schema.else,g=void 0!==f&&(e.opts.strictKeywords?"object"==typeof f&&Object.keys(f).length>0||!1===f:e.util.schemaHasRules(f,e.RULES.all)),y=void 0!==v&&(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all)),b=h.baseId;if(g||y){var P;h.createErrors=!1,h.schema=n,h.schemaPath=s,h.errSchemaPath=l,a+=" var "+p+" = errors; var "+d+" = true;  ";var w=e.compositeRule;e.compositeRule=h.compositeRule=!0,a+="  "+e.validate(h)+" ",h.baseId=b,h.createErrors=!0,a+="  errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }  ",e.compositeRule=h.compositeRule=w,g?(a+=" if ("+m+") {  ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",a+="  "+e.validate(h)+" ",h.baseId=b,a+=" "+d+" = "+m+"; ",g&&y?a+=" var "+(P="ifClause"+o)+" = 'then'; ":P="'then'",a+=" } ",y&&(a+=" else { ")):a+=" if (!"+m+") { ",y&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",a+="  "+e.validate(h)+" ",h.baseId=b,a+=" "+d+" = "+m+"; ",g&&y?a+=" var "+(P="ifClause"+o)+" = 'else'; ":P="'else'",a+=" } "),a+=" if (!"+d+") {   var err =   ",!1!==e.createErrors?(a+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+P+" } ",!1!==e.opts.messages&&(a+=" , message: 'should match \"' + "+P+" + '\" schema' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ",a+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),a+=" }   ",c&&(a+=" else { ")}else c&&(a+=" if (true) { ");return a},items:function(e,r,t){var a=" ",o=e.level,i=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p="errs__"+o,h=e.util.copy(e),m="";h.level++;var f="valid"+h.level,v="i"+o,g=h.dataLevel=e.dataLevel+1,y="data"+g,b=e.baseId;if(a+="var "+p+" = errors;var "+d+";",Array.isArray(n)){var P=e.schema.additionalItems;if(!1===P){a+=" "+d+" = "+u+".length <= "+n.length+"; ";var w=l;l=e.errSchemaPath+"/additionalItems",a+="  if (!"+d+") {   ";var E=E||[];E.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n.length+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have more than "+n.length+" items' "),e.opts.verbose&&(a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var S=a;a=E.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+S+"]); ":a+=" validate.errors = ["+S+"]; return false; ":a+=" var err = "+S+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",l=w,c&&(m+="}",a+=" else { ")}var F=n;if(F)for(var x,O=-1,_=F.length-1;O<_;)if(x=F[O+=1],e.opts.strictKeywords?"object"==typeof x&&Object.keys(x).length>0||!1===x:e.util.schemaHasRules(x,e.RULES.all)){a+=" "+f+" = true; if ("+u+".length > "+O+") { ";var D=u+"["+O+"]";h.schema=x,h.schemaPath=s+"["+O+"]",h.errSchemaPath=l+"/"+O,h.errorPath=e.util.getPathExpr(e.errorPath,O,e.opts.jsonPointers,!0),h.dataPathArr[g]=O;var $=e.validate(h);h.baseId=b,e.util.varOccurences($,y)<2?a+=" "+e.util.varReplace($,y,D)+" ":a+=" var "+y+" = "+D+"; "+$+" ",a+=" }  ",c&&(a+=" if ("+f+") { ",m+="}")}if("object"==typeof P&&(e.opts.strictKeywords?"object"==typeof P&&Object.keys(P).length>0||!1===P:e.util.schemaHasRules(P,e.RULES.all))){h.schema=P,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",a+=" "+f+" = true; if ("+u+".length > "+n.length+") {  for (var "+v+" = "+n.length+"; "+v+" < "+u+".length; "+v+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);D=u+"["+v+"]";h.dataPathArr[g]=v;$=e.validate(h);h.baseId=b,e.util.varOccurences($,y)<2?a+=" "+e.util.varReplace($,y,D)+" ":a+=" var "+y+" = "+D+"; "+$+" ",c&&(a+=" if (!"+f+") break; "),a+=" } }  ",c&&(a+=" if ("+f+") { ",m+="}")}}else if(e.opts.strictKeywords?"object"==typeof n&&Object.keys(n).length>0||!1===n:e.util.schemaHasRules(n,e.RULES.all)){h.schema=n,h.schemaPath=s,h.errSchemaPath=l,a+="  for (var "+v+" = 0; "+v+" < "+u+".length; "+v+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);D=u+"["+v+"]";h.dataPathArr[g]=v;$=e.validate(h);h.baseId=b,e.util.varOccurences($,y)<2?a+=" "+e.util.varReplace($,y,D)+" ":a+=" var "+y+" = "+D+"; "+$+" ",c&&(a+=" if (!"+f+") break; "),a+=" }"}return c&&(a+=" "+m+" if ("+p+" == errors) {"),a},maximum:Ue,minimum:Ue,maxItems:Qe,minItems:Qe,maxLength:He,minLength:He,maxProperties:Ke,minProperties:Ke,multipleOf:function(e,r,t){var a,o=" ",i=e.level,n=e.dataLevel,s=e.schema[r],l=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(n||""),p=e.opts.$data&&s&&s.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ",a="schema"+i):a=s,!p&&"number"!=typeof s)throw new Error(r+" must be number");o+="var division"+i+";if (",p&&(o+=" "+a+" !== undefined && ( typeof "+a+" != 'number' || "),o+=" (division"+i+" = "+d+" / "+a+", ",e.opts.multipleOfPrecision?o+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":o+=" division"+i+" !== parseInt(division"+i+") ",o+=" ) ",p&&(o+="  )  "),o+=" ) {   ";var h=h||[];h.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+a+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be multiple of ",o+=p?"' + "+a:a+"'"),e.opts.verbose&&(o+=" , schema:  ",o+=p?"validate.schema"+l:""+s,o+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var m=o;return o=h.pop(),!e.compositeRule&&u?e.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++; ",o+="} ",u&&(o+=" else { "),o},not:function(e,r,t){var a=" ",o=e.level,i=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(i||""),d="errs__"+o,p=e.util.copy(e);p.level++;var h="valid"+p.level;if(e.opts.strictKeywords?"object"==typeof n&&Object.keys(n).length>0||!1===n:e.util.schemaHasRules(n,e.RULES.all)){p.schema=n,p.schemaPath=s,p.errSchemaPath=l,a+=" var "+d+" = errors;  ";var m,f=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1,p.opts.allErrors&&(m=p.opts.allErrors,p.opts.allErrors=!1),a+=" "+e.validate(p)+" ",p.createErrors=!0,m&&(p.opts.allErrors=m),e.compositeRule=p.compositeRule=f,a+=" if ("+h+") {   ";var v=v||[];v.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be valid' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var g=a;a=v.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else {  errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(a+=" } ")}else a+="  var err =   ",!1!==e.createErrors?(a+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be valid' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ",a+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(a+=" if (false) { ");return a},oneOf:function(e,r,t){var a=" ",o=e.level,i=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p="errs__"+o,h=e.util.copy(e),m="";h.level++;var f="valid"+h.level,v=h.baseId,g="prevValid"+o,y="passingSchemas"+o;a+="var "+p+" = errors , "+g+" = false , "+d+" = false , "+y+" = null; ";var b=e.compositeRule;e.compositeRule=h.compositeRule=!0;var P=n;if(P)for(var w,E=-1,S=P.length-1;E<S;)w=P[E+=1],(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))?(h.schema=w,h.schemaPath=s+"["+E+"]",h.errSchemaPath=l+"/"+E,a+="  "+e.validate(h)+" ",h.baseId=v):a+=" var "+f+" = true; ",E&&(a+=" if ("+f+" && "+g+") { "+d+" = false; "+y+" = ["+y+", "+E+"]; } else { ",m+="}"),a+=" if ("+f+") { "+d+" = "+g+" = true; "+y+" = "+E+"; }";return e.compositeRule=h.compositeRule=b,a+=m+"if (!"+d+") {   var err =   ",!1!==e.createErrors?(a+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+y+" } ",!1!==e.opts.messages&&(a+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ",a+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),a+="} else {  errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(a+=" } "),a},pattern:function(e,r,t){var a,o=" ",i=e.level,n=e.dataLevel,s=e.schema[r],l=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(n||""),p=e.opts.$data&&s&&s.$data;p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ",a="schema"+i):a=s,o+="if ( ",p&&(o+=" ("+a+" !== undefined && typeof "+a+" != 'string') || "),o+=" !"+(p?"(new RegExp("+a+"))":e.usePattern(s))+".test("+d+") ) {   ";var h=h||[];h.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { pattern:  ",o+=p?""+a:""+e.util.toQuotedString(s),o+="  } ",!1!==e.opts.messages&&(o+=" , message: 'should match pattern \"",o+=p?"' + "+a+" + '":""+e.util.escapeQuotes(s),o+="\"' "),e.opts.verbose&&(o+=" , schema:  ",o+=p?"validate.schema"+l:""+e.util.toQuotedString(s),o+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var m=o;return o=h.pop(),!e.compositeRule&&u?e.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++; ",o+="} ",u&&(o+=" else { "),o},properties:function(e,r,t){var a=" ",o=e.level,i=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(i||""),d="errs__"+o,p=e.util.copy(e),h="";p.level++;var m="valid"+p.level,f="key"+o,v="idx"+o,g=p.dataLevel=e.dataLevel+1,y="data"+g,b="dataProperties"+o,P=Object.keys(n||{}).filter(A),w=e.schema.patternProperties||{},E=Object.keys(w).filter(A),S=e.schema.additionalProperties,F=P.length||E.length,x=!1===S,O="object"==typeof S&&Object.keys(S).length,_=e.opts.removeAdditional,D=x||O||_,$=e.opts.ownProperties,k=e.baseId,j=e.schema.required;if(j&&(!e.opts.$data||!j.$data)&&j.length<e.opts.loopRequired)var I=e.util.toHash(j);function A(e){return"__proto__"!==e}if(a+="var "+d+" = errors;var "+m+" = true;",$&&(a+=" var "+b+" = undefined;"),D){if(a+=$?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+v+"=0; "+v+"<"+b+".length; "+v+"++) { var "+f+" = "+b+"["+v+"]; ":" for (var "+f+" in "+u+") { ",F){if(a+=" var isAdditional"+o+" = !(false ",P.length)if(P.length>8)a+=" || validate.schema"+s+".hasOwnProperty("+f+") ";else{var C=P;if(C)for(var R=-1,N=C.length-1;R<N;)G=C[R+=1],a+=" || "+f+" == "+e.util.toQuotedString(G)+" "}if(E.length){var L=E;if(L)for(var T=-1,z=L.length-1;T<z;)ie=L[T+=1],a+=" || "+e.usePattern(ie)+".test("+f+") "}a+=" ); if (isAdditional"+o+") { "}if("all"==_)a+=" delete "+u+"["+f+"]; ";else{var V=e.errorPath,q="' + "+f+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,f,e.opts.jsonPointers)),x)if(_)a+=" delete "+u+"["+f+"]; ";else{a+=" "+m+" = false; ";var M=l;l=e.errSchemaPath+"/additionalProperties",(te=te||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { additionalProperty: '"+q+"' } ",!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: "+u+" "),a+=" } "):a+=" {} ";var W=a;a=te.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+W+"]); ":a+=" validate.errors = ["+W+"]; return false; ":a+=" var err = "+W+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=M,c&&(a+=" break; ")}else if(O)if("failing"==_){a+=" var "+d+" = errors;  ";var B=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=S,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,f,e.opts.jsonPointers);var U=u+"["+f+"]";p.dataPathArr[g]=f;var Q=e.validate(p);p.baseId=k,e.util.varOccurences(Q,y)<2?a+=" "+e.util.varReplace(Q,y,U)+" ":a+=" var "+y+" = "+U+"; "+Q+" ",a+=" if (!"+m+") { errors = "+d+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+f+"]; }  ",e.compositeRule=p.compositeRule=B}else{p.schema=S,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,f,e.opts.jsonPointers);U=u+"["+f+"]";p.dataPathArr[g]=f;Q=e.validate(p);p.baseId=k,e.util.varOccurences(Q,y)<2?a+=" "+e.util.varReplace(Q,y,U)+" ":a+=" var "+y+" = "+U+"; "+Q+" ",c&&(a+=" if (!"+m+") break; ")}e.errorPath=V}F&&(a+=" } "),a+=" }  ",c&&(a+=" if ("+m+") { ",h+="}")}var H=e.opts.useDefaults&&!e.compositeRule;if(P.length){var K=P;if(K)for(var G,J=-1,Z=K.length-1;J<Z;){var Y=n[G=K[J+=1]];if(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){var X=e.util.getProperty(G),ee=(U=u+X,H&&void 0!==Y.default);p.schema=Y,p.schemaPath=s+X,p.errSchemaPath=l+"/"+e.util.escapeFragment(G),p.errorPath=e.util.getPath(e.errorPath,G,e.opts.jsonPointers),p.dataPathArr[g]=e.util.toQuotedString(G);Q=e.validate(p);if(p.baseId=k,e.util.varOccurences(Q,y)<2){Q=e.util.varReplace(Q,y,U);var re=U}else{re=y;a+=" var "+y+" = "+U+"; "}if(ee)a+=" "+Q+" ";else{if(I&&I[G]){a+=" if ( "+re+" === undefined ",$&&(a+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(G)+"') "),a+=") { "+m+" = false; ";V=e.errorPath,M=l;var te,ae=e.util.escapeQuotes(G);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(V,G,e.opts.jsonPointers)),l=e.errSchemaPath+"/required",(te=te||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+ae+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+ae+"\\'",a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";W=a;a=te.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+W+"]); ":a+=" validate.errors = ["+W+"]; return false; ":a+=" var err = "+W+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=M,e.errorPath=V,a+=" } else { "}else c?(a+=" if ( "+re+" === undefined ",$&&(a+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(G)+"') "),a+=") { "+m+" = true; } else { "):(a+=" if ("+re+" !== undefined ",$&&(a+=" &&   Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(G)+"') "),a+=" ) { ");a+=" "+Q+" } "}}c&&(a+=" if ("+m+") { ",h+="}")}}if(E.length){var oe=E;if(oe)for(var ie,ne=-1,se=oe.length-1;ne<se;){Y=w[ie=oe[ne+=1]];if(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){p.schema=Y,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ie),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ie),a+=$?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+v+"=0; "+v+"<"+b+".length; "+v+"++) { var "+f+" = "+b+"["+v+"]; ":" for (var "+f+" in "+u+") { ",a+=" if ("+e.usePattern(ie)+".test("+f+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,f,e.opts.jsonPointers);U=u+"["+f+"]";p.dataPathArr[g]=f;Q=e.validate(p);p.baseId=k,e.util.varOccurences(Q,y)<2?a+=" "+e.util.varReplace(Q,y,U)+" ":a+=" var "+y+" = "+U+"; "+Q+" ",c&&(a+=" if (!"+m+") break; "),a+=" } ",c&&(a+=" else "+m+" = true; "),a+=" }  ",c&&(a+=" if ("+m+") { ",h+="}")}}}return c&&(a+=" "+h+" if ("+d+" == errors) {"),a},propertyNames:function(e,r,t){var a=" ",o=e.level,i=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(i||""),d="errs__"+o,p=e.util.copy(e);p.level++;var h="valid"+p.level;if(a+="var "+d+" = errors;",e.opts.strictKeywords?"object"==typeof n&&Object.keys(n).length>0||!1===n:e.util.schemaHasRules(n,e.RULES.all)){p.schema=n,p.schemaPath=s,p.errSchemaPath=l;var m="key"+o,f="idx"+o,v="i"+o,g="' + "+m+" + '",y="data"+(p.dataLevel=e.dataLevel+1),b="dataProperties"+o,P=e.opts.ownProperties,w=e.baseId;P&&(a+=" var "+b+" = undefined; "),a+=P?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+f+"=0; "+f+"<"+b+".length; "+f+"++) { var "+m+" = "+b+"["+f+"]; ":" for (var "+m+" in "+u+") { ",a+=" var startErrs"+o+" = errors; ";var E=m,S=e.compositeRule;e.compositeRule=p.compositeRule=!0;var F=e.validate(p);p.baseId=w,e.util.varOccurences(F,y)<2?a+=" "+e.util.varReplace(F,y,E)+" ":a+=" var "+y+" = "+E+"; "+F+" ",e.compositeRule=p.compositeRule=S,a+=" if (!"+h+") { for (var "+v+"=startErrs"+o+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+m+"; }   var err =   ",!1!==e.createErrors?(a+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { propertyName: '"+g+"' } ",!1!==e.opts.messages&&(a+=" , message: 'property name \\'"+g+"\\' is invalid' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ",a+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),c&&(a+=" break; "),a+=" } }"}return c&&(a+="  if ("+d+" == errors) {"),a},required:function(e,r,t){var a=" ",o=e.level,i=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p=e.opts.$data&&n&&n.$data;p&&(a+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ");var h="schema"+o;if(!p)if(n.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var m=[],f=n;if(f)for(var v,g=-1,y=f.length-1;g<y;){v=f[g+=1];var b=e.schema.properties[v];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(m[m.length]=v)}}else m=n;if(p||m.length){var P=e.errorPath,w=p||m.length>=e.opts.loopRequired,E=e.opts.ownProperties;if(c)if(a+=" var missing"+o+"; ",w){p||(a+=" var "+h+" = validate.schema"+s+"; ");var S="' + "+($="schema"+o+"["+(O="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(P,$,e.opts.jsonPointers)),a+=" var "+d+" = true; ",p&&(a+=" if (schema"+o+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+o+")) "+d+" = false; else {"),a+=" for (var "+O+" = 0; "+O+" < "+h+".length; "+O+"++) { "+d+" = "+u+"["+h+"["+O+"]] !== undefined ",E&&(a+=" &&   Object.prototype.hasOwnProperty.call("+u+", "+h+"["+O+"]) "),a+="; if (!"+d+") break; } ",p&&(a+="  }  "),a+="  if (!"+d+") {   ",(D=D||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+S+"\\'",a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var F=a;a=D.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+F+"]); ":a+=" validate.errors = ["+F+"]; return false; ":a+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { "}else{a+=" if ( ";var x=m;if(x)for(var O=-1,_=x.length-1;O<_;){j=x[O+=1],O&&(a+=" || "),a+=" ( ( "+(R=u+(C=e.util.getProperty(j)))+" === undefined ",E&&(a+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(j)+"') "),a+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?j:C)+") ) "}a+=") {  ";var D;S="' + "+($="missing"+o)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(P,$,!0):P+" + "+$),(D=D||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+S+"\\'",a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";F=a;a=D.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+F+"]); ":a+=" validate.errors = ["+F+"]; return false; ":a+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { "}else if(w){p||(a+=" var "+h+" = validate.schema"+s+"; ");var $;S="' + "+($="schema"+o+"["+(O="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(P,$,e.opts.jsonPointers)),p&&(a+=" if ("+h+" && !Array.isArray("+h+")) {  var err =   ",!1!==e.createErrors?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+S+"\\'",a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ",a+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "),a+=" for (var "+O+" = 0; "+O+" < "+h+".length; "+O+"++) { if ("+u+"["+h+"["+O+"]] === undefined ",E&&(a+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+h+"["+O+"]) "),a+=") {  var err =   ",!1!==e.createErrors?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+S+"\\'",a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ",a+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(a+="  }  ")}else{var k=m;if(k)for(var j,I=-1,A=k.length-1;I<A;){j=k[I+=1];var C=e.util.getProperty(j),R=(S=e.util.escapeQuotes(j),u+C);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,j,e.opts.jsonPointers)),a+=" if ( "+R+" === undefined ",E&&(a+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(j)+"') "),a+=") {  var err =   ",!1!==e.createErrors?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+S+"\\'",a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ",a+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=P}else c&&(a+=" if (true) {");return a},uniqueItems:function(e,r,t){var a,o=" ",i=e.level,n=e.dataLevel,s=e.schema[r],l=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(n||""),p="valid"+i,h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ",a="schema"+i):a=s,(s||h)&&!1!==e.opts.uniqueItems){h&&(o+=" var "+p+"; if ("+a+" === false || "+a+" === undefined) "+p+" = true; else if (typeof "+a+" != 'boolean') "+p+" = false; else { "),o+=" var i = "+d+".length , "+p+" = true , j; if (i > 1) { ";var m=e.schema.items&&e.schema.items.type,f=Array.isArray(m);if(!m||"object"==m||"array"==m||f&&(m.indexOf("object")>=0||m.indexOf("array")>=0))o+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+p+" = false; break outer; } } } ";else{o+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var v="checkDataType"+(f?"s":"");o+=" if ("+e.util[v](m,"item",e.opts.strictNumbers,!0)+") continue; ",f&&(o+=" if (typeof item == 'string') item = '\"' + item; "),o+=" if (typeof itemIndices[item] == 'number') { "+p+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}o+=" } ",h&&(o+="  }  "),o+=" if (!"+p+") {   ";var g=g||[];g.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(o+=" , schema:  ",o+=h?"validate.schema"+l:""+s,o+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var y=o;o=g.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+y+"]); ":o+=" validate.errors = ["+y+"]; return false; ":o+=" var err = "+y+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",u&&(o+=" else { ")}else u&&(o+=" if (true) { ");return o},validate:he},Je=C.toHash,Ze=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"],Ye=function(e,r){for(var t=0;t<r.length;t++){e=JSON.parse(JSON.stringify(e));var a,o=r[t].split("/"),i=e;for(a=1;a<o.length;a++)i=i[o[a]];for(a=0;a<Ze.length;a++){var n=Ze[a],s=i[n];s&&(i[n]={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},Xe=ce.MissingRef,er=function e(r,t,a){var o=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof t&&(a=t,t=void 0);var i=n(r).then((function(){var e=o._addSchema(r,void 0,t);return e.validate||function e(r){try{return o._compile(r)}catch(e){if(e instanceof Xe)return a(e);throw e}function a(a){var i=a.missingSchema;if(c(i))throw new Error("Schema "+i+" is loaded but "+a.missingRef+" cannot be resolved");var s=o._loadingSchemas[i];return s||(s=o._loadingSchemas[i]=o._opts.loadSchema(i)).then(l,l),s.then((function(e){if(!c(i))return n(e).then((function(){c(i)||o.addSchema(e,i,void 0,t)}))})).then((function(){return e(r)}));function l(){delete o._loadingSchemas[i]}function c(e){return o._refs[e]||o._schemas[e]}}}(e)}));a&&i.then((function(e){a(null,e)}),a);return i;function n(r){var t=r.$schema;return t&&!o.getSchema(t)?e.call(o,{$ref:t},!0):Promise.resolve()}};var rr=function(e,r,t){var a,o,i=" ",n=e.level,s=e.dataLevel,l=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,d=!e.opts.allErrors,p="data"+(s||""),h="valid"+n,m="errs__"+n,f=e.opts.$data&&l&&l.$data;f?(i+=" var schema"+n+" = "+e.util.getData(l.$data,s,e.dataPathArr)+"; ",o="schema"+n):o=l;var v,g,y,b,P,w="definition"+n,E=this.definition,S="";if(f&&E.$data){P="keywordValidate"+n;var F=E.validateSchema;i+=" var "+w+" = RULES.custom['"+r+"'].definition; var "+P+" = "+w+".validate;"}else{if(!(b=e.useCustomRule(this,l,e.schema,e)))return;o="validate.schema"+c,P=b.code,v=E.compile,g=E.inline,y=E.macro}var x=P+".errors",O="i"+n,_="ruleErr"+n,D=E.async;if(D&&!e.async)throw new Error("async keyword in sync schema");if(g||y||(i+=x+" = null;"),i+="var "+m+" = errors;var "+h+";",f&&E.$data&&(S+="}",i+=" if ("+o+" === undefined) { "+h+" = true; } else { ",F&&(S+="}",i+=" "+h+" = "+w+".validateSchema("+o+"); if ("+h+") { ")),g)E.statements?i+=" "+b.validate+" ":i+=" "+h+" = "+b.validate+"; ";else if(y){var $=e.util.copy(e);S="";$.level++;var k="valid"+$.level;$.schema=b.validate,$.schemaPath="";var j=e.compositeRule;e.compositeRule=$.compositeRule=!0;var I=e.validate($).replace(/validate\.schema/g,P);e.compositeRule=$.compositeRule=j,i+=" "+I}else{(N=N||[]).push(i),i="",i+="  "+P+".call( ",e.opts.passContext?i+="this":i+="self",v||!1===E.schema?i+=" , "+p+" ":i+=" , "+o+" , "+p+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var A=s?"data"+(s-1||""):"parentData",C=s?e.dataPathArr[s]:"parentDataProperty",R=i+=" , "+A+" , "+C+" , rootData )  ";i=N.pop(),!1===E.errors?(i+=" "+h+" = ",D&&(i+="await "),i+=R+"; "):i+=D?" var "+(x="customErrors"+n)+" = null; try { "+h+" = await "+R+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+x+" = e.errors; else throw e; } ":" "+x+" = null; "+h+" = "+R+"; "}if(E.modifying&&(i+=" if ("+A+") "+p+" = "+A+"["+C+"];"),i+=""+S,E.valid)d&&(i+=" if (true) { ");else{var N;i+=" if ( ",void 0===E.valid?(i+=" !",i+=y?""+k:""+h):i+=" "+!E.valid+" ",i+=") { ",a=this.keyword,(N=N||[]).push(i),i="",(N=N||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(a||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+this.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var L=i;i=N.pop(),!e.compositeRule&&d?e.async?i+=" throw new ValidationError(["+L+"]); ":i+=" validate.errors = ["+L+"]; return false; ":i+=" var err = "+L+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var T=i;i=N.pop(),g?E.errors?"full"!=E.errors&&(i+="  for (var "+O+"="+m+"; "+O+"<errors; "+O+"++) { var "+_+" = vErrors["+O+"]; if ("+_+".dataPath === undefined) "+_+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+_+".schemaPath === undefined) { "+_+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(i+=" "+_+".schema = "+o+"; "+_+".data = "+p+"; "),i+=" } "):!1===E.errors?i+=" "+T+" ":(i+=" if ("+m+" == errors) { "+T+" } else {  for (var "+O+"="+m+"; "+O+"<errors; "+O+"++) { var "+_+" = vErrors["+O+"]; if ("+_+".dataPath === undefined) "+_+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+_+".schemaPath === undefined) { "+_+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(i+=" "+_+".schema = "+o+"; "+_+".data = "+p+"; "),i+=" } } "):y?(i+="   var err =   ",!1!==e.createErrors?(i+=" { keyword: '"+(a||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+this.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&d&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):!1===E.errors?i+=" "+T+" ":(i+=" if (Array.isArray("+x+")) { if (vErrors === null) vErrors = "+x+"; else vErrors = vErrors.concat("+x+"); errors = vErrors.length;  for (var "+O+"="+m+"; "+O+"<errors; "+O+"++) { var "+_+" = vErrors["+O+"]; if ("+_+".dataPath === undefined) "+_+".dataPath = (dataPath || '') + "+e.errorPath+";  "+_+'.schemaPath = "'+u+'";  ',e.opts.verbose&&(i+=" "+_+".schema = "+o+"; "+_+".data = "+p+"; "),i+=" } } else { "+T+" } "),i+=" } ",d&&(i+=" else { ")}return i},tr="http://json-schema.org/draft-07/schema#",ar="http://json-schema.org/draft-07/schema#",or="Core schema meta-schema",ir={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:[]}},nr=["object","boolean"],sr={$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:"#"}},lr={$schema:tr,$id:ar,title:or,definitions:ir,type:nr,properties:sr,default:!0},cr=k(Object.freeze({__proto__:null,$schema:tr,$id:ar,title:or,definitions:ir,type:nr,properties:sr,default:lr})),ur={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:cr.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:cr.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"}]}}},dr=/^[a-z_$][a-z0-9_$-]*$/i,pr=function(e,r){var t=this.RULES;if(t.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!dr.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,!0);var a=r.type;if(Array.isArray(a))for(var o=0;o<a.length;o++)n(e,a[o],r);else n(e,a,r);var i=r.metaSchema;i&&(r.$data&&this._opts.$data&&(i={anyOf:[i,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),r.validateSchema=this.compile(i,!0))}function n(e,r,a){for(var o,i=0;i<t.length;i++){var n=t[i];if(n.type==r){o=n;break}}o||(o={type:r,rules:[]},t.push(o));var s={keyword:e,definition:a,custom:!0,code:rr,implements:a.implements};o.rules.push(s),t.custom[e]=s}return t.keywords[e]=t.all[e]=!0,this},hr=function(e){var r=this.RULES.custom[e];return r?r.definition:this.RULES.keywords[e]||!1},mr=function(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 a=r[t].rules,o=0;o<a.length;o++)if(a[o].keyword==e){a.splice(o,1);break}return this},fr=function e(r,t){e.errors=null;var a=this._validateKeyword=this._validateKeyword||this.compile(ur,!0);if(a(r))return!0;if(e.errors=a.errors,t)throw new Error("custom keyword definition is invalid: "+this.errorsText(a.errors));return!1};var vr="http://json-schema.org/draft-07/schema#",gr="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",yr="Meta-schema for $data reference (JSON Schema extension proposal)",br=["$data"],Pr={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},wr={$schema:vr,$id:gr,description:yr,type:"object",required:br,properties:Pr,additionalProperties:!1},Er=k(Object.freeze({__proto__:null,$schema:vr,$id:gr,description:yr,type:"object",required:br,properties:Pr,additionalProperties:!1,default:wr})),Sr=_r;_r.prototype.validate=function(e,r){var t;if("string"==typeof e){if(!(t=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var a=this._addSchema(e);t=a.validate||this._compile(a)}var o=t(r);!0!==t.$async&&(this.errors=t.errors);return o},_r.prototype.compile=function(e,r){var t=this._addSchema(e,void 0,r);return t.validate||this._compile(t)},_r.prototype.addSchema=function(e,r,t,a){if(Array.isArray(e)){for(var o=0;o<e.length;o++)this.addSchema(e[o],void 0,t,a);return this}var i=this._getId(e);if(void 0!==i&&"string"!=typeof i)throw new Error("schema id must be string");return Ar(this,r=J.normalizeId(r||i)),this._schemas[r]=this._addSchema(e,t,a,!0),this},_r.prototype.addMetaSchema=function(e,r,t){return this.addSchema(e,r,t,!0),this},_r.prototype.validateSchema=function(e,r){var t=e.$schema;if(void 0!==t&&"string"!=typeof t)throw new Error("$schema must be a string");if(!(t=t||this._opts.defaultMeta||function(e){var r=e._opts.meta;return e._opts.defaultMeta="object"==typeof r?e._getId(r)||r:e.getSchema(Fr)?Fr:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var a=this.validate(t,e);if(!a&&r){var o="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(o);this.logger.error(o)}return a},_r.prototype.getSchema=function(e){var r=Dr(this,e);switch(typeof r){case"object":return r.validate||this._compile(r);case"string":return this.getSchema(r);case"undefined":return function(e,r){var t=J.schema.call(e,{schema:{}},r);if(t){var a=t.schema,o=t.root,i=t.baseId,n=ve.call(e,a,o,void 0,i);return e._fragments[r]=new K({ref:r,fragment:!0,schema:a,root:o,baseId:i,validate:n}),n}}(this,e)}},_r.prototype.removeSchema=function(e){if(e instanceof RegExp)return $r(this,this._schemas,e),$r(this,this._refs,e),this;switch(typeof e){case"undefined":return $r(this,this._schemas),$r(this,this._refs),this._cache.clear(),this;case"string":var r=Dr(this,e);return r&&this._cache.del(r.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var t=this._opts.serialize,a=t?t(e):e;this._cache.del(a);var o=this._getId(e);o&&(o=J.normalizeId(o),delete this._schemas[o],delete this._refs[o])}return this},_r.prototype.addFormat=function(e,r){"string"==typeof r&&(r=new RegExp(r));return this._formats[e]=r,this},_r.prototype.errorsText=function(e,r){if(!(e=e||this.errors))return"No errors";for(var t=void 0===(r=r||{}).separator?", ":r.separator,a=void 0===r.dataVar?"data":r.dataVar,o="",i=0;i<e.length;i++){var n=e[i];n&&(o+=a+n.dataPath+" "+n.message+t)}return o.slice(0,-t.length)},_r.prototype._addSchema=function(e,r,t,a){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var o=this._opts.serialize,i=o?o(e):e,n=this._cache.get(i);if(n)return n;a=a||!1!==this._opts.addUsedSchema;var s=J.normalizeId(this._getId(e));s&&a&&Ar(this,s);var l,c=!1!==this._opts.validateSchema&&!r;c&&!(l=s&&s==J.normalizeId(e.$schema))&&this.validateSchema(e,!0);var u=J.ids.call(this,e),d=new K({id:s,schema:e,localRefs:u,cacheKey:i,meta:t});"#"!=s[0]&&a&&(this._refs[s]=d);this._cache.put(i,d),c&&l&&this.validateSchema(e,!0);return d},_r.prototype._compile=function(e,r){if(e.compiling)return e.validate=o,o.schema=e.schema,o.errors=null,o.root=r||o,!0===e.schema.$async&&(o.$async=!0),o;var t,a;e.compiling=!0,e.meta&&(t=this._opts,this._opts=this._metaOpts);try{a=ve.call(this,e.schema,r,e.localRefs)}catch(r){throw delete e.validate,r}finally{e.compiling=!1,e.meta&&(this._opts=t)}return e.validate=a,e.refs=a.refs,e.refVal=a.refVal,e.root=a.root,a;function o(){var r=e.validate,t=r.apply(this,arguments);return o.errors=r.errors,t}},_r.prototype.compileAsync=er,_r.prototype.addKeyword=pr,_r.prototype.getKeyword=hr,_r.prototype.removeKeyword=mr,_r.prototype.validateKeyword=fr,_r.ValidationError=ce.Validation,_r.MissingRefError=ce.MissingRef,_r.$dataMetaSchema=Ye;var Fr="http://json-schema.org/draft-07/schema",xr=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Or=["/properties"];function _r(e){if(!(this instanceof _r))return new _r(e);var r,t;e=this._opts=C.copy(e)||{},function(e){var r=e._opts.logger;if(!1===r)e.logger={log:Cr,warn:Cr,error:Cr};else{if(void 0===r&&(r=console),!("object"==typeof r&&r.log&&r.warn&&r.error))throw new Error("logger must implement log, warn and error methods");e.logger=r}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=Le(e.format),this._cache=e.cache||new xe,this._loadingSchemas={},this._compilations=[],this.RULES=((r=[{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"]}]).all=Je(t=["type","$comment"]),r.types=Je(["number","integer","string","array","object","boolean","null"]),r.forEach((function(e){e.rules=e.rules.map((function(e){var a;if("object"==typeof e){var o=Object.keys(e)[0];a=e[o],e=o,a.forEach((function(e){t.push(e),r.all[e]=!0}))}return t.push(e),r.all[e]={keyword:e,code:Ge[e],implements:a}})),r.all.$comment={keyword:"$comment",code:Ge.$comment},e.type&&(r.types[e.type]=e)})),r.keywords=Je(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),r.custom={},r),this._getId=function(e){switch(e.schemaId){case"auto":return Ir;case"id":return kr;default:return jr}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=pe),this._metaOpts=function(e){for(var r=C.copy(e._opts),t=0;t<xr.length;t++)delete r[xr[t]];return r}(this),e.formats&&function(e){for(var r in e._opts.formats){var t=e._opts.formats[r];e.addFormat(r,t)}}(this),e.keywords&&function(e){for(var r in e._opts.keywords){var t=e._opts.keywords[r];e.addKeyword(r,t)}}(this),function(e){var r;e._opts.$data&&(r=Er,e.addMetaSchema(r,r.$id,!0));if(!1===e._opts.meta)return;var t=cr;e._opts.$data&&(t=Ye(t,Or));e.addMetaSchema(t,Fr,!0),e._refs["http://json-schema.org/schema"]=Fr}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var r=e._opts.schemas;if(!r)return;if(Array.isArray(r))e.addSchema(r);else for(var t in r)e.addSchema(r[t],t)}(this)}function Dr(e,r){return r=J.normalizeId(r),e._schemas[r]||e._refs[r]||e._fragments[r]}function $r(e,r,t){for(var a in r){var o=r[a];o.meta||t&&!t.test(a)||(e._cache.del(o.cacheKey),delete r[a])}}function kr(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function jr(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function Ir(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function Ar(e,r){if(e._schemas[r]||e._refs[r])throw new Error('schema with key or id "'+r+'" already exists')}function Cr(){}var Rr={$$currentLocalizeFn:function(e){if(e&&e.length)for(var r=0;r<e.length;r+=1){var t=e[r],a=void 0,o=void 0,i=void 0;switch(t.keyword){case"$ref":a="无法找到引用".concat(t.params.ref);break;case"additionalItems":a="",o=t.params.limit,a+="不允许超过".concat(o,"个元素");break;case"additionalProperties":a="不允许有额外的属性";break;case"anyOf":a="数据应为 anyOf 所指定的其中一个";break;case"const":a="应当等于常量";break;case"contains":a="应当包含一个有效项";break;case"custom":a='应当通过 "'.concat(t.keyword,' 关键词校验"');break;case"dependencies":a="",o=t.params.depsCount,a+="应当拥有属性".concat(t.params.property,"的依赖属性").concat(t.params.deps);break;case"enum":a="应当是预设定的枚举值之一";break;case"exclusiveMaximum":case"exclusiveMinimum":a="",i="".concat(t.params.comparison," ").concat(t.params.limit),a+="应当为 ".concat(i);break;case"false schema":a="布尔模式出错";break;case"format":a='应当匹配格式 "'.concat(t.params.format,'"');break;case"formatExclusiveMaximum":a="formatExclusiveMaximum 应当是布尔值";break;case"formatExclusiveMinimum":a="formatExclusiveMinimum 应当是布尔值";break;case"formatMaximum":case"formatMinimum":a="",i="".concat(t.params.comparison," ").concat(t.params.limit),a+="应当是 ".concat(i);break;case"if":a='应当匹配模式 "'.concat(t.params.failingKeyword,'" ');break;case"maximum":a="",i="".concat(t.params.comparison," ").concat(t.params.limit),a+="应当为 ".concat(i);break;case"maxItems":a="",o=t.params.limit,a+="不应多于 ".concat(o," 个项");break;case"maxLength":a="",o=t.params.limit,a+="不应多于 ".concat(o," 个字符");break;case"maxProperties":a="",o=t.params.limit,a+="不应有多于 ".concat(o," 个属性");break;case"minimum":a="",i="".concat(t.params.comparison," ").concat(t.params.limit),a+="应当为 ".concat(i);break;case"minItems":a="",o=t.params.limit,a+="不应少于 ".concat(o," 个项");break;case"minLength":a="",o=t.params.limit,a+="不应少于 ".concat(o," 个字符");break;case"minProperties":a="",o=t.params.limit,a+="不应有少于 ".concat(o," 个属性");break;case"multipleOf":a="应当是 ".concat(t.params.multipleOf," 的整数倍");break;case"not":a='不应当匹配 "not" schema';break;case"oneOf":a='只能匹配一个 "oneOf" 中的 schema';break;case"pattern":a='应当匹配模式 "'.concat(t.params.pattern,'"');break;case"patternRequired":a="应当有属性匹配模式 ".concat(t.params.missingPattern);break;case"propertyNames":a="属性名 '".concat(t.params.propertyName,"' 无效");break;case"required":a="应当有必需属性 ".concat(t.params.missingProperty);break;case"switch":a="由于 ".concat(t.params.caseIndex,' 失败，未通过 "switch" 校验, ');break;case"type":a="应当是 ".concat(t.params.type," 类型");break;case"uniqueItems":a="不应当含有重复项 (第 ".concat(t.params.j," 项与第 ").concat(t.params.i," 项是重复的)");break;default:continue}t.message=a}},getCurrentLocalize:function(){return this.$$currentLocalizeFn},useLocal:function(e){this.$$currentLocalizeFn=e}};function Nr(e,r){try{if("object"===o(r))return e.fill(null).map((function(){return JSON.parse(JSON.stringify(r))}))}catch(e){}}function Lr(e,r){return e.filter((function(e){return r.includes(e)}))}function Tr(e,r,t){var a=D(e.$ref,r);e.$ref;var o=c(e,["$ref"]);return Mr(l(l({},a),o),r,t)}function zr(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(r.length<2)return r[0];for(var a={},o=[].concat(r),i=function(){var e=f(o[0])?o[0]:{},r=f(o[1])?o[1]:{};a=Object.assign({},e),Object.keys(r).reduce((function(t,a){var o=e[a],i=r[a];if(f(o)||f(i))if(f(o)&&f(i))t[a]=zr(o,i);else{var n=u(f(o)?[o,i]:[i,o],2),s=n[0],l=n[1];t[a]="additionalProperties"===a?!0===l&&s:s}else if(Array.isArray(o)||Array.isArray(i))if(Array.isArray(o)&&Array.isArray(i)){if(f(o[0])||f(i[0]))throw new Error("暂不支持如上数组对象元素合并");var c=Lr([].concat(o),[].concat(i));if(c.length<=0)throw new Error("无法合并如上数据");0===c.length&&"type"===a?t[a]=c[0]:t[a]=c}else{var d=u(Array.isArray(o)?[o,i]:[i,o],2),p=d[0],h=d[1];if(void 0===h)t[a]=p;else{if(!p.includes(h))throw new Error("无法合并如下数据");t[a]=h}}else t[a]=void 0!==o&&void 0!==i?"maxLength"===a||"maximum"===a||"maxItems"===a||"exclusiveMaximum"===a||"maxProperties"===a?Math.min(o,i):"minLength"===a||"minimum"===a||"minItems"===a||"exclusiveMinimum"===a||"minProperties"===a?Math.max(o,i):"multipleOf"===a?O(o,i):o:void 0===o?i:o;return t}),a),o.splice(0,2,a)};o.length>=2;)i();return a}function Vr(e,r,t){var a=l(l({},e),{},{allOf:e.allOf.map((function(e){return Mr(e,r,t)}))});try{var o=a.allOf,i=c(a,["allOf"]);return zr.apply(void 0,[i].concat(d(o)))}catch(e){return a.allOf,c(a,["allOf"])}}function qr(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.hasOwnProperty("allOf")&&(e=Vr(e,r,t)),e.hasOwnProperty("$ref")&&(e=Tr(e,r,t)),e}function Mr(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(e)?qr(e,r,t):{}}function Wr(e){return e?"".concat("__pathRoot",".").concat(e).replace(/\./g,"_"):"__pathRoot"}function Br(e){return""===e}function Ur(e,r){return""===e?r:[e,r].join(".")}function Qr(e,r){a.default.delete(e,r)}function Hr(e,r,t){for(var o=r.split("."),i=0;i<o.length;i+=1){if(o.length-i<2){a.default.set(e,o[o.length-1],t);break}e=e[o[i]]}}function Kr(e,r){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=r.split("."),o=0;o<a.length-t;o+=1){if(void 0===e)return;e=""===a[o]?e:e[a[o]]}return e}function Gr(e){return e}var Jr=Object.freeze({__proto__:null,nodePath2ClassName:Wr,isRootNodePath:Br,computedCurPath:Ur,deletePathVal:Qr,setPathVal:Hr,getPathVal:Kr,path2prop:Gr}),Zr=/{{(.*)}}/;function Yr(e,r,t,a){if(void 0!==t){var o=Zr.exec(t);if(Zr.lastIndex=0,o){var i=o[1].trim();return new Function("parentFormData","rootFormData","return ".concat(i))(Kr(e,r,1),e)}return a()}}function Xr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.schema,t=e.uiSchema,a=arguments.length>1?arguments[1]:void 0,o=at({schema:r,uiSchema:t,containsSpec:!1});return["title","description"].reduce((function(e,r){return o[r]&&(e["ui:".concat(r)]=String(o[r]).replace(/\$index/g,a+1)),e}),{})}function et(e){var r=e.schema,t=void 0===r?{}:r,a=e.uiSchema,o=void 0===a?{}:a,i=e.curNodePath,n=void 0===i?"":i,s=e.rootFormData,l=void 0===s?{}:s,c=o["ui:widget"]||t["ui:widget"],u=o["ui:hidden"]||t["ui:hidden"];return"HiddenWidget"===c||"hidden"===c||!!Yr(l,n,u,(function(){return"function"==typeof u?u(Kr(l,n,1),l):u}))}function rt(e,r){var t=r.schema,a=void 0===t?{}:t,i=r.uiSchema,n=void 0===i?{}:i,s=a["ui:field"]||n["ui:field"];if("function"==typeof s||"object"===o(s)||"string"==typeof s)return{field:s,fieldProps:n["ui:fieldProps"]||a["ui:fieldProps"]};var l=e[y(a)];if(l)return{field:l};if(!l&&(a.anyOf||a.oneOf))return{field:null};throw new Error("不支持的field类型 ".concat(a.type))}function tt(e){var r=e.schema,t=void 0===r?{}:r,a=e.uiSchema,o=void 0===a?{}:a,n=e.curNodePath,s=e.rootFormData,c=void 0===s?{}:s;return Object.assign.apply(Object,[{}].concat(d([t,o].map((function(e){return Object.keys(e).reduce((function(r,t){var a=e[t];return"ui:options"===t&&f(a)?l(l({},r),a):0===t.indexOf("ui:")?l(l({},r),{},i({},t.substring(3),void 0===n?a:Yr(c,n,a,(function(){return a})))):r}),{})})))))}function at(e){var r=e.schema,t=void 0===r?{}:r,a=e.uiSchema,o=void 0===a?{}:a,i=e.containsSpec,n=void 0===i||i,s=e.curNodePath,c=e.rootFormData,u={};return n&&(u.readonly=!!t.readOnly,void 0!==t.multipleOf&&(u.step=t.multipleOf),(t.minimum||0===t.minimum)&&(u.min=t.minimum),(t.maximum||0===t.maximum)&&(u.max=t.maximum),(t.minLength||0===t.minLength)&&(u.minlength=t.minLength),(t.maxLength||0===t.maxLength)&&(u.maxlength=t.maxLength),"date-time"!==t.format&&"date"!==t.format||("array"===t.type?(u.isRange=!0,u.isNumberValue=!(t.items&&"string"===t.items.type)):u.isNumberValue=!("string"===t.type))),t.title&&(u.title=t.title),t.description&&(u.description=t.description),l(l({},u),tt({schema:t,uiSchema:o,curNodePath:s,rootFormData:c}))}function ot(e){var r=e.schema,t=void 0===r?{}:r,a=e.uiSchema,o=void 0===a?{}:a,i=e.curNodePath,n=e.rootFormData,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,l=at({schema:t,uiSchema:o,curNodePath:i,rootFormData:n});!l.widget&&s&&Object.assign(l,s({schema:t,uiSchema:o}));var u=l.widget,d=l.title,p=l.labelWidth,h=l.description,m=l.attrs,f=l.class,v=l.style,g=l.widgetListeners,y=l.fieldAttrs,b=l.fieldStyle,P=l.fieldClass,w=l.emptyValue,E=l.width,S=l.getWidget,F=l.renderScopedSlots,x=l.renderChildren,O=l.onChange,_=c(l,["widget","title","labelWidth","description","attrs","class","style","widgetListeners","fieldAttrs","fieldStyle","fieldClass","emptyValue","width","getWidget","renderScopedSlots","renderChildren","onChange"]);return{widget:u,label:d,labelWidth:p,description:h,widgetAttrs:m,widgetClass:f,widgetStyle:v,fieldAttrs:y,width:E,fieldStyle:b,fieldClass:P,emptyValue:w,getWidget:S,renderScopedSlots:F,renderChildren:x,onChange:O,widgetListeners:g,uiProps:_}}function it(e){var r=e.schema,t=void 0===r?{}:r,a=e.uiSchema,o=void 0===a?{}:a,n=e.errorSchema,s=void 0===n?{}:n;return Object.assign.apply(Object,[{}].concat(d([t,o,s].map((function(e){return Object.keys(e).reduce((function(r,t){var a=e[t];return"err:options"===t&&f(a)?l(l({},r),a):0===t.indexOf("err:")?l(l({},r),{},i({},t.substring(4),a)):r}),{})})))))}function nt(e,r){if(!Array.isArray(r))return e;var t,a=function(e){return e.reduce((function(e,r){return e[r]=!0,e}),{})},o=a(e),i=r.filter((function(e){return"*"===e||o[e]})),n=a(i),s=e.filter((function(e){return!n[e]})),l=i.indexOf("*");if(-1===l){if(s.length)throw new Error("uiSchema order list does not contain ".concat((t=s).length>1?"properties '".concat(t.join("', '"),"'"):"property '".concat(t[0],"'")));return i}if(l!==i.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var c=d(i);return c.splice.apply(c,[l,1].concat(d(s))),c}function st(e){return Array.isArray(e.enum)&&1===e.enum.length||e.hasOwnProperty("const")}function lt(e){if(Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(e.hasOwnProperty("const"))return e.const;throw new Error("schema cannot be inferred as a constant")}function ct(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=Mr(e,r),a=t.oneOf||t.anyOf;return!!Array.isArray(t.enum)||!!Array.isArray(a)&&a.every((function(e){return st(e)}))}function ut(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return f(e)}))}function dt(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(!e.uniqueItems||!e.items)&&ct(e.items,r)}function pt(e){return e.additionalItems,f(e.additionalItems)}function ht(e,r,t,a){if(e.enum){var o=tt({schema:e,uiSchema:r,curNodePath:t,rootFormData:a}).enumNames||e.enumNames;return e.enum.map((function(e,r){return{label:o&&o[r]||String(e),value:e}}))}var i=e.oneOf||e.anyOf,n=r.oneOf||r.anyOf;return i.map((function(e,r){var o=n&&n[r]?tt({schema:e,uiSchema:n[r],curNodePath:t,rootFormData:a}):{},i=lt(e);return{label:o.title||e.title||String(i),value:i}}))}function mt(e,r,t){if(e)return e;if(r){var a=t.split(".").pop();if(a&&a!=="".concat(Number(a)))return a}return""}var ft=Object.freeze({__proto__:null,replaceArrayIndex:Xr,isHiddenWidget:et,getUiField:rt,getUserUiOptions:tt,getUiOptions:at,getWidgetConfig:ot,getUserErrOptions:it,orderProperties:nt,isConstant:st,toConstant:lt,isSelect:ct,isFixedItems:ut,isMultiSelect:dt,allowAdditionalItems:pt,optionsList:ht,fallbackLabel:mt}),vt=bt(),gt=null,yt=null;function bt(){var e=new Sr({errorDataPath:"property",allErrors:!0,multipleOfPrecision:8,schemaId:"auto",unknownFormats:"ignore"});return e.addFormat("data-url",/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/),e.addFormat("color",/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/),e}function Pt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null===e?[]:e.map((function(e){var r=e.dataPath,t=e.keyword,a=e.message,o=e.params,i=e.schemaPath,n="".concat(r);return{name:t,property:n,message:a,params:o,stack:"".concat(n," ").concat(a).trim(),schemaPath:i}}))}function wt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.formData,t=e.schema,a=e.transformErrors,o=e.additionalMetaSchemas,i=void 0===o?[]:o,n=e.customFormats,s=void 0===n?{}:n,l=!b(yt,i),c=!b(gt,s);(l||c)&&(vt=bt()),i&&l&&Array.isArray(i)&&(vt.addMetaSchema(i),yt=i),s&&c&&f(s)&&(Object.keys(s).forEach((function(e){vt.addFormat(e,s[e])})),gt=s);var u=null;try{vt.validate(t,r)}catch(e){u=e}Rr.getCurrentLocalize()(vt.errors);var p=Pt(vt.errors);vt.errors=null;var h=u&&u.message&&"string"==typeof u.message&&u.message.includes("no schema with key or ref ");return h&&(p=[].concat(d(p),[{stack:u.message}])),"function"==typeof a&&(p=a(p)),{errors:p}}function Et(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.formData,t=e.schema,a=e.uiSchema,o=e.transformErrors,i=e.additionalMetaSchemas,n=void 0===i?[]:i,s=e.customFormats,l=void 0===s?{}:s,c=e.errorSchema,u=void 0===c?{}:c,d=e.required,p=void 0!==d&&d,h=e.propPath,m=void 0===h?"":h,f=e.isOnlyFirstError,v=void 0===f||f,g="array"===t.type&&Array.isArray(r)&&0===r.length,y=void 0===r||g;if(p){if(y){var b={keyword:"required",params:{missingProperty:m}},P=it({schema:t,uiSchema:a,errorSchema:u}).required;return P?b.message=P:Rr.getCurrentLocalize()([b]),[b]}}else if(y&&!g)return[];var w=wt({formData:r,schema:t,transformErrors:o,additionalMetaSchemas:n,customFormats:l}).errors;w=w.filter((function(e){return""===e.property&&!e.schemaPath.includes("#/anyOf/")&&!e.schemaPath.includes("#/oneOf/")||"additionalProperties"===e.name}));var E=it({schema:t,uiSchema:a,errorSchema:u});return(v&&w.length>0?[w[0]]:w).reduce((function(e,r){return r.message=void 0!==E[r.name]?E[r.name]:r.message,e.push(r),e}),[])}function St(e,r){try{return vt.validate(e,r)}catch(e){return!1}}function Ft(e,r,t){for(var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=0;o<r.length;o++){var i=Mr(r[o],t,e);if(i.properties){var s=l(l({},t.definitions?{definitions:t.definitions}:{}),{},{anyOf:Object.keys(i.properties).map((function(e){return{required:[e]}}))}),c=void 0;if(i.anyOf){var u=n({},i);u.allOf?u.allOf=u.allOf.slice():u.allOf=[],u.allOf.push(s),c=u}else c=Object.assign({},i,s);if(a||delete c.required,St(c,e))return o}else if(St(r[o],e))return o}if(r[0]&&r[0].properties){var d=Object.keys(r[0].properties).find((function(e){return r[0].properties[e].const}));if(d)for(var p=0;p<r.length;p++)if(r[p].properties&&r[p].properties[d]&&r[p].properties[d].const===e[d])return p}return-1}function xt(e,r,t){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Ft(e,r,t,a);return-1===o?0:o}var Ot=Object.freeze({__proto__:null,ajvValidateFormData:wt,validateFormDataAndTransformMsg:Et,isValid:St,ajvValid:function(e,r){return vt.validate(e,r)},getMatchingIndex:Ft,getMatchingOption:xt});function _t(e,r){if(Array.isArray(r))return Array.isArray(e)||(e=[]),r.map((function(r,t){return e[t]?_t(e[t],r):r}));if(f(r)){var t=Object.assign({},e);return Object.keys(r).reduce((function(t,a){return t[a]=_t(e?e[a]:{},r[a]),t}),t)}return r}function Dt(e,r,t){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=f(e)?e:{},n=f(a)?a:{};"allOf"in i&&(i=Vr(i,t,n));var s=r;if(f(s)&&f(i.default))s=g(s,i.default);else if("default"in i)s=i.default;else{if("$ref"in i){var l=D(i.$ref,t);return Dt(l,s,t,n,o)}if(ut(i))s=i.items.map((function(e,a){return Dt(e,Array.isArray(r)?r[a]:void 0,t,n,o)}));else if("oneOf"in i){var c=Mr(i.oneOf[xt(n,i.oneOf,t)],t,n);delete(i=g(i,c)).oneOf}else if("anyOf"in i){var u=Mr(i.anyOf[xt(n,i.anyOf,t)],t,n);delete(i=g(i,u)).anyOf}}switch(void 0===s&&(s=i.default),y(i)){case"null":return null;case"object":return Object.keys(i.properties||{}).reduce((function(e,r){var a=Dt(i.properties[r],(s||{})[r],t,(n||{})[r],o);return(o||void 0!==a)&&(e[r]=a),e}),{});case"array":if(Array.isArray(s)&&(s=s.map((function(e,r){return Dt(i.items[r]||i.additionalItems||{},e,t,{},o)}))),Array.isArray(a)&&(s=a.map((function(e,r){return Dt(i.items,(s||{})[r],t,e,{},o)}))),i.minItems){if(dt(i,t))return s||[];var d=s?s.length:0;if(i.minItems>d){var p=s||[],h=Array.isArray(i.items)?i.additionalItems:i.items,m=Nr(new Array(i.minItems-d),Dt(h,h.defaults,t,{},o));return p.concat(m)}}s=void 0===s?[]:s}return s}function $t(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!f(e))throw new Error("Invalid schema: ".concat(e));var o=Mr(e,t,r),i=Dt(o,e.default,t,r,a);return void 0===r?i:f(r)||Array.isArray(r)?_t(i,r):0===r||!1===r||""===r?r:r||i}function kt(e,r){void 0===r&&(r={});var t=r.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===t&&a.firstChild?a.insertBefore(o,a.firstChild):a.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}kt('.genFromComponent{font-size:14px;line-height:1;word-wrap:break-word;word-break:break-word;padding:0;margin:0}.genFromComponent a,.genFromComponent h1,.genFromComponent h2,.genFromComponent h3,.genFromComponent li,.genFromComponent p,.genFromComponent ul{font-size:14px}.genFromComponent .genFormIcon{width:12px;height:12px;vertical-align:top}.genFromComponent .genFormBtn{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #dcdfe6;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;margin:0;-webkit-transition:.1s;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:12px 20px;font-size:14px;border-radius:4px}.genFromComponent .genFormBtn.is-plain:focus,.genFromComponent .genFormBtn.is-plain:hover{background:#fff;border-color:#409eff;color:#409eff}.genFromComponent .hiddenWidget{display:none}.genFromComponent .fieldGroupWrap+.fieldGroupWrap .fieldGroupWrap_title{margin-top:20px}.genFromComponent .fieldGroupWrap_title{position:relative;display:block;width:100%;line-height:26px;margin-bottom:8px;font-size:15px;font-weight:700;border:0}.genFromComponent .fieldGroupWrap_des{font-size:12px;line-height:20px;margin-bottom:10px;color:#999}.genFromComponent .genFromWidget_des{padding:0;margin-top:0;margin-bottom:2px;font-size:12px;line-height:20px;color:#999;text-align:left}.genFromComponent .formItemErrorBox{margin:0 auto;color:#ff5757;padding-top:2px;position:absolute;top:100%;left:0;display:-webkit-box!important;line-height:16px;text-overflow:ellipsis;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1;white-space:normal;font-size:12px;text-align:left}.genFromComponent .genFormIcon-qs{fill:#606266;vertical-align:middle;display:inline-block;width:16px;height:16px;margin-left:2px;margin-top:-2px;cursor:pointer}.genFromComponent .genFormItemRequired:before{content:"*";color:#f56c6c;margin-right:4px}.genFromComponent .appendCombining_box{margin-bottom:22px}.genFromComponent .appendCombining_box .appendCombining_box{margin-bottom:10px}.genFromComponent .appendCombining_box{padding:10px;background:hsla(0,0%,94.9%,.8);-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 0 3px 1px rgba(0,0,0,.1);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 0 3px 1px rgba(0,0,0,.1)}.genFromComponent .validateWidget{margin-bottom:0!important;width:100%!important;-ms-flex-preferred-size:100%!important;flex-basis:100%!important;padding:0!important}.genFromComponent .validateWidget .formItemErrorBox{padding:5px 0;position:relative}.genFromComponent .arrayField:not(.genFormItem){margin-bottom:22px}.genFromComponent .arrayField:not(.genFormItem) .arrayField{margin-bottom:10px}.genFromComponent .arrayOrderList{background:hsla(0,0%,94.9%,.8);-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 0 3px 1px rgba(0,0,0,.1);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 0 3px 1px rgba(0,0,0,.1)}.genFromComponent .arrayOrderList_item{position:relative;padding:25px 10px 12px;border-radius:2px;margin-bottom:6px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.genFromComponent .arrayOrderList_bottomAddBtn{text-align:right;padding:15px 10px;margin-bottom:10px}.genFromComponent .bottomAddBtn{width:40%;min-width:10px;max-width:180px}.genFromComponent .arrayListItem_content{padding-top:15px;-webkit-box-flex:1;-ms-flex:1;flex:1;margin:0 auto;-webkit-box-shadow:0 -1px 0 0 rgba(0,0,0,.05);box-shadow:0 -1px 0 0 rgba(0,0,0,.05)}.genFromComponent .arrayListItem_index,.genFromComponent .arrayListItem_operateTool{position:absolute;height:25px}.genFromComponent .arrayListItem_index{top:6px;line-height:18px;height:18px;padding:0 6px;background-color:rgba(0,0,0,.28);color:#fff;font-size:12px;border-radius:2px}.genFromComponent .arrayListItem_operateTool{width:75px;right:9px;top:-1px;text-align:right;font-size:0}.genFromComponent .arrayListItem_btn{vertical-align:top;display:inline-block;padding:6px;margin:0;font-size:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border:none;cursor:pointer;text-align:center;background:transparent;color:#666}.genFromComponent .arrayListItem_btn:hover{opacity:.6}.genFromComponent .arrayListItem_btn[disabled]{color:#999;opacity:.3!important;cursor:not-allowed}.genFromComponent .arrayListItem_orderBtn-bottom,.genFromComponent .arrayListItem_orderBtn-top{background-color:#f0f9eb}.genFromComponent .arrayListItem_btn-delete{background-color:#fef0f0}.genFromComponent .formFooter_item{text-align:right;border-top:1px solid rgba(0,0,0,.08);padding-top:10px}.genFromComponent.formInlineFooter>.fieldGroupWrap{display:inline-block;margin-right:10px}.genFromComponent.formInline .validateWidget{margin-right:0}.genFromComponent.formInline .formFooter_item{border-top:none;padding-top:0}.layoutColumn .layoutColumn_w100{width:100%!important;-ms-flex-preferred-size:100%!important;flex-basis:100%!important}.layoutColumn .fieldGroupWrap_box{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start}.layoutColumn .fieldGroupWrap_box>div{width:100%;-ms-flex-preferred-size:100%;flex-basis:100%}.layoutColumn .fieldGroupWrap_box>.genFormItem{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:10px}.layoutColumn.layoutColumn-1 .fieldGroupWrap_box>.genFormItem{padding-right:0}.layoutColumn.layoutColumn-2 .fieldGroupWrap_box>.genFormItem{width:50%;-ms-flex-preferred-size:50%;flex-basis:50%}.layoutColumn.layoutColumn-3 .fieldGroupWrap_box>.genFormItem{width:33.333%;-ms-flex-preferred-size:33.333%;flex-basis:33.333%}');var jt={formFooter:{type:Object,default:function(){return{show:!0,okBtn:"保存",cancelBtn:"取消"}}},value:{type:null,default:function(){return{}},required:!0},formProps:{type:Object,default:function(){return{}}},fallbackLabel:{type:Boolean,default:!1},schema:{type:Object,default:function(){return{}},required:!0},uiSchema:{type:Object,default:function(){return{}}},customFormats:{type:Object,default:function(){return{}}},customRule:{type:Function,default:null},errorSchema:{type:Object,default:function(){return{}}}},It={name:"FormFooter",props:{okBtn:{type:String,default:"保存"},okBtnProps:{type:Object,default:function(){return{}}},cancelBtn:{type:String,default:"取消"},formItemAttrs:{type:Object,default:function(){return{}}},globalOptions:null},render:function(e){var r=this,t=this.$props,a=t.okBtn,o=t.okBtnProps,i=t.cancelBtn,n=t.globalOptions.COMPONENT_MAP;return e(n.formItem,l({class:{formFooter_item:!0}},this.formItemAttrs),[e(n.button,{on:{click:function(){r.$emit("onCancel")}}},i),e(n.button,{style:{marginLeft:"10px"},props:l({type:"primary"},o),on:{click:function(){r.$emit("onSubmit")}}},a)])}};var At=function(e,r,t,a,o,i,n,s,l,c){"boolean"!=typeof n&&(l=s,s=n,n=!1);var u,d="function"==typeof t?t.options:t;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,o&&(d.functional=!0)),a&&(d._scopeId=a),i?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=u):r&&(u=n?function(e){r.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){r.call(this,s(e))}),u)if(d.functional){var p=d.render;d.render=function(e,r){return u.call(r),p(e,r)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,u):[u]}return t},Ct={name:"FieldGroupWrap",inject:["genFormProvide"],props:{curNodePath:{type:String,default:""},showTitle:{type:Boolean,default:!0},showDescription:{type:Boolean,default:!0},title:{type:String,default:""},description:{type:String,default:""}},computed:{trueTitle:function(){var e=this.title;if(e)return e;var r=(this.genFormProvide.value||this.genFormProvide).fallbackLabel&&this.curNodePath.split(".").pop();return r!=="".concat(Number(r))?r:""}}},Rt=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"fieldGroupWrap"},[e.showTitle&&e.trueTitle?t("h3",{staticClass:"fieldGroupWrap_title"},[e._v("\n        "+e._s(e.trueTitle)+"\n    ")]):e._e(),e._v(" "),e.showDescription&&e.description?t("p",{staticClass:"fieldGroupWrap_des",domProps:{innerHTML:e._s(e.description)}}):e._e(),e._v(" "),t("div",{staticClass:"fieldGroupWrap_box"},[e._t("default")],2)])};Rt._withStripped=!0;var Nt=At({render:Rt,staticRenderFns:[]},void 0,Ct,void 0,!1,void 0,!1,void 0,void 0,void 0),Lt={formProps:{type:null},globalOptions:{type:null},schema:{type:Object,default:function(){return{}}},uiSchema:{type:Object,default:function(){return{}}},errorSchema:{type:Object,default:function(){return{}}},customRule:{type:Function,default:null},customFormats:{type:Object,default:function(){return{}}},rootSchema:{type:Object,default:function(){return{}}},rootFormData:{type:null,default:function(){return{}}},curNodePath:{type:String,default:""},required:{type:Boolean,default:!1},needValidFieldGroup:{type:Boolean,default:!0}},Tt=function(){var e=this.$createElement,r=this._self._c||e;return r("svg",{staticClass:"genFormIcon genFormIcon-down",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"}},[r("path",{attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}})])};Tt._withStripped=!0;var zt=At({render:Tt,staticRenderFns:[]},void 0,{},void 0,!1,void 0,!1,void 0,void 0,void 0),Vt=function(){var e=this.$createElement,r=this._self._c||e;return r("svg",{staticClass:"genFormIcon genFormIcon-up",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"}},[r("path",{attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}})])};Vt._withStripped=!0;var qt=At({render:Vt,staticRenderFns:[]},void 0,{},void 0,!1,void 0,!1,void 0,void 0,void 0),Mt=function(){var e=this.$createElement,r=this._self._c||e;return r("svg",{staticClass:"genFormIcon genFormIcon-close",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"}},[r("path",{attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1\n        191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0\n        0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}})])};Mt._withStripped=!0;var Wt=At({render:Mt,staticRenderFns:[]},void 0,{},void 0,!1,void 0,!1,void 0,void 0,void 0),Bt=function(){var e=this.$createElement,r=this._self._c||e;return r("svg",{staticClass:"genFormIcon genFormIcon-plus",attrs:{t:"1551322312294",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10297","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"}},[r("path",{attrs:{d:"M474 152m8 0l60 0q8 0 8 8l0 704q0 8-8 8l-60 0q-8 0-8-8l0-704q0-8 8-8Z","p-id":"10298"}}),this._v(" "),r("path",{attrs:{d:"M168 474m8 0l672 0q8 0 8 8l0 60q0 8-8 8l-672 0q-8 0-8-8l0-60q0-8 8-8Z","p-id":"10299"}})])};Bt._withStripped=!0;var Ut=At({render:Bt,staticRenderFns:[]},void 0,{},void 0,!1,void 0,!1,void 0,void 0,void 0),Qt=function(){var e=this.$createElement,r=this._self._c||e;return r("svg",{staticClass:"genFormIcon genFormIcon-qs",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"}},[r("path",{attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1\n        0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0\n        0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8\n        52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6\n        8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6\n        40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}})])};Qt._withStripped=!0;var Ht=At({render:Qt,staticRenderFns:[]},void 0,{},void 0,!1,void 0,!1,void 0,void 0,void 0),Kt={name:"Widget",inject:["genFormProvide"],props:{isFormData:{type:Boolean,default:!0},curValue:{type:null,default:0},schema:{type:Object,default:function(){return{}}},uiSchema:{type:Object,default:function(){return{}}},errorSchema:{type:Object,default:function(){return{}}},customFormats:{type:Object,default:function(){return{}}},customRule:{type:Function,default:null},widget:{type:[String,Function,Object],default:null},required:{type:Boolean,default:!1},emptyValue:{type:null,default:void 0},formatValue:{type:[Function],default:function(e){return{update:!0,value:e}}},rootFormData:{type:null},curNodePath:{type:String,default:""},label:{type:String,default:""},width:{type:String,default:""},labelWidth:{type:String,default:""},description:{type:String,default:""},widgetAttrs:{type:Object,default:function(){return{}}},widgetClass:{type:Object,default:function(){return{}}},widgetStyle:{type:Object,default:function(){return{}}},fieldAttrs:{type:Object,default:function(){return{}}},fieldClass:{type:Object,default:function(){return{}}},fieldStyle:{type:Object,default:function(){return{}}},uiProps:{type:Object,default:function(){return{}}},widgetListeners:null,formProps:null,getWidget:null,renderScopedSlots:null,renderChildren:null,globalOptions:null,onChange:null},computed:{value:{get:function(){return this.isFormData?Kr(this.rootFormData,this.curNodePath):this.curValue},set:function(e){var r=""===e||null===e?this.emptyValue:e;this.isFormData?Hr(this.rootFormData,this.curNodePath,r):this.$emit("onOtherDataChange",r)}}},created:function(){this.uiProps.enumOptions&&this.uiProps.enumOptions.length>0&&void 0===this.value&&this.value!==this.uiProps.enumOptions[0]&&(this.schema.items?this.value=[]:this.required&&(this.value=this.uiProps.enumOptions[0].value))},render:function(e){var r=this,t=this.$props.curNodePath,a=Br(t),o=r.formProps&&r.formProps.isMiniDes||r.globalOptions.HELPERS.isMiniDes(r.formProps),i=r.description?e("div",{domProps:{innerHTML:r.description},class:{genFromWidget_des:!0}}):null,n=r.globalOptions.COMPONENT_MAP,s=o&&i?e(n.popover,{style:{margin:"0 2px",fontSize:"16px",cursor:"pointer"},props:{placement:"top",trigger:"hover"}},[i,e(Ht,{slot:"reference"})]):null,c=l(l({},r.fieldStyle),r.width?{width:r.width,flexBasis:r.width,paddingRight:"10px"}:{}),u=mt(r.label,r.widget&&this.genFormProvide.fallbackLabel,t);return e(n.formItem,{class:l(l({},r.fieldClass),{},{genFormItem:!0}),style:c,attrs:r.fieldAttrs,props:l(l({},r.labelWidth?{labelWidth:r.labelWidth}:{}),this.isFormData?{prop:a?"__$$root":t,rules:[{validator:function(e,o,i){a&&(o=r.rootFormData);var n=Et({formData:o,schema:r.$props.schema,uiSchema:r.$props.uiSchema,customFormats:r.$props.customFormats,errorSchema:r.errorSchema,required:r.required,propPath:t});if(n.length>0)return i(n[0].message);var s=r.$props.customRule;return s&&"function"==typeof s?s({field:t,value:o,rootFormData:r.rootFormData,callback:i}):i()},trigger:"change"}]}:{}),scopedSlots:{error:function(r){return r.error?e("div",{class:{formItemErrorBox:!0},attrs:{title:r.error}},[r.error]):null}}},[u?e("span",{slot:"label",class:{genFormLabel:!0,genFormItemRequired:r.required}},["".concat(u),s,"".concat(r.formProps&&r.formProps.labelSuffix||"")]):null,o?null:i,e(r.widget,l(l({style:r.widgetStyle,class:r.widgetClass,attrs:l(l(l({},r.widgetAttrs),r.uiProps),{},{value:this.value}),ref:"widgetRef"},r.renderScopedSlots?{scopedSlots:r.renderScopedSlots(e)||{}}:{}),{},{on:l(l({},r.widgetListeners?r.widgetListeners:{}),{},{"hook:mounted":function(){r.widgetListeners&&r.widgetListeners["hook:mounted"]&&r.widgetListeners["hook:mounted"].apply(this,Array.prototype.slice.call(arguments)),r.getWidget&&"function"==typeof r.getWidget&&r.getWidget.call(null,r.$refs.widgetRef)},input:function(e){var t=r.formatValue(e),a=r.value;t.update&&a!==t.value&&(r.value=t.value,r.onChange&&r.onChange({curVal:t.value,preVal:a,parentFormData:Kr(r.rootFormData,r.curNodePath,1),rootFormData:r.rootFormData})),r.widgetListeners&&r.widgetListeners.input&&r.widgetListeners.input.apply(this,Array.prototype.slice.call(arguments))}})}),r.renderChildren?r.renderChildren(e):null)])}},Gt={name:"ObjectField",functional:!0,props:Lt,render:function(e,r){var t=r.props,a=t.schema,o=t.uiSchema,i=t.errorSchema,n=t.needValidFieldGroup,s=t.curNodePath,c=t.rootFormData,p=t.globalOptions,h=at({schema:a,uiSchema:o,curNodePath:s,rootFormData:c}),m=h.title,v=h.description,g=h.showTitle,y=h.showDescription,b=h.order,P=h.fieldClass,w=h.fieldAttrs,E=h.fieldStyle,S=h.onlyShowIfDependent,F=nt(Object.keys(a.properties||{}),b).map((function(t){var n=function(e){return Array.isArray(a.required)&&!!~a.required.indexOf(e)}(t),d=function(e){var r=!1,t=!1;return f(a.dependencies)&&(t=Object.entries(a.dependencies).some((function(t){var a=u(t,2),o=a[0],i=a[1],n=!(!Array.isArray(i)||!~i.indexOf(e));return r=r||n,n&&void 0!==Kr(c,s)[o]}))),{isDependency:r,curDependent:t}}(t),p=d.isDependency,h=d.curDependent;return p&&S&&!h?null:e(la,{key:t,props:l(l({},r.props),{},{schema:a.properties[t],uiSchema:o[t],errorSchema:i[t],required:n||h,curNodePath:Ur(s,t)})})}));return e(Nt,{props:{title:m,description:v,showTitle:g,showDescription:y,curNodePath:s},class:l(l({},r.data.class),P),attrs:w,style:E},[e("template",{slot:"default"},[].concat(d(F),[n?e(Kt,{key:"validateWidget-object",class:{validateWidget:!0,"validateWidget-object":!0},props:{schema:Object.entries(a).reduce((function(e,r){var t=u(r,2),o=t[0],i=t[1];return!1!==a.additionalProperties&&["properties","id","$id"].includes(o)||(e[o]=i),e}),{}),uiSchema:o,errorSchema:i,curNodePath:s,rootFormData:c,globalOptions:p}}):null]))])}},Jt={name:"StringField",props:Lt,functional:!0,render:function(e,r){var t=r.props,a=t.schema,o=t.uiSchema,i=t.curNodePath,n=t.rootFormData,s=t.globalOptions.WIDGET_MAP,c=ct(a)&&ht(a,o,i,n),u=ot({schema:a,uiSchema:o,curNodePath:i,rootFormData:n},(function(){var e="number"===a.type||"integer"===a.type;return{widget:c?s.common.select:s.formats[a.format]||(e?s.types.number:s.types.string)}}));return c&&!u.uiProps.enumOptions&&(u.uiProps.enumOptions=c),e(Kt,l(l({},r.data),{},{props:l(l({},r.props),u)}))}},Zt={name:"NumberField",props:Lt,functional:!0,render:function(e,r){return e(Jt,r.data)}},Yt={name:"IntegerField",props:Lt,functional:!0,render:function(e,r){return e(Jt,r.data)}},Xt={name:"BooleanField",props:Lt,functional:!0,render:function(e,r){var t=r.props,a=t.schema,o=t.uiSchema,i=t.curNodePath,n=t.rootFormData,s=t.globalOptions,c=ht({enumNames:a.enumNames||["true","false"],enum:a.enum||[!0,!1]},o,i,n),u=ot({schema:a,uiSchema:o,curNodePath:i,rootFormData:n},(function(){return{widget:s.WIDGET_MAP.types.boolean}}));return u.uiProps.enumOptions=u.uiProps.enumOptions||c,e(Kt,l(l({},r.data),{},{props:l(l({},r.props),u)}))}},ea={name:"ArrayOrderList",props:{vNodeList:{type:Array,default:[]},tupleItemsLength:{type:Number,default:0},addable:{type:Boolean,default:!0},showIndexNumber:{type:Boolean,default:!1},sortable:{type:Boolean,default:!0},removable:{type:Boolean,default:!0},maxItems:{},minItems:{},globalOptions:null},computed:{canAdd:function(){var e=this.$props,r=e.addable,t=e.maxItems,a=e.vNodeList;return!!r&&(void 0===t||a.length<t)},canRemove:function(){var e=this.$props,r=e.removable,t=e.minItems,a=e.vNodeList;return!!r&&(void 0===t||a.length>t)}},render:function(e){var r=this;return this.vNodeList.length<=0&&!this.addable?null:e("div",{class:{arrayOrderList:!0}},this.vNodeList.map((function(t,a){var o=t.key,i=t.vNode,n=r.tupleItemsLength+a,s=a+1;return e("div",{key:o,class:{arrayOrderList_item:!0}},[r.showIndexNumber?e("div",{class:{arrayListItem_index:!0}},s):null,e("div",{class:{arrayListItem_operateTool:!0}},[e("button",{style:l({},r.sortable?{}:{display:"none"}),attrs:{type:"button",disabled:!r.sortable||0===a},class:{arrayListItem_btn:!0,"arrayListItem_orderBtn-top":!0},on:{click:function(){r.$emit("onArrayOperate",{command:"moveUp",data:{index:n}})}}},[e(qt)]),e("button",{style:l({},r.sortable?{}:{display:"none"}),attrs:{type:"button",disabled:!r.sortable||a===r.vNodeList.length-1},class:{arrayListItem_btn:!0,"arrayListItem_orderBtn-bottom":!0},on:{click:function(){r.$emit("onArrayOperate",{command:"moveDown",data:{index:n}})}}},[e(zt)]),e("button",{style:l({},r.removable?{}:{display:"none"}),attrs:{type:"button",disabled:!r.canRemove},class:{arrayListItem_btn:!0,"arrayListItem_btn-delete":!0},on:{click:function(){r.$emit("onArrayOperate",{command:"remove",data:{index:n}})}}},[e(Wt)])]),e("div",{class:{arrayListItem_content:!0}},[i])])})).concat([e("p",{style:l({},this.canAdd?{}:{display:"none"}),class:{arrayOrderList_bottomAddBtn:!0}},[e("button",{attrs:{type:"button"},class:{bottomAddBtn:!0,"is-plain":!0,genFormBtn:!0},on:{click:function(){r.$emit("onArrayOperate",{command:"add"})}}},[e(Ut,{style:{marginRight:"5px"}}),this.maxItems?"( ".concat(this.vNodeList.length," / ").concat(this.maxItems," )"):""])])]))}},ra={name:"ArrayFieldNormal",functional:!0,props:l(l({},Lt),{},{itemsFormData:{type:Array}}),render:function(e,r){var t=r.props,a=t.schema,o=t.uiSchema,i=t.curNodePath,n=t.rootFormData,s=t.itemsFormData,c=t.errorSchema,u=t.globalOptions,d=at({schema:a,uiSchema:o,curNodePath:i,rootFormData:n}),p=d.title,h=d.description,m=d.addable,f=d.showIndexNumber,v=d.sortable,g=d.removable,y=d.showTitle,b=d.showDescription,P=d.fieldClass,w=d.fieldAttrs,E=d.fieldStyle,S=s.map((function(t,n){var s=Xr({schema:a.items,uiSchema:o.items},n);return{key:t.key,vNode:e(la,{key:t.key,props:l(l({},r.props),{},{schema:a.items,required:![].concat(a.items.type).includes("null"),uiSchema:l(l({},o.items),s),errorSchema:c.items,curNodePath:Ur(i,n)})})}}));return e(Nt,{props:{title:p,description:h,showTitle:y,showDescription:b,curNodePath:i},class:l(l({},r.data.class),P),attrs:w,style:E},[e(ea,{props:{vNodeList:S,showIndexNumber:f,addable:m,sortable:v,removable:g,maxItems:a.maxItems,minItems:a.minItems,globalOptions:u},on:r.listeners})])}},ta={name:"ArrayFieldMultiSelect",functional:!0,props:l({},Lt),render:function(e,r){var t=r.props,a=t.schema,o=t.rootSchema,i=t.uiSchema,n=t.curNodePath,s=t.rootFormData,c=t.globalOptions,u=ht(Mr(a.items,o),i,n,s),d=ot({schema:a,uiSchema:i,curNodePath:n,rootFormData:s},(function(){return{widget:c.WIDGET_MAP.common.checkboxGroup}}));return d.uiProps.multiple=!0,u&&!d.uiProps.enumOptions&&(d.uiProps.enumOptions=u),e(Kt,l(l({},r.data),{},{props:l(l({},r.props),d)}))}},aa={name:"ArrayFieldTuple",props:l(l({},Lt),{},{itemsFormData:{type:Array,default:function(){return[]}}}),created:function(){this.fixItemsFormData()},methods:{fixItemsFormData:function(){var e=!Array.isArray(this.itemsFormData);if(e||this.itemsFormData.length<this.schema.items.length){var r=$t(this.schema,void 0,this.rootSchema);e?this.$emit("onArrayOperate",{command:"setNewTarget",data:{newTarget:r}}):this.$emit("onArrayOperate",{command:"batchPush",data:{pushArray:r.slice(this.itemsFormData.length)}})}}},render:function(e){var r=this;if(!Array.isArray(this.itemsFormData))return null;var t,a,o=this.$props,i=o.schema,n=o.uiSchema,s=o.errorSchema,c=o.curNodePath,u=o.globalOptions,p=at({schema:i,uiSchema:n,curNodePath:c,rootFormData:this.rootFormData}),h=p.title,m=p.description,f=p.addable,v=p.showIndexNumber,g=p.sortable,y=p.removable,b=p.showTitle,P=p.showDescription,w=p.fieldClass,E=p.fieldAttrs,S=p.fieldStyle,F=(t=this.itemsFormData,a=this.schema.items.length-1,t.reduce((function(e,r,t){return e[t>a?1:0].push(r),e}),[[],[]])),x=F[0].map((function(t,a){return e(la,{key:t.key,props:l(l({},r.$props),{},{required:![].concat(i.items[a].type).includes("null"),schema:i.items[a],uiSchema:n.items?n.items[a]:{},errorSchema:s.items?s.items[a]:{},curNodePath:Ur(c,a)})})})),O=F[1].map((function(t,a){var o=Xr({schema:i.additionalItems,uiSchema:n.additionalItems},a);return{key:t.key,vNode:e(la,{key:t.key,props:l(l({},r.$props),{},{schema:i.additionalItems,required:![].concat(i.additionalItems.type).includes("null"),uiSchema:l(l({},n.additionalItems),o),errorSchema:s.additionalItems,curNodePath:Ur(c,a+i.items.length)})})}})),_=(void 0===f||f)&&pt(this.schema);return e(Nt,{props:{title:h,description:m,showTitle:b,showDescription:P,curNodePath:c},class:w,attrs:E,style:S},[].concat(d(x),[e(ea,{props:{vNodeList:O,tupleItemsLength:i.items.length,addable:_,showIndexNumber:v,sortable:g,removable:y,maxItems:i.maxItems,minItems:i.minItems,globalOptions:u},on:this.$listeners})]))}},oa={name:"ArrayFieldSpecialFormat",props:Lt,functional:!0,render:function(e,r){var t=r.props,a=t.schema,o=t.uiSchema,i=t.curNodePath,n=t.rootFormData,s=ot({schema:l({"ui:widget":t.globalOptions.WIDGET_MAP.formats[a.format]},a),uiSchema:o,curNodePath:i,rootFormData:n});return e(Kt,l(l({},r.data),{},{props:l(l({},r.props),s)}))}},ia={name:"ArrayField",props:Lt,data:function(){return{formKeys:this.getCuFormData().map((function(){return E()}))}},computed:{itemsFormData:function(){var e=this.$data.formKeys;return this.curFormData.map((function(r,t){return{key:e[t],value:r}}))},curFormData:function(){return this.getCuFormData()}},watch:{curFormData:function(e,r){e!==r&&Array.isArray(e)&&(this.formKeys=e.map((function(){return E()})))}},methods:{getCuFormData:function(){var e=this.$props,r=Kr(e.rootFormData,e.curNodePath);return Array.isArray(r)?r:[]},getNewFormDataRow:function(){var e=this.$props,r=e.schema,t=e.rootSchema,a=r.items;return ut(this.schema)&&pt(this.schema)&&(a=r.additionalItems),$t(a,void 0,t)},handleArrayOperate:function(e){var r=e.command,t=e.data,a={moveUp:function(e,r){!function(e,r){if(0===r)return!1;var t=[e[r],e[r-1]];e.splice.apply(e,[r-1,2].concat(t))}(e,r.index)},moveDown:function(e,r){!function(e,r){if(r===e.length-1)return!1;var t=e[r],a=[e[r+1],t];e.splice.apply(e,[r,2].concat(a))}(e,r.index)},remove:function(e,r){!function(e,r){e.splice(r,1).length}(e,r.index)},add:function(e,r){var t=r.newRowData;e.push(t)},batchPush:function(e,r){r.pushArray.forEach((function(r){e.push(r)}))},setNewTarget:function(e,r){Hr(r.formData,r.nodePath,r.newTarget)}}[r];if(!a)throw new Error("错误 - 未知的操作：[".concat(r,"]"));var o=t,i=t;"add"===r?(o={newRowData:this.getNewFormDataRow()},i={newRowData:E()}):"batchPush"===r?i={pushArray:o.pushArray.map((function(e){return E()}))}:"setNewTarget"===r&&(o={formData:this.rootFormData,nodePath:this.curNodePath,newTarget:o.newTarget},i={formData:this.$data,nodePath:"formKeys",newTarget:o.newTarget.map((function(e){return E()}))}),a.apply(this,[this.$data.formKeys,i]),a.apply(this,[this.curFormData,o])}},render:function(e){var r=this.$props,t=r.schema,a=r.uiSchema,o=r.rootSchema,n=r.rootFormData,s=r.curNodePath,c=r.globalOptions;if(!t.hasOwnProperty("items"))throw new Error("[".concat(t,"] 请先定义 items属性"));if(dt(t,o))return e(ta,{props:this.$props,class:i({},x(ta.name),!0)});if(t.format||t["ui:widget"]||a["ui:widget"])return e(oa,{props:this.$props,class:i({},x(oa.name),!0)});var d=ut(t)?aa:ra;return e("div",[e(d,{props:l({itemsFormData:this.itemsFormData},this.$props),class:i({},x(d.name),!0),on:{onArrayOperate:this.handleArrayOperate}}),this.needValidFieldGroup?e(Kt,{key:"validateWidget-array",class:{validateWidget:!0,"validateWidget-array":!0},props:{schema:Object.entries(this.$props.schema).reduce((function(e,r){var t=u(r,2),a=t[0],o=t[1];return"items"!==a&&(e[a]=o),e}),{}),uiSchema:a,errorSchema:this.errorSchema,curNodePath:s,rootFormData:n,globalOptions:c}}):null])}},na={name:"SelectLinkageField",props:l(l({},Lt),{},{combiningType:{type:String,default:"anyOf"},selectList:{type:Array,require:!0}}),data:function(){return{curSelectIndex:this.computedCurSelectIndexByFormData(Kr(this.rootFormData,this.curNodePath))}},methods:{computedCurSelectIndexByFormData:function(e){return xt(e,this.selectList,this.rootSchema,!0)},getSelectBoxVNode:function(){var e=this,r=ot({schema:this.schema["".concat(this.combiningType,"Select")]||{},uiSchema:this.uiSchema["".concat(this.combiningType,"Select")]||{},curNodePath:this.curNodePath,rootFormData:this.rootFormData},(function(){return{widget:"SelectWidget"}}));if(r.label=r.label||this.schema.title,r.description=r.description||this.schema.description,!r.uiProps.enumOptions){var t=this.uiSchema[this.combiningType]||[];r.uiProps.enumOptions=this.selectList.map((function(e,r){return{label:at({schema:e,uiSchema:t[r],containsSpec:!1}).title||"选项 ".concat(r+1),value:r}}))}return this.$createElement(Kt,{key:"fieldSelect_".concat(this.combiningType),class:i({},"fieldSelect_".concat(this.combiningType),!0),props:l({isFormData:!1,curValue:this.curSelectIndex,globalOptions:this.globalOptions},r),on:{onOtherDataChange:function(r){e.curSelectIndex=r}}})}},watch:{curSelectIndex:function(e,r){var t=this,a=Kr(this.rootFormData,this.curNodePath),o=$t(this.selectList[e],void 0,this.rootSchema),i=Object.prototype.hasOwnProperty;if(f(a)){var n=Mr(this.selectList[r],this.rootSchema);if("object"===y(n))for(var s in n.properties)i.call(n.properties,s)&&!i.call(o,s)&&Qr(a,s)}f(o)?Object.entries(o).forEach((function(r){var o=u(r,2),i=o[0],n=o[1];void 0===n||void 0!==a[i]&&void 0===t.selectList[e].properties[i].const&&!f(n)||Hr(a,i,n)})):Hr(this.rootFormData,this.curNodePath,o||a)}},render:function(e){var r,t=this,a=this.$props.curNodePath,o=Wr(a),n="object"===this.schema.type||this.schema.properties,s=[this.getSelectBoxVNode()],u=this.selectList[this.curSelectIndex];if(u){var d=this.schema,p=this.combiningType,h="".concat(this.combiningType,"Select");d.properties,d[p],d[h];var f=c(d,["properties",p,h].map(m));u=Object.assign({},f,u)}var v=n&&S(u&&u.properties);if(u&&!v){var g=this.schema,y=this.combiningType,b="".concat(this.combiningType,"Select");g.properties,g[y],g[b];var P=c(g,["properties",y,b].map(m));u=Object.assign({},P,u);var w=F(at({schema:{},uiSchema:this.uiSchema,containsSpec:!1,curNodePath:a,rootFormData:this.rootFormData}),(function(e){return e===t.combiningType?void 0:"ui:".concat(e)})),E=F(it({schema:{},uiSchema:this.uiSchema,errorSchema:this.errorSchema}),(function(e){return e===t.combiningType?void 0:"err:".concat(e)}));s.push(e(la,{key:"appendSchema_".concat(this.combiningType),props:l(l({},this.$props),{},{schema:l({"ui:showTitle":!1,"ui:showDescription":!1},u),required:this.required,uiSchema:l(l({},w),(this.uiSchema[this.combiningType]||[])[this.curSelectIndex]),errorSchema:l(l({},E),(this.errorSchema[this.combiningType]||[])[this.curSelectIndex])})}))}var x=null;if(n&&!S(this.schema.properties)){var O,_=u;_.title,_.description,_.properties;var D=c(_,["title","description","properties"]),$=Object.assign({},this.schema,D);delete $[this.combiningType],x=e(la,{key:"origin_".concat(this.combiningType),class:(O={},i(O,"".concat(this.combiningType,"_originBox"),!0),i(O,"".concat(o,"-originBox"),!0),O),props:l(l({},this.$props),{},{schema:$})})}return s.push(e(Kt,{key:"validateWidget-".concat(this.combiningType),class:i({validateWidget:!0},"validateWidget-".concat(this.combiningType),!0),props:{schema:this.schema,uiSchema:this.uiSchema,errorSchema:this.errorSchema,curNodePath:this.curNodePath,rootFormData:this.rootFormData,globalOptions:this.globalOptions}})),e("div",[x,e("div",{key:"appendBox_".concat(this.combiningType),class:(r={appendCombining_box:!0},i(r,"".concat(this.combiningType,"_appendBox"),!0),i(r,"".concat(o,"-appendBox"),!0),r)},s)])}},sa={array:ia,boolean:Xt,integer:Yt,number:Zt,object:Gt,string:Jt,null:{render:function(){return null}},anyOf:{name:"AnyOfField",functional:!0,render:function(e,r){var t=r.data,a=t.props,o=c(t,["props"]);return e(na,l(l({},o),{},{props:l(l({},a),{},{combiningType:"anyOf",selectList:a.schema.anyOf})}),r.children)}},oneOf:{name:"oneOfField",functional:!0,render:function(e,r){var t=r.data,a=t.props,o=c(t,["props"]);return e(na,l(l({},o),{},{props:l(l({},a),{},{combiningType:"oneOf",selectList:a.schema.oneOf})}),r.children)}}},la={name:"SchemaField",props:Lt,functional:!0,render:function(e,r){var t,a=r.props,o=a.rootSchema,n=Mr(a.schema,o),s=l(l({},a),{},{schema:n});if(0===Object.keys(n).length)return null;var c,u,d=rt(sa,s),p=d.field,h=d.fieldProps,m=et({schema:n,uiSchema:a.uiSchema,curNodePath:a.curNodePath,rootFormData:a.rootFormData}),f=Wr(a.curNodePath);return n.anyOf&&n.anyOf.length>0&&!ct(n)?e(sa.anyOf,{class:(c={},i(c,"".concat(f,"-anyOf"),!0),i(c,"fieldItem",!0),i(c,"anyOfField",!0),c),props:s}):n.oneOf&&n.oneOf.length>0&&!ct(n)?e(sa.oneOf,{class:(u={},i(u,"".concat(f,"-oneOf"),!0),i(u,"fieldItem",!0),i(u,"oneOfField",!0),u),props:s}):p&&!m?e(p,{props:l(l({},s),{},{fieldProps:h}),class:l(l({},r.data.class),{},(t={},i(t,x(p.name)||p,!0),i(t,"hiddenWidget",m),i(t,"fieldItem",!0),i(t,f,!0),t))}):null}};var ca={name:"CheckboxesWidget",props:{enumOptions:{default:function(){return[]},type:[Array]}}},ua=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("checkbox-group",e._g(e._b({},"checkbox-group",e.$attrs,!1),e.$listeners),e._l(e.enumOptions,(function(r,a){return t("checkbox",{key:a,attrs:{label:r.value}},[e._v("\n        "+e._s(r.label)+"\n    ")])})),1)};ua._withStripped=!0;var da=At({render:ua,staticRenderFns:[]},void 0,ca,void 0,!1,void 0,!1,void 0,void 0,void 0),pa={name:"RadioWidget",props:{enumOptions:{default:function(){return[]},type:[Array]}}},ha=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("radio-group",e._g(e._b({},"radio-group",e.$attrs,!1),e.$listeners),e._l(e.enumOptions,(function(r,a){return t("radio",{key:a,attrs:{label:r.value}},[e._v("\n        "+e._s(r.label)+"\n    ")])})),1)};ha._withStripped=!0;var ma=At({render:ha,staticRenderFns:[]},void 0,pa,void 0,!1,void 0,!1,void 0,void 0,void 0),fa={name:"SelectWidget",props:{enumOptions:{default:function(){return[]},type:[Array]}}},va=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("i-select",e._g(e._b({},"i-select",e.$attrs,!1),e.$listeners),e._l(e.enumOptions,(function(r,a){return t("i-option",{key:a,attrs:{value:r.value}},[e._v("\n        "+e._s(r.label)+"\n    ")])})),1)};va._withStripped=!0;var ga=function(e){return"0".concat(e).substr(-2)};function ya(e,r){if(!e)return"";var t=new Date(e);if(r)return t.toISOString();var a={year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()},o=a.month,i=a.day;return"".concat(a.year,"-").concat(ga(o),"-").concat(ga(i))}var ba=function(e){return Array.isArray(e)?e.map((function(r){return e&&new Date(r)})):e&&new Date(e)};function Pa(e){return null===e||""===e||Array.isArray(e)&&e.every((function(e){return""===e}))}var wa={name:"DatePickerWidget",props:{value:{type:null},isNumberValue:{type:Boolean,default:!1},isDatetime:{type:Boolean,default:!1},isRange:{type:Boolean,default:!1}},data:function(){return{originValue:ba(this.value),formatValue:this.formatDate(this.value)}},watch:{value:function(e){e===this.formatValue||(this.originValue=ba(e))}},computed:{type:function(){return this.isDatetime?this.isRange?"datetimerange":"datetime":this.isRange?"daterange":"date"}},methods:{formatDate:function(e){var r=this.$props,t=r.isRange,a=r.isNumberValue,o=r.isDatetime;return t?Pa(e)?[]:e.map((function(e){return a?new Date(e).valueOf():ya(e,o)})):Pa(e)?void 0:a?new Date(e).valueOf():ya(e,o)}},render:function(e){var r=this;return e("date-picker",{attrs:l({type:this.type,value:this.originValue},this.$attrs),on:l(l({},this.$listeners),{},{input:function(e){r.originValue=e,r.formatValue=r.formatDate(e),r.$emit("input",r.formatValue)}})})}},Ea={CheckboxesWidget:da,RadioWidget:ma,SelectWidget:At({render:va,staticRenderFns:[]},void 0,fa,void 0,!1,void 0,!1,void 0,void 0,void 0),TimePickerWidget:{name:"TimePickerWidget",functional:!0,render:function(e,r){var t=r.data.on.input;return r.data.on=l(l({},r.data.on),{},{input:function(e){t.apply(r.data.on,[null===e?void 0:e])}}),e("time-picker",r.data,r.children)}},DatePickerWidget:wa,DateTimePickerWidget:{name:"DateTimePickerWidget",functional:!0,render:function(e,r){return r.data.attrs.isDatetime=!0,e(wa,r.data,r.children)}},UploadWidget:{name:"UploadWidget",props:{value:{default:null,type:[String,Array]},responseFileUrl:{default:function(e){return e?e.url||e.data&&e.data.url:""},type:[Function]},btnText:{type:String,default:"点击上传"},slots:{type:null,default:null}},data:function(){var e=this.value,r=Array.isArray(e),t=this.$attrs.fileList||(r?e.map((function(e,r){return{name:"已上传文件（".concat(r+1,"）"),url:e}})):e?[{name:"已上传文件",url:e}]:[]);return{isArrayValue:r,fileList:t}},methods:{getUrl:function(e){return e&&(e.response&&this.responseFileUrl(e.response)||e.url)||""},emitValue:function(e){var r,t=this;if(this.isArrayValue)r=e.length?e.reduce((function(e,r){var a=t.getUrl(r);return a&&e.push(a),e}),[]):[];else{var a=e[e.length-1];r=this.getUrl(a)}this.$emit("input",r)}},render:function(){var e=this,r=this.$createElement,t=this.$attrs,a=this.$props.slots,o={attrs:l(l({defaultFileList:this.fileList,"on-error":function(){e.$message&&e.$message.error("文件上传失败")},"on-preview":function(r){var t=e.getUrl(r);t&&function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank",t=document.createElement("a");t.style.display="none",t.target=r,t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)}(t)}},t),{},{"on-remove":function(r,a){e.emitValue(a),t["on-remove"]&&t["on-remove"](r,a)},"on-success":function(r,a,o){e.emitValue(o),t["on-success"]&&t["on-success"](r,a,o)}})};this.isArrayValue||(o.attrs.limit=1);var i=[];return a&&a.default?i.push(r("template",{slot:"default"},["function"==typeof a.default?a.default(r):a.default])):i.push(r("i-button",{props:{type:"primary"}},[this.btnText])),a&&a.tip&&i.push(r("template",{slot:"tip"},["function"==typeof a.tip?a.tip(r):a.tip])),r("upload",o,i)}},SwitchWidget:{name:"SwitchWidget",functional:!0,render:function(e,r){var t=r.props,a=t.activeText,o=t.inactiveText,i=Object.entries({open:a,close:o}).reduce((function(r,t){var a=u(t,2),o=a[0],i=a[1];return void 0!==i&&r.push(e("span",{slot:o},[i])),r}),[]);return e("i-switch",r.data,i)}},InputNumberWidget:{name:"SwitchWidget",functional:!0,render:function(e,r){return void 0===r.data.attrs.value&&(r.data.attrs.value=null),e("input-number",r.data,r.children)}}},Sa=Ea.InputNumberWidget,Fa={types:{boolean:Ea.SwitchWidget,string:"i-input",number:Sa,integer:Sa},formats:{color:"color-picker",time:Ea.TimePickerWidget,date:Ea.DatePickerWidget,"date-time":Ea.DateTimePickerWidget},common:{select:Ea.SelectWidget,radioGroup:Ea.RadioWidget,checkboxGroup:Ea.CheckboxesWidget},widgetComponents:Ea};kt(".genFromComponent.ivu-form-label-top .ivu-form-item-label{line-height:26px;padding-bottom:6px}.genFromComponent .ivu-form-item-error-tip{padding-top:2px;position:absolute;display:-webkit-box!important;text-overflow:ellipsis;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;text-align:left;line-height:1.2}.genFromComponent .validateWidget .ivu-form-item-error-tip{padding:5px 0;position:relative}");var xa=Object.freeze({WIDGET_MAP:Object.freeze(Fa),COMPONENT_MAP:Object.freeze({form:{functional:!0,render:function(e,r){return r.data.props=l(l({},r.data.props),{},{labelWidth:"top"!==r.data.props.labelPosition&&r.data.props.labelWidth?parseFloat(String(r.data.props.labelWidth)):void 0}),e("i-form",r.data,r.children)}},formItem:{functional:!0,render:function(e,r){return r.data.props=l(l({},r.data.props),{},{labelWidth:r.data.props&&r.data.props.labelWidth?parseFloat(String(r.data.props.labelWidth)):void 0}),e("form-item",r.data,Object.entries(r.slots()).map((function(r){var t=u(r,2),a=t[0],o=t[1];return e("template",{slot:a},o)})))}},button:"i-button",popover:{functional:!0,render:function(e,r){var t=r.slots(),a=t.default,o=t.reference;return e("poptip",r.data,[e("template",{slot:"default"},o),e("template",{slot:"content"},a)])}}}),HELPERS:{isMiniDes:function(e){return e&&["left","right"].includes(e.labelPosition)}}}),Oa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.WIDGET_MAP.widgetComponents&&Object.entries(e.WIDGET_MAP.widgetComponents).forEach((function(e){var r=u(e,2),t=r[0],o=r[1];return a.default.component(t,o)})),{name:"VueForm",props:jt,provide:function(){return{genFormProvide:this.genFormProvide}},data:function(){var e=$t(this.$props.schema,this.$props.value,this.$props.schema);return this.emitFormDataChange(e,this.value),{formData:e}},computed:{genFormProvide:function(){return{fallbackLabel:this.fallbackLabel}},footerParams:function(){return l({show:!0,okBtn:"保存",cancelBtn:"取消"},this.formFooter)}},watch:{formData:{handler:function(e,r){this.emitFormDataChange(e,r)},deep:!0},schema:function(e,r){this.willReceiveProps(e,r)},value:function(e,r){this.willReceiveProps(e,r)}},methods:{emitFormDataChange:function(e,r){this.$emit("input",e),this.$emit("on-change",{newValue:e,oldValue:r})},willReceiveProps:function(e,r){if(!b(e,r)){var t=$t(this.$props.schema,this.$props.value,this.$props.schema);b(this.formData,t)||(this.formData=t)}}},mounted:function(){this.$emit("on-form-mounted",this.$refs.genEditForm,{formData:this.formData})},render:function(r){var t,a=this,o=this.$scopedSlots.default?this.$scopedSlots.default({formData:a.formData,formRefFn:function(){return a.$refs.genEditForm}}):this.footerParams.show?r(It,{props:{globalOptions:e,okBtn:a.footerParams.okBtn,okBtnProps:a.footerParams.okBtnProps,cancelBtn:a.footerParams.cancelBtn,formItemAttrs:a.footerParams.formItemAttrs},on:{onCancel:function(){a.$emit("on-cancel")},onSubmit:function(){a.$refs.genEditForm.validate((function(e,r){return e?a.$emit("on-submit",a.formData):a.$emit("on-validation-failed",r)}))}}}):void 0,n=a.$props.formProps,s=n.layoutColumn,u=void 0===s?1:s,d=n.inlineFooter,p=c(n,["layoutColumn","inlineFooter"]),h={schema:this.schema,uiSchema:this.uiSchema,errorSchema:this.errorSchema,customFormats:this.customFormats,customRule:this.customRule,rootSchema:this.schema,rootFormData:this.formData,curNodePath:"",globalOptions:e,formProps:l({labelPosition:"top",labelSuffix:"："},p)},m=p.inline;return r(e.COMPONENT_MAP.form,{class:(t={genFromComponent:!0,formInlineFooter:d,formInline:m},i(t,"genFromComponent_".concat(this.schema.id,"Form"),!!this.schema.id),i(t,"layoutColumn",!m),i(t,"layoutColumn-".concat(u),!m),t),ref:"genEditForm",props:l({model:a.formData},h.formProps)},[r(la,{props:h}),o])}}}(xa);"undefined"!=typeof window&&window.Vue&&window.Vue.component("VueFormIview3",Oa),e.SchemaField=la,e.default=Oa,e.fieldProps=Lt,e.formUtils=ft,e.getDefaultFormState=$t,e.globalOptions=xa,e.i18n=Rr,e.schemaValidate=Ot,e.vueUtils=Jr,Object.defineProperty(e,"__esModule",{value:!0})}));
  