4294967295||h<0)throw new Error("ipaddr: address outside defined range");return(function(){var p,v;for(v=[],d=p=0;p<=24;d=p+=8)v.push(h>>d&255);return v})().reverse()}else return null},e.IPv6=(function(){function c(u,f){var m,d,h,p,v,g;if(u.length===16)for(this.parts=[],m=d=0;d<=14;m=d+=2)this.parts.push(u[m]<<8|u[m+1]);else if(u.length===8)this.parts=u;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(g=this.parts,h=0,p=g.length;hf&&(u=m.index,f=m[0].length);return f<0?h:h.substring(0,u)+"::"+h.substring(u+f)},c.prototype.toByteArray=function(){var u,f,m,d,h;for(u=[],h=this.parts,f=0,m=h.length;f>8),u.push(d&255);return u},c.prototype.toNormalizedString=function(){var u,f,m;return u=(function(){var d,h,p,v;for(p=this.parts,v=[],d=0,h=p.length;d>8,u&255,f>>8,f&255])},c.prototype.prefixLengthFromSubnetMask=function(){var u,f,m,d,h,p,v;for(v={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},u=0,h=!1,f=m=7;m>=0;f=m+=-1)if(d=this.parts[f],d in v){if(p=v[d],h&&p!==0)return null;p!==16&&(h=!0),u+=p}else return null;return 128-u},c})(),s="(?:[0-9a-f]+::?)+",l="%[0-9a-z]{1,}",i={zoneIndex:new RegExp(l,"i"),native:new RegExp("^(::)?("+s+")?([0-9a-f]+)?(::)?("+l+")?$","i"),transitional:new RegExp("^((?:"+s+")|(?:::)(?:"+s+")?)"+(a+"\\."+a+"\\."+a+"\\."+a)+("("+l+")?$"),"i")},r=function(c,u){var f,m,d,h,p,v;if(c.indexOf("::")!==c.lastIndexOf("::"))return null;for(v=(c.match(i.zoneIndex)||[])[0],v&&(v=v.substring(1),c=c.replace(/%.+$/,"")),f=0,m=-1;(m=c.indexOf(":",m+1))>=0;)f++;if(c.substr(0,2)==="::"&&f--,c.substr(-2,2)==="::"&&f--,f>u)return null;for(p=u-f,h=":";p--;)h+="0:";return c=c.replace("::",h),c[0]===":"&&(c=c.slice(1)),c[c.length-1]===":"&&(c=c.slice(0,-1)),u=(function(){var g,b,E,k;for(E=c.split(":"),k=[],g=0,b=E.length;g=0&&u<=32))return m=[this.parse(f[1]),u],Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},e.IPv4.subnetMaskFromPrefixLength=function(c){var u,f,m;if(c=parseInt(c),c<0||c>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(m=[0,0,0,0],f=0,u=Math.floor(c/8);f=0&&u<=128))return m=[this.parse(f[1]),u],Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},e.isValid=function(c){return e.IPv6.isValid(c)||e.IPv4.isValid(c)},e.parse=function(c){if(e.IPv6.isValid(c))return e.IPv6.parse(c);if(e.IPv4.isValid(c))return e.IPv4.parse(c);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},e.parseCIDR=function(c){var u;try{return e.IPv6.parseCIDR(c)}catch(f){u=f;try{return e.IPv4.parseCIDR(c)}catch(m){throw u=m,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},e.fromByteArray=function(c){var u;if(u=c.length,u===4)return new e.IPv4(c);if(u===16)return new e.IPv6(c);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},e.process=function(c){var u;return u=this.parse(c),u.kind()==="ipv6"&&u.isIPv4MappedAddress()?u.toIPv4Address():u}}).call(Dy)});var Yu=F(($F,zo)=>{"use strict";zo.exports=W4;zo.exports.all=Ly;zo.exports.compile=My;var z4=Ny(),Fy=$y(),H4=/^[0-9]+$/,Mo=Fy.isValid,Uo=Fy.parse,qy={linklocal:["169.254.0.0/16","fe80::/10"],loopback:["127.0.0.1/8","::1/128"],uniquelocal:["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","fc00::/7"]};function Ly(r,e){var a=z4(r);if(!e)return a;typeof e!="function"&&(e=My(e));for(var t=0;ts)throw new TypeError("invalid range on address: "+r);return[t,i]}function G4(r){var e=Uo(r),a=e.kind();return a==="ipv4"?e.prefixLengthFromSubnetMask():null}function W4(r,e){if(!r)throw new TypeError("req argument is required");if(!e)throw new TypeError("trust argument is required");var a=Ly(r,e),t=a[a.length-1];return t}function Q4(){return!1}function K4(r){return function(a){if(!Mo(a))return!1;for(var t=Uo(a),s,i=t.kind(),n=0;n{"use strict";var Uy=No().Buffer,J4=Hu(),zy=$n(),Hy=Tr()("express"),Y4=li(),eC=Lo().mime,tC=Bu(),rC=Yu(),aC=So(),sC=require("querystring");Tt.etag=By({weak:!1});Tt.wetag=By({weak:!0});Tt.isAbsolute=function(r){if(r[0]==="/"||r[1]===":"&&(r[2]==="\\"||r[2]==="/")||r.substring(0,2)==="\\\\")return!0};Tt.flatten=Hy.function(Y4,"utils.flatten: use array-flatten npm module instead");Tt.normalizeType=function(r){return~r.indexOf("/")?nC(r):{value:eC.lookup(r),params:{}}};Tt.normalizeTypes=function(r){for(var e=[],a=0;a{"use strict";var cC=Pg(),lC=Lu(),tp=Oo(),uC=Xg(),pC=Mu(),Ho=er()("express:application"),dC=ay(),fC=require("http"),mC=ya().compileETag,hC=ya().compileQueryParser,vC=ya().compileTrust,gC=Tr()("express"),yC=li(),ep=ui(),bC=require("path").resolve,nn=qn(),xC=Object.prototype.hasOwnProperty,ap=Array.prototype.slice,mt=Vy=Zy.exports={},rp="@@symbol:trust_proxy_default";mt.init=function(){this.cache={},this.engines={},this.settings={},this.defaultConfiguration()};mt.defaultConfiguration=function(){var e=process.env.NODE_ENV||"development";this.enable("x-powered-by"),this.set("etag","weak"),this.set("env",e),this.set("query parser","extended"),this.set("subdomain offset",2),this.set("trust proxy",!1),Object.defineProperty(this.settings,rp,{configurable:!0,value:!0}),Ho("booting in %s mode",e),this.on("mount",function(t){this.settings[rp]===!0&&typeof t.settings["trust proxy fn"]=="function"&&(delete this.settings["trust proxy"],delete this.settings["trust proxy fn"]),nn(this.request,t.request),nn(this.response,t.response),nn(this.engines,t.engines),nn(this.settings,t.settings)}),this.locals=Object.create(null),this.mountpath="/",this.locals.settings=this.settings,this.set("view",dC),this.set("views",bC("views")),this.set("jsonp callback name","callback"),e==="production"&&this.enable("view cache"),Object.defineProperty(this,"router",{get:function(){throw new Error(`'app.router' is deprecated!
-Please see the 3.x to 4.x migration guide for details on how to update your app.`)}})};mt.lazyrouter=function(){this._router||(this._router=new lC({caseSensitive:this.enabled("case sensitive routing"),strict:this.enabled("strict routing")}),this._router.use(pC(this.get("query parser fn"))),this._router.use(uC.init(this)))};mt.handle=function(e,a,t){var s=this._router,i=t||cC(e,a,{env:this.get("env"),onerror:_C.bind(this)});if(!s){Ho("no routes defined on app"),i();return}s.handle(e,a,i)};mt.use=function(e){var a=0,t="/";if(typeof e!="function"){for(var s=e;Array.isArray(s)&&s.length!==0;)s=s[0];typeof s!="function"&&(a=1,t=e)}var i=yC(ap.call(arguments,a));if(i.length===0)throw new TypeError("app.use() requires a middleware function");this.lazyrouter();var n=this._router;return i.forEach(function(o){if(!o||!o.handle||!o.set)return n.use(t,o);Ho(".use app under %s",t),o.mountpath=t,o.parent=this,n.use(t,function(c,u,f){var m=c.app;o.handle(c,u,function(d){nn(c,m.request),nn(u,m.response),f(d)})}),o.emit("mount",this)},this),this};mt.route=function(e){return this.lazyrouter(),this._router.route(e)};mt.engine=function(e,a){if(typeof a!="function")throw new Error("callback function required");var t=e[0]!=="."?"."+e:e;return this.engines[t]=a,this};mt.param=function(e,a){if(this.lazyrouter(),Array.isArray(e)){for(var t=0;t1?'directories "'+c.root.slice(0,-1).join('", "')+'" or "'+c.root[c.root.length-1]+'"':'directory "'+c.root+'"',m=new Error('Failed to lookup view "'+e+'" in views '+f);return m.view=c,i(m)}l.cache&&(s[e]=c)}EC(c,l,i)};mt.listen=function(){var e=fC.createServer(this);return e.listen.apply(e,arguments)};function _C(r){this.get("env")!=="test"&&console.error(r.stack||r.toString())}function EC(r,e,a){try{r.render(e,a)}catch(t){a(t)}}});var Xy=F((FF,sp)=>{"use strict";sp.exports=Ky;sp.exports.preferredCharsets=Ky;var wC=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function SC(r){for(var e=r.split(","),a=0,t=0;a0}});var rb=F((LF,np)=>{"use strict";np.exports=tb;np.exports.preferredEncodings=tb;var OC=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function CC(r){for(var e=r.split(","),a=!1,t=1,s=0,i=0;s0}});var ob=F((MF,ip)=>{"use strict";ip.exports=ib;ip.exports.preferredLanguages=ib;var NC=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function DC(r){for(var e=r.split(","),a=0,t=0;a0}});var fb=F((UF,op)=>{"use strict";op.exports=pb;op.exports.preferredMediaTypes=pb;var LC=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function MC(r){for(var e=VC(r),a=0,t=0;a0)if(i.every(function(n){return e.params[n]=="*"||(e.params[n]||"").toLowerCase()==(t.params[n]||"").toLowerCase()}))s|=1;else return null;return{i:a,o:e.i,q:e.q,s}}function pb(r,e){var a=MC(r===void 0?"*/*":r||"");if(!e)return a.filter(lb).sort(cb).map(HC);var t=e.map(function(i,n){return UC(i,a,n)});return t.filter(lb).sort(cb).map(function(i){return e[t.indexOf(i)]})}function cb(r,e){return e.q-r.q||e.s-r.s||r.o-e.o||r.i-e.i||0}function HC(r){return r.type+"/"+r.subtype}function lb(r){return r.q>0}function db(r){for(var e=0,a=0;(a=r.indexOf('"',a))!==-1;)e++,a++;return e}function BC(r){var e=r.indexOf("="),a,t;return e===-1?a=r:(a=r.substr(0,e),t=r.substr(e+1)),[a,t]}function VC(r){for(var e=r.split(","),a=1,t=0;a{"use strict";var GC=Xy(),WC=rb(),QC=ob(),KC=fb();cp.exports=rt;cp.exports.Negotiator=rt;function rt(r){if(!(this instanceof rt))return new rt(r);this.request=r}rt.prototype.charset=function(e){var a=this.charsets(e);return a&&a[0]};rt.prototype.charsets=function(e){return GC(this.request.headers["accept-charset"],e)};rt.prototype.encoding=function(e){var a=this.encodings(e);return a&&a[0]};rt.prototype.encodings=function(e){return WC(this.request.headers["accept-encoding"],e)};rt.prototype.language=function(e){var a=this.languages(e);return a&&a[0]};rt.prototype.languages=function(e){return QC(this.request.headers["accept-language"],e)};rt.prototype.mediaType=function(e){var a=this.mediaTypes(e);return a&&a[0]};rt.prototype.mediaTypes=function(e){return KC(this.request.headers.accept,e)};rt.prototype.preferredCharset=rt.prototype.charset;rt.prototype.preferredCharsets=rt.prototype.charsets;rt.prototype.preferredEncoding=rt.prototype.encoding;rt.prototype.preferredEncodings=rt.prototype.encodings;rt.prototype.preferredLanguage=rt.prototype.language;rt.prototype.preferredLanguages=rt.prototype.languages;rt.prototype.preferredMediaType=rt.prototype.mediaType;rt.prototype.preferredMediaTypes=rt.prototype.mediaTypes});var vb=F((HF,hb)=>{"use strict";var XC=mb(),JC=su();hb.exports=Gt;function Gt(r){if(!(this instanceof Gt))return new Gt(r);this.headers=r.headers,this.negotiator=new XC(r)}Gt.prototype.type=Gt.prototype.types=function(r){var e=r;if(e&&!Array.isArray(e)){e=new Array(arguments.length);for(var a=0;a{"use strict";var Bo=vb(),mi=Tr()("express"),tA=require("net").isIP,rA=Hs(),aA=require("http"),sA=Vu(),nA=Zu(),iA=Xs(),gb=Yu(),at=Object.create(aA.IncomingMessage.prototype);yb.exports=at;at.get=at.header=function(e){if(!e)throw new TypeError("name argument is required to req.get");if(typeof e!="string")throw new TypeError("name must be a string to req.get");var a=e.toLowerCase();switch(a){case"referer":case"referrer":return this.headers.referrer||this.headers.referer;default:return this.headers[a]}};at.accepts=function(){var r=Bo(this);return r.types.apply(r,arguments)};at.acceptsEncodings=function(){var r=Bo(this);return r.encodings.apply(r,arguments)};at.acceptsEncoding=mi.function(at.acceptsEncodings,"req.acceptsEncoding: Use acceptsEncodings instead");at.acceptsCharsets=function(){var r=Bo(this);return r.charsets.apply(r,arguments)};at.acceptsCharset=mi.function(at.acceptsCharsets,"req.acceptsCharset: Use acceptsCharsets instead");at.acceptsLanguages=function(){var r=Bo(this);return r.languages.apply(r,arguments)};at.acceptsLanguage=mi.function(at.acceptsLanguages,"req.acceptsLanguage: Use acceptsLanguages instead");at.range=function(e,a){var t=this.get("Range");if(t)return nA(e,t,a)};at.param=function(e,a){var t=this.params||{},s=this.body||{},i=this.query||{},n=arguments.length===1?"name":"name, default";return mi("req.param("+n+"): Use req.params, req.body, or req.query instead"),t[e]!=null&&t.hasOwnProperty(e)?t[e]:s[e]!=null?s[e]:i[e]!=null?i[e]:a};at.is=function(e){var a=e;if(!Array.isArray(e)){a=new Array(arguments.length);for(var t=0;t=200&&a<300||a===304?sA(this.headers,{etag:e.get("ETag"),"last-modified":e.get("Last-Modified")}):!1});_r(at,"stale",function(){return!this.fresh});_r(at,"xhr",function(){var e=this.get("X-Requested-With")||"";return e.toLowerCase()==="xmlhttprequest"});function _r(r,e,a){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:a})}});var Eb=F(Vo=>{var _b=require("crypto");Vo.sign=function(r,e){if(typeof r!="string")throw new TypeError("Cookie value must be provided as a string.");if(typeof e!="string")throw new TypeError("Secret string must be provided.");return r+"."+_b.createHmac("sha256",e).update(r).digest("base64").replace(/\=+$/,"")};Vo.unsign=function(r,e){if(typeof r!="string")throw new TypeError("Signed cookie string must be provided.");if(typeof e!="string")throw new TypeError("Secret string must be provided.");var a=r.slice(0,r.lastIndexOf(".")),t=Vo.sign(a,e);return xb(t)==xb(r)?a:!1};function xb(r){return _b.createHash("sha1").update(r).digest("hex")}});var Pb=F(lp=>{"use strict";lp.parse=dA;lp.serialize=fA;var oA=Object.prototype.toString,cA=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,lA=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,uA=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,pA=/^[\u0020-\u003A\u003D-\u007E]*$/;function dA(r,e){if(typeof r!="string")throw new TypeError("argument str must be a string");var a={},t=r.length;if(t<2)return a;var s=e&&e.decode||mA,i=0,n=0,o=0;do{if(n=r.indexOf("=",i),n===-1)break;if(o=r.indexOf(";",i),o===-1)o=t;else if(n>o){i=r.lastIndexOf(";",n-1)+1;continue}var l=wb(r,i,n),c=Sb(r,n,l),u=r.slice(l,c);if(!a.hasOwnProperty(u)){var f=wb(r,n+1,o),m=Sb(r,o,f);r.charCodeAt(f)===34&&r.charCodeAt(m-1)===34&&(f++,m--);var d=r.slice(f,m);a[u]=vA(d,s)}i=o+1}while(ia;){var t=r.charCodeAt(--e);if(t!==32&&t!==9)return e+1}return a}function fA(r,e,a){var t=a&&a.encode||encodeURIComponent;if(typeof t!="function")throw new TypeError("option encode is invalid");if(!cA.test(r))throw new TypeError("argument name is invalid");var s=t(e);if(!lA.test(s))throw new TypeError("argument val is invalid");var i=r+"="+s;if(!a)return i;if(a.maxAge!=null){var n=Math.floor(a.maxAge);if(!isFinite(n))throw new TypeError("option maxAge is invalid");i+="; Max-Age="+n}if(a.domain){if(!uA.test(a.domain))throw new TypeError("option domain is invalid");i+="; Domain="+a.domain}if(a.path){if(!pA.test(a.path))throw new TypeError("option path is invalid");i+="; Path="+a.path}if(a.expires){var o=a.expires;if(!hA(o)||isNaN(o.valueOf()))throw new TypeError("option expires is invalid");i+="; Expires="+o.toUTCString()}if(a.httpOnly&&(i+="; HttpOnly"),a.secure&&(i+="; Secure"),a.partitioned&&(i+="; Partitioned"),a.priority){var l=typeof a.priority=="string"?a.priority.toLowerCase():a.priority;switch(l){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(a.sameSite){var c=typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite;switch(c){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return i}function mA(r){return r.indexOf("%")!==-1?decodeURIComponent(r):r}function hA(r){return oA.call(r)==="[object Date]"}function vA(r,e){try{return e(r)}catch{return r}}});var pp=F((GF,up)=>{"use strict";up.exports=yA;up.exports.append=Tb;var gA=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Tb(r,e){if(typeof r!="string")throw new TypeError("header argument is required");if(!e)throw new TypeError("field argument is required");for(var a=Array.isArray(e)?e:Rb(String(e)),t=0;t{"use strict";var hi=No().Buffer,kb=Hu(),bA=ja(),Nt=Tr()("express"),xA=To(),_A=ci(),EA=require("http"),wA=ya().isAbsolute,SA=Gn(),Ob=require("path"),Zo=Fn(),Cb=ui(),PA=Eb().sign,RA=ya().normalizeType,TA=ya().normalizeTypes,kA=ya().setCharset,OA=Pb(),dp=Lo(),CA=Ob.extname,Ab=dp.mime,AA=Ob.resolve,IA=pp(),nt=Object.create(EA.ServerResponse.prototype);Nb.exports=nt;var jA=/;\s*charset\s*=/;nt.status=function(e){return(typeof e=="string"||Math.floor(e)!==e)&&e>99&&e<1e3&&Nt("res.status("+JSON.stringify(e)+"): use res.status("+Math.floor(e)+") instead"),this.statusCode=e,this};nt.links=function(r){var e=this.get("Link")||"";return e&&(e+=", "),this.set("Link",e+Object.keys(r).map(function(a){return"<"+r[a]+'>; rel="'+a+'"'}).join(", "))};nt.send=function(e){var a=e,t,s=this.req,i,n=this.app;switch(arguments.length===2&&(typeof arguments[0]!="number"&&typeof arguments[1]=="number"?(Nt("res.send(body, status): Use res.status(status).send(body) instead"),this.statusCode=arguments[1]):(Nt("res.send(status, body): Use res.status(status).send(body) instead"),this.statusCode=arguments[0],a=arguments[1])),typeof a=="number"&&arguments.length===1&&(this.get("Content-Type")||this.type("txt"),Nt("res.send(status): Use res.sendStatus(status) instead"),this.statusCode=a,a=Zo.message[a]),typeof a){case"string":this.get("Content-Type")||this.type("html");break;case"boolean":case"number":case"object":if(a===null)a="";else if(hi.isBuffer(a))this.get("Content-Type")||this.type("bin");else return this.json(a);break}typeof a=="string"&&(t="utf8",i=this.get("Content-Type"),typeof i=="string"&&this.set("Content-Type",kA(i,"utf-8")));var o=n.get("etag fn"),l=!this.get("ETag")&&typeof o=="function",c;a!==void 0&&(hi.isBuffer(a)?c=a.length:!l&&a.length<1e3?c=hi.byteLength(a,t):(a=hi.from(a,t),t=void 0,c=a.length),this.set("Content-Length",c));var u;return l&&c!==void 0&&(u=o(a,t))&&this.set("ETag",u),s.fresh&&(this.statusCode=304),(this.statusCode===204||this.statusCode===304)&&(this.removeHeader("Content-Type"),this.removeHeader("Content-Length"),this.removeHeader("Transfer-Encoding"),a=""),this.statusCode===205&&(this.set("Content-Length","0"),this.removeHeader("Transfer-Encoding"),a=""),s.method==="HEAD"?this.end():this.end(a,t),this};nt.json=function(e){var a=e;arguments.length===2&&(typeof arguments[1]=="number"?(Nt("res.json(obj, status): Use res.status(status).json(obj) instead"),this.statusCode=arguments[1]):(Nt("res.json(status, obj): Use res.status(status).json(obj) instead"),this.statusCode=arguments[0],a=arguments[1]));var t=this.app,s=t.get("json escape"),i=t.get("json replacer"),n=t.get("json spaces"),o=jb(a,i,n,s);return this.get("Content-Type")||this.set("Content-Type","application/json"),this.send(o)};nt.jsonp=function(e){var a=e;arguments.length===2&&(typeof arguments[1]=="number"?(Nt("res.jsonp(obj, status): Use res.status(status).jsonp(obj) instead"),this.statusCode=arguments[1]):(Nt("res.jsonp(status, obj): Use res.status(status).jsonp(obj) instead"),this.statusCode=arguments[0],a=arguments[1]));var t=this.app,s=t.get("json escape"),i=t.get("json replacer"),n=t.get("json spaces"),o=jb(a,i,n,s),l=this.req.query[t.get("jsonp callback name")];return this.get("Content-Type")||(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","application/json")),Array.isArray(l)&&(l=l[0]),typeof l=="string"&&l.length!==0&&(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","text/javascript"),l=l.replace(/[^\[\]\w$.]/g,""),o===void 0?o="":typeof o=="string"&&(o=o.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")),o="/**/ typeof "+l+" === 'function' && "+l+"("+o+");"),this.send(o)};nt.sendStatus=function(e){var a=Zo.message[e]||String(e);return this.statusCode=e,this.type("txt"),this.send(a)};nt.sendFile=function(e,a,t){var s=t,i=this.req,n=this,o=i.next,l=a||{};if(!e)throw new TypeError("path argument is required to res.sendFile");if(typeof e!="string")throw new TypeError("path must be a string to res.sendFile");if(typeof a=="function"&&(s=a,l={}),!l.root&&!wA(e))throw new TypeError("path must be absolute or specify root to res.sendFile");var c=encodeURI(e),u=dp(i,c,l);Ib(n,u,l,function(f){if(s)return s(f);if(f&&f.code==="EISDIR")return o();f&&f.code!=="ECONNABORTED"&&f.syscall!=="write"&&o(f)})};nt.sendfile=function(r,e,a){var t=a,s=this.req,i=this,n=s.next,o=e||{};typeof e=="function"&&(t=e,o={});var l=dp(s,r,o);Ib(i,l,o,function(c){if(t)return t(c);if(c&&c.code==="EISDIR")return n();c&&c.code!=="ECONNABORTED"&&c.syscall!=="write"&&n(c)})};nt.sendfile=Nt.function(nt.sendfile,"res.sendfile: Use res.sendFile instead");nt.download=function(e,a,t,s){var i=s,n=a,o=t||null;typeof a=="function"?(i=a,n=null,o=null):typeof t=="function"&&(i=t,o=null),typeof a=="object"&&(typeof t=="function"||t===void 0)&&(n=null,o=a);var l={"Content-Disposition":kb(n||e)};if(o&&o.headers)for(var c=Object.keys(o.headers),u=0;u0?e.accepts(t):!1;return this.vary("Accept"),s?(this.set("Content-Type",RA(s).value),r[s](e,this,a)):r.default?r.default(e,this,a):a(bA(406,{types:TA(t).map(function(i){return i.value})})),this};nt.attachment=function(e){return e&&this.type(CA(e)),this.set("Content-Disposition",kb(e)),this};nt.append=function(e,a){var t=this.get(e),s=a;return t&&(s=Array.isArray(t)?t.concat(a):Array.isArray(a)?[t].concat(a):[t,a]),this.set(e,s)};nt.set=nt.header=function(e,a){if(arguments.length===2){var t=Array.isArray(a)?a.map(String):String(a);if(e.toLowerCase()==="content-type"){if(Array.isArray(t))throw new TypeError("Content-Type cannot be set to an Array");if(!jA.test(t)){var s=Ab.charsets.lookup(t.split(";")[0]);s&&(t+="; charset="+s.toLowerCase())}}this.setHeader(e,t)}else for(var i in e)this.set(i,e[i]);return this};nt.get=function(r){return this.getHeader(r)};nt.clearCookie=function(e,a){a&&(a.maxAge&&Nt('res.clearCookie: Passing "options.maxAge" is deprecated. In v5.0.0 of Express, this option will be ignored, as res.clearCookie will automatically set cookies to expire immediately. Please update your code to omit this option.'),a.expires&&Nt('res.clearCookie: Passing "options.expires" is deprecated. In v5.0.0 of Express, this option will be ignored, as res.clearCookie will automatically set cookies to expire immediately. Please update your code to omit this option.'));var t=Cb({expires:new Date(1),path:"/"},a);return this.cookie(e,"",t)};nt.cookie=function(r,e,a){var t=Cb({},a),s=this.req.secret,i=t.signed;if(i&&!s)throw new Error('cookieParser("secret") required for signed cookies');var n=typeof e=="object"?"j:"+JSON.stringify(e):String(e);if(i&&(n="s:"+PA(n,s)),t.maxAge!=null){var o=t.maxAge-0;isNaN(o)||(t.expires=new Date(Date.now()+o),t.maxAge=Math.floor(o/1e3))}return t.path==null&&(t.path="/"),this.append("Set-Cookie",OA.serialize(r,String(n),t)),this};nt.location=function(e){var a;return e==="back"?(Nt('res.location("back"): use res.location(req.get("Referrer") || "/") and refer to https://dub.sh/security-redirect for best practices'),a=this.req.get("Referrer")||"/"):a=String(e),this.set("Location",xA(a))};nt.redirect=function(e){var a=e,t,s=302;arguments.length===2&&(typeof arguments[0]=="number"?(s=arguments[0],a=arguments[1]):(Nt("res.redirect(url, status): Use res.redirect(status, url) instead"),s=arguments[1])),a=this.location(a).get("Location"),this.format({text:function(){t=Zo.message[s]+". Redirecting to "+a},html:function(){var i=_A(a);t=""+Zo.message[s]+". Redirecting to "+i+"
"},default:function(){t=""}}),this.statusCode=s,this.set("Content-Length",hi.byteLength(t)),this.req.method==="HEAD"?this.end():this.end(t)};nt.vary=function(r){return!r||Array.isArray(r)&&!r.length?(Nt("res.vary(): Provide a field name"),this):(IA(this,r),this)};nt.render=function(e,a,t){var s=this.req.app,i=t,n=a||{},o=this.req,l=this;typeof a=="function"&&(i=a,n={}),n._locals=l.locals,i=i||function(c,u){if(c)return o.next(c);l.send(u)},s.render(e,n,i)};function Ib(r,e,a,t){var s=!1,i;function n(){if(!s){s=!0;var d=new Error("Request aborted");d.code="ECONNABORTED",t(d)}}function o(){if(!s){s=!0;var d=new Error("EISDIR, read");d.code="EISDIR",t(d)}}function l(d){s||(s=!0,t(d))}function c(){s||(s=!0,t())}function u(){i=!1}function f(d){if(d&&d.code==="ECONNRESET")return n();if(d)return l(d);s||setImmediate(function(){if(i!==!1&&!s){n();return}s||(s=!0,t())})}function m(){i=!0}e.on("directory",o),e.on("end",c),e.on("error",l),e.on("file",u),e.on("stream",m),SA(r,f),a.headers&&e.on("headers",function(h){for(var p=a.headers,v=Object.keys(p),g=0;g&]/g,function(i){switch(i.charCodeAt(0)){case 60:return"\\u003c";case 62:return"\\u003e";case 38:return"\\u0026";default:return i}})),s}});var qb=F((QF,mp)=>{"use strict";var NA=To(),DA=ci(),fp=Xs(),$A=require("path").resolve,$b=Lo(),qA=require("url");mp.exports=FA;mp.exports.mime=$b.mime;function FA(r,e){if(!r)throw new TypeError("root path required");if(typeof r!="string")throw new TypeError("root path must be a string");var a=Object.create(e||null),t=a.fallthrough!==!1,s=a.redirect!==!1,i=a.setHeaders;if(i&&typeof i!="function")throw new TypeError("option setHeaders must be function");a.maxage=a.maxage||a.maxAge||0,a.root=$A(r);var n=s?zA():UA();return function(l,c,u){if(l.method!=="GET"&&l.method!=="HEAD"){if(t)return u();c.statusCode=405,c.setHeader("Allow","GET, HEAD"),c.setHeader("Content-Length","0"),c.end();return}var f=!t,m=fp.original(l),d=fp(l).pathname;d==="/"&&m.pathname.substr(-1)!=="/"&&(d="");var h=$b(l,d,a);h.on("directory",n),i&&h.on("headers",i),t&&h.on("file",function(){f=!0}),h.on("error",function(v){if(f||!(v.statusCode<500)){u(v);return}u()}),h.pipe(c)}}function LA(r){for(var e=0;e1?"/"+r.substr(e):r}function MA(r,e){return`
+`}function j4(r,e){return e?e instanceof Error?Gu(r,e,{expose:!1}):Gu(r,e):Gu(r)}function N4(r){try{return decodeURIComponent(r)}catch{return-1}}function D4(r){return typeof r.getHeaderNames!="function"?Object.keys(r._headers||{}):r.getHeaderNames()}function Ay(r,e){var a=typeof r.listenerCount!="function"?r.listeners(e).length:r.listenerCount(e);return a>0}function $4(r){return typeof r.headersSent!="boolean"?!!r._header:r.headersSent}function Ku(r,e){for(var a=[].concat(r||[]),t=0;t{"use strict";jy.exports=L4;function L4(r){if(!r)throw new TypeError("argument req is required");var e=U4(r.headers["x-forwarded-for"]||""),a=M4(r),t=[a].concat(e);return t}function M4(r){return r.socket?r.socket.remoteAddress:r.connection.remoteAddress}function U4(r){for(var e=r.length,a=[],t=r.length,s=r.length-1;s>=0;s--)switch(r.charCodeAt(s)){case 32:t===e&&(t=e=s);break;case 44:t!==e&&a.push(r.substring(t,e)),t=e=s;break;default:t=s;break}return t!==e&&a.push(r.substring(t,e)),a}});var $y=F((Dy,fi)=>{(function(){var r,e,a,t,s,i,n,o,l;e={},o=this,typeof fi<"u"&&fi!==null&&fi.exports?fi.exports=e:o.ipaddr=e,n=function(c,u,f,m){var d,h;if(c.length!==u.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(d=0;m>0;){if(h=f-m,h<0&&(h=0),c[d]>>h!==u[d]>>h)return!1;m-=f,d+=1}return!0},e.subnetMatch=function(c,u,f){var m,d,h,p,v;f==null&&(f="unicast");for(h in u)for(p=u[h],p[0]&&!(p[0]instanceof Array)&&(p=[p]),m=0,d=p.length;m=0;f=m+=-1)if(d=this.octets[f],d in v){if(p=v[d],h&&p!==0)return null;p!==8&&(h=!0),u+=p}else return null;return 32-u},c})(),a="(0?\\d+|0x[a-f0-9]+)",t={fourOctet:new RegExp("^"+a+"\\."+a+"\\."+a+"\\."+a+"$","i"),longValue:new RegExp("^"+a+"$","i")},e.IPv4.parser=function(c){var u,f,m,d,h;if(f=function(p){return p[0]==="0"&&p[1]!=="x"?parseInt(p,8):parseInt(p)},u=c.match(t.fourOctet))return(function(){var p,v,g,b;for(g=u.slice(1,6),b=[],p=0,v=g.length;p4294967295||h<0)throw new Error("ipaddr: address outside defined range");return(function(){var p,v;for(v=[],d=p=0;p<=24;d=p+=8)v.push(h>>d&255);return v})().reverse()}else return null},e.IPv6=(function(){function c(u,f){var m,d,h,p,v,g;if(u.length===16)for(this.parts=[],m=d=0;d<=14;m=d+=2)this.parts.push(u[m]<<8|u[m+1]);else if(u.length===8)this.parts=u;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(g=this.parts,h=0,p=g.length;hf&&(u=m.index,f=m[0].length);return f<0?h:h.substring(0,u)+"::"+h.substring(u+f)},c.prototype.toByteArray=function(){var u,f,m,d,h;for(u=[],h=this.parts,f=0,m=h.length;f>8),u.push(d&255);return u},c.prototype.toNormalizedString=function(){var u,f,m;return u=(function(){var d,h,p,v;for(p=this.parts,v=[],d=0,h=p.length;d>8,u&255,f>>8,f&255])},c.prototype.prefixLengthFromSubnetMask=function(){var u,f,m,d,h,p,v;for(v={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},u=0,h=!1,f=m=7;m>=0;f=m+=-1)if(d=this.parts[f],d in v){if(p=v[d],h&&p!==0)return null;p!==16&&(h=!0),u+=p}else return null;return 128-u},c})(),s="(?:[0-9a-f]+::?)+",l="%[0-9a-z]{1,}",i={zoneIndex:new RegExp(l,"i"),native:new RegExp("^(::)?("+s+")?([0-9a-f]+)?(::)?("+l+")?$","i"),transitional:new RegExp("^((?:"+s+")|(?:::)(?:"+s+")?)"+(a+"\\."+a+"\\."+a+"\\."+a)+("("+l+")?$"),"i")},r=function(c,u){var f,m,d,h,p,v;if(c.indexOf("::")!==c.lastIndexOf("::"))return null;for(v=(c.match(i.zoneIndex)||[])[0],v&&(v=v.substring(1),c=c.replace(/%.+$/,"")),f=0,m=-1;(m=c.indexOf(":",m+1))>=0;)f++;if(c.substr(0,2)==="::"&&f--,c.substr(-2,2)==="::"&&f--,f>u)return null;for(p=u-f,h=":";p--;)h+="0:";return c=c.replace("::",h),c[0]===":"&&(c=c.slice(1)),c[c.length-1]===":"&&(c=c.slice(0,-1)),u=(function(){var g,b,E,k;for(E=c.split(":"),k=[],g=0,b=E.length;g=0&&u<=32))return m=[this.parse(f[1]),u],Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},e.IPv4.subnetMaskFromPrefixLength=function(c){var u,f,m;if(c=parseInt(c),c<0||c>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(m=[0,0,0,0],f=0,u=Math.floor(c/8);f=0&&u<=128))return m=[this.parse(f[1]),u],Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},e.isValid=function(c){return e.IPv6.isValid(c)||e.IPv4.isValid(c)},e.parse=function(c){if(e.IPv6.isValid(c))return e.IPv6.parse(c);if(e.IPv4.isValid(c))return e.IPv4.parse(c);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},e.parseCIDR=function(c){var u;try{return e.IPv6.parseCIDR(c)}catch(f){u=f;try{return e.IPv4.parseCIDR(c)}catch(m){throw u=m,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},e.fromByteArray=function(c){var u;if(u=c.length,u===4)return new e.IPv4(c);if(u===16)return new e.IPv6(c);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},e.process=function(c){var u;return u=this.parse(c),u.kind()==="ipv6"&&u.isIPv4MappedAddress()?u.toIPv4Address():u}}).call(Dy)});var Yu=F(($F,zo)=>{"use strict";zo.exports=W4;zo.exports.all=Ly;zo.exports.compile=My;var z4=Ny(),Fy=$y(),H4=/^[0-9]+$/,Mo=Fy.isValid,Uo=Fy.parse,qy={linklocal:["169.254.0.0/16","fe80::/10"],loopback:["127.0.0.1/8","::1/128"],uniquelocal:["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","fc00::/7"]};function Ly(r,e){var a=z4(r);if(!e)return a;typeof e!="function"&&(e=My(e));for(var t=0;ts)throw new TypeError("invalid range on address: "+r);return[t,i]}function G4(r){var e=Uo(r),a=e.kind();return a==="ipv4"?e.prefixLengthFromSubnetMask():null}function W4(r,e){if(!r)throw new TypeError("req argument is required");if(!e)throw new TypeError("trust argument is required");var a=Ly(r,e),t=a[a.length-1];return t}function Q4(){return!1}function K4(r){return function(a){if(!Mo(a))return!1;for(var t=Uo(a),s,i=t.kind(),n=0;n{"use strict";var Uy=No().Buffer,J4=Hu(),zy=$n(),Hy=Tr()("express"),Y4=li(),eC=Lo().mime,tC=Bu(),rC=Yu(),aC=So(),sC=require("querystring");Tt.etag=By({weak:!1});Tt.wetag=By({weak:!0});Tt.isAbsolute=function(r){if(r[0]==="/"||r[1]===":"&&(r[2]==="\\"||r[2]==="/")||r.substring(0,2)==="\\\\")return!0};Tt.flatten=Hy.function(Y4,"utils.flatten: use array-flatten npm module instead");Tt.normalizeType=function(r){return~r.indexOf("/")?nC(r):{value:eC.lookup(r),params:{}}};Tt.normalizeTypes=function(r){for(var e=[],a=0;a{"use strict";var cC=Pg(),lC=Lu(),tp=Oo(),uC=Xg(),pC=Mu(),Ho=er()("express:application"),dC=ay(),fC=require("http"),mC=ya().compileETag,hC=ya().compileQueryParser,vC=ya().compileTrust,gC=Tr()("express"),yC=li(),ep=ui(),bC=require("path").resolve,nn=qn(),xC=Object.prototype.hasOwnProperty,ap=Array.prototype.slice,mt=Vy=Zy.exports={},rp="@@symbol:trust_proxy_default";mt.init=function(){this.cache={},this.engines={},this.settings={},this.defaultConfiguration()};mt.defaultConfiguration=function(){var e=process.env.NODE_ENV||"development";this.enable("x-powered-by"),this.set("etag","weak"),this.set("env",e),this.set("query parser","extended"),this.set("subdomain offset",2),this.set("trust proxy",!1),Object.defineProperty(this.settings,rp,{configurable:!0,value:!0}),Ho("booting in %s mode",e),this.on("mount",function(t){this.settings[rp]===!0&&typeof t.settings["trust proxy fn"]=="function"&&(delete this.settings["trust proxy"],delete this.settings["trust proxy fn"]),nn(this.request,t.request),nn(this.response,t.response),nn(this.engines,t.engines),nn(this.settings,t.settings)}),this.locals=Object.create(null),this.mountpath="/",this.locals.settings=this.settings,this.set("view",dC),this.set("views",bC("views")),this.set("jsonp callback name","callback"),e==="production"&&this.enable("view cache"),Object.defineProperty(this,"router",{get:function(){throw new Error(`'app.router' is deprecated!
+Please see the 3.x to 4.x migration guide for details on how to update your app.`)}})};mt.lazyrouter=function(){this._router||(this._router=new lC({caseSensitive:this.enabled("case sensitive routing"),strict:this.enabled("strict routing")}),this._router.use(pC(this.get("query parser fn"))),this._router.use(uC.init(this)))};mt.handle=function(e,a,t){var s=this._router,i=t||cC(e,a,{env:this.get("env"),onerror:_C.bind(this)});if(!s){Ho("no routes defined on app"),i();return}s.handle(e,a,i)};mt.use=function(e){var a=0,t="/";if(typeof e!="function"){for(var s=e;Array.isArray(s)&&s.length!==0;)s=s[0];typeof s!="function"&&(a=1,t=e)}var i=yC(ap.call(arguments,a));if(i.length===0)throw new TypeError("app.use() requires a middleware function");this.lazyrouter();var n=this._router;return i.forEach(function(o){if(!o||!o.handle||!o.set)return n.use(t,o);Ho(".use app under %s",t),o.mountpath=t,o.parent=this,n.use(t,function(c,u,f){var m=c.app;o.handle(c,u,function(d){nn(c,m.request),nn(u,m.response),f(d)})}),o.emit("mount",this)},this),this};mt.route=function(e){return this.lazyrouter(),this._router.route(e)};mt.engine=function(e,a){if(typeof a!="function")throw new Error("callback function required");var t=e[0]!=="."?"."+e:e;return this.engines[t]=a,this};mt.param=function(e,a){if(this.lazyrouter(),Array.isArray(e)){for(var t=0;t1?'directories "'+c.root.slice(0,-1).join('", "')+'" or "'+c.root[c.root.length-1]+'"':'directory "'+c.root+'"',m=new Error('Failed to lookup view "'+e+'" in views '+f);return m.view=c,i(m)}l.cache&&(s[e]=c)}EC(c,l,i)};mt.listen=function(){var e=fC.createServer(this);return e.listen.apply(e,arguments)};function _C(r){this.get("env")!=="test"&&console.error(r.stack||r.toString())}function EC(r,e,a){try{r.render(e,a)}catch(t){a(t)}}});var Xy=F((FF,sp)=>{"use strict";sp.exports=Ky;sp.exports.preferredCharsets=Ky;var wC=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function SC(r){for(var e=r.split(","),a=0,t=0;a0}});var rb=F((LF,np)=>{"use strict";np.exports=tb;np.exports.preferredEncodings=tb;var OC=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function CC(r){for(var e=r.split(","),a=!1,t=1,s=0,i=0;s0}});var ob=F((MF,ip)=>{"use strict";ip.exports=ib;ip.exports.preferredLanguages=ib;var NC=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function DC(r){for(var e=r.split(","),a=0,t=0;a0}});var fb=F((UF,op)=>{"use strict";op.exports=pb;op.exports.preferredMediaTypes=pb;var LC=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function MC(r){for(var e=VC(r),a=0,t=0;a0)if(i.every(function(n){return e.params[n]=="*"||(e.params[n]||"").toLowerCase()==(t.params[n]||"").toLowerCase()}))s|=1;else return null;return{i:a,o:e.i,q:e.q,s}}function pb(r,e){var a=MC(r===void 0?"*/*":r||"");if(!e)return a.filter(lb).sort(cb).map(HC);var t=e.map(function(i,n){return UC(i,a,n)});return t.filter(lb).sort(cb).map(function(i){return e[t.indexOf(i)]})}function cb(r,e){return e.q-r.q||e.s-r.s||r.o-e.o||r.i-e.i||0}function HC(r){return r.type+"/"+r.subtype}function lb(r){return r.q>0}function db(r){for(var e=0,a=0;(a=r.indexOf('"',a))!==-1;)e++,a++;return e}function BC(r){var e=r.indexOf("="),a,t;return e===-1?a=r:(a=r.substr(0,e),t=r.substr(e+1)),[a,t]}function VC(r){for(var e=r.split(","),a=1,t=0;a{"use strict";var GC=Xy(),WC=rb(),QC=ob(),KC=fb();cp.exports=rt;cp.exports.Negotiator=rt;function rt(r){if(!(this instanceof rt))return new rt(r);this.request=r}rt.prototype.charset=function(e){var a=this.charsets(e);return a&&a[0]};rt.prototype.charsets=function(e){return GC(this.request.headers["accept-charset"],e)};rt.prototype.encoding=function(e){var a=this.encodings(e);return a&&a[0]};rt.prototype.encodings=function(e){return WC(this.request.headers["accept-encoding"],e)};rt.prototype.language=function(e){var a=this.languages(e);return a&&a[0]};rt.prototype.languages=function(e){return QC(this.request.headers["accept-language"],e)};rt.prototype.mediaType=function(e){var a=this.mediaTypes(e);return a&&a[0]};rt.prototype.mediaTypes=function(e){return KC(this.request.headers.accept,e)};rt.prototype.preferredCharset=rt.prototype.charset;rt.prototype.preferredCharsets=rt.prototype.charsets;rt.prototype.preferredEncoding=rt.prototype.encoding;rt.prototype.preferredEncodings=rt.prototype.encodings;rt.prototype.preferredLanguage=rt.prototype.language;rt.prototype.preferredLanguages=rt.prototype.languages;rt.prototype.preferredMediaType=rt.prototype.mediaType;rt.prototype.preferredMediaTypes=rt.prototype.mediaTypes});var vb=F((HF,hb)=>{"use strict";var XC=mb(),JC=su();hb.exports=Gt;function Gt(r){if(!(this instanceof Gt))return new Gt(r);this.headers=r.headers,this.negotiator=new XC(r)}Gt.prototype.type=Gt.prototype.types=function(r){var e=r;if(e&&!Array.isArray(e)){e=new Array(arguments.length);for(var a=0;a{"use strict";var Bo=vb(),mi=Tr()("express"),tI=require("net").isIP,rI=Hs(),aI=require("http"),sI=Vu(),nI=Zu(),iI=Xs(),gb=Yu(),at=Object.create(aI.IncomingMessage.prototype);yb.exports=at;at.get=at.header=function(e){if(!e)throw new TypeError("name argument is required to req.get");if(typeof e!="string")throw new TypeError("name must be a string to req.get");var a=e.toLowerCase();switch(a){case"referer":case"referrer":return this.headers.referrer||this.headers.referer;default:return this.headers[a]}};at.accepts=function(){var r=Bo(this);return r.types.apply(r,arguments)};at.acceptsEncodings=function(){var r=Bo(this);return r.encodings.apply(r,arguments)};at.acceptsEncoding=mi.function(at.acceptsEncodings,"req.acceptsEncoding: Use acceptsEncodings instead");at.acceptsCharsets=function(){var r=Bo(this);return r.charsets.apply(r,arguments)};at.acceptsCharset=mi.function(at.acceptsCharsets,"req.acceptsCharset: Use acceptsCharsets instead");at.acceptsLanguages=function(){var r=Bo(this);return r.languages.apply(r,arguments)};at.acceptsLanguage=mi.function(at.acceptsLanguages,"req.acceptsLanguage: Use acceptsLanguages instead");at.range=function(e,a){var t=this.get("Range");if(t)return nI(e,t,a)};at.param=function(e,a){var t=this.params||{},s=this.body||{},i=this.query||{},n=arguments.length===1?"name":"name, default";return mi("req.param("+n+"): Use req.params, req.body, or req.query instead"),t[e]!=null&&t.hasOwnProperty(e)?t[e]:s[e]!=null?s[e]:i[e]!=null?i[e]:a};at.is=function(e){var a=e;if(!Array.isArray(e)){a=new Array(arguments.length);for(var t=0;t=200&&a<300||a===304?sI(this.headers,{etag:e.get("ETag"),"last-modified":e.get("Last-Modified")}):!1});_r(at,"stale",function(){return!this.fresh});_r(at,"xhr",function(){var e=this.get("X-Requested-With")||"";return e.toLowerCase()==="xmlhttprequest"});function _r(r,e,a){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:a})}});var Eb=F(Vo=>{var _b=require("crypto");Vo.sign=function(r,e){if(typeof r!="string")throw new TypeError("Cookie value must be provided as a string.");if(typeof e!="string")throw new TypeError("Secret string must be provided.");return r+"."+_b.createHmac("sha256",e).update(r).digest("base64").replace(/\=+$/,"")};Vo.unsign=function(r,e){if(typeof r!="string")throw new TypeError("Signed cookie string must be provided.");if(typeof e!="string")throw new TypeError("Secret string must be provided.");var a=r.slice(0,r.lastIndexOf(".")),t=Vo.sign(a,e);return xb(t)==xb(r)?a:!1};function xb(r){return _b.createHash("sha1").update(r).digest("hex")}});var Pb=F(lp=>{"use strict";lp.parse=dI;lp.serialize=fI;var oI=Object.prototype.toString,cI=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,lI=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,uI=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,pI=/^[\u0020-\u003A\u003D-\u007E]*$/;function dI(r,e){if(typeof r!="string")throw new TypeError("argument str must be a string");var a={},t=r.length;if(t<2)return a;var s=e&&e.decode||mI,i=0,n=0,o=0;do{if(n=r.indexOf("=",i),n===-1)break;if(o=r.indexOf(";",i),o===-1)o=t;else if(n>o){i=r.lastIndexOf(";",n-1)+1;continue}var l=wb(r,i,n),c=Sb(r,n,l),u=r.slice(l,c);if(!a.hasOwnProperty(u)){var f=wb(r,n+1,o),m=Sb(r,o,f);r.charCodeAt(f)===34&&r.charCodeAt(m-1)===34&&(f++,m--);var d=r.slice(f,m);a[u]=vI(d,s)}i=o+1}while(ia;){var t=r.charCodeAt(--e);if(t!==32&&t!==9)return e+1}return a}function fI(r,e,a){var t=a&&a.encode||encodeURIComponent;if(typeof t!="function")throw new TypeError("option encode is invalid");if(!cI.test(r))throw new TypeError("argument name is invalid");var s=t(e);if(!lI.test(s))throw new TypeError("argument val is invalid");var i=r+"="+s;if(!a)return i;if(a.maxAge!=null){var n=Math.floor(a.maxAge);if(!isFinite(n))throw new TypeError("option maxAge is invalid");i+="; Max-Age="+n}if(a.domain){if(!uI.test(a.domain))throw new TypeError("option domain is invalid");i+="; Domain="+a.domain}if(a.path){if(!pI.test(a.path))throw new TypeError("option path is invalid");i+="; Path="+a.path}if(a.expires){var o=a.expires;if(!hI(o)||isNaN(o.valueOf()))throw new TypeError("option expires is invalid");i+="; Expires="+o.toUTCString()}if(a.httpOnly&&(i+="; HttpOnly"),a.secure&&(i+="; Secure"),a.partitioned&&(i+="; Partitioned"),a.priority){var l=typeof a.priority=="string"?a.priority.toLowerCase():a.priority;switch(l){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(a.sameSite){var c=typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite;switch(c){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return i}function mI(r){return r.indexOf("%")!==-1?decodeURIComponent(r):r}function hI(r){return oI.call(r)==="[object Date]"}function vI(r,e){try{return e(r)}catch{return r}}});var pp=F((GF,up)=>{"use strict";up.exports=yI;up.exports.append=Tb;var gI=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Tb(r,e){if(typeof r!="string")throw new TypeError("header argument is required");if(!e)throw new TypeError("field argument is required");for(var a=Array.isArray(e)?e:Rb(String(e)),t=0;t{"use strict";var hi=No().Buffer,kb=Hu(),bI=ja(),Nt=Tr()("express"),xI=To(),_I=ci(),EI=require("http"),wI=ya().isAbsolute,SI=Gn(),Ob=require("path"),Zo=Fn(),Cb=ui(),PI=Eb().sign,RI=ya().normalizeType,TI=ya().normalizeTypes,kI=ya().setCharset,OI=Pb(),dp=Lo(),CI=Ob.extname,Ib=dp.mime,II=Ob.resolve,AI=pp(),nt=Object.create(EI.ServerResponse.prototype);Nb.exports=nt;var jI=/;\s*charset\s*=/;nt.status=function(e){return(typeof e=="string"||Math.floor(e)!==e)&&e>99&&e<1e3&&Nt("res.status("+JSON.stringify(e)+"): use res.status("+Math.floor(e)+") instead"),this.statusCode=e,this};nt.links=function(r){var e=this.get("Link")||"";return e&&(e+=", "),this.set("Link",e+Object.keys(r).map(function(a){return"<"+r[a]+'>; rel="'+a+'"'}).join(", "))};nt.send=function(e){var a=e,t,s=this.req,i,n=this.app;switch(arguments.length===2&&(typeof arguments[0]!="number"&&typeof arguments[1]=="number"?(Nt("res.send(body, status): Use res.status(status).send(body) instead"),this.statusCode=arguments[1]):(Nt("res.send(status, body): Use res.status(status).send(body) instead"),this.statusCode=arguments[0],a=arguments[1])),typeof a=="number"&&arguments.length===1&&(this.get("Content-Type")||this.type("txt"),Nt("res.send(status): Use res.sendStatus(status) instead"),this.statusCode=a,a=Zo.message[a]),typeof a){case"string":this.get("Content-Type")||this.type("html");break;case"boolean":case"number":case"object":if(a===null)a="";else if(hi.isBuffer(a))this.get("Content-Type")||this.type("bin");else return this.json(a);break}typeof a=="string"&&(t="utf8",i=this.get("Content-Type"),typeof i=="string"&&this.set("Content-Type",kI(i,"utf-8")));var o=n.get("etag fn"),l=!this.get("ETag")&&typeof o=="function",c;a!==void 0&&(hi.isBuffer(a)?c=a.length:!l&&a.length<1e3?c=hi.byteLength(a,t):(a=hi.from(a,t),t=void 0,c=a.length),this.set("Content-Length",c));var u;return l&&c!==void 0&&(u=o(a,t))&&this.set("ETag",u),s.fresh&&(this.statusCode=304),(this.statusCode===204||this.statusCode===304)&&(this.removeHeader("Content-Type"),this.removeHeader("Content-Length"),this.removeHeader("Transfer-Encoding"),a=""),this.statusCode===205&&(this.set("Content-Length","0"),this.removeHeader("Transfer-Encoding"),a=""),s.method==="HEAD"?this.end():this.end(a,t),this};nt.json=function(e){var a=e;arguments.length===2&&(typeof arguments[1]=="number"?(Nt("res.json(obj, status): Use res.status(status).json(obj) instead"),this.statusCode=arguments[1]):(Nt("res.json(status, obj): Use res.status(status).json(obj) instead"),this.statusCode=arguments[0],a=arguments[1]));var t=this.app,s=t.get("json escape"),i=t.get("json replacer"),n=t.get("json spaces"),o=jb(a,i,n,s);return this.get("Content-Type")||this.set("Content-Type","application/json"),this.send(o)};nt.jsonp=function(e){var a=e;arguments.length===2&&(typeof arguments[1]=="number"?(Nt("res.jsonp(obj, status): Use res.status(status).jsonp(obj) instead"),this.statusCode=arguments[1]):(Nt("res.jsonp(status, obj): Use res.status(status).jsonp(obj) instead"),this.statusCode=arguments[0],a=arguments[1]));var t=this.app,s=t.get("json escape"),i=t.get("json replacer"),n=t.get("json spaces"),o=jb(a,i,n,s),l=this.req.query[t.get("jsonp callback name")];return this.get("Content-Type")||(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","application/json")),Array.isArray(l)&&(l=l[0]),typeof l=="string"&&l.length!==0&&(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","text/javascript"),l=l.replace(/[^\[\]\w$.]/g,""),o===void 0?o="":typeof o=="string"&&(o=o.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")),o="/**/ typeof "+l+" === 'function' && "+l+"("+o+");"),this.send(o)};nt.sendStatus=function(e){var a=Zo.message[e]||String(e);return this.statusCode=e,this.type("txt"),this.send(a)};nt.sendFile=function(e,a,t){var s=t,i=this.req,n=this,o=i.next,l=a||{};if(!e)throw new TypeError("path argument is required to res.sendFile");if(typeof e!="string")throw new TypeError("path must be a string to res.sendFile");if(typeof a=="function"&&(s=a,l={}),!l.root&&!wI(e))throw new TypeError("path must be absolute or specify root to res.sendFile");var c=encodeURI(e),u=dp(i,c,l);Ab(n,u,l,function(f){if(s)return s(f);if(f&&f.code==="EISDIR")return o();f&&f.code!=="ECONNABORTED"&&f.syscall!=="write"&&o(f)})};nt.sendfile=function(r,e,a){var t=a,s=this.req,i=this,n=s.next,o=e||{};typeof e=="function"&&(t=e,o={});var l=dp(s,r,o);Ab(i,l,o,function(c){if(t)return t(c);if(c&&c.code==="EISDIR")return n();c&&c.code!=="ECONNABORTED"&&c.syscall!=="write"&&n(c)})};nt.sendfile=Nt.function(nt.sendfile,"res.sendfile: Use res.sendFile instead");nt.download=function(e,a,t,s){var i=s,n=a,o=t||null;typeof a=="function"?(i=a,n=null,o=null):typeof t=="function"&&(i=t,o=null),typeof a=="object"&&(typeof t=="function"||t===void 0)&&(n=null,o=a);var l={"Content-Disposition":kb(n||e)};if(o&&o.headers)for(var c=Object.keys(o.headers),u=0;u0?e.accepts(t):!1;return this.vary("Accept"),s?(this.set("Content-Type",RI(s).value),r[s](e,this,a)):r.default?r.default(e,this,a):a(bI(406,{types:TI(t).map(function(i){return i.value})})),this};nt.attachment=function(e){return e&&this.type(CI(e)),this.set("Content-Disposition",kb(e)),this};nt.append=function(e,a){var t=this.get(e),s=a;return t&&(s=Array.isArray(t)?t.concat(a):Array.isArray(a)?[t].concat(a):[t,a]),this.set(e,s)};nt.set=nt.header=function(e,a){if(arguments.length===2){var t=Array.isArray(a)?a.map(String):String(a);if(e.toLowerCase()==="content-type"){if(Array.isArray(t))throw new TypeError("Content-Type cannot be set to an Array");if(!jI.test(t)){var s=Ib.charsets.lookup(t.split(";")[0]);s&&(t+="; charset="+s.toLowerCase())}}this.setHeader(e,t)}else for(var i in e)this.set(i,e[i]);return this};nt.get=function(r){return this.getHeader(r)};nt.clearCookie=function(e,a){a&&(a.maxAge&&Nt('res.clearCookie: Passing "options.maxAge" is deprecated. In v5.0.0 of Express, this option will be ignored, as res.clearCookie will automatically set cookies to expire immediately. Please update your code to omit this option.'),a.expires&&Nt('res.clearCookie: Passing "options.expires" is deprecated. In v5.0.0 of Express, this option will be ignored, as res.clearCookie will automatically set cookies to expire immediately. Please update your code to omit this option.'));var t=Cb({expires:new Date(1),path:"/"},a);return this.cookie(e,"",t)};nt.cookie=function(r,e,a){var t=Cb({},a),s=this.req.secret,i=t.signed;if(i&&!s)throw new Error('cookieParser("secret") required for signed cookies');var n=typeof e=="object"?"j:"+JSON.stringify(e):String(e);if(i&&(n="s:"+PI(n,s)),t.maxAge!=null){var o=t.maxAge-0;isNaN(o)||(t.expires=new Date(Date.now()+o),t.maxAge=Math.floor(o/1e3))}return t.path==null&&(t.path="/"),this.append("Set-Cookie",OI.serialize(r,String(n),t)),this};nt.location=function(e){var a;return e==="back"?(Nt('res.location("back"): use res.location(req.get("Referrer") || "/") and refer to https://dub.sh/security-redirect for best practices'),a=this.req.get("Referrer")||"/"):a=String(e),this.set("Location",xI(a))};nt.redirect=function(e){var a=e,t,s=302;arguments.length===2&&(typeof arguments[0]=="number"?(s=arguments[0],a=arguments[1]):(Nt("res.redirect(url, status): Use res.redirect(status, url) instead"),s=arguments[1])),a=this.location(a).get("Location"),this.format({text:function(){t=Zo.message[s]+". Redirecting to "+a},html:function(){var i=_I(a);t=""+Zo.message[s]+". Redirecting to "+i+"
"},default:function(){t=""}}),this.statusCode=s,this.set("Content-Length",hi.byteLength(t)),this.req.method==="HEAD"?this.end():this.end(t)};nt.vary=function(r){return!r||Array.isArray(r)&&!r.length?(Nt("res.vary(): Provide a field name"),this):(AI(this,r),this)};nt.render=function(e,a,t){var s=this.req.app,i=t,n=a||{},o=this.req,l=this;typeof a=="function"&&(i=a,n={}),n._locals=l.locals,i=i||function(c,u){if(c)return o.next(c);l.send(u)},s.render(e,n,i)};function Ab(r,e,a,t){var s=!1,i;function n(){if(!s){s=!0;var d=new Error("Request aborted");d.code="ECONNABORTED",t(d)}}function o(){if(!s){s=!0;var d=new Error("EISDIR, read");d.code="EISDIR",t(d)}}function l(d){s||(s=!0,t(d))}function c(){s||(s=!0,t())}function u(){i=!1}function f(d){if(d&&d.code==="ECONNRESET")return n();if(d)return l(d);s||setImmediate(function(){if(i!==!1&&!s){n();return}s||(s=!0,t())})}function m(){i=!0}e.on("directory",o),e.on("end",c),e.on("error",l),e.on("file",u),e.on("stream",m),SI(r,f),a.headers&&e.on("headers",function(h){for(var p=a.headers,v=Object.keys(p),g=0;g&]/g,function(i){switch(i.charCodeAt(0)){case 60:return"\\u003c";case 62:return"\\u003e";case 38:return"\\u0026";default:return i}})),s}});var qb=F((QF,mp)=>{"use strict";var NI=To(),DI=ci(),fp=Xs(),$I=require("path").resolve,$b=Lo(),qI=require("url");mp.exports=FI;mp.exports.mime=$b.mime;function FI(r,e){if(!r)throw new TypeError("root path required");if(typeof r!="string")throw new TypeError("root path must be a string");var a=Object.create(e||null),t=a.fallthrough!==!1,s=a.redirect!==!1,i=a.setHeaders;if(i&&typeof i!="function")throw new TypeError("option setHeaders must be function");a.maxage=a.maxage||a.maxAge||0,a.root=$I(r);var n=s?zI():UI();return function(l,c,u){if(l.method!=="GET"&&l.method!=="HEAD"){if(t)return u();c.statusCode=405,c.setHeader("Allow","GET, HEAD"),c.setHeader("Content-Length","0"),c.end();return}var f=!t,m=fp.original(l),d=fp(l).pathname;d==="/"&&m.pathname.substr(-1)!=="/"&&(d="");var h=$b(l,d,a);h.on("directory",n),i&&h.on("headers",i),t&&h.on("file",function(){f=!0}),h.on("error",function(v){if(f||!(v.statusCode<500)){u(v);return}u()}),h.pipe(c)}}function LI(r){for(var e=0;e1?"/"+r.substr(e):r}function MI(r,e){return`
@@ -49,7 +49,7 @@ Please see the 3.x to 4.x migration guide for details on how to update your app.
`+e+`
-`}function UA(){return function(){this.error(404)}}function zA(){return function(e){if(this.hasTrailingSlash()){this.error(404);return}var a=fp.original(this.req);a.path=null,a.pathname=LA(a.pathname+"/");var t=NA(qA.format(a)),s=MA("Redirecting","Redirecting to "+DA(t));e.statusCode=301,e.setHeader("Content-Type","text/html; charset=UTF-8"),e.setHeader("Content-Length",Buffer.byteLength(s)),e.setHeader("Content-Security-Policy","default-src 'none'"),e.setHeader("X-Content-Type-Options","nosniff"),e.setHeader("Location",t),e.end(s)}}});var Hb=F((Dt,zb)=>{"use strict";var Go=pg(),HA=require("events").EventEmitter,Fb=fg(),Lb=Gy(),BA=qu(),VA=Lu(),Mb=bb(),Ub=Db();Dt=zb.exports=ZA;function ZA(){var r=function(e,a,t){r.handle(e,a,t)};return Fb(r,HA.prototype,!1),Fb(r,Lb,!1),r.request=Object.create(Mb,{app:{configurable:!0,enumerable:!0,writable:!0,value:r}}),r.response=Object.create(Ub,{app:{configurable:!0,enumerable:!0,writable:!0,value:r}}),r.init(),r}Dt.application=Lb;Dt.request=Mb;Dt.response=Ub;Dt.Route=BA;Dt.Router=VA;Dt.json=Go.json;Dt.query=Mu();Dt.raw=Go.raw;Dt.static=qb();Dt.text=Go.text;Dt.urlencoded=Go.urlencoded;var GA=["bodyParser","compress","cookieSession","session","logger","cookieParser","favicon","responseTime","errorHandler","timeout","methodOverride","vhost","csrf","directory","limit","multipart","staticCache"];GA.forEach(function(r){Object.defineProperty(Dt,r,{get:function(){throw new Error("Most middleware (like "+r+") is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.")},configurable:!0})})});var Vb=F((KF,Bb)=>{"use strict";Bb.exports=Hb()});var Wb=F((XF,Gb)=>{"use strict";var Zb=Object.getOwnPropertySymbols,WA=Object.prototype.hasOwnProperty,QA=Object.prototype.propertyIsEnumerable;function KA(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function XA(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var e={},a=0;a<10;a++)e["_"+String.fromCharCode(a)]=a;var t=Object.getOwnPropertyNames(e).map(function(i){return e[i]});if(t.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(i){s[i]=i}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}Gb.exports=XA()?Object.assign:function(r,e){for(var a,t=KA(r),s,i=1;i{(function(){"use strict";var r=Wb(),e=pp(),a={origin:"*",methods:"GET,HEAD,PUT,PATCH,POST,DELETE",preflightContinue:!1,optionsSuccessStatus:204};function t(h){return typeof h=="string"||h instanceof String}function s(h,p){if(Array.isArray(p)){for(var v=0;v{(function(r,e){typeof fc=="object"&&typeof Ix<"u"?e(fc):typeof define=="function"&&define.amd?define(["exports"],e):e(r.URI=r.URI||{})})(fc,(function(r){"use strict";function e(){for(var N=arguments.length,T=Array(N),x=0;x1){T[0]=T[0].slice(0,-1);for(var y=T.length-1,S=1;S= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=d-h,L=Math.floor,q=String.fromCharCode;function C(N){throw new RangeError($[N])}function R(N,T){for(var x=[],y=N.length;y--;)x[y]=T(N[y]);return x}function j(N,T){var x=N.split("@"),y="";x.length>1&&(y=x[0]+"@",N=x[1]),N=N.replace(A,".");var S=N.split("."),D=R(S,T).join(".");return y+D}function z(N){for(var T=[],x=0,y=N.length;x=55296&&S<=56319&&x>1,T+=L(T/x);T>I*p>>1;S+=d)T=L(T/I);return L(S+(I+1)*T/(T+v))},B=function(T){var x=[],y=T.length,S=0,D=E,M=b,W=T.lastIndexOf(k);W<0&&(W=0);for(var ne=0;ne=128&&C("not-basic"),x.push(T.charCodeAt(ne));for(var ge=W>0?W+1:0;ge=y&&C("invalid-input");var Re=V(T.charCodeAt(ge++));(Re>=d||Re>L((m-S)/Ie))&&C("overflow"),S+=Re*Ie;var ye=ve<=M?h:ve>=M+p?p:ve-M;if(ReL(m/Te)&&C("overflow"),Ie*=Te}var de=x.length+1;M=K(S-pe,de,pe==0),L(S/de)>m-D&&C("overflow"),D+=L(S/de),S%=de,x.splice(S++,0,D)}return String.fromCodePoint.apply(String,x)},re=function(T){var x=[];T=z(T);var y=T.length,S=E,D=0,M=b,W=!0,ne=!1,ge=void 0;try{for(var pe=T[Symbol.iterator](),Ie;!(W=(Ie=pe.next()).done);W=!0){var ve=Ie.value;ve<128&&x.push(q(ve))}}catch(At){ne=!0,ge=At}finally{try{!W&&pe.return&&pe.return()}finally{if(ne)throw ge}}var Re=x.length,ye=Re;for(Re&&x.push(k);ye=S&&stL((m-D)/Le)&&C("overflow"),D+=(Te-S)*Le,S=Te;var it=!0,dt=!1,ft=void 0;try{for(var Ut=T[Symbol.iterator](),Ct;!(it=(Ct=Ut.next()).done);it=!0){var Pr=Ct.value;if(Prm&&C("overflow"),Pr==S){for(var hr=D,vr=d;;vr+=d){var wt=vr<=M?h:vr>=M+p?p:vr-M;if(hr>6|192).toString(16).toUpperCase()+"%"+(T&63|128).toString(16).toUpperCase():x="%"+(T>>12|224).toString(16).toUpperCase()+"%"+(T>>6&63|128).toString(16).toUpperCase()+"%"+(T&63|128).toString(16).toUpperCase(),x}function Oe(N){for(var T="",x=0,y=N.length;x=194&&S<224){if(y-x>=6){var D=parseInt(N.substr(x+4,2),16);T+=String.fromCharCode((S&31)<<6|D&63)}else T+=N.substr(x,6);x+=6}else if(S>=224){if(y-x>=9){var M=parseInt(N.substr(x+4,2),16),W=parseInt(N.substr(x+7,2),16);T+=String.fromCharCode((S&15)<<12|(M&63)<<6|W&63)}else T+=N.substr(x,9);x+=9}else T+=N.substr(x,3),x+=3}return T}function U(N,T){function x(y){var S=Oe(y);return S.match(T.UNRESERVED)?S:y}return N.scheme&&(N.scheme=String(N.scheme).replace(T.PCT_ENCODED,x).toLowerCase().replace(T.NOT_SCHEME,"")),N.userinfo!==void 0&&(N.userinfo=String(N.userinfo).replace(T.PCT_ENCODED,x).replace(T.NOT_USERINFO,xe).replace(T.PCT_ENCODED,s)),N.host!==void 0&&(N.host=String(N.host).replace(T.PCT_ENCODED,x).toLowerCase().replace(T.NOT_HOST,xe).replace(T.PCT_ENCODED,s)),N.path!==void 0&&(N.path=String(N.path).replace(T.PCT_ENCODED,x).replace(N.scheme?T.NOT_PATH:T.NOT_PATH_NOSCHEME,xe).replace(T.PCT_ENCODED,s)),N.query!==void 0&&(N.query=String(N.query).replace(T.PCT_ENCODED,x).replace(T.NOT_QUERY,xe).replace(T.PCT_ENCODED,s)),N.fragment!==void 0&&(N.fragment=String(N.fragment).replace(T.PCT_ENCODED,x).replace(T.NOT_FRAGMENT,xe).replace(T.PCT_ENCODED,s)),N}function Z(N){return N.replace(/^0*(.*)/,"$1")||"0"}function Y(N,T){var x=N.match(T.IPV4ADDRESS)||[],y=u(x,2),S=y[1];return S?S.split(".").map(Z).join("."):N}function ue(N,T){var x=N.match(T.IPV6ADDRESS)||[],y=u(x,3),S=y[1],D=y[2];if(S){for(var M=S.toLowerCase().split("::").reverse(),W=u(M,2),ne=W[0],ge=W[1],pe=ge?ge.split(":").map(Z):[],Ie=ne.split(":").map(Z),ve=T.IPV4ADDRESS.test(Ie[Ie.length-1]),Re=ve?7:8,ye=Ie.length-Re,Te=Array(Re),de=0;de1){var Fe=Te.slice(0,Ne.index),st=Te.slice(Ne.index+Ne.length);pt=Fe.join(":")+"::"+st.join(":")}else pt=Te.join(":");return D&&(pt+="%"+D),pt}else return N}var G=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Q="".match(/(){0}/)[1]===void 0;function ie(N){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x={},y=T.iri!==!1?c:l;T.reference==="suffix"&&(N=(T.scheme?T.scheme+":":"")+"//"+N);var S=N.match(G);if(S){Q?(x.scheme=S[1],x.userinfo=S[3],x.host=S[4],x.port=parseInt(S[5],10),x.path=S[6]||"",x.query=S[7],x.fragment=S[8],isNaN(x.port)&&(x.port=S[5])):(x.scheme=S[1]||void 0,x.userinfo=N.indexOf("@")!==-1?S[3]:void 0,x.host=N.indexOf("//")!==-1?S[4]:void 0,x.port=parseInt(S[5],10),x.path=S[6]||"",x.query=N.indexOf("?")!==-1?S[7]:void 0,x.fragment=N.indexOf("#")!==-1?S[8]:void 0,isNaN(x.port)&&(x.port=N.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?S[4]:void 0)),x.host&&(x.host=ue(Y(x.host,y),y)),x.scheme===void 0&&x.userinfo===void 0&&x.host===void 0&&x.port===void 0&&!x.path&&x.query===void 0?x.reference="same-document":x.scheme===void 0?x.reference="relative":x.fragment===void 0?x.reference="absolute":x.reference="uri",T.reference&&T.reference!=="suffix"&&T.reference!==x.reference&&(x.error=x.error||"URI is not a "+T.reference+" reference.");var D=qe[(T.scheme||x.scheme||"").toLowerCase()];if(!T.unicodeSupport&&(!D||!D.unicodeSupport)){if(x.host&&(T.domainHost||D&&D.domainHost))try{x.host=be.toASCII(x.host.replace(y.PCT_ENCODED,Oe).toLowerCase())}catch(M){x.error=x.error||"Host's domain name can not be converted to ASCII via punycode: "+M}U(x,l)}else U(x,y);D&&D.parse&&D.parse(x,T)}else x.error=x.error||"URI can not be parsed.";return x}function Ae(N,T){var x=T.iri!==!1?c:l,y=[];return N.userinfo!==void 0&&(y.push(N.userinfo),y.push("@")),N.host!==void 0&&y.push(ue(Y(String(N.host),x),x).replace(x.IPV6ADDRESS,function(S,D,M){return"["+D+(M?"%25"+M:"")+"]"})),(typeof N.port=="number"||typeof N.port=="string")&&(y.push(":"),y.push(String(N.port))),y.length?y.join(""):void 0}var he=/^\.\.?\//,Ge=/^\/\.(\/|$)/,We=/^\/\.\.(\/|$)/,Ee=/^\/?(?:.|\n)*?(?=\/|$)/;function Ye(N){for(var T=[];N.length;)if(N.match(he))N=N.replace(he,"");else if(N.match(Ge))N=N.replace(Ge,"/");else if(N.match(We))N=N.replace(We,"/"),T.pop();else if(N==="."||N==="..")N="";else{var x=N.match(Ee);if(x){var y=x[0];N=N.slice(y.length),T.push(y)}else throw new Error("Unexpected dot segment condition")}return T.join("")}function Ue(N){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=T.iri?c:l,y=[],S=qe[(T.scheme||N.scheme||"").toLowerCase()];if(S&&S.serialize&&S.serialize(N,T),N.host&&!x.IPV6ADDRESS.test(N.host)){if(T.domainHost||S&&S.domainHost)try{N.host=T.iri?be.toUnicode(N.host):be.toASCII(N.host.replace(x.PCT_ENCODED,Oe).toLowerCase())}catch(W){N.error=N.error||"Host's domain name can not be converted to "+(T.iri?"Unicode":"ASCII")+" via punycode: "+W}}U(N,x),T.reference!=="suffix"&&N.scheme&&(y.push(N.scheme),y.push(":"));var D=Ae(N,T);if(D!==void 0&&(T.reference!=="suffix"&&y.push("//"),y.push(D),N.path&&N.path.charAt(0)!=="/"&&y.push("/")),N.path!==void 0){var M=N.path;!T.absolutePath&&(!S||!S.absolutePath)&&(M=Ye(M)),D===void 0&&(M=M.replace(/^\/\//,"/%2F")),y.push(M)}return N.query!==void 0&&(y.push("?"),y.push(N.query)),N.fragment!==void 0&&(y.push("#"),y.push(N.fragment)),y.join("")}function Ke(N,T){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},y=arguments[3],S={};return y||(N=ie(Ue(N,x),x),T=ie(Ue(T,x),x)),x=x||{},!x.tolerant&&T.scheme?(S.scheme=T.scheme,S.userinfo=T.userinfo,S.host=T.host,S.port=T.port,S.path=Ye(T.path||""),S.query=T.query):(T.userinfo!==void 0||T.host!==void 0||T.port!==void 0?(S.userinfo=T.userinfo,S.host=T.host,S.port=T.port,S.path=Ye(T.path||""),S.query=T.query):(T.path?(T.path.charAt(0)==="/"?S.path=Ye(T.path):((N.userinfo!==void 0||N.host!==void 0||N.port!==void 0)&&!N.path?S.path="/"+T.path:N.path?S.path=N.path.slice(0,N.path.lastIndexOf("/")+1)+T.path:S.path=T.path,S.path=Ye(S.path)),S.query=T.query):(S.path=N.path,T.query!==void 0?S.query=T.query:S.query=N.query),S.userinfo=N.userinfo,S.host=N.host,S.port=N.port),S.scheme=N.scheme),S.fragment=T.fragment,S}function Ve(N,T,x){var y=n({scheme:"null"},x);return Ue(Ke(ie(N,y),ie(T,y),y,!0),y)}function Qe(N,T){return typeof N=="string"?N=Ue(ie(N,T),T):t(N)==="object"&&(N=ie(Ue(N,T),T)),N}function yt(N,T,x){return typeof N=="string"?N=Ue(ie(N,x),x):t(N)==="object"&&(N=Ue(N,x)),typeof T=="string"?T=Ue(ie(T,x),x):t(T)==="object"&&(T=Ue(T,x)),N===T}function bt(N,T){return N&&N.toString().replace(!T||!T.iri?l.ESCAPE:c.ESCAPE,xe)}function Et(N,T){return N&&N.toString().replace(!T||!T.iri?l.PCT_ENCODED:c.PCT_ENCODED,Oe)}var zr={scheme:"http",domainHost:!0,parse:function(T,x){return T.host||(T.error=T.error||"HTTP URIs must have a host."),T},serialize:function(T,x){var y=String(T.scheme).toLowerCase()==="https";return(T.port===(y?443:80)||T.port==="")&&(T.port=void 0),T.path||(T.path="/"),T}},Ot={scheme:"https",domainHost:zr.domainHost,parse:zr.parse,serialize:zr.serialize};function sa(N){return typeof N.secure=="boolean"?N.secure:String(N.scheme).toLowerCase()==="wss"}var na={scheme:"ws",domainHost:!0,parse:function(T,x){var y=T;return y.secure=sa(y),y.resourceName=(y.path||"/")+(y.query?"?"+y.query:""),y.path=void 0,y.query=void 0,y},serialize:function(T,x){if((T.port===(sa(T)?443:80)||T.port==="")&&(T.port=void 0),typeof T.secure=="boolean"&&(T.scheme=T.secure?"wss":"ws",T.secure=void 0),T.resourceName){var y=T.resourceName.split("?"),S=u(y,2),D=S[0],M=S[1];T.path=D&&D!=="/"?D:void 0,T.query=M,T.resourceName=void 0}return T.fragment=void 0,T}},Cn={scheme:"wss",domainHost:na.domainHost,parse:na.parse,serialize:na.serialize},Oa={},Ni=!0,Di="[A-Za-z0-9\\-\\.\\_\\~"+(Ni?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Xt="[0-9A-Fa-f]",$i=a(a("%[EFef]"+Xt+"%"+Xt+Xt+"%"+Xt+Xt)+"|"+a("%[89A-Fa-f]"+Xt+"%"+Xt+Xt)+"|"+a("%"+Xt+Xt)),Jt="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",il="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ol=e(il,'[\\"\\\\]'),cl="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",ll=new RegExp(Di,"g"),ia=new RegExp($i,"g"),ul=new RegExp(e("[^]",Jt,"[\\.]",'[\\"]',ol),"g"),Hr=new RegExp(e("[^]",Di,cl),"g"),pl=Hr;function As(N){var T=Oe(N);return T.match(ll)?T:N}var qi={scheme:"mailto",parse:function(T,x){var y=T,S=y.to=y.path?y.path.split(","):[];if(y.path=void 0,y.query){for(var D=!1,M={},W=y.query.split("&"),ne=0,ge=W.length;ne{"use strict";Nx.exports=function r(e,a){if(e===a)return!0;if(e&&a&&typeof e=="object"&&typeof a=="object"){if(e.constructor!==a.constructor)return!1;var t,s,i;if(Array.isArray(e)){if(t=e.length,t!=a.length)return!1;for(s=t;s--!==0;)if(!r(e[s],a[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if(i=Object.keys(e),t=i.length,t!==Object.keys(a).length)return!1;for(s=t;s--!==0;)if(!Object.prototype.hasOwnProperty.call(a,i[s]))return!1;for(s=t;s--!==0;){var n=i[s];if(!r(e[n],a[n]))return!1}return!0}return e!==e&&a!==a}});var $x=F((rL,Dx)=>{"use strict";Dx.exports=function(e){for(var a=0,t=e.length,s=0,i;s=55296&&i<=56319&&s{"use strict";Lx.exports={copy:o8,checkDataType:qp,checkDataTypes:c8,coerceToTypes:l8,toHash:Lp,getProperty:Mp,escapeQuotes:Up,equal:mc(),ucs2length:$x(),varOccurences:d8,varReplace:f8,schemaHasRules:m8,schemaHasRulesExcept:h8,schemaUnknownRules:v8,toQuotedString:Fp,getPathExpr:g8,getPath:y8,getData:_8,unescapeFragment:E8,unescapeJsonPointer:Hp,escapeFragment:w8,escapeJsonPointer:zp};function o8(r,e){e=e||{};for(var a in r)e[a]=r[a];return e}function qp(r,e,a,t){var s=t?" !== ":" === ",i=t?" || ":" && ",n=t?"!":"",o=t?"":"!";switch(r){case"null":return e+s+"null";case"array":return n+"Array.isArray("+e+")";case"object":return"("+n+e+i+"typeof "+e+s+'"object"'+i+o+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+s+'"number"'+i+o+"("+e+" % 1)"+i+e+s+e+(a?i+n+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+s+'"'+r+'"'+(a?i+n+"isFinite("+e+")":"")+")";default:return"typeof "+e+s+'"'+r+'"'}}function c8(r,e,a){switch(r.length){case 1:return qp(r[0],e,a,!0);default:var t="",s=Lp(r);s.array&&s.object&&(t=s.null?"(":"(!"+e+" || ",t+="typeof "+e+' !== "object")',delete s.null,delete s.array,delete s.object),s.number&&delete s.integer;for(var i in s)t+=(t?" && ":"")+qp(i,e,a,!0);return t}}var qx=Lp(["string","number","integer","boolean","null"]);function l8(r,e){if(Array.isArray(e)){for(var a=[],t=0;t=e)throw new Error("Cannot access property/index "+t+" levels up, current level is "+e);return a[e-t]}if(t>e)throw new Error("Cannot access data "+t+" levels up, current level is "+e);if(i="data"+(e-t||""),!s)return i}for(var o=i,l=s.split("/"),c=0;c{"use strict";var S8=us();Mx.exports=P8;function P8(r){S8.copy(r,this)}});var zx=F((nL,Ux)=>{"use strict";var wa=Ux.exports=function(r,e,a){typeof e=="function"&&(a=e,e={}),a=e.cb||a;var t=typeof a=="function"?a:a.pre||function(){},s=a.post||function(){};hc(e,t,s,r,"",r)};wa.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};wa.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};wa.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};wa.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};function hc(r,e,a,t,s,i,n,o,l,c){if(t&&typeof t=="object"&&!Array.isArray(t)){e(t,s,i,n,o,l,c);for(var u in t){var f=t[u];if(Array.isArray(f)){if(u in wa.arrayKeywords)for(var m=0;m{"use strict";var wi=jx(),Hx=mc(),bc=us(),vc=Bp(),T8=zx();Zx.exports=Pa;Pa.normalizeId=Sa;Pa.fullPath=gc;Pa.url=yc;Pa.ids=I8;Pa.inlineRef=Vp;Pa.schema=xc;function Pa(r,e,a){var t=this._refs[a];if(typeof t=="string")if(this._refs[t])t=this._refs[t];else return Pa.call(this,r,e,t);if(t=t||this._schemas[a],t instanceof vc)return Vp(t.schema,this._opts.inlineRefs)?t.schema:t.validate||this._compile(t);var s=xc.call(this,e,a),i,n,o;return s&&(i=s.schema,e=s.root,o=s.baseId),i instanceof vc?n=i.validate||r.call(this,i.schema,e,void 0,o):i!==void 0&&(n=Vp(i,this._opts.inlineRefs)?i:r.call(this,i,e,void 0,o)),n}function xc(r,e){var a=wi.parse(e),t=Vx(a),s=gc(this._getId(r.schema));if(Object.keys(r.schema).length===0||t!==s){var i=Sa(t),n=this._refs[i];if(typeof n=="string")return k8.call(this,r,n,a);if(n instanceof vc)n.validate||this._compile(n),r=n;else if(n=this._schemas[i],n instanceof vc){if(n.validate||this._compile(n),i==Sa(e))return{schema:n,root:r,baseId:s};r=n}else return;if(!r.schema)return;s=gc(this._getId(r.schema))}return Bx.call(this,a,s,r.schema,r)}function k8(r,e,a){var t=xc.call(this,r,e);if(t){var s=t.schema,i=t.baseId;r=t.root;var n=this._getId(s);return n&&(i=yc(i,n)),Bx.call(this,a,i,s,r)}}var O8=bc.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Bx(r,e,a,t){if(r.fragment=r.fragment||"",r.fragment.slice(0,1)=="/"){for(var s=r.fragment.split("/"),i=1;i{"use strict";var Wp=_c();Wx.exports={Validation:Gx(j8),MissingRef:Gx(Qp)};function j8(r){this.message="validation failed",this.errors=r,this.ajv=this.validation=!0}Qp.message=function(r,e){return"can't resolve reference "+e+" from id "+r};function Qp(r,e,a){this.message=a||Qp.message(r,e),this.missingRef=Wp.url(r,e),this.missingSchema=Wp.normalizeId(Wp.fullPath(this.missingRef))}function Gx(r){return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}});var Kp=F((cL,Qx)=>{"use strict";Qx.exports=function(r,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var a=typeof e.cycles=="boolean"?e.cycles:!1,t=e.cmp&&(function(i){return function(n){return function(o,l){var c={key:o,value:n[o]},u={key:l,value:n[l]};return i(c,u)}}})(e.cmp),s=[];return(function i(n){if(n&&n.toJSON&&typeof n.toJSON=="function"&&(n=n.toJSON()),n!==void 0){if(typeof n=="number")return isFinite(n)?""+n:"null";if(typeof n!="object")return JSON.stringify(n);var o,l;if(Array.isArray(n)){for(l="[",o=0;o{"use strict";Kx.exports=function(e,a,t){var s="",i=e.schema.$async===!0,n=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var l=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(l){var c="unknown keyword: "+l;if(e.opts.strictKeywords==="log")e.logger.warn(c);else throw new Error(c)}}if(e.isTop&&(s+=" var validate = ",i&&(e.async=!0,s+="async "),s+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(e.opts.sourceCode||e.opts.processCode)&&(s+=" "+("/*# sourceURL="+o+" */")+" ")),typeof e.schema=="boolean"||!(n||e.schema.$ref)){var a="false schema",u=e.level,f=e.dataLevel,m=e.schema[a],d=e.schemaPath+e.util.getProperty(a),h=e.errSchemaPath+"/"+a,O=!e.opts.allErrors,$,p="data"+(f||""),k="valid"+u;if(e.schema===!1){e.isTop?O=!0:s+=" var "+k+" = false; ";var v=v||[];v.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+($||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'boolean schema is false' "),e.opts.verbose&&(s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var g=s;s=v.pop(),!e.compositeRule&&O?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?i?s+=" return data; ":s+=" validate.errors = null; return true; ":s+=" var "+k+" = true; ";return e.isTop&&(s+=" }; return validate; "),s}if(e.isTop){var b=e.isTop,u=e.level=0,f=e.dataLevel=0,p="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var E="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(E);else throw new Error(E)}s+=" var vErrors = null; ",s+=" var errors = 0; ",s+=" if (rootData === undefined) rootData = data; "}else{var u=e.level,f=e.dataLevel,p="data"+(f||"");if(o&&(e.baseId=e.resolve.url(e.baseId,o)),i&&!e.async)throw new Error("async schema in sync schema");s+=" var errs_"+u+" = errors;"}var k="valid"+u,O=!e.opts.allErrors,P="",A="",$,I=e.schema.type,L=Array.isArray(I);if(I&&e.opts.nullable&&e.schema.nullable===!0&&(L?I.indexOf("null")==-1&&(I=I.concat("null")):I!="null"&&(I=[I,"null"],L=!0)),L&&I.length==1&&(I=I[0],L=!1),e.schema.$ref&&n){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(n=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(s+=" "+e.RULES.all.$comment.code(e,"$comment")),I){if(e.opts.coerceTypes)var q=e.util.coerceToTypes(e.opts.coerceTypes,I);var C=e.RULES.types[I];if(q||L||C===!0||C&&!Ee(C)){var d=e.schemaPath+".type",h=e.errSchemaPath+"/type",d=e.schemaPath+".type",h=e.errSchemaPath+"/type",R=L?"checkDataTypes":"checkDataType";if(s+=" if ("+e.util[R](I,p,e.opts.strictNumbers,!0)+") { ",q){var j="dataType"+u,z="coerced"+u;s+=" var "+j+" = typeof "+p+"; var "+z+" = undefined; ",e.opts.coerceTypes=="array"&&(s+=" if ("+j+" == 'object' && Array.isArray("+p+") && "+p+".length == 1) { "+p+" = "+p+"[0]; "+j+" = typeof "+p+"; if ("+e.util.checkDataType(e.schema.type,p,e.opts.strictNumbers)+") "+z+" = "+p+"; } "),s+=" if ("+z+" !== undefined) ; ";var H=q;if(H)for(var V,te=-1,K=H.length-1;te{"use strict";var wc=_c(),Pc=us(),Jx=Ec(),N8=Kp(),Xx=Xp(),D8=Pc.ucs2length,$8=mc(),q8=Jx.Validation;e0.exports=Jp;function Jp(r,e,a,t){var s=this,i=this._opts,n=[void 0],o={},l=[],c={},u=[],f={},m=[];e=e||{schema:r,refVal:n,refs:o};var d=F8.call(this,r,e,t),h=this._compilations[d.index];if(d.compiling)return h.callValidate=E;var p=this._formats,v=this.RULES;try{var g=k(r,e,a,t);h.validate=g;var b=h.callValidate;return b&&(b.schema=g.schema,b.errors=null,b.refs=g.refs,b.refVal=g.refVal,b.root=g.root,b.$async=g.$async,i.sourceCode&&(b.source=g.source)),g}finally{L8.call(this,r,e,t)}function E(){var R=h.validate,j=R.apply(this,arguments);return E.errors=R.errors,j}function k(R,j,z,H){var V=!j||j&&j.schema==R;if(j.schema!=e.schema)return Jp.call(s,R,j,z,H);var te=R.$async===!0,K=Xx({isTop:!0,schema:R,isRoot:V,baseId:H,root:j,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:Jx.MissingRef,RULES:v,validate:Xx,util:Pc,resolve:wc,resolveRef:O,usePattern:L,useDefault:q,useCustomRule:C,opts:i,formats:p,logger:s.logger,self:s});K=Sc(n,z8)+Sc(l,M8)+Sc(u,U8)+Sc(m,H8)+K,i.processCode&&(K=i.processCode(K,R));var B;try{var re=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",K);B=re(s,v,p,e,n,u,m,$8,D8,q8),n[0]=B}catch(ce){throw s.logger.error("Error compiling schema, function code:",K),ce}return B.schema=R,B.errors=null,B.refs=o,B.refVal=n,B.root=V?B:j,te&&(B.$async=!0),i.sourceCode===!0&&(B.source={code:K,patterns:l,defaults:u}),B}function O(R,j,z){j=wc.url(R,j);var H=o[j],V,te;if(H!==void 0)return V=n[H],te="refVal["+H+"]",I(V,te);if(!z&&e.refs){var K=e.refs[j];if(K!==void 0)return V=e.refVal[K],te=P(j,V),I(V,te)}te=P(j);var B=wc.call(s,k,e,j);if(B===void 0){var re=a&&a[j];re&&(B=wc.inlineRef(re,i.inlineRefs)?re:Jp.call(s,re,e,a,R))}if(B===void 0)A(j);else return $(j,B),I(B,te)}function P(R,j){var z=n.length;return n[z]=j,o[R]=z,"refVal"+z}function A(R){delete o[R]}function $(R,j){var z=o[R];n[z]=j}function I(R,j){return typeof R=="object"||typeof R=="boolean"?{code:j,schema:R,inline:!0}:{code:j,$async:R&&!!R.$async}}function L(R){var j=c[R];return j===void 0&&(j=c[R]=l.length,l[j]=R),"pattern"+j}function q(R){switch(typeof R){case"boolean":case"number":return""+R;case"string":return Pc.toQuotedString(R);case"object":if(R===null)return"null";var j=N8(R),z=f[j];return z===void 0&&(z=f[j]=u.length,u[z]=R),"default"+z}}function C(R,j,z,H){if(s._opts.validateSchema!==!1){var V=R.definition.dependencies;if(V&&!V.every(function(xe){return Object.prototype.hasOwnProperty.call(z,xe)}))throw new Error("parent schema must have all required keywords: "+V.join(","));var te=R.definition.validateSchema;if(te){var K=te(j);if(!K){var B="keyword schema is invalid: "+s.errorsText(te.errors);if(s._opts.validateSchema=="log")s.logger.error(B);else throw new Error(B)}}}var re=R.definition.compile,ce=R.definition.inline,Be=R.definition.macro,be;if(re)be=re.call(s,j,z,H);else if(Be)be=Be.call(s,j,z,H),i.validateSchema!==!1&&s.validateSchema(be,!0);else if(ce)be=ce.call(s,H,R.keyword,j,z);else if(be=R.definition.validate,!be)return;if(be===void 0)throw new Error('custom keyword "'+R.keyword+'"failed to compile');var qe=m.length;return m[qe]=be,{code:"customRule"+qe,validate:be}}}function F8(r,e,a){var t=Yx.call(this,r,e,a);return t>=0?{index:t,compiling:!0}:(t=this._compilations.length,this._compilations[t]={schema:r,root:e,baseId:a},{index:t,compiling:!1})}function L8(r,e,a){var t=Yx.call(this,r,e,a);t>=0&&this._compilations.splice(t,1)}function Yx(r,e,a){for(var t=0;t{"use strict";var Rc=r0.exports=function(){this._cache={}};Rc.prototype.put=function(e,a){this._cache[e]=a};Rc.prototype.get=function(e){return this._cache[e]};Rc.prototype.del=function(e){delete this._cache[e]};Rc.prototype.clear=function(){this._cache={}}});var h0=F((dL,m0)=>{"use strict";var B8=us(),V8=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Z8=[0,31,28,31,30,31,30,31,31,30,31,30,31],G8=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s0=/^(?=.{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,W8=/^(?:[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,Q8=/^(?:[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,n0=/^(?:(?:[^\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,i0=/^(?:(?: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,o0=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,c0=/^(?:\/(?:[^~/]|~0|~1)*)*$/,l0=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,u0=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;m0.exports=Tc;function Tc(r){return r=r=="full"?"full":"fast",B8.copy(Tc[r])}Tc.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":n0,url:i0,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:s0,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:f0,uuid:o0,"json-pointer":c0,"json-pointer-uri-fragment":l0,"relative-json-pointer":u0};Tc.full={date:p0,time:d0,"date-time":J8,uri:e9,"uri-reference":Q8,"uri-template":n0,url:i0,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:s0,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:f0,uuid:o0,"json-pointer":c0,"json-pointer-uri-fragment":l0,"relative-json-pointer":u0};function K8(r){return r%4===0&&(r%100!==0||r%400===0)}function p0(r){var e=r.match(V8);if(!e)return!1;var a=+e[1],t=+e[2],s=+e[3];return t>=1&&t<=12&&s>=1&&s<=(t==2&&K8(a)?29:Z8[t])}function d0(r,e){var a=r.match(G8);if(!a)return!1;var t=a[1],s=a[2],i=a[3],n=a[5];return(t<=23&&s<=59&&i<=59||t==23&&s==59&&i==60)&&(!e||n)}var X8=/t|\s/i;function J8(r){var e=r.split(X8);return e.length==2&&p0(e[0])&&d0(e[1],!0)}var Y8=/\/|:/;function e9(r){return Y8.test(r)&&W8.test(r)}var t9=/[^\\]\\Z/;function f0(r){if(t9.test(r))return!1;try{return new RegExp(r),!0}catch{return!1}}});var g0=F((fL,v0)=>{"use strict";v0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.errSchemaPath+"/"+a,c=!e.opts.allErrors,u="data"+(n||""),f="valid"+i,m,d;if(o=="#"||o=="#/")e.isRoot?(m=e.async,d="validate"):(m=e.root.schema.$async===!0,d="root.refVal[0]");else{var h=e.resolveRef(e.baseId,o,e.isRoot);if(h===void 0){var p=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(p);var v=v||[];v.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ",e.opts.messages!==!1&&(s+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "),e.opts.verbose&&(s+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),s+=" } "):s+=" {} ";var g=s;s=v.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(s+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(p),c&&(s+=" if (true) { ");else throw new e.MissingRefError(e.baseId,o,p)}else if(h.inline){var b=e.util.copy(e);b.level++;var E="valid"+b.level;b.schema=h.schema,b.schemaPath="",b.errSchemaPath=o;var k=e.validate(b).replace(/validate\.schema/g,h.code);s+=" "+k+" ",c&&(s+=" if ("+E+") { ")}else m=h.$async===!0||e.async&&h.$async!==!1,d=h.code}if(d){var v=v||[];v.push(s),s="",e.opts.passContext?s+=" "+d+".call(this, ":s+=" "+d+"( ",s+=" "+u+", (dataPath || '')",e.errorPath!='""'&&(s+=" + "+e.errorPath);var O=n?"data"+(n-1||""):"parentData",P=n?e.dataPathArr[n]:"parentDataProperty";s+=" , "+O+" , "+P+", rootData) ";var A=s;if(s=v.pop(),m){if(!e.async)throw new Error("async schema referenced by sync schema");c&&(s+=" var "+f+"; "),s+=" try { await "+A+"; ",c&&(s+=" "+f+" = true; "),s+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",c&&(s+=" "+f+" = false; "),s+=" } ",c&&(s+=" if ("+f+") { ")}else s+=" if (!"+A+") { if (vErrors === null) vErrors = "+d+".errors; else vErrors = vErrors.concat("+d+".errors); errors = vErrors.length; } ",c&&(s+=" else { ")}return s}});var b0=F((mL,y0)=>{"use strict";y0.exports=function(e,a,t){var s=" ",i=e.schema[a],n=e.schemaPath+e.util.getProperty(a),o=e.errSchemaPath+"/"+a,l=!e.opts.allErrors,c=e.util.copy(e),u="";c.level++;var f="valid"+c.level,m=c.baseId,d=!0,h=i;if(h)for(var p,v=-1,g=h.length-1;v0||p===!1:e.util.schemaHasRules(p,e.RULES.all))&&(d=!1,c.schema=p,c.schemaPath=n+"["+v+"]",c.errSchemaPath=o+"/"+v,s+=" "+e.validate(c)+" ",c.baseId=m,l&&(s+=" if ("+f+") { ",u+="}"));return l&&(d?s+=" if (true) { ":s+=" "+u.slice(0,-1)+" "),s}});var _0=F((hL,x0)=>{"use strict";x0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m="valid"+i,d="errs__"+i,h=e.util.copy(e),p="";h.level++;var v="valid"+h.level,g=o.every(function($){return e.opts.strictKeywords?typeof $=="object"&&Object.keys($).length>0||$===!1:e.util.schemaHasRules($,e.RULES.all)});if(g){var b=h.baseId;s+=" var "+d+" = errors; var "+m+" = false; ";var E=e.compositeRule;e.compositeRule=h.compositeRule=!0;var k=o;if(k)for(var O,P=-1,A=k.length-1;P{"use strict";E0.exports=function(e,a,t){var s=" ",i=e.schema[a],n=e.errSchemaPath+"/"+a,o=!e.opts.allErrors,l=e.util.toQuotedString(i);return e.opts.$comment===!0?s+=" console.log("+l+");":typeof e.opts.$comment=="function"&&(s+=" self._opts.$comment("+l+", "+e.util.toQuotedString(n)+", validate.root.schema);"),s}});var P0=F((gL,S0)=>{"use strict";S0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m="valid"+i,d=e.opts.$data&&o&&o.$data,h;d?(s+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ",h="schema"+i):h=o,d||(s+=" var schema"+i+" = validate.schema"+l+";"),s+="var "+m+" = equal("+f+", schema"+i+"); if (!"+m+") { ";var p=p||[];p.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+i+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be equal to constant' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var v=s;return s=p.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+v+"]); ":s+=" validate.errors = ["+v+"]; return false; ":s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" }",u&&(s+=" else { "),s}});var T0=F((yL,R0)=>{"use strict";R0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m="valid"+i,d="errs__"+i,h=e.util.copy(e),p="";h.level++;var v="valid"+h.level,g="i"+i,b=h.dataLevel=e.dataLevel+1,E="data"+b,k=e.baseId,O=e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(s+="var "+d+" = errors;var "+m+";",O){var P=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=o,h.schemaPath=l,h.errSchemaPath=c,s+=" var "+v+" = false; for (var "+g+" = 0; "+g+" < "+f+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var A=f+"["+g+"]";h.dataPathArr[b]=g;var $=e.validate(h);h.baseId=k,e.util.varOccurences($,E)<2?s+=" "+e.util.varReplace($,E,A)+" ":s+=" var "+E+" = "+A+"; "+$+" ",s+=" if ("+v+") break; } ",e.compositeRule=h.compositeRule=P,s+=" "+p+" if (!"+v+") {"}else s+=" if ("+f+".length == 0) {";var I=I||[];I.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should contain a valid item' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var L=s;return s=I.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+L+"]); ":s+=" validate.errors = ["+L+"]; return false; ":s+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { ",O&&(s+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } "),e.opts.allErrors&&(s+=" } "),s}});var O0=F((bL,k0)=>{"use strict";k0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m="errs__"+i,d=e.util.copy(e),h="";d.level++;var p="valid"+d.level,v={},g={},b=e.opts.ownProperties;for(P in o)if(P!="__proto__"){var E=o[P],k=Array.isArray(E)?g:v;k[P]=E}s+="var "+m+" = errors;";var O=e.errorPath;s+="var missing"+i+";";for(var P in g)if(k=g[P],k.length){if(s+=" if ( "+f+e.util.getProperty(P)+" !== undefined ",b&&(s+=" && Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(P)+"') "),u){s+=" && ( ";var A=k;if(A)for(var $,I=-1,L=A.length-1;I0||E===!1:e.util.schemaHasRules(E,e.RULES.all))&&(s+=" "+p+" = true; if ( "+f+e.util.getProperty(P)+" !== undefined ",b&&(s+=" && Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(P)+"') "),s+=") { ",d.schema=E,d.schemaPath=l+e.util.getProperty(P),d.errSchemaPath=c+"/"+e.util.escapeFragment(P),s+=" "+e.validate(d)+" ",d.baseId=B,s+=" } ",u&&(s+=" if ("+p+") { ",h+="}"))}return u&&(s+=" "+h+" if ("+m+" == errors) {"),s}});var A0=F((xL,C0)=>{"use strict";C0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m="valid"+i,d=e.opts.$data&&o&&o.$data,h;d?(s+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ",h="schema"+i):h=o;var p="i"+i,v="schema"+i;d||(s+=" var "+v+" = validate.schema"+l+";"),s+="var "+m+";",d&&(s+=" if (schema"+i+" === undefined) "+m+" = true; else if (!Array.isArray(schema"+i+")) "+m+" = false; else {"),s+=""+m+" = false;for (var "+p+"=0; "+p+"<"+v+".length; "+p+"++) if (equal("+f+", "+v+"["+p+"])) { "+m+" = true; break; }",d&&(s+=" } "),s+=" if (!"+m+") { ";var g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+i+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var b=s;return s=g.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+b+"]); ":s+=" validate.errors = ["+b+"]; return false; ":s+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" }",u&&(s+=" else { "),s}});var j0=F((_L,I0)=>{"use strict";I0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||"");if(e.opts.format===!1)return u&&(s+=" if (true) { "),s;var m=e.opts.$data&&o&&o.$data,d;m?(s+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ",d="schema"+i):d=o;var h=e.opts.unknownFormats,p=Array.isArray(h);if(m){var v="format"+i,g="isObject"+i,b="formatType"+i;s+=" var "+v+" = formats["+d+"]; var "+g+" = typeof "+v+" == 'object' && !("+v+" instanceof RegExp) && "+v+".validate; var "+b+" = "+g+" && "+v+".type || 'string'; if ("+g+") { ",e.async&&(s+=" var async"+i+" = "+v+".async; "),s+=" "+v+" = "+v+".validate; } if ( ",m&&(s+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "),s+=" (",h!="ignore"&&(s+=" ("+d+" && !"+v+" ",p&&(s+=" && self._opts.unknownFormats.indexOf("+d+") == -1 "),s+=") || "),s+=" ("+v+" && "+b+" == '"+t+"' && !(typeof "+v+" == 'function' ? ",e.async?s+=" (async"+i+" ? await "+v+"("+f+") : "+v+"("+f+")) ":s+=" "+v+"("+f+") ",s+=" : "+v+".test("+f+"))))) {"}else{var v=e.formats[o];if(!v){if(h=="ignore")return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(s+=" if (true) { "),s;if(p&&h.indexOf(o)>=0)return u&&(s+=" if (true) { "),s;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var g=typeof v=="object"&&!(v instanceof RegExp)&&v.validate,b=g&&v.type||"string";if(g){var E=v.async===!0;v=v.validate}if(b!=t)return u&&(s+=" if (true) { "),s;if(E){if(!e.async)throw new Error("async format in sync schema");var k="formats"+e.util.getProperty(o)+".validate";s+=" if (!(await "+k+"("+f+"))) { "}else{s+=" if (! ";var k="formats"+e.util.getProperty(o);g&&(k+=".validate"),typeof v=="function"?s+=" "+k+"("+f+") ":s+=" "+k+".test("+f+") ",s+=") { "}}var O=O||[];O.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",m?s+=""+d:s+=""+e.util.toQuotedString(o),s+=" } ",e.opts.messages!==!1&&(s+=` , message: 'should match format "`,m?s+="' + "+d+" + '":s+=""+e.util.escapeQuotes(o),s+=`"' `),e.opts.verbose&&(s+=" , schema: ",m?s+="validate.schema"+l:s+=""+e.util.toQuotedString(o),s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var P=s;return s=O.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+P+"]); ":s+=" validate.errors = ["+P+"]; return false; ":s+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",u&&(s+=" else { "),s}});var D0=F((EL,N0)=>{"use strict";N0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m="valid"+i,d="errs__"+i,h=e.util.copy(e);h.level++;var p="valid"+h.level,v=e.schema.then,g=e.schema.else,b=v!==void 0&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all)),E=g!==void 0&&(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all)),k=h.baseId;if(b||E){var O;h.createErrors=!1,h.schema=o,h.schemaPath=l,h.errSchemaPath=c,s+=" var "+d+" = errors; var "+m+" = true; ";var P=e.compositeRule;e.compositeRule=h.compositeRule=!0,s+=" "+e.validate(h)+" ",h.baseId=k,h.createErrors=!0,s+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=P,b?(s+=" if ("+p+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",s+=" "+e.validate(h)+" ",h.baseId=k,s+=" "+m+" = "+p+"; ",b&&E?(O="ifClause"+i,s+=" var "+O+" = 'then'; "):O="'then'",s+=" } ",E&&(s+=" else { ")):s+=" if (!"+p+") { ",E&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",s+=" "+e.validate(h)+" ",h.baseId=k,s+=" "+m+" = "+p+"; ",b&&E?(O="ifClause"+i,s+=" var "+O+" = 'else'; "):O="'else'",s+=" } "),s+=" if (!"+m+") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+O+" } ",e.opts.messages!==!1&&(s+=` , message: 'should match "' + `+O+` + '" schema' `),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+=" } ",u&&(s+=" else { ")}else u&&(s+=" if (true) { ");return s}});var q0=F((wL,$0)=>{"use strict";$0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m="valid"+i,d="errs__"+i,h=e.util.copy(e),p="";h.level++;var v="valid"+h.level,g="i"+i,b=h.dataLevel=e.dataLevel+1,E="data"+b,k=e.baseId;if(s+="var "+d+" = errors;var "+m+";",Array.isArray(o)){var O=e.schema.additionalItems;if(O===!1){s+=" "+m+" = "+f+".length <= "+o.length+"; ";var P=c;c=e.errSchemaPath+"/additionalItems",s+=" if (!"+m+") { ";var A=A||[];A.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+o.length+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var $=s;s=A.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+$+"]); ":s+=" validate.errors = ["+$+"]; return false; ":s+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",c=P,u&&(p+="}",s+=" else { ")}var I=o;if(I){for(var L,q=-1,C=I.length-1;q0||L===!1:e.util.schemaHasRules(L,e.RULES.all)){s+=" "+v+" = true; if ("+f+".length > "+q+") { ";var R=f+"["+q+"]";h.schema=L,h.schemaPath=l+"["+q+"]",h.errSchemaPath=c+"/"+q,h.errorPath=e.util.getPathExpr(e.errorPath,q,e.opts.jsonPointers,!0),h.dataPathArr[b]=q;var j=e.validate(h);h.baseId=k,e.util.varOccurences(j,E)<2?s+=" "+e.util.varReplace(j,E,R)+" ":s+=" var "+E+" = "+R+"; "+j+" ",s+=" } ",u&&(s+=" if ("+v+") { ",p+="}")}}if(typeof O=="object"&&(e.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===!1:e.util.schemaHasRules(O,e.RULES.all))){h.schema=O,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",s+=" "+v+" = true; if ("+f+".length > "+o.length+") { for (var "+g+" = "+o.length+"; "+g+" < "+f+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var R=f+"["+g+"]";h.dataPathArr[b]=g;var j=e.validate(h);h.baseId=k,e.util.varOccurences(j,E)<2?s+=" "+e.util.varReplace(j,E,R)+" ":s+=" var "+E+" = "+R+"; "+j+" ",u&&(s+=" if (!"+v+") break; "),s+=" } } ",u&&(s+=" if ("+v+") { ",p+="}")}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){h.schema=o,h.schemaPath=l,h.errSchemaPath=c,s+=" for (var "+g+" = 0; "+g+" < "+f+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var R=f+"["+g+"]";h.dataPathArr[b]=g;var j=e.validate(h);h.baseId=k,e.util.varOccurences(j,E)<2?s+=" "+e.util.varReplace(j,E,R)+" ":s+=" var "+E+" = "+R+"; "+j+" ",u&&(s+=" if (!"+v+") break; "),s+=" }"}return u&&(s+=" "+p+" if ("+d+" == errors) {"),s}});var Yp=F((SL,F0)=>{"use strict";F0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,k,f="data"+(n||""),m=e.opts.$data&&o&&o.$data,d;m?(s+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ",d="schema"+i):d=o;var h=a=="maximum",p=h?"exclusiveMaximum":"exclusiveMinimum",v=e.schema[p],g=e.opts.$data&&v&&v.$data,b=h?"<":">",E=h?">":"<",k=void 0;if(!(m||typeof o=="number"||o===void 0))throw new Error(a+" must be number");if(!(g||v===void 0||typeof v=="number"||typeof v=="boolean"))throw new Error(p+" must be number or boolean");if(g){var O=e.util.getData(v.$data,n,e.dataPathArr),P="exclusive"+i,A="exclType"+i,$="exclIsNumber"+i,I="op"+i,L="' + "+I+" + '";s+=" var schemaExcl"+i+" = "+O+"; ",O="schemaExcl"+i,s+=" var "+P+"; var "+A+" = typeof "+O+"; if ("+A+" != 'boolean' && "+A+" != 'undefined' && "+A+" != 'number') { ";var k=p,q=q||[];q.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(k||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: '"+p+" should be boolean' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var C=s;s=q.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+C+"]); ":s+=" validate.errors = ["+C+"]; return false; ":s+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else if ( ",m&&(s+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "),s+=" "+A+" == 'number' ? ( ("+P+" = "+d+" === undefined || "+O+" "+b+"= "+d+") ? "+f+" "+E+"= "+O+" : "+f+" "+E+" "+d+" ) : ( ("+P+" = "+O+" === true) ? "+f+" "+E+"= "+d+" : "+f+" "+E+" "+d+" ) || "+f+" !== "+f+") { var op"+i+" = "+P+" ? '"+b+"' : '"+b+"='; ",o===void 0&&(k=p,c=e.errSchemaPath+"/"+p,d=O,m=g)}else{var $=typeof v=="number",L=b;if($&&m){var I="'"+L+"'";s+=" if ( ",m&&(s+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "),s+=" ( "+d+" === undefined || "+v+" "+b+"= "+d+" ? "+f+" "+E+"= "+v+" : "+f+" "+E+" "+d+" ) || "+f+" !== "+f+") { "}else{$&&o===void 0?(P=!0,k=p,c=e.errSchemaPath+"/"+p,d=v,E+="="):($&&(d=Math[h?"min":"max"](v,o)),v===($?d:!0)?(P=!0,k=p,c=e.errSchemaPath+"/"+p,E+="="):(P=!1,L+="="));var I="'"+L+"'";s+=" if ( ",m&&(s+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "),s+=" "+f+" "+E+" "+d+" || "+f+" !== "+f+") { "}}k=k||a;var q=q||[];q.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(k||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+I+", limit: "+d+", exclusive: "+P+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be "+L+" ",m?s+="' + "+d:s+=""+d+"'"),e.opts.verbose&&(s+=" , schema: ",m?s+="validate.schema"+l:s+=""+o,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var C=s;return s=q.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+C+"]); ":s+=" validate.errors = ["+C+"]; return false; ":s+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",u&&(s+=" else { "),s}});var ed=F((PL,L0)=>{"use strict";L0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,p,f="data"+(n||""),m=e.opts.$data&&o&&o.$data,d;if(m?(s+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ",d="schema"+i):d=o,!(m||typeof o=="number"))throw new Error(a+" must be number");var h=a=="maxItems"?">":"<";s+="if ( ",m&&(s+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "),s+=" "+f+".length "+h+" "+d+") { ";var p=a,v=v||[];v.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+d+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have ",a=="maxItems"?s+="more":s+="fewer",s+=" than ",m?s+="' + "+d+" + '":s+=""+o,s+=" items' "),e.opts.verbose&&(s+=" , schema: ",m?s+="validate.schema"+l:s+=""+o,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var g=s;return s=v.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",u&&(s+=" else { "),s}});var td=F((RL,M0)=>{"use strict";M0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,p,f="data"+(n||""),m=e.opts.$data&&o&&o.$data,d;if(m?(s+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ",d="schema"+i):d=o,!(m||typeof o=="number"))throw new Error(a+" must be number");var h=a=="maxLength"?">":"<";s+="if ( ",m&&(s+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "),e.opts.unicode===!1?s+=" "+f+".length ":s+=" ucs2length("+f+") ",s+=" "+h+" "+d+") { ";var p=a,v=v||[];v.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(p||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+d+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be ",a=="maxLength"?s+="longer":s+="shorter",s+=" than ",m?s+="' + "+d+" + '":s+=""+o,s+=" characters' "),e.opts.verbose&&(s+=" , schema: ",m?s+="validate.schema"+l:s+=""+o,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var g=s;return s=v.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",u&&(s+=" else { "),s}});var rd=F((TL,U0)=>{"use strict";U0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,p,f="data"+(n||""),m=e.opts.$data&&o&&o.$data,d;if(m?(s+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ",d="schema"+i):d=o,!(m||typeof o=="number"))throw new Error(a+" must be number");var h=a=="maxProperties"?">":"<";s+="if ( ",m&&(s+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "),s+=" Object.keys("+f+").length "+h+" "+d+") { ";var p=a,v=v||[];v.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(p||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+d+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have ",a=="maxProperties"?s+="more":s+="fewer",s+=" than ",m?s+="' + "+d+" + '":s+=""+o,s+=" properties' "),e.opts.verbose&&(s+=" , schema: ",m?s+="validate.schema"+l:s+=""+o,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var g=s;return s=v.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",u&&(s+=" else { "),s}});var H0=F((kL,z0)=>{"use strict";z0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m=e.opts.$data&&o&&o.$data,d;if(m?(s+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ",d="schema"+i):d=o,!(m||typeof o=="number"))throw new Error(a+" must be number");s+="var division"+i+";if (",m&&(s+=" "+d+" !== undefined && ( typeof "+d+" != 'number' || "),s+=" (division"+i+" = "+f+" / "+d+", ",e.opts.multipleOfPrecision?s+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":s+=" division"+i+" !== parseInt(division"+i+") ",s+=" ) ",m&&(s+=" ) "),s+=" ) { ";var h=h||[];h.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+d+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be multiple of ",m?s+="' + "+d:s+=""+d+"'"),e.opts.verbose&&(s+=" , schema: ",m?s+="validate.schema"+l:s+=""+o,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var p=s;return s=h.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+p+"]); ":s+=" validate.errors = ["+p+"]; return false; ":s+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",u&&(s+=" else { "),s}});var V0=F((OL,B0)=>{"use strict";B0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m="errs__"+i,d=e.util.copy(e);d.level++;var h="valid"+d.level;if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){d.schema=o,d.schemaPath=l,d.errSchemaPath=c,s+=" var "+m+" = errors; ";var p=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.createErrors=!1;var v;d.opts.allErrors&&(v=d.opts.allErrors,d.opts.allErrors=!1),s+=" "+e.validate(d)+" ",d.createErrors=!0,v&&(d.opts.allErrors=v),e.compositeRule=d.compositeRule=p,s+=" if ("+h+") { ";var g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be valid' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var b=s;s=g.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+b+"]); ":s+=" validate.errors = ["+b+"]; return false; ":s+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { errors = "+m+"; if (vErrors !== null) { if ("+m+") vErrors.length = "+m+"; else vErrors = null; } ",e.opts.allErrors&&(s+=" } ")}else s+=" var err = ",e.createErrors!==!1?(s+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be valid' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(s+=" if (false) { ");return s}});var G0=F((CL,Z0)=>{"use strict";Z0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m="valid"+i,d="errs__"+i,h=e.util.copy(e),p="";h.level++;var v="valid"+h.level,g=h.baseId,b="prevValid"+i,E="passingSchemas"+i;s+="var "+d+" = errors , "+b+" = false , "+m+" = false , "+E+" = null; ";var k=e.compositeRule;e.compositeRule=h.compositeRule=!0;var O=o;if(O)for(var P,A=-1,$=O.length-1;A<$;)P=O[A+=1],(e.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:e.util.schemaHasRules(P,e.RULES.all))?(h.schema=P,h.schemaPath=l+"["+A+"]",h.errSchemaPath=c+"/"+A,s+=" "+e.validate(h)+" ",h.baseId=g):s+=" var "+v+" = true; ",A&&(s+=" if ("+v+" && "+b+") { "+m+" = false; "+E+" = ["+E+", "+A+"]; } else { ",p+="}"),s+=" if ("+v+") { "+m+" = "+b+" = true; "+E+" = "+A+"; }";return e.compositeRule=h.compositeRule=k,s+=""+p+"if (!"+m+") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+E+" } ",e.opts.messages!==!1&&(s+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+="} else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; }",e.opts.allErrors&&(s+=" } "),s}});var Q0=F((AL,W0)=>{"use strict";W0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m=e.opts.$data&&o&&o.$data,d;m?(s+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ",d="schema"+i):d=o;var h=m?"(new RegExp("+d+"))":e.usePattern(o);s+="if ( ",m&&(s+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "),s+=" !"+h+".test("+f+") ) { ";var p=p||[];p.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { pattern: ",m?s+=""+d:s+=""+e.util.toQuotedString(o),s+=" } ",e.opts.messages!==!1&&(s+=` , message: 'should match pattern "`,m?s+="' + "+d+" + '":s+=""+e.util.escapeQuotes(o),s+=`"' `),e.opts.verbose&&(s+=" , schema: ",m?s+="validate.schema"+l:s+=""+e.util.toQuotedString(o),s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var v=s;return s=p.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+v+"]); ":s+=" validate.errors = ["+v+"]; return false; ":s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",u&&(s+=" else { "),s}});var X0=F((IL,K0)=>{"use strict";K0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m="errs__"+i,d=e.util.copy(e),h="";d.level++;var p="valid"+d.level,v="key"+i,g="idx"+i,b=d.dataLevel=e.dataLevel+1,E="data"+b,k="dataProperties"+i,O=Object.keys(o||{}).filter(te),P=e.schema.patternProperties||{},A=Object.keys(P).filter(te),$=e.schema.additionalProperties,I=O.length||A.length,L=$===!1,q=typeof $=="object"&&Object.keys($).length,C=e.opts.removeAdditional,R=L||q||C,j=e.opts.ownProperties,z=e.baseId,H=e.schema.required;if(H&&!(e.opts.$data&&H.$data)&&H.length8)s+=" || validate.schema"+l+".hasOwnProperty("+v+") ";else{var K=O;if(K)for(var B,re=-1,ce=K.length-1;re0||Ee===!1:e.util.schemaHasRules(Ee,e.RULES.all)){var Ye=e.util.getProperty(B),Q=f+Ye,Ue=Ae&&Ee.default!==void 0;d.schema=Ee,d.schemaPath=l+Ye,d.errSchemaPath=c+"/"+e.util.escapeFragment(B),d.errorPath=e.util.getPath(e.errorPath,B,e.opts.jsonPointers),d.dataPathArr[b]=e.util.toQuotedString(B);var ie=e.validate(d);if(d.baseId=z,e.util.varOccurences(ie,E)<2){ie=e.util.varReplace(ie,E,Q);var Ke=Q}else{var Ke=E;s+=" var "+E+" = "+Q+"; "}if(Ue)s+=" "+ie+" ";else{if(V&&V[B]){s+=" if ( "+Ke+" === undefined ",j&&(s+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(B)+"') "),s+=") { "+p+" = false; ";var Oe=e.errorPath,Z=c,Ve=e.util.escapeQuotes(B);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(Oe,B,e.opts.jsonPointers)),c=e.errSchemaPath+"/required";var Y=Y||[];Y.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+Ve+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+Ve+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var ue=s;s=Y.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+ue+"]); ":s+=" validate.errors = ["+ue+"]; return false; ":s+=" var err = "+ue+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=Z,e.errorPath=Oe,s+=" } else { "}else u?(s+=" if ( "+Ke+" === undefined ",j&&(s+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(B)+"') "),s+=") { "+p+" = true; } else { "):(s+=" if ("+Ke+" !== undefined ",j&&(s+=" && Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(B)+"') "),s+=" ) { ");s+=" "+ie+" } "}}u&&(s+=" if ("+p+") { ",h+="}")}}if(A.length){var Qe=A;if(Qe)for(var be,yt=-1,bt=Qe.length-1;yt0||Ee===!1:e.util.schemaHasRules(Ee,e.RULES.all)){d.schema=Ee,d.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(be),d.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(be),j?s+=" "+k+" = "+k+" || Object.keys("+f+"); for (var "+g+"=0; "+g+"<"+k+".length; "+g+"++) { var "+v+" = "+k+"["+g+"]; ":s+=" for (var "+v+" in "+f+") { ",s+=" if ("+e.usePattern(be)+".test("+v+")) { ",d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers);var Q=f+"["+v+"]";d.dataPathArr[b]=v;var ie=e.validate(d);d.baseId=z,e.util.varOccurences(ie,E)<2?s+=" "+e.util.varReplace(ie,E,Q)+" ":s+=" var "+E+" = "+Q+"; "+ie+" ",u&&(s+=" if (!"+p+") break; "),s+=" } ",u&&(s+=" else "+p+" = true; "),s+=" } ",u&&(s+=" if ("+p+") { ",h+="}")}}}return u&&(s+=" "+h+" if ("+m+" == errors) {"),s}});var Y0=F((jL,J0)=>{"use strict";J0.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m="errs__"+i,d=e.util.copy(e),h="";d.level++;var p="valid"+d.level;if(s+="var "+m+" = errors;",e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){d.schema=o,d.schemaPath=l,d.errSchemaPath=c;var v="key"+i,g="idx"+i,b="i"+i,E="' + "+v+" + '",k=d.dataLevel=e.dataLevel+1,O="data"+k,P="dataProperties"+i,A=e.opts.ownProperties,$=e.baseId;A&&(s+=" var "+P+" = undefined; "),A?s+=" "+P+" = "+P+" || Object.keys("+f+"); for (var "+g+"=0; "+g+"<"+P+".length; "+g+"++) { var "+v+" = "+P+"["+g+"]; ":s+=" for (var "+v+" in "+f+") { ",s+=" var startErrs"+i+" = errors; ";var I=v,L=e.compositeRule;e.compositeRule=d.compositeRule=!0;var q=e.validate(d);d.baseId=$,e.util.varOccurences(q,O)<2?s+=" "+e.util.varReplace(q,O,I)+" ":s+=" var "+O+" = "+I+"; "+q+" ",e.compositeRule=d.compositeRule=L,s+=" if (!"+p+") { for (var "+b+"=startErrs"+i+"; "+b+"{"use strict";e_.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m="valid"+i,d=e.opts.$data&&o&&o.$data,h;d?(s+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ",h="schema"+i):h=o;var p="schema"+i;if(!d)if(o.length0||O===!1:e.util.schemaHasRules(O,e.RULES.all))||(v[v.length]=b)}}else var v=o;if(d||v.length){var P=e.errorPath,A=d||v.length>=e.opts.loopRequired,$=e.opts.ownProperties;if(u)if(s+=" var missing"+i+"; ",A){d||(s+=" var "+p+" = validate.schema"+l+"; ");var I="i"+i,L="schema"+i+"["+I+"]",q="' + "+L+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(P,L,e.opts.jsonPointers)),s+=" var "+m+" = true; ",d&&(s+=" if (schema"+i+" === undefined) "+m+" = true; else if (!Array.isArray(schema"+i+")) "+m+" = false; else {"),s+=" for (var "+I+" = 0; "+I+" < "+p+".length; "+I+"++) { "+m+" = "+f+"["+p+"["+I+"]] !== undefined ",$&&(s+=" && Object.prototype.hasOwnProperty.call("+f+", "+p+"["+I+"]) "),s+="; if (!"+m+") break; } ",d&&(s+=" } "),s+=" if (!"+m+") { ";var C=C||[];C.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+q+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+q+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var R=s;s=C.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+R+"]); ":s+=" validate.errors = ["+R+"]; return false; ":s+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { "}else{s+=" if ( ";var j=v;if(j)for(var z,I=-1,H=j.length-1;I{"use strict";r_.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f="data"+(n||""),m="valid"+i,d=e.opts.$data&&o&&o.$data,h;if(d?(s+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ",h="schema"+i):h=o,(o||d)&&e.opts.uniqueItems!==!1){d&&(s+=" var "+m+"; if ("+h+" === false || "+h+" === undefined) "+m+" = true; else if (typeof "+h+" != 'boolean') "+m+" = false; else { "),s+=" var i = "+f+".length , "+m+" = true , j; if (i > 1) { ";var p=e.schema.items&&e.schema.items.type,v=Array.isArray(p);if(!p||p=="object"||p=="array"||v&&(p.indexOf("object")>=0||p.indexOf("array")>=0))s+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+m+" = false; break outer; } } } ";else{s+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ";var g="checkDataType"+(v?"s":"");s+=" if ("+e.util[g](p,"item",e.opts.strictNumbers,!0)+") continue; ",v&&(s+=` if (typeof item == 'string') item = '"' + item; `),s+=" if (typeof itemIndices[item] == 'number') { "+m+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}s+=" } ",d&&(s+=" } "),s+=" if (!"+m+") { ";var b=b||[];b.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(s+=" , schema: ",d?s+="validate.schema"+l:s+=""+o,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var E=s;s=b.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+E+"]); ":s+=" validate.errors = ["+E+"]; return false; ":s+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",u&&(s+=" else { ")}else u&&(s+=" if (true) { ");return s}});var n_=F(($L,s_)=>{"use strict";s_.exports={$ref:g0(),allOf:b0(),anyOf:_0(),$comment:w0(),const:P0(),contains:T0(),dependencies:O0(),enum:A0(),format:j0(),if:D0(),items:q0(),maximum:Yp(),minimum:Yp(),maxItems:ed(),minItems:ed(),maxLength:td(),minLength:td(),maxProperties:rd(),minProperties:rd(),multipleOf:H0(),not:V0(),oneOf:G0(),pattern:Q0(),properties:X0(),propertyNames:Y0(),required:t_(),uniqueItems:a_(),validate:Xp()}});var c_=F((qL,o_)=>{"use strict";var i_=n_(),ad=us().toHash;o_.exports=function(){var e=[{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"]}],a=["type","$comment"],t=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],s=["number","integer","string","array","object","boolean","null"];return e.all=ad(a),e.types=ad(s),e.forEach(function(i){i.rules=i.rules.map(function(n){var o;if(typeof n=="object"){var l=Object.keys(n)[0];o=n[l],n=l,o.forEach(function(u){a.push(u),e.all[u]=!0})}a.push(n);var c=e.all[n]={keyword:n,code:i_[n],implements:o};return c}),e.all.$comment={keyword:"$comment",code:i_.$comment},i.type&&(e.types[i.type]=i)}),e.keywords=ad(a.concat(t)),e.custom={},e}});var p_=F((FL,u_)=>{"use strict";var l_=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];u_.exports=function(r,e){for(var a=0;a{"use strict";var r9=Ec().MissingRef;f_.exports=d_;function d_(r,e,a){var t=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(a=e,e=void 0);var s=i(r).then(function(){var o=t._addSchema(r,void 0,e);return o.validate||n(o)});return a&&s.then(function(o){a(null,o)},a),s;function i(o){var l=o.$schema;return l&&!t.getSchema(l)?d_.call(t,{$ref:l},!0):Promise.resolve()}function n(o){try{return t._compile(o)}catch(c){if(c instanceof r9)return l(c);throw c}function l(c){var u=c.missingSchema;if(d(u))throw new Error("Schema "+u+" is loaded but "+c.missingRef+" cannot be resolved");var f=t._loadingSchemas[u];return f||(f=t._loadingSchemas[u]=t._opts.loadSchema(u),f.then(m,m)),f.then(function(h){if(!d(u))return i(h).then(function(){d(u)||t.addSchema(h,u,void 0,e)})}).then(function(){return n(o)});function m(){delete t._loadingSchemas[u]}function d(h){return t._refs[h]||t._schemas[h]}}}}});var v_=F((ML,h_)=>{"use strict";h_.exports=function(e,a,t){var s=" ",i=e.level,n=e.dataLevel,o=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,f,m="data"+(n||""),d="valid"+i,h="errs__"+i,p=e.opts.$data&&o&&o.$data,v;p?(s+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ",v="schema"+i):v=o;var g=this,b="definition"+i,E=g.definition,k="",O,P,A,$,I;if(p&&E.$data){I="keywordValidate"+i;var L=E.validateSchema;s+=" var "+b+" = RULES.custom['"+a+"'].definition; var "+I+" = "+b+".validate;"}else{if($=e.useCustomRule(g,o,e.schema,e),!$)return;v="validate.schema"+l,I=$.code,O=E.compile,P=E.inline,A=E.macro}var q=I+".errors",C="i"+i,R="ruleErr"+i,j=E.async;if(j&&!e.async)throw new Error("async keyword in sync schema");if(P||A||(s+=""+q+" = null;"),s+="var "+h+" = errors;var "+d+";",p&&E.$data&&(k+="}",s+=" if ("+v+" === undefined) { "+d+" = true; } else { ",L&&(k+="}",s+=" "+d+" = "+b+".validateSchema("+v+"); if ("+d+") { ")),P)E.statements?s+=" "+$.validate+" ":s+=" "+d+" = "+$.validate+"; ";else if(A){var z=e.util.copy(e),k="";z.level++;var H="valid"+z.level;z.schema=$.validate,z.schemaPath="";var V=e.compositeRule;e.compositeRule=z.compositeRule=!0;var te=e.validate(z).replace(/validate\.schema/g,I);e.compositeRule=z.compositeRule=V,s+=" "+te}else{var K=K||[];K.push(s),s="",s+=" "+I+".call( ",e.opts.passContext?s+="this":s+="self",O||E.schema===!1?s+=" , "+m+" ":s+=" , "+v+" , "+m+" , validate.schema"+e.schemaPath+" ",s+=" , (dataPath || '')",e.errorPath!='""'&&(s+=" + "+e.errorPath);var B=n?"data"+(n-1||""):"parentData",re=n?e.dataPathArr[n]:"parentDataProperty";s+=" , "+B+" , "+re+" , rootData ) ";var ce=s;s=K.pop(),E.errors===!1?(s+=" "+d+" = ",j&&(s+="await "),s+=""+ce+"; "):j?(q="customErrors"+i,s+=" var "+q+" = null; try { "+d+" = await "+ce+"; } catch (e) { "+d+" = false; if (e instanceof ValidationError) "+q+" = e.errors; else throw e; } "):s+=" "+q+" = null; "+d+" = "+ce+"; "}if(E.modifying&&(s+=" if ("+B+") "+m+" = "+B+"["+re+"];"),s+=""+k,E.valid)u&&(s+=" if (true) { ");else{s+=" if ( ",E.valid===void 0?(s+=" !",A?s+=""+H:s+=""+d):s+=" "+!E.valid+" ",s+=") { ",f=g.keyword;var K=K||[];K.push(s),s="";var K=K||[];K.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(f||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+g.keyword+"' } ",e.opts.messages!==!1&&(s+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),s+=" } "):s+=" {} ";var Be=s;s=K.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+Be+"]); ":s+=" validate.errors = ["+Be+"]; return false; ":s+=" var err = "+Be+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var be=s;s=K.pop(),P?E.errors?E.errors!="full"&&(s+=" for (var "+C+"="+h+"; "+C+"{a9.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var b_=F((zL,y_)=>{"use strict";var g_=sd();y_.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:g_.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:g_.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"}]}}}});var __=F((HL,x_)=>{"use strict";var s9=/^[a-z_$][a-z0-9_$-]*$/i,n9=v_(),i9=b_();x_.exports={add:o9,get:c9,remove:l9,validate:nd};function o9(r,e){var a=this.RULES;if(a.keywords[r])throw new Error("Keyword "+r+" is already defined");if(!s9.test(r))throw new Error("Keyword "+r+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var t=e.type;if(Array.isArray(t))for(var s=0;s{u9.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var I_=F((VL,A_)=>{"use strict";var S_=t0(),ps=_c(),p9=a0(),P_=Bp(),d9=Kp(),f9=h0(),m9=c_(),R_=p_(),T_=us();A_.exports=ut;ut.prototype.validate=v9;ut.prototype.compile=g9;ut.prototype.addSchema=y9;ut.prototype.addMetaSchema=b9;ut.prototype.validateSchema=x9;ut.prototype.getSchema=E9;ut.prototype.removeSchema=S9;ut.prototype.addFormat=I9;ut.prototype.errorsText=A9;ut.prototype._addSchema=P9;ut.prototype._compile=R9;ut.prototype.compileAsync=m_();var Cc=__();ut.prototype.addKeyword=Cc.add;ut.prototype.getKeyword=Cc.get;ut.prototype.removeKeyword=Cc.remove;ut.prototype.validateKeyword=Cc.validate;var k_=Ec();ut.ValidationError=k_.Validation;ut.MissingRefError=k_.MissingRef;ut.$dataMetaSchema=R_;var Oc="http://json-schema.org/draft-07/schema",w_=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],h9=["/properties"];function ut(r){if(!(this instanceof ut))return new ut(r);r=this._opts=T_.copy(r)||{},F9(this),this._schemas={},this._refs={},this._fragments={},this._formats=f9(r.format),this._cache=r.cache||new p9,this._loadingSchemas={},this._compilations=[],this.RULES=m9(),this._getId=T9(r),r.loopRequired=r.loopRequired||1/0,r.errorDataPath=="property"&&(r._errorDataPathProperty=!0),r.serialize===void 0&&(r.serialize=d9),this._metaOpts=q9(this),r.formats&&D9(this),r.keywords&&$9(this),j9(this),typeof r.meta=="object"&&this.addMetaSchema(r.meta),r.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),N9(this)}function v9(r,e){var a;if(typeof r=="string"){if(a=this.getSchema(r),!a)throw new Error('no schema with key or ref "'+r+'"')}else{var t=this._addSchema(r);a=t.validate||this._compile(t)}var s=a(e);return a.$async!==!0&&(this.errors=a.errors),s}function g9(r,e){var a=this._addSchema(r,void 0,e);return a.validate||this._compile(a)}function y9(r,e,a,t){if(Array.isArray(r)){for(var s=0;s{q_.exports=$_;$_.sync=M9;var N_=require("fs");function L9(r,e){var a=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!a||(a=a.split(";"),a.indexOf("")!==-1))return!0;for(var t=0;t{z_.exports=M_;M_.sync=U9;var L_=require("fs");function M_(r,e,a){L_.stat(r,function(t,s){a(t,t?!1:U_(s,e))})}function U9(r,e){return U_(L_.statSync(r),e)}function U_(r,e){return r.isFile()&&z9(r,e)}function z9(r,e){var a=r.mode,t=r.uid,s=r.gid,i=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),n=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),o=parseInt("100",8),l=parseInt("010",8),c=parseInt("001",8),u=o|l,f=a&c||a&l&&s===n||a&o&&t===i||a&u&&i===0;return f}});var V_=F((JL,B_)=>{var XL=require("fs"),Ic;process.platform==="win32"||global.TESTING_WINDOWS?Ic=F_():Ic=H_();B_.exports=od;od.sync=H9;function od(r,e,a){if(typeof e=="function"&&(a=e,e={}),!a){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(t,s){od(r,e||{},function(i,n){i?s(i):t(n)})})}Ic(r,e||{},function(t,s){t&&(t.code==="EACCES"||e&&e.ignoreErrors)&&(t=null,s=!1),a(t,s)})}function H9(r,e){try{return Ic.sync(r,e||{})}catch(a){if(e&&e.ignoreErrors||a.code==="EACCES")return!1;throw a}}});var J_=F((YL,X_)=>{var vn=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Z_=require("path"),B9=vn?";":":",G_=V_(),W_=r=>Object.assign(new Error(`not found: ${r}`),{code:"ENOENT"}),Q_=(r,e)=>{let a=e.colon||B9,t=r.match(/\//)||vn&&r.match(/\\/)?[""]:[...vn?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(a)],s=vn?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=vn?s.split(a):[""];return vn&&r.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:t,pathExt:i,pathExtExe:s}},K_=(r,e,a)=>{typeof e=="function"&&(a=e,e={}),e||(e={});let{pathEnv:t,pathExt:s,pathExtExe:i}=Q_(r,e),n=[],o=c=>new Promise((u,f)=>{if(c===t.length)return e.all&&n.length?u(n):f(W_(r));let m=t[c],d=/^".*"$/.test(m)?m.slice(1,-1):m,h=Z_.join(d,r),p=!d&&/^\.[\\\/]/.test(r)?r.slice(0,2)+h:h;u(l(p,c,0))}),l=(c,u,f)=>new Promise((m,d)=>{if(f===s.length)return m(o(u+1));let h=s[f];G_(c+h,{pathExt:i},(p,v)=>{if(!p&&v)if(e.all)n.push(c+h);else return m(c+h);return m(l(c,u,f+1))})});return a?o(0).then(c=>a(null,c),a):o(0)},V9=(r,e)=>{e=e||{};let{pathEnv:a,pathExt:t,pathExtExe:s}=Q_(r,e),i=[];for(let n=0;n