!function(){"use strict";varn,e,t,r,o,i,u,a=function(n){returnfunction(){returnn}},c={noop:function(){},noarg:function(n){returnfunction(){returnn()}},compose:function(n,e){returnfunction(){returnn(e.apply(null,arguments))}},constant:a,identity:function(n){returnn},tripleEquals:function(n,e){returnn===e},curry:function(n){for(vare=newArray(arguments.length-1),t=1;t<arguments.length;t++)e[t-1]=arguments[t];returnfunction(){for(vart=newArray(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];varo=e.concat(t);returnn.apply(null,o)}},not:function(n){returnfunction(){return!n.apply(null,arguments)}},die:function(n){returnfunction(){thrownewError(n)}},apply:function(n){returnn()},call:function(n){n()},never:a(!1),always:a(!0)},s=c.never,f=c.always,l=function(){returnd},d=(r={fold:function(n,e){returnn()},is:s,isSome:s,isNone:f,getOr:t=function(n){returnn},getOrThunk:e=function(n){returnn()},getOrDie:function(n){thrownewError(n||"error: getOrDie called on none.")},or:t,orThunk:e,map:l,ap:l,each:function(){},bind:l,flatten:l,exists:s,forall:f,filter:l,equals:n=function(n){returnn.isNone()},equals_:n,toArray:function(){return[]},toString:c.constant("none()")},Object.freeze&&Object.freeze(r),r),m=function(n){vare=function(){returnn},t=function(){returno},r=function(e){returne(n)},o={fold:function(e,t){returnt(n)},is:function(e){returnn===e},isSome:f,isNone:s,getOr:e,getOrThunk:e,getOrDie:e,or:t,orThunk:t,map:function(e){returnm(e(n))},ap:function(e){returne.fold(l,function(e){returnm(e(n))})},each:function(e){e(n)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){returne(n)?o:d},equals:function(e){returne.is(n)},equals_:function(e,t){returne.fold(s,function(e){returnt(n,e)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};returno},p={some:m,none:l,from:function(n){returnnull===n||n===undefined?d:m(n)}},g=(o=Array.prototype.indexOf)===undefined?function(n,e){returnx(n,e)}:function(n,e){returno.call(n,e)},h=function(n,e){returng(n,e)>-1},v=function(n,e){for(vart=n.length,r=newArray(t),o=0;o<t;o++){vari=n[o];r[o]=e(i,o,n)}returnr},y=function(n,e){for(vart=0,r=n.length;t<r;t++)e(n[t],t,n)},b=function(n,e){for(vart=n.length-1;t>=0;t--)e(n[t],t,n)},w=function(n,e){for(vart=[],r=0,o=n.length;r<o;r++){vari=n[r];e(i,r,n)&&t.push(i)}returnt},S=function(n,e){for(vart=0,r=n.length;t<r;t++)if(e(n[t],t,n))returnp.some(t);returnp.none()},x=function(n,e){for(vart=0,r=n.length;t<r;++t)if(n[t]===e)returnt;return-1},O=Array.prototype.push,T=function(n){for(vare=[],t=0,r=n.length;t<r;++t){if(!Array.prototype.isPrototypeOf(n[t]))thrownewError("Arr.flatten item "+t+" was not an array, input: "+n);O.apply(e,n[t])}returne},k=function(n,e){for(vart=0,r=n.length;t<r;++t)if(!0!==e(n[t],t,n))return!1;return!0},C=Array.prototype.slice,E={map:v,each:y,eachr:b,partition:function(n,e){for(vart=[],r=[],o=0,i=n.length;o<i;o++){varu=n[o];(e(u,o,n)?t:r).push(u)}return{pass:t,fail:r}},filter:w,groupBy:function(n,e){if(0===n.length)return[];for(vart=e(n[0]),r=[],o=[],i=0,u=n.length;i<u;i++){vara=n[i],c=e(a);c!==t&&(r.push(o),o=[]),t=c,o.push(a)}return0!==o.length&&r.push(o),r},indexOf:function(n,e){vart=g(n,e);return-1===t?p.none():p.some(t)},foldr:function(n,e,t){returnb(n,function(n){t=e(t,n)}),t},foldl:function(n,e,t){returny(n,function(n){t=e(t,n)}),t},find:function(n,e){for(vart=0,r=n.length;t<r;t++){varo=n[t];if(e(o,t,n))returnp.some(o)}returnp.none()},findIndex:S,flatten:T,bind:function(n,e){vart=v(n,e);returnT(t)},forall:k,exists:function(n,e){returnS(n,e).isSome()},contains:h,equal:function(n,e){returnn.length===e.length&&k(n,function(n,t){returnn===e[t]})},reverse:function(n){vare=C.call(n,0);returne.reverse(),e},chunk:function(n,e){for(vart=[],r=0;r<n.length;r+=e){varo=n.slice(r,r+e);t.push(o)}returnt},difference:function(n,e){returnw(n,function(n){return!h(e,n)})},mapToObject:function(n,e){for(vart={},r=0,o=n.length;r<o;r++){vari=n[r];t[String(i)]=e(i,r)}returnt},pure:function(n){return[n]},sort:function(n,e){vart=C.call(n,0);retur