New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

abolish

Package Overview
Dependencies
Maintainers
1
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abolish - npm Package Compare versions

Comparing version 6.0.1 to 6.0.2

2

browser.min.js

@@ -1,1 +0,1 @@

"use strict";var AbolishBrowser=(()=>{var Ao=Object.create;var oe=Object.defineProperty;var vo=Object.getOwnPropertyDescriptor;var Oo=Object.getOwnPropertyNames,nt=Object.getOwnPropertySymbols,Vo=Object.getPrototypeOf,lt=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable;var ft=(e,t,r)=>t in e?oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t)=>{for(var r in t||(t={}))lt.call(t,r)&&ft(e,r,t[r]);if(nt)for(var r of nt(t))wo.call(t,r)&&ft(e,r,t[r]);return e};var i=(e,t)=>()=>(e&&(t=e(e=0)),t);var ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ut=(e,t)=>{for(var r in t)oe(e,r,{get:t[r],enumerable:!0})},dt=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Oo(t))!lt.call(e,o)&&o!==r&&oe(e,o,{get:()=>t[o],enumerable:!(a=vo(t,o))||a.enumerable});return e};var U=(e,t,r)=>(r=e!=null?Ao(Vo(e)):{},dt(t||!e||!e.__esModule?oe(r,"default",{value:e,enumerable:!0}):r,e)),pt=e=>dt(oe({},"__esModule",{value:!0}),e);var w=(e,t,r)=>new Promise((a,o)=>{var s=n=>{try{u(r.next(n))}catch(f){o(f)}},l=n=>{try{u(r.throw(n))}catch(f){o(f)}},u=n=>n.done?a(n.value):Promise.resolve(n.value).then(s,l);u((r=r.apply(e,t)).next())});var Ne=ie((nf,mt)=>{"use strict";var So=new RegExp(/([!a-zA-Z_*0-9]+)/g),Co=new RegExp(/([a-zA-Z_*0-9]+:[a-zA-Z_0-9]+)/g),jo=new RegExp(/([a-zA-Z_*0-9]+:"[^"]+")/g),_o=new RegExp(/([a-zA-Z_*0-9]+:'[^']+')/g),$o=new RegExp(/([a-zA-Z_*0-9]+:`[^`]+`)/g),To=e=>{let t=e.split("|"),r={};for(let a=0;a<t.length;a++){let o=t[a];if(o.match(_o)||o.match(jo)||o.match($o)){let[s,...l]=o.split(":"),u=l.join(":");u=u.substring(1),u=u.substring(0,l.length-1),r[s]=u}else if(o.match(Co)){let[s,l]=o.split(":");isNaN(l)||(l=Number(l)),r[s]=l}else if(o.match(So)){let s=o,l=!0;s.substring(0,1)==="!"&&(s=s.substring(1),l=!1),r[s]=l}}return r};mt.exports=To});function se(e,t,r="Options"){if(!De(e,t))throw new TypeError(`${r} must be typeof [${t}], but [${typeof e}] was given.`);return!0}function De(e,t){if(typeof t=="string")return t==="array"&&Array.isArray(e)?!0:typeof e===t;{let r=t.includes("array");return!r&&t.includes(typeof e)?!0:r&&(t.includes(typeof e)||Array.isArray(e))}}var Fe=i(()=>{"use strict"});var ht=ie((ct,xt)=>{"use strict";Fe();var S={default:{name:"default",description:"Set default value if original value is undefined or null",validator(e,t,{modifier:r}){return e==null&&r.setThis(t),!0}},required:{name:"required",description:"Value is required",error:":param is required.",validator:(e,t)=>t?typeof e=="undefined"||e===null?!1:typeof e=="string"||Array.isArray(e)?e.length>0:!0:!0},typeof:{name:"typeof",description:"Value is typeof :option",error:":param is not typeof :option",validator:function(t,r){return r===!1?!0:(typeof r=="string"&&r.includes(",")&&(r=r.split(",")),De(t,r))}},exact:{name:"exact",error:":param failed exact validator",description:"Value is === :option",validator:(e,t)=>e===t},min:{name:"min",error:":param is too small. (Min. :option)",description:"Number: Value is >= :option",validator:(e,t,r)=>{let a=isNaN(e);return typeof e=="string"&&a||Array.isArray(e)?S.minLength.validator(e,t,r):a?!1:Number(e)>=Number(t)}},max:{name:"max",error:":param is too big. (Max. :option)",description:"Number: Value is <= :option",validator:(e,t,r)=>{let a=isNaN(e);return typeof e=="string"&&a||Array.isArray(e)?S.maxLength.validator(e,t,r):a?!1:Number(e)<=Number(t)}},minLength:{name:"minLength",error:":param is too short. (Min. :option characters)",description:"Value length is >= :option",validator:(e,t,{error:r})=>typeof e=="string"?e.trim().length>=Number(t):Array.isArray(e)?e.length>=Number(t)?!0:r(`:param length is too short. (Min: ${t})`):!1},maxLength:{name:"maxLength",error:":param is too long. (Max. :option characters)",description:"Value length is <= :option",validator:(e,t,{error:r})=>typeof e=="string"?e.trim().length<=Number(t):Array.isArray(e)?e.length<=Number(t)?!0:r(`:param length is too long. (Max: ${t})`):!1},size:{name:"size",error:":param must be of size: [:option]",description:"Check the size of a String, Array, or Object",validator:(e,t,{error:r})=>{let a;if(typeof e=="string"||Array.isArray(e))a=e.length;else if(typeof e=="object")try{a=Object.keys(e).length}catch(o){return r(o.message)}return a===void 0?!1:Array.isArray(t)?t.includes(a):a===Number(t)}},object:{name:"object",validator:(e,t,{error:r,modifier:a,abolish:o})=>{if(!e||typeof e!="object")return r(":param must be an object.");let[s,l]=o.validate(e,t);if(s)return r(s.message,s);a.setThis(l)},description:["Object: Value is an object"]},objectAsync:{name:"objectAsync",isAsync:!0,validator:(s,l,u)=>w(ct,[s,l,u],function*(e,t,{error:r,modifier:a,abolish:o}){if(!e||typeof e!="object")return r(":param must be an object.");let[n,f]=yield o.validateAsync(e,t);if(n)return r(n.message,n);a.setThis(f)})},$inline:{name:"$inline",error:":param failed inline validation.",validator:(e,t,r)=>t(e,r),description:"Register a custom validation function inline."}};S.type=Object.assign({},S.typeof);S.type.name="type";S.type.error=":param is not of type :option";S.type.description="Alias: typeof";for(let e of Object.keys(S)){let t=S[e];Object.defineProperty(t.validator,"name",{value:t.name})}xt.exports=S});var ko,yt,bt=i(()=>{ko=typeof global=="object"&&global&&global.Object===Object&&global,yt=ko});var Eo,Po,G,ye=i(()=>{bt();Eo=typeof self=="object"&&self&&self.Object===Object&&self,Po=yt||Eo||Function("return this")(),G=Po});var Io,_,be=i(()=>{ye();Io=G.Symbol,_=Io});function Fo(e){var t=No.call(e,ne),r=e[ne];try{e[ne]=void 0;var a=!0}catch(s){}var o=Do.call(e);return a&&(t?e[ne]=r:delete e[ne]),o}var gt,No,Do,ne,Rt,At=i(()=>{be();gt=Object.prototype,No=gt.hasOwnProperty,Do=gt.toString,ne=_?_.toStringTag:void 0;Rt=Fo});function Lo(e){return zo.call(e)}var Mo,zo,vt,Ot=i(()=>{Mo=Object.prototype,zo=Mo.toString;vt=Lo});function Go(e){return e==null?e===void 0?Uo:Wo:Vt&&Vt in Object(e)?Rt(e):vt(e)}var Wo,Uo,Vt,H,ge=i(()=>{be();At();Ot();Wo="[object Null]",Uo="[object Undefined]",Vt=_?_.toStringTag:void 0;H=Go});function Ho(e){return e!=null&&typeof e=="object"}var B,Re=i(()=>{B=Ho});function Ko(e){return typeof e=="symbol"||B(e)&&H(e)==Bo}var Bo,K,Ae=i(()=>{ge();Re();Bo="[object Symbol]";K=Ko});function Zo(e,t){for(var r=-1,a=e==null?0:e.length,o=Array(a);++r<a;)o[r]=t(e[r],r,e);return o}var wt,St=i(()=>{wt=Zo});var qo,k,fe=i(()=>{qo=Array.isArray,k=qo});function _t(e){if(typeof e=="string")return e;if(k(e))return wt(e,_t)+"";if(K(e))return jt?jt.call(e):"";var t=e+"";return t=="0"&&1/e==-Jo?"-0":t}var Jo,Ct,jt,$t,Tt=i(()=>{be();St();fe();Ae();Jo=1/0,Ct=_?_.prototype:void 0,jt=Ct?Ct.toString:void 0;$t=_t});function Yo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var z,ve=i(()=>{z=Yo});function ri(e){if(!z(e))return!1;var t=H(e);return t==Qo||t==ei||t==Xo||t==ti}var Xo,Qo,ei,ti,kt,Et=i(()=>{ge();ve();Xo="[object AsyncFunction]",Qo="[object Function]",ei="[object GeneratorFunction]",ti="[object Proxy]";kt=ri});var ai,Oe,Pt=i(()=>{ye();ai=G["__core-js_shared__"],Oe=ai});function oi(e){return!!It&&It in e}var It,Nt,Dt=i(()=>{Pt();It=function(){var e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();Nt=oi});function ni(e){if(e!=null){try{return si.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var ii,si,Ft,Mt=i(()=>{ii=Function.prototype,si=ii.toString;Ft=ni});function xi(e){if(!z(e)||Nt(e))return!1;var t=kt(e)?ci:li;return t.test(Ft(e))}var fi,li,ui,di,pi,mi,ci,zt,Lt=i(()=>{Et();Dt();ve();Mt();fi=/[\\^$.*+?()[\]{}|]/g,li=/^\[object .+?Constructor\]$/,ui=Function.prototype,di=Object.prototype,pi=ui.toString,mi=di.hasOwnProperty,ci=RegExp("^"+pi.call(mi).replace(fi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");zt=xi});function hi(e,t){return e==null?void 0:e[t]}var Wt,Ut=i(()=>{Wt=hi});function yi(e,t){var r=Wt(e,t);return zt(r)?r:void 0}var Z,Ve=i(()=>{Lt();Ut();Z=yi});var bi,Me,Gt=i(()=>{Ve();bi=function(){try{var e=Z(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),Me=bi});function Ai(e,t){var r=typeof e;return t=t==null?gi:t,!!t&&(r=="number"||r!="symbol"&&Ri.test(e))&&e>-1&&e%1==0&&e<t}var gi,Ri,we,ze=i(()=>{gi=9007199254740991,Ri=/^(?:0|[1-9]\d*)$/;we=Ai});function vi(e,t,r){t=="__proto__"&&Me?Me(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Ht,Bt=i(()=>{Gt();Ht=vi});function Oi(e,t){return e===t||e!==e&&t!==t}var Se,Le=i(()=>{Se=Oi});function Si(e,t,r){var a=e[t];(!(wi.call(e,t)&&Se(a,r))||r===void 0&&!(t in e))&&Ht(e,t,r)}var Vi,wi,Kt,Zt=i(()=>{Bt();Le();Vi=Object.prototype,wi=Vi.hasOwnProperty;Kt=Si});function ji(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ci}var Ci,qt,Jt=i(()=>{Ci=9007199254740991;qt=ji});function $i(e){return B(e)&&H(e)==_i}var _i,We,Yt=i(()=>{ge();Re();_i="[object Arguments]";We=$i});var Xt,Ti,ki,Ei,Qt,er=i(()=>{Yt();Re();Xt=Object.prototype,Ti=Xt.hasOwnProperty,ki=Xt.propertyIsEnumerable,Ei=We(function(){return arguments}())?We:function(e){return B(e)&&Ti.call(e,"callee")&&!ki.call(e,"callee")},Qt=Ei});function Ni(e,t){if(k(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||K(e)?!0:Ii.test(e)||!Pi.test(e)||t!=null&&e in Object(t)}var Pi,Ii,tr,rr=i(()=>{fe();Ae();Pi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ii=/^\w*$/;tr=Ni});var Di,$,le=i(()=>{Ve();Di=Z(Object,"create"),$=Di});function Fi(){this.__data__=$?$(null):{},this.size=0}var ar,or=i(()=>{le();ar=Fi});function Mi(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ir,sr=i(()=>{ir=Mi});function Ui(e){var t=this.__data__;if($){var r=t[e];return r===zi?void 0:r}return Wi.call(t,e)?t[e]:void 0}var zi,Li,Wi,nr,fr=i(()=>{le();zi="__lodash_hash_undefined__",Li=Object.prototype,Wi=Li.hasOwnProperty;nr=Ui});function Bi(e){var t=this.__data__;return $?t[e]!==void 0:Hi.call(t,e)}var Gi,Hi,lr,ur=i(()=>{le();Gi=Object.prototype,Hi=Gi.hasOwnProperty;lr=Bi});function Zi(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$&&t===void 0?Ki:t,this}var Ki,dr,pr=i(()=>{le();Ki="__lodash_hash_undefined__";dr=Zi});function q(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}var Ue,mr=i(()=>{or();sr();fr();ur();pr();q.prototype.clear=ar;q.prototype.delete=ir;q.prototype.get=nr;q.prototype.has=lr;q.prototype.set=dr;Ue=q});function qi(){this.__data__=[],this.size=0}var cr,xr=i(()=>{cr=qi});function Ji(e,t){for(var r=e.length;r--;)if(Se(e[r][0],t))return r;return-1}var E,ue=i(()=>{Le();E=Ji});function Qi(e){var t=this.__data__,r=E(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():Xi.call(t,r,1),--this.size,!0}var Yi,Xi,hr,yr=i(()=>{ue();Yi=Array.prototype,Xi=Yi.splice;hr=Qi});function es(e){var t=this.__data__,r=E(t,e);return r<0?void 0:t[r][1]}var br,gr=i(()=>{ue();br=es});function ts(e){return E(this.__data__,e)>-1}var Rr,Ar=i(()=>{ue();Rr=ts});function rs(e,t){var r=this.__data__,a=E(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var vr,Or=i(()=>{ue();vr=rs});function J(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}var Vr,wr=i(()=>{xr();yr();gr();Ar();Or();J.prototype.clear=cr;J.prototype.delete=hr;J.prototype.get=br;J.prototype.has=Rr;J.prototype.set=vr;Vr=J});var as,Sr,Cr=i(()=>{Ve();ye();as=Z(G,"Map"),Sr=as});function os(){this.size=0,this.__data__={hash:new Ue,map:new(Sr||Vr),string:new Ue}}var jr,_r=i(()=>{mr();wr();Cr();jr=os});function is(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var $r,Tr=i(()=>{$r=is});function ss(e,t){var r=e.__data__;return $r(t)?r[typeof t=="string"?"string":"hash"]:r.map}var P,de=i(()=>{Tr();P=ss});function ns(e){var t=P(this,e).delete(e);return this.size-=t?1:0,t}var kr,Er=i(()=>{de();kr=ns});function fs(e){return P(this,e).get(e)}var Pr,Ir=i(()=>{de();Pr=fs});function ls(e){return P(this,e).has(e)}var Nr,Dr=i(()=>{de();Nr=ls});function us(e,t){var r=P(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var Fr,Mr=i(()=>{de();Fr=us});function Y(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}var Ge,zr=i(()=>{_r();Er();Ir();Dr();Mr();Y.prototype.clear=jr;Y.prototype.delete=kr;Y.prototype.get=Pr;Y.prototype.has=Nr;Y.prototype.set=Fr;Ge=Y});function He(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ds);var r=function(){var a=arguments,o=t?t.apply(this,a):a[0],s=r.cache;if(s.has(o))return s.get(o);var l=e.apply(this,a);return r.cache=s.set(o,l)||s,l};return r.cache=new(He.Cache||Ge),r}var ds,Lr,Wr=i(()=>{zr();ds="Expected a function";He.Cache=Ge;Lr=He});function ms(e){var t=Lr(e,function(a){return r.size===ps&&r.clear(),a}),r=t.cache;return t}var ps,Ur,Gr=i(()=>{Wr();ps=500;Ur=ms});var cs,xs,hs,Hr,Br=i(()=>{Gr();cs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xs=/\\(\\)?/g,hs=Ur(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(cs,function(r,a,o,s){t.push(o?s.replace(xs,"$1"):a||r)}),t}),Hr=hs});function ys(e){return e==null?"":$t(e)}var I,pe=i(()=>{Tt();I=ys});function bs(e,t){return k(e)?e:tr(e,t)?[e]:Hr(I(e))}var N,me=i(()=>{fe();rr();Br();pe();N=bs});function Rs(e){if(typeof e=="string"||K(e))return e;var t=e+"";return t=="0"&&1/e==-gs?"-0":t}var gs,D,ce=i(()=>{Ae();gs=1/0;D=Rs});function As(e,t){t=N(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[D(t[r++])];return r&&r==a?e:void 0}var Ce,Be=i(()=>{me();ce();Ce=As});function vs(e,t,r){var a=e==null?void 0:Ce(e,t);return a===void 0?r:a}var Ke,Kr=i(()=>{Be();Ke=vs});function Os(e,t,r){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(o);++a<o;)s[a]=e[a+t];return s}var je,Ze=i(()=>{je=Os});function Vs(e,t,r){var a=e.length;return r=r===void 0?a:r,!t&&r>=a?e:je(e,t,r)}var Zr,qr=i(()=>{Ze();Zr=Vs});function Es(e){return ks.test(e)}var ws,Ss,Cs,js,_s,$s,Ts,ks,_e,qe=i(()=>{ws="\\ud800-\\udfff",Ss="\\u0300-\\u036f",Cs="\\ufe20-\\ufe2f",js="\\u20d0-\\u20ff",_s=Ss+Cs+js,$s="\\ufe0e\\ufe0f",Ts="\\u200d",ks=RegExp("["+Ts+ws+_s+$s+"]");_e=Es});function Ps(e){return e.split("")}var Jr,Yr=i(()=>{Jr=Ps});function Ks(e){return e.match(Bs)||[]}var Xr,Is,Ns,Ds,Fs,Ms,zs,Je,Ye,Ls,Qr,ea,ta,Ws,ra,aa,Us,Gs,Hs,Bs,oa,ia=i(()=>{Xr="\\ud800-\\udfff",Is="\\u0300-\\u036f",Ns="\\ufe20-\\ufe2f",Ds="\\u20d0-\\u20ff",Fs=Is+Ns+Ds,Ms="\\ufe0e\\ufe0f",zs="["+Xr+"]",Je="["+Fs+"]",Ye="\\ud83c[\\udffb-\\udfff]",Ls="(?:"+Je+"|"+Ye+")",Qr="[^"+Xr+"]",ea="(?:\\ud83c[\\udde6-\\uddff]){2}",ta="[\\ud800-\\udbff][\\udc00-\\udfff]",Ws="\\u200d",ra=Ls+"?",aa="["+Ms+"]?",Us="(?:"+Ws+"(?:"+[Qr,ea,ta].join("|")+")"+aa+ra+")*",Gs=aa+ra+Us,Hs="(?:"+[Qr+Je+"?",Je,ea,ta,zs].join("|")+")",Bs=RegExp(Ye+"(?="+Ye+")|"+Hs+Gs,"g");oa=Ks});function Zs(e){return _e(e)?oa(e):Jr(e)}var sa,na=i(()=>{Yr();qe();ia();sa=Zs});function qs(e){return function(t){t=I(t);var r=_e(t)?sa(t):void 0,a=r?r[0]:t.charAt(0),o=r?Zr(r,1).join(""):t.slice(1);return a[e]()+o}}var fa,la=i(()=>{qr();qe();na();pe();fa=qs});var Js,ua,da=i(()=>{la();Js=fa("toUpperCase"),ua=Js});function Ys(e,t,r,a){var o=-1,s=e==null?0:e.length;for(a&&s&&(r=e[++o]);++o<s;)r=t(r,e[o],o,e);return r}var pa,ma=i(()=>{pa=Ys});function Xs(e){return function(t){return e==null?void 0:e[t]}}var ca,xa=i(()=>{ca=Xs});var Qs,en,ha,ya=i(()=>{xa();Qs={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},en=ca(Qs),ha=en});function ln(e){return e=I(e),e&&e.replace(tn,ha).replace(fn,"")}var tn,rn,an,on,sn,nn,fn,ba,ga=i(()=>{ya();pe();tn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rn="\\u0300-\\u036f",an="\\ufe20-\\ufe2f",on="\\u20d0-\\u20ff",sn=rn+an+on,nn="["+sn+"]",fn=RegExp(nn,"g");ba=ln});function dn(e){return e.match(un)||[]}var un,Ra,Aa=i(()=>{un=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;Ra=dn});function mn(e){return pn.test(e)}var pn,va,Oa=i(()=>{pn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;va=mn});function Nn(e){return e.match(In)||[]}var ja,cn,xn,hn,yn,_a,$a,bn,gn,Rn,An,Ta,vn,ka,Ea,Va,On,Pa,Vn,Ia,Na,wn,Sn,Cn,Da,Fa,X,jn,wa,_n,Sa,Ca,Ma,za,$n,Tn,kn,En,Pn,In,La,Wa=i(()=>{ja="\\ud800-\\udfff",cn="\\u0300-\\u036f",xn="\\ufe20-\\ufe2f",hn="\\u20d0-\\u20ff",yn=cn+xn+hn,_a="\\u2700-\\u27bf",$a="a-z\\xdf-\\xf6\\xf8-\\xff",bn="\\xac\\xb1\\xd7\\xf7",gn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rn="\\u2000-\\u206f",An=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ta="A-Z\\xc0-\\xd6\\xd8-\\xde",vn="\\ufe0e\\ufe0f",ka=bn+gn+Rn+An,Ea="['\u2019]",Va="["+ka+"]",On="["+yn+"]",Pa="\\d+",Vn="["+_a+"]",Ia="["+$a+"]",Na="[^"+ja+ka+Pa+_a+$a+Ta+"]",wn="\\ud83c[\\udffb-\\udfff]",Sn="(?:"+On+"|"+wn+")",Cn="[^"+ja+"]",Da="(?:\\ud83c[\\udde6-\\uddff]){2}",Fa="[\\ud800-\\udbff][\\udc00-\\udfff]",X="["+Ta+"]",jn="\\u200d",wa="(?:"+Ia+"|"+Na+")",_n="(?:"+X+"|"+Na+")",Sa="(?:"+Ea+"(?:d|ll|m|re|s|t|ve))?",Ca="(?:"+Ea+"(?:D|LL|M|RE|S|T|VE))?",Ma=Sn+"?",za="["+vn+"]?",$n="(?:"+jn+"(?:"+[Cn,Da,Fa].join("|")+")"+za+Ma+")*",Tn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",En=za+Ma+$n,Pn="(?:"+[Vn,Da,Fa].join("|")+")"+En,In=RegExp([X+"?"+Ia+"+"+Sa+"(?="+[Va,X,"$"].join("|")+")",_n+"+"+Ca+"(?="+[Va,X+wa,"$"].join("|")+")",X+"?"+wa+"+"+Sa,X+"+"+Ca,kn,Tn,Pa,Pn].join("|"),"g");La=Nn});function Dn(e,t,r){return e=I(e),t=r?void 0:t,t===void 0?va(e)?La(e):Ra(e):e.match(t)||[]}var Ua,Ga=i(()=>{Aa();Oa();pe();Wa();Ua=Dn});function zn(e){return function(t){return pa(Ua(ba(t).replace(Mn,"")),e,"")}}var Fn,Mn,Ha,Ba=i(()=>{ma();ga();Ga();Fn="['\u2019]",Mn=RegExp(Fn,"g");Ha=zn});function Ln(e,t,r){t=N(t,e);for(var a=-1,o=t.length,s=!1;++a<o;){var l=D(t[a]);if(!(s=e!=null&&r(e,l)))break;e=e[l]}return s||++a!=o?s:(o=e==null?0:e.length,!!o&&qt(o)&&we(l,o)&&(k(e)||Qt(e)))}var Ka,Za=i(()=>{me();er();fe();ze();Jt();ce();Ka=Ln});function Wn(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var qa,Ja=i(()=>{qa=Wn});function Hn(e,t){return e!=null&&Gn.call(e,t)}var Un,Gn,Ya,Xa=i(()=>{Un=Object.prototype,Gn=Un.hasOwnProperty;Ya=Hn});function Bn(e,t){return e!=null&&Ka(e,t,Ya)}var Xe,Qa=i(()=>{Xa();Za();Xe=Bn});function Kn(e,t){return t.length<2?e:Ce(e,je(t,0,-1))}var eo,to=i(()=>{Be();Ze();eo=Kn});function Zn(e,t){return t=N(t,e),e=eo(e,t),e==null||delete e[D(qa(t))]}var ro,ao=i(()=>{me();Ja();to();ce();ro=Zn});function qn(e,t,r,a){if(!z(e))return e;t=N(t,e);for(var o=-1,s=t.length,l=s-1,u=e;u!=null&&++o<s;){var n=D(t[o]),f=r;if(n==="__proto__"||n==="constructor"||n==="prototype")return e;if(o!=l){var d=u[n];f=a?a(d,n,u):void 0,f===void 0&&(f=z(d)?d:we(t[o+1])?[]:{})}Kt(u,n,f),u=u[n]}return e}var oo,io=i(()=>{Zt();me();ze();ve();ce();oo=qn});function Jn(e,t,r){return e==null?e:oo(e,t,r)}var Qe,so=i(()=>{io();Qe=Jn});var Yn,$e,no=i(()=>{Ba();da();Yn=Ha(function(e,t,r){return e+(r?" ":"")+ua(t)}),$e=Yn});function Xn(e,t){return e==null?!0:ro(e,t)}var Te,fo=i(()=>{ao();Te=Xn});var et=i(()=>{Kr();Qa();so();no();fo();});function Q(e,t){return t?t.config.useStartCaseInErrors?$e(e):e:$e(e)}function ee(e,t,r){let a={};if(r===void 0?t.some(L):r)for(let s of t)a[s]=T(e,s);else for(let s of t)a[s]=e[s];return a}function lo(e,t){let r={};for(let a in e)t.includes(a)||(r[a]=e[a]);return r}function tt(e,t,r,a){return a===void 0&&L(t)?Qe(e,t,r):(e[t]=r,e)}function T(e,t,r){return r===void 0&&L(t)?Ke(e,t):e[t]}function L(e){return e.indexOf(".")!==-1}var ke=i(()=>{"use strict";et()});var po={};ut(po,{Rule:()=>te,RuleTyped:()=>Qn,Schema:()=>uo,SchemaTyped:()=>ef});function te(e){Array.isArray(e)||(e=[e]);let t={};for(let r of e)typeof r=="string"&&(r=(0,rt.default)(r)),t=V(V({},t),r);return t}function Qn(e){return te(e)}function uo(e){let t={};for(let r of Object.keys(e)){let a=e[r];r==="$include"||(typeof a=="string"?a=(0,rt.default)(a):Array.isArray(a)&&(a=te(a))),t[r]=a}return t}function ef(e){return uo(e)}var rt,at=i(()=>{"use strict";rt=U(Ne())});var it=ie((lp,mo)=>{"use strict";var ot=class{constructor(t,r){this.code="default";return this.message=t,r&&(this.data=r),this}setCode(t){return this.code=t,this}setData(t){return this.data=t,this}setMessage(t){return this.message=t,this}};mo.exports=ot});var xo=ie((pp,co)=>{"use strict";ke();et();var st=class{constructor(t,r,a=!1){this.$hasData=!0;return this.data=t,this.path=r,this.name=a,this.pathHasDotNotation=L(r),this}flagNoData(){return this.$hasData=!1,this}setData(t){return this.data=t,this.$hasData=!0,this}get hasData(){return this.$hasData}get(t){return T(this.data,t)}getThis(){return this.get(this.path)}has(t){return Xe(this.data,t)}set(t,r){return tt(this.data,t,r)}setThis(t){return tt(this.data,this.path,t,this.pathHasDotNotation)}unset(t){return Te(this.data,t)}unsetThis(){return Te(this.data,this.path)}getName(){return this.name||Q(this.path)}getNameRaw(){return this.name||this.path}};co.exports=st});function ho(e,t,r,a,o){let s=a.error,l=null,u="default",n=!1;return r instanceof Ee.default&&(n=!0,s=r.message,l=r.data,u=r.code),a.errorFn&&(n=!0,s=a.errorFn({code:u,data:l,validator:a.name,value:t})),n&&(s.includes(":param")&&(s=s.replace(":param",o||e)),a.optionString&&s.includes(":option")&&(s=s.replace(":option",a.optionString))),[{code:u,key:e,type:"validator",validator:a.name,message:s,data:l},{}]}var Ee,F,yo=i(()=>{"use strict";Ee=U(it());ke();F=class{constructor(){this.data={};this.fields=[];this.includedFields=[];this.fieldsHasDotNotation=!1;this.isObject=!0;this.async=!1}validateObject(t){if(!this.isObject)throw new Error("Variable compiled schema cannot be used to validate an object, use object compiled schema!");if(this.async)throw new Error("Rules contains an async validator, use validateObjectAsync instead!");let r=V({},t),a=this.fields;for(let s in this.data){let l=this.data[s],u=T(r,s,this.fieldsHasDotNotation);if(l.$skip){let n=l.$skip;if(typeof n=="function"&&(n=n(u,r)),n){this.includedFields.includes(s)||(a=a.filter(f=>f!==s));continue}}for(let n of l.validators){let f=!1;try{f=n.func(u,r)}catch(d){return[{code:"default",key:s,type:"internal",validator:n.name,message:d.message,data:d.stack},{}]}if(typeof f!==void 0&&(f===!1||f instanceof Ee.default))return ho(s,u,f,n,l.$name)}}let o;if(a.length===1){let s=a[0];o={[s]:r[s]}}else a.length>1?o=ee(r,a,this.fieldsHasDotNotation):o={};return[void 0,o]}validateObjectAsync(t){return w(this,null,function*(){if(!this.isObject)throw new Error("Variable compiled schema cannot be used to validate an object, use object compiled schema!");let r=V({},t),a=this.fields;for(let s in this.data){let l=this.data[s],u=T(r,s,this.fieldsHasDotNotation);if(l.$skip){let n=l.$skip;if(typeof n=="function"&&(n=n(u,r)),n){this.includedFields.includes(s)||(a=a.filter(f=>f!==s));continue}}for(let n of l.validators){let f=!1;try{n.async?f=yield n.func(u,r):f=n.func(u,r)}catch(d){return[{code:"default",key:s,type:"internal",validator:n.name,message:d.message,data:d.stack},{}]}if(typeof f!==void 0&&(f===!1||f instanceof Ee.default))return ho(s,u,f,n,l.$name)}}let o;if(a.length===1){let s=a[0];o={[s]:r[s]}}else a.length>1?o=ee(r,a,this.fieldsHasDotNotation):o={};return[void 0,o]})}validateVariable(t){if(this.isObject)throw new Error("Object compiled cannot be used to validate a variable, use regular compiled schema!");this.isObject=!0;let r=this.validateObject({variable:t});return this.isObject=!1,r[1]=r[1].variable,r}validateVariableAsync(t){return w(this,null,function*(){if(this.isObject)throw new Error("Object compiled cannot be used to validate a variable, use regular compiled schema!");this.isObject=!0;let r=yield this.validateObjectAsync({variable:t});return this.isObject=!1,r[1]=r[1].variable,r})}validate(t){return this.isObject?this.validateObject(t):this.validateVariable(t)}validateAsync(t){return w(this,null,function*(){return this.isObject?this.validateObjectAsync(t):this.validateVariableAsync(t)})}}});var bo={};ut(bo,{AttemptError:()=>W,SuperKeys:()=>ae,default:()=>tf});var xe,re,M,Pe,W,ae,he,tf,go=i(()=>{"use strict";xe=U(Ne()),re=U(ht());ke();at();M=U(it()),Pe=U(xo());yo();Fe();W=class extends Error{constructor(r){super(r.message);this.name="AttemptError",this.error=r}static instanceOf(r){return r instanceof W}},ae=Object.freeze({Fields:["*","$","$include"],Rules:["$name","$skip","$error","$errors"]}),he=class{constructor(){this.validators={};this.config={useStartCaseInErrors:!0}}static getGlobalValidators(){return re.default}static getGlobalValidatorsList(){return Object.keys(this.getGlobalValidators())}static addGlobalValidator(t){if(typeof t=="object"&&!Array.isArray(t))t.error||(t.error=`:param failed {${t.name}} validation.`),re.default[t.name]=t,Object.defineProperty(t.validator,"name",{value:t.name});else throw new TypeError("addGlobalValidator argument must be an object.");return this}static addGlobalValidators(t){if(typeof t=="object"&&(t=Object.values(t)),Array.isArray(t))for(let r of t)he.addGlobalValidator(r);else throw new TypeError("addGlobalValidators argument must be an array or an object");return this}useStartCaseInErrors(t=!0){return this.config.useStartCaseInErrors=t,this}addValidator(t){if(typeof t=="object"&&!Array.isArray(t))t.error||(t.error=`:param failed {${t.name}} validation.`),this.validators[t.name]=t;else throw new TypeError("addValidator argument must be an object.");return this}addValidators(t){if(typeof t=="object"&&(t=Object.values(t)),Array.isArray(t))for(let r of t)this.addValidator(r);else throw new TypeError("addValidators argument must be an array or an object");return this}static validate(t,r){return new this().validate(t,r)}static validateAsync(t,r){return new this().validateAsync(t,r)}validate(t,r,a=!1){if(r instanceof F)return r.validateObject(t);let o={validated:{},jobs:[],keysToBeValidated:[],includeKeys:[]},s={};(r.hasOwnProperty("*")||r.hasOwnProperty("$"))&&(s=r["*"]||r.$,typeof s=="string"&&(s=(0,xe.default)(s)));let l=V({},t),u=[];if(r.hasOwnProperty("$include")&&(u=r.$include,!Array.isArray(u)))throw new Error("$include has to be an array!");let n=Object.keys(r);n=n.filter(f=>!ae.Fields.includes(f));for(let f of n){let d=r[f];typeof d=="string"?d=(0,xe.default)(d):Array.isArray(d)&&(d=te(d));let h=!1;if(d.hasOwnProperty("$skip")&&(h=d.$skip,typeof h=="function"&&(h=h(l[f])),typeof h!="boolean"))throw new Error(`$skip value or resolved function value must be a BOOLEAN in RuleFor: (${f})`);if(h)n=n.filter(R=>R!==f);else{let R=!1;if(d.hasOwnProperty("$name")&&(R=d.$name,typeof R!="string"))throw new Error(`$name must be a string in RuleFor: (${f})`);let b;if(d.hasOwnProperty("$error")&&(b=d.$error,!b||typeof b!="string"&&typeof b!="function"))throw new Error(`$error value must be a STRING or FUNCTION in RuleFor: (${f})`);let c;if(d.hasOwnProperty("$errors")&&(c=d.$errors,!c||typeof c!="object"))throw new Error(`$errors value must be an OBJECT in RuleFor: (${f})`);d=V(V({},s),lo(d,ae.Rules));for(let p of Object.keys(d)){if(!this.validators.hasOwnProperty(p)&&!re.default.hasOwnProperty(p))throw new Error(`Validator: {${p}} does not exists but defined in rules`);let g=this.validators[p]||re.default[p];if(!a&&g.isAsync)throw new Error(`Validator: {${p}} is async, use async method instead.`);let O=d[p],A=T(l,f);if(a)o.jobs.push({$name:R,rule:f,validator:g,validatorName:p,validatorOption:O,$error:b,$errors:c});else{let m=!1;try{m=g.validator(A,O,{error:(x,y)=>new M.default(x,y),modifier:new Pe.default(l,f,R),abolish:this})}catch(x){return[{code:"default",key:f,type:"internal",validator:p,message:x.message,data:x.stack},{}]}if(m===!1||m instanceof M.default){let x,y=null,v="default";if(m instanceof M.default&&(x=m.message,y=m.data,v=m.code),b&&(typeof b=="function"?x=b({code:v,validator:p,data:y,value:A}):x=b),c&&c[p]){let Ie=c[p];typeof Ie=="function"?x=Ie({code:v,data:y,validator:p,value:A}):x=Ie}let j=typeof O=="string"||typeof O=="number"||Array.isArray(O);return x=(x||g.error).replace(":param",R||Q(f,this)),j&&(x=x.replace(":option",String(O))),[{code:v,key:f,type:"validator",validator:p,message:x,data:y},{}]}}}}}return a?(o.validated=l,o.keysToBeValidated=n,o.includeKeys=u,o):(l=ee(l,n.concat(u)),[void 0,l])}validateAsync(t,r){if(r instanceof F)return r.validateObjectAsync(t);let a=this.validate(t,r,!0),{validated:o,jobs:s,keysToBeValidated:l,includeKeys:u}=a;return new Promise(n=>w(this,null,function*(){for(let f of s){let{$name:d,rule:h,validator:R,validatorName:b,validatorOption:c,$error:p,$errors:g}=f,O=T(o,h),A=!1;try{A=yield R.validator(O,c,{error:(m,x)=>new M.default(m,x),modifier:new Pe.default(o,h,d),abolish:this})}catch(m){return n([{code:"default",key:h,type:"internal",validator:b,message:m.message,data:m.stack},{}])}if(A===!1||A instanceof M.default){let m,x=null,y="default";if(A instanceof M.default&&(m=A.message,x=A.data,y=A.code),p&&(typeof p=="function"?m=p({code:y,validator:b,data:x,value:O}):m=p),g&&g[b]){let j=g[b];typeof j=="function"?m=j({code:y,data:x,validator:b,value:O}):m=j}return m=(m||R.error).replace(":param",d||Q(h,this)),(typeof c=="string"||typeof c=="number")&&(m=m.replace(":option",String(c))),n([{code:y,key:h,type:"validator",validator:b,message:m,data:x},{}])}}return n([void 0,ee(o,l.concat(u))])}))}check(t,r){if(r instanceof F)return r.validateVariable(t);let[a,o]=this.validate({variable:t},{variable:r,$include:["variable"]});return[a,o==null?void 0:o.variable]}static check(t,r){return new this().check(t,r)}checkAsync(t,r){return w(this,null,function*(){if(r instanceof F)return r.validateVariableAsync(t);let[a,o]=yield this.validateAsync({variable:t},{variable:r,$include:["variable"]});return[a,o==null?void 0:o.variable]})}static checkAsync(t,r){return new this().checkAsync(t,r)}attempt(t,r){let a=this.check(t,r);if(a[0])throw new W(a[0]);return a[1]}static attempt(t,r,a){return new this().attempt(t,r)}attemptAsync(t,r){return w(this,null,function*(){let a=yield this.checkAsync(t,r);if(a[0])throw new W(a[0]);return a[1]})}static attemptAsync(t,r){return w(this,null,function*(){return new this().attemptAsync(t,r)})}test(t,r){return!this.check(t,r)[0]}static test(t,r){return new this().test(t,r)}testAsync(t,r){return w(this,null,function*(){return!(yield this.checkAsync(t,r))[0]})}static testAsync(t,r){return new this().testAsync(t,r)}static compileObject(t,r){let a=new(r||this),o=new F,s,l=[];for(let[u,n]of Object.entries(t))["*","$"].includes(u)?(s=n,typeof s=="string"&&(s=(0,xe.default)(s))):u==="$include"&&(l=n);for(let[u,n]of Object.entries(t)){if(ae.Fields.includes(u))continue;let f={validators:[]},d=n;typeof n=="string"?d=(0,xe.default)(n):Array.isArray(n)&&(d=te(n)),s&&(d=V(V({},s),d));let h,R={};for(let[c,p]of Object.entries(d))!ae.Rules.includes(c)||(c==="$name"?(se(p,["string"],"$name"),f.$name=p):a.config.useStartCaseInErrors&&(f.$name=Q(c)),c==="$skip"?(se(p,["boolean","function"],"$skip"),f.$skip=p):c==="$error"?(se(p,["string","function"],"$error"),h=p):c==="$errors"&&(se(p,["object"],"$errors"),R=p));let b=new Pe.default({},u).flagNoData();for(let[c,p]of Object.entries(d)){if(ae.Rules.includes(c))continue;let g=a.validators[c]||re.default[c];if(!g)throw new Error(`Validator ${c} not found`);g.isAsync&&(o.async=!0);let O=typeof p=="string"||typeof p=="number"||typeof p=="boolean"||Array.isArray(p),A={abolish:a,modifier:b,error:(v,j)=>new M.default(v,j)};g.error||(g.error=`:param failed {${g.name}} validation.`);let m=g.error,x;if(h&&(typeof h=="string"?m=h:typeof h=="function"&&(x=h)),R&&R[c]){let v=R[c];typeof v=="string"?m=v:typeof v=="function"&&(x=v)}m.includes(":param")&&(m=m.replace(/:param/g,f.$name||u));let y={name:c,option:p,error:m,async:g.isAsync===!0,func:(v,j)=>(A.modifier.hasData||A.modifier.setData(j),g.validator(v,p,A))};x&&(y.errorFn=x),O&&(y.optionString=String(p),y.error=y.error.replace(/:option/g,y.optionString)),Object.defineProperty(y.func,"name",{value:`Wrapped(${c})`}),f.validators.push(y)}o.data[u]=f}return Object.keys(o.data).forEach(u=>{o.fields.includes(u)||o.fields.push(u)}),l.forEach(u=>{o.fields.includes(u)||o.fields.push(u)}),o.includedFields=l,o.fieldsHasDotNotation=o.fields.some(L),o}static compile(t){let r=this.compileObject({variable:t,$include:["variable"]});return r.isObject=!1,r}},tf=he});var of=ie(C=>{var rf=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(C,"__esModule",{value:!0});C.Schema=C.Rule=C.Abolish=void 0;var af=rf((go(),pt(bo)));C.Abolish=af.default;var Ro=(at(),pt(po));Object.defineProperty(C,"Rule",{enumerable:!0,get:function(){return Ro.Rule}});Object.defineProperty(C,"Schema",{enumerable:!0,get:function(){return Ro.Schema}})});return of();})();
"use strict";var AbolishBrowser=(()=>{var Ao=Object.create;var oe=Object.defineProperty;var vo=Object.getOwnPropertyDescriptor;var Oo=Object.getOwnPropertyNames,nt=Object.getOwnPropertySymbols,Vo=Object.getPrototypeOf,lt=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable;var ft=(e,t,r)=>t in e?oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t)=>{for(var r in t||(t={}))lt.call(t,r)&&ft(e,r,t[r]);if(nt)for(var r of nt(t))wo.call(t,r)&&ft(e,r,t[r]);return e};var i=(e,t)=>()=>(e&&(t=e(e=0)),t);var ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ut=(e,t)=>{for(var r in t)oe(e,r,{get:t[r],enumerable:!0})},dt=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Oo(t))!lt.call(e,o)&&o!==r&&oe(e,o,{get:()=>t[o],enumerable:!(a=vo(t,o))||a.enumerable});return e};var U=(e,t,r)=>(r=e!=null?Ao(Vo(e)):{},dt(t||!e||!e.__esModule?oe(r,"default",{value:e,enumerable:!0}):r,e)),pt=e=>dt(oe({},"__esModule",{value:!0}),e);var w=(e,t,r)=>new Promise((a,o)=>{var s=n=>{try{u(r.next(n))}catch(f){o(f)}},l=n=>{try{u(r.throw(n))}catch(f){o(f)}},u=n=>n.done?a(n.value):Promise.resolve(n.value).then(s,l);u((r=r.apply(e,t)).next())});var Ne=ie((nf,mt)=>{"use strict";var So=new RegExp(/([!a-zA-Z_*0-9]+)/g),Co=new RegExp(/([a-zA-Z_*0-9]+:[a-zA-Z_0-9]+)/g),jo=new RegExp(/([a-zA-Z_*0-9]+:"[^"]+")/g),_o=new RegExp(/([a-zA-Z_*0-9]+:'[^']+')/g),$o=new RegExp(/([a-zA-Z_*0-9]+:`[^`]+`)/g),To=e=>{let t=e.split("|"),r={};for(let a=0;a<t.length;a++){let o=t[a];if(o.match(_o)||o.match(jo)||o.match($o)){let[s,...l]=o.split(":"),u=l.join(":");u=u.substring(1),u=u.substring(0,l.length-1),r[s]=u}else if(o.match(Co)){let[s,l]=o.split(":");isNaN(l)||(l=Number(l)),r[s]=l}else if(o.match(So)){let s=o,l=!0;s.substring(0,1)==="!"&&(s=s.substring(1),l=!1),r[s]=l}}return r};mt.exports=To});function se(e,t,r="Options"){if(!De(e,t))throw new TypeError(`${r} must be typeof [${t}], but [${typeof e}] was given.`);return!0}function De(e,t){if(typeof t=="string")return t==="array"&&Array.isArray(e)?!0:typeof e===t;{let r=t.includes("array");return!r&&t.includes(typeof e)?!0:r&&(t.includes(typeof e)||Array.isArray(e))}}var Fe=i(()=>{"use strict"});var ht=ie((ct,xt)=>{"use strict";Fe();var S={default:{name:"default",description:"Set default value if original value is undefined or null",validator(e,t,{modifier:r}){return e==null&&r.setThis(t),!0}},required:{name:"required",description:"Value is required",error:":param is required.",validator:(e,t)=>t?typeof e=="undefined"||e===null?!1:typeof e=="string"||Array.isArray(e)?e.length>0:!0:!0},typeof:{name:"typeof",description:"Value is typeof :option",error:":param is not typeof :option",validator:function(t,r){return r===!1?!0:(typeof r=="string"&&r.includes(",")&&(r=r.split(",")),De(t,r))}},exact:{name:"exact",error:":param failed exact validator",description:"Value is === :option",validator:(e,t)=>e===t},min:{name:"min",error:":param is too small. (Min. :option)",description:"Number: Value is >= :option",validator:(e,t,r)=>{let a=isNaN(e);return typeof e=="string"&&a||Array.isArray(e)?S.minLength.validator(e,t,r):a?!1:Number(e)>=Number(t)}},max:{name:"max",error:":param is too big. (Max. :option)",description:"Number: Value is <= :option",validator:(e,t,r)=>{let a=isNaN(e);return typeof e=="string"&&a||Array.isArray(e)?S.maxLength.validator(e,t,r):a?!1:Number(e)<=Number(t)}},minLength:{name:"minLength",error:":param is too short. (Min. :option characters)",description:"Value length is >= :option",validator:(e,t,{error:r})=>typeof e=="string"?e.trim().length>=Number(t):Array.isArray(e)?e.length>=Number(t)?!0:r(`:param length is too short. (Min: ${t})`):!1},maxLength:{name:"maxLength",error:":param is too long. (Max. :option characters)",description:"Value length is <= :option",validator:(e,t,{error:r})=>typeof e=="string"?e.trim().length<=Number(t):Array.isArray(e)?e.length<=Number(t)?!0:r(`:param length is too long. (Max: ${t})`):!1},size:{name:"size",error:":param must be of size: [:option]",description:"Check the size of a String, Array, or Object",validator:(e,t,{error:r})=>{let a;if(typeof e=="string"||Array.isArray(e))a=e.length;else if(typeof e=="object")try{a=Object.keys(e).length}catch(o){return r(o.message)}return a===void 0?!1:Array.isArray(t)?t.includes(a):a===Number(t)}},object:{name:"object",validator:(e,t,{error:r,modifier:a,abolish:o})=>{if(!e||typeof e!="object")return r(":param must be an object.");let[s,l]=o.validate(e,t);if(s)return r(s.message,s);a.setThis(l)},description:["Object: Value is an object"]},objectAsync:{name:"objectAsync",isAsync:!0,validator:(s,l,u)=>w(ct,[s,l,u],function*(e,t,{error:r,modifier:a,abolish:o}){if(!e||typeof e!="object")return r(":param must be an object.");let[n,f]=yield o.validateAsync(e,t);if(n)return r(n.message,n);a.setThis(f)})},$inline:{name:"$inline",error:":param failed inline validation.",validator:(e,t,r)=>t(e,r),description:"Register a custom validation function inline."}};S.type=Object.assign({},S.typeof);S.type.name="type";S.type.error=":param is not of type :option";S.type.description="Alias: typeof";for(let e of Object.keys(S)){let t=S[e];Object.defineProperty(t.validator,"name",{value:t.name})}xt.exports=S});var ko,yt,bt=i(()=>{ko=typeof global=="object"&&global&&global.Object===Object&&global,yt=ko});var Eo,Po,G,ye=i(()=>{bt();Eo=typeof self=="object"&&self&&self.Object===Object&&self,Po=yt||Eo||Function("return this")(),G=Po});var Io,_,be=i(()=>{ye();Io=G.Symbol,_=Io});function Fo(e){var t=No.call(e,ne),r=e[ne];try{e[ne]=void 0;var a=!0}catch(s){}var o=Do.call(e);return a&&(t?e[ne]=r:delete e[ne]),o}var gt,No,Do,ne,Rt,At=i(()=>{be();gt=Object.prototype,No=gt.hasOwnProperty,Do=gt.toString,ne=_?_.toStringTag:void 0;Rt=Fo});function Lo(e){return zo.call(e)}var Mo,zo,vt,Ot=i(()=>{Mo=Object.prototype,zo=Mo.toString;vt=Lo});function Go(e){return e==null?e===void 0?Uo:Wo:Vt&&Vt in Object(e)?Rt(e):vt(e)}var Wo,Uo,Vt,H,ge=i(()=>{be();At();Ot();Wo="[object Null]",Uo="[object Undefined]",Vt=_?_.toStringTag:void 0;H=Go});function Ho(e){return e!=null&&typeof e=="object"}var B,Re=i(()=>{B=Ho});function Ko(e){return typeof e=="symbol"||B(e)&&H(e)==Bo}var Bo,K,Ae=i(()=>{ge();Re();Bo="[object Symbol]";K=Ko});function Zo(e,t){for(var r=-1,a=e==null?0:e.length,o=Array(a);++r<a;)o[r]=t(e[r],r,e);return o}var wt,St=i(()=>{wt=Zo});var qo,k,fe=i(()=>{qo=Array.isArray,k=qo});function _t(e){if(typeof e=="string")return e;if(k(e))return wt(e,_t)+"";if(K(e))return jt?jt.call(e):"";var t=e+"";return t=="0"&&1/e==-Jo?"-0":t}var Jo,Ct,jt,$t,Tt=i(()=>{be();St();fe();Ae();Jo=1/0,Ct=_?_.prototype:void 0,jt=Ct?Ct.toString:void 0;$t=_t});function Yo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var z,ve=i(()=>{z=Yo});function ri(e){if(!z(e))return!1;var t=H(e);return t==Qo||t==ei||t==Xo||t==ti}var Xo,Qo,ei,ti,kt,Et=i(()=>{ge();ve();Xo="[object AsyncFunction]",Qo="[object Function]",ei="[object GeneratorFunction]",ti="[object Proxy]";kt=ri});var ai,Oe,Pt=i(()=>{ye();ai=G["__core-js_shared__"],Oe=ai});function oi(e){return!!It&&It in e}var It,Nt,Dt=i(()=>{Pt();It=function(){var e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();Nt=oi});function ni(e){if(e!=null){try{return si.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var ii,si,Ft,Mt=i(()=>{ii=Function.prototype,si=ii.toString;Ft=ni});function xi(e){if(!z(e)||Nt(e))return!1;var t=kt(e)?ci:li;return t.test(Ft(e))}var fi,li,ui,di,pi,mi,ci,zt,Lt=i(()=>{Et();Dt();ve();Mt();fi=/[\\^$.*+?()[\]{}|]/g,li=/^\[object .+?Constructor\]$/,ui=Function.prototype,di=Object.prototype,pi=ui.toString,mi=di.hasOwnProperty,ci=RegExp("^"+pi.call(mi).replace(fi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");zt=xi});function hi(e,t){return e==null?void 0:e[t]}var Wt,Ut=i(()=>{Wt=hi});function yi(e,t){var r=Wt(e,t);return zt(r)?r:void 0}var Z,Ve=i(()=>{Lt();Ut();Z=yi});var bi,Me,Gt=i(()=>{Ve();bi=function(){try{var e=Z(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),Me=bi});function Ai(e,t){var r=typeof e;return t=t==null?gi:t,!!t&&(r=="number"||r!="symbol"&&Ri.test(e))&&e>-1&&e%1==0&&e<t}var gi,Ri,we,ze=i(()=>{gi=9007199254740991,Ri=/^(?:0|[1-9]\d*)$/;we=Ai});function vi(e,t,r){t=="__proto__"&&Me?Me(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Ht,Bt=i(()=>{Gt();Ht=vi});function Oi(e,t){return e===t||e!==e&&t!==t}var Se,Le=i(()=>{Se=Oi});function Si(e,t,r){var a=e[t];(!(wi.call(e,t)&&Se(a,r))||r===void 0&&!(t in e))&&Ht(e,t,r)}var Vi,wi,Kt,Zt=i(()=>{Bt();Le();Vi=Object.prototype,wi=Vi.hasOwnProperty;Kt=Si});function ji(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ci}var Ci,qt,Jt=i(()=>{Ci=9007199254740991;qt=ji});function $i(e){return B(e)&&H(e)==_i}var _i,We,Yt=i(()=>{ge();Re();_i="[object Arguments]";We=$i});var Xt,Ti,ki,Ei,Qt,er=i(()=>{Yt();Re();Xt=Object.prototype,Ti=Xt.hasOwnProperty,ki=Xt.propertyIsEnumerable,Ei=We(function(){return arguments}())?We:function(e){return B(e)&&Ti.call(e,"callee")&&!ki.call(e,"callee")},Qt=Ei});function Ni(e,t){if(k(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||K(e)?!0:Ii.test(e)||!Pi.test(e)||t!=null&&e in Object(t)}var Pi,Ii,tr,rr=i(()=>{fe();Ae();Pi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ii=/^\w*$/;tr=Ni});var Di,$,le=i(()=>{Ve();Di=Z(Object,"create"),$=Di});function Fi(){this.__data__=$?$(null):{},this.size=0}var ar,or=i(()=>{le();ar=Fi});function Mi(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ir,sr=i(()=>{ir=Mi});function Ui(e){var t=this.__data__;if($){var r=t[e];return r===zi?void 0:r}return Wi.call(t,e)?t[e]:void 0}var zi,Li,Wi,nr,fr=i(()=>{le();zi="__lodash_hash_undefined__",Li=Object.prototype,Wi=Li.hasOwnProperty;nr=Ui});function Bi(e){var t=this.__data__;return $?t[e]!==void 0:Hi.call(t,e)}var Gi,Hi,lr,ur=i(()=>{le();Gi=Object.prototype,Hi=Gi.hasOwnProperty;lr=Bi});function Zi(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$&&t===void 0?Ki:t,this}var Ki,dr,pr=i(()=>{le();Ki="__lodash_hash_undefined__";dr=Zi});function q(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}var Ue,mr=i(()=>{or();sr();fr();ur();pr();q.prototype.clear=ar;q.prototype.delete=ir;q.prototype.get=nr;q.prototype.has=lr;q.prototype.set=dr;Ue=q});function qi(){this.__data__=[],this.size=0}var cr,xr=i(()=>{cr=qi});function Ji(e,t){for(var r=e.length;r--;)if(Se(e[r][0],t))return r;return-1}var E,ue=i(()=>{Le();E=Ji});function Qi(e){var t=this.__data__,r=E(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():Xi.call(t,r,1),--this.size,!0}var Yi,Xi,hr,yr=i(()=>{ue();Yi=Array.prototype,Xi=Yi.splice;hr=Qi});function es(e){var t=this.__data__,r=E(t,e);return r<0?void 0:t[r][1]}var br,gr=i(()=>{ue();br=es});function ts(e){return E(this.__data__,e)>-1}var Rr,Ar=i(()=>{ue();Rr=ts});function rs(e,t){var r=this.__data__,a=E(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var vr,Or=i(()=>{ue();vr=rs});function J(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}var Vr,wr=i(()=>{xr();yr();gr();Ar();Or();J.prototype.clear=cr;J.prototype.delete=hr;J.prototype.get=br;J.prototype.has=Rr;J.prototype.set=vr;Vr=J});var as,Sr,Cr=i(()=>{Ve();ye();as=Z(G,"Map"),Sr=as});function os(){this.size=0,this.__data__={hash:new Ue,map:new(Sr||Vr),string:new Ue}}var jr,_r=i(()=>{mr();wr();Cr();jr=os});function is(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var $r,Tr=i(()=>{$r=is});function ss(e,t){var r=e.__data__;return $r(t)?r[typeof t=="string"?"string":"hash"]:r.map}var P,de=i(()=>{Tr();P=ss});function ns(e){var t=P(this,e).delete(e);return this.size-=t?1:0,t}var kr,Er=i(()=>{de();kr=ns});function fs(e){return P(this,e).get(e)}var Pr,Ir=i(()=>{de();Pr=fs});function ls(e){return P(this,e).has(e)}var Nr,Dr=i(()=>{de();Nr=ls});function us(e,t){var r=P(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var Fr,Mr=i(()=>{de();Fr=us});function Y(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}var Ge,zr=i(()=>{_r();Er();Ir();Dr();Mr();Y.prototype.clear=jr;Y.prototype.delete=kr;Y.prototype.get=Pr;Y.prototype.has=Nr;Y.prototype.set=Fr;Ge=Y});function He(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ds);var r=function(){var a=arguments,o=t?t.apply(this,a):a[0],s=r.cache;if(s.has(o))return s.get(o);var l=e.apply(this,a);return r.cache=s.set(o,l)||s,l};return r.cache=new(He.Cache||Ge),r}var ds,Lr,Wr=i(()=>{zr();ds="Expected a function";He.Cache=Ge;Lr=He});function ms(e){var t=Lr(e,function(a){return r.size===ps&&r.clear(),a}),r=t.cache;return t}var ps,Ur,Gr=i(()=>{Wr();ps=500;Ur=ms});var cs,xs,hs,Hr,Br=i(()=>{Gr();cs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xs=/\\(\\)?/g,hs=Ur(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(cs,function(r,a,o,s){t.push(o?s.replace(xs,"$1"):a||r)}),t}),Hr=hs});function ys(e){return e==null?"":$t(e)}var I,pe=i(()=>{Tt();I=ys});function bs(e,t){return k(e)?e:tr(e,t)?[e]:Hr(I(e))}var N,me=i(()=>{fe();rr();Br();pe();N=bs});function Rs(e){if(typeof e=="string"||K(e))return e;var t=e+"";return t=="0"&&1/e==-gs?"-0":t}var gs,D,ce=i(()=>{Ae();gs=1/0;D=Rs});function As(e,t){t=N(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[D(t[r++])];return r&&r==a?e:void 0}var Ce,Be=i(()=>{me();ce();Ce=As});function vs(e,t,r){var a=e==null?void 0:Ce(e,t);return a===void 0?r:a}var Ke,Kr=i(()=>{Be();Ke=vs});function Os(e,t,r){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(o);++a<o;)s[a]=e[a+t];return s}var je,Ze=i(()=>{je=Os});function Vs(e,t,r){var a=e.length;return r=r===void 0?a:r,!t&&r>=a?e:je(e,t,r)}var Zr,qr=i(()=>{Ze();Zr=Vs});function Es(e){return ks.test(e)}var ws,Ss,Cs,js,_s,$s,Ts,ks,_e,qe=i(()=>{ws="\\ud800-\\udfff",Ss="\\u0300-\\u036f",Cs="\\ufe20-\\ufe2f",js="\\u20d0-\\u20ff",_s=Ss+Cs+js,$s="\\ufe0e\\ufe0f",Ts="\\u200d",ks=RegExp("["+Ts+ws+_s+$s+"]");_e=Es});function Ps(e){return e.split("")}var Jr,Yr=i(()=>{Jr=Ps});function Ks(e){return e.match(Bs)||[]}var Xr,Is,Ns,Ds,Fs,Ms,zs,Je,Ye,Ls,Qr,ea,ta,Ws,ra,aa,Us,Gs,Hs,Bs,oa,ia=i(()=>{Xr="\\ud800-\\udfff",Is="\\u0300-\\u036f",Ns="\\ufe20-\\ufe2f",Ds="\\u20d0-\\u20ff",Fs=Is+Ns+Ds,Ms="\\ufe0e\\ufe0f",zs="["+Xr+"]",Je="["+Fs+"]",Ye="\\ud83c[\\udffb-\\udfff]",Ls="(?:"+Je+"|"+Ye+")",Qr="[^"+Xr+"]",ea="(?:\\ud83c[\\udde6-\\uddff]){2}",ta="[\\ud800-\\udbff][\\udc00-\\udfff]",Ws="\\u200d",ra=Ls+"?",aa="["+Ms+"]?",Us="(?:"+Ws+"(?:"+[Qr,ea,ta].join("|")+")"+aa+ra+")*",Gs=aa+ra+Us,Hs="(?:"+[Qr+Je+"?",Je,ea,ta,zs].join("|")+")",Bs=RegExp(Ye+"(?="+Ye+")|"+Hs+Gs,"g");oa=Ks});function Zs(e){return _e(e)?oa(e):Jr(e)}var sa,na=i(()=>{Yr();qe();ia();sa=Zs});function qs(e){return function(t){t=I(t);var r=_e(t)?sa(t):void 0,a=r?r[0]:t.charAt(0),o=r?Zr(r,1).join(""):t.slice(1);return a[e]()+o}}var fa,la=i(()=>{qr();qe();na();pe();fa=qs});var Js,ua,da=i(()=>{la();Js=fa("toUpperCase"),ua=Js});function Ys(e,t,r,a){var o=-1,s=e==null?0:e.length;for(a&&s&&(r=e[++o]);++o<s;)r=t(r,e[o],o,e);return r}var pa,ma=i(()=>{pa=Ys});function Xs(e){return function(t){return e==null?void 0:e[t]}}var ca,xa=i(()=>{ca=Xs});var Qs,en,ha,ya=i(()=>{xa();Qs={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},en=ca(Qs),ha=en});function ln(e){return e=I(e),e&&e.replace(tn,ha).replace(fn,"")}var tn,rn,an,on,sn,nn,fn,ba,ga=i(()=>{ya();pe();tn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rn="\\u0300-\\u036f",an="\\ufe20-\\ufe2f",on="\\u20d0-\\u20ff",sn=rn+an+on,nn="["+sn+"]",fn=RegExp(nn,"g");ba=ln});function dn(e){return e.match(un)||[]}var un,Ra,Aa=i(()=>{un=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;Ra=dn});function mn(e){return pn.test(e)}var pn,va,Oa=i(()=>{pn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;va=mn});function Nn(e){return e.match(In)||[]}var ja,cn,xn,hn,yn,_a,$a,bn,gn,Rn,An,Ta,vn,ka,Ea,Va,On,Pa,Vn,Ia,Na,wn,Sn,Cn,Da,Fa,X,jn,wa,_n,Sa,Ca,Ma,za,$n,Tn,kn,En,Pn,In,La,Wa=i(()=>{ja="\\ud800-\\udfff",cn="\\u0300-\\u036f",xn="\\ufe20-\\ufe2f",hn="\\u20d0-\\u20ff",yn=cn+xn+hn,_a="\\u2700-\\u27bf",$a="a-z\\xdf-\\xf6\\xf8-\\xff",bn="\\xac\\xb1\\xd7\\xf7",gn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rn="\\u2000-\\u206f",An=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ta="A-Z\\xc0-\\xd6\\xd8-\\xde",vn="\\ufe0e\\ufe0f",ka=bn+gn+Rn+An,Ea="['\u2019]",Va="["+ka+"]",On="["+yn+"]",Pa="\\d+",Vn="["+_a+"]",Ia="["+$a+"]",Na="[^"+ja+ka+Pa+_a+$a+Ta+"]",wn="\\ud83c[\\udffb-\\udfff]",Sn="(?:"+On+"|"+wn+")",Cn="[^"+ja+"]",Da="(?:\\ud83c[\\udde6-\\uddff]){2}",Fa="[\\ud800-\\udbff][\\udc00-\\udfff]",X="["+Ta+"]",jn="\\u200d",wa="(?:"+Ia+"|"+Na+")",_n="(?:"+X+"|"+Na+")",Sa="(?:"+Ea+"(?:d|ll|m|re|s|t|ve))?",Ca="(?:"+Ea+"(?:D|LL|M|RE|S|T|VE))?",Ma=Sn+"?",za="["+vn+"]?",$n="(?:"+jn+"(?:"+[Cn,Da,Fa].join("|")+")"+za+Ma+")*",Tn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",En=za+Ma+$n,Pn="(?:"+[Vn,Da,Fa].join("|")+")"+En,In=RegExp([X+"?"+Ia+"+"+Sa+"(?="+[Va,X,"$"].join("|")+")",_n+"+"+Ca+"(?="+[Va,X+wa,"$"].join("|")+")",X+"?"+wa+"+"+Sa,X+"+"+Ca,kn,Tn,Pa,Pn].join("|"),"g");La=Nn});function Dn(e,t,r){return e=I(e),t=r?void 0:t,t===void 0?va(e)?La(e):Ra(e):e.match(t)||[]}var Ua,Ga=i(()=>{Aa();Oa();pe();Wa();Ua=Dn});function zn(e){return function(t){return pa(Ua(ba(t).replace(Mn,"")),e,"")}}var Fn,Mn,Ha,Ba=i(()=>{ma();ga();Ga();Fn="['\u2019]",Mn=RegExp(Fn,"g");Ha=zn});function Ln(e,t,r){t=N(t,e);for(var a=-1,o=t.length,s=!1;++a<o;){var l=D(t[a]);if(!(s=e!=null&&r(e,l)))break;e=e[l]}return s||++a!=o?s:(o=e==null?0:e.length,!!o&&qt(o)&&we(l,o)&&(k(e)||Qt(e)))}var Ka,Za=i(()=>{me();er();fe();ze();Jt();ce();Ka=Ln});function Wn(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var qa,Ja=i(()=>{qa=Wn});function Hn(e,t){return e!=null&&Gn.call(e,t)}var Un,Gn,Ya,Xa=i(()=>{Un=Object.prototype,Gn=Un.hasOwnProperty;Ya=Hn});function Bn(e,t){return e!=null&&Ka(e,t,Ya)}var Xe,Qa=i(()=>{Xa();Za();Xe=Bn});function Kn(e,t){return t.length<2?e:Ce(e,je(t,0,-1))}var eo,to=i(()=>{Be();Ze();eo=Kn});function Zn(e,t){return t=N(t,e),e=eo(e,t),e==null||delete e[D(qa(t))]}var ro,ao=i(()=>{me();Ja();to();ce();ro=Zn});function qn(e,t,r,a){if(!z(e))return e;t=N(t,e);for(var o=-1,s=t.length,l=s-1,u=e;u!=null&&++o<s;){var n=D(t[o]),f=r;if(n==="__proto__"||n==="constructor"||n==="prototype")return e;if(o!=l){var d=u[n];f=a?a(d,n,u):void 0,f===void 0&&(f=z(d)?d:we(t[o+1])?[]:{})}Kt(u,n,f),u=u[n]}return e}var oo,io=i(()=>{Zt();me();ze();ve();ce();oo=qn});function Jn(e,t,r){return e==null?e:oo(e,t,r)}var Qe,so=i(()=>{io();Qe=Jn});var Yn,$e,no=i(()=>{Ba();da();Yn=Ha(function(e,t,r){return e+(r?" ":"")+ua(t)}),$e=Yn});function Xn(e,t){return e==null?!0:ro(e,t)}var Te,fo=i(()=>{ao();Te=Xn});var et=i(()=>{Kr();Qa();so();no();fo();});function Q(e,t){return t?t.config.useStartCaseInErrors?$e(e):e:$e(e)}function ee(e,t,r){let a={};if(r===void 0?t.some(L):r)for(let s of t)a[s]=T(e,s);else for(let s of t)a[s]=e[s];return a}function lo(e,t){let r={};for(let a in e)t.includes(a)||(r[a]=e[a]);return r}function tt(e,t,r,a){return a===void 0&&L(t)?Qe(e,t,r):(e[t]=r,e)}function T(e,t,r){return r===void 0&&L(t)?Ke(e,t):e[t]}function L(e){return e.indexOf(".")!==-1}var ke=i(()=>{"use strict";et()});var po={};ut(po,{Rule:()=>te,RuleTyped:()=>Qn,Schema:()=>uo,SchemaTyped:()=>ef});function te(e){Array.isArray(e)||(e=[e]);let t={};for(let r of e)typeof r=="string"&&(r=(0,rt.default)(r)),t=V(V({},t),r);return t}function Qn(e){return te(e)}function uo(e){let t={};for(let r of Object.keys(e)){let a=e[r];r==="$include"||(typeof a=="string"?a=(0,rt.default)(a):Array.isArray(a)&&(a=te(a))),t[r]=a}return t}function ef(e){return uo(e)}var rt,at=i(()=>{"use strict";rt=U(Ne())});var it=ie((lp,mo)=>{"use strict";var ot=class{constructor(t,r){this.code="default";return this.message=t,r&&(this.data=r),this}setCode(t){return this.code=t,this}setData(t){return this.data=t,this}setMessage(t){return this.message=t,this}};mo.exports=ot});var xo=ie((pp,co)=>{"use strict";ke();et();var st=class{constructor(t,r,a=!1){this.$hasData=!0;return this.data=t,this.path=r,this.name=a,this.pathHasDotNotation=L(r),this}flagNoData(){return this.$hasData=!1,this}setData(t){return this.data=t,this.$hasData=!0,this}get hasData(){return this.$hasData}get(t){return T(this.data,t)}getThis(){return this.get(this.path)}has(t){return Xe(this.data,t)}set(t,r){return tt(this.data,t,r)}setThis(t){return tt(this.data,this.path,t,this.pathHasDotNotation)}unset(t){return Te(this.data,t)}unsetThis(){return Te(this.data,this.path)}getName(){return this.name||Q(this.path)}getNameRaw(){return this.name||this.path}};co.exports=st});function ho(e,t,r,a,o){let s=a.error,l=null,u="default",n=!1;return r instanceof Ee.default&&(n=!0,s=r.message,l=r.data,u=r.code),a.errorFn&&(n=!0,s=a.errorFn({code:u,data:l,validator:a.name,value:t})),n&&(s.includes(":param")&&(s=s.replace(":param",o||e)),a.optionString&&s.includes(":option")&&(s=s.replace(":option",a.optionString))),[{code:u,key:e,type:"validator",validator:a.name,message:s,data:l},{}]}var Ee,F,yo=i(()=>{"use strict";Ee=U(it());ke();F=class{constructor(){this.data={};this.fields=[];this.includedFields=[];this.fieldsHasDotNotation=!1;this.isObject=!0;this.async=!1}validateObject(t){if(!this.isObject)throw new Error("Variable compiled schema cannot be used to validate an object, use object compiled schema!");if(this.async)throw new Error("Rules contains an async validator, use validateObjectAsync instead!");let r=V({},t),a=this.fields;for(let s in this.data){let l=this.data[s],u=T(r,s,this.fieldsHasDotNotation);if(l.$skip){let n=l.$skip;if(typeof n=="function"&&(n=n(u,r)),n){this.includedFields.includes(s)||(a=a.filter(f=>f!==s));continue}}for(let n of l.validators){let f=!1;try{f=n.func(u,r)}catch(d){return[{code:"default",key:s,type:"internal",validator:n.name,message:d.message,data:d.stack},{}]}if(typeof f!==void 0&&(f===!1||f instanceof Ee.default))return ho(s,u,f,n,l.$name)}}let o;if(a.length===1){let s=a[0];o={[s]:r[s]}}else a.length>1?o=ee(r,a,this.fieldsHasDotNotation):o={};return[void 0,o]}validateObjectAsync(t){return w(this,null,function*(){if(!this.isObject)throw new Error("Variable compiled schema cannot be used to validate an object, use object compiled schema!");let r=V({},t),a=this.fields;for(let s in this.data){let l=this.data[s],u=T(r,s,this.fieldsHasDotNotation);if(l.$skip){let n=l.$skip;if(typeof n=="function"&&(n=n(u,r)),n){this.includedFields.includes(s)||(a=a.filter(f=>f!==s));continue}}for(let n of l.validators){let f=!1;try{n.async?f=yield n.func(u,r):f=n.func(u,r)}catch(d){return[{code:"default",key:s,type:"internal",validator:n.name,message:d.message,data:d.stack},{}]}if(typeof f!==void 0&&(f===!1||f instanceof Ee.default))return ho(s,u,f,n,l.$name)}}let o;if(a.length===1){let s=a[0];o={[s]:r[s]}}else a.length>1?o=ee(r,a,this.fieldsHasDotNotation):o={};return[void 0,o]})}validateVariable(t){if(this.isObject)throw new Error("Object compiled cannot be used to validate a variable, use regular compiled schema!");this.isObject=!0;let r=this.validateObject({variable:t});return this.isObject=!1,r[1]=r[1].variable,r}validateVariableAsync(t){return w(this,null,function*(){if(this.isObject)throw new Error("Object compiled cannot be used to validate a variable, use regular compiled schema!");this.isObject=!0;let r=yield this.validateObjectAsync({variable:t});return this.isObject=!1,r[1]=r[1].variable,r})}validate(t){return this.isObject?this.validateObject(t):this.validateVariable(t)}validateAsync(t){return w(this,null,function*(){return this.isObject?this.validateObjectAsync(t):this.validateVariableAsync(t)})}}});var bo={};ut(bo,{AttemptError:()=>W,SuperKeys:()=>ae,default:()=>tf});var xe,re,M,Pe,W,ae,he,tf,go=i(()=>{"use strict";xe=U(Ne()),re=U(ht());ke();at();M=U(it()),Pe=U(xo());yo();Fe();W=class extends Error{constructor(r){super(r.message);this.name="AttemptError",this.error=r}static instanceOf(r){return r instanceof W}},ae=Object.freeze({Fields:["*","$","$include"],Rules:["$name","$skip","$error","$errors"]}),he=class{constructor(){this.validators={};this.config={useStartCaseInErrors:!0}}static getGlobalValidators(){return re.default}static getGlobalValidatorsList(){return Object.keys(this.getGlobalValidators())}static addGlobalValidator(t){if(typeof t=="object"&&!Array.isArray(t))t.error||(t.error=`:param failed {${t.name}} validation.`),re.default[t.name]=t,Object.defineProperty(t.validator,"name",{value:t.name});else throw new TypeError("addGlobalValidator argument must be an object.");return this}static addGlobalValidators(t){if(typeof t=="object"&&(t=Object.values(t)),Array.isArray(t))for(let r of t)he.addGlobalValidator(r);else throw new TypeError("addGlobalValidators argument must be an array or an object");return this}useStartCaseInErrors(t=!0){return this.config.useStartCaseInErrors=t,this}addValidator(t){if(typeof t=="object"&&!Array.isArray(t))t.error||(t.error=`:param failed {${t.name}} validation.`),this.validators[t.name]=t;else throw new TypeError("addValidator argument must be an object.");return this}addValidators(t){if(typeof t=="object"&&(t=Object.values(t)),Array.isArray(t))for(let r of t)this.addValidator(r);else throw new TypeError("addValidators argument must be an array or an object");return this}static validate(t,r){return new this().validate(t,r)}static validateAsync(t,r){return new this().validateAsync(t,r)}validate(t,r,a=!1){if(r instanceof F)return r.validateObject(t);let o={validated:{},jobs:[],keysToBeValidated:[],includeKeys:[]},s={};(r.hasOwnProperty("*")||r.hasOwnProperty("$"))&&(s=r["*"]||r.$,typeof s=="string"&&(s=(0,xe.default)(s)));let l=V({},t),u=[];if(r.hasOwnProperty("$include")&&(u=r.$include,!Array.isArray(u)))throw new Error("$include has to be an array!");let n=Object.keys(r);n=n.filter(f=>!ae.Fields.includes(f));for(let f of n){let d=r[f];typeof d=="string"?d=(0,xe.default)(d):Array.isArray(d)&&(d=te(d));let h=!1;if(d.hasOwnProperty("$skip")&&(h=d.$skip,typeof h=="function"&&(h=h(l[f])),typeof h!="boolean"))throw new Error(`$skip value or resolved function value must be a BOOLEAN in RuleFor: (${f})`);if(h)n=n.filter(R=>R!==f);else{let R=!1;if(d.hasOwnProperty("$name")&&(R=d.$name,typeof R!="string"))throw new Error(`$name must be a string in RuleFor: (${f})`);let b;if(d.hasOwnProperty("$error")&&(b=d.$error,!b||typeof b!="string"&&typeof b!="function"))throw new Error(`$error value must be a STRING or FUNCTION in RuleFor: (${f})`);let c;if(d.hasOwnProperty("$errors")&&(c=d.$errors,!c||typeof c!="object"))throw new Error(`$errors value must be an OBJECT in RuleFor: (${f})`);d=V(V({},s),lo(d,ae.Rules));for(let p of Object.keys(d)){if(!this.validators.hasOwnProperty(p)&&!re.default.hasOwnProperty(p))throw new Error(`Validator: {${p}} does not exists but defined in rules`);let g=this.validators[p]||re.default[p];if(!a&&g.isAsync)throw new Error(`Validator: {${p}} is async, use async method instead.`);let O=d[p],A=T(l,f);if(a)o.jobs.push({$name:R,rule:f,validator:g,validatorName:p,validatorOption:O,$error:b,$errors:c});else{let m=!1;try{m=g.validator(A,O,{error:(x,y)=>new M.default(x,y),modifier:new Pe.default(l,f,R),abolish:this})}catch(x){return[{code:"default",key:f,type:"internal",validator:p,message:x.message,data:x.stack},{}]}if(m===!1||m instanceof M.default){let x,y=null,v="default";if(m instanceof M.default&&(x=m.message,y=m.data,v=m.code),b&&(typeof b=="function"?x=b({code:v,validator:p,data:y,value:A}):x=b),c&&c[p]){let Ie=c[p];typeof Ie=="function"?x=Ie({code:v,data:y,validator:p,value:A}):x=Ie}let j=typeof O=="string"||typeof O=="number"||Array.isArray(O);return x=(x||g.error).replace(":param",R||Q(f,this)),j&&(x=x.replace(":option",String(O))),[{code:v,key:f,type:"validator",validator:p,message:x,data:y},{}]}}}}}return a?(o.validated=l,o.keysToBeValidated=n,o.includeKeys=u,o):(l=ee(l,n.concat(u)),[void 0,l])}validateAsync(t,r){if(r instanceof F)return r.validateObjectAsync(t);let a=this.validate(t,r,!0),{validated:o,jobs:s,keysToBeValidated:l,includeKeys:u}=a;return new Promise(n=>w(this,null,function*(){for(let f of s){let{$name:d,rule:h,validator:R,validatorName:b,validatorOption:c,$error:p,$errors:g}=f,O=T(o,h),A=!1;try{A=yield R.validator(O,c,{error:(m,x)=>new M.default(m,x),modifier:new Pe.default(o,h,d),abolish:this})}catch(m){return n([{code:"default",key:h,type:"internal",validator:b,message:m.message,data:m.stack},{}])}if(A===!1||A instanceof M.default){let m,x=null,y="default";if(A instanceof M.default&&(m=A.message,x=A.data,y=A.code),p&&(typeof p=="function"?m=p({code:y,validator:b,data:x,value:O}):m=p),g&&g[b]){let j=g[b];typeof j=="function"?m=j({code:y,data:x,validator:b,value:O}):m=j}return m=(m||R.error).replace(":param",d||Q(h,this)),(typeof c=="string"||typeof c=="number")&&(m=m.replace(":option",String(c))),n([{code:y,key:h,type:"validator",validator:b,message:m,data:x},{}])}}return n([void 0,ee(o,l.concat(u))])}))}check(t,r){if(r instanceof F)return r.validateVariable(t);let[a,o]=this.validate({variable:t},{variable:r,$include:["variable"]});return[a,o==null?void 0:o.variable]}static check(t,r){return new this().check(t,r)}checkAsync(t,r){return w(this,null,function*(){if(r instanceof F)return r.validateVariableAsync(t);let[a,o]=yield this.validateAsync({variable:t},{variable:r,$include:["variable"]});return[a,o==null?void 0:o.variable]})}static checkAsync(t,r){return new this().checkAsync(t,r)}attempt(t,r){let a=this.check(t,r);if(a[0])throw new W(a[0]);return a[1]}static attempt(t,r,a){return new this().attempt(t,r)}attemptAsync(t,r){return w(this,null,function*(){let a=yield this.checkAsync(t,r);if(a[0])throw new W(a[0]);return a[1]})}static attemptAsync(t,r){return w(this,null,function*(){return new this().attemptAsync(t,r)})}test(t,r){return!this.check(t,r)[0]}static test(t,r){return new this().test(t,r)}testAsync(t,r){return w(this,null,function*(){return!(yield this.checkAsync(t,r))[0]})}static testAsync(t,r){return new this().testAsync(t,r)}static compileObject(t,r){let a=new(r||this),o=new F,s,l=[];for(let[u,n]of Object.entries(t))["*","$"].includes(u)?(s=n,typeof s=="string"&&(s=(0,xe.default)(s))):u==="$include"&&(l=n);for(let[u,n]of Object.entries(t)){if(ae.Fields.includes(u))continue;let f={validators:[]},d=n;typeof n=="string"?d=(0,xe.default)(n):Array.isArray(n)&&(d=te(n)),s&&(d=V(V({},s),d));let h,R={};for(let[c,p]of Object.entries(d))!ae.Rules.includes(c)||(c==="$name"?(se(p,["string"],"$name"),f.$name=p):c==="$skip"?(se(p,["boolean","function"],"$skip"),f.$skip=p):c==="$error"?(se(p,["string","function"],"$error"),h=p):c==="$errors"&&(se(p,["object"],"$errors"),R=p));!f.$name&&a.config.useStartCaseInErrors&&(f.$name=Q(u));let b=new Pe.default({},u).flagNoData();for(let[c,p]of Object.entries(d)){if(ae.Rules.includes(c))continue;let g=a.validators[c]||re.default[c];if(!g)throw new Error(`Validator ${c} not found`);g.isAsync&&(o.async=!0);let O=typeof p=="string"||typeof p=="number"||typeof p=="boolean"||Array.isArray(p),A={abolish:a,modifier:b,error:(v,j)=>new M.default(v,j)};g.error||(g.error=`:param failed {${g.name}} validation.`);let m=g.error,x;if(h&&(typeof h=="string"?m=h:typeof h=="function"&&(x=h)),R&&R[c]){let v=R[c];typeof v=="string"?m=v:typeof v=="function"&&(x=v)}m.includes(":param")&&(m=m.replace(/:param/g,f.$name||u));let y={name:c,option:p,error:m,async:g.isAsync===!0,func:(v,j)=>(A.modifier.hasData||A.modifier.setData(j),g.validator(v,p,A))};x&&(y.errorFn=x),O&&(y.optionString=String(p),y.error=y.error.replace(/:option/g,y.optionString)),Object.defineProperty(y.func,"name",{value:`Wrapped(${c})`}),f.validators.push(y)}o.data[u]=f}return Object.keys(o.data).forEach(u=>{o.fields.includes(u)||o.fields.push(u)}),l.forEach(u=>{o.fields.includes(u)||o.fields.push(u)}),o.includedFields=l,o.fieldsHasDotNotation=o.fields.some(L),o}static compile(t){let r=this.compileObject({variable:t,$include:["variable"]});return r.isObject=!1,r}},tf=he});var of=ie(C=>{var rf=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(C,"__esModule",{value:!0});C.Schema=C.Rule=C.Abolish=void 0;var af=rf((go(),pt(bo)));C.Abolish=af.default;var Ro=(at(),pt(po));Object.defineProperty(C,"Rule",{enumerable:!0,get:function(){return Ro.Rule}});Object.defineProperty(C,"Schema",{enumerable:!0,get:function(){return Ro.Schema}})});return of();})();

@@ -12,8 +12,8 @@ "use strict";

name: [
"required|typeof:string",
{
$skip: () => false,
$error: "Name is required",
$errors: { typeof: "Name is not a string" }
}
"required|typeof:string"
// {
// $skip: () => false,
// $error: "Name is required",
// $errors: { typeof: "Name is not a string" }
// }
]

@@ -25,8 +25,12 @@ // age: { typeof: "number" },

// console.dir(compiled, { depth: null });
const [e, v] = await abolish.validateAsync({
name: "16",
age: 18,
email: "error@example.com"
}, compiled);
console.log(v);
console.log(compiled);
// const [e, v] = await abolish.validateAsync(
// {
// name: null,
// age: 18,
// email: "error@example.com"
// },
// compiled
// );
// console.log(e);
// console.log(arrayValuesSchema.validateVariable(arrayData));

@@ -33,0 +37,0 @@ // a.u;

@@ -1,1 +0,1 @@

var xo=Object.create;var ce=Object.defineProperty;var ho=Object.getOwnPropertyDescriptor;var yo=Object.getOwnPropertyNames;var bo=Object.getPrototypeOf,go=Object.prototype.hasOwnProperty;var i=(e,t)=>()=>(e&&(t=e(e=0)),t);var re=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),it=(e,t)=>{for(var r in t)ce(e,r,{get:t[r],enumerable:!0})},st=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yo(t))!go.call(e,o)&&o!==r&&ce(e,o,{get:()=>t[o],enumerable:!(a=ho(t,o))||a.enumerable});return e};var L=(e,t,r)=>(r=e!=null?xo(bo(e)):{},st(t||!e||!e.__esModule?ce(r,"default",{value:e,enumerable:!0}):r,e)),nt=e=>st(ce({},"__esModule",{value:!0}),e);var Pe=re((ef,ft)=>{"use strict";var Ro=new RegExp(/([!a-zA-Z_*0-9]+)/g),Ao=new RegExp(/([a-zA-Z_*0-9]+:[a-zA-Z_0-9]+)/g),vo=new RegExp(/([a-zA-Z_*0-9]+:"[^"]+")/g),Oo=new RegExp(/([a-zA-Z_*0-9]+:'[^']+')/g),Vo=new RegExp(/([a-zA-Z_*0-9]+:`[^`]+`)/g),wo=e=>{let t=e.split("|"),r={};for(let a=0;a<t.length;a++){let o=t[a];if(o.match(Oo)||o.match(vo)||o.match(Vo)){let[s,...f]=o.split(":"),l=f.join(":");l=l.substring(1),l=l.substring(0,f.length-1),r[s]=l}else if(o.match(Ao)){let[s,f]=o.split(":");isNaN(f)||(f=Number(f)),r[s]=f}else if(o.match(Ro)){let s=o,f=!0;s.substring(0,1)==="!"&&(s=s.substring(1),f=!1),r[s]=f}}return r};ft.exports=wo});function ae(e,t,r="Options"){if(!Ie(e,t))throw new TypeError(`${r} must be typeof [${t}], but [${typeof e}] was given.`);return!0}function Ie(e,t){if(typeof t=="string")return t==="array"&&Array.isArray(e)?!0:typeof e===t;{let r=t.includes("array");return!r&&t.includes(typeof e)?!0:r&&(t.includes(typeof e)||Array.isArray(e))}}var Ne=i(()=>{"use strict"});var ut=re((af,lt)=>{"use strict";Ne();var V={default:{name:"default",description:"Set default value if original value is undefined or null",validator(e,t,{modifier:r}){return e==null&&r.setThis(t),!0}},required:{name:"required",description:"Value is required",error:":param is required.",validator:(e,t)=>t?typeof e>"u"||e===null?!1:typeof e=="string"||Array.isArray(e)?e.length>0:!0:!0},typeof:{name:"typeof",description:"Value is typeof :option",error:":param is not typeof :option",validator:function(t,r){return r===!1?!0:(typeof r=="string"&&r.includes(",")&&(r=r.split(",")),Ie(t,r))}},exact:{name:"exact",error:":param failed exact validator",description:"Value is === :option",validator:(e,t)=>e===t},min:{name:"min",error:":param is too small. (Min. :option)",description:"Number: Value is >= :option",validator:(e,t,r)=>{let a=isNaN(e);return typeof e=="string"&&a||Array.isArray(e)?V.minLength.validator(e,t,r):a?!1:Number(e)>=Number(t)}},max:{name:"max",error:":param is too big. (Max. :option)",description:"Number: Value is <= :option",validator:(e,t,r)=>{let a=isNaN(e);return typeof e=="string"&&a||Array.isArray(e)?V.maxLength.validator(e,t,r):a?!1:Number(e)<=Number(t)}},minLength:{name:"minLength",error:":param is too short. (Min. :option characters)",description:"Value length is >= :option",validator:(e,t,{error:r})=>typeof e=="string"?e.trim().length>=Number(t):Array.isArray(e)?e.length>=Number(t)?!0:r(`:param length is too short. (Min: ${t})`):!1},maxLength:{name:"maxLength",error:":param is too long. (Max. :option characters)",description:"Value length is <= :option",validator:(e,t,{error:r})=>typeof e=="string"?e.trim().length<=Number(t):Array.isArray(e)?e.length<=Number(t)?!0:r(`:param length is too long. (Max: ${t})`):!1},size:{name:"size",error:":param must be of size: [:option]",description:"Check the size of a String, Array, or Object",validator:(e,t,{error:r})=>{let a;if(typeof e=="string"||Array.isArray(e))a=e.length;else if(typeof e=="object")try{a=Object.keys(e).length}catch(o){return r(o.message)}return a===void 0?!1:Array.isArray(t)?t.includes(a):a===Number(t)}},object:{name:"object",validator:(e,t,{error:r,modifier:a,abolish:o})=>{if(!e||typeof e!="object")return r(":param must be an object.");let[s,f]=o.validate(e,t);if(s)return r(s.message,s);a.setThis(f)},description:["Object: Value is an object"]},objectAsync:{name:"objectAsync",isAsync:!0,validator:async(e,t,{error:r,modifier:a,abolish:o})=>{if(!e||typeof e!="object")return r(":param must be an object.");let[s,f]=await o.validateAsync(e,t);if(s)return r(s.message,s);a.setThis(f)}},$inline:{name:"$inline",error:":param failed inline validation.",validator:(e,t,r)=>t(e,r),description:"Register a custom validation function inline."}};V.type=Object.assign({},V.typeof);V.type.name="type";V.type.error=":param is not of type :option";V.type.description="Alias: typeof";for(let e of Object.keys(V)){let t=V[e];Object.defineProperty(t.validator,"name",{value:t.name})}lt.exports=V});var So,dt,pt=i(()=>{So=typeof global=="object"&&global&&global.Object===Object&&global,dt=So});var Co,jo,W,xe=i(()=>{pt();Co=typeof self=="object"&&self&&self.Object===Object&&self,jo=dt||Co||Function("return this")(),W=jo});var _o,C,he=i(()=>{xe();_o=W.Symbol,C=_o});function ko(e){var t=$o.call(e,oe),r=e[oe];try{e[oe]=void 0;var a=!0}catch{}var o=To.call(e);return a&&(t?e[oe]=r:delete e[oe]),o}var mt,$o,To,oe,ct,xt=i(()=>{he();mt=Object.prototype,$o=mt.hasOwnProperty,To=mt.toString,oe=C?C.toStringTag:void 0;ct=ko});function Io(e){return Po.call(e)}var Eo,Po,ht,yt=i(()=>{Eo=Object.prototype,Po=Eo.toString;ht=Io});function Fo(e){return e==null?e===void 0?Do:No:bt&&bt in Object(e)?ct(e):ht(e)}var No,Do,bt,U,ye=i(()=>{he();xt();yt();No="[object Null]",Do="[object Undefined]",bt=C?C.toStringTag:void 0;U=Fo});function Mo(e){return e!=null&&typeof e=="object"}var G,be=i(()=>{G=Mo});function Lo(e){return typeof e=="symbol"||G(e)&&U(e)==zo}var zo,H,ge=i(()=>{ye();be();zo="[object Symbol]";H=Lo});function Wo(e,t){for(var r=-1,a=e==null?0:e.length,o=Array(a);++r<a;)o[r]=t(e[r],r,e);return o}var gt,Rt=i(()=>{gt=Wo});var Uo,$,ie=i(()=>{Uo=Array.isArray,$=Uo});function Ot(e){if(typeof e=="string")return e;if($(e))return gt(e,Ot)+"";if(H(e))return vt?vt.call(e):"";var t=e+"";return t=="0"&&1/e==-Go?"-0":t}var Go,At,vt,Vt,wt=i(()=>{he();Rt();ie();ge();Go=1/0,At=C?C.prototype:void 0,vt=At?At.toString:void 0;Vt=Ot});function Ho(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var F,Re=i(()=>{F=Ho});function Jo(e){if(!F(e))return!1;var t=U(e);return t==Ko||t==Zo||t==Bo||t==qo}var Bo,Ko,Zo,qo,St,Ct=i(()=>{ye();Re();Bo="[object AsyncFunction]",Ko="[object Function]",Zo="[object GeneratorFunction]",qo="[object Proxy]";St=Jo});var Yo,Ae,jt=i(()=>{xe();Yo=W["__core-js_shared__"],Ae=Yo});function Xo(e){return!!_t&&_t in e}var _t,$t,Tt=i(()=>{jt();_t=function(){var e=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();$t=Xo});function ti(e){if(e!=null){try{return ei.call(e)}catch{}try{return e+""}catch{}}return""}var Qo,ei,kt,Et=i(()=>{Qo=Function.prototype,ei=Qo.toString;kt=ti});function li(e){if(!F(e)||$t(e))return!1;var t=St(e)?fi:ai;return t.test(kt(e))}var ri,ai,oi,ii,si,ni,fi,Pt,It=i(()=>{Ct();Tt();Re();Et();ri=/[\\^$.*+?()[\]{}|]/g,ai=/^\[object .+?Constructor\]$/,oi=Function.prototype,ii=Object.prototype,si=oi.toString,ni=ii.hasOwnProperty,fi=RegExp("^"+si.call(ni).replace(ri,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");Pt=li});function ui(e,t){return e?.[t]}var Nt,Dt=i(()=>{Nt=ui});function di(e,t){var r=Nt(e,t);return Pt(r)?r:void 0}var B,ve=i(()=>{It();Dt();B=di});var pi,De,Ft=i(()=>{ve();pi=function(){try{var e=B(Object,"defineProperty");return e({},"",{}),e}catch{}}(),De=pi});function xi(e,t){var r=typeof e;return t=t??mi,!!t&&(r=="number"||r!="symbol"&&ci.test(e))&&e>-1&&e%1==0&&e<t}var mi,ci,Oe,Fe=i(()=>{mi=9007199254740991,ci=/^(?:0|[1-9]\d*)$/;Oe=xi});function hi(e,t,r){t=="__proto__"&&De?De(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Mt,zt=i(()=>{Ft();Mt=hi});function yi(e,t){return e===t||e!==e&&t!==t}var Ve,Me=i(()=>{Ve=yi});function Ri(e,t,r){var a=e[t];(!(gi.call(e,t)&&Ve(a,r))||r===void 0&&!(t in e))&&Mt(e,t,r)}var bi,gi,Lt,Wt=i(()=>{zt();Me();bi=Object.prototype,gi=bi.hasOwnProperty;Lt=Ri});function vi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ai}var Ai,Ut,Gt=i(()=>{Ai=9007199254740991;Ut=vi});function Vi(e){return G(e)&&U(e)==Oi}var Oi,ze,Ht=i(()=>{ye();be();Oi="[object Arguments]";ze=Vi});var Bt,wi,Si,Ci,Kt,Zt=i(()=>{Ht();be();Bt=Object.prototype,wi=Bt.hasOwnProperty,Si=Bt.propertyIsEnumerable,Ci=ze(function(){return arguments}())?ze:function(e){return G(e)&&wi.call(e,"callee")&&!Si.call(e,"callee")},Kt=Ci});function $i(e,t){if($(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||H(e)?!0:_i.test(e)||!ji.test(e)||t!=null&&e in Object(t)}var ji,_i,qt,Jt=i(()=>{ie();ge();ji=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_i=/^\w*$/;qt=$i});var Ti,j,se=i(()=>{ve();Ti=B(Object,"create"),j=Ti});function ki(){this.__data__=j?j(null):{},this.size=0}var Yt,Xt=i(()=>{se();Yt=ki});function Ei(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Qt,er=i(()=>{Qt=Ei});function Di(e){var t=this.__data__;if(j){var r=t[e];return r===Pi?void 0:r}return Ni.call(t,e)?t[e]:void 0}var Pi,Ii,Ni,tr,rr=i(()=>{se();Pi="__lodash_hash_undefined__",Ii=Object.prototype,Ni=Ii.hasOwnProperty;tr=Di});function zi(e){var t=this.__data__;return j?t[e]!==void 0:Mi.call(t,e)}var Fi,Mi,ar,or=i(()=>{se();Fi=Object.prototype,Mi=Fi.hasOwnProperty;ar=zi});function Wi(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=j&&t===void 0?Li:t,this}var Li,ir,sr=i(()=>{se();Li="__lodash_hash_undefined__";ir=Wi});function K(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}var Le,nr=i(()=>{Xt();er();rr();or();sr();K.prototype.clear=Yt;K.prototype.delete=Qt;K.prototype.get=tr;K.prototype.has=ar;K.prototype.set=ir;Le=K});function Ui(){this.__data__=[],this.size=0}var fr,lr=i(()=>{fr=Ui});function Gi(e,t){for(var r=e.length;r--;)if(Ve(e[r][0],t))return r;return-1}var T,ne=i(()=>{Me();T=Gi});function Ki(e){var t=this.__data__,r=T(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():Bi.call(t,r,1),--this.size,!0}var Hi,Bi,ur,dr=i(()=>{ne();Hi=Array.prototype,Bi=Hi.splice;ur=Ki});function Zi(e){var t=this.__data__,r=T(t,e);return r<0?void 0:t[r][1]}var pr,mr=i(()=>{ne();pr=Zi});function qi(e){return T(this.__data__,e)>-1}var cr,xr=i(()=>{ne();cr=qi});function Ji(e,t){var r=this.__data__,a=T(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var hr,yr=i(()=>{ne();hr=Ji});function Z(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}var br,gr=i(()=>{lr();dr();mr();xr();yr();Z.prototype.clear=fr;Z.prototype.delete=ur;Z.prototype.get=pr;Z.prototype.has=cr;Z.prototype.set=hr;br=Z});var Yi,Rr,Ar=i(()=>{ve();xe();Yi=B(W,"Map"),Rr=Yi});function Xi(){this.size=0,this.__data__={hash:new Le,map:new(Rr||br),string:new Le}}var vr,Or=i(()=>{nr();gr();Ar();vr=Xi});function Qi(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Vr,wr=i(()=>{Vr=Qi});function es(e,t){var r=e.__data__;return Vr(t)?r[typeof t=="string"?"string":"hash"]:r.map}var k,fe=i(()=>{wr();k=es});function ts(e){var t=k(this,e).delete(e);return this.size-=t?1:0,t}var Sr,Cr=i(()=>{fe();Sr=ts});function rs(e){return k(this,e).get(e)}var jr,_r=i(()=>{fe();jr=rs});function as(e){return k(this,e).has(e)}var $r,Tr=i(()=>{fe();$r=as});function os(e,t){var r=k(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var kr,Er=i(()=>{fe();kr=os});function q(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}var We,Pr=i(()=>{Or();Cr();_r();Tr();Er();q.prototype.clear=vr;q.prototype.delete=Sr;q.prototype.get=jr;q.prototype.has=$r;q.prototype.set=kr;We=q});function Ue(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(is);var r=function(){var a=arguments,o=t?t.apply(this,a):a[0],s=r.cache;if(s.has(o))return s.get(o);var f=e.apply(this,a);return r.cache=s.set(o,f)||s,f};return r.cache=new(Ue.Cache||We),r}var is,Ir,Nr=i(()=>{Pr();is="Expected a function";Ue.Cache=We;Ir=Ue});function ns(e){var t=Ir(e,function(a){return r.size===ss&&r.clear(),a}),r=t.cache;return t}var ss,Dr,Fr=i(()=>{Nr();ss=500;Dr=ns});var fs,ls,us,Mr,zr=i(()=>{Fr();fs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ls=/\\(\\)?/g,us=Dr(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(fs,function(r,a,o,s){t.push(o?s.replace(ls,"$1"):a||r)}),t}),Mr=us});function ds(e){return e==null?"":Vt(e)}var E,le=i(()=>{wt();E=ds});function ps(e,t){return $(e)?e:qt(e,t)?[e]:Mr(E(e))}var P,ue=i(()=>{ie();Jt();zr();le();P=ps});function cs(e){if(typeof e=="string"||H(e))return e;var t=e+"";return t=="0"&&1/e==-ms?"-0":t}var ms,I,de=i(()=>{ge();ms=1/0;I=cs});function xs(e,t){t=P(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[I(t[r++])];return r&&r==a?e:void 0}var we,Ge=i(()=>{ue();de();we=xs});function hs(e,t,r){var a=e==null?void 0:we(e,t);return a===void 0?r:a}var He,Lr=i(()=>{Ge();He=hs});function ys(e,t,r){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(o);++a<o;)s[a]=e[a+t];return s}var Se,Be=i(()=>{Se=ys});function bs(e,t,r){var a=e.length;return r=r===void 0?a:r,!t&&r>=a?e:Se(e,t,r)}var Wr,Ur=i(()=>{Be();Wr=bs});function Cs(e){return Ss.test(e)}var gs,Rs,As,vs,Os,Vs,ws,Ss,Ce,Ke=i(()=>{gs="\\ud800-\\udfff",Rs="\\u0300-\\u036f",As="\\ufe20-\\ufe2f",vs="\\u20d0-\\u20ff",Os=Rs+As+vs,Vs="\\ufe0e\\ufe0f",ws="\\u200d",Ss=RegExp("["+ws+gs+Os+Vs+"]");Ce=Cs});function js(e){return e.split("")}var Gr,Hr=i(()=>{Gr=js});function Ls(e){return e.match(zs)||[]}var Br,_s,$s,Ts,ks,Es,Ps,Ze,qe,Is,Kr,Zr,qr,Ns,Jr,Yr,Ds,Fs,Ms,zs,Xr,Qr=i(()=>{Br="\\ud800-\\udfff",_s="\\u0300-\\u036f",$s="\\ufe20-\\ufe2f",Ts="\\u20d0-\\u20ff",ks=_s+$s+Ts,Es="\\ufe0e\\ufe0f",Ps="["+Br+"]",Ze="["+ks+"]",qe="\\ud83c[\\udffb-\\udfff]",Is="(?:"+Ze+"|"+qe+")",Kr="[^"+Br+"]",Zr="(?:\\ud83c[\\udde6-\\uddff]){2}",qr="[\\ud800-\\udbff][\\udc00-\\udfff]",Ns="\\u200d",Jr=Is+"?",Yr="["+Es+"]?",Ds="(?:"+Ns+"(?:"+[Kr,Zr,qr].join("|")+")"+Yr+Jr+")*",Fs=Yr+Jr+Ds,Ms="(?:"+[Kr+Ze+"?",Ze,Zr,qr,Ps].join("|")+")",zs=RegExp(qe+"(?="+qe+")|"+Ms+Fs,"g");Xr=Ls});function Ws(e){return Ce(e)?Xr(e):Gr(e)}var ea,ta=i(()=>{Hr();Ke();Qr();ea=Ws});function Us(e){return function(t){t=E(t);var r=Ce(t)?ea(t):void 0,a=r?r[0]:t.charAt(0),o=r?Wr(r,1).join(""):t.slice(1);return a[e]()+o}}var ra,aa=i(()=>{Ur();Ke();ta();le();ra=Us});var Gs,oa,ia=i(()=>{aa();Gs=ra("toUpperCase"),oa=Gs});function Hs(e,t,r,a){var o=-1,s=e==null?0:e.length;for(a&&s&&(r=e[++o]);++o<s;)r=t(r,e[o],o,e);return r}var sa,na=i(()=>{sa=Hs});function Bs(e){return function(t){return e?.[t]}}var fa,la=i(()=>{fa=Bs});var Ks,Zs,ua,da=i(()=>{la();Ks={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Zs=fa(Ks),ua=Zs});function rn(e){return e=E(e),e&&e.replace(qs,ua).replace(tn,"")}var qs,Js,Ys,Xs,Qs,en,tn,pa,ma=i(()=>{da();le();qs=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Js="\\u0300-\\u036f",Ys="\\ufe20-\\ufe2f",Xs="\\u20d0-\\u20ff",Qs=Js+Ys+Xs,en="["+Qs+"]",tn=RegExp(en,"g");pa=rn});function on(e){return e.match(an)||[]}var an,ca,xa=i(()=>{an=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;ca=on});function nn(e){return sn.test(e)}var sn,ha,ya=i(()=>{sn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;ha=nn});function $n(e){return e.match(_n)||[]}var va,fn,ln,un,dn,Oa,Va,pn,mn,cn,xn,wa,hn,Sa,Ca,ba,yn,ja,bn,_a,$a,gn,Rn,An,Ta,ka,J,vn,ga,On,Ra,Aa,Ea,Pa,Vn,wn,Sn,Cn,jn,_n,Ia,Na=i(()=>{va="\\ud800-\\udfff",fn="\\u0300-\\u036f",ln="\\ufe20-\\ufe2f",un="\\u20d0-\\u20ff",dn=fn+ln+un,Oa="\\u2700-\\u27bf",Va="a-z\\xdf-\\xf6\\xf8-\\xff",pn="\\xac\\xb1\\xd7\\xf7",mn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cn="\\u2000-\\u206f",xn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wa="A-Z\\xc0-\\xd6\\xd8-\\xde",hn="\\ufe0e\\ufe0f",Sa=pn+mn+cn+xn,Ca="['\u2019]",ba="["+Sa+"]",yn="["+dn+"]",ja="\\d+",bn="["+Oa+"]",_a="["+Va+"]",$a="[^"+va+Sa+ja+Oa+Va+wa+"]",gn="\\ud83c[\\udffb-\\udfff]",Rn="(?:"+yn+"|"+gn+")",An="[^"+va+"]",Ta="(?:\\ud83c[\\udde6-\\uddff]){2}",ka="[\\ud800-\\udbff][\\udc00-\\udfff]",J="["+wa+"]",vn="\\u200d",ga="(?:"+_a+"|"+$a+")",On="(?:"+J+"|"+$a+")",Ra="(?:"+Ca+"(?:d|ll|m|re|s|t|ve))?",Aa="(?:"+Ca+"(?:D|LL|M|RE|S|T|VE))?",Ea=Rn+"?",Pa="["+hn+"]?",Vn="(?:"+vn+"(?:"+[An,Ta,ka].join("|")+")"+Pa+Ea+")*",wn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cn=Pa+Ea+Vn,jn="(?:"+[bn,Ta,ka].join("|")+")"+Cn,_n=RegExp([J+"?"+_a+"+"+Ra+"(?="+[ba,J,"$"].join("|")+")",On+"+"+Aa+"(?="+[ba,J+ga,"$"].join("|")+")",J+"?"+ga+"+"+Ra,J+"+"+Aa,Sn,wn,ja,jn].join("|"),"g");Ia=$n});function Tn(e,t,r){return e=E(e),t=r?void 0:t,t===void 0?ha(e)?Ia(e):ca(e):e.match(t)||[]}var Da,Fa=i(()=>{xa();ya();le();Na();Da=Tn});function Pn(e){return function(t){return sa(Da(pa(t).replace(En,"")),e,"")}}var kn,En,Ma,za=i(()=>{na();ma();Fa();kn="['\u2019]",En=RegExp(kn,"g");Ma=Pn});function In(e,t,r){t=P(t,e);for(var a=-1,o=t.length,s=!1;++a<o;){var f=I(t[a]);if(!(s=e!=null&&r(e,f)))break;e=e[f]}return s||++a!=o?s:(o=e==null?0:e.length,!!o&&Ut(o)&&Oe(f,o)&&($(e)||Kt(e)))}var La,Wa=i(()=>{ue();Zt();ie();Fe();Gt();de();La=In});function Nn(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Ua,Ga=i(()=>{Ua=Nn});function Mn(e,t){return e!=null&&Fn.call(e,t)}var Dn,Fn,Ha,Ba=i(()=>{Dn=Object.prototype,Fn=Dn.hasOwnProperty;Ha=Mn});function zn(e,t){return e!=null&&La(e,t,Ha)}var Je,Ka=i(()=>{Ba();Wa();Je=zn});function Ln(e,t){return t.length<2?e:we(e,Se(t,0,-1))}var Za,qa=i(()=>{Ge();Be();Za=Ln});function Wn(e,t){return t=P(t,e),e=Za(e,t),e==null||delete e[I(Ua(t))]}var Ja,Ya=i(()=>{ue();Ga();qa();de();Ja=Wn});function Un(e,t,r,a){if(!F(e))return e;t=P(t,e);for(var o=-1,s=t.length,f=s-1,l=e;l!=null&&++o<s;){var n=I(t[o]),u=r;if(n==="__proto__"||n==="constructor"||n==="prototype")return e;if(o!=f){var d=l[n];u=a?a(d,n,l):void 0,u===void 0&&(u=F(d)?d:Oe(t[o+1])?[]:{})}Lt(l,n,u),l=l[n]}return e}var Xa,Qa=i(()=>{Wt();ue();Fe();Re();de();Xa=Un});function Gn(e,t,r){return e==null?e:Xa(e,t,r)}var Ye,eo=i(()=>{Qa();Ye=Gn});var Hn,je,to=i(()=>{za();ia();Hn=Ma(function(e,t,r){return e+(r?" ":"")+oa(t)}),je=Hn});function Bn(e,t){return e==null?!0:Ja(e,t)}var _e,ro=i(()=>{Ya();_e=Bn});var Xe=i(()=>{Lr();Ka();eo();to();ro();});function Y(e,t){return t?t.config.useStartCaseInErrors?je(e):e:je(e)}function X(e,t,r){let a={};if(r===void 0?t.some(M):r)for(let s of t)a[s]=_(e,s);else for(let s of t)a[s]=e[s];return a}function ao(e,t){let r={};for(let a in e)t.includes(a)||(r[a]=e[a]);return r}function Qe(e,t,r,a){return a===void 0&&M(t)?Ye(e,t,r):(e[t]=r,e)}function _(e,t,r){return r===void 0&&M(t)?He(e,t):e[t]}function M(e){return e.indexOf(".")!==-1}var $e=i(()=>{"use strict";Xe()});var io={};it(io,{Rule:()=>Q,RuleTyped:()=>Kn,Schema:()=>oo,SchemaTyped:()=>Zn});function Q(e){Array.isArray(e)||(e=[e]);let t={};for(let r of e)typeof r=="string"&&(r=(0,et.default)(r)),t={...t,...r};return t}function Kn(e){return Q(e)}function oo(e){let t={};for(let r of Object.keys(e)){let a=e[r];r==="$include"||(typeof a=="string"?a=(0,et.default)(a):Array.isArray(a)&&(a=Q(a))),t[r]=a}return t}function Zn(e){return oo(e)}var et,tt=i(()=>{"use strict";et=L(Pe())});var at=re((op,so)=>{"use strict";var rt=class{constructor(t,r){this.code="default";return this.message=t,r&&(this.data=r),this}setCode(t){return this.code=t,this}setData(t){return this.data=t,this}setMessage(t){return this.message=t,this}};so.exports=rt});var fo=re((np,no)=>{"use strict";$e();Xe();var ot=class{constructor(t,r,a=!1){this.$hasData=!0;return this.data=t,this.path=r,this.name=a,this.pathHasDotNotation=M(r),this}flagNoData(){return this.$hasData=!1,this}setData(t){return this.data=t,this.$hasData=!0,this}get hasData(){return this.$hasData}get(t){return _(this.data,t)}getThis(){return this.get(this.path)}has(t){return Je(this.data,t)}set(t,r){return Qe(this.data,t,r)}setThis(t){return Qe(this.data,this.path,t,this.pathHasDotNotation)}unset(t){return _e(this.data,t)}unsetThis(){return _e(this.data,this.path)}getName(){return this.name||Y(this.path)}getNameRaw(){return this.name||this.path}};no.exports=ot});function lo(e,t,r,a,o){let s=a.error,f=null,l="default",n=!1;return r instanceof Te.default&&(n=!0,s=r.message,f=r.data,l=r.code),a.errorFn&&(n=!0,s=a.errorFn({code:l,data:f,validator:a.name,value:t})),n&&(s.includes(":param")&&(s=s.replace(":param",o||e)),a.optionString&&s.includes(":option")&&(s=s.replace(":option",a.optionString))),[{code:l,key:e,type:"validator",validator:a.name,message:s,data:f},{}]}var Te,N,uo=i(()=>{"use strict";Te=L(at());$e();N=class{constructor(){this.data={};this.fields=[];this.includedFields=[];this.fieldsHasDotNotation=!1;this.isObject=!0;this.async=!1}validateObject(t){if(!this.isObject)throw new Error("Variable compiled schema cannot be used to validate an object, use object compiled schema!");if(this.async)throw new Error("Rules contains an async validator, use validateObjectAsync instead!");let r={...t},a=this.fields;for(let s in this.data){let f=this.data[s],l=_(r,s,this.fieldsHasDotNotation);if(f.$skip){let n=f.$skip;if(typeof n=="function"&&(n=n(l,r)),n){this.includedFields.includes(s)||(a=a.filter(u=>u!==s));continue}}for(let n of f.validators){let u=!1;try{u=n.func(l,r)}catch(d){return[{code:"default",key:s,type:"internal",validator:n.name,message:d.message,data:d.stack},{}]}if(typeof u!==void 0&&(u===!1||u instanceof Te.default))return lo(s,l,u,n,f.$name)}}let o;if(a.length===1){let s=a[0];o={[s]:r[s]}}else a.length>1?o=X(r,a,this.fieldsHasDotNotation):o={};return[void 0,o]}async validateObjectAsync(t){if(!this.isObject)throw new Error("Variable compiled schema cannot be used to validate an object, use object compiled schema!");let r={...t},a=this.fields;for(let s in this.data){let f=this.data[s],l=_(r,s,this.fieldsHasDotNotation);if(f.$skip){let n=f.$skip;if(typeof n=="function"&&(n=n(l,r)),n){this.includedFields.includes(s)||(a=a.filter(u=>u!==s));continue}}for(let n of f.validators){let u=!1;try{n.async?u=await n.func(l,r):u=n.func(l,r)}catch(d){return[{code:"default",key:s,type:"internal",validator:n.name,message:d.message,data:d.stack},{}]}if(typeof u!==void 0&&(u===!1||u instanceof Te.default))return lo(s,l,u,n,f.$name)}}let o;if(a.length===1){let s=a[0];o={[s]:r[s]}}else a.length>1?o=X(r,a,this.fieldsHasDotNotation):o={};return[void 0,o]}validateVariable(t){if(this.isObject)throw new Error("Object compiled cannot be used to validate a variable, use regular compiled schema!");this.isObject=!0;let r=this.validateObject({variable:t});return this.isObject=!1,r[1]=r[1].variable,r}async validateVariableAsync(t){if(this.isObject)throw new Error("Object compiled cannot be used to validate a variable, use regular compiled schema!");this.isObject=!0;let r=await this.validateObjectAsync({variable:t});return this.isObject=!1,r[1]=r[1].variable,r}validate(t){return this.isObject?this.validateObject(t):this.validateVariable(t)}async validateAsync(t){return this.isObject?this.validateObjectAsync(t):this.validateVariableAsync(t)}}});var po={};it(po,{AttemptError:()=>z,SuperKeys:()=>te,default:()=>qn});var pe,ee,D,ke,z,te,me,qn,mo=i(()=>{"use strict";pe=L(Pe()),ee=L(ut());$e();tt();D=L(at()),ke=L(fo());uo();Ne();z=class extends Error{constructor(r){super(r.message);this.name="AttemptError",this.error=r}static instanceOf(r){return r instanceof z}},te=Object.freeze({Fields:["*","$","$include"],Rules:["$name","$skip","$error","$errors"]}),me=class{constructor(){this.validators={};this.config={useStartCaseInErrors:!0}}static getGlobalValidators(){return ee.default}static getGlobalValidatorsList(){return Object.keys(this.getGlobalValidators())}static addGlobalValidator(t){if(typeof t=="object"&&!Array.isArray(t))t.error||(t.error=`:param failed {${t.name}} validation.`),ee.default[t.name]=t,Object.defineProperty(t.validator,"name",{value:t.name});else throw new TypeError("addGlobalValidator argument must be an object.");return this}static addGlobalValidators(t){if(typeof t=="object"&&(t=Object.values(t)),Array.isArray(t))for(let r of t)me.addGlobalValidator(r);else throw new TypeError("addGlobalValidators argument must be an array or an object");return this}useStartCaseInErrors(t=!0){return this.config.useStartCaseInErrors=t,this}addValidator(t){if(typeof t=="object"&&!Array.isArray(t))t.error||(t.error=`:param failed {${t.name}} validation.`),this.validators[t.name]=t;else throw new TypeError("addValidator argument must be an object.");return this}addValidators(t){if(typeof t=="object"&&(t=Object.values(t)),Array.isArray(t))for(let r of t)this.addValidator(r);else throw new TypeError("addValidators argument must be an array or an object");return this}static validate(t,r){return new this().validate(t,r)}static validateAsync(t,r){return new this().validateAsync(t,r)}validate(t,r,a=!1){if(r instanceof N)return r.validateObject(t);let o={validated:{},jobs:[],keysToBeValidated:[],includeKeys:[]},s={};(r.hasOwnProperty("*")||r.hasOwnProperty("$"))&&(s=r["*"]||r.$,typeof s=="string"&&(s=(0,pe.default)(s)));let f={...t},l=[];if(r.hasOwnProperty("$include")&&(l=r.$include,!Array.isArray(l)))throw new Error("$include has to be an array!");let n=Object.keys(r);n=n.filter(u=>!te.Fields.includes(u));for(let u of n){let d=r[u];typeof d=="string"?d=(0,pe.default)(d):Array.isArray(d)&&(d=Q(d));let h=!1;if(d.hasOwnProperty("$skip")&&(h=d.$skip,typeof h=="function"&&(h=h(f[u])),typeof h!="boolean"))throw new Error(`$skip value or resolved function value must be a BOOLEAN in RuleFor: (${u})`);if(h)n=n.filter(R=>R!==u);else{let R=!1;if(d.hasOwnProperty("$name")&&(R=d.$name,typeof R!="string"))throw new Error(`$name must be a string in RuleFor: (${u})`);let b;if(d.hasOwnProperty("$error")&&(b=d.$error,!b||typeof b!="string"&&typeof b!="function"))throw new Error(`$error value must be a STRING or FUNCTION in RuleFor: (${u})`);let c;if(d.hasOwnProperty("$errors")&&(c=d.$errors,!c||typeof c!="object"))throw new Error(`$errors value must be an OBJECT in RuleFor: (${u})`);d={...s,...ao(d,te.Rules)};for(let p of Object.keys(d)){if(!this.validators.hasOwnProperty(p)&&!ee.default.hasOwnProperty(p))throw new Error(`Validator: {${p}} does not exists but defined in rules`);let g=this.validators[p]||ee.default[p];if(!a&&g.isAsync)throw new Error(`Validator: {${p}} is async, use async method instead.`);let O=d[p],A=_(f,u);if(a)o.jobs.push({$name:R,rule:u,validator:g,validatorName:p,validatorOption:O,$error:b,$errors:c});else{let m=!1;try{m=g.validator(A,O,{error:(x,y)=>new D.default(x,y),modifier:new ke.default(f,u,R),abolish:this})}catch(x){return[{code:"default",key:u,type:"internal",validator:p,message:x.message,data:x.stack},{}]}if(m===!1||m instanceof D.default){let x,y=null,v="default";if(m instanceof D.default&&(x=m.message,y=m.data,v=m.code),b&&(typeof b=="function"?x=b({code:v,validator:p,data:y,value:A}):x=b),c&&c[p]){let Ee=c[p];typeof Ee=="function"?x=Ee({code:v,data:y,validator:p,value:A}):x=Ee}let S=typeof O=="string"||typeof O=="number"||Array.isArray(O);return x=(x||g.error).replace(":param",R||Y(u,this)),S&&(x=x.replace(":option",String(O))),[{code:v,key:u,type:"validator",validator:p,message:x,data:y},{}]}}}}}return a?(o.validated=f,o.keysToBeValidated=n,o.includeKeys=l,o):(f=X(f,n.concat(l)),[void 0,f])}validateAsync(t,r){if(r instanceof N)return r.validateObjectAsync(t);let a=this.validate(t,r,!0),{validated:o,jobs:s,keysToBeValidated:f,includeKeys:l}=a;return new Promise(async n=>{for(let u of s){let{$name:d,rule:h,validator:R,validatorName:b,validatorOption:c,$error:p,$errors:g}=u,O=_(o,h),A=!1;try{A=await R.validator(O,c,{error:(m,x)=>new D.default(m,x),modifier:new ke.default(o,h,d),abolish:this})}catch(m){return n([{code:"default",key:h,type:"internal",validator:b,message:m.message,data:m.stack},{}])}if(A===!1||A instanceof D.default){let m,x=null,y="default";if(A instanceof D.default&&(m=A.message,x=A.data,y=A.code),p&&(typeof p=="function"?m=p({code:y,validator:b,data:x,value:O}):m=p),g&&g[b]){let S=g[b];typeof S=="function"?m=S({code:y,data:x,validator:b,value:O}):m=S}return m=(m||R.error).replace(":param",d||Y(h,this)),(typeof c=="string"||typeof c=="number")&&(m=m.replace(":option",String(c))),n([{code:y,key:h,type:"validator",validator:b,message:m,data:x},{}])}}return n([void 0,X(o,f.concat(l))])})}check(t,r){if(r instanceof N)return r.validateVariable(t);let[a,o]=this.validate({variable:t},{variable:r,$include:["variable"]});return[a,o?.variable]}static check(t,r){return new this().check(t,r)}async checkAsync(t,r){if(r instanceof N)return r.validateVariableAsync(t);let[a,o]=await this.validateAsync({variable:t},{variable:r,$include:["variable"]});return[a,o?.variable]}static checkAsync(t,r){return new this().checkAsync(t,r)}attempt(t,r){let a=this.check(t,r);if(a[0])throw new z(a[0]);return a[1]}static attempt(t,r,a){return new this().attempt(t,r)}async attemptAsync(t,r){let a=await this.checkAsync(t,r);if(a[0])throw new z(a[0]);return a[1]}static async attemptAsync(t,r){return new this().attemptAsync(t,r)}test(t,r){return!this.check(t,r)[0]}static test(t,r){return new this().test(t,r)}async testAsync(t,r){return!(await this.checkAsync(t,r))[0]}static testAsync(t,r){return new this().testAsync(t,r)}static compileObject(t,r){let a=new(r||this),o=new N,s,f=[];for(let[l,n]of Object.entries(t))["*","$"].includes(l)?(s=n,typeof s=="string"&&(s=(0,pe.default)(s))):l==="$include"&&(f=n);for(let[l,n]of Object.entries(t)){if(te.Fields.includes(l))continue;let u={validators:[]},d=n;typeof n=="string"?d=(0,pe.default)(n):Array.isArray(n)&&(d=Q(n)),s&&(d={...s,...d});let h,R={};for(let[c,p]of Object.entries(d))!te.Rules.includes(c)||(c==="$name"?(ae(p,["string"],"$name"),u.$name=p):a.config.useStartCaseInErrors&&(u.$name=Y(c)),c==="$skip"?(ae(p,["boolean","function"],"$skip"),u.$skip=p):c==="$error"?(ae(p,["string","function"],"$error"),h=p):c==="$errors"&&(ae(p,["object"],"$errors"),R=p));let b=new ke.default({},l).flagNoData();for(let[c,p]of Object.entries(d)){if(te.Rules.includes(c))continue;let g=a.validators[c]||ee.default[c];if(!g)throw new Error(`Validator ${c} not found`);g.isAsync&&(o.async=!0);let O=typeof p=="string"||typeof p=="number"||typeof p=="boolean"||Array.isArray(p),A={abolish:a,modifier:b,error:(v,S)=>new D.default(v,S)};g.error||(g.error=`:param failed {${g.name}} validation.`);let m=g.error,x;if(h&&(typeof h=="string"?m=h:typeof h=="function"&&(x=h)),R&&R[c]){let v=R[c];typeof v=="string"?m=v:typeof v=="function"&&(x=v)}m.includes(":param")&&(m=m.replace(/:param/g,u.$name||l));let y={name:c,option:p,error:m,async:g.isAsync===!0,func:(v,S)=>(A.modifier.hasData||A.modifier.setData(S),g.validator(v,p,A))};x&&(y.errorFn=x),O&&(y.optionString=String(p),y.error=y.error.replace(/:option/g,y.optionString)),Object.defineProperty(y.func,"name",{value:`Wrapped(${c})`}),u.validators.push(y)}o.data[l]=u}return Object.keys(o.data).forEach(l=>{o.fields.includes(l)||o.fields.push(l)}),f.forEach(l=>{o.fields.includes(l)||o.fields.push(l)}),o.includedFields=f,o.fieldsHasDotNotation=o.fields.some(M),o}static compile(t){let r=this.compileObject({variable:t,$include:["variable"]});return r.isObject=!1,r}},qn=me});var Xn=re(w=>{var Jn=w&&w.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(w,"__esModule",{value:!0});w.Schema=w.Rule=w.Abolish=void 0;var Yn=Jn((mo(),nt(po)));w.Abolish=Yn.default;var co=(tt(),nt(io));Object.defineProperty(w,"Rule",{enumerable:!0,get:function(){return co.Rule}});Object.defineProperty(w,"Schema",{enumerable:!0,get:function(){return co.Schema}})});export default Xn();
var xo=Object.create;var ce=Object.defineProperty;var ho=Object.getOwnPropertyDescriptor;var yo=Object.getOwnPropertyNames;var bo=Object.getPrototypeOf,go=Object.prototype.hasOwnProperty;var i=(e,t)=>()=>(e&&(t=e(e=0)),t);var re=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),it=(e,t)=>{for(var r in t)ce(e,r,{get:t[r],enumerable:!0})},st=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yo(t))!go.call(e,o)&&o!==r&&ce(e,o,{get:()=>t[o],enumerable:!(a=ho(t,o))||a.enumerable});return e};var L=(e,t,r)=>(r=e!=null?xo(bo(e)):{},st(t||!e||!e.__esModule?ce(r,"default",{value:e,enumerable:!0}):r,e)),nt=e=>st(ce({},"__esModule",{value:!0}),e);var Pe=re((ef,ft)=>{"use strict";var Ro=new RegExp(/([!a-zA-Z_*0-9]+)/g),Ao=new RegExp(/([a-zA-Z_*0-9]+:[a-zA-Z_0-9]+)/g),vo=new RegExp(/([a-zA-Z_*0-9]+:"[^"]+")/g),Oo=new RegExp(/([a-zA-Z_*0-9]+:'[^']+')/g),Vo=new RegExp(/([a-zA-Z_*0-9]+:`[^`]+`)/g),wo=e=>{let t=e.split("|"),r={};for(let a=0;a<t.length;a++){let o=t[a];if(o.match(Oo)||o.match(vo)||o.match(Vo)){let[s,...f]=o.split(":"),l=f.join(":");l=l.substring(1),l=l.substring(0,f.length-1),r[s]=l}else if(o.match(Ao)){let[s,f]=o.split(":");isNaN(f)||(f=Number(f)),r[s]=f}else if(o.match(Ro)){let s=o,f=!0;s.substring(0,1)==="!"&&(s=s.substring(1),f=!1),r[s]=f}}return r};ft.exports=wo});function ae(e,t,r="Options"){if(!Ie(e,t))throw new TypeError(`${r} must be typeof [${t}], but [${typeof e}] was given.`);return!0}function Ie(e,t){if(typeof t=="string")return t==="array"&&Array.isArray(e)?!0:typeof e===t;{let r=t.includes("array");return!r&&t.includes(typeof e)?!0:r&&(t.includes(typeof e)||Array.isArray(e))}}var Ne=i(()=>{"use strict"});var ut=re((af,lt)=>{"use strict";Ne();var V={default:{name:"default",description:"Set default value if original value is undefined or null",validator(e,t,{modifier:r}){return e==null&&r.setThis(t),!0}},required:{name:"required",description:"Value is required",error:":param is required.",validator:(e,t)=>t?typeof e>"u"||e===null?!1:typeof e=="string"||Array.isArray(e)?e.length>0:!0:!0},typeof:{name:"typeof",description:"Value is typeof :option",error:":param is not typeof :option",validator:function(t,r){return r===!1?!0:(typeof r=="string"&&r.includes(",")&&(r=r.split(",")),Ie(t,r))}},exact:{name:"exact",error:":param failed exact validator",description:"Value is === :option",validator:(e,t)=>e===t},min:{name:"min",error:":param is too small. (Min. :option)",description:"Number: Value is >= :option",validator:(e,t,r)=>{let a=isNaN(e);return typeof e=="string"&&a||Array.isArray(e)?V.minLength.validator(e,t,r):a?!1:Number(e)>=Number(t)}},max:{name:"max",error:":param is too big. (Max. :option)",description:"Number: Value is <= :option",validator:(e,t,r)=>{let a=isNaN(e);return typeof e=="string"&&a||Array.isArray(e)?V.maxLength.validator(e,t,r):a?!1:Number(e)<=Number(t)}},minLength:{name:"minLength",error:":param is too short. (Min. :option characters)",description:"Value length is >= :option",validator:(e,t,{error:r})=>typeof e=="string"?e.trim().length>=Number(t):Array.isArray(e)?e.length>=Number(t)?!0:r(`:param length is too short. (Min: ${t})`):!1},maxLength:{name:"maxLength",error:":param is too long. (Max. :option characters)",description:"Value length is <= :option",validator:(e,t,{error:r})=>typeof e=="string"?e.trim().length<=Number(t):Array.isArray(e)?e.length<=Number(t)?!0:r(`:param length is too long. (Max: ${t})`):!1},size:{name:"size",error:":param must be of size: [:option]",description:"Check the size of a String, Array, or Object",validator:(e,t,{error:r})=>{let a;if(typeof e=="string"||Array.isArray(e))a=e.length;else if(typeof e=="object")try{a=Object.keys(e).length}catch(o){return r(o.message)}return a===void 0?!1:Array.isArray(t)?t.includes(a):a===Number(t)}},object:{name:"object",validator:(e,t,{error:r,modifier:a,abolish:o})=>{if(!e||typeof e!="object")return r(":param must be an object.");let[s,f]=o.validate(e,t);if(s)return r(s.message,s);a.setThis(f)},description:["Object: Value is an object"]},objectAsync:{name:"objectAsync",isAsync:!0,validator:async(e,t,{error:r,modifier:a,abolish:o})=>{if(!e||typeof e!="object")return r(":param must be an object.");let[s,f]=await o.validateAsync(e,t);if(s)return r(s.message,s);a.setThis(f)}},$inline:{name:"$inline",error:":param failed inline validation.",validator:(e,t,r)=>t(e,r),description:"Register a custom validation function inline."}};V.type=Object.assign({},V.typeof);V.type.name="type";V.type.error=":param is not of type :option";V.type.description="Alias: typeof";for(let e of Object.keys(V)){let t=V[e];Object.defineProperty(t.validator,"name",{value:t.name})}lt.exports=V});var So,dt,pt=i(()=>{So=typeof global=="object"&&global&&global.Object===Object&&global,dt=So});var Co,jo,W,xe=i(()=>{pt();Co=typeof self=="object"&&self&&self.Object===Object&&self,jo=dt||Co||Function("return this")(),W=jo});var _o,C,he=i(()=>{xe();_o=W.Symbol,C=_o});function ko(e){var t=$o.call(e,oe),r=e[oe];try{e[oe]=void 0;var a=!0}catch{}var o=To.call(e);return a&&(t?e[oe]=r:delete e[oe]),o}var mt,$o,To,oe,ct,xt=i(()=>{he();mt=Object.prototype,$o=mt.hasOwnProperty,To=mt.toString,oe=C?C.toStringTag:void 0;ct=ko});function Io(e){return Po.call(e)}var Eo,Po,ht,yt=i(()=>{Eo=Object.prototype,Po=Eo.toString;ht=Io});function Fo(e){return e==null?e===void 0?Do:No:bt&&bt in Object(e)?ct(e):ht(e)}var No,Do,bt,U,ye=i(()=>{he();xt();yt();No="[object Null]",Do="[object Undefined]",bt=C?C.toStringTag:void 0;U=Fo});function Mo(e){return e!=null&&typeof e=="object"}var G,be=i(()=>{G=Mo});function Lo(e){return typeof e=="symbol"||G(e)&&U(e)==zo}var zo,H,ge=i(()=>{ye();be();zo="[object Symbol]";H=Lo});function Wo(e,t){for(var r=-1,a=e==null?0:e.length,o=Array(a);++r<a;)o[r]=t(e[r],r,e);return o}var gt,Rt=i(()=>{gt=Wo});var Uo,$,ie=i(()=>{Uo=Array.isArray,$=Uo});function Ot(e){if(typeof e=="string")return e;if($(e))return gt(e,Ot)+"";if(H(e))return vt?vt.call(e):"";var t=e+"";return t=="0"&&1/e==-Go?"-0":t}var Go,At,vt,Vt,wt=i(()=>{he();Rt();ie();ge();Go=1/0,At=C?C.prototype:void 0,vt=At?At.toString:void 0;Vt=Ot});function Ho(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var F,Re=i(()=>{F=Ho});function Jo(e){if(!F(e))return!1;var t=U(e);return t==Ko||t==Zo||t==Bo||t==qo}var Bo,Ko,Zo,qo,St,Ct=i(()=>{ye();Re();Bo="[object AsyncFunction]",Ko="[object Function]",Zo="[object GeneratorFunction]",qo="[object Proxy]";St=Jo});var Yo,Ae,jt=i(()=>{xe();Yo=W["__core-js_shared__"],Ae=Yo});function Xo(e){return!!_t&&_t in e}var _t,$t,Tt=i(()=>{jt();_t=function(){var e=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();$t=Xo});function ti(e){if(e!=null){try{return ei.call(e)}catch{}try{return e+""}catch{}}return""}var Qo,ei,kt,Et=i(()=>{Qo=Function.prototype,ei=Qo.toString;kt=ti});function li(e){if(!F(e)||$t(e))return!1;var t=St(e)?fi:ai;return t.test(kt(e))}var ri,ai,oi,ii,si,ni,fi,Pt,It=i(()=>{Ct();Tt();Re();Et();ri=/[\\^$.*+?()[\]{}|]/g,ai=/^\[object .+?Constructor\]$/,oi=Function.prototype,ii=Object.prototype,si=oi.toString,ni=ii.hasOwnProperty,fi=RegExp("^"+si.call(ni).replace(ri,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");Pt=li});function ui(e,t){return e?.[t]}var Nt,Dt=i(()=>{Nt=ui});function di(e,t){var r=Nt(e,t);return Pt(r)?r:void 0}var B,ve=i(()=>{It();Dt();B=di});var pi,De,Ft=i(()=>{ve();pi=function(){try{var e=B(Object,"defineProperty");return e({},"",{}),e}catch{}}(),De=pi});function xi(e,t){var r=typeof e;return t=t??mi,!!t&&(r=="number"||r!="symbol"&&ci.test(e))&&e>-1&&e%1==0&&e<t}var mi,ci,Oe,Fe=i(()=>{mi=9007199254740991,ci=/^(?:0|[1-9]\d*)$/;Oe=xi});function hi(e,t,r){t=="__proto__"&&De?De(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Mt,zt=i(()=>{Ft();Mt=hi});function yi(e,t){return e===t||e!==e&&t!==t}var Ve,Me=i(()=>{Ve=yi});function Ri(e,t,r){var a=e[t];(!(gi.call(e,t)&&Ve(a,r))||r===void 0&&!(t in e))&&Mt(e,t,r)}var bi,gi,Lt,Wt=i(()=>{zt();Me();bi=Object.prototype,gi=bi.hasOwnProperty;Lt=Ri});function vi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ai}var Ai,Ut,Gt=i(()=>{Ai=9007199254740991;Ut=vi});function Vi(e){return G(e)&&U(e)==Oi}var Oi,ze,Ht=i(()=>{ye();be();Oi="[object Arguments]";ze=Vi});var Bt,wi,Si,Ci,Kt,Zt=i(()=>{Ht();be();Bt=Object.prototype,wi=Bt.hasOwnProperty,Si=Bt.propertyIsEnumerable,Ci=ze(function(){return arguments}())?ze:function(e){return G(e)&&wi.call(e,"callee")&&!Si.call(e,"callee")},Kt=Ci});function $i(e,t){if($(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||H(e)?!0:_i.test(e)||!ji.test(e)||t!=null&&e in Object(t)}var ji,_i,qt,Jt=i(()=>{ie();ge();ji=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_i=/^\w*$/;qt=$i});var Ti,j,se=i(()=>{ve();Ti=B(Object,"create"),j=Ti});function ki(){this.__data__=j?j(null):{},this.size=0}var Yt,Xt=i(()=>{se();Yt=ki});function Ei(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Qt,er=i(()=>{Qt=Ei});function Di(e){var t=this.__data__;if(j){var r=t[e];return r===Pi?void 0:r}return Ni.call(t,e)?t[e]:void 0}var Pi,Ii,Ni,tr,rr=i(()=>{se();Pi="__lodash_hash_undefined__",Ii=Object.prototype,Ni=Ii.hasOwnProperty;tr=Di});function zi(e){var t=this.__data__;return j?t[e]!==void 0:Mi.call(t,e)}var Fi,Mi,ar,or=i(()=>{se();Fi=Object.prototype,Mi=Fi.hasOwnProperty;ar=zi});function Wi(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=j&&t===void 0?Li:t,this}var Li,ir,sr=i(()=>{se();Li="__lodash_hash_undefined__";ir=Wi});function K(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}var Le,nr=i(()=>{Xt();er();rr();or();sr();K.prototype.clear=Yt;K.prototype.delete=Qt;K.prototype.get=tr;K.prototype.has=ar;K.prototype.set=ir;Le=K});function Ui(){this.__data__=[],this.size=0}var fr,lr=i(()=>{fr=Ui});function Gi(e,t){for(var r=e.length;r--;)if(Ve(e[r][0],t))return r;return-1}var T,ne=i(()=>{Me();T=Gi});function Ki(e){var t=this.__data__,r=T(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():Bi.call(t,r,1),--this.size,!0}var Hi,Bi,ur,dr=i(()=>{ne();Hi=Array.prototype,Bi=Hi.splice;ur=Ki});function Zi(e){var t=this.__data__,r=T(t,e);return r<0?void 0:t[r][1]}var pr,mr=i(()=>{ne();pr=Zi});function qi(e){return T(this.__data__,e)>-1}var cr,xr=i(()=>{ne();cr=qi});function Ji(e,t){var r=this.__data__,a=T(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var hr,yr=i(()=>{ne();hr=Ji});function Z(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}var br,gr=i(()=>{lr();dr();mr();xr();yr();Z.prototype.clear=fr;Z.prototype.delete=ur;Z.prototype.get=pr;Z.prototype.has=cr;Z.prototype.set=hr;br=Z});var Yi,Rr,Ar=i(()=>{ve();xe();Yi=B(W,"Map"),Rr=Yi});function Xi(){this.size=0,this.__data__={hash:new Le,map:new(Rr||br),string:new Le}}var vr,Or=i(()=>{nr();gr();Ar();vr=Xi});function Qi(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Vr,wr=i(()=>{Vr=Qi});function es(e,t){var r=e.__data__;return Vr(t)?r[typeof t=="string"?"string":"hash"]:r.map}var k,fe=i(()=>{wr();k=es});function ts(e){var t=k(this,e).delete(e);return this.size-=t?1:0,t}var Sr,Cr=i(()=>{fe();Sr=ts});function rs(e){return k(this,e).get(e)}var jr,_r=i(()=>{fe();jr=rs});function as(e){return k(this,e).has(e)}var $r,Tr=i(()=>{fe();$r=as});function os(e,t){var r=k(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var kr,Er=i(()=>{fe();kr=os});function q(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}var We,Pr=i(()=>{Or();Cr();_r();Tr();Er();q.prototype.clear=vr;q.prototype.delete=Sr;q.prototype.get=jr;q.prototype.has=$r;q.prototype.set=kr;We=q});function Ue(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(is);var r=function(){var a=arguments,o=t?t.apply(this,a):a[0],s=r.cache;if(s.has(o))return s.get(o);var f=e.apply(this,a);return r.cache=s.set(o,f)||s,f};return r.cache=new(Ue.Cache||We),r}var is,Ir,Nr=i(()=>{Pr();is="Expected a function";Ue.Cache=We;Ir=Ue});function ns(e){var t=Ir(e,function(a){return r.size===ss&&r.clear(),a}),r=t.cache;return t}var ss,Dr,Fr=i(()=>{Nr();ss=500;Dr=ns});var fs,ls,us,Mr,zr=i(()=>{Fr();fs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ls=/\\(\\)?/g,us=Dr(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(fs,function(r,a,o,s){t.push(o?s.replace(ls,"$1"):a||r)}),t}),Mr=us});function ds(e){return e==null?"":Vt(e)}var E,le=i(()=>{wt();E=ds});function ps(e,t){return $(e)?e:qt(e,t)?[e]:Mr(E(e))}var P,ue=i(()=>{ie();Jt();zr();le();P=ps});function cs(e){if(typeof e=="string"||H(e))return e;var t=e+"";return t=="0"&&1/e==-ms?"-0":t}var ms,I,de=i(()=>{ge();ms=1/0;I=cs});function xs(e,t){t=P(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[I(t[r++])];return r&&r==a?e:void 0}var we,Ge=i(()=>{ue();de();we=xs});function hs(e,t,r){var a=e==null?void 0:we(e,t);return a===void 0?r:a}var He,Lr=i(()=>{Ge();He=hs});function ys(e,t,r){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(o);++a<o;)s[a]=e[a+t];return s}var Se,Be=i(()=>{Se=ys});function bs(e,t,r){var a=e.length;return r=r===void 0?a:r,!t&&r>=a?e:Se(e,t,r)}var Wr,Ur=i(()=>{Be();Wr=bs});function Cs(e){return Ss.test(e)}var gs,Rs,As,vs,Os,Vs,ws,Ss,Ce,Ke=i(()=>{gs="\\ud800-\\udfff",Rs="\\u0300-\\u036f",As="\\ufe20-\\ufe2f",vs="\\u20d0-\\u20ff",Os=Rs+As+vs,Vs="\\ufe0e\\ufe0f",ws="\\u200d",Ss=RegExp("["+ws+gs+Os+Vs+"]");Ce=Cs});function js(e){return e.split("")}var Gr,Hr=i(()=>{Gr=js});function Ls(e){return e.match(zs)||[]}var Br,_s,$s,Ts,ks,Es,Ps,Ze,qe,Is,Kr,Zr,qr,Ns,Jr,Yr,Ds,Fs,Ms,zs,Xr,Qr=i(()=>{Br="\\ud800-\\udfff",_s="\\u0300-\\u036f",$s="\\ufe20-\\ufe2f",Ts="\\u20d0-\\u20ff",ks=_s+$s+Ts,Es="\\ufe0e\\ufe0f",Ps="["+Br+"]",Ze="["+ks+"]",qe="\\ud83c[\\udffb-\\udfff]",Is="(?:"+Ze+"|"+qe+")",Kr="[^"+Br+"]",Zr="(?:\\ud83c[\\udde6-\\uddff]){2}",qr="[\\ud800-\\udbff][\\udc00-\\udfff]",Ns="\\u200d",Jr=Is+"?",Yr="["+Es+"]?",Ds="(?:"+Ns+"(?:"+[Kr,Zr,qr].join("|")+")"+Yr+Jr+")*",Fs=Yr+Jr+Ds,Ms="(?:"+[Kr+Ze+"?",Ze,Zr,qr,Ps].join("|")+")",zs=RegExp(qe+"(?="+qe+")|"+Ms+Fs,"g");Xr=Ls});function Ws(e){return Ce(e)?Xr(e):Gr(e)}var ea,ta=i(()=>{Hr();Ke();Qr();ea=Ws});function Us(e){return function(t){t=E(t);var r=Ce(t)?ea(t):void 0,a=r?r[0]:t.charAt(0),o=r?Wr(r,1).join(""):t.slice(1);return a[e]()+o}}var ra,aa=i(()=>{Ur();Ke();ta();le();ra=Us});var Gs,oa,ia=i(()=>{aa();Gs=ra("toUpperCase"),oa=Gs});function Hs(e,t,r,a){var o=-1,s=e==null?0:e.length;for(a&&s&&(r=e[++o]);++o<s;)r=t(r,e[o],o,e);return r}var sa,na=i(()=>{sa=Hs});function Bs(e){return function(t){return e?.[t]}}var fa,la=i(()=>{fa=Bs});var Ks,Zs,ua,da=i(()=>{la();Ks={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Zs=fa(Ks),ua=Zs});function rn(e){return e=E(e),e&&e.replace(qs,ua).replace(tn,"")}var qs,Js,Ys,Xs,Qs,en,tn,pa,ma=i(()=>{da();le();qs=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Js="\\u0300-\\u036f",Ys="\\ufe20-\\ufe2f",Xs="\\u20d0-\\u20ff",Qs=Js+Ys+Xs,en="["+Qs+"]",tn=RegExp(en,"g");pa=rn});function on(e){return e.match(an)||[]}var an,ca,xa=i(()=>{an=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;ca=on});function nn(e){return sn.test(e)}var sn,ha,ya=i(()=>{sn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;ha=nn});function $n(e){return e.match(_n)||[]}var va,fn,ln,un,dn,Oa,Va,pn,mn,cn,xn,wa,hn,Sa,Ca,ba,yn,ja,bn,_a,$a,gn,Rn,An,Ta,ka,J,vn,ga,On,Ra,Aa,Ea,Pa,Vn,wn,Sn,Cn,jn,_n,Ia,Na=i(()=>{va="\\ud800-\\udfff",fn="\\u0300-\\u036f",ln="\\ufe20-\\ufe2f",un="\\u20d0-\\u20ff",dn=fn+ln+un,Oa="\\u2700-\\u27bf",Va="a-z\\xdf-\\xf6\\xf8-\\xff",pn="\\xac\\xb1\\xd7\\xf7",mn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cn="\\u2000-\\u206f",xn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wa="A-Z\\xc0-\\xd6\\xd8-\\xde",hn="\\ufe0e\\ufe0f",Sa=pn+mn+cn+xn,Ca="['\u2019]",ba="["+Sa+"]",yn="["+dn+"]",ja="\\d+",bn="["+Oa+"]",_a="["+Va+"]",$a="[^"+va+Sa+ja+Oa+Va+wa+"]",gn="\\ud83c[\\udffb-\\udfff]",Rn="(?:"+yn+"|"+gn+")",An="[^"+va+"]",Ta="(?:\\ud83c[\\udde6-\\uddff]){2}",ka="[\\ud800-\\udbff][\\udc00-\\udfff]",J="["+wa+"]",vn="\\u200d",ga="(?:"+_a+"|"+$a+")",On="(?:"+J+"|"+$a+")",Ra="(?:"+Ca+"(?:d|ll|m|re|s|t|ve))?",Aa="(?:"+Ca+"(?:D|LL|M|RE|S|T|VE))?",Ea=Rn+"?",Pa="["+hn+"]?",Vn="(?:"+vn+"(?:"+[An,Ta,ka].join("|")+")"+Pa+Ea+")*",wn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cn=Pa+Ea+Vn,jn="(?:"+[bn,Ta,ka].join("|")+")"+Cn,_n=RegExp([J+"?"+_a+"+"+Ra+"(?="+[ba,J,"$"].join("|")+")",On+"+"+Aa+"(?="+[ba,J+ga,"$"].join("|")+")",J+"?"+ga+"+"+Ra,J+"+"+Aa,Sn,wn,ja,jn].join("|"),"g");Ia=$n});function Tn(e,t,r){return e=E(e),t=r?void 0:t,t===void 0?ha(e)?Ia(e):ca(e):e.match(t)||[]}var Da,Fa=i(()=>{xa();ya();le();Na();Da=Tn});function Pn(e){return function(t){return sa(Da(pa(t).replace(En,"")),e,"")}}var kn,En,Ma,za=i(()=>{na();ma();Fa();kn="['\u2019]",En=RegExp(kn,"g");Ma=Pn});function In(e,t,r){t=P(t,e);for(var a=-1,o=t.length,s=!1;++a<o;){var f=I(t[a]);if(!(s=e!=null&&r(e,f)))break;e=e[f]}return s||++a!=o?s:(o=e==null?0:e.length,!!o&&Ut(o)&&Oe(f,o)&&($(e)||Kt(e)))}var La,Wa=i(()=>{ue();Zt();ie();Fe();Gt();de();La=In});function Nn(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Ua,Ga=i(()=>{Ua=Nn});function Mn(e,t){return e!=null&&Fn.call(e,t)}var Dn,Fn,Ha,Ba=i(()=>{Dn=Object.prototype,Fn=Dn.hasOwnProperty;Ha=Mn});function zn(e,t){return e!=null&&La(e,t,Ha)}var Je,Ka=i(()=>{Ba();Wa();Je=zn});function Ln(e,t){return t.length<2?e:we(e,Se(t,0,-1))}var Za,qa=i(()=>{Ge();Be();Za=Ln});function Wn(e,t){return t=P(t,e),e=Za(e,t),e==null||delete e[I(Ua(t))]}var Ja,Ya=i(()=>{ue();Ga();qa();de();Ja=Wn});function Un(e,t,r,a){if(!F(e))return e;t=P(t,e);for(var o=-1,s=t.length,f=s-1,l=e;l!=null&&++o<s;){var n=I(t[o]),u=r;if(n==="__proto__"||n==="constructor"||n==="prototype")return e;if(o!=f){var d=l[n];u=a?a(d,n,l):void 0,u===void 0&&(u=F(d)?d:Oe(t[o+1])?[]:{})}Lt(l,n,u),l=l[n]}return e}var Xa,Qa=i(()=>{Wt();ue();Fe();Re();de();Xa=Un});function Gn(e,t,r){return e==null?e:Xa(e,t,r)}var Ye,eo=i(()=>{Qa();Ye=Gn});var Hn,je,to=i(()=>{za();ia();Hn=Ma(function(e,t,r){return e+(r?" ":"")+oa(t)}),je=Hn});function Bn(e,t){return e==null?!0:Ja(e,t)}var _e,ro=i(()=>{Ya();_e=Bn});var Xe=i(()=>{Lr();Ka();eo();to();ro();});function Y(e,t){return t?t.config.useStartCaseInErrors?je(e):e:je(e)}function X(e,t,r){let a={};if(r===void 0?t.some(M):r)for(let s of t)a[s]=_(e,s);else for(let s of t)a[s]=e[s];return a}function ao(e,t){let r={};for(let a in e)t.includes(a)||(r[a]=e[a]);return r}function Qe(e,t,r,a){return a===void 0&&M(t)?Ye(e,t,r):(e[t]=r,e)}function _(e,t,r){return r===void 0&&M(t)?He(e,t):e[t]}function M(e){return e.indexOf(".")!==-1}var $e=i(()=>{"use strict";Xe()});var io={};it(io,{Rule:()=>Q,RuleTyped:()=>Kn,Schema:()=>oo,SchemaTyped:()=>Zn});function Q(e){Array.isArray(e)||(e=[e]);let t={};for(let r of e)typeof r=="string"&&(r=(0,et.default)(r)),t={...t,...r};return t}function Kn(e){return Q(e)}function oo(e){let t={};for(let r of Object.keys(e)){let a=e[r];r==="$include"||(typeof a=="string"?a=(0,et.default)(a):Array.isArray(a)&&(a=Q(a))),t[r]=a}return t}function Zn(e){return oo(e)}var et,tt=i(()=>{"use strict";et=L(Pe())});var at=re((op,so)=>{"use strict";var rt=class{constructor(t,r){this.code="default";return this.message=t,r&&(this.data=r),this}setCode(t){return this.code=t,this}setData(t){return this.data=t,this}setMessage(t){return this.message=t,this}};so.exports=rt});var fo=re((np,no)=>{"use strict";$e();Xe();var ot=class{constructor(t,r,a=!1){this.$hasData=!0;return this.data=t,this.path=r,this.name=a,this.pathHasDotNotation=M(r),this}flagNoData(){return this.$hasData=!1,this}setData(t){return this.data=t,this.$hasData=!0,this}get hasData(){return this.$hasData}get(t){return _(this.data,t)}getThis(){return this.get(this.path)}has(t){return Je(this.data,t)}set(t,r){return Qe(this.data,t,r)}setThis(t){return Qe(this.data,this.path,t,this.pathHasDotNotation)}unset(t){return _e(this.data,t)}unsetThis(){return _e(this.data,this.path)}getName(){return this.name||Y(this.path)}getNameRaw(){return this.name||this.path}};no.exports=ot});function lo(e,t,r,a,o){let s=a.error,f=null,l="default",n=!1;return r instanceof Te.default&&(n=!0,s=r.message,f=r.data,l=r.code),a.errorFn&&(n=!0,s=a.errorFn({code:l,data:f,validator:a.name,value:t})),n&&(s.includes(":param")&&(s=s.replace(":param",o||e)),a.optionString&&s.includes(":option")&&(s=s.replace(":option",a.optionString))),[{code:l,key:e,type:"validator",validator:a.name,message:s,data:f},{}]}var Te,N,uo=i(()=>{"use strict";Te=L(at());$e();N=class{constructor(){this.data={};this.fields=[];this.includedFields=[];this.fieldsHasDotNotation=!1;this.isObject=!0;this.async=!1}validateObject(t){if(!this.isObject)throw new Error("Variable compiled schema cannot be used to validate an object, use object compiled schema!");if(this.async)throw new Error("Rules contains an async validator, use validateObjectAsync instead!");let r={...t},a=this.fields;for(let s in this.data){let f=this.data[s],l=_(r,s,this.fieldsHasDotNotation);if(f.$skip){let n=f.$skip;if(typeof n=="function"&&(n=n(l,r)),n){this.includedFields.includes(s)||(a=a.filter(u=>u!==s));continue}}for(let n of f.validators){let u=!1;try{u=n.func(l,r)}catch(d){return[{code:"default",key:s,type:"internal",validator:n.name,message:d.message,data:d.stack},{}]}if(typeof u!==void 0&&(u===!1||u instanceof Te.default))return lo(s,l,u,n,f.$name)}}let o;if(a.length===1){let s=a[0];o={[s]:r[s]}}else a.length>1?o=X(r,a,this.fieldsHasDotNotation):o={};return[void 0,o]}async validateObjectAsync(t){if(!this.isObject)throw new Error("Variable compiled schema cannot be used to validate an object, use object compiled schema!");let r={...t},a=this.fields;for(let s in this.data){let f=this.data[s],l=_(r,s,this.fieldsHasDotNotation);if(f.$skip){let n=f.$skip;if(typeof n=="function"&&(n=n(l,r)),n){this.includedFields.includes(s)||(a=a.filter(u=>u!==s));continue}}for(let n of f.validators){let u=!1;try{n.async?u=await n.func(l,r):u=n.func(l,r)}catch(d){return[{code:"default",key:s,type:"internal",validator:n.name,message:d.message,data:d.stack},{}]}if(typeof u!==void 0&&(u===!1||u instanceof Te.default))return lo(s,l,u,n,f.$name)}}let o;if(a.length===1){let s=a[0];o={[s]:r[s]}}else a.length>1?o=X(r,a,this.fieldsHasDotNotation):o={};return[void 0,o]}validateVariable(t){if(this.isObject)throw new Error("Object compiled cannot be used to validate a variable, use regular compiled schema!");this.isObject=!0;let r=this.validateObject({variable:t});return this.isObject=!1,r[1]=r[1].variable,r}async validateVariableAsync(t){if(this.isObject)throw new Error("Object compiled cannot be used to validate a variable, use regular compiled schema!");this.isObject=!0;let r=await this.validateObjectAsync({variable:t});return this.isObject=!1,r[1]=r[1].variable,r}validate(t){return this.isObject?this.validateObject(t):this.validateVariable(t)}async validateAsync(t){return this.isObject?this.validateObjectAsync(t):this.validateVariableAsync(t)}}});var po={};it(po,{AttemptError:()=>z,SuperKeys:()=>te,default:()=>qn});var pe,ee,D,ke,z,te,me,qn,mo=i(()=>{"use strict";pe=L(Pe()),ee=L(ut());$e();tt();D=L(at()),ke=L(fo());uo();Ne();z=class extends Error{constructor(r){super(r.message);this.name="AttemptError",this.error=r}static instanceOf(r){return r instanceof z}},te=Object.freeze({Fields:["*","$","$include"],Rules:["$name","$skip","$error","$errors"]}),me=class{constructor(){this.validators={};this.config={useStartCaseInErrors:!0}}static getGlobalValidators(){return ee.default}static getGlobalValidatorsList(){return Object.keys(this.getGlobalValidators())}static addGlobalValidator(t){if(typeof t=="object"&&!Array.isArray(t))t.error||(t.error=`:param failed {${t.name}} validation.`),ee.default[t.name]=t,Object.defineProperty(t.validator,"name",{value:t.name});else throw new TypeError("addGlobalValidator argument must be an object.");return this}static addGlobalValidators(t){if(typeof t=="object"&&(t=Object.values(t)),Array.isArray(t))for(let r of t)me.addGlobalValidator(r);else throw new TypeError("addGlobalValidators argument must be an array or an object");return this}useStartCaseInErrors(t=!0){return this.config.useStartCaseInErrors=t,this}addValidator(t){if(typeof t=="object"&&!Array.isArray(t))t.error||(t.error=`:param failed {${t.name}} validation.`),this.validators[t.name]=t;else throw new TypeError("addValidator argument must be an object.");return this}addValidators(t){if(typeof t=="object"&&(t=Object.values(t)),Array.isArray(t))for(let r of t)this.addValidator(r);else throw new TypeError("addValidators argument must be an array or an object");return this}static validate(t,r){return new this().validate(t,r)}static validateAsync(t,r){return new this().validateAsync(t,r)}validate(t,r,a=!1){if(r instanceof N)return r.validateObject(t);let o={validated:{},jobs:[],keysToBeValidated:[],includeKeys:[]},s={};(r.hasOwnProperty("*")||r.hasOwnProperty("$"))&&(s=r["*"]||r.$,typeof s=="string"&&(s=(0,pe.default)(s)));let f={...t},l=[];if(r.hasOwnProperty("$include")&&(l=r.$include,!Array.isArray(l)))throw new Error("$include has to be an array!");let n=Object.keys(r);n=n.filter(u=>!te.Fields.includes(u));for(let u of n){let d=r[u];typeof d=="string"?d=(0,pe.default)(d):Array.isArray(d)&&(d=Q(d));let h=!1;if(d.hasOwnProperty("$skip")&&(h=d.$skip,typeof h=="function"&&(h=h(f[u])),typeof h!="boolean"))throw new Error(`$skip value or resolved function value must be a BOOLEAN in RuleFor: (${u})`);if(h)n=n.filter(R=>R!==u);else{let R=!1;if(d.hasOwnProperty("$name")&&(R=d.$name,typeof R!="string"))throw new Error(`$name must be a string in RuleFor: (${u})`);let b;if(d.hasOwnProperty("$error")&&(b=d.$error,!b||typeof b!="string"&&typeof b!="function"))throw new Error(`$error value must be a STRING or FUNCTION in RuleFor: (${u})`);let c;if(d.hasOwnProperty("$errors")&&(c=d.$errors,!c||typeof c!="object"))throw new Error(`$errors value must be an OBJECT in RuleFor: (${u})`);d={...s,...ao(d,te.Rules)};for(let p of Object.keys(d)){if(!this.validators.hasOwnProperty(p)&&!ee.default.hasOwnProperty(p))throw new Error(`Validator: {${p}} does not exists but defined in rules`);let g=this.validators[p]||ee.default[p];if(!a&&g.isAsync)throw new Error(`Validator: {${p}} is async, use async method instead.`);let O=d[p],A=_(f,u);if(a)o.jobs.push({$name:R,rule:u,validator:g,validatorName:p,validatorOption:O,$error:b,$errors:c});else{let m=!1;try{m=g.validator(A,O,{error:(x,y)=>new D.default(x,y),modifier:new ke.default(f,u,R),abolish:this})}catch(x){return[{code:"default",key:u,type:"internal",validator:p,message:x.message,data:x.stack},{}]}if(m===!1||m instanceof D.default){let x,y=null,v="default";if(m instanceof D.default&&(x=m.message,y=m.data,v=m.code),b&&(typeof b=="function"?x=b({code:v,validator:p,data:y,value:A}):x=b),c&&c[p]){let Ee=c[p];typeof Ee=="function"?x=Ee({code:v,data:y,validator:p,value:A}):x=Ee}let S=typeof O=="string"||typeof O=="number"||Array.isArray(O);return x=(x||g.error).replace(":param",R||Y(u,this)),S&&(x=x.replace(":option",String(O))),[{code:v,key:u,type:"validator",validator:p,message:x,data:y},{}]}}}}}return a?(o.validated=f,o.keysToBeValidated=n,o.includeKeys=l,o):(f=X(f,n.concat(l)),[void 0,f])}validateAsync(t,r){if(r instanceof N)return r.validateObjectAsync(t);let a=this.validate(t,r,!0),{validated:o,jobs:s,keysToBeValidated:f,includeKeys:l}=a;return new Promise(async n=>{for(let u of s){let{$name:d,rule:h,validator:R,validatorName:b,validatorOption:c,$error:p,$errors:g}=u,O=_(o,h),A=!1;try{A=await R.validator(O,c,{error:(m,x)=>new D.default(m,x),modifier:new ke.default(o,h,d),abolish:this})}catch(m){return n([{code:"default",key:h,type:"internal",validator:b,message:m.message,data:m.stack},{}])}if(A===!1||A instanceof D.default){let m,x=null,y="default";if(A instanceof D.default&&(m=A.message,x=A.data,y=A.code),p&&(typeof p=="function"?m=p({code:y,validator:b,data:x,value:O}):m=p),g&&g[b]){let S=g[b];typeof S=="function"?m=S({code:y,data:x,validator:b,value:O}):m=S}return m=(m||R.error).replace(":param",d||Y(h,this)),(typeof c=="string"||typeof c=="number")&&(m=m.replace(":option",String(c))),n([{code:y,key:h,type:"validator",validator:b,message:m,data:x},{}])}}return n([void 0,X(o,f.concat(l))])})}check(t,r){if(r instanceof N)return r.validateVariable(t);let[a,o]=this.validate({variable:t},{variable:r,$include:["variable"]});return[a,o?.variable]}static check(t,r){return new this().check(t,r)}async checkAsync(t,r){if(r instanceof N)return r.validateVariableAsync(t);let[a,o]=await this.validateAsync({variable:t},{variable:r,$include:["variable"]});return[a,o?.variable]}static checkAsync(t,r){return new this().checkAsync(t,r)}attempt(t,r){let a=this.check(t,r);if(a[0])throw new z(a[0]);return a[1]}static attempt(t,r,a){return new this().attempt(t,r)}async attemptAsync(t,r){let a=await this.checkAsync(t,r);if(a[0])throw new z(a[0]);return a[1]}static async attemptAsync(t,r){return new this().attemptAsync(t,r)}test(t,r){return!this.check(t,r)[0]}static test(t,r){return new this().test(t,r)}async testAsync(t,r){return!(await this.checkAsync(t,r))[0]}static testAsync(t,r){return new this().testAsync(t,r)}static compileObject(t,r){let a=new(r||this),o=new N,s,f=[];for(let[l,n]of Object.entries(t))["*","$"].includes(l)?(s=n,typeof s=="string"&&(s=(0,pe.default)(s))):l==="$include"&&(f=n);for(let[l,n]of Object.entries(t)){if(te.Fields.includes(l))continue;let u={validators:[]},d=n;typeof n=="string"?d=(0,pe.default)(n):Array.isArray(n)&&(d=Q(n)),s&&(d={...s,...d});let h,R={};for(let[c,p]of Object.entries(d))!te.Rules.includes(c)||(c==="$name"?(ae(p,["string"],"$name"),u.$name=p):c==="$skip"?(ae(p,["boolean","function"],"$skip"),u.$skip=p):c==="$error"?(ae(p,["string","function"],"$error"),h=p):c==="$errors"&&(ae(p,["object"],"$errors"),R=p));!u.$name&&a.config.useStartCaseInErrors&&(u.$name=Y(l));let b=new ke.default({},l).flagNoData();for(let[c,p]of Object.entries(d)){if(te.Rules.includes(c))continue;let g=a.validators[c]||ee.default[c];if(!g)throw new Error(`Validator ${c} not found`);g.isAsync&&(o.async=!0);let O=typeof p=="string"||typeof p=="number"||typeof p=="boolean"||Array.isArray(p),A={abolish:a,modifier:b,error:(v,S)=>new D.default(v,S)};g.error||(g.error=`:param failed {${g.name}} validation.`);let m=g.error,x;if(h&&(typeof h=="string"?m=h:typeof h=="function"&&(x=h)),R&&R[c]){let v=R[c];typeof v=="string"?m=v:typeof v=="function"&&(x=v)}m.includes(":param")&&(m=m.replace(/:param/g,u.$name||l));let y={name:c,option:p,error:m,async:g.isAsync===!0,func:(v,S)=>(A.modifier.hasData||A.modifier.setData(S),g.validator(v,p,A))};x&&(y.errorFn=x),O&&(y.optionString=String(p),y.error=y.error.replace(/:option/g,y.optionString)),Object.defineProperty(y.func,"name",{value:`Wrapped(${c})`}),u.validators.push(y)}o.data[l]=u}return Object.keys(o.data).forEach(l=>{o.fields.includes(l)||o.fields.push(l)}),f.forEach(l=>{o.fields.includes(l)||o.fields.push(l)}),o.includedFields=f,o.fieldsHasDotNotation=o.fields.some(M),o}static compile(t){let r=this.compileObject({variable:t,$include:["variable"]});return r.isObject=!1,r}},qn=me});var Xn=re(w=>{var Jn=w&&w.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(w,"__esModule",{value:!0});w.Schema=w.Rule=w.Abolish=void 0;var Yn=Jn((mo(),nt(po)));w.Abolish=Yn.default;var co=(tt(),nt(io));Object.defineProperty(w,"Rule",{enumerable:!0,get:function(){return co.Rule}});Object.defineProperty(w,"Schema",{enumerable:!0,get:function(){return co.Schema}})});export default Xn();
{
"name": "abolish",
"version": "6.0.1",
"version": "6.0.2",
"description": "A javascript object validator.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -733,8 +733,3 @@ "use strict";

}
else {
if (abolish.config.useStartCaseInErrors) {
compiledRule.$name = (0, inbuilt_fn_1.abolish_StartCase)(validatorName);
}
}
if (validatorName === "$skip") {
else if (validatorName === "$skip") {
// $skip = option as $skipRule;

@@ -756,2 +751,5 @@ (0, types_checker_1.assertType)(option, ["boolean", "function"], "$skip");

}
if (!compiledRule.$name && abolish.config.useStartCaseInErrors) {
compiledRule.$name = (0, inbuilt_fn_1.abolish_StartCase)(field);
}
/**

@@ -762,6 +760,2 @@ * Object modifier

/**
* Hold Skip Rule.
*/
// let $skip: $skipRule | undefined = undefined;
/**
* Loop Through each rule and generate validator

@@ -768,0 +762,0 @@ */

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc