parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"Focm":[function(require,module,exports) {
var n={};!function(n){"use strict";var t=function(n){this.compose=n},r=new t(function(n){return function(t){return function(r){return n(t(r))}}});n.compose=function(n){return n.compose},n.Semigroupoid=t,n.semigroupoidFn=r}(n["Control.Semigroupoid"]=n["Control.Semigroupoid"]||{}),function(t){"use strict";var r=n["Control.Semigroupoid"],e=function(n,t){this.Semigroupoid0=n,this.identity=t},o=new e(function(){return r.semigroupoidFn},function(n){return n});t.Category=e,t.identity=function(n){return n.identity},t.categoryFn=o}(n["Control.Category"]=n["Control.Category"]||{}),function(t){"use strict";(n["Data.Eq"]=n["Data.Eq"]||{}).refEq=function(n){return function(t){return n===t}}}(),function(n){"use strict";n.boolConj=function(n){return function(t){return n&&t}},n.boolDisj=function(n){return function(t){return n||t}},n.boolNot=function(n){return!n}}(n["Data.HeytingAlgebra"]=n["Data.HeytingAlgebra"]||{}),function(t){"use strict";(n["Data.Unit"]=n["Data.Unit"]||{}).unit={}}(),function(t){"use strict";(n["Data.Show"]=n["Data.Show"]||{}).showIntImpl=function(n){return n.toString()}}(),function(t){"use strict";var r=n["Data.Show"],e=(n["Data.Symbol"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n){this.show=n}),o=new e(r.showIntImpl);t.Show=e,t.show=function(n){return n.show},t.showInt=o}(n["Data.Show"]=n["Data.Show"]||{}),function(t){"use strict";var r=n["Data.Unit"];n["Data.Show"];t.unit=r.unit}(n["Data.Unit"]=n["Data.Unit"]||{}),function(t){"use strict";var r=n["Data.HeytingAlgebra"],e=(n["Data.Symbol"],n["Data.Unit"],n["Record.Unsafe"],n["Type.Data.Row"],n["Type.Data.RowList"],function(n,t,r,e,o,a){this.conj=n,this.disj=t,this.ff=r,this.implies=e,this.not=o,this.tt=a}),o=function(n){return n.not},a=function(n){return n.disj},i=new e(r.boolConj,r.boolDisj,!1,function(n){return function(t){return a(i)(o(i)(n))(t)}},r.boolNot,!0);t.HeytingAlgebra=e,t.tt=function(n){return n.tt},t.ff=function(n){return n.ff},t.implies=function(n){return n.implies},t.conj=function(n){return n.conj},t.disj=a,t.not=o,t.heytingAlgebraBoolean=i}(n["Data.HeytingAlgebra"]=n["Data.HeytingAlgebra"]||{}),function(t){"use strict";var r=n["Data.Eq"],e=(n["Data.HeytingAlgebra"],n["Data.Symbol"],n["Data.Unit"],n["Data.Void"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n){this.eq=n}),o=new e(r.refEq);t.Eq=e,t.eq=function(n){return n.eq},t.eqInt=o}(n["Data.Eq"]=n["Data.Eq"]||{}),function(t){"use strict";(n["Data.Ord.Unsafe"]=n["Data.Ord.Unsafe"]||{}).unsafeCompareImpl=function(n){return function(t){return function(r){return function(e){return function(o){return e<o?n:e===o?t:r}}}}}}(),function(t){"use strict";n["Data.Semigroup"],n["Data.Symbol"],n["Data.Unit"],n["Data.Void"],n["Record.Unsafe"],n["Type.Data.RowList"];t.Semigroup=function(n){this.append=n},t.append=function(n){return n.append}}(n["Data.Semigroup"]=n["Data.Semigroup"]||{}),function(t){"use strict";var r=n["Data.Eq"],e=(n["Data.Semigroup"],n["Data.Show"],function(){function n(){}return n.value=new n,n}()),o=function(){function n(){}return n.value=new n,n}(),a=function(){function n(){}return n.value=new n,n}(),i=new r.Eq(function(n){return function(t){return n instanceof e&&t instanceof e||(n instanceof o&&t instanceof o||n instanceof a&&t instanceof a)}});t.LT=e,t.GT=o,t.EQ=a,t.eqOrdering=i}(n["Data.Ordering"]=n["Data.Ordering"]||{}),function(t){"use strict";var r=n["Data.Ord.Unsafe"],e=n["Data.Ordering"],o=r.unsafeCompareImpl(e.LT.value)(e.EQ.value)(e.GT.value);t.unsafeCompare=o}(n["Data.Ord.Unsafe"]=n["Data.Ord.Unsafe"]||{}),function(n){"use strict";n.intAdd=function(n){return function(t){return n+t|0}},n.intMul=function(n){return function(t){return n*t|0}}}(n["Data.Semiring"]=n["Data.Semiring"]||{}),function(t){"use strict";var r=n["Data.Semiring"],e=(n["Data.Symbol"],n["Data.Unit"],n["Record.Unsafe"],n["Type.Data.Row"],n["Type.Data.RowList"],function(n,t,r,e){this.add=n,this.mul=t,this.one=r,this.zero=e}),o=new e(r.intAdd,r.intMul,1,0);t.Semiring=e,t.add=function(n){return n.add},t.zero=function(n){return n.zero},t.mul=function(n){return n.mul},t.one=function(n){return n.one},t.semiringInt=o}(n["Data.Semiring"]=n["Data.Semiring"]||{}),function(t){"use strict";n["Data.Ord"];var r=n["Data.Eq"],e=n["Data.Ord.Unsafe"],o=(n["Data.Ordering"],n["Data.Ring"],n["Data.Semiring"],n["Data.Symbol"],n["Data.Unit"],n["Data.Void"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n,t){this.Eq0=n,this.compare=t}),a=new o(function(){return r.eqInt},e.unsafeCompare);t.Ord=o,t.compare=function(n){return n.compare},t.ordInt=a}(n["Data.Ord"]=n["Data.Ord"]||{}),function(t){"use strict";n["Control.Category"],n["Data.Boolean"],n["Data.Ord"],n["Data.Ring"];t.flip=function(n){return function(t){return function(r){return n(r)(t)}}},t.const=function(n){return function(t){return n}}}(n["Data.Function"]=n["Data.Function"]||{}),function(t){"use strict";n["Data.Functor"];var r=n["Control.Semigroupoid"],e=n["Data.Function"],o=n["Data.Unit"],a=function(n){this.map=n},i=function(n){return n.map},u=new a(r.compose(r.semigroupoidFn));t.Functor=a,t.map=i,t.void=function(n){return i(n)(e.const(o.unit))},t.functorFn=u}(n["Data.Functor"]=n["Data.Functor"]||{}),function(t){"use strict";n["Control.Apply"];var r=n["Control.Category"],e=n["Data.Function"],o=n["Data.Functor"],a=function(n){return n.apply};t.Apply=function(n,t){this.Functor0=n,this.apply=t},t.apply=a,t.applySecond=function(n){return function(t){return function(i){return a(n)(o.map(n.Functor0())(e.const(r.identity(r.categoryFn)))(t))(i)}}}}(n["Control.Apply"]=n["Control.Apply"]||{}),function(t){"use strict";var r=n["Control.Apply"],e=(n["Data.Functor"],n["Data.Unit"]),o=function(n){return n.pure};t.Applicative=function(n,t){this.Apply0=n,this.pure=t},t.pure=o,t.liftA1=function(n){return function(t){return function(e){return r.apply(n.Apply0())(o(n)(t))(e)}}},t.unless=function(n){return function(t){return function(r){if(!t)return r;if(t)return o(n)(e.unit);throw new Error("Failed pattern match at Control.Applicative (line 62, column 1 - line 62, column 65): "+[t.constructor.name,r.constructor.name])}}}}(n["Control.Applicative"]=n["Control.Applicative"]||{}),function(t){"use strict";n["Control.Bind"],n["Control.Applicative"],n["Control.Apply"],n["Control.Category"];var r=n["Data.Function"],e=(n["Data.Functor"],n["Data.Unit"],function(n){return n.bind}),o=function(n){return r.flip(e(n))};t.Bind=function(n,t){this.Apply0=n,this.bind=t},t.bind=e,t.bindFlipped=o,t.composeKleisliFlipped=function(n){return function(t){return function(r){return function(e){return o(n)(t)(r(e))}}}}}(n["Control.Bind"]=n["Control.Bind"]||{}),function(n){"use strict";n.map_=function(n){return function(t){return function(){return n(t())}}},n.pure_=function(n){return function(){return n}},n.bind_=function(n){return function(t){return function(){return t(n())()}}},n.for=function(n){return function(t){return function(r){return function(){for(var e=n;e<t;e++)r(e)()}}}},n.foreach=function(n){return function(t){return function(){for(var r=0,e=n.length;r<e;r++)t(n[r])()}}},n["modify'"]=function(n){return function(t){return function(){var r=n(t.value);return t.value=r.state,r.value}}}}(n["Control.Monad.ST.Internal"]=n["Control.Monad.ST.Internal"]||{}),function(t){"use strict";var r=n["Control.Applicative"],e=(n["Control.Apply"],n["Control.Bind"]);n["Data.Functor"],n["Data.Unit"];t.Monad=function(n,t){this.Applicative0=n,this.Bind1=t},t.ap=function(n){return function(t){return function(o){return e.bind(n.Bind1())(t)(function(t){return e.bind(n.Bind1())(o)(function(e){return r.pure(n.Applicative0())(t(e))})})}}}}(n["Control.Monad"]=n["Control.Monad"]||{}),function(t){"use strict";(n["Partial.Unsafe"]=n["Partial.Unsafe"]||{}).unsafePartial=function(n){return n()}}(),function(t){"use strict";(n["Partial"]=n["Partial"]||{}).crashWith=function(){return function(n){throw new Error(n)}}}(),function(t){"use strict";var r=n.Partial;t.crashWith=r.crashWith}(n.Partial=n.Partial||{}),function(t){"use strict";var r=n["Partial.Unsafe"],e=n.Partial;t.unsafeCrashWith=function(n){return r.unsafePartial(function(t){return e.crashWith(t)(n)})}}(n["Partial.Unsafe"]=n["Partial.Unsafe"]||{}),function(t){"use strict";var r=n["Control.Monad.ST.Internal"],e=n["Control.Applicative"],o=n["Control.Apply"],a=n["Control.Bind"],i=n["Control.Monad"],u=(n["Control.Monad.Rec.Class"],n["Data.Functor"]),c=(n["Data.Unit"],n["Partial.Unsafe"],n.Prelude,new u.Functor(r.map_)),f=new i.Monad(function(){return d},function(){return l}),l=new a.Bind(function(){return s},r.bind_),s=new o.Apply(function(){return c},i.ap(f)),d=new e.Applicative(function(){return s},r.pure_);t.modify=function(n){return r["modify'"](function(t){var r=n(t);return{state:r,value:r}})},t.functorST=c,t.applyST=s,t.applicativeST=d,t.bindST=l,t.monadST=f,t.for=r.for,t.foreach=r.foreach}(n["Control.Monad.ST.Internal"]=n["Control.Monad.ST.Internal"]||{}),function(n){"use strict";n.empty=function(){return[]},n.pushAll=function(n){return function(t){return function(){return t.push.apply(t,n)}}}}(n["Data.Array.ST"]=n["Data.Array.ST"]||{}),function(t){"use strict";n["Data.Boolean"],n["Data.Eq"],n["Data.EuclideanRing"],n["Data.Ord"],n["Data.Ordering"],n["Data.Semigroup"],n["Data.Symbol"],n["Data.Unit"],n["Record.Unsafe"],n["Type.Data.RowList"];t.Monoid=function(n,t){this.Semigroup0=n,this.mempty=t},t.mempty=function(n){return n.mempty}}(n["Data.Monoid"]=n["Data.Monoid"]||{}),function(t){"use strict";n["Control.Alt"],n["Control.Alternative"],n["Control.Applicative"],n["Control.Apply"],n["Control.Bind"];var r=n["Control.Category"],e=(n["Control.Extend"],n["Control.Monad"],n["Control.MonadZero"],n["Control.Plus"],n["Data.Bounded"],n["Data.Eq"],n["Data.Function"],n["Data.Functor"],n["Data.Functor.Invariant"],n["Data.Monoid"],n["Data.Ord"],n["Data.Ordering"],n["Data.Semigroup"],n["Data.Show"],n["Data.Unit"],n.Prelude,function(){function n(){}return n.value=new n,n}()),o=function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}(),a=function(n){return function(t){return function(r){if(r instanceof e)return n;if(r instanceof o)return t(r.value0);throw new Error("Failed pattern match at Data.Maybe (line 217, column 1 - line 217, column 51): "+[n.constructor.name,t.constructor.name,r.constructor.name])}}};t.Nothing=e,t.Just=o,t.maybe=a,t.fromMaybe=function(n){return a(n)(r.identity(r.categoryFn))}}(n["Data.Maybe"]=n["Data.Maybe"]||{}),function(t){"use strict";(n["Unsafe.Coerce"]=n["Unsafe.Coerce"]||{}).unsafeCoerce=function(n){return n}}(),function(t){"use strict";var r=n["Unsafe.Coerce"];t.unsafeCoerce=r.unsafeCoerce}(n["Unsafe.Coerce"]=n["Unsafe.Coerce"]||{}),function(t){"use strict";var r=n["Data.Array.ST"],e=n["Control.Applicative"],o=(n["Control.Bind"],n["Control.Monad.ST"],n["Control.Monad.ST.Internal"]);n["Control.Semigroupoid"],n["Data.Maybe"],n["Data.Ord"],n["Data.Ordering"],n["Data.Ring"],n.Prelude,n["Unsafe.Coerce"];t.push=function(n){return r.pushAll([n])},t.unsafeFreeze=function(n){return e.pure(o.applicativeST)(n)},t.empty=r.empty}(n["Data.Array.ST"]=n["Data.Array.ST"]||{}),function(n){"use strict";n.foldrArray=function(n){return function(t){return function(r){for(var e=t,o=r.length-1;o>=0;o--)e=n(r[o])(e);return e}}},n.foldlArray=function(n){return function(t){return function(r){for(var e=t,o=r.length,a=0;a<o;a++)e=n(e)(r[a]);return e}}}}(n["Data.Foldable"]=n["Data.Foldable"]||{}),function(t){"use strict";n["Control.Applicative"],n["Control.Apply"],n["Control.Bind"],n["Control.Monad"],n["Data.Bounded"],n["Data.Eq"],n["Data.Functor"];var r=n["Data.HeytingAlgebra"],e=n["Data.Monoid"],o=(n["Data.Ord"],n["Data.Semigroup"]),a=(n["Data.Semiring"],n["Data.Show"],n.Prelude,function(n){return new o.Semigroup(function(t){return function(e){return r.disj(n)(t)(e)}})});t.Disj=function(n){return n},t.semigroupDisj=a,t.monoidDisj=function(n){return new e.Monoid(function(){return a(n)},r.ff(n))}}(n["Data.Monoid.Disj"]=n["Data.Monoid.Disj"]||{}),function(t){"use strict";n["Control.Semigroupoid"],n["Data.Function"];var r=n["Data.Functor"],e=(n["Data.Monoid.Additive"],n["Data.Monoid.Conj"],n["Data.Monoid.Disj"]),o=(n["Data.Monoid.Dual"],n["Data.Monoid.Endo"],n["Data.Monoid.Multiplicative"],n["Data.Semigroup.First"],n["Data.Semigroup.Last"],n.Prelude,function(n,t){this.unwrap=n,this.wrap=t}),a=function(n){return n.wrap},i=function(n){return n.unwrap},u=new o(function(n){return n},e.Disj);t.unwrap=i,t.wrap=a,t.Newtype=o,t.alaF=function(n){return function(t){return function(e){return function(o){return function(u){return function(u){return function(c){return r.map(t)(i(o))(u(r.map(n)(a(e))(c)))}}}}}}},t.newtypeDisj=u}(n["Data.Newtype"]=n["Data.Newtype"]||{}),function(t){"use strict";var r=n["Data.Foldable"],e=(n["Control.Alt"],n["Control.Applicative"]),o=n["Control.Apply"],a=(n["Control.Bind"],n["Control.Category"],n["Control.Plus"],n["Control.Semigroupoid"],n["Data.Eq"]),i=(n["Data.Function"],n["Data.Functor"]),u=n["Data.HeytingAlgebra"],c=n["Data.Maybe"],f=(n["Data.Maybe.First"],n["Data.Maybe.Last"],n["Data.Monoid"]),l=(n["Data.Monoid.Additive"],n["Data.Monoid.Conj"],n["Data.Monoid.Disj"]),s=(n["Data.Monoid.Dual"],n["Data.Monoid.Endo"],n["Data.Monoid.Multiplicative"],n["Data.Newtype"]),d=n["Data.Ord"],p=n["Data.Ordering"],D=n["Data.Semigroup"],m=(n["Data.Semiring"],n["Data.Unit"]),h=(n.Prelude,function(n,t,r){this.foldMap=n,this.foldl=t,this.foldr=r}),w=function(n){return n.foldr},g=function(n){return n.foldl},v=function(n){return function(t){return g(n)(function(n){return function(r){if(n instanceof c.Nothing)return new c.Just(r);if(n instanceof c.Just)return new c.Just(a.eq(p.eqOrdering)(t(n.value0)(r))(p.GT.value)?n.value0:r);throw new Error("Failed pattern match at Data.Foldable (line 389, column 3 - line 389, column 27): "+[n.constructor.name,r.constructor.name])}})(c.Nothing.value)}},C=function(n){return function(t){return function(r){return w(n)(function(n){return function(e){return D.append(t.Semigroup0())(r(n))(e)}})(f.mempty(t))}}},y=new h(function(n){return C(y)(n)},r.foldlArray,r.foldrArray),E=function(n){return n.foldMap},A=function(n){return function(t){return s.alaF(i.functorFn)(i.functorFn)(s.newtypeDisj)(s.newtypeDisj)(l.Disj)(E(n)(l.monoidDisj(t)))}};t.Foldable=h,t.foldr=w,t.foldl=g,t.foldMap=E,t.foldMapDefaultR=C,t.traverse_=function(n){return function(t){return function(r){return w(t)(function(t){return o.applySecond(n.Apply0())(r(t))})(e.pure(n)(m.unit))}}},t.any=A,t.elem=function(n){return function(t){return function(r){return A(n)(u.heytingAlgebraBoolean)(a.eq(t)(r))}}},t.maximum=function(n){return function(t){return v(t)(d.compare(n))}},t.maximumBy=v,t.foldableArray=y}(n["Data.Foldable"]=n["Data.Foldable"]||{}),function(t){"use strict";n["Control.Alt"];var r=n["Control.Applicative"],e=n["Control.Apply"],o=n["Control.Bind"],a=(n["Control.Extend"],n["Control.Monad"],n["Control.Semigroupoid"],n["Data.Bifoldable"],n["Data.Bifunctor"],n["Data.Bitraversable"],n["Data.Bounded"],n["Data.Eq"],n["Data.Foldable"],n["Data.FoldableWithIndex"],n["Data.Function"],n["Data.Functor"]),i=(n["Data.Functor.Invariant"],n["Data.FunctorWithIndex"],n["Data.Maybe"]),u=(n["Data.Monoid"],n["Data.Ord"],n["Data.Ordering"],n["Data.Semigroup"],n["Data.Show"],n["Data.Traversable"],n["Data.TraversableWithIndex"],n["Data.Unit"],n.Prelude,function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}()),c=function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}(),f=new a.Functor(function(n){return function(t){if(t instanceof u)return new u(t.value0);if(t instanceof c)return new c(n(t.value0));throw new Error("Failed pattern match at Data.Either (line 38, column 8 - line 38, column 52): "+[t.constructor.name])}}),l=function(n){return function(t){return function(r){if(r instanceof u)return n(r.value0);if(r instanceof c)return t(r.value0);throw new Error("Failed pattern match at Data.Either (line 238, column 1 - line 238, column 64): "+[n.constructor.name,t.constructor.name,r.constructor.name])}}},s=new e.Apply(function(){return f},function(n){return function(t){if(n instanceof u)return new u(n.value0);if(n instanceof c)return a.map(f)(n.value0)(t);throw new Error("Failed pattern match at Data.Either (line 82, column 1 - line 82, column 41): "+[n.constructor.name,t.constructor.name])}}),d=new o.Bind(function(){return s},l(function(n){return function(t){return new u(n)}})(function(n){return function(t){return t(n)}})),p=new r.Applicative(function(){return s},c.create);t.Left=u,t.Right=c,t.either=l,t.note=function(n){return i.maybe(new u(n))(c.create)},t.functorEither=f,t.applyEither=s,t.applicativeEither=p,t.bindEither=d}(n["Data.Either"]=n["Data.Either"]||{}),function(n){"use strict";n.fromStringAsImpl=function(n){return function(t){return function(r){var e;e=r<11?"[0-"+(r-1).toString()+"]":11===r?"[0-9a]":"[0-9a-"+String.fromCharCode(86+r)+"]";var o=new RegExp("^[\\+\\-]?"+e+"+$","i");return function(e){if(o.test(e)){var a=parseInt(e,r);return(0|a)===a?n(a):t}return t}}}},n.pow=function(n){return function(t){return 0|Math.pow(n,t)}}}(n["Data.Int"]=n["Data.Int"]||{}),function(t){"use strict";var r=n["Data.Int"],e=(n["Control.Category"],n["Control.Semigroupoid"],n["Data.Boolean"],n["Data.Bounded"],n["Data.CommutativeRing"],n["Data.DivisionRing"],n["Data.Eq"],n["Data.EuclideanRing"],n["Data.HeytingAlgebra"],n["Data.Int.Bits"],n["Data.Maybe"]),o=(n["Data.Ord"],n["Data.Ordering"],n["Data.Ring"],n["Data.Semiring"],n["Data.Show"],n.Global,n.Math,n.Prelude,r.fromStringAsImpl(e.Just.create)(e.Nothing.value)),a=o(10);t.fromString=a,t.fromStringAs=o,t.pow=r.pow}(n["Data.Int"]=n["Data.Int"]||{}),function(t){"use strict";(n["Data.String.Common"]=n["Data.String.Common"]||{}).trim=function(n){return n.trim()}}(),function(t){"use strict";var r=n["Data.String.Common"];n["Data.Eq"],n["Data.Ordering"],n["Data.String.Pattern"],n.Prelude;t.trim=r.trim}(n["Data.String.Common"]=n["Data.String.Common"]||{}),function(n){"use strict";n.pureE=function(n){return function(){return n}},n.bindE=function(n){return function(t){return function(){return t(n())()}}}}(n.Effect=n.Effect||{}),function(t){"use strict";var r=n.Effect,e=n["Control.Applicative"],o=n["Control.Apply"],a=n["Control.Bind"],i=n["Control.Monad"],u=n["Data.Functor"],c=(n["Data.Monoid"],n["Data.Semigroup"],n.Prelude,new i.Monad(function(){return s},function(){return f})),f=new a.Bind(function(){return l},r.bindE),l=new o.Apply(function(){return d},i.ap(c)),s=new e.Applicative(function(){return l},r.pureE),d=new u.Functor(e.liftA1(s));t.functorEffect=d,t.applyEffect=l,t.applicativeEffect=s,t.bindEffect=f,t.monadEffect=c}(n.Effect=n.Effect||{}),function(n){"use strict";var t=function(){var n={},t="Pure",r="Throw",e="Catch",o="Sync",a="Async",i="Bind",u="Bracket",c="Fork",f="Sequential",l="Map",s="Apply",d="Alt",p="Cons",D="Resume",m="Release",h="Finalizer",w="Finalized",g="Forked";function v(n,t,r,e){this.tag=n,this._1=t,this._2=r,this._3=e}function C(n){var t=function(t,r,e){return new v(n,t,r,e)};return t.tag=n,t}function y(n){return new v(t,void 0)}function E(n){try{n()}catch(t){setTimeout(function(){throw t},0)}}function A(n,t,r){try{return t(r())}catch(e){return n(e)}}function S(n,t,r){try{return t(r)()}catch(e){return r(n(e))(),y}}var b=function(){var n=1024,t=0,r=0,e=new Array(n),o=!1;function a(){var a;for(o=!0;0!==t;)t--,a=e[r],e[r]=void 0,r=(r+1)%n,a();o=!1}return{isDraining:function(){return o},enqueue:function(i){var u;t===n&&(u=o,a(),o=u),e[(r+t)%n]=i,t++,o||a()}}}();var _=0,F=1,M=2,P=3,T=4,B=5,U=6;function R(n,l,s){var d=0,g=_,C=s,y=null,I=null,q=null,N=null,L=null,O=0,j=0,x=null,H=!0;function W(s){for(var j,z,J;;)switch(j=null,z=null,J=null,g){case M:g=F,C=q(C),null===N?q=null:(q=N._1,N=N._2);break;case P:n.isLeft(C)?(g=B,y=C,C=null):null===q?g=B:(g=M,C=n.fromRight(C));break;case F:switch(C.tag){case i:q&&(N=new v(p,q,N)),q=C._2,g=F,C=C._1;break;case t:null===q?(g=B,C=n.right(C._1)):(g=M,C=C._1);break;case o:g=P,C=A(n.left,n.right,C._1);break;case a:return g=T,void(C=S(n.left,C._1,function(n){return function(){d===s&&(d++,b.enqueue(function(){d===s+1&&(g=P,C=n,W(d))}))}}));case r:g=B,y=n.left(C._1),C=null;break;case e:L=new v(p,C,null===q?L:new v(p,new v(D,q,N),L,I),I),q=null,N=null,g=F,C=C._1;break;case u:O++,L=new v(p,C,null===q?L:new v(p,new v(D,q,N),L,I),I),q=null,N=null,g=F,C=C._1;break;case c:g=P,j=R(n,l,C._2),l&&l.register(j),C._1&&j.run(),C=n.right(j);break;case f:g=F,C=k(n,l,C._1)}break;case B:if(q=null,N=null,null===L)g=U,C=I||y||C;else switch(j=L._3,J=L._1,L=L._2,J.tag){case e:I&&I!==j?g=B:y&&(g=F,C=J._2(n.fromLeft(y)),y=null);break;case D:I&&I!==j||y?g=B:(q=J._1,N=J._2,g=M,C=n.fromRight(C));break;case u:O--,null===y&&(z=n.fromRight(C),L=new v(p,new v(m,J._2,z),L,j),(I===j||O>0)&&(g=F,C=J._3(z)));break;case m:O++,L=new v(p,new v(w,C,y),L,I),g=F,C=I&&I!==j?J._1.killed(n.fromLeft(I))(J._2):y?J._1.failed(n.fromLeft(y))(J._2):J._1.completed(n.fromRight(C))(J._2),y=null;break;case h:O++,L=new v(p,new v(w,C,y),L,I),g=F,C=J._1;break;case w:O--,g=B,C=J._1,y=J._2}break;case U:for(var G in x)x.hasOwnProperty(G)&&(H=H&&x[G].rethrow,E(x[G].handler(C)));return x=null,void(I&&y?setTimeout(function(){throw n.fromLeft(y)},0):n.isLeft(C)&&H&&setTimeout(function(){if(H)throw n.fromLeft(C)},0));case _:g=F;break;case T:return}}function z(n){return function(){if(g===U)return H=H&&n.rethrow,n.handler(C)(),function(){};var t=j++;return(x=x||{})[t]=n,function(){null!==x&&delete x[t]}}}return{kill:function(t,r){return function(){if(g===U)return r(n.right(void 0))(),function(){};var e=z({rethrow:!1,handler:function(){return r(n.right(void 0))}})();switch(g){case _:I=n.left(t),g=U,C=I,W(d);break;case T:null===I&&(I=n.left(t)),0===O&&(g===T&&(L=new v(p,new v(h,C(t)),L,I)),g=B,C=null,y=null,W(++d));break;default:null===I&&(I=n.left(t)),0===O&&(g=B,C=null,y=null)}return e}},join:function(n){return function(){var t=z({rethrow:!1,handler:n})();return g===_&&W(d),t}},onComplete:z,isSuspended:function(){return g===_},run:function(){g===_&&(b.isDraining()?W(d):b.enqueue(function(){W(d)}))}}}function I(t,r,e,o){var i=0,u={},c=0,f={},D=new Error("[ParAff] Early exit"),m=null,h=n;function w(r,e,o){var a,i,c=e,f=null,D=null,m=0,h={};n:for(;;)switch(a=null,c.tag){case g:if(c._3===n&&(a=u[c._1],h[m++]=a.kill(r,function(n){return function(){0===--m&&o(n)()}})),null===f)break n;c=f._2,null===D?f=null:(f=D._1,D=D._2);break;case l:c=c._2;break;case s:case d:f&&(D=new v(p,f,D)),f=c,c=c._1}if(0===m)o(t.right(void 0))();else for(i=0,a=m;i<a;i++)h[i]=h[i]();return h}function C(r){return function(e){return function(){delete u[r._1],r._3=e,function r(e,a,i){var u,p,h,g,v,C;for(t.isLeft(e)?(u=e,p=null):(p=e,u=null);;){if(h=null,g=null,v=null,C=null,null!==m)return;if(null===a)return void o(u||p)();if(a._3!==n)return;switch(a.tag){case l:null===u?(a._3=t.right(a._1(t.fromRight(p))),p=a._3):a._3=u;break;case s:if(h=a._1._3,g=a._2._3,u){if(a._3=u,v=!0,C=c++,f[C]=w(D,u===h?a._2:a._1,function(){return function(){delete f[C],v?v=!1:null===i?r(u,null,null):r(u,i._1,i._2)}}),v)return void(v=!1)}else{if(h===n||g===n)return;p=t.right(t.fromRight(h)(t.fromRight(g))),a._3=p}break;case d:if(h=a._1._3,g=a._2._3,h===n&&t.isLeft(g)||g===n&&t.isLeft(h))return;if(h!==n&&t.isLeft(h)&&g!==n&&t.isLeft(g))u=p===h?g:h,p=null,a._3=u;else if(a._3=p,v=!0,C=c++,f[C]=w(D,p===h?a._2:a._1,function(){return function(){delete f[C],v?v=!1:null===i?r(p,null,null):r(p,i._1,i._2)}}),v)return void(v=!1)}null===i?a=null:(a=i._1,i=i._2)}}(e,r._2._1,r._2._2)}}}return function(){var o,a,c=F,f=e,D=null,m=null;n:for(;;)switch(o=null,a=null,c){case F:switch(f.tag){case l:D&&(m=new v(p,D,m)),D=new v(l,f._1,n,n),f=f._2;break;case s:D&&(m=new v(p,D,m)),D=new v(s,n,f._2,n),f=f._1;break;case d:D&&(m=new v(p,D,m)),D=new v(d,n,f._2,n),f=f._1;break;default:a=i++,c=B,o=f,f=new v(g,a,new v(p,D,m),n),(o=R(t,r,o)).onComplete({rethrow:!1,handler:C(f)})(),u[a]=o,r&&r.register(o)}break;case B:if(null===D)break n;D._1===n?(D._1=f,c=F,f=D._2,D._2=n):(D._2=f,f=D,null===m?D=null:(D=m._1,m=m._2))}for(h=f,a=0;a<i;a++)u[a].run()}(),function(n){return new v(a,function(r){return function(){return function(n,r){var e;for(var o in m=t.left(n),f)if(f.hasOwnProperty(o))for(o in e=f[o])e.hasOwnProperty(o)&&e[o]();f=null;var i=w(n,h,r);return function(n){return new v(a,function(n){return function(){for(var n in i)i.hasOwnProperty(n)&&i[n]();return y}})}}(n,r)}})}}function k(n,t,r){return new v(a,function(e){return function(){return I(n,t,r,e)}})}return v.EMPTY=n,v.Pure=C(t),v.Throw=C(r),v.Catch=C(e),v.Sync=C(o),v.Async=C(a),v.Bind=C(i),v.Bracket=C(u),v.Fork=C(c),v.Seq=C(f),v.ParMap=C(l),v.ParApply=C(s),v.ParAlt=C(d),v.Fiber=R,v.Supervisor=function(n){var t={},r=0,e=0;return{register:function(n){var o=r++;n.onComplete({rethrow:!0,handler:function(n){return function(){e--,delete t[o]}}}),t[o]=n,e++},isEmpty:function(){return 0===e},killAll:function(a,i){return function(){var u=0,c={};function f(r){c[r]=t[r].kill(a,function(t){return function(){delete c[r],u--,n.isLeft(t)&&n.fromLeft(t)&&setTimeout(function(){throw n.fromLeft(t)},0),0===u&&i()}})()}for(var l in t)t.hasOwnProperty(l)&&(u++,f(l));return t={},r=0,e=0,function(n){return new v(o,function(){for(var n in c)c.hasOwnProperty(n)&&c[n]()})}}}}},v.Scheduler=b,v.nonCanceler=y,v}();n._pure=t.Pure,n._map=function(n){return function(r){return r.tag===t.Pure.tag?t.Pure(n(r._1)):t.Bind(r,function(r){return t.Pure(n(r))})}},n._bind=function(n){return function(r){return t.Bind(n,r)}},n._liftEffect=t.Sync,n._parAffMap=function(n){return function(r){return t.ParMap(n,r)}},n._parAffApply=function(n){return function(r){return t.ParApply(n,r)}},n.makeAff=t.Async,n._makeFiber=function(n,r){return function(){return t.Fiber(n,null,r)}},n._sequential=t.Seq}(n["Effect.Aff"]=n["Effect.Aff"]||{}),function(t){"use strict";n["Control.Category"],n["Control.Monad"],n.Effect;t.liftEffect=function(n){return n.liftEffect},t.MonadEffect=function(n,t){this.Monad0=n,this.liftEffect=t}}(n["Effect.Class"]=n["Effect.Class"]||{}),function(n){"use strict";n.new=function(n){return function(){return{value:n}}},n.read=function(n){return function(){return n.value}},n.write=function(n){return function(t){return function(){return t.value=n,{}}}}}(n["Effect.Ref"]=n["Effect.Ref"]||{}),function(t){"use strict";var r=n["Effect.Ref"];n["Data.Function"],n["Data.Functor"],n.Effect,n.Prelude;t.new=r.new,t.read=r.read,t.write=r.write}(n["Effect.Ref"]=n["Effect.Ref"]||{}),function(t){"use strict";n["Control.Alt"],n["Control.Alternative"],n["Control.Applicative"],n["Control.Apply"],n["Control.Bind"],n["Control.Monad.Cont.Trans"],n["Control.Monad.Except.Trans"],n["Control.Monad.Maybe.Trans"],n["Control.Monad.Reader.Trans"],n["Control.Monad.Writer.Trans"],n["Control.Plus"],n["Control.Semigroupoid"],n["Data.Either"],n["Data.Function"],n["Data.Functor"],n["Data.Functor.Compose"],n["Data.Maybe"],n["Data.Newtype"],n["Data.Unit"],n["Effect.Class"],n["Effect.Ref"],n.Prelude;t.parallel=function(n){return n.parallel},t.sequential=function(n){return n.sequential},t.Parallel=function(n,t,r,e){this.Applicative1=n,this.Monad0=t,this.parallel=r,this.sequential=e}}(n["Control.Parallel.Class"]=n["Control.Parallel.Class"]||{}),function(t){"use strict";n["Control.Alternative"],n["Control.Apply"];var r=n["Control.Category"],e=n["Control.Parallel.Class"],o=(n["Control.Semigroupoid"],n["Data.Foldable"]),a=(n["Data.Traversable"],n.Prelude,function(n){return function(t){return function(r){return function(a){return e.sequential(n)(o.traverse_(n.Applicative1())(t)(function(t){return e.parallel(n)(r(t))})(a))}}}});t.parTraverse_=a,t.parSequence_=function(n){return function(t){return a(n)(t)(r.identity(r.categoryFn))}}}(n["Control.Parallel"]=n["Control.Parallel"]||{}),function(n){"use strict";n.error=function(n){return new Error(n)},n.throwException=function(n){return function(){throw n}}}(n["Effect.Exception"]=n["Effect.Exception"]||{}),function(t){"use strict";var r=n["Effect.Exception"];n["Control.Applicative"],n["Control.Semigroupoid"],n["Data.Either"],n["Data.Functor"],n["Data.Maybe"],n["Data.Show"],n.Effect,n.Prelude;t.throw=function(n){return r.throwException(r.error(n))}}(n["Effect.Exception"]=n["Effect.Exception"]||{}),function(t){"use strict";var r=n["Effect.Aff"],e=(n["Control.Alt"],n["Control.Alternative"],n["Control.Applicative"]),o=n["Control.Apply"],a=n["Control.Bind"],i=(n["Control.Lazy"],n["Control.Monad"]),u=(n["Control.Monad.Error.Class"],n["Control.Monad.Rec.Class"],n["Control.Parallel"]),c=n["Control.Parallel.Class"],f=(n["Control.Plus"],n["Control.Semigroupoid"],n["Data.Either"]),l=n["Data.Foldable"],s=n["Data.Function"],d=(n["Data.Function.Uncurried"],n["Data.Functor"]),p=n["Data.Monoid"],D=(n["Data.Newtype"],n["Data.Semigroup"]),m=(n["Data.Time.Duration"],n["Data.Unit"]),h=n.Effect,w=n["Effect.Class"],g=(n["Effect.Exception"],n["Effect.Unsafe"],n["Partial.Unsafe"]),v=(n.Prelude,n["Unsafe.Coerce"]),C=new d.Functor(r._parAffMap),y=new d.Functor(r._map),E={isLeft:function(n){if(n instanceof f.Left)return!0;if(n instanceof f.Right)return!1;throw new Error("Failed pattern match at Effect.Aff (line 390, column 12 - line 392, column 20): "+[n.constructor.name])},fromLeft:function(n){if(n instanceof f.Left)return n.value0;if(n instanceof f.Right)return g.unsafeCrashWith("unsafeFromLeft: Right");throw new Error("Failed pattern match at Effect.Aff (line 395, column 20 - line 399, column 3): "+[n.constructor.name])},fromRight:function(n){if(n instanceof f.Right)return n.value0;if(n instanceof f.Left)return g.unsafeCrashWith("unsafeFromRight: Left");throw new Error("Failed pattern match at Effect.Aff (line 400, column 21 - line 402, column 31): "+[n.constructor.name])},left:f.Left.create,right:f.Right.create},A=function(n){return function(){var t=function(n){return r._makeFiber(E,n)}(n)();return t.run(),t}},S=new o.Apply(function(){return C},r._parAffApply),b=new i.Monad(function(){return M},function(){return _}),_=new a.Bind(function(){return F},r._bind),F=new o.Apply(function(){return y},i.ap(b)),M=new e.Applicative(function(){return F},r._pure),P=new w.MonadEffect(function(){return b},r._liftEffect),T=new c.Parallel(function(){return B},function(){return b},v.unsafeCoerce,r._sequential),B=new e.Applicative(function(){return S},function(n){return c.parallel(T)(e.pure(M)(n))}),U=new D.Semigroup(function(n){return function(t){return function(r){return u.parSequence_(T)(l.foldableArray)([n(r),t(r)])}}}),R=s.const(e.pure(M)(m.unit)),I=new p.Monoid(function(){return U},R);t.launchAff=A,t.launchAff_=function(n){return d.void(h.functorEffect)(A(n))},t.nonCanceler=R,t.functorAff=y,t.applyAff=F,t.applicativeAff=M,t.bindAff=_,t.monadAff=b,t.monadEffectAff=P,t.functorParAff=C,t.applyParAff=S,t.applicativeParAff=B,t.parallelAff=T,t.semigroupCanceler=U,t.monoidCanceler=I,t.makeAff=r.makeAff}(n["Effect.Aff"]=n["Effect.Aff"]||{}),function(t){"use strict";n["Node.Encoding"];var r=n["Data.Show"],e=(n.Prelude,function(){function n(){}return n.value=new n,n}()),o=function(){function n(){}return n.value=new n,n}(),a=function(){function n(){}return n.value=new n,n}(),i=function(){function n(){}return n.value=new n,n}(),u=function(){function n(){}return n.value=new n,n}(),c=function(){function n(){}return n.value=new n,n}(),f=function(){function n(){}return n.value=new n,n}(),l=function(){function n(){}return n.value=new n,n}(),s=new r.Show(function(n){if(n instanceof e)return"ASCII";if(n instanceof o)return"UTF8";if(n instanceof a)return"UTF16LE";if(n instanceof i)return"UCS2";if(n instanceof u)return"Base64";if(n instanceof c)return"Latin1";if(n instanceof f)return"Binary";if(n instanceof l)return"Hex";throw new Error("Failed pattern match at Node.Encoding (line 19, column 1 - line 19, column 39): "+[n.constructor.name])});t.ASCII=e,t.UTF8=o,t.UTF16LE=a,t.UCS2=i,t.Base64=u,t.Latin1=c,t.Binary=f,t.Hex=l,t.encodingToNode=function(n){if(n instanceof e)return"ascii";if(n instanceof o)return"utf8";if(n instanceof a)return"utf16le";if(n instanceof i)return"ucs2";if(n instanceof u)return"base64";if(n instanceof c)return"latin1";if(n instanceof f)return"binary";if(n instanceof l)return"hex";throw new Error("Failed pattern match at Node.Encoding (line 31, column 1 - line 31, column 37): "+[n.constructor.name])},t.showEncoding=s}(n["Node.Encoding"]=n["Node.Encoding"]||{}),function(t){"use strict";(n["Node.Process"]=n["Node.Process"]||{}).process=process}(),function(n){"use strict";n.readChunkImpl=function(n){return function(t){return function(r){if(r instanceof Buffer)return t(r);if("string"==typeof r)return n(r);throw new Error("Node.Stream.readChunkImpl: Unrecognised chunk type; expected String or Buffer, got: "+r)}}},n.onDataEitherImpl=function(n){return function(t){return function(r){return function(){t.on("data",function(t){r(n(t))()})}}}},n.onEnd=function(n){return function(t){return function(){n.on("end",t)}}},n.write=function(n){return function(t){return function(r){return function(){return n.write(t,null,r)}}}},n.writeStringImpl=function(n){return function(t){return function(r){return function(e){return function(){return n.write(r,t,e)}}}}}}(n["Node.Stream"]=n["Node.Stream"]||{}),function(t){"use strict";(n["Node.Buffer"]=n["Node.Buffer"]||{}).toStringImpl=function(n){return function(t){return function(){return t.toString(n)}}}}(),function(t){"use strict";var r=n["Node.Buffer"],e=(n["Control.Semigroupoid"],n["Data.ArrayBuffer.Types"],n["Data.Maybe"],n["Data.Show"],n.Effect,n["Node.Encoding"]);n.Prelude;t.toString=function(n){return r.toStringImpl(e.encodingToNode(n))}}(n["Node.Buffer"]=n["Node.Buffer"]||{}),function(t){"use strict";var r=n["Node.Stream"],e=n["Control.Applicative"],o=n["Control.Bind"],a=n["Data.Either"],i=(n["Data.Functor"],n["Data.Maybe"],n["Data.Show"]),u=n.Effect,c=n["Effect.Exception"],f=n["Node.Buffer"],l=n["Node.Encoding"],s=(n.Prelude,r.readChunkImpl(a.Left.create)(a.Right.create)),d=function(n){return function(t){return r.onDataEitherImpl(s)(n)(t)}},p=function(n){return function(t){return d(n)(o.composeKleisliFlipped(u.bindEffect)(t)(function(n){if(n instanceof a.Left)return c.throw("Stream encoding should not be set");if(n instanceof a.Right)return e.pure(u.applicativeEffect)(n.value0);throw new Error("Failed pattern match at Node.Stream (line 94, column 5 - line 98, column 17): "+[n.constructor.name])}))}};t.onData=p,t.onDataString=function(n){return function(t){return function(r){return p(n)(o.composeKleisliFlipped(u.bindEffect)(r)(f.toString(t)))}}},t.onDataEither=d,t.writeString=function(n){return function(t){return r.writeStringImpl(n)(i.show(l.showEncoding)(t))}},t.onEnd=r.onEnd}(n["Node.Stream"]=n["Node.Stream"]||{}),function(t){"use strict";var r=n["Node.Process"],e=(n["Data.Functor"],n["Data.Maybe"],n["Data.Posix"],n["Data.Posix.Signal"],n.Effect,n["Foreign.Object"],n["Node.Platform"],n["Node.Stream"],n.Prelude,n["Unsafe.Coerce"],r.process.stdout),o=r.process.stdin;t.stdin=o,t.stdout=e}(n["Node.Process"]=n["Node.Process"]||{}),function(t){"use strict";var r=n["Control.Applicative"],e=n["Control.Bind"],o=n["Control.Category"],a=(n["Control.Monad.ST"],n["Control.Monad.ST.Internal"]),i=(n["Data.Array"],n["Data.Array.ST"]),u=n["Data.Either"],c=n["Data.Eq"],f=n["Data.Foldable"],l=n["Data.Functor"],s=n["Data.Int"],d=n["Data.Maybe"],p=n["Data.Monoid"],D=n["Data.Ord"],m=(n["Data.Semigroup"],n["Data.Semiring"]),h=n["Data.Show"],w=(n["Data.String"],n["Data.String.Common"]),g=n["Data.Unit"],v=n.Effect,C=n["Effect.Aff"],y=n["Effect.Class"],E=n["Effect.Ref"],A=n["Node.Encoding"],S=n["Node.Process"],b=n["Node.Stream"],_=n["Partial.Unsafe"],F=(n.Prelude,C.makeAff(function(n){return function(){var t=E.new("")();return b.onDataString(S.stdin)(A.UTF8.value)(function(n){return function(){var r=E.read(t)();return E.write(r+n)(t)()}})(),b.onEnd(S.stdin)(function(){var e=E.read(t)();return n(r.pure(u.applicativeEither)(e))()})(),p.mempty(C.monoidCanceler)}})),M=function(n){var t,e=(t=i.empty(),a.foreach(function(n){return t=i.empty(),a.for(2)(n+1|0)(function(n){return function(){var e=i.unsafeFreeze(t)();return r.unless(a.applicativeST)(f.elem(f.foldableArray)(c.eqInt)(n)(e))(l.void(a.functorST)(i.push(n)(t)))()}})(),i.unsafeFreeze(t)();var t}(n))(function(r){return function(){for(var e,o={value:2};e=void 0,(e=s.pow(r)(o.value))<=n&&(l.void(a.functorST)(i.push(e)(t))(),l.void(a.functorST)(a.modify(m.add(m.semiringInt)(1))(o))(),1);)g.unit;return{}}})(),i.unsafeFreeze(t)());return d.fromMaybe(1)(f.maximum(D.ordInt)(f.foldableArray)(e))},P=function(n){return u.either(function(n){return _.unsafeCrashWith(n)})(o.identity(o.categoryFn))(e.bind(u.bindEither)(u.note("n")(s.fromString(w.trim(n))))(function(n){return r.pure(u.applicativeEither)(h.show(h.showInt)(M(n))+"\n")}))},T=C.launchAff_(e.bind(C.bindAff)(F)(function(n){return e.bind(C.bindAff)(r.pure(C.applicativeAff)(P(n)))(function(n){return y.liftEffect(C.monadEffectAff)((t=n,l.void(v.functorEffect)(b.writeString(S.stdout)(A.UTF8.value)(t)(r.pure(v.applicativeEffect)(g.unit)))));var t})}));t.main=T,t.solve=P}(n.ABC097B=n.ABC097B||{}),n.ABC097B.main();
},{}]},{},["Focm"], null)

Measured memory_bytes: 22308