!function(){"use strict";vare,t,n,o,r,c,i,N=function(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},h=function(n,o){returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];returnn(o.apply(null,arguments))}},U=function(e){returnfunction(){returne}},b=function(e){returne},f=function(i){for(vare=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];for(vara=newArray(arguments.length-1),n=1;n<arguments.length;n++)a[n-1]=arguments[n];returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(varn=newArray(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];varr=a.concat(n);returni.apply(null,r)}},k=function(n){returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return!n.apply(null,arguments)}},a=function(e){returnfunction(){thrownewError(e)}},u=function(e){returne()},s=U(!1),l=U(!0),d=s,m=l,g=function(){returnv},v=(o={fold:function(e,t){returne()},is:d,isSome:d,isNone:m,getOr:n=function(e){returne},getOrThunk:t=function(e){returne()},getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:function(){returnnull},getOrUndefined:function(){returnundefined},or:n,orThunk:t,map:g,ap:g,each:function(){},bind:g,flatten:g,exists:d,forall:m,filter:g,equals:e=function(e){returne.isNone()},equals_:e,toArray:function(){return[]},toString:U("none()")},Object.freeze&&Object.freeze(o),o),p=function(n){vare=function(){returnn},t=function(){returnr},o=function(e){returne(n)},r={fold:function(e,t){returnt(n)},is:function(e){returnn===e},isSome:m,isNone:d,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){returnp(e(n))},ap:function(e){returne.fold(g,function(e){returnp(e(n))})},each:function(e){e(n)},bind:o,flatten:e,exists:o,forall:o,filter:function(e){returne(n)?r:v},equals:function(e){returne.is(n)},equals_:function(e,t){returne.fold(d,function(e){returnt(n,e)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};returnr},P={some:p,none:g,from:function(e){returnnull===e||e===undefined?v:p(e)}},y=function(t){returnfunction(e){returnfunction(e){if(null===e)return"null";vart=typeofe;return"object"===t&&Array.prototype.isPrototypeOf(e)?"array":"object"===t&&String.prototype.isPrototypeOf(e)?"string":t}(e)===t}},x=y("string"),w=y("object"),S=y("array"),C=y("boolean"),z=y("function"),O=y("number"),T=(r=Array.prototype.indexOf)===undefined?function(e,t){return_(e,t)}:function(e,t){returnr.call(e,t)},M=function(e,t){return-1<T(e,t)},H=function(e,t){returnI(e,t).isSome()},E=function(e,t){for(varn=[],o=0;o<e.length;o+=t){varr=e.slice(o,o+t);n.push(r)}returnn},V=function(e,t){for(varn=e.length,o=newArray(n),r=0;r<n;r++){vari=e[r];o[r]=t(i,r,e)}returno},A=function(e,t){for(varn=0,o=e.length;n<o;n++)t(e[n],n,e)},B=function(e,t){for(varn=[],o=0,r=e.length;o<r;o++){vari=e[o];t(i,o,e)&&n.push(i)}returnn},D=function(e,t,n){returnfunction(e,t){for(varn=e.length-1;0<=n;n--)t(e[n],n,e)}(e,function(e){n=t(n,e)}),n},R=function(e,t,n){returnA(e,function(e){n=t(n,e)}),n},F=function(e,t){for(varn=0,o=e.length;n<o;n++){varr=e[n];if(t(r,n,e))returnP.some(r)}returnP.none()},I=function(e,t){for(varn=0,o=e.length;n<o;n++)if(t(e[n],n,e))returnP.some(n);returnP.none()},_=function(e,t){for(varn=0,o=e.length;n<o;++n)if(e[n]===t)returnn;return-1},L=Array.prototype.push,j=function(e){for(vart=[],n=0,o=e.length;n<o;++n){if(!Array.prototype.isPrototypeOf(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);L.apply(t,e[n])}returnt},W=function(e,t){varn=V(e,t);returnj(n)},G=function(e,t){for(varn=0,o=e.length;n<o;++n)if(!0!==t(e[n],n,e))return!1;return!0},X=Array.prototype.slice,Y=function(e){vart=X.call(e,0);returnt.reverse(),t},$=function(e,t){returnB(e,function(e){return!M(t,e)})},q=function(e){return[e]},K=function(e){return0===e.length?P.none():P.some(e[0])},J=function(e){return0===e.length?P.none():P.some(e[e.length-1])},Q=z(Array.from)?Array.from:function(e){returnX.call(e)},Z=Object.prototype.hasOwnPropert