!function(){"use strict";functionr(e){if(null===e)return"null";if(void0===e)return"undefined";vart=typeofe;return"object"==t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"==t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}functionf(o){returnm(function(e,t){if(e.length!==t.length)return!1;for(varn=e.length,r=0;r<n;r++)if(!o.eq(e[r],t[r]))return!1;return!0})}functiond(l){returnm(function(e,t){varn,r,o,i=Object.keys(e),a=Object.keys(t);if(r=f(g),o=function(e){returnt=n,Array.prototype.slice.call(e).sort(t);vart},!m(function(e,t){returnr.eq(o(e),o(t))}).eq(i,a))return!1;for(varu=i.length,s=0;s<u;s++){varc=i[s];if(!l.eq(e[c],t[c]))return!1}return!0})}functione(r){returnfunction(e){returnn=typeof(t=e),(null===t?"null":"object"==n&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"==n&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":n)===r;vart,n}}functiont(t){returnfunction(e){returntypeofe===t}}functionn(t){returnfunction(e){returnt===e}}functionK(e){returnnull==e}functionV(e){return!K(e)}functionte(){}functioni(n,r){returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];returnn(r.apply(null,e))}}functiona(t,n){returnfunction(e){returnt(n(e))}}functionJ(e){returnfunction(){returne}}functionu(e){returne}functiono(e,t){returne===t}varm=function(e){return{eq:e}},g=m(function(e,t){returne===t}),p=m(function(e,t){if(e===t)return!0;varn=r(e);returnn===r(t)&&(-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(n)?e===t:"array"===n?f(p).eq(e,t):"object"===n&&d(p).eq(e,t))}),X=e("string"),h=e("object"),S=e("array"),l=n(null),v=t("boolean"),b=n(void0),y=t("function"),E=t("number");functionR(r){for(varo=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];varn=o.concat(e);returnr.apply(null,n)}}functions(t){returnfunction(e){return!t(e)}}functionC(e){returne()}functionx(e){e()}functionc(){returnk}varD=J(!1),w=J(!0),k={fold:function(e,t){returne()},isSome:D,isNone:w,getOr:u,getOrThunk:N,getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:J(null),getOrUndefined:J(void0),or:u,orThunk:N,map:c,each:te,bind:c,exists:D,forall:w,filter:function(){returnk},toArray:function(){return[]},toString:J("none()")};functionN(e){returne()}function_(e,t){returnye.call(e,t)}functionT(e,t){return-1<_(e,t)}functionF(e,t){for(varn=0,r=e.length;n<r;n++)if(t(e[n],n))return!0;return!1}functionA(e,t){for(varn=e.length,r=newArray(n),o=0;o<n;o++){vari=e[o];r[o]=t(i,o)}returnr}functionY(e,t){for(varn=0,r=e.length;n<r;n++)t(e[n],n)}functionO(e,t){for(varn=e.length-1;0<=n;n--)t(e[n],n)}functionB(e,t){for(varn=[],r=[],o=0,i=e.length;o<i;o++){vara=e[o];(t(a,o)?n:r).push(a)}return{pass:n,fail:r}}functionU(e,t){for(varn=[],r=0,o=e.length;r<o;r++){vari=e[r];t(i,r)&&n.push(i)}returnn}functionP(e,n,r){returnO(e,function(e,t){r=n(r,e,t)}),r}functionL(e,n,r){returnY(e,function(e,t){r=n(r,e,t)}),r}functionI(e,t,n){for(varr=0,o=e.length;r<o;r++){vari=e[r];if(t(i,r))returnve.some(i);if(n(i,r))break}returnve.none()}functionM(e,t){returnI(e,t,D)}functionz(e,t){for(varn=0,r=e.length;n<r;n++)if(t(e[n],n))returnve.some(n);returnve.none()}functionH(e,t){returnfunction(e){for(vart=[],n=0,r=e.length;n<r;++n){if(!S(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);Ce.apply(t,e[n])}returnt}(A(e,t))}functionj(e,t){for(varn=0,r=e.length;n<r;++n)if(!0!==t(e[n],n))return!1;return!0}functionq(e){vart=be.call(e,0);returnt.reverse(),t}function$(e,t){returnU(e,function(e){return!T(t,e)})}functionW(e,t){varn=be.call(e,0);returnn.sort(t),n}functionG(e,t){return0<=t&&t<e.length?ve.some(e[t]):ve.none()}functionQ(e){returnG(e,0)}functionZ(e){returnG(e,e.length-1)}functionee(e,t){for(varn=0;n<e.length;n++){varr=t(e[n],n);