!function(){"use strict";conste=Object.getPrototypeOf,t=(e,t,o)=>{varn;return!!o(e,t.prototype)||(null===(n=e.constructor)||void0===n?void0:n.name)===t.name},o=e=>o=>(e=>{consto=typeofe;returnnull===e?"null":"object"===o&&Array.isArray(e)?"array":"object"===o&&t(e,String,((e,t)=>t.isPrototypeOf(e)))?"string":o})(o)===e,n=e=>t=>typeoft===e,r=e=>t=>e===t,s=o("string"),a=o("object"),i=o=>((o,n)=>a(o)&&t(o,n,((t,o)=>e(t)===o)))(o,Object),l=o("array"),c=r(null),d=n("boolean"),u=r(void0),m=e=>null==e,g=e=>!m(e),p=n("function"),h=n("number"),f=(e,t)=>{if(l(e)){for(leto=0,n=e.length;o<n;++o)if(!t(e[o]))return!1;return!0}return!1},b=()=>{},v=e=>()=>e(),y=(e,t)=>(...o)=>e(t.apply(null,o)),x=e=>()=>e,w=e=>e,S=(e,t)=>e===t;functionk(e,...t){return(...o)=>{constn=t.concat(o);returne.apply(null,n)}}constC=e=>t=>!e(t),O=e=>()=>{thrownewError(e)},_=e=>e(),T=x(!1),E=x(!0);classA{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewA(!0,e)}staticnone(){returnA.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?A.some(e(this.value)):A.none()}bind(e){returnthis.tag?e(this.value):A.none()}exists(e){returnthis.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:A.none()}getOr(e){returnthis.tag?this.value:e}or(e){returnthis.tag?this:e}getOrThunk(e){returnthis.tag?this.value:e()}orThunk(e){returnthis.tag?this:e()}getOrDie(e){if(this.tag)returnthis.value;thrownewError(null!=e?e:"Called getOrDie on None")}staticfrom(e){returng(e)?A.some(e):A.none()}getOrNull(){returnthis.tag?this.value:null}getOrUndefined(){returnthis.value}each(e){this.tag&&e(this.value)}toArray(){returnthis.tag?[this.value]:[]}toString(){returnthis.tag?`some(${this.value})`:"none()"}}A.singletonNone=newA(!1);constM=Array.prototype.slice,D=Array.prototype.indexOf,B=Array.prototype.push,F=(e,t)=>D.call(e,t),I=(e,t)=>{consto=F(e,t);return-1===o?A.none():A.some(o)},R=(e,t)=>F(e,t)>-1,N=(e,t)=>{for(leto=0,n=e.length;o<n;o++)if(t(e[o],o))return!0;return!1},V=(e,t)=>{consto=[];for(letn=0;n<e;n++)o.push(t(n));returno},z=(e,t)=>{consto=[];for(letn=0;n<e.length;n+=t){constr=M.call(e,n,n+t);o.push(r)}returno},H=(e,t)=>{consto=e.length,n=newArray(o);for(letr=0;r<o;r++){consto=e[r];n[r]=t(o,r)}returnn},L=(e,t)=>{for(leto=0,n=e.length;o<n;o++)t(e[o],o)},P=(e,t)=>{consto=[],n=[];for(letr=0,s=e.length;r<s;r++){consts=e[r];(t(s,r)?o:n).push(s)}return{pass:o,fail:n}},U=(e,t)=>{consto=[];for(letn=0,r=e.length;n<r;n++){constr=e[n];t(r,n)&&o.push(r)}returno},W=(e,t,o)=>(((e,t)=>{for(leto=e.length-1;o>=0;o--)t(e[o],o)})(e,((e,n)=>{o=t(o,e,n)})),o),j=(e,t,o)=>(L(e,((e,n)=>{o=t(o,e,n)})),o),G=(e,t)=>((e,t,o)=>{for(letn=0,r=e.length;n<r;n++){constr=e[n];if(t(r,n))returnA.some(r);if(o(r,n))break}returnA.none()})(e,t,T),$=(e,t)=>{for(leto=0,n=e.length;o<n;o++)if(t(e[o],o))returnA.some(o);returnA.none()},q=e=>{constt=[];for(leto=0,n=e.length;o<n;++o){if(!l(e[o]))thrownewError("Arr.flatten item "+o+" was not an array, input: "+e);B.apply(t,e[o])}returnt},X=(e,t)=>q(H(e,t)),K=(e,t)=>{for(leto=0,n=e.length;o<n;++o)if(!0!==t(e[o],o))return!1;return!0},Y=e=>{constt=M.call(e,0);returnt.reverse(),t},J=(e,t)=>U(e,(e=>!R(t,e))),Z=(e,t)=>{consto={};for(letn=0,r=e.length;n<r;n++){constr=e[n];o[String(r)]=t(r,n)}returno},Q=e=>[e],ee=(e,t)=>{consto=M.call(e,0);returno.sort(t),o},te=(e,t)=>t>=0&&t<e.length?A.some(e[t]):A.none(),oe=e=>te(e,0),ne=e=>te(e,e.length-1),re=p(Array.from)?Array.from:e=>M.call(e),se=(e,t)=>{for(leto=0;o<e.length;o++){constn=t(e[o],o);if(n.isSome())returnn}returnA.none()},ae=Object.keys,ie=Object.hasOwnProperty,le=(e,t)=>{consto=ae(e);for(letn=0,r=o.length;n<r;n++){constr=o[n];t(e[r],r)}},ce=(e,t)=>de(e,((e,o)=>({k:o,v:t(e,o)}))),de=(e,t)=>{consto={};returnle(e,((e,n)=>{constr=t(e,n);o[r.k]=r.v})),o},ue=e=>(t,o)=>{e[o]=t},me=(e,t,o,n)=>{le(e,((e,r)=>{(t(e,r)?o:n)(e,r)}))},ge=(e,t)=>{consto={};returnme(e,t,ue(o),b),o},pe=(e,t)=>{consto=[];returnle(e,((e,n)=>