ramda-adjunct
Version:
Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
1 lines • 103 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.RA=e():t.RA=e()}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var u=e[r]={i:r,l:!1,exports:{}};return t[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var u in t)n.d(r,u,function(e){return t[e]}.bind(null,u));return 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,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=60)}([function(t,e,n){"use strict";n.r(e);var r=function(){return!1},u=function(){return!0},i={"@@functional/placeholder":!0};function a(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function o(t){return function e(n){return 0===arguments.length||a(n)?e:t.apply(this,arguments)}}function f(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return a(n)?e:o(function(e){return t(n,e)});default:return a(n)&&a(r)?e:a(n)?o(function(e){return t(e,r)}):a(r)?o(function(e){return t(n,e)}):t(n,r)}}}var l=f(function(t,e){return Number(t)+Number(e)});function c(t,e){var n;e=e||[];var r=(t=t||[]).length,u=e.length,i=[];for(n=0;n<r;)i[i.length]=t[n],n+=1;for(n=0;n<u;)i[i.length]=e[n],n+=1;return i}function s(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,u){return e.apply(this,arguments)};case 5:return function(t,n,r,u,i){return e.apply(this,arguments)};case 6:return function(t,n,r,u,i,a){return e.apply(this,arguments)};case 7:return function(t,n,r,u,i,a,o){return e.apply(this,arguments)};case 8:return function(t,n,r,u,i,a,o,f){return e.apply(this,arguments)};case 9:return function(t,n,r,u,i,a,o,f,l){return e.apply(this,arguments)};case 10:return function(t,n,r,u,i,a,o,f,l,c){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function d(t,e,n){return function(){for(var r=[],u=0,i=t,o=0;o<e.length||u<arguments.length;){var f;o<e.length&&(!a(e[o])||u>=arguments.length)?f=e[o]:(f=arguments[u],u+=1),r[o]=f,a(f)||(i-=1),o+=1}return i<=0?n.apply(this,r):s(i,d(t,r,n))}}var p=f(function(t,e){return 1===t?o(e):s(t,d(t,[],e))}),v=o(function(t){return p(t.length,function(){var e=0,n=arguments[0],r=arguments[arguments.length-1],u=Array.prototype.slice.call(arguments,0);return u[0]=function(){var t=n.apply(this,c(arguments,[e,r]));return e+=1,t},t.apply(this,u)})});function h(t){return function e(n,r,u){switch(arguments.length){case 0:return e;case 1:return a(n)?e:f(function(e,r){return t(n,e,r)});case 2:return a(n)&&a(r)?e:a(n)?f(function(e,n){return t(e,r,n)}):a(r)?f(function(e,r){return t(n,e,r)}):o(function(e){return t(n,r,e)});default:return a(n)&&a(r)&&a(u)?e:a(n)&&a(r)?f(function(e,n){return t(e,n,u)}):a(n)&&a(u)?f(function(e,n){return t(e,r,n)}):a(r)&&a(u)?f(function(e,r){return t(n,e,r)}):a(n)?o(function(e){return t(e,r,u)}):a(r)?o(function(e){return t(n,e,u)}):a(u)?o(function(e){return t(n,r,e)}):t(n,r,u)}}}var y=h(function(t,e,n){if(t>=n.length||t<-n.length)return n;var r=(t<0?n.length:0)+t,u=c(n);return u[r]=e(n[r]),u}),_=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function g(t){return null!=t&&"function"==typeof t["@@transducer/step"]}function m(t,e,n){return function(){if(0===arguments.length)return n();var r=Array.prototype.slice.call(arguments,0),u=r.pop();if(!_(u)){for(var i=0;i<t.length;){if("function"==typeof u[t[i]])return u[t[i]].apply(u,r);i+=1}if(g(u)){var a=e.apply(null,r);return a(u)}}return n.apply(this,arguments)}}function M(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}var b={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}},N=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)||(this.all=!1,t=M(this.xf["@@transducer/step"](t,!1))),t},t}(),w=f(m(["all"],f(function(t,e){return new N(t,e)}),function(t,e){for(var n=0;n<e.length;){if(!t(e[n]))return!1;n+=1}return!0})),x=f(function(t,e){return e>t?e:t});function j(t,e){for(var n=0,r=e.length,u=Array(r);n<r;)u[n]=t(e[n]),n+=1;return u}function A(t){return"[object String]"===Object.prototype.toString.call(t)}var S=o(function(t){return!!_(t)||!!t&&("object"==typeof t&&(!A(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),O=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();function P(t){return new O(t)}var E=f(function(t,e){return s(t.length,function(){return t.apply(e,arguments)})});function q(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function T(t,e,n,r){return t["@@transducer/result"](n[r](E(t["@@transducer/step"],t),e))}var k="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function I(t,e,n){if("function"==typeof t&&(t=P(t)),S(n))return function(t,e,n){for(var r=0,u=n.length;r<u;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}(t,e,n);if("function"==typeof n["fantasy-land/reduce"])return T(t,e,n,"fantasy-land/reduce");if(null!=n[k])return q(t,e,n[k]());if("function"==typeof n.next)return q(t,e,n);if("function"==typeof n.reduce)return T(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var F=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=b.result,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}(),R=f(function(t,e){return new F(t,e)});function W(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var L=Object.prototype.toString,D=function(){return"[object Arguments]"===L.call(arguments)?function(t){return"[object Arguments]"===L.call(t)}:function(t){return W("callee",t)}}(),B=!{toString:null}.propertyIsEnumerable("toString"),C=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(){return arguments.propertyIsEnumerable("length")}(),z=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},V="function"!=typeof Object.keys||U?o(function(t){if(Object(t)!==t)return[];var e,n,r=[],u=U&&D(t);for(e in t)!W(e,t)||u&&"length"===e||(r[r.length]=e);if(B)for(n=C.length-1;n>=0;)W(e=C[n],t)&&!z(r,e)&&(r[r.length]=e),n-=1;return r}):o(function(t){return Object(t)!==t?[]:Object.keys(t)}),K=f(m(["fantasy-land/map","map"],R,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return p(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return I(function(n,r){return n[r]=t(e[r]),n},{},V(e));default:return j(t,e)}})),G=f(function(t,e){for(var n=e,r=0;r<t.length;){if(null==n)return;n=n[t[r]],r+=1}return n}),Y=f(function(t,e){return G([t],e)}),J=f(function(t,e){return K(Y(t),e)}),$=h(I),H=o(function(t){return p($(x,0,J("length",t)),function(){for(var e=0,n=t.length;e<n;){if(!t[e].apply(this,arguments))return!1;e+=1}return!0})}),X=o(function(t){return function(){return t}}),Z=f(function(t,e){return t&&e}),Q=function(){function t(t,e){this.xf=e,this.f=t,this.any=!1}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.any=!0,t=M(this.xf["@@transducer/step"](t,!0))),t},t}(),tt=f(m(["any"],f(function(t,e){return new Q(t,e)}),function(t,e){for(var n=0;n<e.length;){if(t(e[n]))return!0;n+=1}return!1})),et=o(function(t){return p($(x,0,J("length",t)),function(){for(var e=0,n=t.length;e<n;){if(t[e].apply(this,arguments))return!0;e+=1}return!1})}),nt=f(function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(n){return t(n)(e(n))}:I(function(t,n){return c(t,K(n,e))},[],t)});function rt(t,e){for(var n=0,r=e.length-(t-1),u=new Array(r>=0?r:0);n<r;)u[n]=Array.prototype.slice.call(e,n,n+t),n+=1;return u}var ut=function(){function t(t,e){this.xf=e,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.store(e),this.full?this.xf["@@transducer/step"](t,this.getCopy()):t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},t.prototype.getCopy=function(){return c(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},t}(),it=f(m([],f(function(t,e){return new ut(t,e)}),rt)),at=f(function(t,e){return c(e,[t])}),ot=f(function(t,e){return t.apply(this,e)}),ft=o(function(t){for(var e=V(t),n=e.length,r=[],u=0;u<n;)r[u]=t[e[u]],u+=1;return r});function lt(t,e){return V(e).reduce(function(n,r){return n[r]=t(e[r]),n},{})}var ct=o(function t(e){return e=lt(function(e){return"function"==typeof e?e:t(e)},e),p($(x,0,J("length",ft(e))),function(){var t=arguments;return lt(function(e){return ot(e,t)},e)})}),st=f(function(t,e){return e(t)}),dt=h(function(t,e,n){var r=t(e),u=t(n);return r<u?-1:r>u?1:0}),pt=h(function(t,e,n){var r={};for(var u in n)r[u]=n[u];return r[t]=e,r}),vt=Number.isInteger||function(t){return t<<0===t},ht=o(function(t){return null==t}),yt=h(function t(e,n,r){if(0===e.length)return n;var u=e[0];if(e.length>1){var i=!ht(r)&&W(u,r)?r[u]:vt(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,i)}if(vt(u)&&_(r)){var a=[].concat(r);return a[u]=n,a}return pt(u,n,r)}),_t=f(function(t,e){switch(t){case 0:return function(){return e.call(this)};case 1:return function(t){return e.call(this,t)};case 2:return function(t,n){return e.call(this,t,n)};case 3:return function(t,n,r){return e.call(this,t,n,r)};case 4:return function(t,n,r,u){return e.call(this,t,n,r,u)};case 5:return function(t,n,r,u,i){return e.call(this,t,n,r,u,i)};case 6:return function(t,n,r,u,i,a){return e.call(this,t,n,r,u,i,a)};case 7:return function(t,n,r,u,i,a,o){return e.call(this,t,n,r,u,i,a,o)};case 8:return function(t,n,r,u,i,a,o,f){return e.call(this,t,n,r,u,i,a,o,f)};case 9:return function(t,n,r,u,i,a,o,f,l){return e.call(this,t,n,r,u,i,a,o,f,l)};case 10:return function(t,n,r,u,i,a,o,f,l,c){return e.call(this,t,n,r,u,i,a,o,f,l,c)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),gt=o(function(t){return _t(2,t)});function mt(t){return"[object Function]"===Object.prototype.toString.call(t)}var Mt=f(function(t,e){var n=p(t,e);return p(t,function(){return I(nt,K(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),bt=o(function(t){return Mt(t.length,t)}),Nt=f(function(t,e){return mt(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:bt(Z)(t,e)}),wt=o(function(t){return p(t.length,t)}),xt=wt(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))});function jt(t){return function e(n){for(var r,u,i,a=[],o=0,f=n.length;o<f;){if(S(n[o]))for(i=0,u=(r=t?e(n[o]):n[o]).length;i<u;)a[a.length]=r[i],i+=1;else a[a.length]=n[o];o+=1}return a}}var At=function(t){var e=function(t){return{"@@transducer/init":b.init,"@@transducer/result":function(e){return t["@@transducer/result"](e)},"@@transducer/step":function(e,n){var r=t["@@transducer/step"](e,n);return r["@@transducer/reduced"]?{"@@transducer/value":r,"@@transducer/reduced":!0}:r}}}(t);return{"@@transducer/init":b.init,"@@transducer/result":function(t){return e["@@transducer/result"](t)},"@@transducer/step":function(t,n){return S(n)?I(e,t,n):I(e,t,[n])}}},St=f(m(["fantasy-land/chain","chain"],f(function(t,e){return K(t,At(e))}),function(t,e){return"function"==typeof e?function(n){return t(e(n))(n)}:jt(!1)(K(t,e))})),Ot=h(function(t,e,n){if(t>e)throw new Error("min must not be greater than max in clamp(min, max, value)");return n<t?t:n>e?e:n});function Pt(t){return new RegExp(t.source,(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":""))}var Et=o(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function qt(t,e,n,r){var u=function(u){for(var i=e.length,a=0;a<i;){if(t===e[a])return n[a];a+=1}for(var o in e[a+1]=t,n[a+1]=u,t)u[o]=r?qt(t[o],e,n,!0):t[o];return u};switch(Et(t)){case"Object":return u({});case"Array":return u([]);case"Date":return new Date(t.valueOf());case"RegExp":return Pt(t);default:return t}}var Tt=o(function(t){return null!=t&&"function"==typeof t.clone?t.clone():qt(t,[],[],!0)}),kt=o(function(t){return function(e,n){return t(e,n)?-1:t(n,e)?1:0}}),It=o(function(t){return!t}),Ft=bt(It);function Rt(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function Wt(t,e){return function(){var n=arguments.length;if(0===n)return e();var r=arguments[n-1];return _(r)||"function"!=typeof r[t]?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var Lt=h(Wt("slice",function(t,e,n){return Array.prototype.slice.call(n,t,e)})),Dt=o(Wt("tail",Lt(1,1/0)));function Bt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return s(arguments[0].length,$(Rt,arguments[0],Dt(arguments)))}var Ct=o(function(t){return A(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});function Ut(){if(0===arguments.length)throw new Error("compose requires at least one argument");return Bt.apply(this,Ct(arguments))}function zt(){if(0===arguments.length)throw new Error("composeK requires at least one argument");var t=Array.prototype.slice.call(arguments),e=t.pop();return Ut(Ut.apply(this,K(St,t)),e)}function Vt(t,e){return function(){var n=this;return t.apply(n,arguments).then(function(t){return e.call(n,t)})}}function Kt(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return s(arguments[0].length,$(Vt,arguments[0],Dt(arguments)))}function Gt(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return Kt.apply(this,Ct(arguments))}var Yt=f(function(t,e){var n=t<0?e.length+t:t;return A(e)?e.charAt(n):e[n]}),Jt=Yt(0);function $t(t){return t}var Ht=o($t),Xt=f(function(t,e){if(e.length<=0)return Ht;var n=Jt(e),r=Dt(e);return s(n.length,function(){return I(function(e,n){return t.call(this,n,e)},n.apply(this,arguments),r)})}),Zt=f(function(t,e){return Xt.apply(this,[t,Ct(e)])});function Qt(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function te(t,e,n){for(var r=0,u=n.length;r<u;){if(t(e,n[r]))return!0;r+=1}return!1}var ee="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};function ne(t,e,n,r){var u=Qt(t);function i(t,e){return re(t,e,n.slice(),r.slice())}return!te(function(t,e){return!te(i,e,t)},Qt(e),u)}function re(t,e,n,r){if(ee(t,e))return!0;var u=Et(t);if(u!==Et(e))return!1;if(null==t||null==e)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===function(t){var e=String(t).match(/^function (\w*)/);return null==e?"":e[1]}(t.constructor))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!ee(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!ee(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var i=n.length-1;i>=0;){if(n[i]===t)return r[i]===e;i-=1}switch(u){case"Map":return t.size===e.size&&ne(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&ne(t.values(),e.values(),n.concat([t]),r.concat([e]));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 a=V(t);if(a.length!==V(e).length)return!1;var o=n.concat([t]),f=r.concat([e]);for(i=a.length-1;i>=0;){var l=a[i];if(!W(l,e)||!re(e[l],t[l],o,f))return!1;i-=1}return!0}var ue=f(function(t,e){return re(t,e,[],[])});function ie(t,e,n){var r,u;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;n<t.length;){if(0===(u=t[n])&&1/u===r)return n;n+=1}return-1}if(e!=e){for(;n<t.length;){if("number"==typeof(u=t[n])&&u!=u)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(null===e)return t.indexOf(e,n)}for(;n<t.length;){if(ue(t[n],e))return n;n+=1}return-1}function ae(t,e){return ie(e,t,0)>=0}function oe(t){return'"'+t.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,'\\"')+'"'}var fe=function(t){return(t<10?"0":"")+t},le="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+fe(t.getUTCMonth()+1)+"-"+fe(t.getUTCDate())+"T"+fe(t.getUTCHours())+":"+fe(t.getUTCMinutes())+":"+fe(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function ce(t){return function(){return!t.apply(this,arguments)}}function se(t,e){for(var n=0,r=e.length,u=[];n<r;)t(e[n])&&(u[u.length]=e[n]),n+=1;return u}function de(t){return"[object Object]"===Object.prototype.toString.call(t)}var pe=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=b.result,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}(),ve=f(m(["filter"],f(function(t,e){return new pe(t,e)}),function(t,e){return de(e)?I(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{},V(e)):se(t,e)})),he=f(function(t,e){return ve(ce(t),e)});function ye(t,e){var n=function(n){var r=e.concat([t]);return ae(n,r)?"<Circular>":ye(n,r)},r=function(t,e){return j(function(e){return oe(e)+": "+n(t[e])},e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+j(n,t).join(", ")+"))";case"[object Array]":return"["+j(n,t).concat(r(t,he(function(t){return/^\d+$/.test(t)},V(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):oe(le(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+n(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+n(t.valueOf())+")":oe(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var u=t.toString();if("[object Object]"!==u)return u}return"{"+r(t,V(t)).join(", ")+"}"}}var _e=o(function(t){return ye(t,[])}),ge=f(function(t,e){if(_(t)){if(_(e))return t.concat(e);throw new TypeError(_e(e)+" is not an array")}if(A(t)){if(A(e))return t+e;throw new TypeError(_e(e)+" is not a string")}if(null!=t&&mt(t["fantasy-land/concat"]))return t["fantasy-land/concat"](e);if(null!=t&&mt(t.concat))return t.concat(e);throw new TypeError(_e(t)+' does not have a method named "concat" or "fantasy-land/concat"')}),me=o(function(t){return s($(x,0,K(function(t){return t[0].length},t)),function(){for(var e=0;e<t.length;){if(t[e][0].apply(this,arguments))return t[e][1].apply(this,arguments);e+=1}})}),Me=f(function(t,e){if(t>10)throw new Error("Constructor with greater than ten arguments");return 0===t?function(){return new e}:wt(_t(t,function(t,n,r,u,i,a,o,f,l,c){switch(arguments.length){case 1:return new e(t);case 2:return new e(t,n);case 3:return new e(t,n,r);case 4:return new e(t,n,r,u);case 5:return new e(t,n,r,u,i);case 6:return new e(t,n,r,u,i,a);case 7:return new e(t,n,r,u,i,a,o);case 8:return new e(t,n,r,u,i,a,o,f);case 9:return new e(t,n,r,u,i,a,o,f,l);case 10:return new e(t,n,r,u,i,a,o,f,l,c)}}))}),be=o(function(t){return Me(t.length,t)}),Ne=f(ae),we=f(function(t,e){return p($(x,0,J("length",e)),function(){var n=arguments,r=this;return t.apply(r,j(function(t){return t.apply(r,n)},e))})}),xe=function(){function t(t,e,n,r){this.valueFn=t,this.valueAcc=e,this.keyFn=n,this.xf=r,this.inputs={}}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=function(t){var e;for(e in this.inputs)if(W(e,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[e]))["@@transducer/reduced"]){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var n=this.keyFn(e);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],e),t},t}(),je=d(4,[],m([],d(4,[],function(t,e,n,r){return new xe(t,e,n,r)}),function(t,e,n,r){return I(function(r,u){var i=n(u);return r[i]=t(W(i,r)?r[i]:e,u),r},{},r)})),Ae=je(function(t,e){return t+1},0),Se=l(-1),Oe=f(function(t,e){return null==e||e!=e?t:e}),Pe=h(function(t,e,n){var r=t(e),u=t(n);return r>u?-1:r<u?1:0});function Ee(t,e,n){var r,u=typeof t;switch(u){case"string":case"number":return 0===t&&1/t==-1/0?!!n._items["-0"]||(e&&(n._items["-0"]=!0),!1):null!==n._nativeSet?e?(r=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===r):n._nativeSet.has(t):u in n._items?t in n._items[u]||(e&&(n._items[u][t]=!0),!1):(e&&(n._items[u]={},n._items[u][t]=!0),!1);case"boolean":if(u in n._items){var i=t?1:0;return!!n._items[u][i]||(e&&(n._items[u][i]=!0),!1)}return e&&(n._items[u]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?e?(r=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===r):n._nativeSet.has(t):u in n._items?!!ae(t,n._items[u])||(e&&n._items[u].push(t),!1):(e&&(n._items[u]=[t]),!1);case"undefined":return!!n._items[u]||(e&&(n._items[u]=!0),!1);case"object":if(null===t)return!!n._items.null||(e&&(n._items.null=!0),!1);default:return(u=Object.prototype.toString.call(t))in n._items?!!ae(t,n._items[u])||(e&&n._items[u].push(t),!1):(e&&(n._items[u]=[t]),!1)}}var qe=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!Ee(t,!0,this)},t.prototype.has=function(t){return Ee(t,!1,this)},t}(),Te=f(function(t,e){for(var n=[],r=0,u=t.length,i=e.length,a=new qe,o=0;o<i;o+=1)a.add(e[o]);for(;r<u;)a.add(t[r])&&(n[n.length]=t[r]),r+=1;return n}),ke=h(function(t,e,n){for(var r=[],u=0,i=e.length;u<i;)te(t,e[u],n)||te(t,e[u],r)||r.push(e[u]),u+=1;return r}),Ie=f(function(t,e){var n={};for(var r in e)n[r]=e[r];return delete n[t],n}),Fe=h(function(t,e,n){var r=Array.prototype.slice.call(n,0);return r.splice(t,e),r}),Re=h(function(t,e,n){return y(t,X(e),n)}),We=f(function t(e,n){switch(e.length){case 0:return n;case 1:return vt(e[0])&&_(n)?Fe(e[0],1,n):Ie(e[0],n);default:var r=e[0],u=Array.prototype.slice.call(e,1);return null==n[r]?n:vt(r)&&_(n)?Re(r,t(u,n[r]),n):pt(r,t(u,n[r]),n)}}),Le=f(function(t,e){return t/e}),De=function(){function t(t,e){this.xf=e,this.n=t}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=b.result,t.prototype["@@transducer/step"]=function(t,e){return this.n>0?(this.n-=1,t):this.xf["@@transducer/step"](t,e)},t}(),Be=f(m(["drop"],f(function(t,e){return new De(t,e)}),function(t,e){return Lt(Math.max(0,t),1/0,e)})),Ce=function(){function t(t,e){this.xf=e,this.n=t,this.i=0}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=b.result,t.prototype["@@transducer/step"]=function(t,e){this.i+=1;var n=0===this.n?t:this.xf["@@transducer/step"](t,e);return this.n>=0&&this.i>=this.n?M(n):n},t}(),Ue=f(m(["take"],f(function(t,e){return new Ce(t,e)}),function(t,e){return Lt(0,t<0?1/0:t,e)}));function ze(t,e){return Ue(t<e.length?e.length-t:0,e)}var Ve=function(){function t(t,e){this.xf=e,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(e),t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},t}(),Ke=f(m([],f(function(t,e){return new Ve(t,e)}),ze));function Ge(t,e){for(var n=e.length-1;n>=0&&t(e[n]);)n-=1;return Lt(0,n+1,e)}var Ye=function(){function t(t,e){this.f=t,this.retained=[],this.xf=e}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.retain(t,e):this.flush(t,e)},t.prototype.flush=function(t,e){return t=I(this.xf["@@transducer/step"],t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,e)},t.prototype.retain=function(t,e){return this.retained.push(e),t},t}(),Je=f(m([],f(function(t,e){return new Ye(t,e)}),Ge)),$e=function(){function t(t,e){this.xf=e,this.pred=t,this.lastValue=void 0,this.seenFirstValue=!1}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=b.result,t.prototype["@@transducer/step"]=function(t,e){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,e)&&(n=!0):this.seenFirstValue=!0,this.lastValue=e,n?t:this.xf["@@transducer/step"](t,e)},t}(),He=f(function(t,e){return new $e(t,e)}),Xe=Yt(-1),Ze=f(m([],He,function(t,e){var n=[],r=1,u=e.length;if(0!==u)for(n[0]=e[0];r<u;)t(Xe(n),e[r])||(n[n.length]=e[r]),r+=1;return n})),Qe=o(m([],He(ue),Ze(ue))),tn=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=b.result,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},t}(),en=f(m(["dropWhile"],f(function(t,e){return new tn(t,e)}),function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return Lt(n,1/0,e)})),nn=f(function(t,e){return t||e}),rn=f(function(t,e){return mt(t)?function(){return t.apply(this,arguments)||e.apply(this,arguments)}:bt(nn)(t,e)}),un=o(function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():_(t)?[]:A(t)?"":de(t)?{}:D(t)?function(){return arguments}():void 0}),an=f(function(t,e){return Be(t>=0?e.length-t:0,e)}),on=f(function(t,e){return ue(an(t.length,e),t)}),fn=h(function(t,e,n){return ue(t(e),t(n))}),ln=h(function(t,e,n){return ue(e[t],n[t])}),cn=f(function t(e,n){var r,u,i,a=n instanceof Array?[]:{};for(u in n)i=typeof(r=e[u]),a[u]="function"===i?r(n[u]):r&&"object"===i?t(r,n[u]):n[u];return a}),sn=function(){function t(t,e){this.xf=e,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.found=!0,t=M(this.xf["@@transducer/step"](t,e))),t},t}(),dn=f(m(["find"],f(function(t,e){return new sn(t,e)}),function(t,e){for(var n=0,r=e.length;n<r;){if(t(e[n]))return e[n];n+=1}})),pn=function(){function t(t,e){this.xf=e,this.f=t,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.idx+=1,this.f(e)&&(this.found=!0,t=M(this.xf["@@transducer/step"](t,this.idx))),t},t}(),vn=f(m([],f(function(t,e){return new pn(t,e)}),function(t,e){for(var n=0,r=e.length;n<r;){if(t(e[n]))return n;n+=1}return-1})),hn=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.last=e),t},t}(),yn=f(m([],f(function(t,e){return new hn(t,e)}),function(t,e){for(var n=e.length-1;n>=0;){if(t(e[n]))return e[n];n-=1}})),_n=function(){function t(t,e){this.xf=e,this.f=t,this.idx=-1,this.lastIdx=-1}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},t.prototype["@@transducer/step"]=function(t,e){return this.idx+=1,this.f(e)&&(this.lastIdx=this.idx),t},t}(),gn=f(m([],f(function(t,e){return new _n(t,e)}),function(t,e){for(var n=e.length-1;n>=0;){if(t(e[n]))return n;n-=1}return-1})),mn=o(jt(!0)),Mn=o(function(t){return p(t.length,function(e,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=e,t.apply(this,r)})}),bn=f(Wt("forEach",function(t,e){for(var n=e.length,r=0;r<n;)t(e[r]),r+=1;return e})),Nn=f(function(t,e){for(var n=V(e),r=0;r<n.length;){var u=n[r];t(e[u],u,e),r+=1}return e}),wn=o(function(t){for(var e={},n=0;n<t.length;)e[t[n][0]]=t[n][1],n+=1;return e}),xn=f(Wt("groupBy",je(function(t,e){return null==t&&(t=[]),t.push(e),t},null))),jn=f(function(t,e){for(var n=[],r=0,u=e.length;r<u;){for(var i=r+1;i<u&&t(e[i-1],e[i]);)i+=1;n.push(e.slice(r,i)),r=i}return n}),An=f(function(t,e){return t>e}),Sn=f(function(t,e){return t>=e}),On=f(function(t,e){if(0===t.length)return!1;for(var n=e,r=0;r<t.length;){if(!W(t[r],n))return!1;n=n[t[r]],r+=1}return!0}),Pn=f(function(t,e){return On([t],e)}),En=f(function(t,e){return t in e}),qn=f(ee),Tn=h(function(t,e,n){return p(Math.max(t.length,e.length,n.length),function(){return t.apply(this,arguments)?e.apply(this,arguments):n.apply(this,arguments)})}),kn=l(1),In=f(ae),Fn=je(function(t,e){return e},null),Rn=f(function(t,e){return"function"!=typeof e.indexOf||_(e)?ie(e,t,0):e.indexOf(t)}),Wn=Lt(0,-1),Ln=h(function(t,e,n){return se(function(e){return te(t,e,n)},e)}),Dn=h(function(t,e,n){t=t<n.length&&t>=0?t:n.length;var r=Array.prototype.slice.call(n,0);return r.splice(t,0,e),r}),Bn=h(function(t,e,n){return t=t<n.length&&t>=0?t:n.length,[].concat(Array.prototype.slice.call(n,0,t),e,Array.prototype.slice.call(n,t))}),Cn=f(function(t,e){for(var n,r,u=new qe,i=[],a=0;a<e.length;)n=t(r=e[a]),u.add(n)&&i.push(r),a+=1;return i}),Un=Cn(Ht),zn=f(function(t,e){var n,r;return t.length>e.length?(n=t,r=e):(n=e,r=t),Un(se(Mn(ae)(n),r))}),Vn=f(Wt("intersperse",function(t,e){for(var n=[],r=0,u=e.length;r<u;)r===u-1?n.push(e[r]):n.push(e[r],t),r+=1;return n}));var Kn="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1,r=arguments.length;n<r;){var u=arguments[n];if(null!=u)for(var i in u)W(i,u)&&(e[i]=u[i]);n+=1}return e},Gn=f(function(t,e){var n={};return n[t]=e,n}),Yn={"@@transducer/init":Array,"@@transducer/step":function(t,e){return t.push(e),t},"@@transducer/result":$t},Jn={"@@transducer/init":String,"@@transducer/step":function(t,e){return t+e},"@@transducer/result":$t},$n={"@@transducer/init":Object,"@@transducer/step":function(t,e){return Kn(t,S(e)?Gn(e[0],e[1]):e)},"@@transducer/result":$t};var Hn=h(function(t,e,n){return g(t)?I(e(t),t["@@transducer/init"](),n):I(e(function(t){if(g(t))return t;if(S(t))return Yn;if("string"==typeof t)return Jn;if("object"==typeof t)return $n;throw new Error("Cannot create transformer for "+t)}(t)),qt(t,[],[],!1),n)}),Xn=o(function(t){for(var e=V(t),n=e.length,r=0,u={};r<n;){var i=e[r],a=t[i],o=W(a,u)?u[a]:u[a]=[];o[o.length]=i,r+=1}return u}),Zn=o(function(t){for(var e=V(t),n=e.length,r=0,u={};r<n;){var i=e[r];u[t[i]]=i,r+=1}return u}),Qn=f(function(t,e){return p(t+1,function(){var n=arguments[t];if(null!=n&&mt(n[e]))return n[e].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(_e(n)+' does not have a method named "'+e+'"')})}),tr=f(function(t,e){return null!=e&&e.constructor===t||e instanceof t}),er=o(function(t){return null!=t&&ue(t,un(t))}),nr=Qn(1,"join"),rr=o(function(t){return we(function(){return Array.prototype.slice.call(arguments,0)},t)}),ur=o(function(t){var e,n=[];for(e in t)n[n.length]=e;return n}),ir=f(function(t,e){if("function"!=typeof e.lastIndexOf||_(e)){for(var n=e.length-1;n>=0;){if(ue(e[n],t))return n;n-=1}return-1}return e.lastIndexOf(t)});function ar(t){return"[object Number]"===Object.prototype.toString.call(t)}var or=o(function(t){return null!=t&&ar(t.length)?t.length:NaN}),fr=f(function(t,e){return function(n){return function(r){return K(function(t){return e(t,r)},n(t(r)))}}}),lr=o(function(t){return fr(Yt(t),Re(t))}),cr=o(function(t){return fr(G(t),yt(t))}),sr=o(function(t){return fr(Y(t),pt(t))}),dr=f(function(t,e){return t<e}),pr=f(function(t,e){return t<=e}),vr=h(function(t,e,n){for(var r=0,u=n.length,i=[],a=[e];r<u;)a=t(a[0],n[r]),i[r]=a[1],r+=1;return[a[0],i]}),hr=h(function(t,e,n){for(var r=n.length-1,u=[],i=[e];r>=0;)i=t(i[0],n[r]),u[r]=i[1],r-=1;return[i[0],u]}),yr=f(function(t,e){return I(function(n,r){return n[r]=t(e[r],r,e),n},{},V(e))}),_r=f(function(t,e){return e.match(t)||[]}),gr=f(function(t,e){return vt(t)?!vt(e)||e<1?NaN:(t%e+e)%e:NaN}),mr=h(function(t,e,n){return t(n)>t(e)?n:e}),Mr=$(l,0),br=o(function(t){return Mr(t)/t.length}),Nr=o(function(t){var e=t.length;if(0===e)return NaN;var n=2-e%2,r=(e-n)/2;return br(Array.prototype.slice.call(t,0).sort(function(t,e){return t<e?-1:t>e?1:0}).slice(r,r+n))}),wr=f(function(t,e){var n={};return s(e.length,function(){var r=t.apply(this,arguments);return W(r,n)||(n[r]=e.apply(this,arguments)),n[r]})}),xr=f(function(t,e){return Kn({},t,e)}),jr=o(function(t){return Kn.apply(null,[{}].concat(t))}),Ar=h(function(t,e,n){var r,u={};for(r in e)W(r,e)&&(u[r]=W(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)W(r,n)&&!W(r,u)&&(u[r]=n[r]);return u}),Sr=h(function t(e,n,r){return Ar(function(n,r,u){return de(r)&&de(u)?t(e,r,u):e(n,r,u)},n,r)}),Or=f(function(t,e){return Sr(function(t,e,n){return e},t,e)}),Pr=f(function(t,e){return Sr(function(t,e,n){return n},t,e)}),Er=h(function(t,e,n){return Sr(function(e,n,r){return t(n,r)},e,n)}),qr=f(function(t,e){return Kn({},e,t)}),Tr=f(function(t,e){return Kn({},t,e)}),kr=h(function(t,e,n){return Ar(function(e,n,r){return t(n,r)},e,n)}),Ir=f(function(t,e){return e<t?e:t}),Fr=h(function(t,e,n){return t(n)<t(e)?n:e}),Rr=f(function(t,e){return t%e}),Wr=h(function(t,e,n){var r=n.length,u=n.slice(),i=t<0?r+t:t,a=e<0?r+e:e,o=u.splice(i,1);return i<0||i>=n.length||a<0||a>=n.length?n:[].concat(u.slice(0,a)).concat(o).concat(u.slice(a,n.length))}),Lr=f(function(t,e){return t*e}),Dr=o(function(t){return-t}),Br=f(function(t,e){return w(ce(t),e)}),Cr=o(function(t){return p(t<0?1:t+1,function(){return Yt(t,arguments)})}),Ur=h(function(t,e,n){return t(e(n))});function zr(t){return[t]}var Vr=o(zr),Kr=f(function(t,e){for(var n={},r={},u=0,i=t.length;u<i;)r[t[u]]=1,u+=1;for(var a in e)r.hasOwnProperty(a)||(n[a]=e[a]);return n}),Gr=o(function(t){var e,n=!1;return s(t.length,function(){return n?e:(n=!0,e=t.apply(this,arguments))})});function Yr(t,e){if(null==e||!mt(e.then))throw new TypeError("`"+t+"` expected a Promise, received "+ye(e,[]))}var Jr=f(function(t,e){return Yr("otherwise",e),e.then(null,t)}),$r=function(t){return{value:t,map:function(e){return $r(e(t))}}},Hr=h(function(t,e,n){return t(function(t){return $r(e(t))})(n).value}),Xr=f(function(t,e){return[t,e]});function Zr(t){return f(function(e,n){return s(Math.max(0,e.length-n.length),function(){return e.apply(this,t(n,arguments))})})}var Qr=Zr(c),tu=Zr(Mn(c)),eu=rr([ve,he]),nu=h(function(t,e,n){return ue(G(t,n),e)}),ru=h(function(t,e,n){return Oe(t,G(e,n))}),uu=h(function(t,e,n){return e.length>0&&t(G(e,n))}),iu=f(function(t,e){for(var n={},r=0;r<t.length;)t[r]in e&&(n[t[r]]=e[t[r]]),r+=1;return n}),au=f(function(t,e){for(var n={},r=0,u=t.length;r<u;){var i=t[r];n[i]=e[i],r+=1}return n}),ou=f(function(t,e){var n={};for(var r in e)t(e[r],r,e)&&(n[r]=e[r]);return n});function fu(){if(0===arguments.length)throw new Error("pipeK requires at least one argument");return zt.apply(this,Ct(arguments))}var lu=f(function(t,e){return c([t],e)}),cu=$(Lr,1),su=f(function(t,e){return p(e.length,function(){for(var n=[],r=0;r<e.length;)n.push(e[r].call(this,arguments[r])),r+=1;return t.apply(this,n.concat(Array.prototype.slice.call(arguments,e.length)))})}),du=su(j,[au,Ht]),pu=h(function(t,e,n){return ue(e,n[t])}),vu=h(function(t,e,n){return tr(t,n[e])}),hu=h(function(t,e,n){return ru(t,[e],n)}),yu=h(function(t,e,n){return t(n[e])}),_u=f(function(t,e){for(var n=t.length,r=[],u=0;u<n;)r[u]=e[t[u]],u+=1;return r}),gu=f(function(t,e){if(!ar(t)||!ar(e))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=t;r<e;)n.push(r),r+=1;return n}),mu=h(function(t,e,n){for(var r=n.length-1;r>=0;)e=t(n[r],e),r-=1;return e}),Mu=d(4,[],function(t,e,n,r){return I(function(n,r){return t(n,r)?e(n,r):M(n)},n,r)}),bu=o(M),Nu=f(function(t,e){var n,r=Number(e),u=0;if(r<0||isNaN(r))throw new RangeError("n must be a non-negative number");for(n=new Array(r);u<r;)n[u]=t(u),u+=1;return n}),wu=f(function(t,e){return Nu(X(t),e)}),xu=h(function(t,e,n){return n.replace(t,e)}),ju=h(function(t,e,n){for(var r=0,u=n.length,i=[e];r<u;)e=t(e,n[r]),i[r+1]=e,r+=1;return i}),Au=f(function(t,e){return"function"==typeof e.sequence?e.sequence(t):mu(function(t,e){return nt(K(lu,t),e)},t([]),e)}),Su=h(function(t,e,n){return Hr(t,X(e),n)}),Ou=f(function(t,e){return Array.prototype.slice.call(e,0).sort(t)}),Pu=f(function(t,e){return Array.prototype.slice.call(e,0).sort(function(e,n){var r=t(e),u=t(n);return r<u?-1:r>u?1:0})}),Eu=f(function(t,e){return Array.prototype.slice.call(e,0).sort(function(e,n){for(var r=0,u=0;0===r&&u<t.length;)r=t[u](e,n),u+=1;return r})}),qu=Qn(1,"split"),Tu=f(function(t,e){return[Lt(0,t,e),Lt(t,or(e),e)]}),ku=f(function(t,e){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r<e.length;)n.push(Lt(r,r+=t,e));return n}),Iu=f(function(t,e){for(var n=0,r=e.length,u=[];n<r&&!t(e[n]);)u.push(e[n]),n+=1;return[u,Array.prototype.slice.call(e,n)]}),Fu=f(function(t,e){return ue(Ue(t.length,e),t)}),Ru=f(function(t,e){return Number(t)-Number(e)}),Wu=f(function(t,e){return ge(Te(t,e),Te(e,t))}),Lu=h(function(t,e,n){return ge(ke(t,e,n),ke(t,n,e))}),Du=f(function(t,e){for(var n=e.length-1;n>=0&&t(e[n]);)n-=1;return Lt(n+1,1/0,e)}),Bu=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=b.result,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):M(t)},t}(),Cu=f(m(["takeWhile"],f(function(t,e){return new Bu(t,e)}),function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return Lt(0,n,e)})),Uu=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=b.init,t.prototype["@@transducer/result"]=b.result,t.prototype["@@transducer/step"]=function(t,e){return this.f(e),this.xf["@@transducer/step"](t,e)},t}(),zu=f(m([],f(function(t,e){return new Uu(t,e)}),function(t,e){return t(e),e}));var Vu=f(function(t,e){if(n=t,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+_e(t));var n;return Pt(t).test(e)}),Ku=f(function(t,e){return Yr("then",e),e.then(t)}),Gu=Qn(0,"toLowerCase"),Yu=o(function(t){var e=[];for(var n in t)W(n,t)&&(e[e.length]=[n,t[n]]);return e}),Ju=o(function(t){var e=[];for(var n in t)e[e.length]=[n,t[n]];return e}),$u=Qn(0,"toUpperCase"),Hu=p(4,function(t,e,n,r){return I(t("function"==typeof e?P(e):e),n,r)}),Xu=o(function(t){for(var e=0,n=[];e<t.length;){for(var r=t[e],u=0;u<r.length;)void 0===n[u]&&(n[u]=[]),n[u].push(r[u]),u+=1;e+=1}return n}),Zu=h(function(t,e,n){return"function"==typeof n["fantasy-land/traverse"]?n["fantasy-land/traverse"](e,t):Au(t,K(e,n))}),Qu="\t\n\v\f\r \u2028\u2029\ufeff",ti=o("function"==typeof String.prototype.trim&&!Qu.trim()&&"".trim()?function(t){return t.trim()}:function(t){var e=new RegExp("^["+Qu+"]["+Qu+"]*"),n=new RegExp("["+Qu+"]["+Qu+"]*$");return t.replace(e,"").replace(n,"")}),ei=f(function(t,e){return s(t.length,function(){try{return t.apply(this,arguments)}catch(t){return e.apply(this,c([t],arguments))}})}),ni=o(function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}}),ri=o(function(t){return _t(1,t)}),ui=f(function(t,e){return p(t,function(){for(var n,r=1,u=e,i=0;r<=t&&"function"==typeof u;)n=r===t?arguments.length:i+u.length,u=u.apply(this,Array.prototype.slice.call(arguments,i,n)),r+=1,i=n;return u})}),ii=f(function(t,e){for(var n=t(e),r=[];n&&n.length;)r[r.length]=n[0],n=t(n[1]);return r}),ai=f(Ut(Un,c)),oi=f(function(t,e){for(var n,r=0,u=e.length,i=[];r<u;)te(t,n=e[r],i)||(i[i.length]=n),r+=1;return i}),fi=h(function(t,e,n){return oi(t,c(e,n))}),li=h(function(t,e,n){return t(n)?n:e(n)}),ci=St($t),si=h(function(t,e,n){for(var r=n;!t(r);)r=e(r);return r}),di=o(function(t){var e,n=[];for(e in t)n[n.length]=t[e];return n}),pi=function(t){return{value:t,"fantasy-land/map":function(){return this}}},vi=f(function(t,e){return t(pi)(e).value}),hi=h(function(t,e,n){return t(n)?e(n):n}),yi=f(function(t,e){for(var n in t)if(W(n,t)&&!t[n](e[n]))return!1;return!0}),_i=f(function(t,e){return yi(K(ue,t),e)}),gi=f(function(t,e){return he(Mn(ae)(t),e)}),mi=f(function(t,e){for(var n,r=0,u=t.length,i=e.length,a=[];r<u;){for(n=0;n<i;)a[a.length]=[t[r],e[n]],n+=1;r+=1}return a}),Mi=f(function(t,e){for(var n=[],r=0,u=Math.min(t.length,e.length);r<u;)n[r]=[t[r],e[r]],r+=1;return n}),bi=f(function(t,e){for(var n=0,r=Math.min(t.length,e.length),u={};n<r;)u[t[n]]=e[n],n+=1;return u}),Ni=h(function(t,e,n){for(var r=[],u=0,i=Math.min(e.length,n.length);u<i;)r[u]=t(e[u],n[u]),u+=1;return r}),wi=o(function(t){return p(t.length,function(){var e=arguments;return function(){return t.apply(this,e)}})});n.d(e,"F",function(){return r}),n.d(e,"T",function(){return u}),n.d(e,"__",function(){return i}),n.d(e,"add",function(){return l}),n.d(e,"addIndex",function(){return v}),n.d(e,"adjust",function(){return y}),n.d(e,"all",function(){return w}),n.d(e,"allPass",function(){return H}),n.d(e,"always",function(){return X}),n.d(e,"and",function(){return Z}),n.d(e,"any",function(){return tt}),n.d(e,"anyPass",function(){return et}),n.d(e,"ap",function(){return nt}),n.d(e,"aperture",function(){return it}),n.d(e,"append",function(){return at}),n.d(e,"apply",function(){return ot}),n.d(e,"applySpec",function(){return ct}),n.d(e,"applyTo",function(){return st}),n.d(e,"ascend",function(){return dt}),n.d(e,"assoc",function(){return pt}),n.d(e,"assocPath",function(){return yt}),n.d(e,"binary",function(){return gt}),n.d(e,"bind",function(){return E}),n.d(e,"both",function(){return Nt}),n.d(e,"call",function(){return xt}),n.d(e,"chain",function(){return St}),n.d(e,"clamp",function(){return Ot}),n.d(e,"clone",function(){return Tt}),n.d(e,"comparator",function(){return kt}),n.d(e,"complement",function(){return Ft}),n.d(e,"compose",function(){return Ut}),n.d(e,"composeK",function(){return zt}),n.d(e,"composeP",function(){return Gt}),n.d(e,"composeWith",function(){return Zt}),n.d(e,"concat",function(){return ge}),n.d(e,"cond",function(){return me}),n.d(e,"construct",function(){return be}),n.d(e,"constructN",function(){return Me}),n.d(e,"contains",function(){return Ne}),n.d(e,"converge",function(){return we}),n.d(e,"countBy",function(){return Ae}),n.d(e,"curry",function(){return wt}),n.d(e,"curryN",function(){return p}),n.d(e,"dec",function(){return Se}),n.d(e,"defaultTo",function(){return Oe}),n.d(e,"descend",function(){return Pe}),n.d(e,"difference",function(){return Te}),n.d(e,"differenceWith",function(){return ke}),n.d(e,"dissoc",function(){return Ie}),n.d(e,"dissocPath",function(){return We}),n.d(e,"divide",function(){return Le}),n.d(e,"drop",function(){return Be}),n.d(e,"dropLast",function(){return Ke}),n.d(e,"dropLastWhile",function(){return Je}),n.d(e,"dropRepeats",function(){return Qe}),n.d(e,"dropRepeatsWith",function(){return Ze}),n.d(e,"dropWhile",function(){return en}),n.d(e,"either",function(){return rn}),n.d(e,"empty",function(){return un}),n.d(e,"endsWith",function(){return on}),n.d(e,"eqBy",function(){return fn}),n.d(e,"eqProps",function(){return ln}),n.d(e,"equals",function(){return ue}),n.d(e,"evolve",function(){return cn}),n.d(e,"filter",function(){return ve}),n.d(e,"find",function(){return dn}),n.d(e,"findIndex",function(){return vn}),n.d(e,"findLast",function(){return yn}),n.d(e,"findLastIndex",function(){return gn}),n.d(e,"flatten",function(){return mn}),n.d(e,"flip",function(){return Mn}),n.d(e,"forEach",function(){return bn}),n.d(e,"forEachObjIndexed",function(){return Nn}),n.d(e,"fromPairs",function(){return wn}),n.d(e,"groupBy",function(){return xn}),n.d(e,"groupWith",function(){return jn}),n.d(e,"gt",function(){return An}),n.d(e,"gte",function(){return Sn}),n.d(e,"has",function(){return Pn}),n.d(e,"hasIn",function(){return En}),n.d(e,"hasPath",function(){return On}),n.d(e,"head",function(){return Jt}),n.d(e,"identical",function(){return qn}),n.d(e,"identity",function(){return Ht}),n.d(e,"ifElse",function(){return Tn}),n.d(e,"inc",function(){return kn}),n.d(e,"includes",function(){return In}),n.d(e,"indexBy",function(){return Fn}),n.d(e,"indexOf",function(){return Rn}),n.d(e,"init",function(){return Wn}),n.d(e,"innerJoin",function(){return Ln}),n.d(e,"insert",function(){return Dn}),n.d(e,"insertAll",function(){return Bn}),n.d(e,"intersection",function(){return zn}),n.d(e,"intersperse",function(){return Vn}),n.d(e,"into",function(){return Hn}),n.d(e,"invert",function(){return Xn}),n.d(e,"invertObj",function(){return Zn}),n.d(e,"invoker",function(){return Qn}),n.d(e,"is",function(){return tr}),n.d(e,"isEmpty",function(){return er}),n.d(e,"isNil",function(){return ht}),n.d(e,"join",function(){return nr}),n.d(e,"juxt",function(){return rr}),n.d(e,"keys",function(){return V}),n.d(e,"keysIn",function(){return ur}),n.d(e,"last",function(){return Xe}),n.d(e,"lastIndexOf",function(){return ir}),n.d(e,"length",function(){return or}),n.d(e,"lens",function(){return fr}),n.d(e,"lensIndex",function(){return lr}),n.d(e,"lensPath",function(){return cr}),n.d(e,"lensProp",function(){return sr}),n.d(e,"lift",function(){return bt}),n.d(e,"liftN",function(){return Mt}),n.d(e,"lt",function(){return dr}),n.d(e,"lte",function(){return pr}),n.d(e,"map",function(){return K}),n.d(e,"mapAccum",function(){return vr}),n.d(e,"mapAccumRight",function(){return hr}),n.d(e,"mapObjIndexed",function(){return yr}),n.d(e,"match",function(){return _r}),n.d(e,"mathMod",function(){return gr}),n.d(e,"max",function(){return x}),n.d(e,"maxBy",function(){return mr}),n.d(e,"mean",function(){return br}),n.d(e,"median",function(){return Nr}),n.d(e,"memoizeWith",function(){return wr}),n.d(e,"merge",function(){return xr}),n.d(e,"mergeAll",function(){return jr}),n.d(e,"mergeDeepLeft",function(){return Or}),n.d(e,"mergeDeepRight",function(){return Pr}),n.d(e,"mergeDeepWith",function(){return Er}),n.d(e,"mergeDeepWithKey",function(){return Sr}),n.d(e,"mergeLeft",function(){return qr}),n.d(e,"mergeRight",function(){return Tr}),n.d(e,"mergeWith",function(){return kr}),n.d(e,"mergeWithKey",function(){return Ar}),n.d(e,"min",function(){return Ir}),n.d(e,"minBy",function(){return Fr}),n.d(e,"modulo",function(){return Rr}),n.d(e,"move",function(){return Wr}),n.d(e,"multiply",function(){return Lr}),n.d(e,"nAry",function(){return _t}),n.d(e,"negate",function(){return Dr}),n.d(e,"none",function(){return Br}),n.d(e,