ramda-adjunct
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -0,1 +1,16 @@ | ||
<a name="2.6.0"></a> | ||
# [2.6.0](https://github.com/char0n/ramda-adjunct/compare/v2.5.0...v2.6.0) (2018-03-19) | ||
### Features | ||
* add concatAll ([#404](https://github.com/char0n/ramda-adjunct/issues/404)) ([341f3f1](https://github.com/char0n/ramda-adjunct/commit/341f3f1)), closes [#109](https://github.com/char0n/ramda-adjunct/issues/109) | ||
* add dispatch ([#407](https://github.com/char0n/ramda-adjunct/issues/407)) ([fb5aa08](https://github.com/char0n/ramda-adjunct/commit/fb5aa08)), closes [#66](https://github.com/char0n/ramda-adjunct/issues/66) | ||
* add ensureArray ([#375](https://github.com/char0n/ramda-adjunct/issues/375)) ([7b60189](https://github.com/char0n/ramda-adjunct/commit/7b60189)), closes [#371](https://github.com/char0n/ramda-adjunct/issues/371) | ||
* add isNonPositive, isNonNegative ([#434](https://github.com/char0n/ramda-adjunct/issues/434)) ([8d62dc1](https://github.com/char0n/ramda-adjunct/commit/8d62dc1)), closes [#324](https://github.com/char0n/ramda-adjunct/issues/324) | ||
* add isTrue, isFalse ([#435](https://github.com/char0n/ramda-adjunct/issues/435)) ([9687b51](https://github.com/char0n/ramda-adjunct/commit/9687b51)), closes [#255](https://github.com/char0n/ramda-adjunct/issues/255) | ||
* add omitBy ([#376](https://github.com/char0n/ramda-adjunct/issues/376)) ([c7c9c7e](https://github.com/char0n/ramda-adjunct/commit/c7c9c7e)), closes [#171](https://github.com/char0n/ramda-adjunct/issues/171) | ||
<a name="2.5.0"></a> | ||
@@ -2,0 +17,0 @@ # [2.5.0](https://github.com/char0n/ramda-adjunct/compare/v2.4.1...v2.5.0) (2018-02-14) |
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("ramda")):"function"==typeof define&&define.amd?define(["ramda"],n):"object"==typeof exports?exports.RA=n(require("ramda")):t.RA=n(t.ramda)}("undefined"!=typeof self?self:this,function(t){return function(t){function n(r){if(e[r])return e[r].exports;var c=e[r]={i:r,l:!1,exports:{}};return t[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=1)}([function(n,e){n.exports=t},function(t,n,e){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var c=e(0),u=Object(c.always)(void 0),o=u,i=Object(c.equals)(o()),a=i,f=Object(c.complement)(a),b=f,s=Object(c.equals)(null),l=s,j=Object(c.complement)(l),p=j,O=Object(c.complement)(c.isNil),d=O,y=e(2),m=e.n(y),h=Array.isArray||m.a,v=h,N=Object(c.both)(v,c.isEmpty),g=N,P=Object(c.complement)(v),S=P,x=Object(c.complement)(c.isEmpty),q=x,A=Object(c.both)(v,q),E=A,F=Object(c.is)(Boolean),w=F,I=Object(c.complement)(w),R=I,k=Object(c.anyPass)([c.isNil,c.isEmpty]),T=k,_=e(3),D=e.n(_),L=D.a,B=L,z=Object(c.equals)(""),V=z,G=Object(c.complement)(B),M=G,U=null;try{U=new Function("return function* () {}")().constructor}catch(t){}var W=function(t){var n="[object GeneratorFunction]"===Object.prototype.toString.call(t),e=p(U)&&t instanceof U;return n||e},K=W,C=function(t){return"[object AsyncFunction]"===Object.prototype.toString.call(t)},Y=C,H=Object(c.anyPass)([function(t){return"[object Function]"===Object.prototype.toString.call(t)},K,Y]),J=H,Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X=function(t){return"object"===(void 0===t?"undefined":Q(t))},Z=X,$=Object(c.both)(p,Object(c.anyPass)([Z,J])),tt=$,nt=Object(c.complement)(tt),et=nt,rt=Object(c.allPass)([B,et,q]),ct=rt,ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot=function(t){return!!v(t)||!!t&&(!B(t)&&("object"===(void 0===t?"undefined":ut(t))&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(Object(c.has)(0,t)&&Object(c.has)(t.length-1,t)))))},it=ot,at=Object(c.complement)(it),ft=at,bt=Object(c.complement)(K),st=bt,lt=Object(c.complement)(Y),jt=lt,pt=Object(c.complement)(J),Ot=pt,dt=Object(c.both)(p,Z),yt=dt,mt=Object(c.complement)(yt),ht=mt,vt=e(4),Nt=e.n(vt),gt=Object(c.pipe)(c.toString,Object(c.equals)(Object(c.toString)(Object))),Pt=Object(c.pathSatisfies)(Object(c.both)(J,gt),["constructor"]),St=function(t){if(!yt(t)||!Nt()(t))return!1;var n=Object.getPrototypeOf(t);return!!l(n)||Pt(n)},xt=St,qt=Object(c.complement)(xt),At=qt,Et=Object(c.is)(Date),Ft=Et,wt=Object(c.complement)(Ft),It=wt,Rt=e(5),kt=e.n(Rt),Tt=kt.a,_t=Tt,Dt=Object(c.both)(_t,isNaN),Lt=Dt,Bt=Number.isNaN||Lt,zt=Bt,Vt=Object(c.complement)(zt),Gt=Vt,Mt=Object(c.both)(Ft,Object(c.pipe)(Object(c.invoker)(0,"getTime"),Gt)),Ut=Mt,Wt=Object(c.complement)(Ut),Kt=Wt,Ct=Object(c.complement)(_t),Yt=Ct,Ht=Object(c.both)(_t,Object(c.lt)(0)),Jt=Ht,Qt=Object(c.both)(_t,Object(c.gt)(0)),Xt=Qt,Zt=Object(c.both)(_t,isFinite),$t=Zt,tn=Number.isFinite||$t,nn=tn,en=Object(c.complement)(nn),rn=en,cn=Object(c.both)(nn,Object(c.converge)(c.equals,[Math.floor,c.identity])),un=cn,on=Number.isInteger||un,an=on,fn=Object(c.complement)(an),bn=fn,sn=Object(c.both)(nn,Object(c.complement)(an)),ln=sn,jn=Object(c.complement)(ln),pn=jn,On=Object(c.either)(an,ln),dn=On,yn=Object(c.complement)(dn),mn=yn,hn=Object(c.both)(an,Object(c.pipe)(Object(c.flip)(c.modulo)(2),Object(c.complement)(c.equals)(0))),vn=hn,Nn=Object(c.both)(an,Object(c.complement)(vn)),gn=Nn,Pn=Object(c.both)(v,Object(c.pipe)(c.length,Object(c.equals)(2))),Sn=Pn,xn=Object(c.complement)(Sn),qn=xn,An=Object(c.pathSatisfies)(J,["then"]),En=An,Fn=Object(c.both)(tt,Object(c.pipe)(c.toString,Object(c.equals)("[object Promise]"))),wn=Fn,In=Object(c.pipe)(Boolean,Object(c.equals)(!0)),Rn=In,kn=Object(c.complement)(Rn),Tn=kn,_n=Object(c.is)(RegExp),Dn=_n,Ln=Object(c.complement)(Dn),Bn=Ln,zn=Object(c.always)(null),Vn=zn,Gn=function(){return{}},Mn=Gn,Un=Object(c.always)(""),Wn=Un,Kn=function(){return[]},Cn=Kn,Yn=Object(c.always)(o()),Hn=Yn,Jn=Object.freeze({equals:"fantasy-land/equals",lte:"fantasy-land/lte",compose:"fantasy-land/compose",id:"fantasy-land/id",concat:"fantasy-land/concat",empty:"fantasy-land/empty",map:"fantasy-land/map",contramap:"fantasy-land/contramap",ap:"fantasy-land/ap",of:"fantasy-land/of",alt:"fantasy-land/alt",zero:"fantasy-land/zero",reduce:"fantasy-land/reduce",traverse:"fantasy-land/traverse",chain:"fantasy-land/chain",chainRec:"fantasy-land/chainRec",extend:"fantasy-land/extend",extract:"fantasy-land/extract",bimap:"fantasy-land/bimap",promap:"fantasy-land/promap"}),Qn=Jn,Xn=Object(c.anyPass)([Object(c.pathSatisfies)(J,["map"]),Object(c.pathSatisfies)(J,[Qn.map])]),Zn=Object(c.both)(Xn,Object(c.anyPass)([Object(c.pathSatisfies)(J,["ap"]),Object(c.pathSatisfies)(J,[Qn.ap])])),$n=Object(c.curryN)(2,function(t,n){if(!Zn(t)||!Zn(n))return Object(c.ap)(t,n);try{return t.ap(n)}catch(e){return n.ap(t)}}),te=$n,ne=Object(c.curry)(function(t,n){var e=Object(c.curryN)(t,n);return Object(c.curryN)(t,function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var u=Object(c.map)(e,Object(c.head)(n)),o=Object(c.slice)(1,1/0,n);return Object(c.reduce)(te,u,o)})}),ee=ne,re=function(t){return ee(t.length,t)},ce=re,ue=Object(c.curry)(function(t,n,e){return J(e.cata)?e.cata(t,n):e.either(t,n)}),oe=ue,ie=Object(c.curryN)(2,function(t,n){return Object(c.curryN)(t.length,function(){return t.apply(void 0,arguments).run(n)})}),ae=ie,fe=Object(c.curryN)(2,function(t,n){return Object(c.curryN)(t.length,function(){return t.apply(void 0,arguments).run(n())})}),be=fe,se=Object(c.curryN)(2,function(t,n){return Object(c.curryN)(t,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.apply(this,Object(c.reverse)(e))})}),le=se,je=Object(c.converge)(le,[c.length,c.identity]),pe=je,Oe=Object(c.bind)(Promise.all,Promise),de=Oe,ye=Object(c.bind)(Promise.resolve,Promise),me=ye,he=Object(c.bind)(Promise.reject,Promise),ve=he,Ne=function(t){return function(t){return t(t)}(function(n){return t(function(t){return n(n)(t)})})},ge=Ne,Pe=Object(c.curry)(function(t,n){return Object(c.tap)(function(n){return Object(c.map)(function(t){return t(n)})(t)})(n)}),Se=Pe,xe=Object(c.addIndex)(c.map),qe=xe,Ae=Object(c.addIndex)(c.reduce),Ee=Ae,Fe=Object(c.addIndex)(c.filter),we=Object(c.curry)(function(t,n,e){return Object(c.contains)(e,t)}),Ie=Object(c.curry)(function(t,n){return Fe(we(t),n)}),Re=Ie,ke=Object(c.unapply)(c.identity),Te=ke,_e=Object(c.flip)(c.concat),De=_e,Le=Object(c.curryN)(3,function(t,n,e){return me(e).then(function(e){var r=Object(c.length)(e);return 0===r?n:Object(c.reduce)(function(n,e){return n.then(function(t){return de([t,e])}).then(function(n){var e=n[0],c=n[1];return a(e)&&1===r?c:t(e,c)})})(me(n),e)})}),Be=Le,ze=Object(c.pipe)(Object(c.reduceRight)(c.concat,""),Object(c.equals)("ba"))(["a","b"]),Ve=Object(c.curryN)(3,function(t,n,e){return me(e).then(function(e){var r=Object(c.length)(e);return 0===r?n:Object(c.reduceRight)(function(n,e){var c=void 0,u=void 0;return ze?(c=n,u=e):(c=e,u=n),c.then(function(t){return de([t,u])}).then(function(n){var e=n[0],c=n[1];return a(e)&&1===r?c:t(c,e)})})(me(n),e)})}),Ge=Ve,Me=Object(c.slice)(c.__,1/0),Ue=Me,We=Object(c.slice)(0),Ke=We,Ce=Object(c.addIndex)(c.reject),Ye=Object(c.curry)(function(t,n,e){return Object(c.contains)(e,t)}),He=Object(c.curry)(function(t,n){return Ce(Ye(t),n)}),Je=He,Qe=Object(c.reject)(Tn),Xe=Qe,Ze=Object(c.flip)(c.append),$e=Ze,tr=Object(c.curry)(function(t,n){return Object(c.ap)([Object(c.path)(c.__,n)],t)}),nr=tr,er=Object(c.curry)(function(t,n){return Object(c.pipe)(c.toPairs,Object(c.map)(Object(c.adjust)(t,0)),c.fromPairs)(n)}),rr=er,cr=function(t){return function(n){return Object(c.has)(n,t)?t[n]:n}},ur=Object(c.curry)(function(t,n){return rr(cr(t),n)}),or=ur,ir=Object(c.flip)(c.merge),ar=ir,fr=Object(c.curryN)(2,Object(c.pipe)(c.props,c.mergeAll)),br=fr,sr=Object(c.curryN)(2,Object(c.pipe)(nr,c.mergeAll)),lr=sr,jr=Object(c.curry)(function(t,n,e){return Object(c.over)(Object(c.lensPath)(t),ar(n),e)}),pr=jr,Or=Object(c.curry)(function(t,n,e){return pr(Object(c.of)(t),n,e)}),dr=Or,yr=Object(c.curryN)(3,function(t,n,e){return Object(c.defaultTo)(t,Object(c.view)(n,e))}),mr=yr,hr=Object(c.curryN)(2,function(t,n){var e=Object(c.head)(t);return!(0===Object(c.length)(t)||!tt(n))&&(1===Object(c.length)(t)?Object(c.has)(e,n):hr(Object(c.tail)(t),Object(c.path)([e],n)))}),vr=hr,Nr=Object(c.curryN)(2,Object(c.converge)(c.merge,[c.dissocPath,Object(c.pathOr)({})])),gr=Nr,Pr=Object(c.curry)(function(t,n){return gr(Object(c.of)(t),n)}),Sr=Pr,xr=Object(c.curry)(function(t,n){return Object(c.merge)(n,Object(c.pathOr)({},t,n))}),qr=xr,Ar=Object(c.curry)(function(t,n){return qr(Object(c.of)(t),n)}),Er=Ar,Fr=Object(c.curryN)(3,function(t,n,e){return Object(c.pipe)(Object(c.view)(t),Object(c.equals)(n))(e)}),wr=Fr,Ir=Object(c.complement)(wr),Rr=Ir,kr=Object(c.curryN)(3,function(t,n,e){return Object(c.pipe)(Object(c.view)(n),t,Object(c.equals)(!0))(e)}),Tr=kr,_r=Object(c.complement)(Tr),Dr=_r,Lr=function(t,n){var e=function(n){return t(n)};return e.from=n,e},Br=function(t,n){return Lr(Object(c.curry)(function(e,r){return Object(c.map)(n,e(t(r)))}),Object(c.curry)(function(e,r){return Object(c.map)(t,e(n(r)))}))},zr=Object(c.curry)(function(t,n){return t.from(n)}),Vr=Object(c.curry)(Br);Vr.from=zr;var Gr,Mr,Ur,Wr,Kr,Cr,Yr=Vr,Hr=Object(c.complement)(c.propEq),Jr=Hr,Qr=Object(c.complement)(c.pathEq),Xr=Qr,Zr=Object(c.curry)(function(t,n,e){return t(e)?n:e}),$r=Zr,tc=Object(c.compose)(c.complement,c.both),nc=tc,ec=Object(c.compose)(c.complement,c.either),rc=ec,cc=Object(c.compose)(c.complement,c.allPass),uc=cc,oc=Object(c.compose)(c.complement,c.anyPass),ic=oc,ac=Object(c.either)(Object(c.path)(["@@type"]),Object(c.path)(["constructor","@@type"])),fc=Object(c.curryN)(2,Object(c.useWith)(c.equals,[ac,ac])),bc=Object(c.pipe)(c.toPairs,Object(c.map)(Object(c.over)(Object(c.lensIndex)(0),Object(c.replace)("fantasy-land/","")))),sc=(Gr={},Gr[Qn.map]=function(t){return this.constructor[Qn.of](t(this.value))},Gr),lc=(Mr={},Mr[Qn.ap]=function(t){var n=this;return t.map(function(t){return t(n.value)})},Mr),jc=(Ur={},Ur[Qn.equals]=function(t){return fc(this,t)&&Object(c.equals)(this.value,t.value)},Ur),pc=(Wr={},Wr[Qn.concat]=function(t){var n=this.value;return B(this.value)||_t(this.value)?n=this.value+t.value:Object(c.pathSatisfies)(J,["value",Qn.concat],this)?n=this.value[Qn.concat](t.value):Object(c.pathSatisfies)(J,["value","concat"],this)&&(n=this.value.concat(t.value)),this.constructor[Qn.of](n)},Wr),Oc=(Kr={},Kr[Qn.chain]=function(t){var n=t(this.value);return fc(this,n)?n:this},Kr),dc=(Cr={},Cr[Qn.lte]=function(t){return fc(this,t)&&(this.value<t.value||this[Qn.equals](t))},Cr),yc=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),mc=Qn.of,hc=Qn.ap,vc=Qn.map,Nc=Qn.equals,gc=Qn.concat,Pc=Qn.chain,Sc=Qn.lte,xc=Qn.empty,qc=Qn.contramap,Ac=function(){function t(n){r(this,t),this.value=n}return t[mc]=function(n){return new t(n)},yc(t,null,[{key:"@@type",get:function(){return"RA/Identity"}}]),t.prototype.get=function(){return this.value},t.prototype[hc]=function(t){return lc[hc].call(this,t)},t.prototype[vc]=function(t){return sc[vc].call(this,t)},t.prototype[Nc]=function(t){return jc[Nc].call(this,t)},t.prototype[gc]=function(t){return pc[gc].call(this,t)},t.prototype[Pc]=function(t){return Oc[Pc].call(this,t)},t.prototype[Sc]=function(t){return dc[Sc].call(this,t)},t.prototype[xc]=function(){return this.constructor.of(Object(c.empty)(this.value))},t.prototype[qc]=function(t){var n=this;return this.constructor.of(function(e){return n.value(t(e))})},t}();bc(Ac).forEach(function(t){var n=t[0],e=t[1];Ac[n]=e}),bc(Ac.prototype).forEach(function(t){var n=t[0],e=t[1];Ac.prototype[n]=e});var Ec=Ac;e.d(n,"isNotUndefined",function(){return b}),e.d(n,"isUndefined",function(){return a}),e.d(n,"isNull",function(){return l}),e.d(n,"isNotNull",function(){return p}),e.d(n,"isNotNil",function(){return d}),e.d(n,"isArray",function(){return v}),e.d(n,"isEmptyArray",function(){return g}),e.d(n,"isNotArray",function(){return S}),e.d(n,"isNonEmptyArray",function(){return E}),e.d(n,"isBoolean",function(){return w}),e.d(n,"isNotBoolean",function(){return R}),e.d(n,"isNilOrEmpty",function(){return T}),e.d(n,"isString",function(){return B}),e.d(n,"isEmptyString",function(){return V}),e.d(n,"isNotString",function(){return M}),e.d(n,"isNonEmptyString",function(){return ct}),e.d(n,"isArrayLike",function(){return it}),e.d(n,"isNotArrayLike",function(){return ft}),e.d(n,"isGeneratorFunction",function(){return K}),e.d(n,"isNotGeneratorFunction",function(){return st}),e.d(n,"isAsyncFunction",function(){return Y}),e.d(n,"isNotAsyncFunction",function(){return jt}),e.d(n,"isFunction",function(){return J}),e.d(n,"isNotFunction",function(){return Ot}),e.d(n,"isObj",function(){return tt}),e.d(n,"isObject",function(){return tt}),e.d(n,"isNotObj",function(){return et}),e.d(n,"isNotObject",function(){return et}),e.d(n,"isObjLike",function(){return yt}),e.d(n,"isObjectLike",function(){return yt}),e.d(n,"isNotObjLike",function(){return ht}),e.d(n,"isNotObjectLike",function(){return ht}),e.d(n,"isPlainObj",function(){return xt}),e.d(n,"isPlainObject",function(){return xt}),e.d(n,"isNotPlainObj",function(){return At}),e.d(n,"isNotPlainObject",function(){return At}),e.d(n,"isDate",function(){return Ft}),e.d(n,"isNotDate",function(){return It}),e.d(n,"isValidDate",function(){return Ut}),e.d(n,"isNotValidDate",function(){return Kt}),e.d(n,"isInvalidDate",function(){return Kt}),e.d(n,"isNumber",function(){return _t}),e.d(n,"isNotNumber",function(){return Yt}),e.d(n,"isPositive",function(){return Jt}),e.d(n,"isNegative",function(){return Xt}),e.d(n,"isNaN",function(){return zt}),e.d(n,"isNotNaN",function(){return Gt}),e.d(n,"isFinite",function(){return nn}),e.d(n,"isNotFinite",function(){return rn}),e.d(n,"isInteger",function(){return an}),e.d(n,"isNotInteger",function(){return bn}),e.d(n,"isFloat",function(){return ln}),e.d(n,"isNotFloat",function(){return pn}),e.d(n,"isValidNumber",function(){return dn}),e.d(n,"isNotValidNumber",function(){return mn}),e.d(n,"isOdd",function(){return vn}),e.d(n,"isEven",function(){return gn}),e.d(n,"isPair",function(){return Sn}),e.d(n,"isNotPair",function(){return qn}),e.d(n,"isThenable",function(){return En}),e.d(n,"isPromise",function(){return wn}),e.d(n,"isTruthy",function(){return Rn}),e.d(n,"isFalsy",function(){return Tn}),e.d(n,"isRegExp",function(){return Dn}),e.d(n,"isNotRegExp",function(){return Bn}),e.d(n,"stubUndefined",function(){return o}),e.d(n,"stubNull",function(){return Vn}),e.d(n,"stubObj",function(){return Mn}),e.d(n,"stubObject",function(){return Mn}),e.d(n,"stubString",function(){return Wn}),e.d(n,"stubArray",function(){return Cn}),e.d(n,"noop",function(){return Hn}),e.d(n,"liftFN",function(){return ee}),e.d(n,"liftF",function(){return ce}),e.d(n,"cata",function(){return oe}),e.d(n,"weave",function(){return ae}),e.d(n,"weaveLazy",function(){return be}),e.d(n,"curryRightN",function(){return le}),e.d(n,"curryRight",function(){return pe}),e.d(n,"allP",function(){return de}),e.d(n,"resolveP",function(){return me}),e.d(n,"rejectP",function(){return ve}),e.d(n,"Y",function(){return ge}),e.d(n,"seq",function(){return Se}),e.d(n,"sequencing",function(){return Se}),e.d(n,"mapIndexed",function(){return qe}),e.d(n,"reduceIndexed",function(){return Ee}),e.d(n,"pickIndexes",function(){return Re}),e.d(n,"list",function(){return Te}),e.d(n,"concatRight",function(){return De}),e.d(n,"reduceP",function(){return Be}),e.d(n,"reduceRightP",function(){return Ge}),e.d(n,"sliceFrom",function(){return Ue}),e.d(n,"sliceTo",function(){return Ke}),e.d(n,"omitIndexes",function(){return Je}),e.d(n,"compact",function(){return Xe}),e.d(n,"appendFlipped",function(){return $e}),e.d(n,"paths",function(){return nr}),e.d(n,"renameKeys",function(){return or}),e.d(n,"renameKeysWith",function(){return rr}),e.d(n,"mergeRight",function(){return ar}),e.d(n,"resetToDefault",function(){return ar}),e.d(n,"mergeProps",function(){return br}),e.d(n,"mergePaths",function(){return lr}),e.d(n,"mergeProp",function(){return dr}),e.d(n,"mergePath",function(){return pr}),e.d(n,"viewOr",function(){return mr}),e.d(n,"hasPath",function(){return vr}),e.d(n,"spreadProp",function(){return Sr}),e.d(n,"spreadPath",function(){return gr}),e.d(n,"flattenProp",function(){return Er}),e.d(n,"flattenPath",function(){return qr}),e.d(n,"lensEq",function(){return wr}),e.d(n,"lensNotEq",function(){return Rr}),e.d(n,"lensSatisfies",function(){return Tr}),e.d(n,"lensNotSatisfy",function(){return Dr}),e.d(n,"lensIso",function(){return Yr}),e.d(n,"propNotEq",function(){return Jr}),e.d(n,"pathNotEq",function(){return Xr}),e.d(n,"isNotEmpty",function(){return q}),e.d(n,"defaultWhen",function(){return $r}),e.d(n,"notBoth",function(){return nc}),e.d(n,"neither",function(){return rc}),e.d(n,"notAllPass",function(){return uc}),e.d(n,"nonePass",function(){return ic}),e.d(n,"Identity",function(){return Ec})},function(t,n){t.exports=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)}},function(t,n){function e(t){return"[object String]"===Object.prototype.toString.call(t)}t.exports=e},function(t,n){function e(t){return"[object Object]"===Object.prototype.toString.call(t)}t.exports=e},function(t,n){function e(t){return"[object Number]"===Object.prototype.toString.call(t)}t.exports=e}])}); | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("ramda")):"function"==typeof define&&define.amd?define(["ramda"],n):"object"==typeof exports?exports.RA=n(require("ramda")):t.RA=n(t.ramda)}("undefined"!=typeof self?self:this,function(t){return function(t){function n(r){if(e[r])return e[r].exports;var c=e[r]={i:r,l:!1,exports:{}};return t[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=1)}([function(n,e){n.exports=t},function(t,n,e){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var c=e(0),u=Object(c.always)(void 0),o=u,i=Object(c.equals)(o()),a=i,f=Object(c.complement)(a),b=f,s=Object(c.equals)(null),l=s,j=Object(c.complement)(l),p=j,O=Object(c.complement)(c.isNil),d=O,y=e(2),m=e.n(y),h=Array.isArray||m.a,v=h,N=Object(c.both)(v,c.isEmpty),g=N,P=Object(c.complement)(v),S=P,x=Object(c.complement)(c.isEmpty),q=x,A=Object(c.both)(v,q),E=A,F=Object(c.is)(Boolean),w=F,I=Object(c.complement)(w),R=I,k=Object(c.either)(c.isNil,c.isEmpty),T=k,_=e(3),B=e.n(_),D=B.a,L=D,z=Object(c.equals)(""),V=z,W=Object(c.complement)(L),G=W,M=null;try{M=new Function("return function* () {}")().constructor}catch(t){}var U=function(t){var n="[object GeneratorFunction]"===Object.prototype.toString.call(t),e=p(M)&&t instanceof M;return n||e},K=U,C=function(t){return"[object AsyncFunction]"===Object.prototype.toString.call(t)},Y=C,H=Object(c.anyPass)([function(t){return"[object Function]"===Object.prototype.toString.call(t)},K,Y]),J=H,Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X=function(t){return"object"===(void 0===t?"undefined":Q(t))},Z=X,$=Object(c.both)(p,Object(c.either)(Z,J)),tt=$,nt=Object(c.complement)(tt),et=nt,rt=Object(c.allPass)([L,et,q]),ct=rt,ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot=function(t){return!!v(t)||!!t&&(!L(t)&&("object"===(void 0===t?"undefined":ut(t))&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(Object(c.has)(0,t)&&Object(c.has)(t.length-1,t)))))},it=ot,at=Object(c.complement)(it),ft=at,bt=Object(c.complement)(K),st=bt,lt=Object(c.complement)(Y),jt=lt,pt=Object(c.complement)(J),Ot=pt,dt=Object(c.both)(p,Z),yt=dt,mt=Object(c.complement)(yt),ht=mt,vt=e(4),Nt=e.n(vt),gt=Object(c.pipe)(c.toString,Object(c.equals)(Object(c.toString)(Object))),Pt=Object(c.pathSatisfies)(Object(c.both)(J,gt),["constructor"]),St=function(t){if(!yt(t)||!Nt()(t))return!1;var n=Object.getPrototypeOf(t);return!!l(n)||Pt(n)},xt=St,qt=Object(c.complement)(xt),At=qt,Et=Object(c.is)(Date),Ft=Et,wt=Object(c.complement)(Ft),It=wt,Rt=e(5),kt=e.n(Rt),Tt=kt.a,_t=Tt,Bt=Object(c.both)(_t,isNaN),Dt=Bt,Lt=Number.isNaN||Dt,zt=Lt,Vt=Object(c.complement)(zt),Wt=Vt,Gt=Object(c.both)(Ft,Object(c.pipe)(Object(c.invoker)(0,"getTime"),Wt)),Mt=Gt,Ut=Object(c.complement)(Mt),Kt=Ut,Ct=Object(c.complement)(_t),Yt=Ct,Ht=Object(c.both)(_t,Object(c.lt)(0)),Jt=Ht,Qt=Object(c.both)(_t,Object(c.gt)(0)),Xt=Qt,Zt=Object(c.both)(_t,Object(c.flip)(c.lte)(0)),$t=Zt,tn=Object(c.both)(_t,Object(c.flip)(c.gte)(0)),nn=tn,en=Object(c.both)(_t,isFinite),rn=en,cn=Number.isFinite||rn,un=cn,on=Object(c.complement)(un),an=on,fn=Object(c.both)(un,Object(c.converge)(c.equals,[Math.floor,c.identity])),bn=fn,sn=Number.isInteger||bn,ln=sn,jn=Object(c.complement)(ln),pn=jn,On=Object(c.both)(un,Object(c.complement)(ln)),dn=On,yn=Object(c.complement)(dn),mn=yn,hn=Object(c.either)(ln,dn),vn=hn,Nn=Object(c.complement)(vn),gn=Nn,Pn=Object(c.both)(ln,Object(c.pipe)(Object(c.flip)(c.modulo)(2),Object(c.complement)(c.equals)(0))),Sn=Pn,xn=Object(c.both)(ln,Object(c.complement)(Sn)),qn=xn,An=Object(c.both)(v,Object(c.pipe)(c.length,Object(c.equals)(2))),En=An,Fn=Object(c.complement)(En),wn=Fn,In=Object(c.pathSatisfies)(J,["then"]),Rn=In,kn=Object(c.both)(tt,Object(c.pipe)(c.toString,Object(c.equals)("[object Promise]"))),Tn=kn,_n=Object(c.equals)(!0),Bn=Object(c.equals)(!1),Dn=Boolean,Ln=Dn,zn=Object(c.complement)(Ln),Vn=zn,Wn=Object(c.is)(RegExp),Gn=Wn,Mn=Object(c.complement)(Gn),Un=Mn,Kn=Object(c.always)(null),Cn=Kn,Yn=function(){return{}},Hn=Yn,Jn=Object(c.always)(""),Qn=Jn,Xn=function(){return[]},Zn=Xn,$n=Object(c.always)(o()),te=$n,ne=Object.freeze({equals:"fantasy-land/equals",lte:"fantasy-land/lte",compose:"fantasy-land/compose",id:"fantasy-land/id",concat:"fantasy-land/concat",empty:"fantasy-land/empty",map:"fantasy-land/map",contramap:"fantasy-land/contramap",ap:"fantasy-land/ap",of:"fantasy-land/of",alt:"fantasy-land/alt",zero:"fantasy-land/zero",reduce:"fantasy-land/reduce",traverse:"fantasy-land/traverse",chain:"fantasy-land/chain",chainRec:"fantasy-land/chainRec",extend:"fantasy-land/extend",extract:"fantasy-land/extract",bimap:"fantasy-land/bimap",promap:"fantasy-land/promap"}),ee=ne,re=Object(c.either)(Object(c.pathSatisfies)(J,["map"]),Object(c.pathSatisfies)(J,[ee.map])),ce=Object(c.both)(re,Object(c.either)(Object(c.pathSatisfies)(J,["ap"]),Object(c.pathSatisfies)(J,[ee.ap]))),ue=Object(c.curryN)(2,function(t,n){if(!ce(t)||!ce(n))return Object(c.ap)(t,n);try{return t.ap(n)}catch(e){return n.ap(t)}}),oe=ue,ie=Object(c.curry)(function(t,n){var e=Object(c.curryN)(t,n);return Object(c.curryN)(t,function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var u=Object(c.map)(e,Object(c.head)(n)),o=Object(c.slice)(1,1/0,n);return Object(c.reduce)(oe,u,o)})}),ae=ie,fe=function(t){return ae(t.length,t)},be=fe,se=Object(c.curry)(function(t,n,e){return J(e.cata)?e.cata(t,n):e.either(t,n)}),le=se,je=Object(c.curryN)(2,function(t,n){return Object(c.curryN)(t.length,function(){return t.apply(void 0,arguments).run(n)})}),pe=je,Oe=Object(c.curryN)(2,function(t,n){return Object(c.curryN)(t.length,function(){return t.apply(void 0,arguments).run(n())})}),de=Oe,ye=Object(c.curryN)(2,function(t,n){return Object(c.curryN)(t,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.apply(this,Object(c.reverse)(e))})}),me=ye,he=Object(c.converge)(me,[c.length,c.identity]),ve=he,Ne=Object(c.bind)(Promise.all,Promise),ge=Ne,Pe=Object(c.bind)(Promise.resolve,Promise),Se=Pe,xe=Object(c.bind)(Promise.reject,Promise),qe=xe,Ae=function(t){return function(t){return t(t)}(function(n){return t(function(t){return n(n)(t)})})},Ee=Ae,Fe=Object(c.curry)(function(t,n){return Object(c.tap)(function(n){return Object(c.map)(function(t){return t(n)})(t)})(n)}),we=Fe,Ie=Object(c.comparator)(function(t,n){return t.length>n.length}),Re=Object(c.pipe)(Object(c.sort)(Ie),c.head,Object(c.prop)("length")),ke=Object(c.curry)(function(t,n,e){var r=e.apply(void 0,t);return d(r)?Object(c.reduced)(r):n}),Te=function(t){var n=Re(t);return Object(c.curryN)(n,function(){for(var n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];return Object(c.reduce)(ke(e),void 0,t)})},_e=Object(c.ifElse)(E,Te,o),Be=Object(c.addIndex)(c.map),De=Be,Le=Object(c.addIndex)(c.reduce),ze=Le,Ve=Object(c.addIndex)(c.filter),We=Object(c.curry)(function(t,n,e){return Object(c.contains)(e,t)}),Ge=Object(c.curry)(function(t,n){return Ve(We(t),n)}),Me=Ge,Ue=Object(c.unapply)(c.identity),Ke=Ue,Ce=Object(c.when)(S,c.of),Ye=Ce,He={concat:c.identity},Je=Object(c.pipe)(Object(c.reduce)(c.concat,He),Object(c.when)(Object(c.identical)(He),o)),Qe=Je,Xe=Object(c.flip)(c.concat),Ze=Xe,$e=Object(c.curryN)(3,function(t,n,e){return Se(e).then(function(e){var r=Object(c.length)(e);return 0===r?n:Object(c.reduce)(function(n,e){return n.then(function(t){return ge([t,e])}).then(function(n){var e=n[0],c=n[1];return a(e)&&1===r?c:t(e,c)})})(Se(n),e)})}),tr=$e,nr=Object(c.pipe)(Object(c.reduceRight)(c.concat,""),Object(c.equals)("ba"))(["a","b"]),er=Object(c.curryN)(3,function(t,n,e){return Se(e).then(function(e){var r=Object(c.length)(e);return 0===r?n:Object(c.reduceRight)(function(n,e){var c=void 0,u=void 0;return nr?(c=n,u=e):(c=e,u=n),c.then(function(t){return ge([t,u])}).then(function(n){var e=n[0],c=n[1];return a(e)&&1===r?c:t(c,e)})})(Se(n),e)})}),rr=er,cr=Object(c.slice)(c.__,1/0),ur=cr,or=Object(c.slice)(0),ir=or,ar=Object(c.addIndex)(c.reject),fr=Object(c.curry)(function(t,n,e){return Object(c.contains)(e,t)}),br=Object(c.curry)(function(t,n){return ar(fr(t),n)}),sr=br,lr=Object(c.reject)(Vn),jr=lr,pr=Object(c.flip)(c.append),Or=pr,dr=Object(c.curry)(function(t,n){return Object(c.ap)([Object(c.path)(c.__,n)],t)}),yr=dr,mr=Object(c.curry)(function(t,n){return Object(c.pipe)(c.toPairs,Object(c.map)(Object(c.adjust)(t,0)),c.fromPairs)(n)}),hr=mr,vr=function(t){return function(n){return Object(c.has)(n,t)?t[n]:n}},Nr=Object(c.curry)(function(t,n){return hr(vr(t),n)}),gr=Nr,Pr=Object(c.flip)(c.merge),Sr=Pr,xr=Object(c.curryN)(2,Object(c.pipe)(c.props,c.mergeAll)),qr=xr,Ar=Object(c.curryN)(2,Object(c.pipe)(yr,c.mergeAll)),Er=Ar,Fr=Object(c.curry)(function(t,n,e){return Object(c.over)(Object(c.lensPath)(t),Sr(n),e)}),wr=Fr,Ir=Object(c.curry)(function(t,n,e){return wr(Object(c.of)(t),n,e)}),Rr=Ir,kr=Object(c.useWith)(c.pickBy,[c.complement,c.identity]),Tr=kr,_r=Object(c.curryN)(3,function(t,n,e){return Object(c.defaultTo)(t,Object(c.view)(n,e))}),Br=_r,Dr=Object(c.curryN)(2,function(t,n){var e=Object(c.head)(t);return!(0===Object(c.length)(t)||!tt(n))&&(1===Object(c.length)(t)?Object(c.has)(e,n):Dr(Object(c.tail)(t),Object(c.path)([e],n)))}),Lr=Dr,zr=Object(c.curryN)(2,Object(c.converge)(c.merge,[c.dissocPath,Object(c.pathOr)({})])),Vr=zr,Wr=Object(c.curry)(function(t,n){return Vr(Object(c.of)(t),n)}),Gr=Wr,Mr=Object(c.curry)(function(t,n){return Object(c.merge)(n,Object(c.pathOr)({},t,n))}),Ur=Mr,Kr=Object(c.curry)(function(t,n){return Ur(Object(c.of)(t),n)}),Cr=Kr,Yr=Object(c.curryN)(3,function(t,n,e){return Object(c.pipe)(Object(c.view)(t),Object(c.equals)(n))(e)}),Hr=Yr,Jr=Object(c.complement)(Hr),Qr=Jr,Xr=Object(c.curryN)(3,function(t,n,e){return Object(c.pipe)(Object(c.view)(n),t,_n)(e)}),Zr=Xr,$r=Object(c.complement)(Zr),tc=$r,nc=function(t,n){var e=function(n){return t(n)};return e.from=n,e},ec=function(t,n){return nc(Object(c.curry)(function(e,r){return Object(c.map)(n,e(t(r)))}),Object(c.curry)(function(e,r){return Object(c.map)(t,e(n(r)))}))},rc=Object(c.curry)(function(t,n){return t.from(n)}),cc=Object(c.curry)(ec);cc.from=rc;var uc,oc,ic,ac,fc,bc,sc=cc,lc=Object(c.complement)(c.propEq),jc=lc,pc=Object(c.complement)(c.pathEq),Oc=pc,dc=Object(c.curry)(function(t,n,e){return t(e)?n:e}),yc=dc,mc=Object(c.compose)(c.complement,c.both),hc=mc,vc=Object(c.compose)(c.complement,c.either),Nc=vc,gc=Object(c.compose)(c.complement,c.allPass),Pc=gc,Sc=Object(c.compose)(c.complement,c.anyPass),xc=Sc,qc=Object(c.either)(Object(c.path)(["@@type"]),Object(c.path)(["constructor","@@type"])),Ac=Object(c.curryN)(2,Object(c.useWith)(c.equals,[qc,qc])),Ec=Object(c.pipe)(c.toPairs,Object(c.map)(Object(c.over)(Object(c.lensIndex)(0),Object(c.replace)("fantasy-land/","")))),Fc=(uc={},uc[ee.map]=function(t){return this.constructor[ee.of](t(this.value))},uc),wc=(oc={},oc[ee.ap]=function(t){var n=this;return t.map(function(t){return t(n.value)})},oc),Ic=(ic={},ic[ee.equals]=function(t){return Ac(this,t)&&Object(c.equals)(this.value,t.value)},ic),Rc=(ac={},ac[ee.concat]=function(t){var n=this.value;return L(this.value)||_t(this.value)?n=this.value+t.value:Object(c.pathSatisfies)(J,["value",ee.concat],this)?n=this.value[ee.concat](t.value):Object(c.pathSatisfies)(J,["value","concat"],this)&&(n=this.value.concat(t.value)),this.constructor[ee.of](n)},ac),kc=(fc={},fc[ee.chain]=function(t){var n=t(this.value);return Ac(this,n)?n:this},fc),Tc=(bc={},bc[ee.lte]=function(t){return Ac(this,t)&&(this.value<t.value||this[ee.equals](t))},bc),_c=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),Bc=ee.of,Dc=ee.ap,Lc=ee.map,zc=ee.equals,Vc=ee.concat,Wc=ee.chain,Gc=ee.lte,Mc=ee.empty,Uc=ee.contramap,Kc=function(){function t(n){r(this,t),this.value=n}return t[Bc]=function(n){return new t(n)},_c(t,null,[{key:"@@type",get:function(){return"RA/Identity"}}]),t.prototype.get=function(){return this.value},t.prototype[Dc]=function(t){return wc[Dc].call(this,t)},t.prototype[Lc]=function(t){return Fc[Lc].call(this,t)},t.prototype[zc]=function(t){return Ic[zc].call(this,t)},t.prototype[Vc]=function(t){return Rc[Vc].call(this,t)},t.prototype[Wc]=function(t){return kc[Wc].call(this,t)},t.prototype[Gc]=function(t){return Tc[Gc].call(this,t)},t.prototype[Mc]=function(){return this.constructor.of(Object(c.empty)(this.value))},t.prototype[Uc]=function(t){var n=this;return this.constructor.of(function(e){return n.value(t(e))})},t}();Ec(Kc).forEach(function(t){var n=t[0],e=t[1];Kc[n]=e}),Ec(Kc.prototype).forEach(function(t){var n=t[0],e=t[1];Kc.prototype[n]=e});var Cc=Kc;e.d(n,"isNotUndefined",function(){return b}),e.d(n,"isUndefined",function(){return a}),e.d(n,"isNull",function(){return l}),e.d(n,"isNotNull",function(){return p}),e.d(n,"isNotNil",function(){return d}),e.d(n,"isArray",function(){return v}),e.d(n,"isEmptyArray",function(){return g}),e.d(n,"isNotArray",function(){return S}),e.d(n,"isNonEmptyArray",function(){return E}),e.d(n,"isBoolean",function(){return w}),e.d(n,"isNotBoolean",function(){return R}),e.d(n,"isNilOrEmpty",function(){return T}),e.d(n,"isString",function(){return L}),e.d(n,"isEmptyString",function(){return V}),e.d(n,"isNotString",function(){return G}),e.d(n,"isNonEmptyString",function(){return ct}),e.d(n,"isArrayLike",function(){return it}),e.d(n,"isNotArrayLike",function(){return ft}),e.d(n,"isGeneratorFunction",function(){return K}),e.d(n,"isNotGeneratorFunction",function(){return st}),e.d(n,"isAsyncFunction",function(){return Y}),e.d(n,"isNotAsyncFunction",function(){return jt}),e.d(n,"isFunction",function(){return J}),e.d(n,"isNotFunction",function(){return Ot}),e.d(n,"isObj",function(){return tt}),e.d(n,"isObject",function(){return tt}),e.d(n,"isNotObj",function(){return et}),e.d(n,"isNotObject",function(){return et}),e.d(n,"isObjLike",function(){return yt}),e.d(n,"isObjectLike",function(){return yt}),e.d(n,"isNotObjLike",function(){return ht}),e.d(n,"isNotObjectLike",function(){return ht}),e.d(n,"isPlainObj",function(){return xt}),e.d(n,"isPlainObject",function(){return xt}),e.d(n,"isNotPlainObj",function(){return At}),e.d(n,"isNotPlainObject",function(){return At}),e.d(n,"isDate",function(){return Ft}),e.d(n,"isNotDate",function(){return It}),e.d(n,"isValidDate",function(){return Mt}),e.d(n,"isNotValidDate",function(){return Kt}),e.d(n,"isInvalidDate",function(){return Kt}),e.d(n,"isNumber",function(){return _t}),e.d(n,"isNotNumber",function(){return Yt}),e.d(n,"isPositive",function(){return Jt}),e.d(n,"isNegative",function(){return Xt}),e.d(n,"isNonPositive",function(){return $t}),e.d(n,"isNonNegative",function(){return nn}),e.d(n,"isNaN",function(){return zt}),e.d(n,"isNotNaN",function(){return Wt}),e.d(n,"isFinite",function(){return un}),e.d(n,"isNotFinite",function(){return an}),e.d(n,"isInteger",function(){return ln}),e.d(n,"isNotInteger",function(){return pn}),e.d(n,"isFloat",function(){return dn}),e.d(n,"isNotFloat",function(){return mn}),e.d(n,"isValidNumber",function(){return vn}),e.d(n,"isNotValidNumber",function(){return gn}),e.d(n,"isOdd",function(){return Sn}),e.d(n,"isEven",function(){return qn}),e.d(n,"isPair",function(){return En}),e.d(n,"isNotPair",function(){return wn}),e.d(n,"isThenable",function(){return Rn}),e.d(n,"isPromise",function(){return Tn}),e.d(n,"isTrue",function(){return _n}),e.d(n,"isFalse",function(){return Bn}),e.d(n,"isTruthy",function(){return Ln}),e.d(n,"isFalsy",function(){return Vn}),e.d(n,"isRegExp",function(){return Gn}),e.d(n,"isNotRegExp",function(){return Un}),e.d(n,"stubUndefined",function(){return o}),e.d(n,"stubNull",function(){return Cn}),e.d(n,"stubObj",function(){return Hn}),e.d(n,"stubObject",function(){return Hn}),e.d(n,"stubString",function(){return Qn}),e.d(n,"stubArray",function(){return Zn}),e.d(n,"noop",function(){return te}),e.d(n,"liftFN",function(){return ae}),e.d(n,"liftF",function(){return be}),e.d(n,"cata",function(){return le}),e.d(n,"weave",function(){return pe}),e.d(n,"weaveLazy",function(){return de}),e.d(n,"curryRightN",function(){return me}),e.d(n,"curryRight",function(){return ve}),e.d(n,"allP",function(){return ge}),e.d(n,"resolveP",function(){return Se}),e.d(n,"rejectP",function(){return qe}),e.d(n,"Y",function(){return Ee}),e.d(n,"seq",function(){return we}),e.d(n,"sequencing",function(){return we}),e.d(n,"dispatch",function(){return _e}),e.d(n,"mapIndexed",function(){return De}),e.d(n,"reduceIndexed",function(){return ze}),e.d(n,"pickIndexes",function(){return Me}),e.d(n,"list",function(){return Ke}),e.d(n,"ensureArray",function(){return Ye}),e.d(n,"concatAll",function(){return Qe}),e.d(n,"concatRight",function(){return Ze}),e.d(n,"reduceP",function(){return tr}),e.d(n,"reduceRightP",function(){return rr}),e.d(n,"sliceFrom",function(){return ur}),e.d(n,"sliceTo",function(){return ir}),e.d(n,"omitIndexes",function(){return sr}),e.d(n,"compact",function(){return jr}),e.d(n,"appendFlipped",function(){return Or}),e.d(n,"paths",function(){return yr}),e.d(n,"renameKeys",function(){return gr}),e.d(n,"renameKeysWith",function(){return hr}),e.d(n,"mergeRight",function(){return Sr}),e.d(n,"resetToDefault",function(){return Sr}),e.d(n,"mergeProps",function(){return qr}),e.d(n,"mergePaths",function(){return Er}),e.d(n,"mergeProp",function(){return Rr}),e.d(n,"mergePath",function(){return wr}),e.d(n,"omitBy",function(){return Tr}),e.d(n,"viewOr",function(){return Br}),e.d(n,"hasPath",function(){return Lr}),e.d(n,"spreadProp",function(){return Gr}),e.d(n,"spreadPath",function(){return Vr}),e.d(n,"flattenProp",function(){return Cr}),e.d(n,"flattenPath",function(){return Ur}),e.d(n,"lensEq",function(){return Hr}),e.d(n,"lensNotEq",function(){return Qr}),e.d(n,"lensSatisfies",function(){return Zr}),e.d(n,"lensNotSatisfy",function(){return tc}),e.d(n,"lensIso",function(){return sc}),e.d(n,"propNotEq",function(){return jc}),e.d(n,"pathNotEq",function(){return Oc}),e.d(n,"isNotEmpty",function(){return q}),e.d(n,"defaultWhen",function(){return yc}),e.d(n,"notBoth",function(){return hc}),e.d(n,"neither",function(){return Nc}),e.d(n,"notAllPass",function(){return Pc}),e.d(n,"nonePass",function(){return xc}),e.d(n,"Identity",function(){return Cc})},function(t,n){t.exports=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)}},function(t,n){function e(t){return"[object String]"===Object.prototype.toString.call(t)}t.exports=e},function(t,n){function e(t){return"[object Object]"===Object.prototype.toString.call(t)}t.exports=e},function(t,n){function e(t){return"[object Number]"===Object.prototype.toString.call(t)}t.exports=e}])}); |
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("R")):"function"==typeof define&&define.amd?define(["R"],n):"object"==typeof exports?exports.RA=n(require("R")):t.RA=n(t.R)}("undefined"!=typeof self?self:this,function(t){return function(t){function n(r){if(e[r])return e[r].exports;var c=e[r]={i:r,l:!1,exports:{}};return t[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=1)}([function(n,e){n.exports=t},function(t,n,e){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var c=e(0),u=Object(c.always)(void 0),o=u,i=Object(c.equals)(o()),a=i,f=Object(c.complement)(a),b=f,s=Object(c.equals)(null),l=s,j=Object(c.complement)(l),p=j,O=Object(c.complement)(c.isNil),d=O,y=e(2),m=e.n(y),h=Array.isArray||m.a,v=h,N=Object(c.both)(v,c.isEmpty),g=N,P=Object(c.complement)(v),S=P,x=Object(c.complement)(c.isEmpty),q=x,A=Object(c.both)(v,q),E=A,F=Object(c.is)(Boolean),R=F,w=Object(c.complement)(R),I=w,k=Object(c.anyPass)([c.isNil,c.isEmpty]),T=k,_=e(3),D=e.n(_),L=D.a,B=L,z=Object(c.equals)(""),V=z,G=Object(c.complement)(B),M=G,U=null;try{U=new Function("return function* () {}")().constructor}catch(t){}var W=function(t){var n="[object GeneratorFunction]"===Object.prototype.toString.call(t),e=p(U)&&t instanceof U;return n||e},K=W,C=function(t){return"[object AsyncFunction]"===Object.prototype.toString.call(t)},Y=C,H=Object(c.anyPass)([function(t){return"[object Function]"===Object.prototype.toString.call(t)},K,Y]),J=H,Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X=function(t){return"object"===(void 0===t?"undefined":Q(t))},Z=X,$=Object(c.both)(p,Object(c.anyPass)([Z,J])),tt=$,nt=Object(c.complement)(tt),et=nt,rt=Object(c.allPass)([B,et,q]),ct=rt,ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot=function(t){return!!v(t)||!!t&&(!B(t)&&("object"===(void 0===t?"undefined":ut(t))&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(Object(c.has)(0,t)&&Object(c.has)(t.length-1,t)))))},it=ot,at=Object(c.complement)(it),ft=at,bt=Object(c.complement)(K),st=bt,lt=Object(c.complement)(Y),jt=lt,pt=Object(c.complement)(J),Ot=pt,dt=Object(c.both)(p,Z),yt=dt,mt=Object(c.complement)(yt),ht=mt,vt=e(4),Nt=e.n(vt),gt=Object(c.pipe)(c.toString,Object(c.equals)(Object(c.toString)(Object))),Pt=Object(c.pathSatisfies)(Object(c.both)(J,gt),["constructor"]),St=function(t){if(!yt(t)||!Nt()(t))return!1;var n=Object.getPrototypeOf(t);return!!l(n)||Pt(n)},xt=St,qt=Object(c.complement)(xt),At=qt,Et=Object(c.is)(Date),Ft=Et,Rt=Object(c.complement)(Ft),wt=Rt,It=e(5),kt=e.n(It),Tt=kt.a,_t=Tt,Dt=Object(c.both)(_t,isNaN),Lt=Dt,Bt=Number.isNaN||Lt,zt=Bt,Vt=Object(c.complement)(zt),Gt=Vt,Mt=Object(c.both)(Ft,Object(c.pipe)(Object(c.invoker)(0,"getTime"),Gt)),Ut=Mt,Wt=Object(c.complement)(Ut),Kt=Wt,Ct=Object(c.complement)(_t),Yt=Ct,Ht=Object(c.both)(_t,Object(c.lt)(0)),Jt=Ht,Qt=Object(c.both)(_t,Object(c.gt)(0)),Xt=Qt,Zt=Object(c.both)(_t,isFinite),$t=Zt,tn=Number.isFinite||$t,nn=tn,en=Object(c.complement)(nn),rn=en,cn=Object(c.both)(nn,Object(c.converge)(c.equals,[Math.floor,c.identity])),un=cn,on=Number.isInteger||un,an=on,fn=Object(c.complement)(an),bn=fn,sn=Object(c.both)(nn,Object(c.complement)(an)),ln=sn,jn=Object(c.complement)(ln),pn=jn,On=Object(c.either)(an,ln),dn=On,yn=Object(c.complement)(dn),mn=yn,hn=Object(c.both)(an,Object(c.pipe)(Object(c.flip)(c.modulo)(2),Object(c.complement)(c.equals)(0))),vn=hn,Nn=Object(c.both)(an,Object(c.complement)(vn)),gn=Nn,Pn=Object(c.both)(v,Object(c.pipe)(c.length,Object(c.equals)(2))),Sn=Pn,xn=Object(c.complement)(Sn),qn=xn,An=Object(c.pathSatisfies)(J,["then"]),En=An,Fn=Object(c.both)(tt,Object(c.pipe)(c.toString,Object(c.equals)("[object Promise]"))),Rn=Fn,wn=Object(c.pipe)(Boolean,Object(c.equals)(!0)),In=wn,kn=Object(c.complement)(In),Tn=kn,_n=Object(c.is)(RegExp),Dn=_n,Ln=Object(c.complement)(Dn),Bn=Ln,zn=Object(c.always)(null),Vn=zn,Gn=function(){return{}},Mn=Gn,Un=Object(c.always)(""),Wn=Un,Kn=function(){return[]},Cn=Kn,Yn=Object(c.always)(o()),Hn=Yn,Jn=Object.freeze({equals:"fantasy-land/equals",lte:"fantasy-land/lte",compose:"fantasy-land/compose",id:"fantasy-land/id",concat:"fantasy-land/concat",empty:"fantasy-land/empty",map:"fantasy-land/map",contramap:"fantasy-land/contramap",ap:"fantasy-land/ap",of:"fantasy-land/of",alt:"fantasy-land/alt",zero:"fantasy-land/zero",reduce:"fantasy-land/reduce",traverse:"fantasy-land/traverse",chain:"fantasy-land/chain",chainRec:"fantasy-land/chainRec",extend:"fantasy-land/extend",extract:"fantasy-land/extract",bimap:"fantasy-land/bimap",promap:"fantasy-land/promap"}),Qn=Jn,Xn=Object(c.anyPass)([Object(c.pathSatisfies)(J,["map"]),Object(c.pathSatisfies)(J,[Qn.map])]),Zn=Object(c.both)(Xn,Object(c.anyPass)([Object(c.pathSatisfies)(J,["ap"]),Object(c.pathSatisfies)(J,[Qn.ap])])),$n=Object(c.curryN)(2,function(t,n){if(!Zn(t)||!Zn(n))return Object(c.ap)(t,n);try{return t.ap(n)}catch(e){return n.ap(t)}}),te=$n,ne=Object(c.curry)(function(t,n){var e=Object(c.curryN)(t,n);return Object(c.curryN)(t,function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var u=Object(c.map)(e,Object(c.head)(n)),o=Object(c.slice)(1,1/0,n);return Object(c.reduce)(te,u,o)})}),ee=ne,re=function(t){return ee(t.length,t)},ce=re,ue=Object(c.curry)(function(t,n,e){return J(e.cata)?e.cata(t,n):e.either(t,n)}),oe=ue,ie=Object(c.curryN)(2,function(t,n){return Object(c.curryN)(t.length,function(){return t.apply(void 0,arguments).run(n)})}),ae=ie,fe=Object(c.curryN)(2,function(t,n){return Object(c.curryN)(t.length,function(){return t.apply(void 0,arguments).run(n())})}),be=fe,se=Object(c.curryN)(2,function(t,n){return Object(c.curryN)(t,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.apply(this,Object(c.reverse)(e))})}),le=se,je=Object(c.converge)(le,[c.length,c.identity]),pe=je,Oe=Object(c.bind)(Promise.all,Promise),de=Oe,ye=Object(c.bind)(Promise.resolve,Promise),me=ye,he=Object(c.bind)(Promise.reject,Promise),ve=he,Ne=function(t){return function(t){return t(t)}(function(n){return t(function(t){return n(n)(t)})})},ge=Ne,Pe=Object(c.curry)(function(t,n){return Object(c.tap)(function(n){return Object(c.map)(function(t){return t(n)})(t)})(n)}),Se=Pe,xe=Object(c.addIndex)(c.map),qe=xe,Ae=Object(c.addIndex)(c.reduce),Ee=Ae,Fe=Object(c.addIndex)(c.filter),Re=Object(c.curry)(function(t,n,e){return Object(c.contains)(e,t)}),we=Object(c.curry)(function(t,n){return Fe(Re(t),n)}),Ie=we,ke=Object(c.unapply)(c.identity),Te=ke,_e=Object(c.flip)(c.concat),De=_e,Le=Object(c.curryN)(3,function(t,n,e){return me(e).then(function(e){var r=Object(c.length)(e);return 0===r?n:Object(c.reduce)(function(n,e){return n.then(function(t){return de([t,e])}).then(function(n){var e=n[0],c=n[1];return a(e)&&1===r?c:t(e,c)})})(me(n),e)})}),Be=Le,ze=Object(c.pipe)(Object(c.reduceRight)(c.concat,""),Object(c.equals)("ba"))(["a","b"]),Ve=Object(c.curryN)(3,function(t,n,e){return me(e).then(function(e){var r=Object(c.length)(e);return 0===r?n:Object(c.reduceRight)(function(n,e){var c=void 0,u=void 0;return ze?(c=n,u=e):(c=e,u=n),c.then(function(t){return de([t,u])}).then(function(n){var e=n[0],c=n[1];return a(e)&&1===r?c:t(c,e)})})(me(n),e)})}),Ge=Ve,Me=Object(c.slice)(c.__,1/0),Ue=Me,We=Object(c.slice)(0),Ke=We,Ce=Object(c.addIndex)(c.reject),Ye=Object(c.curry)(function(t,n,e){return Object(c.contains)(e,t)}),He=Object(c.curry)(function(t,n){return Ce(Ye(t),n)}),Je=He,Qe=Object(c.reject)(Tn),Xe=Qe,Ze=Object(c.flip)(c.append),$e=Ze,tr=Object(c.curry)(function(t,n){return Object(c.ap)([Object(c.path)(c.__,n)],t)}),nr=tr,er=Object(c.curry)(function(t,n){return Object(c.pipe)(c.toPairs,Object(c.map)(Object(c.adjust)(t,0)),c.fromPairs)(n)}),rr=er,cr=function(t){return function(n){return Object(c.has)(n,t)?t[n]:n}},ur=Object(c.curry)(function(t,n){return rr(cr(t),n)}),or=ur,ir=Object(c.flip)(c.merge),ar=ir,fr=Object(c.curryN)(2,Object(c.pipe)(c.props,c.mergeAll)),br=fr,sr=Object(c.curryN)(2,Object(c.pipe)(nr,c.mergeAll)),lr=sr,jr=Object(c.curry)(function(t,n,e){return Object(c.over)(Object(c.lensPath)(t),ar(n),e)}),pr=jr,Or=Object(c.curry)(function(t,n,e){return pr(Object(c.of)(t),n,e)}),dr=Or,yr=Object(c.curryN)(3,function(t,n,e){return Object(c.defaultTo)(t,Object(c.view)(n,e))}),mr=yr,hr=Object(c.curryN)(2,function(t,n){var e=Object(c.head)(t);return!(0===Object(c.length)(t)||!tt(n))&&(1===Object(c.length)(t)?Object(c.has)(e,n):hr(Object(c.tail)(t),Object(c.path)([e],n)))}),vr=hr,Nr=Object(c.curryN)(2,Object(c.converge)(c.merge,[c.dissocPath,Object(c.pathOr)({})])),gr=Nr,Pr=Object(c.curry)(function(t,n){return gr(Object(c.of)(t),n)}),Sr=Pr,xr=Object(c.curry)(function(t,n){return Object(c.merge)(n,Object(c.pathOr)({},t,n))}),qr=xr,Ar=Object(c.curry)(function(t,n){return qr(Object(c.of)(t),n)}),Er=Ar,Fr=Object(c.curryN)(3,function(t,n,e){return Object(c.pipe)(Object(c.view)(t),Object(c.equals)(n))(e)}),Rr=Fr,wr=Object(c.complement)(Rr),Ir=wr,kr=Object(c.curryN)(3,function(t,n,e){return Object(c.pipe)(Object(c.view)(n),t,Object(c.equals)(!0))(e)}),Tr=kr,_r=Object(c.complement)(Tr),Dr=_r,Lr=function(t,n){var e=function(n){return t(n)};return e.from=n,e},Br=function(t,n){return Lr(Object(c.curry)(function(e,r){return Object(c.map)(n,e(t(r)))}),Object(c.curry)(function(e,r){return Object(c.map)(t,e(n(r)))}))},zr=Object(c.curry)(function(t,n){return t.from(n)}),Vr=Object(c.curry)(Br);Vr.from=zr;var Gr,Mr,Ur,Wr,Kr,Cr,Yr=Vr,Hr=Object(c.complement)(c.propEq),Jr=Hr,Qr=Object(c.complement)(c.pathEq),Xr=Qr,Zr=Object(c.curry)(function(t,n,e){return t(e)?n:e}),$r=Zr,tc=Object(c.compose)(c.complement,c.both),nc=tc,ec=Object(c.compose)(c.complement,c.either),rc=ec,cc=Object(c.compose)(c.complement,c.allPass),uc=cc,oc=Object(c.compose)(c.complement,c.anyPass),ic=oc,ac=Object(c.either)(Object(c.path)(["@@type"]),Object(c.path)(["constructor","@@type"])),fc=Object(c.curryN)(2,Object(c.useWith)(c.equals,[ac,ac])),bc=Object(c.pipe)(c.toPairs,Object(c.map)(Object(c.over)(Object(c.lensIndex)(0),Object(c.replace)("fantasy-land/","")))),sc=(Gr={},Gr[Qn.map]=function(t){return this.constructor[Qn.of](t(this.value))},Gr),lc=(Mr={},Mr[Qn.ap]=function(t){var n=this;return t.map(function(t){return t(n.value)})},Mr),jc=(Ur={},Ur[Qn.equals]=function(t){return fc(this,t)&&Object(c.equals)(this.value,t.value)},Ur),pc=(Wr={},Wr[Qn.concat]=function(t){var n=this.value;return B(this.value)||_t(this.value)?n=this.value+t.value:Object(c.pathSatisfies)(J,["value",Qn.concat],this)?n=this.value[Qn.concat](t.value):Object(c.pathSatisfies)(J,["value","concat"],this)&&(n=this.value.concat(t.value)),this.constructor[Qn.of](n)},Wr),Oc=(Kr={},Kr[Qn.chain]=function(t){var n=t(this.value);return fc(this,n)?n:this},Kr),dc=(Cr={},Cr[Qn.lte]=function(t){return fc(this,t)&&(this.value<t.value||this[Qn.equals](t))},Cr),yc=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),mc=Qn.of,hc=Qn.ap,vc=Qn.map,Nc=Qn.equals,gc=Qn.concat,Pc=Qn.chain,Sc=Qn.lte,xc=Qn.empty,qc=Qn.contramap,Ac=function(){function t(n){r(this,t),this.value=n}return t[mc]=function(n){return new t(n)},yc(t,null,[{key:"@@type",get:function(){return"RA/Identity"}}]),t.prototype.get=function(){return this.value},t.prototype[hc]=function(t){return lc[hc].call(this,t)},t.prototype[vc]=function(t){return sc[vc].call(this,t)},t.prototype[Nc]=function(t){return jc[Nc].call(this,t)},t.prototype[gc]=function(t){return pc[gc].call(this,t)},t.prototype[Pc]=function(t){return Oc[Pc].call(this,t)},t.prototype[Sc]=function(t){return dc[Sc].call(this,t)},t.prototype[xc]=function(){return this.constructor.of(Object(c.empty)(this.value))},t.prototype[qc]=function(t){var n=this;return this.constructor.of(function(e){return n.value(t(e))})},t}();bc(Ac).forEach(function(t){var n=t[0],e=t[1];Ac[n]=e}),bc(Ac.prototype).forEach(function(t){var n=t[0],e=t[1];Ac.prototype[n]=e});var Ec=Ac;e.d(n,"isNotUndefined",function(){return b}),e.d(n,"isUndefined",function(){return a}),e.d(n,"isNull",function(){return l}),e.d(n,"isNotNull",function(){return p}),e.d(n,"isNotNil",function(){return d}),e.d(n,"isArray",function(){return v}),e.d(n,"isEmptyArray",function(){return g}),e.d(n,"isNotArray",function(){return S}),e.d(n,"isNonEmptyArray",function(){return E}),e.d(n,"isBoolean",function(){return R}),e.d(n,"isNotBoolean",function(){return I}),e.d(n,"isNilOrEmpty",function(){return T}),e.d(n,"isString",function(){return B}),e.d(n,"isEmptyString",function(){return V}),e.d(n,"isNotString",function(){return M}),e.d(n,"isNonEmptyString",function(){return ct}),e.d(n,"isArrayLike",function(){return it}),e.d(n,"isNotArrayLike",function(){return ft}),e.d(n,"isGeneratorFunction",function(){return K}),e.d(n,"isNotGeneratorFunction",function(){return st}),e.d(n,"isAsyncFunction",function(){return Y}),e.d(n,"isNotAsyncFunction",function(){return jt}),e.d(n,"isFunction",function(){return J}),e.d(n,"isNotFunction",function(){return Ot}),e.d(n,"isObj",function(){return tt}),e.d(n,"isObject",function(){return tt}),e.d(n,"isNotObj",function(){return et}),e.d(n,"isNotObject",function(){return et}),e.d(n,"isObjLike",function(){return yt}),e.d(n,"isObjectLike",function(){return yt}),e.d(n,"isNotObjLike",function(){return ht}),e.d(n,"isNotObjectLike",function(){return ht}),e.d(n,"isPlainObj",function(){return xt}),e.d(n,"isPlainObject",function(){return xt}),e.d(n,"isNotPlainObj",function(){return At}),e.d(n,"isNotPlainObject",function(){return At}),e.d(n,"isDate",function(){return Ft}),e.d(n,"isNotDate",function(){return wt}),e.d(n,"isValidDate",function(){return Ut}),e.d(n,"isNotValidDate",function(){return Kt}),e.d(n,"isInvalidDate",function(){return Kt}),e.d(n,"isNumber",function(){return _t}),e.d(n,"isNotNumber",function(){return Yt}),e.d(n,"isPositive",function(){return Jt}),e.d(n,"isNegative",function(){return Xt}),e.d(n,"isNaN",function(){return zt}),e.d(n,"isNotNaN",function(){return Gt}),e.d(n,"isFinite",function(){return nn}),e.d(n,"isNotFinite",function(){return rn}),e.d(n,"isInteger",function(){return an}),e.d(n,"isNotInteger",function(){return bn}),e.d(n,"isFloat",function(){return ln}),e.d(n,"isNotFloat",function(){return pn}),e.d(n,"isValidNumber",function(){return dn}),e.d(n,"isNotValidNumber",function(){return mn}),e.d(n,"isOdd",function(){return vn}),e.d(n,"isEven",function(){return gn}),e.d(n,"isPair",function(){return Sn}),e.d(n,"isNotPair",function(){return qn}),e.d(n,"isThenable",function(){return En}),e.d(n,"isPromise",function(){return Rn}),e.d(n,"isTruthy",function(){return In}),e.d(n,"isFalsy",function(){return Tn}),e.d(n,"isRegExp",function(){return Dn}),e.d(n,"isNotRegExp",function(){return Bn}),e.d(n,"stubUndefined",function(){return o}),e.d(n,"stubNull",function(){return Vn}),e.d(n,"stubObj",function(){return Mn}),e.d(n,"stubObject",function(){return Mn}),e.d(n,"stubString",function(){return Wn}),e.d(n,"stubArray",function(){return Cn}),e.d(n,"noop",function(){return Hn}),e.d(n,"liftFN",function(){return ee}),e.d(n,"liftF",function(){return ce}),e.d(n,"cata",function(){return oe}),e.d(n,"weave",function(){return ae}),e.d(n,"weaveLazy",function(){return be}),e.d(n,"curryRightN",function(){return le}),e.d(n,"curryRight",function(){return pe}),e.d(n,"allP",function(){return de}),e.d(n,"resolveP",function(){return me}),e.d(n,"rejectP",function(){return ve}),e.d(n,"Y",function(){return ge}),e.d(n,"seq",function(){return Se}),e.d(n,"sequencing",function(){return Se}),e.d(n,"mapIndexed",function(){return qe}),e.d(n,"reduceIndexed",function(){return Ee}),e.d(n,"pickIndexes",function(){return Ie}),e.d(n,"list",function(){return Te}),e.d(n,"concatRight",function(){return De}),e.d(n,"reduceP",function(){return Be}),e.d(n,"reduceRightP",function(){return Ge}),e.d(n,"sliceFrom",function(){return Ue}),e.d(n,"sliceTo",function(){return Ke}),e.d(n,"omitIndexes",function(){return Je}),e.d(n,"compact",function(){return Xe}),e.d(n,"appendFlipped",function(){return $e}),e.d(n,"paths",function(){return nr}),e.d(n,"renameKeys",function(){return or}),e.d(n,"renameKeysWith",function(){return rr}),e.d(n,"mergeRight",function(){return ar}),e.d(n,"resetToDefault",function(){return ar}),e.d(n,"mergeProps",function(){return br}),e.d(n,"mergePaths",function(){return lr}),e.d(n,"mergeProp",function(){return dr}),e.d(n,"mergePath",function(){return pr}),e.d(n,"viewOr",function(){return mr}),e.d(n,"hasPath",function(){return vr}),e.d(n,"spreadProp",function(){return Sr}),e.d(n,"spreadPath",function(){return gr}),e.d(n,"flattenProp",function(){return Er}),e.d(n,"flattenPath",function(){return qr}),e.d(n,"lensEq",function(){return Rr}),e.d(n,"lensNotEq",function(){return Ir}),e.d(n,"lensSatisfies",function(){return Tr}),e.d(n,"lensNotSatisfy",function(){return Dr}),e.d(n,"lensIso",function(){return Yr}),e.d(n,"propNotEq",function(){return Jr}),e.d(n,"pathNotEq",function(){return Xr}),e.d(n,"isNotEmpty",function(){return q}),e.d(n,"defaultWhen",function(){return $r}),e.d(n,"notBoth",function(){return nc}),e.d(n,"neither",function(){return rc}),e.d(n,"notAllPass",function(){return uc}),e.d(n,"nonePass",function(){return ic}),e.d(n,"Identity",function(){return Ec})},function(t,n){t.exports=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)}},function(t,n){function e(t){return"[object String]"===Object.prototype.toString.call(t)}t.exports=e},function(t,n){function e(t){return"[object Object]"===Object.prototype.toString.call(t)}t.exports=e},function(t,n){function e(t){return"[object Number]"===Object.prototype.toString.call(t)}t.exports=e}])}); | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("R")):"function"==typeof define&&define.amd?define(["R"],n):"object"==typeof exports?exports.RA=n(require("R")):t.RA=n(t.R)}("undefined"!=typeof self?self:this,function(t){return function(t){function n(r){if(e[r])return e[r].exports;var c=e[r]={i:r,l:!1,exports:{}};return t[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=1)}([function(n,e){n.exports=t},function(t,n,e){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var c=e(0),u=Object(c.always)(void 0),o=u,i=Object(c.equals)(o()),a=i,f=Object(c.complement)(a),b=f,s=Object(c.equals)(null),l=s,j=Object(c.complement)(l),p=j,O=Object(c.complement)(c.isNil),d=O,y=e(2),m=e.n(y),h=Array.isArray||m.a,v=h,N=Object(c.both)(v,c.isEmpty),g=N,P=Object(c.complement)(v),S=P,x=Object(c.complement)(c.isEmpty),q=x,A=Object(c.both)(v,q),E=A,F=Object(c.is)(Boolean),R=F,w=Object(c.complement)(R),I=w,k=Object(c.either)(c.isNil,c.isEmpty),T=k,_=e(3),B=e.n(_),D=B.a,L=D,z=Object(c.equals)(""),V=z,W=Object(c.complement)(L),G=W,M=null;try{M=new Function("return function* () {}")().constructor}catch(t){}var U=function(t){var n="[object GeneratorFunction]"===Object.prototype.toString.call(t),e=p(M)&&t instanceof M;return n||e},K=U,C=function(t){return"[object AsyncFunction]"===Object.prototype.toString.call(t)},Y=C,H=Object(c.anyPass)([function(t){return"[object Function]"===Object.prototype.toString.call(t)},K,Y]),J=H,Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X=function(t){return"object"===(void 0===t?"undefined":Q(t))},Z=X,$=Object(c.both)(p,Object(c.either)(Z,J)),tt=$,nt=Object(c.complement)(tt),et=nt,rt=Object(c.allPass)([L,et,q]),ct=rt,ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot=function(t){return!!v(t)||!!t&&(!L(t)&&("object"===(void 0===t?"undefined":ut(t))&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(Object(c.has)(0,t)&&Object(c.has)(t.length-1,t)))))},it=ot,at=Object(c.complement)(it),ft=at,bt=Object(c.complement)(K),st=bt,lt=Object(c.complement)(Y),jt=lt,pt=Object(c.complement)(J),Ot=pt,dt=Object(c.both)(p,Z),yt=dt,mt=Object(c.complement)(yt),ht=mt,vt=e(4),Nt=e.n(vt),gt=Object(c.pipe)(c.toString,Object(c.equals)(Object(c.toString)(Object))),Pt=Object(c.pathSatisfies)(Object(c.both)(J,gt),["constructor"]),St=function(t){if(!yt(t)||!Nt()(t))return!1;var n=Object.getPrototypeOf(t);return!!l(n)||Pt(n)},xt=St,qt=Object(c.complement)(xt),At=qt,Et=Object(c.is)(Date),Ft=Et,Rt=Object(c.complement)(Ft),wt=Rt,It=e(5),kt=e.n(It),Tt=kt.a,_t=Tt,Bt=Object(c.both)(_t,isNaN),Dt=Bt,Lt=Number.isNaN||Dt,zt=Lt,Vt=Object(c.complement)(zt),Wt=Vt,Gt=Object(c.both)(Ft,Object(c.pipe)(Object(c.invoker)(0,"getTime"),Wt)),Mt=Gt,Ut=Object(c.complement)(Mt),Kt=Ut,Ct=Object(c.complement)(_t),Yt=Ct,Ht=Object(c.both)(_t,Object(c.lt)(0)),Jt=Ht,Qt=Object(c.both)(_t,Object(c.gt)(0)),Xt=Qt,Zt=Object(c.both)(_t,Object(c.flip)(c.lte)(0)),$t=Zt,tn=Object(c.both)(_t,Object(c.flip)(c.gte)(0)),nn=tn,en=Object(c.both)(_t,isFinite),rn=en,cn=Number.isFinite||rn,un=cn,on=Object(c.complement)(un),an=on,fn=Object(c.both)(un,Object(c.converge)(c.equals,[Math.floor,c.identity])),bn=fn,sn=Number.isInteger||bn,ln=sn,jn=Object(c.complement)(ln),pn=jn,On=Object(c.both)(un,Object(c.complement)(ln)),dn=On,yn=Object(c.complement)(dn),mn=yn,hn=Object(c.either)(ln,dn),vn=hn,Nn=Object(c.complement)(vn),gn=Nn,Pn=Object(c.both)(ln,Object(c.pipe)(Object(c.flip)(c.modulo)(2),Object(c.complement)(c.equals)(0))),Sn=Pn,xn=Object(c.both)(ln,Object(c.complement)(Sn)),qn=xn,An=Object(c.both)(v,Object(c.pipe)(c.length,Object(c.equals)(2))),En=An,Fn=Object(c.complement)(En),Rn=Fn,wn=Object(c.pathSatisfies)(J,["then"]),In=wn,kn=Object(c.both)(tt,Object(c.pipe)(c.toString,Object(c.equals)("[object Promise]"))),Tn=kn,_n=Object(c.equals)(!0),Bn=Object(c.equals)(!1),Dn=Boolean,Ln=Dn,zn=Object(c.complement)(Ln),Vn=zn,Wn=Object(c.is)(RegExp),Gn=Wn,Mn=Object(c.complement)(Gn),Un=Mn,Kn=Object(c.always)(null),Cn=Kn,Yn=function(){return{}},Hn=Yn,Jn=Object(c.always)(""),Qn=Jn,Xn=function(){return[]},Zn=Xn,$n=Object(c.always)(o()),te=$n,ne=Object.freeze({equals:"fantasy-land/equals",lte:"fantasy-land/lte",compose:"fantasy-land/compose",id:"fantasy-land/id",concat:"fantasy-land/concat",empty:"fantasy-land/empty",map:"fantasy-land/map",contramap:"fantasy-land/contramap",ap:"fantasy-land/ap",of:"fantasy-land/of",alt:"fantasy-land/alt",zero:"fantasy-land/zero",reduce:"fantasy-land/reduce",traverse:"fantasy-land/traverse",chain:"fantasy-land/chain",chainRec:"fantasy-land/chainRec",extend:"fantasy-land/extend",extract:"fantasy-land/extract",bimap:"fantasy-land/bimap",promap:"fantasy-land/promap"}),ee=ne,re=Object(c.either)(Object(c.pathSatisfies)(J,["map"]),Object(c.pathSatisfies)(J,[ee.map])),ce=Object(c.both)(re,Object(c.either)(Object(c.pathSatisfies)(J,["ap"]),Object(c.pathSatisfies)(J,[ee.ap]))),ue=Object(c.curryN)(2,function(t,n){if(!ce(t)||!ce(n))return Object(c.ap)(t,n);try{return t.ap(n)}catch(e){return n.ap(t)}}),oe=ue,ie=Object(c.curry)(function(t,n){var e=Object(c.curryN)(t,n);return Object(c.curryN)(t,function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var u=Object(c.map)(e,Object(c.head)(n)),o=Object(c.slice)(1,1/0,n);return Object(c.reduce)(oe,u,o)})}),ae=ie,fe=function(t){return ae(t.length,t)},be=fe,se=Object(c.curry)(function(t,n,e){return J(e.cata)?e.cata(t,n):e.either(t,n)}),le=se,je=Object(c.curryN)(2,function(t,n){return Object(c.curryN)(t.length,function(){return t.apply(void 0,arguments).run(n)})}),pe=je,Oe=Object(c.curryN)(2,function(t,n){return Object(c.curryN)(t.length,function(){return t.apply(void 0,arguments).run(n())})}),de=Oe,ye=Object(c.curryN)(2,function(t,n){return Object(c.curryN)(t,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.apply(this,Object(c.reverse)(e))})}),me=ye,he=Object(c.converge)(me,[c.length,c.identity]),ve=he,Ne=Object(c.bind)(Promise.all,Promise),ge=Ne,Pe=Object(c.bind)(Promise.resolve,Promise),Se=Pe,xe=Object(c.bind)(Promise.reject,Promise),qe=xe,Ae=function(t){return function(t){return t(t)}(function(n){return t(function(t){return n(n)(t)})})},Ee=Ae,Fe=Object(c.curry)(function(t,n){return Object(c.tap)(function(n){return Object(c.map)(function(t){return t(n)})(t)})(n)}),Re=Fe,we=Object(c.comparator)(function(t,n){return t.length>n.length}),Ie=Object(c.pipe)(Object(c.sort)(we),c.head,Object(c.prop)("length")),ke=Object(c.curry)(function(t,n,e){var r=e.apply(void 0,t);return d(r)?Object(c.reduced)(r):n}),Te=function(t){var n=Ie(t);return Object(c.curryN)(n,function(){for(var n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];return Object(c.reduce)(ke(e),void 0,t)})},_e=Object(c.ifElse)(E,Te,o),Be=Object(c.addIndex)(c.map),De=Be,Le=Object(c.addIndex)(c.reduce),ze=Le,Ve=Object(c.addIndex)(c.filter),We=Object(c.curry)(function(t,n,e){return Object(c.contains)(e,t)}),Ge=Object(c.curry)(function(t,n){return Ve(We(t),n)}),Me=Ge,Ue=Object(c.unapply)(c.identity),Ke=Ue,Ce=Object(c.when)(S,c.of),Ye=Ce,He={concat:c.identity},Je=Object(c.pipe)(Object(c.reduce)(c.concat,He),Object(c.when)(Object(c.identical)(He),o)),Qe=Je,Xe=Object(c.flip)(c.concat),Ze=Xe,$e=Object(c.curryN)(3,function(t,n,e){return Se(e).then(function(e){var r=Object(c.length)(e);return 0===r?n:Object(c.reduce)(function(n,e){return n.then(function(t){return ge([t,e])}).then(function(n){var e=n[0],c=n[1];return a(e)&&1===r?c:t(e,c)})})(Se(n),e)})}),tr=$e,nr=Object(c.pipe)(Object(c.reduceRight)(c.concat,""),Object(c.equals)("ba"))(["a","b"]),er=Object(c.curryN)(3,function(t,n,e){return Se(e).then(function(e){var r=Object(c.length)(e);return 0===r?n:Object(c.reduceRight)(function(n,e){var c=void 0,u=void 0;return nr?(c=n,u=e):(c=e,u=n),c.then(function(t){return ge([t,u])}).then(function(n){var e=n[0],c=n[1];return a(e)&&1===r?c:t(c,e)})})(Se(n),e)})}),rr=er,cr=Object(c.slice)(c.__,1/0),ur=cr,or=Object(c.slice)(0),ir=or,ar=Object(c.addIndex)(c.reject),fr=Object(c.curry)(function(t,n,e){return Object(c.contains)(e,t)}),br=Object(c.curry)(function(t,n){return ar(fr(t),n)}),sr=br,lr=Object(c.reject)(Vn),jr=lr,pr=Object(c.flip)(c.append),Or=pr,dr=Object(c.curry)(function(t,n){return Object(c.ap)([Object(c.path)(c.__,n)],t)}),yr=dr,mr=Object(c.curry)(function(t,n){return Object(c.pipe)(c.toPairs,Object(c.map)(Object(c.adjust)(t,0)),c.fromPairs)(n)}),hr=mr,vr=function(t){return function(n){return Object(c.has)(n,t)?t[n]:n}},Nr=Object(c.curry)(function(t,n){return hr(vr(t),n)}),gr=Nr,Pr=Object(c.flip)(c.merge),Sr=Pr,xr=Object(c.curryN)(2,Object(c.pipe)(c.props,c.mergeAll)),qr=xr,Ar=Object(c.curryN)(2,Object(c.pipe)(yr,c.mergeAll)),Er=Ar,Fr=Object(c.curry)(function(t,n,e){return Object(c.over)(Object(c.lensPath)(t),Sr(n),e)}),Rr=Fr,wr=Object(c.curry)(function(t,n,e){return Rr(Object(c.of)(t),n,e)}),Ir=wr,kr=Object(c.useWith)(c.pickBy,[c.complement,c.identity]),Tr=kr,_r=Object(c.curryN)(3,function(t,n,e){return Object(c.defaultTo)(t,Object(c.view)(n,e))}),Br=_r,Dr=Object(c.curryN)(2,function(t,n){var e=Object(c.head)(t);return!(0===Object(c.length)(t)||!tt(n))&&(1===Object(c.length)(t)?Object(c.has)(e,n):Dr(Object(c.tail)(t),Object(c.path)([e],n)))}),Lr=Dr,zr=Object(c.curryN)(2,Object(c.converge)(c.merge,[c.dissocPath,Object(c.pathOr)({})])),Vr=zr,Wr=Object(c.curry)(function(t,n){return Vr(Object(c.of)(t),n)}),Gr=Wr,Mr=Object(c.curry)(function(t,n){return Object(c.merge)(n,Object(c.pathOr)({},t,n))}),Ur=Mr,Kr=Object(c.curry)(function(t,n){return Ur(Object(c.of)(t),n)}),Cr=Kr,Yr=Object(c.curryN)(3,function(t,n,e){return Object(c.pipe)(Object(c.view)(t),Object(c.equals)(n))(e)}),Hr=Yr,Jr=Object(c.complement)(Hr),Qr=Jr,Xr=Object(c.curryN)(3,function(t,n,e){return Object(c.pipe)(Object(c.view)(n),t,_n)(e)}),Zr=Xr,$r=Object(c.complement)(Zr),tc=$r,nc=function(t,n){var e=function(n){return t(n)};return e.from=n,e},ec=function(t,n){return nc(Object(c.curry)(function(e,r){return Object(c.map)(n,e(t(r)))}),Object(c.curry)(function(e,r){return Object(c.map)(t,e(n(r)))}))},rc=Object(c.curry)(function(t,n){return t.from(n)}),cc=Object(c.curry)(ec);cc.from=rc;var uc,oc,ic,ac,fc,bc,sc=cc,lc=Object(c.complement)(c.propEq),jc=lc,pc=Object(c.complement)(c.pathEq),Oc=pc,dc=Object(c.curry)(function(t,n,e){return t(e)?n:e}),yc=dc,mc=Object(c.compose)(c.complement,c.both),hc=mc,vc=Object(c.compose)(c.complement,c.either),Nc=vc,gc=Object(c.compose)(c.complement,c.allPass),Pc=gc,Sc=Object(c.compose)(c.complement,c.anyPass),xc=Sc,qc=Object(c.either)(Object(c.path)(["@@type"]),Object(c.path)(["constructor","@@type"])),Ac=Object(c.curryN)(2,Object(c.useWith)(c.equals,[qc,qc])),Ec=Object(c.pipe)(c.toPairs,Object(c.map)(Object(c.over)(Object(c.lensIndex)(0),Object(c.replace)("fantasy-land/","")))),Fc=(uc={},uc[ee.map]=function(t){return this.constructor[ee.of](t(this.value))},uc),Rc=(oc={},oc[ee.ap]=function(t){var n=this;return t.map(function(t){return t(n.value)})},oc),wc=(ic={},ic[ee.equals]=function(t){return Ac(this,t)&&Object(c.equals)(this.value,t.value)},ic),Ic=(ac={},ac[ee.concat]=function(t){var n=this.value;return L(this.value)||_t(this.value)?n=this.value+t.value:Object(c.pathSatisfies)(J,["value",ee.concat],this)?n=this.value[ee.concat](t.value):Object(c.pathSatisfies)(J,["value","concat"],this)&&(n=this.value.concat(t.value)),this.constructor[ee.of](n)},ac),kc=(fc={},fc[ee.chain]=function(t){var n=t(this.value);return Ac(this,n)?n:this},fc),Tc=(bc={},bc[ee.lte]=function(t){return Ac(this,t)&&(this.value<t.value||this[ee.equals](t))},bc),_c=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),Bc=ee.of,Dc=ee.ap,Lc=ee.map,zc=ee.equals,Vc=ee.concat,Wc=ee.chain,Gc=ee.lte,Mc=ee.empty,Uc=ee.contramap,Kc=function(){function t(n){r(this,t),this.value=n}return t[Bc]=function(n){return new t(n)},_c(t,null,[{key:"@@type",get:function(){return"RA/Identity"}}]),t.prototype.get=function(){return this.value},t.prototype[Dc]=function(t){return Rc[Dc].call(this,t)},t.prototype[Lc]=function(t){return Fc[Lc].call(this,t)},t.prototype[zc]=function(t){return wc[zc].call(this,t)},t.prototype[Vc]=function(t){return Ic[Vc].call(this,t)},t.prototype[Wc]=function(t){return kc[Wc].call(this,t)},t.prototype[Gc]=function(t){return Tc[Gc].call(this,t)},t.prototype[Mc]=function(){return this.constructor.of(Object(c.empty)(this.value))},t.prototype[Uc]=function(t){var n=this;return this.constructor.of(function(e){return n.value(t(e))})},t}();Ec(Kc).forEach(function(t){var n=t[0],e=t[1];Kc[n]=e}),Ec(Kc.prototype).forEach(function(t){var n=t[0],e=t[1];Kc.prototype[n]=e});var Cc=Kc;e.d(n,"isNotUndefined",function(){return b}),e.d(n,"isUndefined",function(){return a}),e.d(n,"isNull",function(){return l}),e.d(n,"isNotNull",function(){return p}),e.d(n,"isNotNil",function(){return d}),e.d(n,"isArray",function(){return v}),e.d(n,"isEmptyArray",function(){return g}),e.d(n,"isNotArray",function(){return S}),e.d(n,"isNonEmptyArray",function(){return E}),e.d(n,"isBoolean",function(){return R}),e.d(n,"isNotBoolean",function(){return I}),e.d(n,"isNilOrEmpty",function(){return T}),e.d(n,"isString",function(){return L}),e.d(n,"isEmptyString",function(){return V}),e.d(n,"isNotString",function(){return G}),e.d(n,"isNonEmptyString",function(){return ct}),e.d(n,"isArrayLike",function(){return it}),e.d(n,"isNotArrayLike",function(){return ft}),e.d(n,"isGeneratorFunction",function(){return K}),e.d(n,"isNotGeneratorFunction",function(){return st}),e.d(n,"isAsyncFunction",function(){return Y}),e.d(n,"isNotAsyncFunction",function(){return jt}),e.d(n,"isFunction",function(){return J}),e.d(n,"isNotFunction",function(){return Ot}),e.d(n,"isObj",function(){return tt}),e.d(n,"isObject",function(){return tt}),e.d(n,"isNotObj",function(){return et}),e.d(n,"isNotObject",function(){return et}),e.d(n,"isObjLike",function(){return yt}),e.d(n,"isObjectLike",function(){return yt}),e.d(n,"isNotObjLike",function(){return ht}),e.d(n,"isNotObjectLike",function(){return ht}),e.d(n,"isPlainObj",function(){return xt}),e.d(n,"isPlainObject",function(){return xt}),e.d(n,"isNotPlainObj",function(){return At}),e.d(n,"isNotPlainObject",function(){return At}),e.d(n,"isDate",function(){return Ft}),e.d(n,"isNotDate",function(){return wt}),e.d(n,"isValidDate",function(){return Mt}),e.d(n,"isNotValidDate",function(){return Kt}),e.d(n,"isInvalidDate",function(){return Kt}),e.d(n,"isNumber",function(){return _t}),e.d(n,"isNotNumber",function(){return Yt}),e.d(n,"isPositive",function(){return Jt}),e.d(n,"isNegative",function(){return Xt}),e.d(n,"isNonPositive",function(){return $t}),e.d(n,"isNonNegative",function(){return nn}),e.d(n,"isNaN",function(){return zt}),e.d(n,"isNotNaN",function(){return Wt}),e.d(n,"isFinite",function(){return un}),e.d(n,"isNotFinite",function(){return an}),e.d(n,"isInteger",function(){return ln}),e.d(n,"isNotInteger",function(){return pn}),e.d(n,"isFloat",function(){return dn}),e.d(n,"isNotFloat",function(){return mn}),e.d(n,"isValidNumber",function(){return vn}),e.d(n,"isNotValidNumber",function(){return gn}),e.d(n,"isOdd",function(){return Sn}),e.d(n,"isEven",function(){return qn}),e.d(n,"isPair",function(){return En}),e.d(n,"isNotPair",function(){return Rn}),e.d(n,"isThenable",function(){return In}),e.d(n,"isPromise",function(){return Tn}),e.d(n,"isTrue",function(){return _n}),e.d(n,"isFalse",function(){return Bn}),e.d(n,"isTruthy",function(){return Ln}),e.d(n,"isFalsy",function(){return Vn}),e.d(n,"isRegExp",function(){return Gn}),e.d(n,"isNotRegExp",function(){return Un}),e.d(n,"stubUndefined",function(){return o}),e.d(n,"stubNull",function(){return Cn}),e.d(n,"stubObj",function(){return Hn}),e.d(n,"stubObject",function(){return Hn}),e.d(n,"stubString",function(){return Qn}),e.d(n,"stubArray",function(){return Zn}),e.d(n,"noop",function(){return te}),e.d(n,"liftFN",function(){return ae}),e.d(n,"liftF",function(){return be}),e.d(n,"cata",function(){return le}),e.d(n,"weave",function(){return pe}),e.d(n,"weaveLazy",function(){return de}),e.d(n,"curryRightN",function(){return me}),e.d(n,"curryRight",function(){return ve}),e.d(n,"allP",function(){return ge}),e.d(n,"resolveP",function(){return Se}),e.d(n,"rejectP",function(){return qe}),e.d(n,"Y",function(){return Ee}),e.d(n,"seq",function(){return Re}),e.d(n,"sequencing",function(){return Re}),e.d(n,"dispatch",function(){return _e}),e.d(n,"mapIndexed",function(){return De}),e.d(n,"reduceIndexed",function(){return ze}),e.d(n,"pickIndexes",function(){return Me}),e.d(n,"list",function(){return Ke}),e.d(n,"ensureArray",function(){return Ye}),e.d(n,"concatAll",function(){return Qe}),e.d(n,"concatRight",function(){return Ze}),e.d(n,"reduceP",function(){return tr}),e.d(n,"reduceRightP",function(){return rr}),e.d(n,"sliceFrom",function(){return ur}),e.d(n,"sliceTo",function(){return ir}),e.d(n,"omitIndexes",function(){return sr}),e.d(n,"compact",function(){return jr}),e.d(n,"appendFlipped",function(){return Or}),e.d(n,"paths",function(){return yr}),e.d(n,"renameKeys",function(){return gr}),e.d(n,"renameKeysWith",function(){return hr}),e.d(n,"mergeRight",function(){return Sr}),e.d(n,"resetToDefault",function(){return Sr}),e.d(n,"mergeProps",function(){return qr}),e.d(n,"mergePaths",function(){return Er}),e.d(n,"mergeProp",function(){return Ir}),e.d(n,"mergePath",function(){return Rr}),e.d(n,"omitBy",function(){return Tr}),e.d(n,"viewOr",function(){return Br}),e.d(n,"hasPath",function(){return Lr}),e.d(n,"spreadProp",function(){return Gr}),e.d(n,"spreadPath",function(){return Vr}),e.d(n,"flattenProp",function(){return Cr}),e.d(n,"flattenPath",function(){return Ur}),e.d(n,"lensEq",function(){return Hr}),e.d(n,"lensNotEq",function(){return Qr}),e.d(n,"lensSatisfies",function(){return Zr}),e.d(n,"lensNotSatisfy",function(){return tc}),e.d(n,"lensIso",function(){return sc}),e.d(n,"propNotEq",function(){return jc}),e.d(n,"pathNotEq",function(){return Oc}),e.d(n,"isNotEmpty",function(){return q}),e.d(n,"defaultWhen",function(){return yc}),e.d(n,"notBoth",function(){return hc}),e.d(n,"neither",function(){return Nc}),e.d(n,"notAllPass",function(){return Pc}),e.d(n,"nonePass",function(){return xc}),e.d(n,"Identity",function(){return Cc})},function(t,n){t.exports=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)}},function(t,n){function e(t){return"[object String]"===Object.prototype.toString.call(t)}t.exports=e},function(t,n){function e(t){return"[object Object]"===Object.prototype.toString.call(t)}t.exports=e},function(t,n){function e(t){return"[object Number]"===Object.prototype.toString.call(t)}t.exports=e}])}); |
@@ -1,1 +0,1 @@ | ||
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.RA=t():n.RA=t()}("undefined"!=typeof self?self:this,function(){return function(n){function t(e){if(r[e])return r[e].exports;var u=r[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var r={};return t.m=n,t.c=r,t.d=function(n,r,e){t.o(n,r)||Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:e})},t.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(r,"a",r),r},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=0)}([function(n,t,r){"use strict";function e(n){return null!=n&&"object"==typeof n&&!0===n["@@functional/placeholder"]}function u(n){return function t(r){return 0===arguments.length||e(r)?t:n.apply(this,arguments)}}function o(n){return function t(r,o){switch(arguments.length){case 0:return t;case 1:return e(r)?t:u(function(t){return n(r,t)});default:return e(r)&&e(o)?t:e(r)?u(function(t){return n(t,o)}):e(o)?u(function(t){return n(r,t)}):n(r,o)}}}function i(n,t){n=n||[],t=t||[];var r,e=n.length,u=t.length,o=[];for(r=0;r<e;)o[o.length]=n[r],r+=1;for(r=0;r<u;)o[o.length]=t[r],r+=1;return o}function c(n,t){switch(n){case 0:return function(){return t.apply(this,arguments)};case 1:return function(n){return t.apply(this,arguments)};case 2:return function(n,r){return t.apply(this,arguments)};case 3:return function(n,r,e){return t.apply(this,arguments)};case 4:return function(n,r,e,u){return t.apply(this,arguments)};case 5:return function(n,r,e,u,o){return t.apply(this,arguments)};case 6:return function(n,r,e,u,o,i){return t.apply(this,arguments)};case 7:return function(n,r,e,u,o,i,c){return t.apply(this,arguments)};case 8:return function(n,r,e,u,o,i,c,f){return t.apply(this,arguments)};case 9:return function(n,r,e,u,o,i,c,f,a){return t.apply(this,arguments)};case 10:return function(n,r,e,u,o,i,c,f,a,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function f(n,t,r){return function(){for(var u=[],o=0,i=n,a=0;a<t.length||o<arguments.length;){var l;a<t.length&&(!e(t[a])||o>=arguments.length)?l=t[a]:(l=arguments[o],o+=1),u[a]=l,e(l)||(i-=1),a+=1}return i<=0?r.apply(this,u):c(i,f(n,u,r))}}function a(n){return function t(r,i,c){switch(arguments.length){case 0:return t;case 1:return e(r)?t:o(function(t,e){return n(r,t,e)});case 2:return e(r)&&e(i)?t:e(r)?o(function(t,r){return n(t,i,r)}):e(i)?o(function(t,e){return n(r,t,e)}):u(function(t){return n(r,i,t)});default:return e(r)&&e(i)&&e(c)?t:e(r)&&e(i)?o(function(t,r){return n(t,r,c)}):e(r)&&e(c)?o(function(t,r){return n(t,i,r)}):e(i)&&e(c)?o(function(t,e){return n(r,t,e)}):e(r)?u(function(t){return n(t,i,c)}):e(i)?u(function(t){return n(r,t,c)}):e(c)?u(function(t){return n(r,i,t)}):n(r,i,c)}}}function l(n){return"function"==typeof n["@@transducer/step"]}function s(n,t,r){return function(){if(0===arguments.length)return r();var e=Array.prototype.slice.call(arguments,0),u=e.pop();if(!$(u)){for(var o=0;o<n.length;){if("function"==typeof u[n[o]])return u[n[o]].apply(u,e);o+=1}if(l(u)){return t.apply(null,e)(u)}}return r.apply(this,arguments)}}function p(n,t){for(var r=0,e=t.length,u=Array(e);r<e;)u[r]=n(t[r]),r+=1;return u}function y(n){return"[object String]"===Object.prototype.toString.call(n)}function d(n){return new en(n)}function h(n,t,r){for(var e=0,u=r.length;e<u;){if((t=n["@@transducer/step"](t,r[e]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e+=1}return n["@@transducer/result"](t)}function g(n,t,r){for(var e=r.next();!e.done;){if((t=n["@@transducer/step"](t,e.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e=r.next()}return n["@@transducer/result"](t)}function b(n,t,r,e){return n["@@transducer/result"](r[e](on(n["@@transducer/step"],n),t))}function v(n,t,r){if("function"==typeof n&&(n=d(n)),rn(r))return h(n,t,r);if("function"==typeof r["fantasy-land/reduce"])return b(n,t,r,"fantasy-land/reduce");if(null!=r[cn])return g(n,t,r[cn]());if("function"==typeof r.next)return g(n,t,r);if("function"==typeof r.reduce)return b(n,t,r,"reduce");throw new TypeError("reduce: list must be array or iterable")}function m(n,t){return Object.prototype.hasOwnProperty.call(t,n)}function j(n){return"[object Function]"===Object.prototype.toString.call(n)}function O(n,t){return function(){return t.call(this,n.apply(this,arguments))}}function N(n,t){return function(){var r=arguments.length;if(0===r)return t();var e=arguments[r-1];return $(e)||"function"!=typeof e[n]?t.apply(this,arguments):e[n].apply(e,Array.prototype.slice.call(arguments,0,r-1))}}function A(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return c(arguments[0].length,qn(O,arguments[0],st(arguments)))}function S(){if(0===arguments.length)throw new Error("compose requires at least one argument");return A.apply(this,yt(arguments))}function w(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}function x(n,t,r){for(var e=0,u=r.length;e<u;){if(n(t,r[e]))return!0;e+=1}return!1}function P(n){var t=String(n).match(/^function (\w*)/);return null==t?"":t[1]}function E(n,t,r,e){function u(n,t){return F(n,t,r.slice(),e.slice())}var o=w(n),i=w(t);return!x(function(n,t){return!x(u,t,n)},i,o)}function F(n,t,r,e){if(ht(n,t))return!0;var u=et(n);if(u!==et(t))return!1;if(null==n||null==t)return!1;if("function"==typeof n["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n);if("function"==typeof n.equals||"function"==typeof t.equals)return"function"==typeof n.equals&&n.equals(t)&&"function"==typeof t.equals&&t.equals(n);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof n.constructor&&"Promise"===P(n.constructor))return n===t;break;case"Boolean":case"Number":case"String":if(typeof n!=typeof t||!ht(n.valueOf(),t.valueOf()))return!1;break;case"Date":if(!ht(n.valueOf(),t.valueOf()))return!1;break;case"Error":return n.name===t.name&&n.message===t.message;case"RegExp":if(n.source!==t.source||n.global!==t.global||n.ignoreCase!==t.ignoreCase||n.multiline!==t.multiline||n.sticky!==t.sticky||n.unicode!==t.unicode)return!1}for(var o=r.length-1;o>=0;){if(r[o]===n)return e[o]===t;o-=1}switch(u){case"Map":return n.size===t.size&&E(n.entries(),t.entries(),r.concat([n]),e.concat([t]));case"Set":return n.size===t.size&&E(n.values(),t.values(),r.concat([n]),e.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=jn(n);if(i.length!==jn(t).length)return!1;var c=r.concat([n]),f=e.concat([t]);for(o=i.length-1;o>=0;){var a=i[o];if(!m(a,t)||!F(t[a],n[a],c,f))return!1;o-=1}return!0}function q(n,t,r){var e,u;if("function"==typeof n.indexOf)switch(typeof t){case"number":if(0===t){for(e=1/t;r<n.length;){if(0===(u=n[r])&&1/u===e)return r;r+=1}return-1}if(t!==t){for(;r<n.length;){if("number"==typeof(u=n[r])&&u!==u)return r;r+=1}return-1}return n.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return n.indexOf(t,r);case"object":if(null===t)return n.indexOf(t,r)}for(;r<n.length;){if(bt(n[r],t))return r;r+=1}return-1}function T(n,t){return q(t,n,0)>=0}function I(n){return'"'+n.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}function k(n){return function(){return!n.apply(this,arguments)}}function U(n,t){for(var r=0,e=t.length,u=[];r<e;)n(t[r])&&(u[u.length]=t[r]),r+=1;return u}function R(n){return"[object Object]"===Object.prototype.toString.call(n)}function C(n,t){var r=function(r){var e=t.concat([n]);return T(r,e)?"<Circular>":C(r,e)},e=function(n,t){return p(function(t){return I(t)+": "+r(n[t])},t.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+p(r,n).join(", ")+"))";case"[object Array]":return"["+p(r,n).concat(e(n,Pt(function(n){return/^\d+$/.test(n)},jn(n)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof n?"new Boolean("+r(n.valueOf())+")":n.toString();case"[object Date]":return"new Date("+(isNaN(n.valueOf())?r(NaN):I(jt(n)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof n?"new Number("+r(n.valueOf())+")":1/n==-1/0?"-0":n.toString(10);case"[object String]":return"object"==typeof n?"new String("+r(n.valueOf())+")":I(n);case"[object Undefined]":return"undefined";default:if("function"==typeof n.toString){var u=n.toString();if("[object Object]"!==u)return u}return"{"+e(n,jn(n)).join(", ")+"}"}}function D(n){return n}function B(n){if(null==n)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),r=1,e=arguments.length;r<e;){var u=arguments[r];if(null!=u)for(var o in u)m(o,u)&&(t[o]=u[o]);r+=1}return t}function z(n){return"[object Number]"===Object.prototype.toString.call(n)}function L(n){return[n]}function M(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var _=u(function(n){return function(){return n}}),V=_,G={"@@functional/placeholder":!0},W=o(function(n,t){return 1===n?u(t):c(n,f(n,[],t))}),K=W,Y=u(function(n){return K(n.length,function(){var t=0,r=arguments[0],e=arguments[arguments.length-1],u=Array.prototype.slice.call(arguments,0);return u[0]=function(){var n=r.apply(this,i(arguments,[t,e]));return t+=1,n},n.apply(this,u)})}),H=Y,X=a(function(n,t,r){if(t>=r.length||t<-r.length)return r;var e=t<0?r.length:0,u=e+t,o=i(r);return o[u]=n(r[u]),o}),Z=X,$=Array.isArray||function(n){return null!=n&&n.length>=0&&"[object Array]"===Object.prototype.toString.call(n)},J={init:function(){return this.xf["@@transducer/init"]()},result:function(n){return this.xf["@@transducer/result"](n)}},Q=o(function(n,t){return t>n?t:n}),nn=Q,tn=u(function(n){return!!$(n)||!!n&&("object"==typeof n&&(!y(n)&&(1===n.nodeType?!!n.length:0===n.length||n.length>0&&(n.hasOwnProperty(0)&&n.hasOwnProperty(n.length-1)))))}),rn=tn,en=function(){function n(n){this.f=n}return n.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},n.prototype["@@transducer/result"]=function(n){return n},n.prototype["@@transducer/step"]=function(n,t){return this.f(n,t)},n}(),un=o(function(n,t){return c(n.length,function(){return n.apply(t,arguments)})}),on=un,cn="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",fn=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=J.init,n.prototype["@@transducer/result"]=J.result,n.prototype["@@transducer/step"]=function(n,t){return this.xf["@@transducer/step"](n,this.f(t))},n}(),an=o(function(n,t){return new fn(n,t)}),ln=an,sn=Object.prototype.toString,pn=function(){return"[object Arguments]"===sn.call(arguments)?function(n){return"[object Arguments]"===sn.call(n)}:function(n){return m("callee",n)}},yn=pn,dn=!{toString:null}.propertyIsEnumerable("toString"),hn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],gn=function(){return arguments.propertyIsEnumerable("length")}(),bn=function(n,t){for(var r=0;r<n.length;){if(n[r]===t)return!0;r+=1}return!1},vn="function"!=typeof Object.keys||gn?function(n){if(Object(n)!==n)return[];var t,r,e=[],u=gn&&yn(n);for(t in n)!m(t,n)||u&&"length"===t||(e[e.length]=t);if(dn)for(r=hn.length-1;r>=0;)t=hn[r],m(t,n)&&!bn(e,t)&&(e[e.length]=t),r-=1;return e}:function(n){return Object(n)!==n?[]:Object.keys(n)},mn=u(vn),jn=mn,On=o(s(["fantasy-land/map","map"],ln,function(n,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return K(t.length,function(){return n.call(this,t.apply(this,arguments))});case"[object Object]":return v(function(r,e){return r[e]=n(t[e]),r},{},jn(t));default:return p(n,t)}})),Nn=On,An=o(function(n,t){for(var r=t,e=0;e<n.length;){if(null==r)return;r=r[n[e]],e+=1}return r}),Sn=An,wn=o(function(n,t){return Sn([n],t)}),xn=wn,Pn=o(function(n,t){return Nn(xn(n),t)}),En=Pn,Fn=a(v),qn=Fn,Tn=u(function(n){return K(qn(nn,0,En("length",n)),function(){for(var t=0,r=n.length;t<r;){if(!n[t].apply(this,arguments))return!1;t+=1}return!0})}),In=Tn,kn=o(function(n,t){return n&&t}),Un=kn,Rn=u(function(n){return K(qn(nn,0,En("length",n)),function(){for(var t=0,r=n.length;t<r;){if(n[t].apply(this,arguments))return!0;t+=1}return!1})}),Cn=Rn,Dn=o(function(n,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](n):"function"==typeof n.ap?n.ap(t):"function"==typeof n?function(r){return n(r)(t(r))}:v(function(n,r){return i(n,Nn(r,t))},[],n)}),Bn=Dn,zn=o(function(n,t){return i(t,[n])}),Ln=zn,Mn=a(function(n,t,r){var e={};for(var u in r)e[u]=r[u];return e[n]=t,e}),_n=Mn,Vn=Number.isInteger||function(n){return n<<0===n},Gn=u(function(n){return null==n}),Wn=Gn,Kn=a(function n(t,r,e){if(0===t.length)return r;var u=t[0];if(t.length>1){var o=!Wn(e)&&m(u,e)?e[u]:Vn(t[1])?[]:{};r=n(Array.prototype.slice.call(t,1),r,o)}if(Vn(u)&&$(e)){var i=[].concat(e);return i[u]=r,i}return _n(u,r,e)}),Yn=Kn,Hn=o(function(n,t){var r=K(n,t);return K(n,function(){return v(Bn,Nn(r,arguments[0]),Array.prototype.slice.call(arguments,1))})}),Xn=Hn,Zn=u(function(n){return Xn(n.length,n)}),$n=Zn,Jn=o(function(n,t){return j(n)?function(){return n.apply(this,arguments)&&t.apply(this,arguments)}:$n(Un)(n,t)}),Qn=Jn,nt=u(function(n){return K(n.length,n)}),tt=nt,rt=u(function(n){return null===n?"Null":void 0===n?"Undefined":Object.prototype.toString.call(n).slice(8,-1)}),et=rt,ut=u(function(n){return!n}),ot=ut,it=$n(ot),ct=it,ft=a(N("slice",function(n,t,r){return Array.prototype.slice.call(r,n,t)})),at=ft,lt=u(N("tail",at(1,1/0))),st=lt,pt=u(function(n){return y(n)?n.split("").reverse().join(""):Array.prototype.slice.call(n,0).reverse()}),yt=pt,dt=o(function(n,t){return n===t?0!==n||1/n==1/t:n!==n&&t!==t}),ht=dt,gt=o(function(n,t){return F(n,t,[],[])}),bt=gt,vt=function(n){return(n<10?"0":"")+n},mt="function"==typeof Date.prototype.toISOString?function(n){return n.toISOString()}:function(n){return n.getUTCFullYear()+"-"+vt(n.getUTCMonth()+1)+"-"+vt(n.getUTCDate())+"T"+vt(n.getUTCHours())+":"+vt(n.getUTCMinutes())+":"+vt(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},jt=mt,Ot=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=J.init,n.prototype["@@transducer/result"]=J.result,n.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):n},n}(),Nt=o(function(n,t){return new Ot(n,t)}),At=Nt,St=o(s(["filter"],At,function(n,t){return R(t)?v(function(r,e){return n(t[e])&&(r[e]=t[e]),r},{},jn(t)):U(n,t)})),wt=St,xt=o(function(n,t){return wt(k(n),t)}),Pt=xt,Et=u(function(n){return C(n,[])}),Ft=Et,qt=o(function(n,t){if($(n)){if($(t))return n.concat(t);throw new TypeError(Ft(t)+" is not an array")}if(y(n)){if(y(t))return n+t;throw new TypeError(Ft(t)+" is not a string")}if(null!=n&&j(n["fantasy-land/concat"]))return n["fantasy-land/concat"](t);if(null!=n&&j(n.concat))return n.concat(t);throw new TypeError(Ft(n)+' does not have a method named "concat" or "fantasy-land/concat"')}),Tt=qt,It=o(T),kt=It,Ut=o(function(n,t){return K(qn(nn,0,En("length",t)),function(){var r=arguments,e=this;return n.apply(e,p(function(n){return n.apply(e,r)},t))})}),Rt=Ut,Ct=o(function(n,t){return null==t||t!==t?n:t}),Dt=Ct,Bt=o(function(n,t){var r={};for(var e in t)r[e]=t[e];return delete r[n],r}),zt=Bt,Lt=a(function(n,t,r){var e=Array.prototype.slice.call(r,0);return e.splice(n,t),e}),Mt=Lt,_t=a(function(n,t,r){return Z(V(t),n,r)}),Vt=_t,Gt=o(function n(t,r){switch(t.length){case 0:return r;case 1:return Vn(t[0])?Mt(t[0],1,r):zt(t[0],r);default:var e=t[0],u=Array.prototype.slice.call(t,1);return null==r[e]?r:Vn(t[0])?Vt(e,n(u,r[e]),r):_n(e,n(u,r[e]),r)}}),Wt=Gt,Kt=o(function(n,t){var r=n<0?t.length+n:n;return y(t)?t.charAt(r):t[r]}),Yt=Kt,Ht=o(function(n,t){return n||t}),Xt=Ht,Zt=o(function(n,t){return j(n)?function(){return n.apply(this,arguments)||t.apply(this,arguments)}:$n(Xt)(n,t)}),$t=Zt,Jt=u(function(n){return null!=n&&"function"==typeof n["fantasy-land/empty"]?n["fantasy-land/empty"]():null!=n&&null!=n.constructor&&"function"==typeof n.constructor["fantasy-land/empty"]?n.constructor["fantasy-land/empty"]():null!=n&&"function"==typeof n.empty?n.empty():null!=n&&null!=n.constructor&&"function"==typeof n.constructor.empty?n.constructor.empty():$(n)?[]:y(n)?"":R(n)?{}:yn(n)?function(){return arguments}():void 0}),Qt=Jt,nr=u(function(n){return K(n.length,function(t,r){var e=Array.prototype.slice.call(arguments,0);return e[0]=r,e[1]=t,n.apply(this,e)})}),tr=nr,rr=u(function(n){for(var t={},r=0;r<n.length;)t[n[r][0]]=n[r][1],r+=1;return t}),er=rr,ur=o(function(n,t){return n>t}),or=ur,ir=o(m),cr=ir,fr=Yt(0),ar=fr,lr=u(D),sr=lr,pr="function"==typeof Object.assign?Object.assign:B,yr=o(function(n,t){var r={};return r[n]=t,r}),dr=yr,hr=(Array,String,Object,o(function(n,t){return K(n+1,function(){var r=arguments[n];if(null!=r&&j(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,n));throw new TypeError(Ft(r)+' does not have a method named "'+t+'"')})})),gr=hr,br=o(function(n,t){return null!=t&&t.constructor===n||t instanceof n}),vr=br,mr=u(function(n){return null!=n&&bt(n,Qt(n))}),jr=mr,Or=u(function(n){return null!=n&&z(n.length)?n.length:NaN}),Nr=Or,Ar=o(function(n,t){return function(r){return function(e){return Nn(function(n){return t(n,e)},r(n(e)))}}}),Sr=Ar,wr=u(function(n){return Sr(Yt(n),Vt(n))}),xr=wr,Pr=u(function(n){return Sr(Sn(n),Yn(n))}),Er=Pr,Fr=o(function(n,t){return n<t}),qr=Fr,Tr=o(function(n,t){return pr({},n,t)}),Ir=Tr,kr=u(function(n){return pr.apply(null,[{}].concat(n))}),Ur=kr,Rr=o(function(n,t){return n%t}),Cr=Rr,Dr=u(L),Br=Dr,zr=function(n){return{value:n,map:function(t){return zr(t(n))}}},Lr=a(function(n,t,r){return n(function(n){return zr(t(n))})(r).value}),Mr=Lr,_r=a(function(n,t,r){return bt(Sn(n,r),t)}),Vr=_r,Gr=a(function(n,t,r){return Dt(n,Sn(t,r))}),Wr=Gr,Kr=a(function(n,t,r){return t.length>0&&n(Sn(t,r))}),Yr=Kr,Hr=o(function(n,t){return K(t.length,function(){for(var r=[],e=0;e<t.length;)r.push(t[e].call(this,arguments[e])),e+=1;return n.apply(this,r.concat(Array.prototype.slice.call(arguments,t.length)))})}),Xr=Hr,Zr=a(function(n,t,r){return bt(t,r[n])}),$r=Zr,Jr=o(function(n,t){for(var r=n.length,e=[],u=0;u<r;)e[u]=t[n[u]],u+=1;return e}),Qr=Jr,ne=a(function(n,t,r){for(var e=r.length-1;e>=0;)t=n(r[e],t),e-=1;return t}),te=ne,re=a(function(n,t,r){return r.replace(n,t)}),ee=re,ue=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=J.init,n.prototype["@@transducer/result"]=J.result,n.prototype["@@transducer/step"]=function(n,t){return this.f(t),this.xf["@@transducer/step"](n,t)},n}(),oe=o(function(n,t){return new ue(n,t)}),ie=oe,ce=o(s([],ie,function(n,t){return n(t),t})),fe=ce,ae=u(function(n){var t=[];for(var r in n)m(r,n)&&(t[t.length]=[r,n[r]]);return t}),le=ae,se=(String.prototype.trim,u(function(n){return function(){return n(Array.prototype.slice.call(arguments,0))}})),pe=se,ye=function(n){return{value:n,"fantasy-land/map":function(){return this}}},de=o(function(n,t){return n(ye)(t).value}),he=de,ge=V(void 0),be=ge,ve=bt(be()),me=ve,je=ct(me),Oe=je,Ne=bt(null),Ae=Ne,Se=ct(Ae),we=Se,xe=ct(Wn),Pe=xe,Ee=r(1),Fe=r.n(Ee),qe=Array.isArray||Fe.a,Te=qe,Ie=Qn(Te,jr),ke=Ie,Ue=ct(Te),Re=Ue,Ce=ct(jr),De=Ce,Be=Qn(Te,De),ze=Be,Le=vr(Boolean),Me=Le,_e=ct(Me),Ve=_e,Ge=Cn([Wn,jr]),We=Ge,Ke=r(2),Ye=r.n(Ke),He=Ye.a,Xe=He,Ze=bt(""),$e=Ze,Je=ct(Xe),Qe=Je,nu=null;try{nu=new Function("return function* () {}")().constructor}catch(n){}var tu=function(n){var t="[object GeneratorFunction]"===Object.prototype.toString.call(n),r=we(nu)&&n instanceof nu;return t||r},ru=tu,eu=function(n){return"[object AsyncFunction]"===Object.prototype.toString.call(n)},uu=eu,ou=Cn([function(n){return"[object Function]"===Object.prototype.toString.call(n)},ru,uu]),iu=ou,cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fu=function(n){return"object"===(void 0===n?"undefined":cu(n))},au=fu,lu=Qn(we,Cn([au,iu])),su=lu,pu=ct(su),yu=pu,du=In([Xe,yu,De]),hu=du,gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bu=function(n){return!!Te(n)||!!n&&(!Xe(n)&&("object"===(void 0===n?"undefined":gu(n))&&(1===n.nodeType?!!n.length:0===n.length||n.length>0&&(cr(0,n)&&cr(n.length-1,n)))))},vu=bu,mu=ct(vu),ju=mu,Ou=ct(ru),Nu=Ou,Au=ct(uu),Su=Au,wu=ct(iu),xu=wu,Pu=Qn(we,au),Eu=Pu,Fu=ct(Eu),qu=Fu,Tu=r(3),Iu=r.n(Tu),ku=A(Ft,bt(Ft(Object))),Uu=Yr(Qn(iu,ku),["constructor"]),Ru=function(n){if(!Eu(n)||!Iu()(n))return!1;var t=Object.getPrototypeOf(n);return!!Ae(t)||Uu(t)},Cu=Ru,Du=ct(Cu),Bu=Du,zu=vr(Date),Lu=zu,Mu=ct(Lu),_u=Mu,Vu=r(4),Gu=r.n(Vu),Wu=Gu.a,Ku=Wu,Yu=Qn(Ku,isNaN),Hu=Yu,Xu=Number.isNaN||Hu,Zu=Xu,$u=ct(Zu),Ju=$u,Qu=Qn(Lu,A(gr(0,"getTime"),Ju)),no=Qu,to=ct(no),ro=to,eo=ct(Ku),uo=eo,oo=Qn(Ku,qr(0)),io=oo,co=Qn(Ku,or(0)),fo=co,ao=Qn(Ku,isFinite),lo=ao,so=Number.isFinite||lo,po=so,yo=ct(po),ho=yo,go=Qn(po,Rt(bt,[Math.floor,sr])),bo=go,vo=Number.isInteger||bo,mo=vo,jo=ct(mo),Oo=jo,No=Qn(po,ct(mo)),Ao=No,So=ct(Ao),wo=So,xo=$t(mo,Ao),Po=xo,Eo=ct(Po),Fo=Eo,qo=Qn(mo,A(tr(Cr)(2),ct(bt)(0))),To=qo,Io=Qn(mo,ct(To)),ko=Io,Uo=Qn(Te,A(Nr,bt(2))),Ro=Uo,Co=ct(Ro),Do=Co,Bo=Yr(iu,["then"]),zo=Bo,Lo=Qn(su,A(Ft,bt("[object Promise]"))),Mo=Lo,_o=A(Boolean,bt(!0)),Vo=_o,Go=ct(Vo),Wo=Go,Ko=vr(RegExp),Yo=Ko,Ho=ct(Yo),Xo=Ho,Zo=V(null),$o=Zo,Jo=function(){return{}},Qo=Jo,ni=V(""),ti=ni,ri=function(){return[]},ei=ri,ui=V(be()),oi=ui,ii=Object.freeze({equals:"fantasy-land/equals",lte:"fantasy-land/lte",compose:"fantasy-land/compose",id:"fantasy-land/id",concat:"fantasy-land/concat",empty:"fantasy-land/empty",map:"fantasy-land/map",contramap:"fantasy-land/contramap",ap:"fantasy-land/ap",of:"fantasy-land/of",alt:"fantasy-land/alt",zero:"fantasy-land/zero",reduce:"fantasy-land/reduce",traverse:"fantasy-land/traverse",chain:"fantasy-land/chain",chainRec:"fantasy-land/chainRec",extend:"fantasy-land/extend",extract:"fantasy-land/extract",bimap:"fantasy-land/bimap",promap:"fantasy-land/promap"}),ci=ii,fi=Cn([Yr(iu,["map"]),Yr(iu,[ci.map])]),ai=Qn(fi,Cn([Yr(iu,["ap"]),Yr(iu,[ci.ap])])),li=K(2,function(n,t){if(!ai(n)||!ai(t))return Bn(n,t);try{return n.ap(t)}catch(r){return t.ap(n)}}),si=li,pi=tt(function(n,t){var r=K(n,t);return K(n,function(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];var u=Nn(r,ar(t)),o=at(1,1/0,t);return qn(si,u,o)})}),yi=pi,di=function(n){return yi(n.length,n)},hi=di,gi=tt(function(n,t,r){return iu(r.cata)?r.cata(n,t):r.either(n,t)}),bi=gi,vi=K(2,function(n,t){return K(n.length,function(){return n.apply(void 0,arguments).run(t)})}),mi=vi,ji=K(2,function(n,t){return K(n.length,function(){return n.apply(void 0,arguments).run(t())})}),Oi=ji,Ni=K(2,function(n,t){return K(n,function(){for(var n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];return t.apply(this,yt(r))})}),Ai=Ni,Si=Rt(Ai,[Nr,sr]),wi=Si,xi=on(Promise.all,Promise),Pi=xi,Ei=on(Promise.resolve,Promise),Fi=Ei,qi=on(Promise.reject,Promise),Ti=qi,Ii=function(n){return function(n){return n(n)}(function(t){return n(function(n){return t(t)(n)})})},ki=Ii,Ui=tt(function(n,t){return fe(function(t){return Nn(function(n){return n(t)})(n)})(t)}),Ri=Ui,Ci=H(Nn),Di=Ci,Bi=H(qn),zi=Bi,Li=H(wt),Mi=tt(function(n,t,r){return kt(r,n)}),_i=tt(function(n,t){return Li(Mi(n),t)}),Vi=_i,Gi=pe(sr),Wi=Gi,Ki=tr(Tt),Yi=Ki,Hi=K(3,function(n,t,r){return Fi(r).then(function(r){var e=Nr(r);return 0===e?t:qn(function(t,r){return t.then(function(n){return Pi([n,r])}).then(function(t){var r=t[0],u=t[1];return me(r)&&1===e?u:n(r,u)})})(Fi(t),r)})}),Xi=Hi,Zi=A(te(Tt,""),bt("ba"))(["a","b"]),$i=K(3,function(n,t,r){return Fi(r).then(function(r){var e=Nr(r);return 0===e?t:te(function(t,r){var u=void 0,o=void 0;return Zi?(u=t,o=r):(u=r,o=t),u.then(function(n){return Pi([n,o])}).then(function(t){var r=t[0],u=t[1];return me(r)&&1===e?u:n(u,r)})})(Fi(t),r)})}),Ji=$i,Qi=at(G,1/0),nc=Qi,tc=at(0),rc=tc,ec=H(Pt),uc=tt(function(n,t,r){return kt(r,n)}),oc=tt(function(n,t){return ec(uc(n),t)}),ic=oc,cc=Pt(Wo),fc=cc,ac=tr(Ln),lc=ac,sc=tt(function(n,t){return Bn([Sn(G,t)],n)}),pc=sc,yc=tt(function(n,t){return A(le,Nn(Z(n,0)),er)(t)}),dc=yc,hc=function(n){return function(t){return cr(t,n)?n[t]:t}},gc=tt(function(n,t){return dc(hc(n),t)}),bc=gc,vc=tr(Ir),mc=vc,jc=K(2,A(Qr,Ur)),Oc=jc,Nc=K(2,A(pc,Ur)),Ac=Nc,Sc=tt(function(n,t,r){return Mr(Er(n),mc(t),r)}),wc=Sc,xc=tt(function(n,t,r){return wc(Br(n),t,r)}),Pc=xc,Ec=K(3,function(n,t,r){return Dt(n,he(t,r))}),Fc=Ec,qc=K(2,function(n,t){var r=ar(n);return!(0===Nr(n)||!su(t))&&(1===Nr(n)?cr(r,t):qc(st(n),Sn([r],t)))}),Tc=qc,Ic=K(2,Rt(Ir,[Wt,Wr({})])),kc=Ic,Uc=tt(function(n,t){return kc(Br(n),t)}),Rc=Uc,Cc=tt(function(n,t){return Ir(t,Wr({},n,t))}),Dc=Cc,Bc=tt(function(n,t){return Dc(Br(n),t)}),zc=Bc,Lc=K(3,function(n,t,r){return A(he(n),bt(t))(r)}),Mc=Lc,_c=ct(Mc),Vc=_c,Gc=K(3,function(n,t,r){return A(he(t),n,bt(!0))(r)}),Wc=Gc,Kc=ct(Wc),Yc=Kc,Hc=function(n,t){var r=function(t){return n(t)};return r.from=t,r},Xc=function(n,t){return Hc(tt(function(r,e){return Nn(t,r(n(e)))}),tt(function(r,e){return Nn(n,r(t(e)))}))},Zc=tt(function(n,t){return n.from(t)}),$c=tt(Xc);$c.from=Zc;var Jc,Qc,nf,tf,rf,ef,uf=$c,of=ct($r),cf=of,ff=ct(Vr),af=ff,lf=tt(function(n,t,r){return n(r)?t:r}),sf=lf,pf=S(ct,Qn),yf=pf,df=S(ct,$t),hf=df,gf=S(ct,In),bf=gf,vf=S(ct,Cn),mf=vf,jf=$t(Sn(["@@type"]),Sn(["constructor","@@type"])),Of=K(2,Xr(bt,[jf,jf])),Nf=A(le,Nn(Mr(xr(0),ee("fantasy-land/","")))),Af=(Jc={},Jc[ci.map]=function(n){return this.constructor[ci.of](n(this.value))},Jc),Sf=(Qc={},Qc[ci.ap]=function(n){var t=this;return n.map(function(n){return n(t.value)})},Qc),wf=(nf={},nf[ci.equals]=function(n){return Of(this,n)&&bt(this.value,n.value)},nf),xf=(tf={},tf[ci.concat]=function(n){var t=this.value;return Xe(this.value)||Ku(this.value)?t=this.value+n.value:Yr(iu,["value",ci.concat],this)?t=this.value[ci.concat](n.value):Yr(iu,["value","concat"],this)&&(t=this.value.concat(n.value)),this.constructor[ci.of](t)},tf),Pf=(rf={},rf[ci.chain]=function(n){var t=n(this.value);return Of(this,t)?t:this},rf),Ef=(ef={},ef[ci.lte]=function(n){return Of(this,n)&&(this.value<n.value||this[ci.equals](n))},ef),Ff=function(){function n(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}return function(t,r,e){return r&&n(t.prototype,r),e&&n(t,e),t}}(),qf=ci.of,Tf=ci.ap,If=ci.map,kf=ci.equals,Uf=ci.concat,Rf=ci.chain,Cf=ci.lte,Df=ci.empty,Bf=ci.contramap,zf=function(){function n(t){M(this,n),this.value=t}return n[qf]=function(t){return new n(t)},Ff(n,null,[{key:"@@type",get:function(){return"RA/Identity"}}]),n.prototype.get=function(){return this.value},n.prototype[Tf]=function(n){return Sf[Tf].call(this,n)},n.prototype[If]=function(n){return Af[If].call(this,n)},n.prototype[kf]=function(n){return wf[kf].call(this,n)},n.prototype[Uf]=function(n){return xf[Uf].call(this,n)},n.prototype[Rf]=function(n){return Pf[Rf].call(this,n)},n.prototype[Cf]=function(n){return Ef[Cf].call(this,n)},n.prototype[Df]=function(){return this.constructor.of(Qt(this.value))},n.prototype[Bf]=function(n){var t=this;return this.constructor.of(function(r){return t.value(n(r))})},n}();Nf(zf).forEach(function(n){var t=n[0],r=n[1];zf[t]=r}),Nf(zf.prototype).forEach(function(n){var t=n[0],r=n[1];zf.prototype[t]=r});var Lf=zf;r.d(t,"isNotUndefined",function(){return Oe}),r.d(t,"isUndefined",function(){return me}),r.d(t,"isNull",function(){return Ae}),r.d(t,"isNotNull",function(){return we}),r.d(t,"isNotNil",function(){return Pe}),r.d(t,"isArray",function(){return Te}),r.d(t,"isEmptyArray",function(){return ke}),r.d(t,"isNotArray",function(){return Re}),r.d(t,"isNonEmptyArray",function(){return ze}),r.d(t,"isBoolean",function(){return Me}),r.d(t,"isNotBoolean",function(){return Ve}),r.d(t,"isNilOrEmpty",function(){return We}),r.d(t,"isString",function(){return Xe}),r.d(t,"isEmptyString",function(){return $e}),r.d(t,"isNotString",function(){return Qe}),r.d(t,"isNonEmptyString",function(){return hu}),r.d(t,"isArrayLike",function(){return vu}),r.d(t,"isNotArrayLike",function(){return ju}),r.d(t,"isGeneratorFunction",function(){return ru}),r.d(t,"isNotGeneratorFunction",function(){return Nu}),r.d(t,"isAsyncFunction",function(){return uu}),r.d(t,"isNotAsyncFunction",function(){return Su}),r.d(t,"isFunction",function(){return iu}),r.d(t,"isNotFunction",function(){return xu}),r.d(t,"isObj",function(){return su}),r.d(t,"isObject",function(){return su}),r.d(t,"isNotObj",function(){return yu}),r.d(t,"isNotObject",function(){return yu}),r.d(t,"isObjLike",function(){return Eu}),r.d(t,"isObjectLike",function(){return Eu}),r.d(t,"isNotObjLike",function(){return qu}),r.d(t,"isNotObjectLike",function(){return qu}),r.d(t,"isPlainObj",function(){return Cu}),r.d(t,"isPlainObject",function(){return Cu}),r.d(t,"isNotPlainObj",function(){return Bu}),r.d(t,"isNotPlainObject",function(){return Bu}),r.d(t,"isDate",function(){return Lu}),r.d(t,"isNotDate",function(){return _u}),r.d(t,"isValidDate",function(){return no}),r.d(t,"isNotValidDate",function(){return ro}),r.d(t,"isInvalidDate",function(){return ro}),r.d(t,"isNumber",function(){return Ku}),r.d(t,"isNotNumber",function(){return uo}),r.d(t,"isPositive",function(){return io}),r.d(t,"isNegative",function(){return fo}),r.d(t,"isNaN",function(){return Zu}),r.d(t,"isNotNaN",function(){return Ju}),r.d(t,"isFinite",function(){return po}),r.d(t,"isNotFinite",function(){return ho}),r.d(t,"isInteger",function(){return mo}),r.d(t,"isNotInteger",function(){return Oo}),r.d(t,"isFloat",function(){return Ao}),r.d(t,"isNotFloat",function(){return wo}),r.d(t,"isValidNumber",function(){return Po}),r.d(t,"isNotValidNumber",function(){return Fo}),r.d(t,"isOdd",function(){return To}),r.d(t,"isEven",function(){return ko}),r.d(t,"isPair",function(){return Ro}),r.d(t,"isNotPair",function(){return Do}),r.d(t,"isThenable",function(){return zo}),r.d(t,"isPromise",function(){return Mo}),r.d(t,"isTruthy",function(){return Vo}),r.d(t,"isFalsy",function(){return Wo}),r.d(t,"isRegExp",function(){return Yo}),r.d(t,"isNotRegExp",function(){return Xo}),r.d(t,"stubUndefined",function(){return be}),r.d(t,"stubNull",function(){return $o}),r.d(t,"stubObj",function(){return Qo}),r.d(t,"stubObject",function(){return Qo}),r.d(t,"stubString",function(){return ti}),r.d(t,"stubArray",function(){return ei}),r.d(t,"noop",function(){return oi}),r.d(t,"liftFN",function(){return yi}),r.d(t,"liftF",function(){return hi}),r.d(t,"cata",function(){return bi}),r.d(t,"weave",function(){return mi}),r.d(t,"weaveLazy",function(){return Oi}),r.d(t,"curryRightN",function(){return Ai}),r.d(t,"curryRight",function(){return wi}),r.d(t,"allP",function(){return Pi}),r.d(t,"resolveP",function(){return Fi}),r.d(t,"rejectP",function(){return Ti}),r.d(t,"Y",function(){return ki}),r.d(t,"seq",function(){return Ri}),r.d(t,"sequencing",function(){return Ri}),r.d(t,"mapIndexed",function(){return Di}),r.d(t,"reduceIndexed",function(){return zi}),r.d(t,"pickIndexes",function(){return Vi}),r.d(t,"list",function(){return Wi}),r.d(t,"concatRight",function(){return Yi}),r.d(t,"reduceP",function(){return Xi}),r.d(t,"reduceRightP",function(){return Ji}),r.d(t,"sliceFrom",function(){return nc}),r.d(t,"sliceTo",function(){return rc}),r.d(t,"omitIndexes",function(){return ic}),r.d(t,"compact",function(){return fc}),r.d(t,"appendFlipped",function(){return lc}),r.d(t,"paths",function(){return pc}),r.d(t,"renameKeys",function(){return bc}),r.d(t,"renameKeysWith",function(){return dc}),r.d(t,"mergeRight",function(){return mc}),r.d(t,"resetToDefault",function(){return mc}),r.d(t,"mergeProps",function(){return Oc}),r.d(t,"mergePaths",function(){return Ac}),r.d(t,"mergeProp",function(){return Pc}),r.d(t,"mergePath",function(){return wc}),r.d(t,"viewOr",function(){return Fc}),r.d(t,"hasPath",function(){return Tc}),r.d(t,"spreadProp",function(){return Rc}),r.d(t,"spreadPath",function(){return kc}),r.d(t,"flattenProp",function(){return zc}),r.d(t,"flattenPath",function(){return Dc}),r.d(t,"lensEq",function(){return Mc}),r.d(t,"lensNotEq",function(){return Vc}),r.d(t,"lensSatisfies",function(){return Wc}),r.d(t,"lensNotSatisfy",function(){return Yc}),r.d(t,"lensIso",function(){return uf}),r.d(t,"propNotEq",function(){return cf}),r.d(t,"pathNotEq",function(){return af}),r.d(t,"isNotEmpty",function(){return De}),r.d(t,"defaultWhen",function(){return sf}),r.d(t,"notBoth",function(){return yf}),r.d(t,"neither",function(){return hf}),r.d(t,"notAllPass",function(){return bf}),r.d(t,"nonePass",function(){return mf}),r.d(t,"Identity",function(){return Lf})},function(n,t){n.exports=Array.isArray||function(n){return null!=n&&n.length>=0&&"[object Array]"===Object.prototype.toString.call(n)}},function(n,t){function r(n){return"[object String]"===Object.prototype.toString.call(n)}n.exports=r},function(n,t){function r(n){return"[object Object]"===Object.prototype.toString.call(n)}n.exports=r},function(n,t){function r(n){return"[object Number]"===Object.prototype.toString.call(n)}n.exports=r}])}); | ||
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.RA=t():n.RA=t()}("undefined"!=typeof self?self:this,function(){return function(n){function t(e){if(r[e])return r[e].exports;var u=r[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var r={};return t.m=n,t.c=r,t.d=function(n,r,e){t.o(n,r)||Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:e})},t.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(r,"a",r),r},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=0)}([function(n,t,r){"use strict";function e(n){return null!=n&&"object"==typeof n&&!0===n["@@functional/placeholder"]}function u(n){return function t(r){return 0===arguments.length||e(r)?t:n.apply(this,arguments)}}function o(n){return function t(r,o){switch(arguments.length){case 0:return t;case 1:return e(r)?t:u(function(t){return n(r,t)});default:return e(r)&&e(o)?t:e(r)?u(function(t){return n(t,o)}):e(o)?u(function(t){return n(r,t)}):n(r,o)}}}function i(n,t){n=n||[],t=t||[];var r,e=n.length,u=t.length,o=[];for(r=0;r<e;)o[o.length]=n[r],r+=1;for(r=0;r<u;)o[o.length]=t[r],r+=1;return o}function c(n,t){switch(n){case 0:return function(){return t.apply(this,arguments)};case 1:return function(n){return t.apply(this,arguments)};case 2:return function(n,r){return t.apply(this,arguments)};case 3:return function(n,r,e){return t.apply(this,arguments)};case 4:return function(n,r,e,u){return t.apply(this,arguments)};case 5:return function(n,r,e,u,o){return t.apply(this,arguments)};case 6:return function(n,r,e,u,o,i){return t.apply(this,arguments)};case 7:return function(n,r,e,u,o,i,c){return t.apply(this,arguments)};case 8:return function(n,r,e,u,o,i,c,f){return t.apply(this,arguments)};case 9:return function(n,r,e,u,o,i,c,f,a){return t.apply(this,arguments)};case 10:return function(n,r,e,u,o,i,c,f,a,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function f(n,t,r){return function(){for(var u=[],o=0,i=n,a=0;a<t.length||o<arguments.length;){var l;a<t.length&&(!e(t[a])||o>=arguments.length)?l=t[a]:(l=arguments[o],o+=1),u[a]=l,e(l)||(i-=1),a+=1}return i<=0?r.apply(this,u):c(i,f(n,u,r))}}function a(n){return function t(r,i,c){switch(arguments.length){case 0:return t;case 1:return e(r)?t:o(function(t,e){return n(r,t,e)});case 2:return e(r)&&e(i)?t:e(r)?o(function(t,r){return n(t,i,r)}):e(i)?o(function(t,e){return n(r,t,e)}):u(function(t){return n(r,i,t)});default:return e(r)&&e(i)&&e(c)?t:e(r)&&e(i)?o(function(t,r){return n(t,r,c)}):e(r)&&e(c)?o(function(t,r){return n(t,i,r)}):e(i)&&e(c)?o(function(t,e){return n(r,t,e)}):e(r)?u(function(t){return n(t,i,c)}):e(i)?u(function(t){return n(r,t,c)}):e(c)?u(function(t){return n(r,i,t)}):n(r,i,c)}}}function l(n){return"function"==typeof n["@@transducer/step"]}function s(n,t,r){return function(){if(0===arguments.length)return r();var e=Array.prototype.slice.call(arguments,0),u=e.pop();if(!J(u)){for(var o=0;o<n.length;){if("function"==typeof u[n[o]])return u[n[o]].apply(u,e);o+=1}if(l(u)){return t.apply(null,e)(u)}}return r.apply(this,arguments)}}function p(n){return n&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}}function d(n,t){for(var r=0,e=t.length,u=Array(e);r<e;)u[r]=n(t[r]),r+=1;return u}function y(n){return"[object String]"===Object.prototype.toString.call(n)}function h(n){return new un(n)}function g(n,t,r){for(var e=0,u=r.length;e<u;){if((t=n["@@transducer/step"](t,r[e]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e+=1}return n["@@transducer/result"](t)}function v(n,t,r){for(var e=r.next();!e.done;){if((t=n["@@transducer/step"](t,e.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e=r.next()}return n["@@transducer/result"](t)}function b(n,t,r,e){return n["@@transducer/result"](r[e](cn(n["@@transducer/step"],n),t))}function m(n,t,r){if("function"==typeof n&&(n=h(n)),en(r))return g(n,t,r);if("function"==typeof r["fantasy-land/reduce"])return b(n,t,r,"fantasy-land/reduce");if(null!=r[fn])return v(n,t,r[fn]());if("function"==typeof r.next)return v(n,t,r);if("function"==typeof r.reduce)return b(n,t,r,"reduce");throw new TypeError("reduce: list must be array or iterable")}function j(n,t){return Object.prototype.hasOwnProperty.call(t,n)}function O(n){return"[object Function]"===Object.prototype.toString.call(n)}function N(n,t){return function(){return t.call(this,n.apply(this,arguments))}}function A(n,t){return function(){var r=arguments.length;if(0===r)return t();var e=arguments[r-1];return J(e)||"function"!=typeof e[n]?t.apply(this,arguments):e[n].apply(e,Array.prototype.slice.call(arguments,0,r-1))}}function S(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return c(arguments[0].length,Tn(N,arguments[0],yt(arguments)))}function w(){if(0===arguments.length)throw new Error("compose requires at least one argument");return S.apply(this,gt(arguments))}function x(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}function P(n,t,r){for(var e=0,u=r.length;e<u;){if(n(t,r[e]))return!0;e+=1}return!1}function E(n){var t=String(n).match(/^function (\w*)/);return null==t?"":t[1]}function F(n,t,r,e){function u(n,t){return q(n,t,r.slice(),e.slice())}var o=x(n),i=x(t);return!P(function(n,t){return!P(u,t,n)},i,o)}function q(n,t,r,e){if(bt(n,t))return!0;var u=ut(n);if(u!==ut(t))return!1;if(null==n||null==t)return!1;if("function"==typeof n["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n);if("function"==typeof n.equals||"function"==typeof t.equals)return"function"==typeof n.equals&&n.equals(t)&&"function"==typeof t.equals&&t.equals(n);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof n.constructor&&"Promise"===E(n.constructor))return n===t;break;case"Boolean":case"Number":case"String":if(typeof n!=typeof t||!bt(n.valueOf(),t.valueOf()))return!1;break;case"Date":if(!bt(n.valueOf(),t.valueOf()))return!1;break;case"Error":return n.name===t.name&&n.message===t.message;case"RegExp":if(n.source!==t.source||n.global!==t.global||n.ignoreCase!==t.ignoreCase||n.multiline!==t.multiline||n.sticky!==t.sticky||n.unicode!==t.unicode)return!1}for(var o=r.length-1;o>=0;){if(r[o]===n)return e[o]===t;o-=1}switch(u){case"Map":return n.size===t.size&&F(n.entries(),t.entries(),r.concat([n]),e.concat([t]));case"Set":return n.size===t.size&&F(n.values(),t.values(),r.concat([n]),e.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=On(n);if(i.length!==On(t).length)return!1;var c=r.concat([n]),f=e.concat([t]);for(o=i.length-1;o>=0;){var a=i[o];if(!j(a,t)||!q(t[a],n[a],c,f))return!1;o-=1}return!0}function T(n,t,r){var e,u;if("function"==typeof n.indexOf)switch(typeof t){case"number":if(0===t){for(e=1/t;r<n.length;){if(0===(u=n[r])&&1/u===e)return r;r+=1}return-1}if(t!==t){for(;r<n.length;){if("number"==typeof(u=n[r])&&u!==u)return r;r+=1}return-1}return n.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return n.indexOf(t,r);case"object":if(null===t)return n.indexOf(t,r)}for(;r<n.length;){if(jt(n[r],t))return r;r+=1}return-1}function I(n,t){return T(t,n,0)>=0}function k(n){return'"'+n.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}function U(n){return function(){return!n.apply(this,arguments)}}function R(n,t){for(var r=0,e=t.length,u=[];r<e;)n(t[r])&&(u[u.length]=t[r]),r+=1;return u}function C(n){return"[object Object]"===Object.prototype.toString.call(n)}function D(n,t){var r=function(r){var e=t.concat([n]);return I(r,e)?"<Circular>":D(r,e)},e=function(n,t){return d(function(t){return k(t)+": "+r(n[t])},t.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+d(r,n).join(", ")+"))";case"[object Array]":return"["+d(r,n).concat(e(n,qt(function(n){return/^\d+$/.test(n)},On(n)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof n?"new Boolean("+r(n.valueOf())+")":n.toString();case"[object Date]":return"new Date("+(isNaN(n.valueOf())?r(NaN):k(At(n)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof n?"new Number("+r(n.valueOf())+")":1/n==-1/0?"-0":n.toString(10);case"[object String]":return"object"==typeof n?"new String("+r(n.valueOf())+")":k(n);case"[object Undefined]":return"undefined";default:if("function"==typeof n.toString){var u=n.toString();if("[object Object]"!==u)return u}return"{"+e(n,On(n)).join(", ")+"}"}}function B(n){return n}function z(n){if(null==n)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),r=1,e=arguments.length;r<e;){var u=arguments[r];if(null!=u)for(var o in u)j(o,u)&&(t[o]=u[o]);r+=1}return t}function L(n){return"[object Number]"===Object.prototype.toString.call(n)}function M(n){return[n]}function _(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var V=u(function(n){return function(){return n}}),G=V,W={"@@functional/placeholder":!0},K=o(function(n,t){return 1===n?u(t):c(n,f(n,[],t))}),Y=K,H=u(function(n){return Y(n.length,function(){var t=0,r=arguments[0],e=arguments[arguments.length-1],u=Array.prototype.slice.call(arguments,0);return u[0]=function(){var n=r.apply(this,i(arguments,[t,e]));return t+=1,n},n.apply(this,u)})}),X=H,Z=a(function(n,t,r){if(t>=r.length||t<-r.length)return r;var e=t<0?r.length:0,u=e+t,o=i(r);return o[u]=n(r[u]),o}),$=Z,J=Array.isArray||function(n){return null!=n&&n.length>=0&&"[object Array]"===Object.prototype.toString.call(n)},Q={init:function(){return this.xf["@@transducer/init"]()},result:function(n){return this.xf["@@transducer/result"](n)}},nn=o(function(n,t){return t>n?t:n}),tn=nn,rn=u(function(n){return!!J(n)||!!n&&("object"==typeof n&&(!y(n)&&(1===n.nodeType?!!n.length:0===n.length||n.length>0&&(n.hasOwnProperty(0)&&n.hasOwnProperty(n.length-1)))))}),en=rn,un=function(){function n(n){this.f=n}return n.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},n.prototype["@@transducer/result"]=function(n){return n},n.prototype["@@transducer/step"]=function(n,t){return this.f(n,t)},n}(),on=o(function(n,t){return c(n.length,function(){return n.apply(t,arguments)})}),cn=on,fn="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",an=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=Q.init,n.prototype["@@transducer/result"]=Q.result,n.prototype["@@transducer/step"]=function(n,t){return this.xf["@@transducer/step"](n,this.f(t))},n}(),ln=o(function(n,t){return new an(n,t)}),sn=ln,pn=Object.prototype.toString,dn=function(){return"[object Arguments]"===pn.call(arguments)?function(n){return"[object Arguments]"===pn.call(n)}:function(n){return j("callee",n)}},yn=dn,hn=!{toString:null}.propertyIsEnumerable("toString"),gn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],vn=function(){return arguments.propertyIsEnumerable("length")}(),bn=function(n,t){for(var r=0;r<n.length;){if(n[r]===t)return!0;r+=1}return!1},mn="function"!=typeof Object.keys||vn?function(n){if(Object(n)!==n)return[];var t,r,e=[],u=vn&&yn(n);for(t in n)!j(t,n)||u&&"length"===t||(e[e.length]=t);if(hn)for(r=gn.length-1;r>=0;)t=gn[r],j(t,n)&&!bn(e,t)&&(e[e.length]=t),r-=1;return e}:function(n){return Object(n)!==n?[]:Object.keys(n)},jn=u(mn),On=jn,Nn=o(s(["fantasy-land/map","map"],sn,function(n,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Y(t.length,function(){return n.call(this,t.apply(this,arguments))});case"[object Object]":return m(function(r,e){return r[e]=n(t[e]),r},{},On(t));default:return d(n,t)}})),An=Nn,Sn=o(function(n,t){for(var r=t,e=0;e<n.length;){if(null==r)return;r=r[n[e]],e+=1}return r}),wn=Sn,xn=o(function(n,t){return wn([n],t)}),Pn=xn,En=o(function(n,t){return An(Pn(n),t)}),Fn=En,qn=a(m),Tn=qn,In=u(function(n){return Y(Tn(tn,0,Fn("length",n)),function(){for(var t=0,r=n.length;t<r;){if(!n[t].apply(this,arguments))return!1;t+=1}return!0})}),kn=In,Un=o(function(n,t){return n&&t}),Rn=Un,Cn=u(function(n){return Y(Tn(tn,0,Fn("length",n)),function(){for(var t=0,r=n.length;t<r;){if(n[t].apply(this,arguments))return!0;t+=1}return!1})}),Dn=Cn,Bn=o(function(n,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](n):"function"==typeof n.ap?n.ap(t):"function"==typeof n?function(r){return n(r)(t(r))}:m(function(n,r){return i(n,An(r,t))},[],n)}),zn=Bn,Ln=o(function(n,t){return i(t,[n])}),Mn=Ln,_n=a(function(n,t,r){var e={};for(var u in r)e[u]=r[u];return e[n]=t,e}),Vn=_n,Gn=Number.isInteger||function(n){return n<<0===n},Wn=u(function(n){return null==n}),Kn=Wn,Yn=a(function n(t,r,e){if(0===t.length)return r;var u=t[0];if(t.length>1){var o=!Kn(e)&&j(u,e)?e[u]:Gn(t[1])?[]:{};r=n(Array.prototype.slice.call(t,1),r,o)}if(Gn(u)&&J(e)){var i=[].concat(e);return i[u]=r,i}return Vn(u,r,e)}),Hn=Yn,Xn=o(function(n,t){var r=Y(n,t);return Y(n,function(){return m(zn,An(r,arguments[0]),Array.prototype.slice.call(arguments,1))})}),Zn=Xn,$n=u(function(n){return Zn(n.length,n)}),Jn=$n,Qn=o(function(n,t){return O(n)?function(){return n.apply(this,arguments)&&t.apply(this,arguments)}:Jn(Rn)(n,t)}),nt=Qn,tt=u(function(n){return Y(n.length,n)}),rt=tt,et=u(function(n){return null===n?"Null":void 0===n?"Undefined":Object.prototype.toString.call(n).slice(8,-1)}),ut=et,ot=u(function(n){return function(t,r){return n(t,r)?-1:n(r,t)?1:0}}),it=ot,ct=u(function(n){return!n}),ft=ct,at=Jn(ft),lt=at,st=a(A("slice",function(n,t,r){return Array.prototype.slice.call(r,n,t)})),pt=st,dt=u(A("tail",pt(1,1/0))),yt=dt,ht=u(function(n){return y(n)?n.split("").reverse().join(""):Array.prototype.slice.call(n,0).reverse()}),gt=ht,vt=o(function(n,t){return n===t?0!==n||1/n==1/t:n!==n&&t!==t}),bt=vt,mt=o(function(n,t){return q(n,t,[],[])}),jt=mt,Ot=function(n){return(n<10?"0":"")+n},Nt="function"==typeof Date.prototype.toISOString?function(n){return n.toISOString()}:function(n){return n.getUTCFullYear()+"-"+Ot(n.getUTCMonth()+1)+"-"+Ot(n.getUTCDate())+"T"+Ot(n.getUTCHours())+":"+Ot(n.getUTCMinutes())+":"+Ot(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},At=Nt,St=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=Q.init,n.prototype["@@transducer/result"]=Q.result,n.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):n},n}(),wt=o(function(n,t){return new St(n,t)}),xt=wt,Pt=o(s(["filter"],xt,function(n,t){return C(t)?m(function(r,e){return n(t[e])&&(r[e]=t[e]),r},{},On(t)):R(n,t)})),Et=Pt,Ft=o(function(n,t){return Et(U(n),t)}),qt=Ft,Tt=u(function(n){return D(n,[])}),It=Tt,kt=o(function(n,t){if(J(n)){if(J(t))return n.concat(t);throw new TypeError(It(t)+" is not an array")}if(y(n)){if(y(t))return n+t;throw new TypeError(It(t)+" is not a string")}if(null!=n&&O(n["fantasy-land/concat"]))return n["fantasy-land/concat"](t);if(null!=n&&O(n.concat))return n.concat(t);throw new TypeError(It(n)+' does not have a method named "concat" or "fantasy-land/concat"')}),Ut=kt,Rt=o(I),Ct=Rt,Dt=o(function(n,t){return Y(Tn(tn,0,Fn("length",t)),function(){var r=arguments,e=this;return n.apply(e,d(function(n){return n.apply(e,r)},t))})}),Bt=Dt,zt=o(function(n,t){return null==t||t!==t?n:t}),Lt=zt,Mt=o(function(n,t){var r={};for(var e in t)r[e]=t[e];return delete r[n],r}),_t=Mt,Vt=a(function(n,t,r){var e=Array.prototype.slice.call(r,0);return e.splice(n,t),e}),Gt=Vt,Wt=a(function(n,t,r){return $(G(t),n,r)}),Kt=Wt,Yt=o(function n(t,r){switch(t.length){case 0:return r;case 1:return Gn(t[0])?Gt(t[0],1,r):_t(t[0],r);default:var e=t[0],u=Array.prototype.slice.call(t,1);return null==r[e]?r:Gn(t[0])?Kt(e,n(u,r[e]),r):Vn(e,n(u,r[e]),r)}}),Ht=Yt,Xt=o(function(n,t){var r=n<0?t.length+n:n;return y(t)?t.charAt(r):t[r]}),Zt=Xt,$t=o(function(n,t){return n||t}),Jt=$t,Qt=o(function(n,t){return O(n)?function(){return n.apply(this,arguments)||t.apply(this,arguments)}:Jn(Jt)(n,t)}),nr=Qt,tr=u(function(n){return null!=n&&"function"==typeof n["fantasy-land/empty"]?n["fantasy-land/empty"]():null!=n&&null!=n.constructor&&"function"==typeof n.constructor["fantasy-land/empty"]?n.constructor["fantasy-land/empty"]():null!=n&&"function"==typeof n.empty?n.empty():null!=n&&null!=n.constructor&&"function"==typeof n.constructor.empty?n.constructor.empty():J(n)?[]:y(n)?"":C(n)?{}:yn(n)?function(){return arguments}():void 0}),rr=tr,er=u(function(n){return Y(n.length,function(t,r){var e=Array.prototype.slice.call(arguments,0);return e[0]=r,e[1]=t,n.apply(this,e)})}),ur=er,or=u(function(n){for(var t={},r=0;r<n.length;)t[n[r][0]]=n[r][1],r+=1;return t}),ir=or,cr=o(function(n,t){return n>t}),fr=cr,ar=o(function(n,t){return n>=t}),lr=ar,sr=o(j),pr=sr,dr=Zt(0),yr=dr,hr=u(B),gr=hr,vr=a(function(n,t,r){return Y(Math.max(n.length,t.length,r.length),function(){return n.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)})}),br=vr,mr="function"==typeof Object.assign?Object.assign:z,jr=o(function(n,t){var r={};return r[n]=t,r}),Or=jr,Nr=(Array,String,Object,o(function(n,t){return Y(n+1,function(){var r=arguments[n];if(null!=r&&O(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,n));throw new TypeError(It(r)+' does not have a method named "'+t+'"')})})),Ar=Nr,Sr=o(function(n,t){return null!=t&&t.constructor===n||t instanceof n}),wr=Sr,xr=u(function(n){return null!=n&&jt(n,rr(n))}),Pr=xr,Er=u(function(n){return null!=n&&L(n.length)?n.length:NaN}),Fr=Er,qr=o(function(n,t){return function(r){return function(e){return An(function(n){return t(n,e)},r(n(e)))}}}),Tr=qr,Ir=u(function(n){return Tr(Zt(n),Kt(n))}),kr=Ir,Ur=u(function(n){return Tr(wn(n),Hn(n))}),Rr=Ur,Cr=o(function(n,t){return n<t}),Dr=Cr,Br=o(function(n,t){return n<=t}),zr=Br,Lr=o(function(n,t){return mr({},n,t)}),Mr=Lr,_r=u(function(n){return mr.apply(null,[{}].concat(n))}),Vr=_r,Gr=o(function(n,t){return n%t}),Wr=Gr,Kr=u(M),Yr=Kr,Hr=function(n){return{value:n,map:function(t){return Hr(t(n))}}},Xr=a(function(n,t,r){return n(function(n){return Hr(t(n))})(r).value}),Zr=Xr,$r=a(function(n,t,r){return jt(wn(n,r),t)}),Jr=$r,Qr=a(function(n,t,r){return Lt(n,wn(t,r))}),ne=Qr,te=a(function(n,t,r){return t.length>0&&n(wn(t,r))}),re=te,ee=o(function(n,t){var r={};for(var e in t)n(t[e],e,t)&&(r[e]=t[e]);return r}),ue=ee,oe=o(function(n,t){return Y(t.length,function(){for(var r=[],e=0;e<t.length;)r.push(t[e].call(this,arguments[e])),e+=1;return n.apply(this,r.concat(Array.prototype.slice.call(arguments,t.length)))})}),ie=oe,ce=a(function(n,t,r){return jt(t,r[n])}),fe=ce,ae=o(function(n,t){for(var r=n.length,e=[],u=0;u<r;)e[u]=t[n[u]],u+=1;return e}),le=ae,se=a(function(n,t,r){for(var e=r.length-1;e>=0;)t=n(r[e],t),e-=1;return t}),pe=se,de=u(p),ye=de,he=a(function(n,t,r){return r.replace(n,t)}),ge=he,ve=o(function(n,t){return Array.prototype.slice.call(t,0).sort(n)}),be=ve,me=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=Q.init,n.prototype["@@transducer/result"]=Q.result,n.prototype["@@transducer/step"]=function(n,t){return this.f(t),this.xf["@@transducer/step"](n,t)},n}(),je=o(function(n,t){return new me(n,t)}),Oe=je,Ne=o(s([],Oe,function(n,t){return n(t),t})),Ae=Ne,Se=u(function(n){var t=[];for(var r in n)j(r,n)&&(t[t.length]=[r,n[r]]);return t}),we=Se,xe=(String.prototype.trim,u(function(n){return function(){return n(Array.prototype.slice.call(arguments,0))}})),Pe=xe,Ee=function(n){return{value:n,"fantasy-land/map":function(){return this}}},Fe=o(function(n,t){return n(Ee)(t).value}),qe=Fe,Te=a(function(n,t,r){return n(r)?t(r):r}),Ie=Te,ke=G(void 0),Ue=ke,Re=jt(Ue()),Ce=Re,De=lt(Ce),Be=De,ze=jt(null),Le=ze,Me=lt(Le),_e=Me,Ve=lt(Kn),Ge=Ve,We=r(1),Ke=r.n(We),Ye=Array.isArray||Ke.a,He=Ye,Xe=nt(He,Pr),Ze=Xe,$e=lt(He),Je=$e,Qe=lt(Pr),nu=Qe,tu=nt(He,nu),ru=tu,eu=wr(Boolean),uu=eu,ou=lt(uu),iu=ou,cu=nr(Kn,Pr),fu=cu,au=r(2),lu=r.n(au),su=lu.a,pu=su,du=jt(""),yu=du,hu=lt(pu),gu=hu,vu=null;try{vu=new Function("return function* () {}")().constructor}catch(n){}var bu=function(n){var t="[object GeneratorFunction]"===Object.prototype.toString.call(n),r=_e(vu)&&n instanceof vu;return t||r},mu=bu,ju=function(n){return"[object AsyncFunction]"===Object.prototype.toString.call(n)},Ou=ju,Nu=Dn([function(n){return"[object Function]"===Object.prototype.toString.call(n)},mu,Ou]),Au=Nu,Su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},wu=function(n){return"object"===(void 0===n?"undefined":Su(n))},xu=wu,Pu=nt(_e,nr(xu,Au)),Eu=Pu,Fu=lt(Eu),qu=Fu,Tu=kn([pu,qu,nu]),Iu=Tu,ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Uu=function(n){return!!He(n)||!!n&&(!pu(n)&&("object"===(void 0===n?"undefined":ku(n))&&(1===n.nodeType?!!n.length:0===n.length||n.length>0&&(pr(0,n)&&pr(n.length-1,n)))))},Ru=Uu,Cu=lt(Ru),Du=Cu,Bu=lt(mu),zu=Bu,Lu=lt(Ou),Mu=Lu,_u=lt(Au),Vu=_u,Gu=nt(_e,xu),Wu=Gu,Ku=lt(Wu),Yu=Ku,Hu=r(3),Xu=r.n(Hu),Zu=S(It,jt(It(Object))),$u=re(nt(Au,Zu),["constructor"]),Ju=function(n){if(!Wu(n)||!Xu()(n))return!1;var t=Object.getPrototypeOf(n);return!!Le(t)||$u(t)},Qu=Ju,no=lt(Qu),to=no,ro=wr(Date),eo=ro,uo=lt(eo),oo=uo,io=r(4),co=r.n(io),fo=co.a,ao=fo,lo=nt(ao,isNaN),so=lo,po=Number.isNaN||so,yo=po,ho=lt(yo),go=ho,vo=nt(eo,S(Ar(0,"getTime"),go)),bo=vo,mo=lt(bo),jo=mo,Oo=lt(ao),No=Oo,Ao=nt(ao,Dr(0)),So=Ao,wo=nt(ao,fr(0)),xo=wo,Po=nt(ao,ur(zr)(0)),Eo=Po,Fo=nt(ao,ur(lr)(0)),qo=Fo,To=nt(ao,isFinite),Io=To,ko=Number.isFinite||Io,Uo=ko,Ro=lt(Uo),Co=Ro,Do=nt(Uo,Bt(jt,[Math.floor,gr])),Bo=Do,zo=Number.isInteger||Bo,Lo=zo,Mo=lt(Lo),_o=Mo,Vo=nt(Uo,lt(Lo)),Go=Vo,Wo=lt(Go),Ko=Wo,Yo=nr(Lo,Go),Ho=Yo,Xo=lt(Ho),Zo=Xo,$o=nt(Lo,S(ur(Wr)(2),lt(jt)(0))),Jo=$o,Qo=nt(Lo,lt(Jo)),ni=Qo,ti=nt(He,S(Fr,jt(2))),ri=ti,ei=lt(ri),ui=ei,oi=re(Au,["then"]),ii=oi,ci=nt(Eu,S(It,jt("[object Promise]"))),fi=ci,ai=jt(!0),li=jt(!1),si=Boolean,pi=si,di=lt(pi),yi=di,hi=wr(RegExp),gi=hi,vi=lt(gi),bi=vi,mi=G(null),ji=mi,Oi=function(){return{}},Ni=Oi,Ai=G(""),Si=Ai,wi=function(){return[]},xi=wi,Pi=G(Ue()),Ei=Pi,Fi=Object.freeze({equals:"fantasy-land/equals",lte:"fantasy-land/lte",compose:"fantasy-land/compose",id:"fantasy-land/id",concat:"fantasy-land/concat",empty:"fantasy-land/empty",map:"fantasy-land/map",contramap:"fantasy-land/contramap",ap:"fantasy-land/ap",of:"fantasy-land/of",alt:"fantasy-land/alt",zero:"fantasy-land/zero",reduce:"fantasy-land/reduce",traverse:"fantasy-land/traverse",chain:"fantasy-land/chain",chainRec:"fantasy-land/chainRec",extend:"fantasy-land/extend",extract:"fantasy-land/extract",bimap:"fantasy-land/bimap",promap:"fantasy-land/promap"}),qi=Fi,Ti=nr(re(Au,["map"]),re(Au,[qi.map])),Ii=nt(Ti,nr(re(Au,["ap"]),re(Au,[qi.ap]))),ki=Y(2,function(n,t){if(!Ii(n)||!Ii(t))return zn(n,t);try{return n.ap(t)}catch(r){return t.ap(n)}}),Ui=ki,Ri=rt(function(n,t){var r=Y(n,t);return Y(n,function(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];var u=An(r,yr(t)),o=pt(1,1/0,t);return Tn(Ui,u,o)})}),Ci=Ri,Di=function(n){return Ci(n.length,n)},Bi=Di,zi=rt(function(n,t,r){return Au(r.cata)?r.cata(n,t):r.either(n,t)}),Li=zi,Mi=Y(2,function(n,t){return Y(n.length,function(){return n.apply(void 0,arguments).run(t)})}),_i=Mi,Vi=Y(2,function(n,t){return Y(n.length,function(){return n.apply(void 0,arguments).run(t())})}),Gi=Vi,Wi=Y(2,function(n,t){return Y(n,function(){for(var n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];return t.apply(this,gt(r))})}),Ki=Wi,Yi=Bt(Ki,[Fr,gr]),Hi=Yi,Xi=cn(Promise.all,Promise),Zi=Xi,$i=cn(Promise.resolve,Promise),Ji=$i,Qi=cn(Promise.reject,Promise),nc=Qi,tc=function(n){return function(n){return n(n)}(function(t){return n(function(n){return t(t)(n)})})},rc=tc,ec=rt(function(n,t){return Ae(function(t){return An(function(n){return n(t)})(n)})(t)}),uc=ec,oc=it(function(n,t){return n.length>t.length}),ic=S(be(oc),yr,Pn("length")),cc=rt(function(n,t,r){var e=r.apply(void 0,n);return Ge(e)?ye(e):t}),fc=function(n){var t=ic(n);return Y(t,function(){for(var t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];return Tn(cc(r),void 0,n)})},ac=br(ru,fc,Ue),lc=X(An),sc=lc,pc=X(Tn),dc=pc,yc=X(Et),hc=rt(function(n,t,r){return Ct(r,n)}),gc=rt(function(n,t){return yc(hc(n),t)}),vc=gc,bc=Pe(gr),mc=bc,jc=Ie(Je,Yr),Oc=jc,Nc={concat:gr},Ac=S(Tn(Ut,Nc),Ie(bt(Nc),Ue)),Sc=Ac,wc=ur(Ut),xc=wc,Pc=Y(3,function(n,t,r){return Ji(r).then(function(r){var e=Fr(r);return 0===e?t:Tn(function(t,r){return t.then(function(n){return Zi([n,r])}).then(function(t){var r=t[0],u=t[1];return Ce(r)&&1===e?u:n(r,u)})})(Ji(t),r)})}),Ec=Pc,Fc=S(pe(Ut,""),jt("ba"))(["a","b"]),qc=Y(3,function(n,t,r){return Ji(r).then(function(r){var e=Fr(r);return 0===e?t:pe(function(t,r){var u=void 0,o=void 0;return Fc?(u=t,o=r):(u=r,o=t),u.then(function(n){return Zi([n,o])}).then(function(t){var r=t[0],u=t[1];return Ce(r)&&1===e?u:n(u,r)})})(Ji(t),r)})}),Tc=qc,Ic=pt(W,1/0),kc=Ic,Uc=pt(0),Rc=Uc,Cc=X(qt),Dc=rt(function(n,t,r){return Ct(r,n)}),Bc=rt(function(n,t){return Cc(Dc(n),t)}),zc=Bc,Lc=qt(yi),Mc=Lc,_c=ur(Mn),Vc=_c,Gc=rt(function(n,t){return zn([wn(W,t)],n)}),Wc=Gc,Kc=rt(function(n,t){return S(we,An($(n,0)),ir)(t)}),Yc=Kc,Hc=function(n){return function(t){return pr(t,n)?n[t]:t}},Xc=rt(function(n,t){return Yc(Hc(n),t)}),Zc=Xc,$c=ur(Mr),Jc=$c,Qc=Y(2,S(le,Vr)),nf=Qc,tf=Y(2,S(Wc,Vr)),rf=tf,ef=rt(function(n,t,r){return Zr(Rr(n),Jc(t),r)}),uf=ef,of=rt(function(n,t,r){return uf(Yr(n),t,r)}),cf=of,ff=ie(ue,[lt,gr]),af=ff,lf=Y(3,function(n,t,r){return Lt(n,qe(t,r))}),sf=lf,pf=Y(2,function(n,t){var r=yr(n);return!(0===Fr(n)||!Eu(t))&&(1===Fr(n)?pr(r,t):pf(yt(n),wn([r],t)))}),df=pf,yf=Y(2,Bt(Mr,[Ht,ne({})])),hf=yf,gf=rt(function(n,t){return hf(Yr(n),t)}),vf=gf,bf=rt(function(n,t){return Mr(t,ne({},n,t))}),mf=bf,jf=rt(function(n,t){return mf(Yr(n),t)}),Of=jf,Nf=Y(3,function(n,t,r){return S(qe(n),jt(t))(r)}),Af=Nf,Sf=lt(Af),wf=Sf,xf=Y(3,function(n,t,r){return S(qe(t),n,ai)(r)}),Pf=xf,Ef=lt(Pf),Ff=Ef,qf=function(n,t){var r=function(t){return n(t)};return r.from=t,r},Tf=function(n,t){return qf(rt(function(r,e){return An(t,r(n(e)))}),rt(function(r,e){return An(n,r(t(e)))}))},If=rt(function(n,t){return n.from(t)}),kf=rt(Tf);kf.from=If;var Uf,Rf,Cf,Df,Bf,zf,Lf=kf,Mf=lt(fe),_f=Mf,Vf=lt(Jr),Gf=Vf,Wf=rt(function(n,t,r){return n(r)?t:r}),Kf=Wf,Yf=w(lt,nt),Hf=Yf,Xf=w(lt,nr),Zf=Xf,$f=w(lt,kn),Jf=$f,Qf=w(lt,Dn),na=Qf,ta=nr(wn(["@@type"]),wn(["constructor","@@type"])),ra=Y(2,ie(jt,[ta,ta])),ea=S(we,An(Zr(kr(0),ge("fantasy-land/","")))),ua=(Uf={},Uf[qi.map]=function(n){return this.constructor[qi.of](n(this.value))},Uf),oa=(Rf={},Rf[qi.ap]=function(n){var t=this;return n.map(function(n){return n(t.value)})},Rf),ia=(Cf={},Cf[qi.equals]=function(n){return ra(this,n)&&jt(this.value,n.value)},Cf),ca=(Df={},Df[qi.concat]=function(n){var t=this.value;return pu(this.value)||ao(this.value)?t=this.value+n.value:re(Au,["value",qi.concat],this)?t=this.value[qi.concat](n.value):re(Au,["value","concat"],this)&&(t=this.value.concat(n.value)),this.constructor[qi.of](t)},Df),fa=(Bf={},Bf[qi.chain]=function(n){var t=n(this.value);return ra(this,t)?t:this},Bf),aa=(zf={},zf[qi.lte]=function(n){return ra(this,n)&&(this.value<n.value||this[qi.equals](n))},zf),la=function(){function n(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}return function(t,r,e){return r&&n(t.prototype,r),e&&n(t,e),t}}(),sa=qi.of,pa=qi.ap,da=qi.map,ya=qi.equals,ha=qi.concat,ga=qi.chain,va=qi.lte,ba=qi.empty,ma=qi.contramap,ja=function(){function n(t){_(this,n),this.value=t}return n[sa]=function(t){return new n(t)},la(n,null,[{key:"@@type",get:function(){return"RA/Identity"}}]),n.prototype.get=function(){return this.value},n.prototype[pa]=function(n){return oa[pa].call(this,n)},n.prototype[da]=function(n){return ua[da].call(this,n)},n.prototype[ya]=function(n){return ia[ya].call(this,n)},n.prototype[ha]=function(n){return ca[ha].call(this,n)},n.prototype[ga]=function(n){return fa[ga].call(this,n)},n.prototype[va]=function(n){return aa[va].call(this,n)},n.prototype[ba]=function(){return this.constructor.of(rr(this.value))},n.prototype[ma]=function(n){var t=this;return this.constructor.of(function(r){return t.value(n(r))})},n}();ea(ja).forEach(function(n){var t=n[0],r=n[1];ja[t]=r}),ea(ja.prototype).forEach(function(n){var t=n[0],r=n[1];ja.prototype[t]=r});var Oa=ja;r.d(t,"isNotUndefined",function(){return Be}),r.d(t,"isUndefined",function(){return Ce}),r.d(t,"isNull",function(){return Le}),r.d(t,"isNotNull",function(){return _e}),r.d(t,"isNotNil",function(){return Ge}),r.d(t,"isArray",function(){return He}),r.d(t,"isEmptyArray",function(){return Ze}),r.d(t,"isNotArray",function(){return Je}),r.d(t,"isNonEmptyArray",function(){return ru}),r.d(t,"isBoolean",function(){return uu}),r.d(t,"isNotBoolean",function(){return iu}),r.d(t,"isNilOrEmpty",function(){return fu}),r.d(t,"isString",function(){return pu}),r.d(t,"isEmptyString",function(){return yu}),r.d(t,"isNotString",function(){return gu}),r.d(t,"isNonEmptyString",function(){return Iu}),r.d(t,"isArrayLike",function(){return Ru}),r.d(t,"isNotArrayLike",function(){return Du}),r.d(t,"isGeneratorFunction",function(){return mu}),r.d(t,"isNotGeneratorFunction",function(){return zu}),r.d(t,"isAsyncFunction",function(){return Ou}),r.d(t,"isNotAsyncFunction",function(){return Mu}),r.d(t,"isFunction",function(){return Au}),r.d(t,"isNotFunction",function(){return Vu}),r.d(t,"isObj",function(){return Eu}),r.d(t,"isObject",function(){return Eu}),r.d(t,"isNotObj",function(){return qu}),r.d(t,"isNotObject",function(){return qu}),r.d(t,"isObjLike",function(){return Wu}),r.d(t,"isObjectLike",function(){return Wu}),r.d(t,"isNotObjLike",function(){return Yu}),r.d(t,"isNotObjectLike",function(){return Yu}),r.d(t,"isPlainObj",function(){return Qu}),r.d(t,"isPlainObject",function(){return Qu}),r.d(t,"isNotPlainObj",function(){return to}),r.d(t,"isNotPlainObject",function(){return to}),r.d(t,"isDate",function(){return eo}),r.d(t,"isNotDate",function(){return oo}),r.d(t,"isValidDate",function(){return bo}),r.d(t,"isNotValidDate",function(){return jo}),r.d(t,"isInvalidDate",function(){return jo}),r.d(t,"isNumber",function(){return ao}),r.d(t,"isNotNumber",function(){return No}),r.d(t,"isPositive",function(){return So}),r.d(t,"isNegative",function(){return xo}),r.d(t,"isNonPositive",function(){return Eo}),r.d(t,"isNonNegative",function(){return qo}),r.d(t,"isNaN",function(){return yo}),r.d(t,"isNotNaN",function(){return go}),r.d(t,"isFinite",function(){return Uo}),r.d(t,"isNotFinite",function(){return Co}),r.d(t,"isInteger",function(){return Lo}),r.d(t,"isNotInteger",function(){return _o}),r.d(t,"isFloat",function(){return Go}),r.d(t,"isNotFloat",function(){return Ko}),r.d(t,"isValidNumber",function(){return Ho}),r.d(t,"isNotValidNumber",function(){return Zo}),r.d(t,"isOdd",function(){return Jo}),r.d(t,"isEven",function(){return ni}),r.d(t,"isPair",function(){return ri}),r.d(t,"isNotPair",function(){return ui}),r.d(t,"isThenable",function(){return ii}),r.d(t,"isPromise",function(){return fi}),r.d(t,"isTrue",function(){return ai}),r.d(t,"isFalse",function(){return li}),r.d(t,"isTruthy",function(){return pi}),r.d(t,"isFalsy",function(){return yi}),r.d(t,"isRegExp",function(){return gi}),r.d(t,"isNotRegExp",function(){return bi}),r.d(t,"stubUndefined",function(){return Ue}),r.d(t,"stubNull",function(){return ji}),r.d(t,"stubObj",function(){return Ni}),r.d(t,"stubObject",function(){return Ni}),r.d(t,"stubString",function(){return Si}),r.d(t,"stubArray",function(){return xi}),r.d(t,"noop",function(){return Ei}),r.d(t,"liftFN",function(){return Ci}),r.d(t,"liftF",function(){return Bi}),r.d(t,"cata",function(){return Li}),r.d(t,"weave",function(){return _i}),r.d(t,"weaveLazy",function(){return Gi}),r.d(t,"curryRightN",function(){return Ki}),r.d(t,"curryRight",function(){return Hi}),r.d(t,"allP",function(){return Zi}),r.d(t,"resolveP",function(){return Ji}),r.d(t,"rejectP",function(){return nc}),r.d(t,"Y",function(){return rc}),r.d(t,"seq",function(){return uc}),r.d(t,"sequencing",function(){return uc}),r.d(t,"dispatch",function(){return ac}),r.d(t,"mapIndexed",function(){return sc}),r.d(t,"reduceIndexed",function(){return dc}),r.d(t,"pickIndexes",function(){return vc}),r.d(t,"list",function(){return mc}),r.d(t,"ensureArray",function(){return Oc}),r.d(t,"concatAll",function(){return Sc}),r.d(t,"concatRight",function(){return xc}),r.d(t,"reduceP",function(){return Ec}),r.d(t,"reduceRightP",function(){return Tc}),r.d(t,"sliceFrom",function(){return kc}),r.d(t,"sliceTo",function(){return Rc}),r.d(t,"omitIndexes",function(){return zc}),r.d(t,"compact",function(){return Mc}),r.d(t,"appendFlipped",function(){return Vc}),r.d(t,"paths",function(){return Wc}),r.d(t,"renameKeys",function(){return Zc}),r.d(t,"renameKeysWith",function(){return Yc}),r.d(t,"mergeRight",function(){return Jc}),r.d(t,"resetToDefault",function(){return Jc}),r.d(t,"mergeProps",function(){return nf}),r.d(t,"mergePaths",function(){return rf}),r.d(t,"mergeProp",function(){return cf}),r.d(t,"mergePath",function(){return uf}),r.d(t,"omitBy",function(){return af}),r.d(t,"viewOr",function(){return sf}),r.d(t,"hasPath",function(){return df}),r.d(t,"spreadProp",function(){return vf}),r.d(t,"spreadPath",function(){return hf}),r.d(t,"flattenProp",function(){return Of}),r.d(t,"flattenPath",function(){return mf}),r.d(t,"lensEq",function(){return Af}),r.d(t,"lensNotEq",function(){return wf}),r.d(t,"lensSatisfies",function(){return Pf}),r.d(t,"lensNotSatisfy",function(){return Ff}),r.d(t,"lensIso",function(){return Lf}),r.d(t,"propNotEq",function(){return _f}),r.d(t,"pathNotEq",function(){return Gf}),r.d(t,"isNotEmpty",function(){return nu}),r.d(t,"defaultWhen",function(){return Kf}),r.d(t,"notBoth",function(){return Hf}),r.d(t,"neither",function(){return Zf}),r.d(t,"notAllPass",function(){return Jf}),r.d(t,"nonePass",function(){return na}),r.d(t,"Identity",function(){return Oa})},function(n,t){n.exports=Array.isArray||function(n){return null!=n&&n.length>=0&&"[object Array]"===Object.prototype.toString.call(n)}},function(n,t){function r(n){return"[object String]"===Object.prototype.toString.call(n)}n.exports=r},function(n,t){function r(n){return"[object Object]"===Object.prototype.toString.call(n)}n.exports=r},function(n,t){function r(n){return"[object Number]"===Object.prototype.toString.call(n)}n.exports=r}])}); |
@@ -51,2 +51,4 @@ /** | ||
export { default as isNegative } from './isNegative'; | ||
export { default as isNonPositive } from './isNonPositive'; | ||
export { default as isNonNegative } from './isNonNegative'; | ||
export { default as isNaN } from './isNaN'; | ||
@@ -68,2 +70,4 @@ export { default as isNotNaN } from './isNotNaN'; | ||
export { default as isPromise } from './isPromise'; | ||
export { default as isTrue } from './isTrue'; | ||
export { default as isFalse } from './isFalse'; | ||
export { default as isTruthy } from './isTruthy'; | ||
@@ -94,2 +98,3 @@ export { default as isFalsy } from './isFalsy'; | ||
export { default as sequencing } from './seq'; | ||
export { default as dispatch } from './dispatch'; | ||
// List | ||
@@ -100,2 +105,4 @@ export { default as mapIndexed } from './mapIndexed'; | ||
export { default as list } from './list'; | ||
export { default as ensureArray } from './ensureArray'; | ||
export { default as concatAll } from './concatAll'; | ||
export { default as concatRight } from './concatRight'; | ||
@@ -119,2 +126,3 @@ export { default as reduceP } from './reduceP'; | ||
export { default as mergePath } from './mergePath'; | ||
export { default as omitBy } from './omitBy'; | ||
export { default as viewOr } from './viewOr'; | ||
@@ -121,0 +129,0 @@ export { default as hasPath } from './hasPath'; |
@@ -1,2 +0,2 @@ | ||
import { ap as apR, curryN, pathSatisfies, both, anyPass } from 'ramda'; | ||
import { ap as apR, curryN, pathSatisfies, both, either } from 'ramda'; | ||
@@ -6,4 +6,4 @@ import isFunction from '../isFunction'; | ||
var isFunctor = /*#__PURE__*/anyPass([/*#__PURE__*/pathSatisfies(isFunction, ['map']), /*#__PURE__*/pathSatisfies(isFunction, [fl.map])]); | ||
var isApply = /*#__PURE__*/both(isFunctor, /*#__PURE__*/anyPass([/*#__PURE__*/pathSatisfies(isFunction, ['ap']), /*#__PURE__*/pathSatisfies(isFunction, [fl.ap])])); | ||
var isFunctor = /*#__PURE__*/either( /*#__PURE__*/pathSatisfies(isFunction, ['map']), /*#__PURE__*/pathSatisfies(isFunction, [fl.map])); | ||
var isApply = /*#__PURE__*/both(isFunctor, /*#__PURE__*/either( /*#__PURE__*/pathSatisfies(isFunction, ['ap']), /*#__PURE__*/pathSatisfies(isFunction, [fl.ap]))); | ||
@@ -10,0 +10,0 @@ var ap = /*#__PURE__*/curryN(2, function (applyF, applyX) { |
@@ -8,3 +8,2 @@ import isNotNull from './isNotNull'; | ||
/* eslint-disable max-len */ | ||
@@ -11,0 +10,0 @@ /** |
@@ -6,3 +6,4 @@ import { both, gt } from 'ramda'; | ||
/** | ||
* Checks if value is a negative `Number` primitive or object. | ||
* Checks if value is a negative `Number` primitive or object. Zero is not considered neither | ||
* positive or negative. | ||
* | ||
@@ -9,0 +10,0 @@ * @func isNegative |
@@ -1,2 +0,2 @@ | ||
import { anyPass, isEmpty, isNil } from 'ramda'; | ||
import { either, isEmpty, isNil } from 'ramda'; | ||
@@ -24,4 +24,4 @@ /** | ||
*/ | ||
var isNilOrEmpty = /*#__PURE__*/anyPass([isNil, isEmpty]); | ||
var isNilOrEmpty = /*#__PURE__*/either(isNil, isEmpty); | ||
export default isNilOrEmpty; |
@@ -1,2 +0,2 @@ | ||
import { both, anyPass } from 'ramda'; | ||
import { both, either } from 'ramda'; | ||
@@ -29,4 +29,4 @@ import isNotNull from './isNotNull'; | ||
/* eslint-enable max-len */ | ||
var isObj = /*#__PURE__*/both(isNotNull, /*#__PURE__*/anyPass([isOfTypeObject, isFunction])); | ||
var isObj = /*#__PURE__*/both(isNotNull, /*#__PURE__*/either(isOfTypeObject, isFunction)); | ||
export default isObj; |
@@ -6,3 +6,3 @@ import { both, lt } from 'ramda'; | ||
/** | ||
* Checks if value is a positive `Number` primitive or object. | ||
* Checks if value is a positive `Number` primitive or object. Zero is not considered positive. | ||
* | ||
@@ -9,0 +9,0 @@ * @func isPositive |
@@ -1,3 +0,1 @@ | ||
import { pipe, equals } from 'ramda'; | ||
/** | ||
@@ -10,3 +8,3 @@ * In JavaScript, a `truthy` value is a value that is considered true | ||
* @memberOf RA | ||
* @since {@link https://char0n.github.io/ramda-adjunct/2.2.0|v2.2..0} | ||
* @since {@link https://char0n.github.io/ramda-adjunct/2.2.0|v2.2.0} | ||
* @category Type | ||
@@ -27,4 +25,4 @@ * @sig * -> Boolean | ||
*/ | ||
var isTruthy = /*#__PURE__*/pipe(Boolean, /*#__PURE__*/equals(true)); | ||
var isTruthy = Boolean; | ||
export default isTruthy; |
@@ -8,3 +8,2 @@ import { curry, map } from 'ramda'; | ||
// isomorphic :: ((a -> b), (b -> a)) -> Isomorphism | ||
@@ -11,0 +10,0 @@ // Isomorphism = x -> y |
@@ -23,5 +23,5 @@ import { complement } from 'ramda'; | ||
* | ||
* RA.lensNotSatisfy(R.equals(true), R.lensIndex(0), [false, true, 1]); // => true | ||
* RA.lensNotSatisfy(R.equals(true), R.lensIndex(1), [false, true, 1]); // => false | ||
* RA.lensNotSatisfy(R.equals(true), R.lensIndex(2), [false, true, 1]); // => true | ||
* RA.lensNotSatisfy(RA.isTrue, R.lensIndex(0), [false, true, 1]); // => true | ||
* RA.lensNotSatisfy(RA.isTrue, R.lensIndex(1), [false, true, 1]); // => false | ||
* RA.lensNotSatisfy(RA.isTrue, R.lensIndex(2), [false, true, 1]); // => true | ||
* RA.lensNotSatisfy(R.identity, R.lensProp('x'), { x: 1 }); // => true | ||
@@ -28,0 +28,0 @@ */ |
@@ -1,3 +0,5 @@ | ||
import { view, curryN, equals, pipe } from 'ramda'; | ||
import { view, curryN, pipe } from 'ramda'; | ||
import isTrue from './isTrue'; | ||
/** | ||
@@ -22,11 +24,11 @@ * Returns `true` if data structure focused by the given lens satisfies the predicate. | ||
* | ||
* RA.lensSatisfies(R.equals(true), R.lensIndex(0), [false, true, 1]); // => false | ||
* RA.lensSatisfies(R.equals(true), R.lensIndex(1), [false, true, 1]); // => true | ||
* RA.lensSatisfies(R.equals(true), R.lensIndex(2), [false, true, 1]); // => false | ||
* RA.lensSatisfies(RA.isTrue, R.lensIndex(0), [false, true, 1]); // => false | ||
* RA.lensSatisfies(RA.isTrue, R.lensIndex(1), [false, true, 1]); // => true | ||
* RA.lensSatisfies(RA.isTrue, R.lensIndex(2), [false, true, 1]); // => false | ||
* RA.lensSatisfies(R.identity, R.lensProp('x'), { x: 1 }); // => false | ||
*/ | ||
var lensSatisfies = /*#__PURE__*/curryN(3, function (predicate, lens, data) { | ||
return pipe(view(lens), predicate, equals(true))(data); | ||
return pipe(view(lens), predicate, isTrue)(data); | ||
}); | ||
export default lensSatisfies; |
@@ -389,2 +389,20 @@ 'use strict'; | ||
var _isNonPositive = /*#__PURE__*/require('./isNonPositive'); | ||
Object.defineProperty(exports, 'isNonPositive', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_isNonPositive).default; | ||
} | ||
}); | ||
var _isNonNegative = /*#__PURE__*/require('./isNonNegative'); | ||
Object.defineProperty(exports, 'isNonNegative', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_isNonNegative).default; | ||
} | ||
}); | ||
var _isNaN = /*#__PURE__*/require('./isNaN'); | ||
@@ -534,2 +552,20 @@ | ||
var _isTrue = /*#__PURE__*/require('./isTrue'); | ||
Object.defineProperty(exports, 'isTrue', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_isTrue).default; | ||
} | ||
}); | ||
var _isFalse = /*#__PURE__*/require('./isFalse'); | ||
Object.defineProperty(exports, 'isFalse', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_isFalse).default; | ||
} | ||
}); | ||
var _isTruthy = /*#__PURE__*/require('./isTruthy'); | ||
@@ -745,2 +781,11 @@ | ||
var _dispatch = /*#__PURE__*/require('./dispatch'); | ||
Object.defineProperty(exports, 'dispatch', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_dispatch).default; | ||
} | ||
}); | ||
var _mapIndexed = /*#__PURE__*/require('./mapIndexed'); | ||
@@ -782,2 +827,20 @@ | ||
var _ensureArray = /*#__PURE__*/require('./ensureArray'); | ||
Object.defineProperty(exports, 'ensureArray', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_ensureArray).default; | ||
} | ||
}); | ||
var _concatAll = /*#__PURE__*/require('./concatAll'); | ||
Object.defineProperty(exports, 'concatAll', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_concatAll).default; | ||
} | ||
}); | ||
var _concatRight = /*#__PURE__*/require('./concatRight'); | ||
@@ -933,2 +996,11 @@ | ||
var _omitBy = /*#__PURE__*/require('./omitBy'); | ||
Object.defineProperty(exports, 'omitBy', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_omitBy).default; | ||
} | ||
}); | ||
var _viewOr = /*#__PURE__*/require('./viewOr'); | ||
@@ -935,0 +1007,0 @@ |
@@ -17,4 +17,4 @@ 'use strict'; | ||
var isFunctor = /*#__PURE__*/(0, _ramda.anyPass)([/*#__PURE__*/(0, _ramda.pathSatisfies)(_isFunction2.default, ['map']), /*#__PURE__*/(0, _ramda.pathSatisfies)(_isFunction2.default, [_mapping2.default.map])]); | ||
var isApply = /*#__PURE__*/(0, _ramda.both)(isFunctor, /*#__PURE__*/(0, _ramda.anyPass)([/*#__PURE__*/(0, _ramda.pathSatisfies)(_isFunction2.default, ['ap']), /*#__PURE__*/(0, _ramda.pathSatisfies)(_isFunction2.default, [_mapping2.default.ap])])); | ||
var isFunctor = /*#__PURE__*/(0, _ramda.either)( /*#__PURE__*/(0, _ramda.pathSatisfies)(_isFunction2.default, ['map']), /*#__PURE__*/(0, _ramda.pathSatisfies)(_isFunction2.default, [_mapping2.default.map])); | ||
var isApply = /*#__PURE__*/(0, _ramda.both)(isFunctor, /*#__PURE__*/(0, _ramda.either)( /*#__PURE__*/(0, _ramda.pathSatisfies)(_isFunction2.default, ['ap']), /*#__PURE__*/(0, _ramda.pathSatisfies)(_isFunction2.default, [_mapping2.default.ap]))); | ||
@@ -21,0 +21,0 @@ var ap = /*#__PURE__*/(0, _ramda.curryN)(2, function (applyF, applyX) { |
@@ -16,3 +16,2 @@ 'use strict'; | ||
/* eslint-disable max-len */ | ||
@@ -19,0 +18,0 @@ /** |
@@ -14,3 +14,4 @@ 'use strict'; | ||
/** | ||
* Checks if value is a negative `Number` primitive or object. | ||
* Checks if value is a negative `Number` primitive or object. Zero is not considered neither | ||
* positive or negative. | ||
* | ||
@@ -17,0 +18,0 @@ * @func isNegative |
@@ -28,4 +28,4 @@ 'use strict'; | ||
*/ | ||
var isNilOrEmpty = /*#__PURE__*/(0, _ramda.anyPass)([_ramda.isNil, _ramda.isEmpty]); | ||
var isNilOrEmpty = /*#__PURE__*/(0, _ramda.either)(_ramda.isNil, _ramda.isEmpty); | ||
exports.default = isNilOrEmpty; |
@@ -43,4 +43,4 @@ 'use strict'; | ||
/* eslint-enable max-len */ | ||
var isObj = /*#__PURE__*/(0, _ramda.both)(_isNotNull2.default, /*#__PURE__*/(0, _ramda.anyPass)([_isOfTypeObject2.default, _isFunction2.default])); | ||
var isObj = /*#__PURE__*/(0, _ramda.both)(_isNotNull2.default, /*#__PURE__*/(0, _ramda.either)(_isOfTypeObject2.default, _isFunction2.default)); | ||
exports.default = isObj; |
@@ -14,3 +14,3 @@ 'use strict'; | ||
/** | ||
* Checks if value is a positive `Number` primitive or object. | ||
* Checks if value is a positive `Number` primitive or object. Zero is not considered positive. | ||
* | ||
@@ -17,0 +17,0 @@ * @func isPositive |
@@ -1,7 +0,4 @@ | ||
'use strict'; | ||
"use strict"; | ||
exports.__esModule = true; | ||
var _ramda = /*#__PURE__*/require('ramda'); | ||
/** | ||
@@ -14,3 +11,3 @@ * In JavaScript, a `truthy` value is a value that is considered true | ||
* @memberOf RA | ||
* @since {@link https://char0n.github.io/ramda-adjunct/2.2.0|v2.2..0} | ||
* @since {@link https://char0n.github.io/ramda-adjunct/2.2.0|v2.2.0} | ||
* @category Type | ||
@@ -31,4 +28,4 @@ * @sig * -> Boolean | ||
*/ | ||
var isTruthy = /*#__PURE__*/(0, _ramda.pipe)(Boolean, /*#__PURE__*/(0, _ramda.equals)(true)); | ||
var isTruthy = Boolean; | ||
exports.default = isTruthy; |
@@ -12,3 +12,2 @@ 'use strict'; | ||
// isomorphic :: ((a -> b), (b -> a)) -> Isomorphism | ||
@@ -15,0 +14,0 @@ // Isomorphism = x -> y |
@@ -31,5 +31,5 @@ 'use strict'; | ||
* | ||
* RA.lensNotSatisfy(R.equals(true), R.lensIndex(0), [false, true, 1]); // => true | ||
* RA.lensNotSatisfy(R.equals(true), R.lensIndex(1), [false, true, 1]); // => false | ||
* RA.lensNotSatisfy(R.equals(true), R.lensIndex(2), [false, true, 1]); // => true | ||
* RA.lensNotSatisfy(RA.isTrue, R.lensIndex(0), [false, true, 1]); // => true | ||
* RA.lensNotSatisfy(RA.isTrue, R.lensIndex(1), [false, true, 1]); // => false | ||
* RA.lensNotSatisfy(RA.isTrue, R.lensIndex(2), [false, true, 1]); // => true | ||
* RA.lensNotSatisfy(R.identity, R.lensProp('x'), { x: 1 }); // => true | ||
@@ -36,0 +36,0 @@ */ |
@@ -7,2 +7,8 @@ 'use strict'; | ||
var _isTrue = /*#__PURE__*/require('./isTrue'); | ||
var _isTrue2 = /*#__PURE__*/_interopRequireDefault(_isTrue); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -27,11 +33,11 @@ * Returns `true` if data structure focused by the given lens satisfies the predicate. | ||
* | ||
* RA.lensSatisfies(R.equals(true), R.lensIndex(0), [false, true, 1]); // => false | ||
* RA.lensSatisfies(R.equals(true), R.lensIndex(1), [false, true, 1]); // => true | ||
* RA.lensSatisfies(R.equals(true), R.lensIndex(2), [false, true, 1]); // => false | ||
* RA.lensSatisfies(RA.isTrue, R.lensIndex(0), [false, true, 1]); // => false | ||
* RA.lensSatisfies(RA.isTrue, R.lensIndex(1), [false, true, 1]); // => true | ||
* RA.lensSatisfies(RA.isTrue, R.lensIndex(2), [false, true, 1]); // => false | ||
* RA.lensSatisfies(R.identity, R.lensProp('x'), { x: 1 }); // => false | ||
*/ | ||
var lensSatisfies = /*#__PURE__*/(0, _ramda.curryN)(3, function (predicate, lens, data) { | ||
return (0, _ramda.pipe)((0, _ramda.view)(lens), predicate, (0, _ramda.equals)(true))(data); | ||
return (0, _ramda.pipe)((0, _ramda.view)(lens), predicate, _isTrue2.default)(data); | ||
}); | ||
exports.default = lensSatisfies; |
@@ -19,2 +19,7 @@ { | ||
"url": "https://github.com/rockymadden" | ||
}, | ||
{ | ||
"name": "Guillaume ARM", | ||
"email": " trapcodien@gmail.com", | ||
"url": "https://github.com/guillaumearm" | ||
} | ||
@@ -26,5 +31,5 @@ ], | ||
"sideEffects": false, | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"homepage": "https://github.com/char0n/ramda-adjunct", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
"license": "BSD-3-Clause", | ||
"repository": { | ||
@@ -42,2 +47,4 @@ "type": "git", | ||
"scripts": { | ||
"commitmsg": "commitlint -e $GIT_PARAMS", | ||
"precommit": "bash scripts/pre-commit.sh", | ||
"docs": "better-npm-run docs", | ||
@@ -86,3 +93,3 @@ "lint": "better-npm-run lint", | ||
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib", | ||
"build:umd": "webpack --config webpack.config.js", | ||
"build:umd": "webpack --config webpack.config.js --progress", | ||
"nsp:check": "nsp check", | ||
@@ -97,5 +104,7 @@ "prepublishOnly": "npm run clean && npm run lint && npm run test && npm run test:web && npm run build && npm run docs", | ||
"devDependencies": { | ||
"@commitlint/cli": "6.1.3", | ||
"@commitlint/config-conventional": "=6.1.0", | ||
"babel-cli": "=6.26.0", | ||
"babel-core": "=6.26.0", | ||
"babel-loader": "=7.1.2", | ||
"babel-loader": "7.1.4", | ||
"babel-plugin-annotate-pure-calls": "=0.2.2", | ||
@@ -111,13 +120,16 @@ "babel-plugin-istanbul": "=4.1.5", | ||
"codecov": "3.0.0", | ||
"conventional-changelog-cli": "1.3.10", | ||
"cross-env": "=5.1.3", | ||
"conventional-changelog-cli": "1.3.16", | ||
"cross-env": "5.1.4", | ||
"docdash": "git+https://github.com/char0n/docdash.git#bf4b4eebfdaf042c0ea9038419bc26813f243c94", | ||
"es6-promise": "4.2.4", | ||
"eslint": "4.17.0", | ||
"eslint": "4.19.0", | ||
"eslint-config-airbnb-base": "12.1.0", | ||
"eslint-plugin-import": "2.8.0", | ||
"eslint-plugin-mocha": "=4.11.0", | ||
"eslint-plugin-ramda": "=2.4.0", | ||
"eslint-config-prettier": "=2.9.0", | ||
"eslint-plugin-import": "2.9.0", | ||
"eslint-plugin-mocha": "4.12.1", | ||
"eslint-plugin-prettier": "=2.6.0", | ||
"eslint-plugin-ramda": "2.5.0", | ||
"fantasy-land": "3.5.0", | ||
"glob": "=7.1.2", | ||
"husky": "=0.14.3", | ||
"istanbul": "=0.4.5", | ||
@@ -127,14 +139,16 @@ "jsdoc": "=3.5.5", | ||
"license-cli": "1.1.6", | ||
"mocha": "5.0.1", | ||
"mocha": "5.0.4", | ||
"mocha-junit-reporter": "1.17.0", | ||
"mocha-multi-reporters": "1.1.7", | ||
"monet": "=0.9.0-alpha.4", | ||
"nsp": "3.1.0", | ||
"nyc": "11.4.1", | ||
"nsp": "3.2.0", | ||
"nyc": "11.6.0", | ||
"phantomjs": "=2.1.7", | ||
"prettier": "1.11.1", | ||
"ramda": "=0.25.0", | ||
"rimraf": "=2.6.2", | ||
"sinon": "4.3.0", | ||
"sinon": "4.4.6", | ||
"testem": "2.0.0", | ||
"tslint": "=5.9.1", | ||
"tslint-config-prettier": "1.10.0", | ||
"typescript": "2.6.2", | ||
@@ -145,2 +159,2 @@ "typescript-definition-tester": "=0.0.5", | ||
"tonicExampleFilename": "tonicExample.js" | ||
} | ||
} |
124
README.md
@@ -16,32 +16,83 @@ [![CircleCI](https://circleci.com/gh/char0n/ramda-adjunct.svg?style=svg)](https://circleci.com/gh/char0n/ramda-adjunct) | ||
[![Join the chat at https://gitter.im/ramda-adjunct/Lobby](https://badges.gitter.im/ramda-adjunct/Lobby.svg)](https://gitter.im/ramda-adjunct/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
[![Open Source Helpers](https://www.codetriage.com/char0n/ramda-adjunct/badges/users.svg)](https://www.codetriage.com/char0n/ramda-adjunct) | ||
# Ramda Adjunct | ||
This library is a community maintained extension of Ramda. | ||
This library is a community maintained extension of Ramda offering a wide variety of useful and commonly used functions built from Ramda. | ||
## Support us | ||
For a full list of functions see the [**Documentation For The Latest Release**](https://char0n.github.io/ramda-adjunct). | ||
Although we love working on ramda-adjunct, we must invest our free time to make this library great. Support this project's evolution via [Open Collective](https://opencollective.com/ramda-adjunct). | ||
## Installation | ||
[![Support via Open Collective](https://opencollective.com/ramda-adjunct/tiers/backer.svg?avatarHeight=36)](https://opencollective.com/ramda-adjunct/donate) | ||
```sh | ||
npm i ramda-adjunct | ||
``` | ||
or | ||
```sh | ||
yarn add ramda-adjunct | ||
``` | ||
## Motivation | ||
## Usage | ||
It seems to be very common for people to create their own utils and recipes composing the Ramda functions and creating more complex aggregate functions. Ramda Adjunct tries to eliminate this | ||
repetitive wheel of reinvention and centralize commonly used and useful aggregate utils in its codebase. | ||
### ES6 | ||
```javascript | ||
import RA from 'ramda-adjunct' | ||
RA.isArray([]); | ||
``` | ||
or | ||
```javascript | ||
import { isArray } from 'ramda-adjunct'; | ||
isArray([]); | ||
``` | ||
### Node | ||
```javascript | ||
const RA = require('ramda-adjunct'); | ||
RA.isArray([]); | ||
``` | ||
or | ||
```javascript | ||
const { isArray } = require('ramda-adjunct'); | ||
isArray([]); | ||
``` | ||
### Web browser | ||
```html | ||
<script src="ramda.js"></script> | ||
<script src="RA.web.js"></script> | ||
``` | ||
or | ||
```html | ||
<script src="RA.web.standalone.js"></script> | ||
``` | ||
Including Ramda Adjunct into HTML document exposes global variable **RA** on `window` object. | ||
```javascript | ||
RA.isArray([]); | ||
``` | ||
## Motivation | ||
It's very common for people to create their own utils and recipes by composing Ramda's functions and creating more complex aggregate functions. Ramda Adjunct eliminates this repetitive wheel of reinvention and centralizes commonly used and useful utils. | ||
## Benefits | ||
As maintainers, we see three main benefits in Ramda Adjunct. | ||
### 1. Centralization | ||
### Centralization | ||
All Ramda recipes and aggregate utils not present in Ramda are centralized here. There is no more need for everybody to create their own utils in their own libraries or in each codebases. | ||
All Ramda recipes and aggregate utils not present in Ramda are centralized here. There is no more need for everybody to create their own utils in their own codebases. | ||
### 2. Tests | ||
### Tests | ||
Ramda Adjunct maintains maximal code coverage and mimics Ramda's test patterns. You can trust our functions. | ||
Creating custom aggregate utils or implementing recipes from the Ramda wiki opens the doors to potential problems because of the absence or insufficiency of tests. Ramda Adjunct maintains 100% code coverage and mimics Ramda's test patterns. You can trust our functions. | ||
### 3. Impeccable documentation | ||
### Impeccable documentation | ||
You cannot call a library great if it lacks great documentation. Ramda Adjunct generates its documentation directly from its codebase and uses patterns found in both Ramda and Lodash to document its API. | ||
@@ -62,8 +113,2 @@ | ||
## Installation | ||
```sh | ||
$ npm i ramda-adjunct | ||
``` | ||
## API Documentation | ||
@@ -110,2 +155,3 @@ | ||
[2.4.1](https://char0n.github.io/ramda-adjunct/2.4.1), | ||
[2.5.0](https://char0n.github.io/ramda-adjunct/2.5.0), | ||
[LATEST](https://char0n.github.io/ramda-adjunct) | ||
@@ -166,35 +212,3 @@ | ||
## Usage | ||
### Web browser | ||
```html | ||
<script src="ramda.js"></script> | ||
<script src="RA.web.js"></script> | ||
``` | ||
or | ||
```html | ||
<script src="RA.web.standalone.js"></script> | ||
``` | ||
Including Ramda Adjunct into HTML document exposes global variable **RA** on `window` object. | ||
```javascript | ||
RA.isArray([]); | ||
``` | ||
### Node | ||
```javascript | ||
const RA = require('ramda-adjunct'); | ||
RA.isArray([]); | ||
``` | ||
or | ||
```javascript | ||
const { isArray } = require('ramda-adjunct'); | ||
isArray([]); | ||
``` | ||
## Tree shaking support | ||
@@ -239,3 +253,9 @@ | ||
## Support us | ||
Although we love working on ramda-adjunct, we must invest our free time to make this library great. Support this project's evolution via [Open Collective](https://opencollective.com/ramda-adjunct). | ||
[![Support via Open Collective](https://opencollective.com/ramda-adjunct/tiers/backer.svg?avatarHeight=36)](https://opencollective.com/ramda-adjunct/donate) | ||
## Backers | ||
@@ -242,0 +262,0 @@ |
import { bind } from 'ramda'; | ||
/* eslint-disable max-len */ | ||
@@ -5,0 +4,0 @@ /** |
import { append, flip } from 'ramda'; | ||
/** | ||
@@ -5,0 +4,0 @@ * Returns a new list containing the contents of the given list, followed by the given element. |
@@ -5,3 +5,2 @@ import { curry } from 'ramda'; | ||
/* eslint-disable max-len */ | ||
@@ -8,0 +7,0 @@ /** |
@@ -5,3 +5,2 @@ import { reject } from 'ramda'; | ||
/** | ||
@@ -8,0 +7,0 @@ * Creates an array with all falsy values removed. |
@@ -5,3 +5,2 @@ import { converge, length, identity } from 'ramda'; | ||
/** | ||
@@ -28,4 +27,2 @@ * Returns a curried equivalent of the provided function. | ||
export default curryRight; | ||
import { curryN, reverse } from 'ramda'; | ||
/** | ||
@@ -24,14 +23,8 @@ * Returns a curried equivalent of the provided function, with the specified arity. | ||
*/ | ||
const curryRightN = curryN( | ||
2, | ||
(arity, fn) => | ||
curryN( | ||
arity, | ||
function wrapper(...args) { | ||
return fn.apply(this, reverse(args)); | ||
} | ||
) | ||
const curryRightN = curryN(2, (arity, fn) => | ||
curryN(arity, function wrapper(...args) { | ||
return fn.apply(this, reverse(args)); | ||
}) | ||
); | ||
export default curryRightN; |
import { curry } from 'ramda'; | ||
/** | ||
@@ -23,4 +22,6 @@ * Returns the second argument if predicate function returns `true`, | ||
*/ | ||
const defaultWhen = curry((predicate, defaultVal, val) => (predicate(val) ? defaultVal : val)); | ||
const defaultWhen = curry( | ||
(predicate, defaultVal, val) => (predicate(val) ? defaultVal : val) | ||
); | ||
export default defaultWhen; |
@@ -5,9 +5,14 @@ import { empty as emptyR } from 'ramda'; | ||
import fl from './mapping'; | ||
import { applyTrait, functorTrait, setoidTrait, semigroupTrait, chainTrait, ordTrait } from './traits'; | ||
import { | ||
applyTrait, | ||
functorTrait, | ||
setoidTrait, | ||
semigroupTrait, | ||
chainTrait, | ||
ordTrait, | ||
} from './traits'; | ||
// we do this here for jsdocs generate properly | ||
const { of, ap, map, equals, concat, chain, lte, empty, contramap } = fl; | ||
/** | ||
@@ -14,0 +19,0 @@ * The simplest {@link https://github.com/fantasyland/fantasy-land|fantasy-land} |
@@ -7,3 +7,2 @@ import { equals, pathSatisfies } from 'ramda'; | ||
export const functorTrait = { | ||
@@ -53,4 +52,6 @@ [fl.map](fn) { | ||
[fl.lte](ord) { | ||
return isSameType(this, ord) && (this.value < ord.value || this[fl.equals](ord)); | ||
return ( | ||
isSameType(this, ord) && (this.value < ord.value || this[fl.equals](ord)) | ||
); | ||
}, | ||
}; |
import { | ||
useWith, curry, curryN, toPairs, equals, over, lensIndex, replace, pipe, map, path, | ||
either, complement, | ||
useWith, | ||
curry, | ||
curryN, | ||
toPairs, | ||
equals, | ||
over, | ||
lensIndex, | ||
replace, | ||
pipe, | ||
map, | ||
path, | ||
either, | ||
complement, | ||
} from 'ramda'; | ||
// type :: Monad a => a -> String | ||
@@ -11,3 +21,5 @@ export const type = either(path(['@@type']), path(['constructor', '@@type'])); | ||
// typeEquals :: Monad a => String -> a -> Boolean | ||
export const typeEquals = curry((typeIdent, monad) => type(monad) === typeIdent); | ||
export const typeEquals = curry( | ||
(typeIdent, monad) => type(monad) === typeIdent | ||
); | ||
@@ -14,0 +26,0 @@ // isSameType :: (Monad a, Monad b) => a -> b -> Boolean |
@@ -38,3 +38,2 @@ import { length, has, path, head, tail, curryN } from 'ramda'; | ||
export default hasPath; |
@@ -13,2 +13,11 @@ declare var RA: RamdaAdjunct.Static; | ||
interface Foldable<T> { | ||
reduce<Acc>(fn: (acc: Acc, val: T) => Acc, initAcc: Acc): Acc; | ||
} | ||
interface Semigroup { | ||
// https://www.typescriptlang.org/docs/handbook/advanced-types.html#polymorphic-this-types | ||
concat(other: this): this; | ||
} | ||
interface Catamorphism<T> { | ||
@@ -33,2 +42,4 @@ cata<T1>(leftFn: (v: T1) => T, rightFn: (v: T1) => T): T; | ||
type DictPred<T> = (value: T, key: string) => boolean; | ||
export interface Static { | ||
@@ -245,3 +256,4 @@ /** | ||
/** | ||
* Checks if value is a positive `Number` primitive or object. | ||
* Checks if value is a positive `Number` primitive or object. Zero is considered neither | ||
* positive or negative. | ||
*/ | ||
@@ -251,3 +263,4 @@ isPositive(val: any): val is number; | ||
/** | ||
* Checks if value is a negative `Number` primitive or object. | ||
* Checks if value is a negative `Number` primitive or object. Zero is considered neither | ||
* positive or negative. | ||
*/ | ||
@@ -257,2 +270,14 @@ isNegative(val: any): val is number; | ||
/** | ||
* Checks if value is a non-positive `Number` primitive or object. This includes all | ||
* negative numbers and zero. | ||
*/ | ||
isNonPositive(val: any): val is number; | ||
/** | ||
* Checks if value is a non-negative `Number` primitive or object. This includes all | ||
* positive numbers and zero. | ||
*/ | ||
isNonNegative(val: any): val is number; | ||
/** | ||
* Checks whether the passed value is a finite `Number`. | ||
@@ -377,4 +402,18 @@ */ | ||
/** | ||
* Returns a singleton array containing the value provided. | ||
* If value is already an array, it is returned as is. | ||
*/ | ||
ensureArray<T>(value: T | T[]): T[]; | ||
/** | ||
* Returns the result of concatenating the given lists or strings. | ||
* Note: RA.concatAll expects all elements to be of the same type. It will throw an error if you concat an Array with a non-Array value. | ||
* Dispatches to the concat method of the preceding element, if present. Can also concatenate multiple elements of a [fantasy-land compatible semigroup](https://github.com/fantasyland/fantasy-land#semigroup). | ||
* Returns undefined if empty array was passed. | ||
*/ | ||
concatAll<S extends Semigroup>(foldable: Foldable<S>): S | undefined; | ||
/** | ||
* Returns the result of concatenating the given lists or strings. | ||
*/ | ||
concatRight<T extends any[]>(firstList: T, secondList: T): T; | ||
@@ -410,14 +449,14 @@ concatRight<T extends any[]>(firstList: T): (secondList: T) => T; | ||
cata<V1, V2, T1, T2>( | ||
leftFn: (leftValue: V1) => T1, | ||
rightFn: (rightValue: V2) => T2, | ||
either: Catamorphism<V1|V2>, | ||
): T1|T2; | ||
leftFn: (leftValue: V1) => T1, | ||
rightFn: (rightValue: V2) => T2, | ||
either: Catamorphism<V1 | V2>, | ||
): T1 | T2; | ||
cata<V1, V2, T1, T2>( | ||
leftFn: (leftValue: V1) => T1, | ||
rightFn: (rightValue: V2) => T2): | ||
(either: Catamorphism<V1|V2>, | ||
) => T1|T2; | ||
leftFn: (leftValue: V1) => T1, | ||
rightFn: (rightValue: V2) => T2): | ||
(either: Catamorphism<V1 | V2>, | ||
) => T1 | T2; | ||
cata<V1, V2, T1, T2>(leftFn: (leftValue: V1) => T1): { | ||
(rightFn: (rightValue: V2) => T1, either: Catamorphism<V1|V2>): T1|T2; | ||
(rightFn: (rightValue: V2) => T1): (either: Catamorphism<V1|V2>) => T1|T2 | ||
(rightFn: (rightValue: V2) => T1, either: Catamorphism<V1 | V2>): T1 | T2; | ||
(rightFn: (rightValue: V2) => T1): (either: Catamorphism<V1 | V2>) => T1 | T2 | ||
}; | ||
@@ -493,2 +532,9 @@ | ||
/** | ||
* Returns a partial copy of an object containing only the keys | ||
* that don't satisfy the supplied predicate. | ||
*/ | ||
omitBy<T, U extends Dictionary<T>>(pred: DictPred<T>, obj: U): U; | ||
omitBy<T, U extends Dictionary<T>>(pred: DictPred<T>): (obj: U) => U; | ||
/** | ||
* Weave a configuration into function returning the runnable monad like `Reader` or `Free`. | ||
@@ -554,3 +600,3 @@ */ | ||
(acc: TResult, list: R): TResult | ||
}; | ||
}; | ||
@@ -647,5 +693,5 @@ /** | ||
*/ | ||
propNotEq(prop: string|number, value: any, obj: object): boolean; | ||
propNotEq(prop: string|number, value: any): (obj: object) => boolean; | ||
propNotEq(prop: string|number): { | ||
propNotEq(prop: string | number, value: any, obj: object): boolean; | ||
propNotEq(prop: string | number, value: any): (obj: object) => boolean; | ||
propNotEq(prop: string | number): { | ||
(value: any, obj: object): boolean; | ||
@@ -659,5 +705,5 @@ (value: any): (obj: object) => boolean; | ||
*/ | ||
pathNotEq(path: Array<string|number>, value: any, obj: object): boolean; | ||
pathNotEq(path: Array<string|number>, value: any): (obj: object) => boolean; | ||
pathNotEq(path: Array<string|number>): { | ||
pathNotEq(path: Array<string | number>, value: any, obj: object): boolean; | ||
pathNotEq(path: Array<string | number>, value: any): (obj: object) => boolean; | ||
pathNotEq(path: Array<string | number>): { | ||
(value: any, obj: object): boolean; | ||
@@ -670,4 +716,4 @@ (value: any): (obj: object) => boolean; | ||
*/ | ||
hasPath(path: Array<string|number>, obj: object): boolean; | ||
hasPath(path: Array<string|number>): (obj: object) => boolean; | ||
hasPath(path: Array<string | number>, obj: object): boolean; | ||
hasPath(path: Array<string | number>): (obj: object) => boolean; | ||
@@ -677,4 +723,4 @@ /** | ||
*/ | ||
spreadPath(path: Array<string|number>, obj: object): object; | ||
spreadPath(path: Array<string|number>): (obj: object) => object; | ||
spreadPath(path: Array<string | number>, obj: object): object; | ||
spreadPath(path: Array<string | number>): (obj: object) => object; | ||
@@ -684,4 +730,4 @@ /** | ||
*/ | ||
spreadProp(prop: string|number, obj: object): object; | ||
spreadProp(prop: string|number): (obj: object) => object; | ||
spreadProp(prop: string | number, obj: object): object; | ||
spreadProp(prop: string | number): (obj: object) => object; | ||
@@ -691,4 +737,4 @@ /** | ||
*/ | ||
flattenPath(path: Array<string|number>, obj: object): object; | ||
flattenPath(path: Array<string|number>): (obj: object) => object; | ||
flattenPath(path: Array<string | number>, obj: object): object; | ||
flattenPath(path: Array<string | number>): (obj: object) => object; | ||
@@ -698,4 +744,4 @@ /** | ||
*/ | ||
flattenProp(prop: string|number, obj: object): object; | ||
flattenProp(prop: string|number): (obj: object) => object; | ||
flattenProp(prop: string | number, obj: object): object; | ||
flattenProp(prop: string | number): (obj: object) => object; | ||
@@ -741,4 +787,5 @@ /** | ||
*/ | ||
sliceFrom<T>(fromIndex: number, list: string|T[]): string|T[]; | ||
sliceFrom(fromIndex: number): <T>(list: string|T[]) => string|T[]; | ||
sliceFrom<T>(fromIndex: number, list: string | T[]): string | T[]; | ||
sliceFrom(fromIndex: number): <T>(list: string | T[]) => string | T[]; | ||
sliceFrom<T>(fromIndex: number, list: string | T[]): string | T[]; | ||
@@ -750,4 +797,4 @@ /** | ||
*/ | ||
sliceTo<T>(toIndex: number, list: string|T[]): string|T[]; | ||
sliceTo(toIndex: number): <T>(list: string|T[]) => string|T[]; | ||
sliceTo<T>(toIndex: number, list: string | T[]): string | T[]; | ||
sliceTo(toIndex: number): <T>(list: string | T[]) => string | T[]; | ||
@@ -774,2 +821,13 @@ /** | ||
/** | ||
* Checks if input value is the Boolean primitive `true`. Will return false for Boolean | ||
* objects created using the `Boolean` function as a constructor. | ||
*/ | ||
isTrue(val: any): boolean; | ||
/** | ||
* Checks if input value is the Boolean primitive `false`. Will return false for Boolean objects created using the `Boolean` function as a constructor. | ||
*/ | ||
isFalse(val: any): boolean; | ||
/** | ||
* In JavaScript, a `truthy` value is a value that is considered true | ||
@@ -862,2 +920,14 @@ * when evaluated in a Boolean context. All values are truthy unless | ||
/** | ||
* Can be used as a way to compose multiple invokers together to form polymorphic functions, | ||
* or functions that exhibit different behaviors based on their argument(s). | ||
* Consumes dispatching functions and keep trying to invoke each in turn, until a non-nil value is returned. | ||
* | ||
* Accepts a list of dispatching functions and returns a new function. | ||
* When invoked, this new function is applied to some arguments, | ||
* each dispatching function is applied to those same arguments until one of the | ||
* dispatching functions returns a non-nil value. | ||
*/ | ||
dispatch(functions: Function[]): Function; | ||
/** | ||
* Identity type. | ||
@@ -864,0 +934,0 @@ */ |
@@ -51,2 +51,4 @@ /** | ||
export { default as isNegative } from './isNegative'; | ||
export { default as isNonPositive } from './isNonPositive'; | ||
export { default as isNonNegative } from './isNonNegative'; | ||
export { default as isNaN } from './isNaN'; | ||
@@ -68,2 +70,4 @@ export { default as isNotNaN } from './isNotNaN'; | ||
export { default as isPromise } from './isPromise'; | ||
export { default as isTrue } from './isTrue'; | ||
export { default as isFalse } from './isFalse'; | ||
export { default as isTruthy } from './isTruthy'; | ||
@@ -94,2 +98,3 @@ export { default as isFalsy } from './isFalsy'; | ||
export { default as sequencing } from './seq'; | ||
export { default as dispatch } from './dispatch'; | ||
// List | ||
@@ -100,2 +105,4 @@ export { default as mapIndexed } from './mapIndexed'; | ||
export { default as list } from './list'; | ||
export { default as ensureArray } from './ensureArray'; | ||
export { default as concatAll } from './concatAll'; | ||
export { default as concatRight } from './concatRight'; | ||
@@ -119,2 +126,3 @@ export { default as reduceP } from './reduceP'; | ||
export { default as mergePath } from './mergePath'; | ||
export { default as omitBy } from './omitBy'; | ||
export { default as viewOr } from './viewOr'; | ||
@@ -121,0 +129,0 @@ export { default as hasPath } from './hasPath'; |
@@ -1,2 +0,2 @@ | ||
import { ap as apR, curryN, pathSatisfies, both, anyPass } from 'ramda'; | ||
import { ap as apR, curryN, pathSatisfies, both, either } from 'ramda'; | ||
@@ -6,13 +6,16 @@ import isFunction from '../isFunction'; | ||
const isFunctor = anyPass([pathSatisfies(isFunction, ['map']), pathSatisfies(isFunction, [fl.map])]); | ||
const isFunctor = either( | ||
pathSatisfies(isFunction, ['map']), | ||
pathSatisfies(isFunction, [fl.map]) | ||
); | ||
const isApply = both( | ||
isFunctor, | ||
anyPass([pathSatisfies(isFunction, ['ap']), pathSatisfies(isFunction, [fl.ap])]) | ||
either(pathSatisfies(isFunction, ['ap']), pathSatisfies(isFunction, [fl.ap])) | ||
); | ||
const ap = curryN(2, (applyF, applyX) => { | ||
// return original ramda `ap` if not Apply spec | ||
if (!isApply(applyF) || !isApply(applyX)) { return apR(applyF, applyX) } | ||
if (!isApply(applyF) || !isApply(applyX)) { | ||
return apR(applyF, applyX); | ||
} | ||
@@ -28,3 +31,2 @@ try { | ||
export default ap; |
@@ -5,5 +5,7 @@ import { both, converge, equals, identity } from 'ramda'; | ||
const isIntegerPolyfill = both( | ||
isFinite, | ||
converge(equals, [Math.floor, identity]) | ||
); | ||
const isIntegerPolyfill = both(isFinite, converge(equals, [Math.floor, identity])); | ||
export default isIntegerPolyfill; |
@@ -1,3 +0,3 @@ | ||
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || (2 ** 53) - 1; | ||
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 2 ** 53 - 1; | ||
export default MAX_SAFE_INTEGER; |
import _isArray from 'ramda/src/internal/_isArray'; | ||
/** | ||
@@ -5,0 +4,0 @@ * Checks if input value is `Array`. |
@@ -6,3 +6,2 @@ import { has } from 'ramda'; | ||
/* eslint-disable max-len */ | ||
@@ -32,9 +31,21 @@ /** | ||
/* eslint-enable max-len */ | ||
const isArrayLike = (val) => { | ||
if (isArray(val)) { return true } | ||
if (!val) { return false } | ||
if (isString(val)) { return false } | ||
if (typeof val !== 'object') { return false } | ||
if (val.nodeType === 1) { return !!val.length } | ||
if (val.length === 0) { return true } | ||
const isArrayLike = val => { | ||
if (isArray(val)) { | ||
return true; | ||
} | ||
if (!val) { | ||
return false; | ||
} | ||
if (isString(val)) { | ||
return false; | ||
} | ||
if (typeof val !== 'object') { | ||
return false; | ||
} | ||
if (val.nodeType === 1) { | ||
return !!val.length; | ||
} | ||
if (val.length === 0) { | ||
return true; | ||
} | ||
if (val.length > 0) { | ||
@@ -41,0 +52,0 @@ return has(0, val) && has(val.length - 1, val); |
@@ -21,4 +21,5 @@ /* eslint-disable max-len */ | ||
/* eslint-enable max-len */ | ||
const isAsyncFunction = val => Object.prototype.toString.call(val) === '[object AsyncFunction]'; | ||
const isAsyncFunction = val => | ||
Object.prototype.toString.call(val) === '[object AsyncFunction]'; | ||
export default isAsyncFunction; |
@@ -5,3 +5,2 @@ import { both, isEmpty } from 'ramda'; | ||
/** | ||
@@ -8,0 +7,0 @@ * Checks if input value is an empty `Array`. |
import { equals } from 'ramda'; | ||
/** | ||
@@ -5,0 +4,0 @@ * Checks if input value is an empty `String`. |
@@ -6,3 +6,2 @@ import { both, complement } from 'ramda'; | ||
/** | ||
@@ -9,0 +8,0 @@ * Checks if value is even integer number. |
@@ -5,3 +5,2 @@ import { complement } from 'ramda'; | ||
/** | ||
@@ -8,0 +7,0 @@ * A falsy value is a value that translates to false when evaluated in a Boolean context. |
import isNotNull from './isNotNull'; | ||
let GeneratorFunction = null; | ||
try { | ||
GeneratorFunction = new Function('return function* () {}')().constructor; // eslint-disable-line no-new-func | ||
} catch (e) { } // eslint-disable-line no-empty | ||
} catch (e) {} // eslint-disable-line no-empty | ||
/* eslint-disable max-len */ | ||
@@ -30,5 +28,7 @@ /** | ||
/* eslint-enable max-len */ | ||
const isGeneratorFunction = (val) => { | ||
const toStringCheck = Object.prototype.toString.call(val) === '[object GeneratorFunction]'; | ||
const legacyConstructorCheck = isNotNull(GeneratorFunction) && val instanceof GeneratorFunction; | ||
const isGeneratorFunction = val => { | ||
const toStringCheck = | ||
Object.prototype.toString.call(val) === '[object GeneratorFunction]'; | ||
const legacyConstructorCheck = | ||
isNotNull(GeneratorFunction) && val instanceof GeneratorFunction; | ||
@@ -35,0 +35,0 @@ return toStringCheck || legacyConstructorCheck; |
@@ -5,5 +5,5 @@ import { both, gt } from 'ramda'; | ||
/** | ||
* Checks if value is a negative `Number` primitive or object. | ||
* Checks if value is a negative `Number` primitive or object. Zero is not considered neither | ||
* positive or negative. | ||
* | ||
@@ -10,0 +10,0 @@ * @func isNegative |
@@ -1,2 +0,2 @@ | ||
import { anyPass, isEmpty, isNil } from 'ramda'; | ||
import { either, isEmpty, isNil } from 'ramda'; | ||
@@ -24,4 +24,4 @@ /** | ||
*/ | ||
const isNilOrEmpty = anyPass([isNil, isEmpty]); | ||
const isNilOrEmpty = either(isNil, isEmpty); | ||
export default isNilOrEmpty; |
@@ -7,3 +7,2 @@ import { allPass } from 'ramda'; | ||
/** | ||
@@ -10,0 +9,0 @@ * Checks if input value is not an empty `String`. |
@@ -5,3 +5,2 @@ import { complement } from 'ramda'; | ||
/** | ||
@@ -8,0 +7,0 @@ * Tests whether or not an object is similar to an array. |
@@ -5,3 +5,2 @@ import { complement } from 'ramda'; | ||
/* eslint-disable max-len */ | ||
@@ -8,0 +7,0 @@ /** |
@@ -5,3 +5,2 @@ import { complement } from 'ramda'; | ||
/** | ||
@@ -8,0 +7,0 @@ * Checks whether the passed value is complement of an `integer`. |
@@ -5,3 +5,2 @@ import { complement } from 'ramda'; | ||
/** | ||
@@ -8,0 +7,0 @@ * Checks if value is a complement of `Number` primitive or object. |
@@ -5,3 +5,2 @@ import { complement } from 'ramda'; | ||
/* eslint-disable max-len */ | ||
@@ -8,0 +7,0 @@ /** |
@@ -5,3 +5,2 @@ import { complement } from 'ramda'; | ||
/* eslint-disable max-len */ | ||
@@ -8,0 +7,0 @@ /** |
@@ -5,3 +5,2 @@ import { complement } from 'ramda'; | ||
/** | ||
@@ -8,0 +7,0 @@ * Checks if input value is complement of a pair. |
@@ -1,2 +0,2 @@ | ||
import { both, anyPass } from 'ramda'; | ||
import { both, either } from 'ramda'; | ||
@@ -7,3 +7,2 @@ import isNotNull from './isNotNull'; | ||
/* eslint-disable max-len */ | ||
@@ -31,4 +30,4 @@ /** | ||
/* eslint-enable max-len */ | ||
const isObj = both(isNotNull, anyPass([isOfTypeObject, isFunction])); | ||
const isObj = both(isNotNull, either(isOfTypeObject, isFunction)); | ||
export default isObj; |
@@ -6,3 +6,2 @@ import { both } from 'ramda'; | ||
/* eslint-disable max-len */ | ||
@@ -9,0 +8,0 @@ /** |
@@ -5,3 +5,2 @@ import { both, pipe, modulo, flip, equals, complement } from 'ramda'; | ||
/** | ||
@@ -8,0 +7,0 @@ * Checks if value is odd integer number. |
@@ -5,3 +5,2 @@ import { both, equals, length, pipe } from 'ramda'; | ||
/** | ||
@@ -8,0 +7,0 @@ * Checks if input value is a pair. |
@@ -8,5 +8,7 @@ import _isObject from 'ramda/src/internal/_isObject'; | ||
const isObjectConstructor = pipe(toString, equals(toString(Object))); | ||
const hasObjectConstructor = pathSatisfies(both(isFunction, isObjectConstructor), ['constructor']); | ||
const hasObjectConstructor = pathSatisfies( | ||
both(isFunction, isObjectConstructor), | ||
['constructor'] | ||
); | ||
@@ -41,8 +43,12 @@ /* eslint-disable max-len */ | ||
/* eslint-enable max-len */ | ||
const isPlainObj = (val) => { | ||
if (!isObjLike(val) || !_isObject(val)) { return false } | ||
const isPlainObj = val => { | ||
if (!isObjLike(val) || !_isObject(val)) { | ||
return false; | ||
} | ||
const proto = Object.getPrototypeOf(val); | ||
if (isNull(proto)) { return true } | ||
if (isNull(proto)) { | ||
return true; | ||
} | ||
@@ -49,0 +55,0 @@ return hasObjectConstructor(proto); |
@@ -5,5 +5,4 @@ import { both, lt } from 'ramda'; | ||
/** | ||
* Checks if value is a positive `Number` primitive or object. | ||
* Checks if value is a positive `Number` primitive or object. Zero is not considered positive. | ||
* | ||
@@ -10,0 +9,0 @@ * @func isPositive |
@@ -5,3 +5,2 @@ import { both, pipe, toString, equals } from 'ramda'; | ||
/** | ||
@@ -8,0 +7,0 @@ * Checks if input value is a native `Promise`. |
@@ -5,3 +5,2 @@ import { pathSatisfies } from 'ramda'; | ||
/** | ||
@@ -8,0 +7,0 @@ * Checks if input value is a `thenable`. |
@@ -1,4 +0,1 @@ | ||
import { pipe, equals } from 'ramda'; | ||
/** | ||
@@ -11,3 +8,3 @@ * In JavaScript, a `truthy` value is a value that is considered true | ||
* @memberOf RA | ||
* @since {@link https://char0n.github.io/ramda-adjunct/2.2.0|v2.2..0} | ||
* @since {@link https://char0n.github.io/ramda-adjunct/2.2.0|v2.2.0} | ||
* @category Type | ||
@@ -28,4 +25,4 @@ * @sig * -> Boolean | ||
*/ | ||
const isTruthy = pipe(Boolean, equals(true)); | ||
const isTruthy = Boolean; | ||
export default isTruthy; |
import { view, curryN, equals, pipe } from 'ramda'; | ||
/** | ||
@@ -25,5 +24,6 @@ * Returns `true` if data structure focused by the given lens equals provided value. | ||
*/ | ||
const lensEq = curryN(3, (lens, val, data) => pipe(view(lens), equals(val))(data)); | ||
const lensEq = curryN(3, (lens, val, data) => | ||
pipe(view(lens), equals(val))(data) | ||
); | ||
export default lensEq; |
import { curry, map } from 'ramda'; | ||
// This implementation was highly inspired by the implementations | ||
@@ -9,3 +8,2 @@ // in ramda-lens library. | ||
// isomorphic :: ((a -> b), (b -> a)) -> Isomorphism | ||
@@ -19,14 +17,12 @@ // Isomorphism = x -> y | ||
// isomorphisms :: ((a -> b), (b -> a)) -> (a -> b) | ||
const isomorphisms = (to, from) => isomorphic( | ||
curry((toFunctorFn, target) => map(from, toFunctorFn(to(target)))), | ||
curry((toFunctorFn, target) => map(to, toFunctorFn(from(target)))) | ||
); | ||
const isomorphisms = (to, from) => | ||
isomorphic( | ||
curry((toFunctorFn, target) => map(from, toFunctorFn(to(target)))), | ||
curry((toFunctorFn, target) => map(to, toFunctorFn(from(target)))) | ||
); | ||
// from :: Isomorphism -> a -> b | ||
const from = curry((isomorphism, x) => isomorphism.from(x)); | ||
/** | ||
@@ -57,3 +53,2 @@ * Defines an isomorphism that will work like a lens. It takes two functions. | ||
export default lensIso; |
@@ -5,3 +5,2 @@ import { complement } from 'ramda'; | ||
/** | ||
@@ -30,3 +29,2 @@ * Returns `true` if data structure focused by the given lens doesn't equal provided value. | ||
export default lensNotEq; |
@@ -5,3 +5,2 @@ import { complement } from 'ramda'; | ||
/** | ||
@@ -25,5 +24,5 @@ * Returns `true` if data structure focused by the given lens doesn't satisfy the predicate. | ||
* | ||
* RA.lensNotSatisfy(R.equals(true), R.lensIndex(0), [false, true, 1]); // => true | ||
* RA.lensNotSatisfy(R.equals(true), R.lensIndex(1), [false, true, 1]); // => false | ||
* RA.lensNotSatisfy(R.equals(true), R.lensIndex(2), [false, true, 1]); // => true | ||
* RA.lensNotSatisfy(RA.isTrue, R.lensIndex(0), [false, true, 1]); // => true | ||
* RA.lensNotSatisfy(RA.isTrue, R.lensIndex(1), [false, true, 1]); // => false | ||
* RA.lensNotSatisfy(RA.isTrue, R.lensIndex(2), [false, true, 1]); // => true | ||
* RA.lensNotSatisfy(R.identity, R.lensProp('x'), { x: 1 }); // => true | ||
@@ -33,3 +32,2 @@ */ | ||
export default lensNotSatisfy; |
@@ -1,3 +0,4 @@ | ||
import { view, curryN, equals, pipe } from 'ramda'; | ||
import { view, curryN, pipe } from 'ramda'; | ||
import isTrue from './isTrue'; | ||
@@ -23,13 +24,11 @@ /** | ||
* | ||
* RA.lensSatisfies(R.equals(true), R.lensIndex(0), [false, true, 1]); // => false | ||
* RA.lensSatisfies(R.equals(true), R.lensIndex(1), [false, true, 1]); // => true | ||
* RA.lensSatisfies(R.equals(true), R.lensIndex(2), [false, true, 1]); // => false | ||
* RA.lensSatisfies(RA.isTrue, R.lensIndex(0), [false, true, 1]); // => false | ||
* RA.lensSatisfies(RA.isTrue, R.lensIndex(1), [false, true, 1]); // => true | ||
* RA.lensSatisfies(RA.isTrue, R.lensIndex(2), [false, true, 1]); // => false | ||
* RA.lensSatisfies(R.identity, R.lensProp('x'), { x: 1 }); // => false | ||
*/ | ||
const lensSatisfies = curryN( | ||
3, | ||
(predicate, lens, data) => pipe(view(lens), predicate, equals(true))(data) | ||
const lensSatisfies = curryN(3, (predicate, lens, data) => | ||
pipe(view(lens), predicate, isTrue)(data) | ||
); | ||
export default lensSatisfies; |
import { addIndex, map } from 'ramda'; | ||
/** | ||
@@ -5,0 +4,0 @@ * {@link http://ramdajs.com/docs/#map|R.map} function that more closely resembles Array.prototype.map. |
@@ -28,4 +28,6 @@ import { curry, over, lensPath } from 'ramda'; | ||
*/ | ||
const mergePath = curry((path, source, obj) => over(lensPath(path), mergeRight(source), obj)); | ||
const mergePath = curry((path, source, obj) => | ||
over(lensPath(path), mergeRight(source), obj) | ||
); | ||
export default mergePath; |
import { compose, complement, either } from 'ramda'; | ||
/* eslint-disable max-len */ | ||
@@ -5,0 +4,0 @@ /** |
import { complement, compose, anyPass } from 'ramda'; | ||
/** | ||
@@ -5,0 +4,0 @@ * Takes a list of predicates and returns a predicate that returns true for a given list of |
import { complement, compose, allPass } from 'ramda'; | ||
/** | ||
@@ -5,0 +4,0 @@ * Takes a list of predicates and returns a predicate that returns true for a given list of |
import { compose, complement, both } from 'ramda'; | ||
/* eslint-disable max-len */ | ||
@@ -5,0 +4,0 @@ /** |
import { contains, curry, addIndex, reject } from 'ramda'; | ||
// helpers | ||
@@ -8,3 +7,2 @@ const rejectIndexed = addIndex(reject); | ||
/** | ||
@@ -26,4 +24,6 @@ * Returns a partial copy of an array omitting the indexes specified. | ||
*/ | ||
const omitIndexes = curry((indexes, list) => rejectIndexed(containsIndex(indexes), list)); | ||
const omitIndexes = curry((indexes, list) => | ||
rejectIndexed(containsIndex(indexes), list) | ||
); | ||
export default omitIndexes; |
import { pathEq, complement } from 'ramda'; | ||
/* eslint-disable max-len */ | ||
@@ -5,0 +4,0 @@ /** |
import { filter, addIndex, curry, contains } from 'ramda'; | ||
// helpers | ||
@@ -8,3 +7,2 @@ const filterIndexed = addIndex(filter); | ||
/** | ||
@@ -26,4 +24,6 @@ * Picks values from list by indexes. | ||
*/ | ||
const pickIndexes = curry((indexes, list) => filterIndexed(containsIndex(indexes), list)); | ||
const pickIndexes = curry((indexes, list) => | ||
filterIndexed(containsIndex(indexes), list) | ||
); | ||
export default pickIndexes; |
import { propEq, complement } from 'ramda'; | ||
/** | ||
@@ -5,0 +4,0 @@ * Returns true if the specified object property is not equal, |
import { addIndex, reduce } from 'ramda'; | ||
/** | ||
@@ -5,0 +4,0 @@ * {@link http://ramdajs.com/docs/#reduce|R.reduce} function that more closely resembles Array.prototype.reduce. |
@@ -72,22 +72,26 @@ import { curryN, reduce, length } from 'ramda'; | ||
/* esline-enable max-len */ | ||
const reduceP = curryN(3, (fn, acc, list) => resolveP(list) | ||
.then((iterable) => { | ||
const reduceP = curryN(3, (fn, acc, list) => | ||
resolveP(list).then(iterable => { | ||
const listLength = length(iterable); | ||
if (listLength === 0) { return acc } | ||
if (listLength === 0) { | ||
return acc; | ||
} | ||
const reducer = reduce((accP, currentValueP) => accP | ||
.then(previousValue => allP([previousValue, currentValueP])) | ||
.then(([previousValue, currentValue]) => { | ||
if (isUndefined(previousValue) && listLength === 1) { | ||
return currentValue; | ||
} | ||
const reducer = reduce((accP, currentValueP) => | ||
accP | ||
.then(previousValue => allP([previousValue, currentValueP])) | ||
.then(([previousValue, currentValue]) => { | ||
if (isUndefined(previousValue) && listLength === 1) { | ||
return currentValue; | ||
} | ||
return fn(previousValue, currentValue); | ||
})); | ||
return fn(previousValue, currentValue); | ||
}) | ||
); | ||
return reducer(resolveP(acc), iterable); | ||
})); | ||
}) | ||
); | ||
export default reduceP; |
@@ -7,7 +7,5 @@ import { curryN, pipe, equals, reduceRight, length, concat } from 'ramda'; | ||
// in older ramda versions the order of the arguments is flipped | ||
const flipArgs = pipe(reduceRight(concat, ''), equals('ba'))(['a', 'b']); | ||
/* eslint-disable max-len */ | ||
@@ -71,7 +69,9 @@ /** | ||
/* esline-enable max-len */ | ||
const reduceRightP = curryN(3, (fn, acc, list) => resolveP(list) | ||
.then((iterable) => { | ||
const reduceRightP = curryN(3, (fn, acc, list) => | ||
resolveP(list).then(iterable => { | ||
const listLength = length(iterable); | ||
if (listLength === 0) { return acc } | ||
if (listLength === 0) { | ||
return acc; | ||
} | ||
@@ -83,5 +83,5 @@ const reducer = reduceRight((arg1, arg2) => { | ||
if (flipArgs) { | ||
([accP, currentValueP] = [arg1, arg2]); | ||
[accP, currentValueP] = [arg1, arg2]; | ||
} else { | ||
([accP, currentValueP] = [arg2, arg1]); | ||
[accP, currentValueP] = [arg2, arg1]; | ||
} | ||
@@ -101,5 +101,5 @@ | ||
return reducer(resolveP(acc), iterable); | ||
})); | ||
}) | ||
); | ||
export default reduceRightP; |
@@ -5,4 +5,3 @@ import { curry, has } from 'ramda'; | ||
const valueOrKey = keysMap => (key) => { | ||
const valueOrKey = keysMap => key => { | ||
if (has(key, keysMap)) { | ||
@@ -38,4 +37,6 @@ return keysMap[key]; | ||
*/ | ||
const renameKeys = curry((keysMap, obj) => renameKeysWith(valueOrKey(keysMap), obj)); | ||
const renameKeys = curry((keysMap, obj) => | ||
renameKeysWith(valueOrKey(keysMap), obj) | ||
); | ||
export default renameKeys; |
@@ -23,4 +23,6 @@ import { curry, toPairs, pipe, map, adjust, fromPairs } from 'ramda'; | ||
*/ | ||
const renameKeysWith = curry((fn, obj) => pipe(toPairs, map(adjust(fn, 0)), fromPairs)(obj)); | ||
const renameKeysWith = curry((fn, obj) => | ||
pipe(toPairs, map(adjust(fn, 0)), fromPairs)(obj) | ||
); | ||
export default renameKeysWith; |
import { view, defaultTo, curryN } from 'ramda'; | ||
/** | ||
@@ -29,8 +28,6 @@ * Returns a "view" of the given data structure, determined by the given lens. | ||
const viewOr = curryN( | ||
3, | ||
(defaultValue, lens, data) => defaultTo(defaultValue, view(lens, data)) | ||
const viewOr = curryN(3, (defaultValue, lens, data) => | ||
defaultTo(defaultValue, view(lens, data)) | ||
); | ||
export default viewOr; |
@@ -31,4 +31,6 @@ import { curryN } from 'ramda'; | ||
*/ | ||
const weave = curryN(2, (fn, config) => curryN(fn.length, (...args) => fn(...args).run(config))); | ||
const weave = curryN(2, (fn, config) => | ||
curryN(fn.length, (...args) => fn(...args).run(config)) | ||
); | ||
export default weave; |
@@ -33,7 +33,6 @@ import { curryN } from 'ramda'; | ||
*/ | ||
const weaveLazy = curryN( | ||
2, | ||
(fn, configAccessor) => curryN(fn.length, (...args) => fn(...args).run(configAccessor())) | ||
const weaveLazy = curryN(2, (fn, configAccessor) => | ||
curryN(fn.length, (...args) => fn(...args).run(configAccessor())) | ||
); | ||
export default weaveLazy; |
@@ -28,4 +28,4 @@ /** | ||
const Y = le => (f => f(f))(g => le(x => (g(g))(x))); | ||
const Y = le => (f => f(f))(g => le(x => g(g)(x))); | ||
export default Y; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
1818037
420
0
39761
272
50