shapeit
Version:
Object validation tools for Javascript and, specially, Typescript
2 lines (1 loc) • 18.4 kB
JavaScript
var _r=Object.defineProperty,br=Object.defineProperties;var wr=Object.getOwnPropertyDescriptors;var hn=Object.getOwnPropertySymbols;var vr=Object.prototype.hasOwnProperty,mr=Object.prototype.propertyIsEnumerable;var yn=(l,w,j)=>w in l?_r(l,w,{enumerable:!0,configurable:!0,writable:!0,value:j}):l[w]=j,te=(l,w)=>{for(var j in w||(w={}))vr.call(w,j)&&yn(l,j,w[j]);if(hn)for(var j of hn(w))mr.call(w,j)&&yn(l,j,w[j]);return l},_n=(l,w)=>br(l,wr(w));(function(l,w){typeof exports=="object"&&typeof module!="undefined"?w(exports):typeof define=="function"&&define.amd?define(["exports"],w):(l=typeof globalThis!="undefined"?globalThis:l||self,w(l.shapeit={}))})(this,function(l){"use strict";const w={errorMessage:t=>`Invalid type provided. Expected: '${t}'`,sizeErrorMessage:t=>`Invalid size provided. Expected: ${t}`,showWarnings:!0},j=te({},w);function bn(t,i){return i==="default"?w[t]=j[t]:w[t]=i}function Y(t){return w[t]}var wn=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",set:bn,get:Y});const Ee=t=>Y("errorMessage")(t),Pe=t=>Y("sizeErrorMessage")(t);function Ce(t){const i=Object.entries(t).flatMap(([u,o])=>(o==null?void 0:o.map(f=>({path:u,message:f})))||[]),a=te({},t);return Object.defineProperty(a,"all",{value:i,configurable:!1,enumerable:!1,writable:!1}),a}function Ie(t,i){if(!t)throw new ye(i)}class ye extends Error{}async function Me(t,...i){const a={};if(!i.length)throw new Error("No rule specified");const u=i.length>1?i:i[0];return await re(t,u,"$",a),Object.keys(a).length?{valid:!1,errors:Ce(a)}:{valid:!0,errors:null}}async function re(t,i,a,u){if(typeof i=="function"){const o=i;try{await o(t,Ie)}catch(f){if(!(f instanceof ye))throw f;(u[a]||(u[a]=[])).push(f.message)}}else{let o=[];Array.isArray(i)?o=i.map(f=>re(t,f,a,u)):Array.isArray(t)&&"$each"in i?o=t.map((f,c)=>re(f,i.$each,`${a}.${c}`,u)):typeof t=="object"&&t!==null&&(o=Object.keys(i).filter(c=>c in t).map(c=>re(t[c],i[c],`${a}.${c}`,u))),await Promise.all(o)}}function S(t,i){let a=null,u=null,o=!1,f=!1;const c=Object.defineProperties(d=>{o=!0,f=!1;const p=i(d);return o=!1,f||(a=p?null:{$:[Ee(t)]}),Y("showWarnings")&&(f&&p&&a?console.warn(`[Shapeit Warning] custom guard ${t} error was set when input was valid`):f&&!p&&!a&&console.warn(`[Shapeit Warning] custom guard ${t} error was set to null when input was not valid`)),u=a?Ce(a):null,p},{errors:{get(){return u},set(d){if(!o){Y("showWarnings")&&console.warn("[Shapeit warning] guard errors override outside validator detected");return}a=d,f=!0}},typename:{value:t,configurable:!1,enumerable:!0,writable:!1},validate:{value:(...d)=>async p=>{if(!c(p))return{typed:!1,valid:!1,errors:c.errors,target:p};const v=await Me(p,...d);return _n(te({typed:!0},v),{target:p})},configurable:!1,enumerable:!0,writable:!1}});return c}const vn=S;function mn(t){return typeof t=="function"&&"_shape"in t}function An(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!Object.getOwnPropertySymbols(t).length}function Z(t){return typeof t=="string"?ze(t):t}function On(t,i=1/0){const a=Z(t);if(i<=0)throw new Error("maxLength should be greater than 0");const u=S("array",o=>{if(!Array.isArray(o))return!1;if(o.length>i)return u.errors={$:[Pe(`<= ${i}`)]},!1;let f=!0;const c={};for(let d=0;d<o.length;++d){const p=a(o[d]);if(f=f&&p,a.errors)for(const{path:v,message:T}of a.errors.all){const M=`$.${d}`,E=v.replace("$",M);(c[E]||(c[E]=[])).push(T)}}return u.errors=f?null:c,f});return u}function B(...t){if(!t.length)throw new Error("No guards provided");const i=t.map(Z),a=S("one-of",u=>{const o=i.some(f=>f(u));if(!o){const f={};for(const c of i)for(const{path:d,message:p}of c.errors.all)(f[d]||(f[d]=[])).push(p);a.errors=f}return o});return a}function H(t,i=!0){const a=Object.entries(t).reduce((f,[c,d])=>(f[c]=Z(d),f),{}),u=Object.keys(t),o=Object.assign(S("object",f=>{if(!An(f))return!1;let c=!0,d={};if(i){const v=Object.keys(Sn(f,u));v.length&&(d=v.reduce((T,M)=>(T[`$.${M}`]=[Ee("undefined")],T),{}),c=!1)}const p=u.map(v=>[`$.${v}`,a[v],f[v]]);for(const[v,T,M]of p){const E=T(M);if(c=c&&E,T.errors)for(const{path:ae,message:be}of T.errors.all){const G=ae.replace("$",v);(d[G]||(d[G]=[])).push(be)}}return o.errors=c?null:d,c}),{_shape:{schema:t,strict:i}});return o}function Sn(t,i){const a=te({},t);for(const u of i)delete a[u];return a}function xe(t){const{schema:i,strict:a}=t._shape,u=Object.entries(i).reduce((o,[f,c])=>(mn(c)?o[f]=B(xe(c),"undefined"):o[f]=B(c,"undefined"),o),{});return H(u,a)}function ze(t){return S(t,a=>(a===null?"null":typeof a)===t)}function Tn(t){return B(t,"undefined")}function $n(t){return B(t,"null")}function jn(t){const{schema:i,strict:a}=t._shape,u=Object.entries(i).reduce((o,[f,c])=>(o[f]=B(c,"undefined"),o),{});return H(u,a)}function En(...t){const i=t.map(Z),a=S("tuple",u=>{if(!Array.isArray(u))return!1;if(u.length!==i.length)return a.errors={$:[Pe(i.length)]},!1;const o={};let f=!0;for(let c=0;c<u.length;++c){const d=i[c],p=d(u[c]);if(f=f&&p,d.errors)for(const{path:v,message:T}of d.errors.all){const M=`$.${c}`,E=v.replace("$",M);(o[E]||(o[E]=[])).push(T)}}return a.errors=f?null:o,f});return a}var ie=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},_e={exports:{}};(function(t,i){var a=200,u="__lodash_hash_undefined__",o=1,f=2,c=9007199254740991,d="[object Arguments]",p="[object Array]",v="[object AsyncFunction]",T="[object Boolean]",M="[object Date]",E="[object Error]",ae="[object Function]",be="[object GeneratorFunction]",G="[object Map]",De="[object Number]",Kn="[object Null]",J="[object Object]",Ue="[object Promise]",Wn="[object Proxy]",Be="[object RegExp]",se="[object Set]",He="[object String]",qn="[object Symbol]",Vn="[object Undefined]",we="[object WeakMap]",Fe="[object ArrayBuffer]",oe="[object DataView]",Jn="[object Float32Array]",Xn="[object Float64Array]",Yn="[object Int8Array]",Zn="[object Int16Array]",Qn="[object Int32Array]",kn="[object Uint8Array]",et="[object Uint8ClampedArray]",nt="[object Uint16Array]",tt="[object Uint32Array]",rt=/[\\^$.*+?()[\]{}|]/g,it=/^\[object .+?Constructor\]$/,at=/^(?:0|[1-9]\d*)$/,h={};h[Jn]=h[Xn]=h[Yn]=h[Zn]=h[Qn]=h[kn]=h[et]=h[nt]=h[tt]=!0,h[d]=h[p]=h[Fe]=h[T]=h[oe]=h[M]=h[E]=h[ae]=h[G]=h[De]=h[J]=h[Be]=h[se]=h[He]=h[we]=!1;var Ke=typeof ie=="object"&&ie&&ie.Object===Object&&ie,st=typeof self=="object"&&self&&self.Object===Object&&self,z=Ke||st||Function("return this")(),We=i&&!i.nodeType&&i,qe=We&&!0&&t&&!t.nodeType&&t,Ve=qe&&qe.exports===We,ve=Ve&&Ke.process,Je=function(){try{return ve&&ve.binding&&ve.binding("util")}catch{}}(),Xe=Je&&Je.isTypedArray;function ot(e,n){for(var r=-1,s=e==null?0:e.length,y=0,g=[];++r<s;){var b=e[r];n(b,r,e)&&(g[y++]=b)}return g}function ut(e,n){for(var r=-1,s=n.length,y=e.length;++r<s;)e[y+r]=n[r];return e}function ft(e,n){for(var r=-1,s=e==null?0:e.length;++r<s;)if(n(e[r],r,e))return!0;return!1}function ct(e,n){for(var r=-1,s=Array(e);++r<e;)s[r]=n(r);return s}function lt(e){return function(n){return e(n)}}function dt(e,n){return e.has(n)}function gt(e,n){return e==null?void 0:e[n]}function pt(e){var n=-1,r=Array(e.size);return e.forEach(function(s,y){r[++n]=[y,s]}),r}function ht(e,n){return function(r){return e(n(r))}}function yt(e){var n=-1,r=Array(e.size);return e.forEach(function(s){r[++n]=s}),r}var _t=Array.prototype,bt=Function.prototype,ue=Object.prototype,me=z["__core-js_shared__"],Ye=bt.toString,x=ue.hasOwnProperty,Ze=function(){var e=/[^.]+$/.exec(me&&me.keys&&me.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Qe=ue.toString,wt=RegExp("^"+Ye.call(x).replace(rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ke=Ve?z.Buffer:void 0,fe=z.Symbol,en=z.Uint8Array,nn=ue.propertyIsEnumerable,vt=_t.splice,F=fe?fe.toStringTag:void 0,tn=Object.getOwnPropertySymbols,mt=ke?ke.isBuffer:void 0,At=ht(Object.keys,Object),Ae=X(z,"DataView"),Q=X(z,"Map"),Oe=X(z,"Promise"),Se=X(z,"Set"),Te=X(z,"WeakMap"),k=X(Object,"create"),Ot=q(Ae),St=q(Q),Tt=q(Oe),$t=q(Se),jt=q(Te),rn=fe?fe.prototype:void 0,$e=rn?rn.valueOf:void 0;function K(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var s=e[n];this.set(s[0],s[1])}}function Et(){this.__data__=k?k(null):{},this.size=0}function Pt(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function Ct(e){var n=this.__data__;if(k){var r=n[e];return r===u?void 0:r}return x.call(n,e)?n[e]:void 0}function It(e){var n=this.__data__;return k?n[e]!==void 0:x.call(n,e)}function Mt(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=k&&n===void 0?u:n,this}K.prototype.clear=Et,K.prototype.delete=Pt,K.prototype.get=Ct,K.prototype.has=It,K.prototype.set=Mt;function R(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var s=e[n];this.set(s[0],s[1])}}function xt(){this.__data__=[],this.size=0}function zt(e){var n=this.__data__,r=le(n,e);if(r<0)return!1;var s=n.length-1;return r==s?n.pop():vt.call(n,r,1),--this.size,!0}function Rt(e){var n=this.__data__,r=le(n,e);return r<0?void 0:n[r][1]}function Lt(e){return le(this.__data__,e)>-1}function Gt(e,n){var r=this.__data__,s=le(r,e);return s<0?(++this.size,r.push([e,n])):r[s][1]=n,this}R.prototype.clear=xt,R.prototype.delete=zt,R.prototype.get=Rt,R.prototype.has=Lt,R.prototype.set=Gt;function W(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var s=e[n];this.set(s[0],s[1])}}function Nt(){this.size=0,this.__data__={hash:new K,map:new(Q||R),string:new K}}function Dt(e){var n=de(this,e).delete(e);return this.size-=n?1:0,n}function Ut(e){return de(this,e).get(e)}function Bt(e){return de(this,e).has(e)}function Ht(e,n){var r=de(this,e),s=r.size;return r.set(e,n),this.size+=r.size==s?0:1,this}W.prototype.clear=Nt,W.prototype.delete=Dt,W.prototype.get=Ut,W.prototype.has=Bt,W.prototype.set=Ht;function ce(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new W;++n<r;)this.add(e[n])}function Ft(e){return this.__data__.set(e,u),this}function Kt(e){return this.__data__.has(e)}ce.prototype.add=ce.prototype.push=Ft,ce.prototype.has=Kt;function N(e){var n=this.__data__=new R(e);this.size=n.size}function Wt(){this.__data__=new R,this.size=0}function qt(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}function Vt(e){return this.__data__.get(e)}function Jt(e){return this.__data__.has(e)}function Xt(e,n){var r=this.__data__;if(r instanceof R){var s=r.__data__;if(!Q||s.length<a-1)return s.push([e,n]),this.size=++r.size,this;r=this.__data__=new W(s)}return r.set(e,n),this.size=r.size,this}N.prototype.clear=Wt,N.prototype.delete=qt,N.prototype.get=Vt,N.prototype.has=Jt,N.prototype.set=Xt;function Yt(e,n){var r=ge(e),s=!r&&lr(e),y=!r&&!s&&je(e),g=!r&&!s&&!y&&gn(e),b=r||s||y||g,m=b?ct(e.length,String):[],A=m.length;for(var _ in e)(n||x.call(e,_))&&!(b&&(_=="length"||y&&(_=="offset"||_=="parent")||g&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||sr(_,A)))&&m.push(_);return m}function le(e,n){for(var r=e.length;r--;)if(fn(e[r][0],n))return r;return-1}function Zt(e,n,r){var s=n(e);return ge(e)?s:ut(s,r(e))}function ee(e){return e==null?e===void 0?Vn:Kn:F&&F in Object(e)?ir(e):cr(e)}function an(e){return ne(e)&&ee(e)==d}function sn(e,n,r,s,y){return e===n?!0:e==null||n==null||!ne(e)&&!ne(n)?e!==e&&n!==n:Qt(e,n,r,s,sn,y)}function Qt(e,n,r,s,y,g){var b=ge(e),m=ge(n),A=b?p:D(e),_=m?p:D(n);A=A==d?J:A,_=_==d?J:_;var $=A==J,I=_==J,O=A==_;if(O&&je(e)){if(!je(n))return!1;b=!0,$=!1}if(O&&!$)return g||(g=new N),b||gn(e)?on(e,n,r,s,y,g):tr(e,n,A,r,s,y,g);if(!(r&o)){var P=$&&x.call(e,"__wrapped__"),C=I&&x.call(n,"__wrapped__");if(P||C){var U=P?e.value():e,L=C?n.value():n;return g||(g=new N),y(U,L,r,s,g)}}return O?(g||(g=new N),rr(e,n,r,s,y,g)):!1}function kt(e){if(!dn(e)||ur(e))return!1;var n=cn(e)?wt:it;return n.test(q(e))}function er(e){return ne(e)&&ln(e.length)&&!!h[ee(e)]}function nr(e){if(!fr(e))return At(e);var n=[];for(var r in Object(e))x.call(e,r)&&r!="constructor"&&n.push(r);return n}function on(e,n,r,s,y,g){var b=r&o,m=e.length,A=n.length;if(m!=A&&!(b&&A>m))return!1;var _=g.get(e);if(_&&g.get(n))return _==n;var $=-1,I=!0,O=r&f?new ce:void 0;for(g.set(e,n),g.set(n,e);++$<m;){var P=e[$],C=n[$];if(s)var U=b?s(C,P,$,n,e,g):s(P,C,$,e,n,g);if(U!==void 0){if(U)continue;I=!1;break}if(O){if(!ft(n,function(L,V){if(!dt(O,V)&&(P===L||y(P,L,r,s,g)))return O.push(V)})){I=!1;break}}else if(!(P===C||y(P,C,r,s,g))){I=!1;break}}return g.delete(e),g.delete(n),I}function tr(e,n,r,s,y,g,b){switch(r){case oe:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case Fe:return!(e.byteLength!=n.byteLength||!g(new en(e),new en(n)));case T:case M:case De:return fn(+e,+n);case E:return e.name==n.name&&e.message==n.message;case Be:case He:return e==n+"";case G:var m=pt;case se:var A=s&o;if(m||(m=yt),e.size!=n.size&&!A)return!1;var _=b.get(e);if(_)return _==n;s|=f,b.set(e,n);var $=on(m(e),m(n),s,y,g,b);return b.delete(e),$;case qn:if($e)return $e.call(e)==$e.call(n)}return!1}function rr(e,n,r,s,y,g){var b=r&o,m=un(e),A=m.length,_=un(n),$=_.length;if(A!=$&&!b)return!1;for(var I=A;I--;){var O=m[I];if(!(b?O in n:x.call(n,O)))return!1}var P=g.get(e);if(P&&g.get(n))return P==n;var C=!0;g.set(e,n),g.set(n,e);for(var U=b;++I<A;){O=m[I];var L=e[O],V=n[O];if(s)var pn=b?s(V,L,O,n,e,g):s(L,V,O,e,n,g);if(!(pn===void 0?L===V||y(L,V,r,s,g):pn)){C=!1;break}U||(U=O=="constructor")}if(C&&!U){var pe=e.constructor,he=n.constructor;pe!=he&&"constructor"in e&&"constructor"in n&&!(typeof pe=="function"&&pe instanceof pe&&typeof he=="function"&&he instanceof he)&&(C=!1)}return g.delete(e),g.delete(n),C}function un(e){return Zt(e,pr,ar)}function de(e,n){var r=e.__data__;return or(n)?r[typeof n=="string"?"string":"hash"]:r.map}function X(e,n){var r=gt(e,n);return kt(r)?r:void 0}function ir(e){var n=x.call(e,F),r=e[F];try{e[F]=void 0;var s=!0}catch{}var y=Qe.call(e);return s&&(n?e[F]=r:delete e[F]),y}var ar=tn?function(e){return e==null?[]:(e=Object(e),ot(tn(e),function(n){return nn.call(e,n)}))}:hr,D=ee;(Ae&&D(new Ae(new ArrayBuffer(1)))!=oe||Q&&D(new Q)!=G||Oe&&D(Oe.resolve())!=Ue||Se&&D(new Se)!=se||Te&&D(new Te)!=we)&&(D=function(e){var n=ee(e),r=n==J?e.constructor:void 0,s=r?q(r):"";if(s)switch(s){case Ot:return oe;case St:return G;case Tt:return Ue;case $t:return se;case jt:return we}return n});function sr(e,n){return n=n==null?c:n,!!n&&(typeof e=="number"||at.test(e))&&e>-1&&e%1==0&&e<n}function or(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function ur(e){return!!Ze&&Ze in e}function fr(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||ue;return e===r}function cr(e){return Qe.call(e)}function q(e){if(e!=null){try{return Ye.call(e)}catch{}try{return e+""}catch{}}return""}function fn(e,n){return e===n||e!==e&&n!==n}var lr=an(function(){return arguments}())?an:function(e){return ne(e)&&x.call(e,"callee")&&!nn.call(e,"callee")},ge=Array.isArray;function dr(e){return e!=null&&ln(e.length)&&!cn(e)}var je=mt||yr;function gr(e,n){return sn(e,n)}function cn(e){if(!dn(e))return!1;var n=ee(e);return n==ae||n==be||n==v||n==Wn}function ln(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=c}function dn(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function ne(e){return e!=null&&typeof e=="object"}var gn=Xe?lt(Xe):er;function pr(e){return dr(e)?Yt(e):nr(e)}function hr(){return[]}function yr(){return!1}t.exports=gr})(_e,_e.exports);var Pn=_e.exports;function Re(...t){if(t=t.filter(a=>typeof a!="function"),!t.length)throw new Error("No valid narrowable objects provided");if(t.length===1){const a=t[0],u=Le(a);return S(u,f=>Pn(f,a))}const i=t.map(a=>Re(a));return B(...i)}function Le(t){var o;const i=Cn(t);if(i!=="object")return["null","undefined"].includes(i)?i:i==="symbol"?`Symbol(${t.description})`:i==="string"?`[string] ${JSON.stringify(t)}`:`[${i}] ${t}`;const a=((o=Object.getPrototypeOf(t))==null?void 0:o.constructor.name)||"Object: null prototype",u=Object.entries(t).map(([f,c])=>`${JSON.stringify(f)}: ${Le(c)}`).join(", ");return`[${a}] {${u}}`}function Cn(t){var a;const i=t===null?"null":typeof t;if(i==="object"){const u=(a=Object.getPrototypeOf(t))==null?void 0:a.constructor;if(u===Number)return"number";if(u===String)return"string"}return i}const In={string:".*",number:"(?:\\d+\\.\\d*|\\d*\\.\\d+|\\d+)(?:[eE][+-]?\\d+)?",bigint:"\\d+",boolean:"true|false",null:"null",undefined:"undefined"};function Mn(...t){const i=t.map(o=>typeof o=="string"?{regex:In[o],typename:o}:o),a=i.map(o=>o.typename).join("|").replace(/\$/g,"\\$"),u="("+i.map(o=>`${o.regex}`).join("|")+")";return{typename:a,regex:u}}function xn(...t){const i=t.map(Ne).join("|");return{regex:`(${i})`,typename:i}}function Ge(...t){let i="(",a="`";for(const u of t)typeof u=="string"?(i+=Ne(u),a+=u):"regex"in u&&(i+=u.regex,a+=`\${${u.typename}}`);return i+=")",a+="`",{typename:a,regex:i}}function Ne(t){return typeof t!="string"&&(t=String(t)),t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}function zn(...t){const i=Ge(...t),a=`^${i.regex}$`,{typename:u}=i,o=new RegExp(a),f=S(u,c=>typeof c=="string"&&o.test(c));return delete i.typename,Object.assign(f,i)}function Rn(t,i){const{schema:a,strict:u}=t._shape,o=new Set(i),f=Object.entries(a).reduce((c,[d,p])=>(o.has(d)&&(c[d]=p),c),{});return H(f,u)}function Ln(t,i){const{schema:a,strict:u}=t._shape,o=new Set(i),f=Object.entries(a).reduce((c,[d,p])=>(o.has(d)||(c[d]=p),c),{});return H(f,u)}function Gn(t){return S(`${t.name} instance`,i=>i instanceof t)}function Nn(){return S("any",t=>!0)}function Dn(){return S("unknown",t=>!0)}function Un(){return S("never",t=>!1)}function Bn(...t){if(!t.length)throw new Error("No guards provided");const i=t.map(Z),a=S("all-of",u=>{var f;let o=!0;for(const c of i){const d=c(u);o&&(o=d)}if(!o){const c={};for(const d of i)for(const{path:p,message:v}of((f=d.errors)==null?void 0:f.all)||[])(c[p]||(c[p]=[])).push(v);a.errors=c}return o});return a}function Hn(t){return H(t,!1)}function Fn(t){return H(t,!0)}l.$=Mn,l.$$=xn,l.$$$=Ge,l.AssertionError=ye,l.allOf=Bn,l.any=Nn,l.arrayOf=On,l.assert=Ie,l.config=wn,l.custom=vn,l.deepPartial=xe,l.guard=S,l.instanceOf=Gn,l.is=ze,l.literal=zn,l.looseShape=Hn,l.maybe=Tn,l.narrow=Re,l.never=Un,l.nullable=$n,l.omit=Ln,l.oneOf=B,l.partial=jn,l.pick=Rn,l.shape=H,l.strictShape=Fn,l.tuple=En,l.unknown=Dn,l.validate=Me,Object.defineProperty(l,"__esModule",{value:!0}),l[Symbol.toStringTag]="Module"});