1
0
mirror of https://github.com/osmarks/website synced 2024-12-24 00:50:31 +00:00
website/experiments/rpncalc-v3/app.js
2020-03-08 17:13:14 +00:00

1 line
121 KiB
JavaScript

!function(r){function t(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return r[e].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=r,t.c=n,t.d=function(r,n,e){t.o(r,n)||Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:e})},t.n=function(r){var n=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(n,"a",n),n},t.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},t.p="",t(t.s=0)}([function(r,t,n){r.exports=n(1)},function(r,t,n){var e=n(2),o=document.getElementById("app");e.Main.embed(o)},function(r,t){(function(){"use strict";function t(r){function t(t){return function(n){return r(t,n)}}return t.arity=2,t.func=r,t}function n(r){function t(t){return function(n){return function(e){return r(t,n,e)}}}return t.arity=3,t.func=r,t}function e(r){function t(t){return function(n){return function(e){return function(o){return r(t,n,e,o)}}}}return t.arity=4,t.func=r,t}function o(r){function t(t){return function(n){return function(e){return function(o){return function(u){return r(t,n,e,o,u)}}}}}return t.arity=5,t.func=r,t}function u(r){function t(t){return function(n){return function(e){return function(o){return function(u){return function(c){return r(t,n,e,o,u,c)}}}}}}return t.arity=6,t.func=r,t}function c(r){function t(t){return function(n){return function(e){return function(o){return function(u){return function(c){return function(i){return r(t,n,e,o,u,c,i)}}}}}}}return t.arity=7,t.func=r,t}function i(r){function t(t){return function(n){return function(e){return function(o){return function(u){return function(c){return function(i){return function(_){return r(t,n,e,o,u,c,i,_)}}}}}}}}return t.arity=8,t.func=r,t}function _(r){function t(t){return function(n){return function(e){return function(o){return function(u){return function(c){return function(i){return function(_){return function(a){return r(t,n,e,o,u,c,i,_,a)}}}}}}}}}return t.arity=9,t.func=r,t}function a(r,t,n){return 2===r.arity?r.func(t,n):r(t)(n)}function f(r,t,n,e){return 3===r.arity?r.func(t,n,e):r(t)(n)(e)}function l(r,t,n,e,o){return 4===r.arity?r.func(t,n,e,o):r(t)(n)(e)(o)}function s(r,t,n,e,o,u){return 5===r.arity?r.func(t,n,e,o,u):r(t)(n)(e)(o)(u)}function d(r,t,n,e,o,u,c){return 6===r.arity?r.func(t,n,e,o,u,c):r(t)(n)(e)(o)(u)(c)}var v=function(){function r(r){var t,n=!1;return function(e){return n||(t=r(e),n=!0),t}}return{memoize:r}}(),p=function(){function r(r,t){return r/t|0}function e(r,t){return r%t}function o(r,t){if(0===t)throw new Error("Cannot perform mod 0. Division by zero error.");var n=r%t,e=0===r?0:t>0?r>=0?n:n+t:-o(-r,-t);return e===t?0:e}function u(r,t){return Math.log(t)/Math.log(r)}function c(r){return-r}function i(r){return r<0?-r:r}function _(r,t){return h.cmp(r,t)<0?r:t}function a(r,t){return h.cmp(r,t)>0?r:t}function f(r,t,n){return h.cmp(n,r)<0?r:h.cmp(n,t)>0?t:n}function l(r,t){return{ctor:k[h.cmp(r,t)+1]}}function s(r,t){return r!==t}function d(r){return!r}function v(r){return r===1/0||r===-1/0}function p(r){return 0|r}function g(r){return r*Math.PI/180}function m(r){return 2*Math.PI*r}function b(r){var t=r._0,n=r._1;return h.Tuple2(t*Math.cos(n),t*Math.sin(n))}function y(r){var t=r._0,n=r._1;return h.Tuple2(Math.sqrt(t*t+n*n),Math.atan2(n,t))}var k=["LT","EQ","GT"];return{div:t(r),rem:t(e),mod:t(o),pi:Math.PI,e:Math.E,cos:Math.cos,sin:Math.sin,tan:Math.tan,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:t(Math.atan2),degrees:g,turns:m,fromPolar:b,toPolar:y,sqrt:Math.sqrt,logBase:t(u),negate:c,abs:i,min:t(_),max:t(a),clamp:n(f),compare:t(l),xor:t(s),not:d,truncate:p,ceiling:Math.ceil,floor:Math.floor,round:Math.round,toFloat:function(r){return r},isNaN:isNaN,isInfinite:v}}(),h=function(){function r(r,t){for(var e,o=[],u=n(r,t,0,o);u&&(e=o.pop());)u=n(e.x,e.y,0,o);return u}function n(r,t,e,o){if(e>100)return o.push({x:r,y:t}),!0;if(r===t)return!0;if("object"!=typeof r){if("function"==typeof r)throw new Error('Trying to use `(==)` on functions. There is no way to know if functions are "the same" in the Elm sense. Read more about this at http://package.elm-lang.org/packages/elm-lang/core/latest/Basics#== which describes why it is this way and what the better version will look like.');return!1}if(null===r||null===t)return!1;if(r instanceof Date)return r.getTime()===t.getTime();if(!("ctor"in r)){for(var u in r)if(!n(r[u],t[u],e+1,o))return!1;return!0}if("RBNode_elm_builtin"!==r.ctor&&"RBEmpty_elm_builtin"!==r.ctor||(r=sn(r),t=sn(t)),"Set_elm_builtin"===r.ctor&&(r=ne(r),t=ne(t)),"::"===r.ctor){for(var c=r,i=t;"::"===c.ctor&&"::"===i.ctor;){if(!n(c._0,i._0,e+1,o))return!1;c=c._1,i=i._1}return c.ctor===i.ctor}if("_Array"===r.ctor){var _=We.toJSArray(r),a=We.toJSArray(t);if(_.length!==a.length)return!1;for(var f=0;f<_.length;f++)if(!n(_[f],a[f],e+1,o))return!1;return!0}if(!n(r.ctor,t.ctor,e+1,o))return!1;for(var u in r)if(!n(r[u],t[u],e+1,o))return!1;return!0}function e(r,t){if("object"!=typeof r)return r===t?h:r<t?p:g;if(r instanceof String){var n=r.valueOf(),o=t.valueOf();return n===o?h:n<o?p:g}if("::"===r.ctor||"[]"===r.ctor){for(;"::"===r.ctor&&"::"===t.ctor;){var u=e(r._0,t._0);if(u!==h)return u;r=r._1,t=t._1}return r.ctor===t.ctor?h:"[]"===r.ctor?p:g}if("_Tuple"===r.ctor.slice(0,6)){var u,c=r.ctor.slice(6)-0;if(0===c)return h;if(c>=1){if((u=e(r._0,t._0))!==h)return u;if(c>=2){if((u=e(r._1,t._1))!==h)return u;if(c>=3){if((u=e(r._2,t._2))!==h)return u;if(c>=4){if((u=e(r._3,t._3))!==h)return u;if(c>=5){if((u=e(r._4,t._4))!==h)return u;if(c>=6){if((u=e(r._5,t._5))!==h)return u;if(c>=7)throw new Error("Comparison error: cannot compare tuples with more than 6 elements.")}}}}}}return h}throw new Error("Comparison error: comparison is only defined on ints, floats, times, chars, strings, lists of comparable values, and tuples of comparable values.")}function o(r,t){return{ctor:"_Tuple2",_0:r,_1:t}}function u(r){return new String(r)}function c(r){return b++}function i(r,t){var n={};for(var e in r)n[e]=r[e];for(var e in t)n[e]=t[e];return n}function _(r,t){return{ctor:"::",_0:r,_1:t}}function a(r,t){if("string"==typeof r)return r+t;if("[]"===r.ctor)return t;var n=_(r._0,y),e=n;for(r=r._1;"[]"!==r.ctor;)e._1=_(r._0,y),r=r._1,e=e._1;return e._1=t,n}function f(r,t){return function(n){throw new Error("Ran into a `Debug.crash` in module `"+r+"` "+s(t)+"\nThe message provided by the code author is:\n\n "+n)}}function l(r,t,n){return function(e){throw new Error("Ran into a `Debug.crash` in module `"+r+"`\n\nThis was caused by the `case` expression "+s(t)+".\nOne of the branches ended with a crash and the following value got through:\n\n "+d(n)+"\n\nThe message provided by the code author is:\n\n "+e)}}function s(r){return r.start.line==r.end.line?"on line "+r.start.line:"between lines "+r.start.line+" and "+r.end.line}function d(r){var t=typeof r;if("function"===t)return"<function>";if("boolean"===t)return r?"True":"False";if("number"===t)return r+"";if(r instanceof String)return"'"+v(r,!0)+"'";if("string"===t)return'"'+v(r,!1)+'"';if(null===r)return"null";if("object"===t&&"ctor"in r){var n=r.ctor.substring(0,5);if("_Tupl"===n){var e=[];for(var o in r)"ctor"!==o&&e.push(d(r[o]));return"("+e.join(",")+")"}if("_Task"===n)return"<task>";if("_Array"===r.ctor){return"Array.fromList "+d(Ze(r))}if("<decoder>"===r.ctor)return"<decoder>";if("_Process"===r.ctor)return"<process:"+r.id+">";if("::"===r.ctor){var e="["+d(r._0);for(r=r._1;"::"===r.ctor;)e+=","+d(r._0),r=r._1;return e+"]"}if("[]"===r.ctor)return"[]";if("Set_elm_builtin"===r.ctor)return"Set.fromList "+d(ne(r));if("RBNode_elm_builtin"===r.ctor||"RBEmpty_elm_builtin"===r.ctor)return"Dict.fromList "+d(sn(r));var e="";for(var u in r)if("ctor"!==u){var c=d(r[u]),i=c[0],_="{"===i||"("===i||"<"===i||'"'===i||c.indexOf(" ")<0;e+=" "+(_?c:"("+c+")")}return r.ctor+e}if("object"===t){if(r instanceof Date)return"<"+r.toString()+">";if(r.elm_web_socket)return"<websocket>";var e=[];for(var o in r)e.push(o+" = "+d(r[o]));return 0===e.length?"{}":"{ "+e.join(", ")+" }"}return"<internal structure>"}function v(r,t){var n=r.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return t?n.replace(/\'/g,"\\'"):n.replace(/\"/g,'\\"')}var p=-1,h=0,g=1,m={ctor:"_Tuple0"},b=0,y={ctor:"[]"};return{eq:r,cmp:e,Tuple0:m,Tuple2:o,chr:u,update:i,guid:c,append:t(a),crash:f,crashCase:l,toString:d}}(),g=t(function(r,t){var n=t;return a(r,n._0,n._1)}),m=(n(function(r,t,n){return r({ctor:"_Tuple2",_0:t,_1:n})}),n(function(r,t,n){return a(r,n,t)})),b=t(function(r,t){return r}),y=function(r){return r},k=k||{};k["<|"]=t(function(r,t){return r(t)});var k=k||{};k["|>"]=t(function(r,t){return t(r)});var k=k||{};k[">>"]=n(function(r,t,n){return t(r(n))});var k=k||{};k["<<"]=n(function(r,t,n){return r(t(n))});var k=k||{};k["++"]=h.append;var T=h.toString,w=(p.isInfinite,p.isNaN,p.toFloat),N=p.ceiling,x=p.floor,B=(p.truncate,p.round),k=(p.not,p.xor,k||{});k["||"]=p.or;var k=k||{};k["&&"]=p.and;var R=p.max,E=p.min,A=p.compare,k=k||{};k[">="]=p.ge;var k=k||{};k["<="]=p.le;var k=k||{};k[">"]=p.gt;var k=k||{};k["<"]=p.lt;var k=k||{};k["/="]=p.neq;var k=k||{};k["=="]=p.eq;var C=p.e,O=p.pi,P=(p.clamp,p.logBase),M=p.abs,S=p.negate,L=p.sqrt,k=(p.atan2,p.atan,p.asin,p.acos,p.tan,p.sin,p.cos,k||{});k["^"]=p.exp;var k=k||{};k["%"]=p.mod;var q=p.rem,k=k||{};k["//"]=p.div;var k=k||{};k["/"]=p.floatDiv;var k=k||{};k["*"]=p.mul;var k=k||{};k["-"]=p.sub;var k=k||{};k["+"]=p.add;var I=(p.toPolar,p.fromPolar,p.turns),J=p.degrees,D={ctor:"GT"},F={ctor:"EQ"},j={ctor:"LT"},U=function(){function r(r,t){var n=r+": "+h.toString(t),e=e||{};return e.stdout?e.stdout.write(n):console.log(n),t}function n(r){throw new Error(r)}return{crash:n,log:t(r)}}(),z=(U.crash,U.log,t(function(r,t){var n=t;return"Just"===n.ctor?n._0:r})),$={ctor:"Nothing"},W=(t(function(r,t){var n=t;return"Just"===n.ctor?r(n._0):$}),function(r){return{ctor:"Just",_0:r}}),Q=t(function(r,t){var n=t;return"Just"===n.ctor?W(r(n._0)):$}),Z=n(function(r,t,n){var e={ctor:"_Tuple2",_0:t,_1:n};return"_Tuple2"===e.ctor&&"Just"===e._0.ctor&&"Just"===e._1.ctor?W(a(r,e._0._0,e._1._0)):$}),G=(e(function(r,t,n,e){var o={ctor:"_Tuple3",_0:t,_1:n,_2:e};return"_Tuple3"===o.ctor&&"Just"===o._0.ctor&&"Just"===o._1.ctor&&"Just"===o._2.ctor?W(f(r,o._0._0,o._1._0,o._2._0)):$}),o(function(r,t,n,e,o){var u={ctor:"_Tuple4",_0:t,_1:n,_2:e,_3:o};return"_Tuple4"===u.ctor&&"Just"===u._0.ctor&&"Just"===u._1.ctor&&"Just"===u._2.ctor&&"Just"===u._3.ctor?W(l(r,u._0._0,u._1._0,u._2._0,u._3._0)):$}),u(function(r,t,n,e,o,u){var c={ctor:"_Tuple5",_0:t,_1:n,_2:e,_3:o,_4:u};return"_Tuple5"===c.ctor&&"Just"===c._0.ctor&&"Just"===c._1.ctor&&"Just"===c._2.ctor&&"Just"===c._3.ctor&&"Just"===c._4.ctor?W(s(r,c._0._0,c._1._0,c._2._0,c._3._0,c._4._0)):$}),function(){function r(r,t){return{ctor:"::",_0:r,_1:t}}function c(t){for(var n=y,e=t.length;e--;)n=r(t[e],n);return n}function i(r){for(var t=[];"[]"!==r.ctor;)t.push(r._0),r=r._1;return t}function _(r,t,n){for(var e=i(n),o=t,u=e.length;u--;)o=a(r,e[u],o);return o}function d(r,t,n){for(var e=[];"[]"!==t.ctor&&"[]"!==n.ctor;)e.push(a(r,t._0,n._0)),t=t._1,n=n._1;return c(e)}function v(r,t,n,e){for(var o=[];"[]"!==t.ctor&&"[]"!==n.ctor&&"[]"!==e.ctor;)o.push(f(r,t._0,n._0,e._0)),t=t._1,n=n._1,e=e._1;return c(o)}function p(r,t,n,e,o){for(var u=[];"[]"!==t.ctor&&"[]"!==n.ctor&&"[]"!==e.ctor&&"[]"!==o.ctor;)u.push(l(r,t._0,n._0,e._0,o._0)),t=t._1,n=n._1,e=e._1,o=o._1;return c(u)}function g(r,t,n,e,o,u){for(var i=[];"[]"!==t.ctor&&"[]"!==n.ctor&&"[]"!==e.ctor&&"[]"!==o.ctor&&"[]"!==u.ctor;)i.push(s(r,t._0,n._0,e._0,o._0,u._0)),t=t._1,n=n._1,e=e._1,o=o._1,u=u._1;return c(i)}function m(r,t){return c(i(t).sort(function(t,n){return h.cmp(r(t),r(n))}))}function b(r,t){return c(i(t).sort(function(t,n){var e=r(t)(n).ctor;return"EQ"===e?0:"LT"===e?-1:1}))}var y={ctor:"[]"};return{Nil:y,Cons:r,cons:t(r),toArray:i,fromArray:c,foldr:n(_),map2:n(d),map3:e(v),map4:o(p),map5:u(g),sortBy:t(m),sortWith:t(b)}}()),K=G.sortWith,H=G.sortBy,V=function(r){return{ctor:"::",_0:r,_1:{ctor:"[]"}}},X=t(function(r,t){for(;;){if(h.cmp(r,0)<1)return t;var n=t;if("[]"===n.ctor)return t;var e=r-1,o=n._1;r=e,t=o}}),Y=G.map5,rr=G.map4,tr=G.map3,nr=G.map2,er=t(function(r,t){for(;;){var n=t;if("[]"===n.ctor)return!1;if(r(n._0))return!0;var e=r,o=n._1;r=e,t=o}}),or=t(function(r,t){return!a(er,function(t){return!r(t)},t)}),ur=G.foldr,cr=n(function(r,t,n){for(;;){var e=n;if("[]"===e.ctor)return t;var o=r,u=a(r,e._0,t),c=e._1;r=o,t=u,n=c}}),ir=function(r){return f(cr,t(function(r,t){return t+1}),0,r)},_r=t(function(r,t){return a(er,function(t){return h.eq(t,r)},t)}),ar=function(r){return"[]"===r.ctor},fr=function(r){var t=r;return"::"===t.ctor?W(t._1):$},lr=function(r){var t=r;return"::"===t.ctor?W(t._0):$},sr=sr||{};sr["::"]=G.cons;var dr=t(function(r,n){return f(ur,t(function(t,n){return{ctor:"::",_0:r(t),_1:n}}),{ctor:"[]"},n)}),vr=t(function(r,n){var e=t(function(t,n){return r(t)?{ctor:"::",_0:t,_1:n}:n});return f(ur,e,{ctor:"[]"},n)}),pr=n(function(r,t,n){var e=r(t);return"Just"===e.ctor?{ctor:"::",_0:e._0,_1:n}:n}),hr=(t(function(r,t){return f(ur,pr(r),{ctor:"[]"},t)}),function(r){return f(cr,t(function(r,t){return{ctor:"::",_0:r,_1:t}}),{ctor:"[]"},r)}),gr=n(function(r,n,e){var o=t(function(t,n){var e=n;return"::"===e.ctor?{ctor:"::",_0:a(r,t,e._0),_1:n}:{ctor:"[]"}});return hr(f(cr,o,{ctor:"::",_0:n,_1:{ctor:"[]"}},e))}),mr=t(function(r,n){return"[]"===n.ctor?r:f(ur,t(function(r,t){return{ctor:"::",_0:r,_1:t}}),n,r)}),br=function(r){return f(ur,mr,{ctor:"[]"},r)},yr=t(function(r,t){return br(a(dr,r,t))}),kr=(t(function(r,n){var e=t(function(t,n){var e=n,o=e._0,u=e._1;return r(t)?{ctor:"_Tuple2",_0:{ctor:"::",_0:t,_1:o},_1:u}:{ctor:"_Tuple2",_0:o,_1:{ctor:"::",_0:t,_1:u}}});return f(ur,e,{ctor:"_Tuple2",_0:{ctor:"[]"},_1:{ctor:"[]"}},n)}),t(function(r,n){var e=n;if("[]"===e.ctor)return{ctor:"[]"};var o=t(function(t,n){return{ctor:"::",_0:r,_1:{ctor:"::",_0:t,_1:n}}}),u=f(ur,o,{ctor:"[]"},e._1);return{ctor:"::",_0:e._0,_1:u}})),Tr=n(function(r,t,n){for(;;){if(h.cmp(r,0)<1)return n;var e=t;if("[]"===e.ctor)return n;var o=r-1,u=e._1,c={ctor:"::",_0:e._0,_1:n};r=o,t=u,n=c}}),wr=t(function(r,t){return hr(f(Tr,r,t,{ctor:"[]"}))}),Nr=n(function(r,t,n){if(h.cmp(t,0)<1)return{ctor:"[]"};var e={ctor:"_Tuple2",_0:t,_1:n};r:do{t:do{if("_Tuple2"!==e.ctor)break r;if("[]"===e._1.ctor)return n;if("::"!==e._1._1.ctor){if(1===e._0)break t;break r}switch(e._0){case 1:break t;case 2:return{ctor:"::",_0:e._1._0,_1:{ctor:"::",_0:e._1._1._0,_1:{ctor:"[]"}}};case 3:if("::"===e._1._1._1.ctor)return{ctor:"::",_0:e._1._0,_1:{ctor:"::",_0:e._1._1._0,_1:{ctor:"::",_0:e._1._1._1._0,_1:{ctor:"[]"}}}};break r;default:if("::"===e._1._1._1.ctor&&"::"===e._1._1._1._1.ctor){var o=e._1._1._1._0,u=e._1._1._0,c=e._1._0,i=e._1._1._1._1._0,_=e._1._1._1._1._1;return h.cmp(r,1e3)>0?{ctor:"::",_0:c,_1:{ctor:"::",_0:u,_1:{ctor:"::",_0:o,_1:{ctor:"::",_0:i,_1:a(wr,t-4,_)}}}}:{ctor:"::",_0:c,_1:{ctor:"::",_0:u,_1:{ctor:"::",_0:o,_1:{ctor:"::",_0:i,_1:f(Nr,r+1,t-4,_)}}}}}break r}}while(!1);return{ctor:"::",_0:e._1._0,_1:{ctor:"[]"}}}while(!1);return n}),xr=t(function(r,t){return f(Nr,0,r,t)}),Br=n(function(r,t,n){for(;;){if(h.cmp(t,0)<1)return r;var e={ctor:"::",_0:n,_1:r},o=t-1,u=n;r=e,t=o,n=u}}),Rr=(t(function(r,t){return f(Br,{ctor:"[]"},r,t)}),n(function(r,t,n){for(;;){if(!(h.cmp(r,t)<1))return n;var e=r,o=t-1,u={ctor:"::",_0:t,_1:n};r=e,t=o,n=u}})),Er=t(function(r,t){return f(Rr,r,t,{ctor:"[]"})}),Ar=t(function(r,t){return f(nr,r,a(Er,0,ir(t)-1),t)}),Cr=function(r){var t=r;return"Ok"===t.ctor?W(t._0):$},Or=t(function(r,t){var n=t;return"Ok"===n.ctor?n._0:r}),Pr=function(r){return{ctor:"Err",_0:r}},Mr=t(function(r,t){var n=t;return"Ok"===n.ctor?r(n._0):Pr(n._0)}),Sr=function(r){return{ctor:"Ok",_0:r}},Lr=t(function(r,t){var n=t;return"Ok"===n.ctor?Sr(r(n._0)):Pr(n._0)}),qr=n(function(r,t,n){var e={ctor:"_Tuple2",_0:t,_1:n};return"Ok"===e._0.ctor?"Ok"===e._1.ctor?Sr(a(r,e._0._0,e._1._0)):Pr(e._1._0):Pr(e._0._0)}),Ir=(e(function(r,t,n,e){var o={ctor:"_Tuple3",_0:t,_1:n,_2:e};return"Ok"===o._0.ctor?"Ok"===o._1.ctor?"Ok"===o._2.ctor?Sr(f(r,o._0._0,o._1._0,o._2._0)):Pr(o._2._0):Pr(o._1._0):Pr(o._0._0)}),o(function(r,t,n,e,o){var u={ctor:"_Tuple4",_0:t,_1:n,_2:e,_3:o};return"Ok"===u._0.ctor?"Ok"===u._1.ctor?"Ok"===u._2.ctor?"Ok"===u._3.ctor?Sr(l(r,u._0._0,u._1._0,u._2._0,u._3._0)):Pr(u._3._0):Pr(u._2._0):Pr(u._1._0):Pr(u._0._0)}),u(function(r,t,n,e,o,u){var c={ctor:"_Tuple5",_0:t,_1:n,_2:e,_3:o,_4:u};return"Ok"===c._0.ctor?"Ok"===c._1.ctor?"Ok"===c._2.ctor?"Ok"===c._3.ctor?"Ok"===c._4.ctor?Sr(s(r,c._0._0,c._1._0,c._2._0,c._3._0,c._4._0)):Pr(c._4._0):Pr(c._3._0):Pr(c._2._0):Pr(c._1._0):Pr(c._0._0)}),t(function(r,t){var n=t;return"Ok"===n.ctor?Sr(n._0):Pr(r(n._0))})),Jr=t(function(r,t){var n=t;return"Just"===n.ctor?Sr(n._0):Pr(r)}),Dr=function(){function r(r){return 0===r.length}function e(r,t){return r+t}function o(r){var t=r[0];return t?W(h.Tuple2(h.chr(t),r.slice(1))):$}function u(r,t){return r+t}function c(r){return G.toArray(r).join("")}function i(r){return r.length}function _(r,t){for(var n=t.split(""),e=n.length;e--;)n[e]=r(h.chr(n[e]));return n.join("")}function f(r,t){return t.split("").map(h.chr).filter(r).join("")}function l(r){return r.split("").reverse().join("")}function s(r,t,n){for(var e=n.length,o=0;o<e;++o)t=a(r,h.chr(n[o]),t);return t}function d(r,t,n){for(var e=n.length;e--;)t=a(r,h.chr(n[e]),t);return t}function v(r,t){return G.fromArray(t.split(r))}function p(r,t){return G.toArray(t).join(r)}function g(r,t){for(var n="";r>0;)1&r&&(n+=t),r>>=1,t+=t;return n}function m(r,t,n){return n.slice(r,t)}function b(r,t){return r<1?"":t.slice(0,r)}function y(r,t){return r<1?"":t.slice(-r)}function k(r,t){return r<1?t:t.slice(r)}function T(r,t){return r<1?t:t.slice(0,-r)}function w(r,t,n){var e=(r-n.length)/2;return g(Math.ceil(e),t)+n+g(0|e,t)}function N(r,t,n){return n+g(r-n.length,t)}function x(r,t,n){return g(r-n.length,t)+n}function B(r){return r.trim()}function R(r){return r.replace(/^\s+/,"")}function E(r){return r.replace(/\s+$/,"")}function A(r){return G.fromArray(r.trim().split(/\s+/g))}function C(r){return G.fromArray(r.split(/\r\n|\r|\n/g))}function O(r){return r.toUpperCase()}function P(r){return r.toLowerCase()}function M(r,t){for(var n=t.length;n--;)if(r(h.chr(t[n])))return!0;return!1}function S(r,t){for(var n=t.length;n--;)if(!r(h.chr(t[n])))return!1;return!0}function L(r,t){return t.indexOf(r)>-1}function q(r,t){return 0===t.indexOf(r)}function I(r,t){return t.length>=r.length&&t.lastIndexOf(r)===t.length-r.length}function J(r,t){var n=r.length;if(n<1)return G.Nil;for(var e=0,o=[];(e=t.indexOf(r,e))>-1;)o.push(e),e+=n;return G.fromArray(o)}function D(r){var t=r.length;if(0===t)return F(r);var n=r[0];if("0"===n&&"x"===r[1]){for(var e=2;e<t;++e){var n=r[e];if(!("0"<=n&&n<="9"||"A"<=n&&n<="F"||"a"<=n&&n<="f"))return F(r)}return Sr(parseInt(r,16))}if(n>"9"||n<"0"&&"-"!==n&&"+"!==n)return F(r);for(var e=1;e<t;++e){var n=r[e];if(n<"0"||"9"<n)return F(r)}return Sr(parseInt(r,10))}function F(r){return Pr("could not convert string '"+r+"' to an Int")}function j(r){if(0===r.length||/[\sxbo]/.test(r))return U(r);var t=+r;return t===t?Sr(t):U(r)}function U(r){return Pr("could not convert string '"+r+"' to a Float")}function z(r){return G.fromArray(r.split("").map(h.chr))}function Q(r){return G.toArray(r).join("")}return{isEmpty:r,cons:t(e),uncons:o,append:t(u),concat:c,length:i,map:t(_),filter:t(f),reverse:l,foldl:n(s),foldr:n(d),split:t(v),join:t(p),repeat:t(g),slice:n(m),left:t(b),right:t(y),dropLeft:t(k),dropRight:t(T),pad:n(w),padLeft:n(x),padRight:n(N),trim:B,trimLeft:R,trimRight:E,words:A,lines:C,toUpper:O,toLower:P,any:t(M),all:t(S),contains:t(L),startsWith:t(q),endsWith:t(I),indexes:t(J),toInt:D,toFloat:j,toList:z,fromList:Q}}(),Fr=function(){return{fromCode:function(r){return h.chr(String.fromCharCode(r))},toCode:function(r){return r.charCodeAt(0)},toUpper:function(r){return h.chr(r.toUpperCase())},toLower:function(r){return h.chr(r.toLowerCase())},toLocaleUpper:function(r){return h.chr(r.toLocaleUpperCase())},toLocaleLower:function(r){return h.chr(r.toLocaleLowerCase())}}}(),jr=(Fr.fromCode,Fr.toCode),Ur=(Fr.toLocaleLower,Fr.toLocaleUpper,Fr.toLower,Fr.toUpper,n(function(r,t,n){var e=jr(n);return h.cmp(e,jr(r))>-1&&h.cmp(e,jr(t))<1})),zr=a(Ur,h.chr("A"),h.chr("Z")),$r=a(Ur,h.chr("a"),h.chr("z")),Wr=a(Ur,h.chr("0"),h.chr("9")),Qr=a(Ur,h.chr("0"),h.chr("7")),Zr=function(r){return Wr(r)||f(Ur,h.chr("a"),h.chr("f"),r)||f(Ur,h.chr("A"),h.chr("F"),r)},Gr=Dr.fromList,Kr=Dr.toList,Hr=Dr.toFloat,Vr=Dr.toInt,Xr=(Dr.indexes,Dr.indexes,Dr.endsWith,Dr.startsWith),Yr=(Dr.contains,Dr.all,Dr.any,Dr.toLower,Dr.toUpper,Dr.lines,Dr.words,Dr.trimRight,Dr.trimLeft,Dr.trim,Dr.padRight,Dr.padLeft),rt=(Dr.pad,Dr.dropRight,Dr.dropLeft),tt=(Dr.right,Dr.left,Dr.slice,Dr.repeat,Dr.join),nt=(Dr.split,Dr.foldr,Dr.foldl,Dr.reverse,Dr.filter,Dr.map,Dr.length),et=Dr.concat,ot=(Dr.append,Dr.uncons),ut=Dr.cons,ct=function(r){return a(ut,r,"")},it=(Dr.isEmpty,t(function(r,t){var n=t;return{ctor:"_Tuple2",_0:n._0,_1:r(n._1)}}),t(function(r,t){var n=t;return{ctor:"_Tuple2",_0:r(n._0),_1:n._1}})),_t=function(r){return r._1},at=function(r){return r._0},ft=function(){function r(r){return function(t){return function(t,n){t.worker=function(t){if(void 0!==t)throw new Error("The `"+n+"` module does not need flags.\nCall "+n+".worker() with no arguments and you should be all set!");return c(r.init,r.update,r.subscriptions,o)}}}}function e(r){return function(t){return function(n,e){n.worker=function(n){if(void 0===t)throw new Error("Are you trying to sneak a Never value into Elm? Trickster!\nIt looks like "+e+".main is defined with `programWithFlags` but has type `Program Never`.\nUse `program` instead if you do not want flags.");var u=a(Oo.run,t,n);if("Err"===u.ctor)throw new Error(e+".worker(...) was called with an unexpected argument.\nI tried to convert it to an Elm value, but ran into this problem:\n\n"+u._0);return c(r.init(u._0),r.update,r.subscriptions,o)}}}}function o(r,t){return function(r){}}function u(r){var n=g(G.Nil),e=h.Tuple2(h.Tuple0,n);return du({init:e,view:function(r){return main},update:t(function(r,t){return e}),subscriptions:function(r){return n}})}function c(r,t,n,e){function o(r,e){return lt.nativeBinding(function(o){var u=a(t,r,e);e=u._0,c(e);var i=u._1,f=n(e);b(_,i,f),o(lt.succeed(e))})}function u(r){lt.rawSend(l,r)}var c,_={},f=lt.nativeBinding(function(t){var o=r._0;c=e(u,o);var i=r._1,a=n(o);b(_,i,a),t(lt.succeed(o))}),l=v(f,o),s=i(_,u);return s?{ports:s}:{}}function i(r,t){var n;for(var e in E){var o=E[e];o.isForeign&&(n=n||{},n[e]="cmd"===o.tag?x(e):R(e,t)),r[e]=_(o,t)}return n}function _(r,t){function n(r,t){if("self"===r.ctor)return f(c,e,r._0,t);var n=r._0;switch(o){case"cmd":return f(u,e,n.cmds,t);case"sub":return f(u,e,n.subs,t);case"fx":return l(u,e,n.cmds,n.subs,t)}}var e={main:t,self:void 0},o=r.tag,u=r.onEffects,c=r.onSelfMsg,i=v(r.init,n);return e.self=i,i}function s(r,t){return lt.nativeBinding(function(n){r.main(t),n(lt.succeed(h.Tuple0))})}function d(r,t){return a(lt.send,r.self,{ctor:"self",_0:t})}function v(r,t){function n(r){var o=lt.receive(function(n){return t(n,r)});return a(e,n,o)}var e=lt.andThen,o=a(e,n,r);return lt.rawSpawn(o)}function p(r){return function(t){return{type:"leaf",home:r,value:t}}}function g(r){return{type:"node",branches:r}}function m(r,t){return{type:"map",tagger:r,tree:t}}function b(r,t,n){var e={};y(!0,t,e,null),y(!1,n,e,null);for(var o in r){var u=o in e?e[o]:{cmds:G.Nil,subs:G.Nil};lt.rawSend(r[o],{ctor:"fx",_0:u})}}function y(r,t,n,e){switch(t.type){case"leaf":var o=t.home,u=k(r,o,e,t.value);return void(n[o]=T(r,u,n[o]));case"node":for(var c=t.branches;"[]"!==c.ctor;)y(r,c._0,n,e),c=c._1;return;case"map":return void y(r,t.tree,n,{tagger:t.tagger,rest:e})}}function k(r,t,n,e){function o(r){for(var t=n;t;)r=t.tagger(r),t=t.rest;return r}return a(r?E[t].cmdMap:E[t].subMap,o,e)}function T(r,t,n){return n=n||{cmds:G.Nil,subs:G.Nil},r?(n.cmds=G.Cons(t,n.cmds),n):(n.subs=G.Cons(t,n.subs),n)}function w(r){if(r in E)throw new Error("There can only be one port named `"+r+"`, but your program has multiple.")}function N(r,t){return w(r),E[r]={tag:"cmd",cmdMap:A,converter:t,isForeign:!0},p(r)}function x(r){function t(r,t,n){for(;"[]"!==t.ctor;){for(var e=u,o=c(t._0),_=0;_<e.length;_++)e[_](o);t=t._1}return i}function e(r){u.push(r)}function o(r){u=u.slice();var t=u.indexOf(r);t>=0&&u.splice(t,1)}var u=[],c=E[r].converter,i=lt.succeed(null);return E[r].init=i,E[r].onEffects=n(t),{subscribe:e,unsubscribe:o}}function B(r,t){return w(r),E[r]={tag:"sub",subMap:C,converter:t,isForeign:!0},p(r)}function R(r,t){function e(r,t,n){for(var e=o(r,t,n),u=0;u<f.length;u++)i(f[u]);return f=null,v=i,d=o,e}function o(r,t,n){return l=t,p}function u(r,t,n){return d(r,t,n)}function c(r){f.push(r)}function i(r){for(var n=l;"[]"!==n.ctor;)t(n._0(r)),n=n._1}function _(t){var n=a(Jo,s,t);if("Err"===n.ctor)throw new Error("Trying to send an unexpected type of value through port `"+r+"`:\n"+n._0);v(n._0)}var f=[],l=G.Nil,s=E[r].converter,d=e,v=c,p=lt.succeed(null);return E[r].init=p,E[r].onEffects=n(u),{send:_}}var E={},A=t(function(r,t){return t}),C=t(function(r,t){return function(n){return r(t(n))}});return{sendToApp:t(s),sendToSelf:t(d),effectManagers:E,outgoingPort:N,incomingPort:B,htmlToProgram:u,program:r,programWithFlags:e,initialize:c,leaf:p,batch:g,map:t(m)}}(),lt=function(){function r(r){return{ctor:"_Task_succeed",value:r}}function n(r){return{ctor:"_Task_fail",value:r}}function e(r){return{ctor:"_Task_nativeBinding",callback:r,cancel:null}}function o(r,t){return{ctor:"_Task_andThen",callback:r,task:t}}function u(r,t){return{ctor:"_Task_onError",callback:r,task:t}}function c(r){return{ctor:"_Task_receive",callback:r}}function i(r){var t={ctor:"_Process",id:h.guid(),root:r,stack:null,mailbox:[]};return v(t),t}function _(t){return e(function(n){n(r(i(t)))})}function a(r,t){r.mailbox.push(t),v(r)}function f(t,n){return e(function(e){a(t,n),e(r(h.Tuple0))})}function l(t){return e(function(n){var e=t.root;"_Task_nativeBinding"===e.ctor&&e.cancel&&e.cancel(),t.root=null,n(r(h.Tuple0))})}function s(t){return e(function(n){var e=setTimeout(function(){n(r(h.Tuple0))},t);return function(){clearTimeout(e)}})}function d(r,t){for(;r<g;){var n=t.root.ctor;if("_Task_succeed"!==n)if("_Task_fail"!==n)if("_Task_andThen"!==n)if("_Task_onError"!==n){if("_Task_nativeBinding"===n){t.root.cancel=t.root.callback(function(r){t.root=r,v(t)});break}if("_Task_receive"!==n)throw new Error(n);var e=t.mailbox;if(0===e.length)break;t.root=t.root.callback(e.shift()),++r}else t.stack={ctor:"_Task_onError",callback:t.root.callback,rest:t.stack},t.root=t.root.task,++r;else t.stack={ctor:"_Task_andThen",callback:t.root.callback,rest:t.stack},t.root=t.root.task,++r;else{for(;t.stack&&"_Task_andThen"===t.stack.ctor;)t.stack=t.stack.rest;if(null===t.stack)break;t.root=t.stack.callback(t.root.value),t.stack=t.stack.rest,++r}else{for(;t.stack&&"_Task_onError"===t.stack.ctor;)t.stack=t.stack.rest;if(null===t.stack)break;t.root=t.stack.callback(t.root.value),t.stack=t.stack.rest,++r}}return r<g?r+1:(v(t),r)}function v(r){b.push(r),m||(setTimeout(p,0),m=!0)}function p(){for(var r,t=0;t<g&&(r=b.shift());)r.root&&(t=d(t,r));if(!r)return void(m=!1);setTimeout(p,0)}var g=1e4,m=!1,b=[];return{succeed:r,fail:n,nativeBinding:e,andThen:t(o),onError:t(u),receive:c,spawn:_,kill:l,sleep:s,send:t(f),rawSpawn:i,rawSend:a}}(),st=ft.batch,dt=st({ctor:"[]"}),vt=vt||{};vt["!"]=t(function(r,t){return{ctor:"_Tuple2",_0:r,_1:st(t)}});var pt=(ft.map,ft.batch),ht=pt({ctor:"[]"}),gt=(ft.map,lt.succeed,ft.sendToSelf),mt=ft.sendToApp,bt=(ft.programWithFlags,ft.program,function(r){return r._0({ctor:"_Tuple0"})}),yt=function(r){return{ctor:"Lazy",_0:r}},kt=function(r){return yt(v.memoize(r))},Tt=(t(function(r,t){return kt(function(n){return r(bt(t))})}),n(function(r,t,n){return kt(function(e){return a(r,bt(t),bt(n))})}),e(function(r,t,n,e){return kt(function(o){return f(r,bt(t),bt(n),bt(e))})}),o(function(r,t,n,e,o){return kt(function(u){return l(r,bt(t),bt(n),bt(e),bt(o))})}),u(function(r,t,n,e,o,u){return kt(function(c){return s(r,bt(t),bt(n),bt(e),bt(o),bt(u))})}),t(function(r,t){return kt(function(n){return a(bt,r,bt(t))})}),t(function(r,t){return kt(function(n){return bt(r(bt(t)))})}),function(){function r(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function o(r){return new RegExp(r.source,"gi")}function u(r){return new RegExp(r,"g")}function c(r,t){return null!==t.match(r)}function i(r,t,n){r="All"===r.ctor?1/0:r._0;for(var e,o=[],u=0,c=n,i=t.lastIndex,_=-1;u++<r&&(e=t.exec(c))&&_!==t.lastIndex;){for(var a=e.length-1,f=new Array(a);a>0;){var l=e[a];f[--a]=void 0===l?$:W(l)}o.push({match:e[0],submatches:G.fromArray(f),index:e.index,number:u}),_=t.lastIndex}return t.lastIndex=i,G.fromArray(o)}function _(r,t,n,e){function o(t){if(u++>=r)return t;for(var e=arguments.length-3,o=new Array(e);e>0;){var c=arguments[e];o[--e]=void 0===c?$:W(c)}return n({match:t,submatches:G.fromArray(o),index:arguments[arguments.length-2],number:u})}r="All"===r.ctor?1/0:r._0;var u=0;return e.replace(t,o)}function a(r,t,n){if((r="All"===r.ctor?1/0:r._0)===1/0)return G.fromArray(n.split(t));for(var e,o=n,u=[],c=t.lastIndex,i=t.lastIndex;r--&&(e=t.exec(o));)u.push(o.slice(c,e.index)),c=t.lastIndex;return u.push(o.slice(c)),t.lastIndex=i,G.fromArray(u)}return{regex:u,caseInsensitive:o,escape:r,contains:t(c),find:n(i),replace:e(_),split:n(a)}}()),wt=(Tt.split,Tt.replace,Tt.find),Nt=(Tt.contains,Tt.caseInsensitive,Tt.regex),xt=(Tt.escape,e(function(r,t,n,e){return{match:r,submatches:t,index:n,number:e}}),function(r){return{ctor:"AtMost",_0:r}}),Bt=function(r){var t=r;return"Parser"===t.ctor?t._0:bt(t._0)},Rt=n(function(r,t,n){return{data:r,input:t,position:n}}),Et=function(r){return f(Rt,r,r,0)},At=n(function(r,t,n){var e=f(Bt,r,t,Et(n));return"Ok"===e._2.ctor?Sr({ctor:"_Tuple3",_0:e._0,_1:e._1,_2:e._2._0}):Pr({ctor:"_Tuple3",_0:e._0,_1:e._1,_2:e._2._0})}),Ct=function(r){return a(At,r,{ctor:"_Tuple0"})},Ot=(n(function(r,t,n){return{source:r,line:t,column:n}}),function(r){return{ctor:"RecursiveParser",_0:r}}),Pt=function(r){return Ot(kt(function(t){return Bt(r({ctor:"_Tuple0"}))}))},Mt=function(r){return{ctor:"Parser",_0:r}},St=Mt,Lt=n(function(r,n,e){return Mt(t(function(t,o){var u=f(Bt,e,t,o);return"Ok"===u._2.ctor?{ctor:"_Tuple3",_0:u._0,_1:u._1,_2:Sr(r(u._2._0))}:{ctor:"_Tuple3",_0:u._0,_1:u._1,_2:Pr(n(u._2._0))}}))}),qt=t(function(r,t){return f(Lt,r,y,t)}),It=It||{};It["<$>"]=qt;var It=It||{};It["<$"]=function(r){return qt(b(r))};var It=It||{};It["$>"]=m(t(function(r,t){return a(It["<$"],r,t)}));var Jt=Lt(y),It=It||{};It["<?>"]=t(function(r,t){return a(Jt,b({ctor:"::",_0:t,_1:{ctor:"[]"}}),r)});var Dt=t(function(r,n){return Mt(t(function(t,e){var o=f(Bt,n,t,e);return"Ok"===o._2.ctor?f(Bt,r(o._2._0),o._0,o._1):{ctor:"_Tuple3",_0:o._0,_1:o._1,_2:Pr(o._2._0)}}))}),It=It||{};It[">>="]=m(Dt);var Ft=t(function(r,t){return a(It[">>="],t,a(m,qt,r))}),It=It||{};It["<*>"]=m(Ft);var It=It||{};It["<*"]=t(function(r,t){return a(Ft,t,a(qt,b,r))});var It=It||{};It["*>"]=t(function(r,t){return a(Ft,t,a(qt,m(b),r))});var jt=n(function(r,t,n){return a(It["<*"],a(It["*>"],r,n),t)}),Ut=Mt(t(function(r,t){return{ctor:"_Tuple3",_0:r,_1:t,_2:Pr({ctor:"[]"})}})),zt=function(r){return Mt(t(function(t,n){return{ctor:"_Tuple3",_0:t,_1:n,_2:Sr(r)}}))},$t=(t(function(r,n){var e=t(function(r,t){return h.cmp(r,0)<1?zt(hr(t)):a(Dt,function(n){return a(e,r-1,{ctor:"::",_0:n,_1:t})},n)});return a(e,r,{ctor:"[]"})}),function(r){return Mt(t(function(t,n){if(a(Xr,r,n.input)){var e=nt(r),o=a(rt,e,n.input),u=n.position+e;return{ctor:"_Tuple3",_0:t,_1:h.update(n,{input:o,position:u}),_2:Sr(r)}}return{ctor:"_Tuple3",_0:t,_1:n,_2:Pr({ctor:"::",_0:a(k["++"],"expected ",T(r)),_1:{ctor:"[]"}})}}))}),Wt=a(jt,$t("("),$t(")")),Qt=(a(jt,$t("{"),$t("}")),a(jt,$t("["),$t("]")),function(r){var n=a(Xr,"^",r)?r:a(k["++"],"^",r);return Mt(t(function(r,t){var e=f(wt,xt(1),Nt(n),t.input);if("::"===e.ctor&&"[]"===e._1.ctor){var o=e._0,u=nt(o.match),c=a(rt,u,t.input),i=t.position+u;return{ctor:"_Tuple3",_0:r,_1:h.update(t,{input:c,position:i}),_2:Sr(o.match)}}return{ctor:"_Tuple3",_0:r,_1:t,_2:Pr({ctor:"::",_0:a(k["++"],"expected input matching Regexp /",a(k["++"],n,"/")),_1:{ctor:"[]"}})}}))}),Zt=a(It["<?>"],Qt("[ \t\r\n]*"),"whitespace"),Gt=(Mt(t(function(r,t){return h.eq(t.input,"")?{ctor:"_Tuple3",_0:r,_1:t,_2:Sr({ctor:"_Tuple0"})}:{ctor:"_Tuple3",_0:r,_1:t,_2:Pr({ctor:"::",_0:"expected end of input",_1:{ctor:"[]"}})}})),t(function(r,n){return Mt(t(function(t,e){var o=f(Bt,r,t,e);if("Ok"===o._2.ctor)return o;var u=f(Bt,n,t,e);return"Ok"===u._2.ctor?u:{ctor:"_Tuple3",_0:t,_1:e,_2:Pr(a(k["++"],o._2._0,u._2._0))}}))})),It=It||{};It["<|>"]=Gt;var Kt=t(function(r,t){return a(It["<|>"],t,zt(r))}),Ht=(t(function(r,t){var n=function(e){return a(It["<|>"],a(Dt,function(r){return a(Dt,function(t){return n(a(r,e,t))},t)},r),zt(e))};return a(Dt,n,t)}),t(function(r,t){var n=function(e){return a(It["<|>"],a(Dt,function(r){return a(Dt,function(t){return zt(a(r,e,t))},a(Dt,n,t))},r),zt(e))};return a(Dt,n,t)}),function(r){return Mt(t(function(t,n){var e=f(Bt,r,t,n);return"_Tuple3"===e.ctor&&"Ok"===e._2.ctor?{ctor:"_Tuple3",_0:e._0,_1:e._1,_2:Sr(W(e._2._0))}:{ctor:"_Tuple3",_0:t,_1:n,_2:Sr($)}}))}),Vt=function(r){var e=n(function(t,n,e){for(;;){var o=f(Bt,r,n,e);{if("_Tuple3"!==o.ctor||"Ok"!==o._2.ctor)return{ctor:"_Tuple3",_0:n,_1:e,_2:hr(t)};var u=o._1,c=o._0;if(h.eq(e,u))return{ctor:"_Tuple3",_0:c,_1:u,_2:hr(t)};var i={ctor:"::",_0:o._2._0,_1:t},_=c,a=u;t=i,n=_,e=a}}});return Mt(t(function(r,t){var n=f(e,{ctor:"[]"},r,t),o=n._0,u=n._1,c=n._2;return{ctor:"_Tuple3",_0:o,_1:u,_2:Sr(c)}}))},Xt=t(function(r,n){return a(It["<*>"],a(It["<$>"],t(function(r,t){return{ctor:"::",_0:r,_1:t}}),n),Vt(a(It["*>"],r,n)))}),Yt=(t(function(r,t){return a(It["<|>"],a(Xt,r,t),zt({ctor:"[]"}))}),t(function(r,t){return a(It["<*"],a(Xt,r,t),Ht(r))})),rn=(t(function(r,t){return a(It["<|>"],a(Yt,r,t),zt({ctor:"[]"}))}),t(function(r,t){var e=n(function(n,e,o){for(;;){var u=f(Bt,t,e,o);if("Ok"===u._2.ctor)return{ctor:"_Tuple3",_0:u._0,_1:u._1,_2:Sr(hr(n))};var c=f(Bt,r,e,o);{if("_Tuple3"!==c.ctor||"Ok"!==c._2.ctor)return{ctor:"_Tuple3",_0:u._0,_1:u._1,_2:Pr(u._2._0)};var i={ctor:"::",_0:c._2._0,_1:n},_=c._0,a=c._1;n=i,e=_,o=a}}});return Mt(e({ctor:"[]"}))}),a(It["<$"],h.chr("\n"),a(It["<?>"],Qt("\r\n"),"expected crlf"))),tn=function(r){return St(t(function(t,n){var e="could not satisfy predicate",o=ot(n.input);if("Just"===o.ctor){var u=o._0._0;return r(u)?{ctor:"_Tuple3",_0:t,_1:h.update(n,{input:o._0._1,position:n.position+1}),_2:Sr(u)}:{ctor:"_Tuple3",_0:t,_1:n,_2:Pr({ctor:"::",_0:e,_1:{ctor:"[]"}})}}return{ctor:"_Tuple3",_0:t,_1:n,_2:Pr({ctor:"::",_0:e,_1:{ctor:"[]"}})}}))},nn=(a(It["<?>"],tn(b(!0)),"expected any character"),a(It["<?>"],tn(t(function(r,t){return h.eq(r,t)})(h.chr(" "))),"expected space"),a(It["<?>"],tn(t(function(r,t){return h.eq(r,t)})(h.chr("\t"))),"expected tab"),a(It["<?>"],tn(t(function(r,t){return h.eq(r,t)})(h.chr("\n"))),"expected newline")),en=(a(It["<|>"],nn,rn),a(It["<?>"],tn($r),"expected a lowercase character"),a(It["<?>"],tn(zr),"expected an uppercase character"),a(It["<?>"],tn(Wr),"expected a digit")),on=(a(It["<?>"],tn(Qr),"expected an octal digit"),a(It["<?>"],tn(Zr),"expected a hexadecimal digit"),function(){var r=function(r){return jr(r)-jr(h.chr("0"))};a(It["<$>"],r,a(It["<?>"],en,"expected a digit"))}(),a(Kt,1,function(r){return f(ur,Gt,Ut,r)}({ctor:"::",_0:a(It["<$"],1,$t("+")),_1:{ctor:"::",_0:a(It["<$"],-1,$t("-")),_1:{ctor:"[]"}}}))),un=t(function(r,t){var n=r(t);return"Ok"===n.ctor?n._0:h.crashCase("Combine.Num",{start:{line:23,column:3},end:{line:28,column:79}},n)(a(k["++"],"impossible state in Combine.Num.unwrap: ",T(n._0)))}),cn=un(Vr),_n=(a(It["<*>"],a(It["<$>"],t(function(r,t){return r*t}),on),a(It["<?>"],a(It["<$>"],cn,Qt("(0|[1-9][0-9]*)")),"expected an integer")),un(Hr)),an=a(It["<*>"],a(It["<$>"],function(r){return t(function(r,t){return r*t})(w(r))},on),a(It["<?>"],a(It["<$>"],_n,Qt("(0|[1-9][0-9]*)(\\.[0-9]+)")),"expected a float")),fn=n(function(r,t,n){for(;;){var e=n;if("RBEmpty_elm_builtin"===e.ctor)return t;var o=r,u=f(r,e._1,e._2,f(fn,r,t,e._4)),c=e._3;r=o,t=u,n=c}}),ln=function(r){return f(fn,n(function(r,t,n){return{ctor:"::",_0:r,_1:n}}),{ctor:"[]"},r)},sn=function(r){return f(fn,n(function(r,t,n){return{ctor:"::",_0:{ctor:"_Tuple2",_0:r,_1:t},_1:n}}),{ctor:"[]"},r)},dn=n(function(r,t,n){for(;;){var e=n;if("RBEmpty_elm_builtin"===e.ctor)return t;var o=r,u=f(r,e._1,e._2,f(dn,r,t,e._3)),c=e._4;r=o,t=u,n=c}}),vn=u(function(r,e,o,u,c,i){var _=n(function(t,n,u){for(;;){var c=u,i=c._1,_=c._0,a=_;if("[]"===a.ctor)return{ctor:"_Tuple2",_0:_,_1:f(o,t,n,i)};var s=a._1,d=a._0._1,v=a._0._0;if(!(h.cmp(v,t)<0))return h.cmp(v,t)>0?{ctor:"_Tuple2",_0:_,_1:f(o,t,n,i)}:{ctor:"_Tuple2",_0:s,_1:l(e,v,d,n,i)};var p=t,g=n,m={ctor:"_Tuple2",_0:s,_1:f(r,v,d,i)};t=p,n=g,u=m}}),a=f(dn,_,{ctor:"_Tuple2",_0:sn(u),_1:i},c),s=a._0,d=a._1;return f(cr,t(function(t,n){var e=t;return f(r,e._0,e._1,n)}),d,s)}),pn=e(function(r,t,n,e){return U.crash(et({ctor:"::",_0:"Internal red-black tree invariant violated, expected ",_1:{ctor:"::",_0:r,_1:{ctor:"::",_0:" and got ",_1:{ctor:"::",_0:T(t),_1:{ctor:"::",_0:"/",_1:{ctor:"::",_0:n,_1:{ctor:"::",_0:"/",_1:{ctor:"::",_0:e,_1:{ctor:"::",_0:"\nPlease report this bug to <https://github.com/elm-lang/core/issues>",_1:{ctor:"[]"}}}}}}}}}}))}),hn=function(r){var t=r;r:do{if("RBNode_elm_builtin"===t.ctor){if("BBlack"===t._0.ctor)return!0;break r}if("LBBlack"===t._0.ctor)return!0;break r}while(!1);return!1},gn=t(function(r,t){for(;;){var n=t;if("RBEmpty_elm_builtin"===n.ctor)return r;var e=a(gn,r+1,n._4),o=n._3;r=e,t=o}}),mn=t(function(r,t){r:for(;;){var n=t;if("RBEmpty_elm_builtin"===n.ctor)return $;var e=a(A,r,n._1);switch(e.ctor){case"LT":var o=r,u=n._3;r=o,t=u;continue r;case"EQ":return W(n._2);default:var c=r,i=n._4;r=c,t=i;continue r}}}),bn=t(function(r,t){return"Just"===a(mn,r,t).ctor}),yn=n(function(r,t,n){for(;;){var e=n;if("RBEmpty_elm_builtin"===e.ctor)return{ctor:"_Tuple2",_0:r,_1:t};var o=e._1,u=e._2,c=e._4;r=o,t=u,n=c}}),kn={ctor:"NBlack"},Tn={ctor:"BBlack"},wn={ctor:"Black"},Nn=function(r){var t=r;if("RBNode_elm_builtin"===t.ctor){var n=t._0;return h.eq(n,wn)||h.eq(n,Tn)}return!0},xn={ctor:"Red"},Bn=function(r){switch(r.ctor){case"Black":return Tn;case"Red":return wn;case"NBlack":return xn;default:return U.crash("Can't make a double black node more black!")}},Rn=function(r){switch(r.ctor){case"BBlack":return wn;case"Black":return xn;case"Red":return kn;default:return U.crash("Can't make a negative black node less black!")}},En={ctor:"LBBlack"},An={ctor:"LBlack"},Cn=function(r){return{ctor:"RBEmpty_elm_builtin",_0:r}},On=Cn(An),Pn=o(function(r,t,n,e,o){return{ctor:"RBNode_elm_builtin",_0:r,_1:t,_2:n,_3:e,_4:o}}),Mn=function(r){var t=r;return"RBNode_elm_builtin"===t.ctor&&"Red"===t._0.ctor?s(Pn,wn,t._1,t._2,t._3,t._4):r},Sn=function(r){var t=r;return"RBNode_elm_builtin"===t.ctor?s(Pn,Rn(t._0),t._1,t._2,t._3,t._4):Cn(An)},Ln=function(r){return function(t){return function(n){return function(e){return function(o){return function(u){return function(c){return function(i){return function(_){return function(a){return function(f){return s(Pn,Rn(r),e,o,s(Pn,wn,t,n,i,_),s(Pn,wn,u,c,a,f))}}}}}}}}}}},qn=function(r){var t=r;return"RBEmpty_elm_builtin"===t.ctor?Cn(An):s(Pn,wn,t._1,t._2,t._3,t._4)},In=function(r){var t=r;return"RBEmpty_elm_builtin"===t.ctor?U.crash("can't make a Leaf red"):s(Pn,xn,t._1,t._2,t._3,t._4)},Jn=function(r){var t=r;r:do{t:do{n:do{e:do{o:do{u:do{c:do{if("RBNode_elm_builtin"!==t.ctor)break r;if("RBNode_elm_builtin"===t._3.ctor)if("RBNode_elm_builtin"===t._4.ctor)switch(t._3._0.ctor){case"Red":switch(t._4._0.ctor){case"Red":if("RBNode_elm_builtin"===t._3._3.ctor&&"Red"===t._3._3._0.ctor)break c;if("RBNode_elm_builtin"===t._3._4.ctor&&"Red"===t._3._4._0.ctor)break u;if("RBNode_elm_builtin"===t._4._3.ctor&&"Red"===t._4._3._0.ctor)break o;if("RBNode_elm_builtin"===t._4._4.ctor&&"Red"===t._4._4._0.ctor)break e;break r;case"NBlack":if("RBNode_elm_builtin"===t._3._3.ctor&&"Red"===t._3._3._0.ctor)break c;if("RBNode_elm_builtin"===t._3._4.ctor&&"Red"===t._3._4._0.ctor)break u;if("BBlack"===t._0.ctor&&"RBNode_elm_builtin"===t._4._3.ctor&&"Black"===t._4._3._0.ctor&&"RBNode_elm_builtin"===t._4._4.ctor&&"Black"===t._4._4._0.ctor)break n;break r;default:if("RBNode_elm_builtin"===t._3._3.ctor&&"Red"===t._3._3._0.ctor)break c;if("RBNode_elm_builtin"===t._3._4.ctor&&"Red"===t._3._4._0.ctor)break u;break r}case"NBlack":switch(t._4._0.ctor){case"Red":if("RBNode_elm_builtin"===t._4._3.ctor&&"Red"===t._4._3._0.ctor)break o;if("RBNode_elm_builtin"===t._4._4.ctor&&"Red"===t._4._4._0.ctor)break e;if("BBlack"===t._0.ctor&&"RBNode_elm_builtin"===t._3._3.ctor&&"Black"===t._3._3._0.ctor&&"RBNode_elm_builtin"===t._3._4.ctor&&"Black"===t._3._4._0.ctor)break t;break r;case"NBlack":if("BBlack"===t._0.ctor){if("RBNode_elm_builtin"===t._4._3.ctor&&"Black"===t._4._3._0.ctor&&"RBNode_elm_builtin"===t._4._4.ctor&&"Black"===t._4._4._0.ctor)break n;if("RBNode_elm_builtin"===t._3._3.ctor&&"Black"===t._3._3._0.ctor&&"RBNode_elm_builtin"===t._3._4.ctor&&"Black"===t._3._4._0.ctor)break t;break r}break r;default:if("BBlack"===t._0.ctor&&"RBNode_elm_builtin"===t._3._3.ctor&&"Black"===t._3._3._0.ctor&&"RBNode_elm_builtin"===t._3._4.ctor&&"Black"===t._3._4._0.ctor)break t;break r}default:switch(t._4._0.ctor){case"Red":if("RBNode_elm_builtin"===t._4._3.ctor&&"Red"===t._4._3._0.ctor)break o;if("RBNode_elm_builtin"===t._4._4.ctor&&"Red"===t._4._4._0.ctor)break e;break r;case"NBlack":if("BBlack"===t._0.ctor&&"RBNode_elm_builtin"===t._4._3.ctor&&"Black"===t._4._3._0.ctor&&"RBNode_elm_builtin"===t._4._4.ctor&&"Black"===t._4._4._0.ctor)break n;break r;default:break r}}else switch(t._3._0.ctor){case"Red":if("RBNode_elm_builtin"===t._3._3.ctor&&"Red"===t._3._3._0.ctor)break c;if("RBNode_elm_builtin"===t._3._4.ctor&&"Red"===t._3._4._0.ctor)break u;break r;case"NBlack":if("BBlack"===t._0.ctor&&"RBNode_elm_builtin"===t._3._3.ctor&&"Black"===t._3._3._0.ctor&&"RBNode_elm_builtin"===t._3._4.ctor&&"Black"===t._3._4._0.ctor)break t;break r;default:break r}else{if("RBNode_elm_builtin"!==t._4.ctor)break r;switch(t._4._0.ctor){case"Red":if("RBNode_elm_builtin"===t._4._3.ctor&&"Red"===t._4._3._0.ctor)break o;if("RBNode_elm_builtin"===t._4._4.ctor&&"Red"===t._4._4._0.ctor)break e;break r;case"NBlack":if("BBlack"===t._0.ctor&&"RBNode_elm_builtin"===t._4._3.ctor&&"Black"===t._4._3._0.ctor&&"RBNode_elm_builtin"===t._4._4.ctor&&"Black"===t._4._4._0.ctor)break n;break r;default:break r}}}while(!1);return Ln(t._0)(t._3._3._1)(t._3._3._2)(t._3._1)(t._3._2)(t._1)(t._2)(t._3._3._3)(t._3._3._4)(t._3._4)(t._4)}while(!1);return Ln(t._0)(t._3._1)(t._3._2)(t._3._4._1)(t._3._4._2)(t._1)(t._2)(t._3._3)(t._3._4._3)(t._3._4._4)(t._4)}while(!1);return Ln(t._0)(t._1)(t._2)(t._4._3._1)(t._4._3._2)(t._4._1)(t._4._2)(t._3)(t._4._3._3)(t._4._3._4)(t._4._4)}while(!1);return Ln(t._0)(t._1)(t._2)(t._4._1)(t._4._2)(t._4._4._1)(t._4._4._2)(t._3)(t._4._3)(t._4._4._3)(t._4._4._4)}while(!1);return s(Pn,wn,t._4._3._1,t._4._3._2,s(Pn,wn,t._1,t._2,t._3,t._4._3._3),s(Dn,wn,t._4._1,t._4._2,t._4._3._4,In(t._4._4)))}while(!1);return s(Pn,wn,t._3._4._1,t._3._4._2,s(Dn,wn,t._3._1,t._3._2,In(t._3._3),t._3._4._3),s(Pn,wn,t._1,t._2,t._3._4._4,t._4))}while(!1);return r},Dn=o(function(r,t,n,e,o){var u=s(Pn,r,t,n,e,o);return Nn(u)?Jn(u):u}),Fn=o(function(r,t,n,e,o){return hn(e)||hn(o)?s(Dn,Bn(r),t,n,Sn(e),Sn(o)):s(Pn,r,t,n,e,o)}),jn=o(function(r,t,n,e,o){var u=o;return"RBEmpty_elm_builtin"===u.ctor?f(Un,r,e,o):s(Fn,r,t,n,e,s(jn,u._0,u._1,u._2,u._3,u._4))}),Un=n(function(r,t,n){var e={ctor:"_Tuple2",_0:t,_1:n};if("RBEmpty_elm_builtin"!==e._0.ctor){if("RBEmpty_elm_builtin"===e._1.ctor){var o=e._1._0,u=e._0._0,c={ctor:"_Tuple3",_0:r,_1:u,_2:o};return"_Tuple3"===c.ctor&&"Black"===c._0.ctor&&"Red"===c._1.ctor&&"LBlack"===c._2.ctor?s(Pn,wn,e._0._1,e._0._2,e._0._3,e._0._4):l(pn,"Black/Red/LBlack",r,T(u),T(o))}var i=e._0._2,_=e._0._4,a=e._0._1,d=s(jn,e._0._0,a,i,e._0._3,_),v=f(yn,a,i,_),p=v._0,h=v._1;return s(Fn,r,p,h,d,n)}if("RBEmpty_elm_builtin"!==e._1.ctor){var g=e._1._0,m=e._0._0,b={ctor:"_Tuple3",_0:r,_1:m,_2:g};return"_Tuple3"===b.ctor&&"Black"===b._0.ctor&&"LBlack"===b._1.ctor&&"Red"===b._2.ctor?s(Pn,wn,e._1._1,e._1._2,e._1._3,e._1._4):l(pn,"Black/LBlack/Red",r,T(m),T(g))}switch(r.ctor){case"Red":return Cn(An);case"Black":return Cn(En);default:return U.crash("cannot have bblack or nblack nodes at this point")}}),zn=t(function(r,t){var n=t;if("RBEmpty_elm_builtin"===n.ctor)return Cn(An);var e=n._1;return s(Pn,n._0,e,a(r,e,n._2),a(zn,r,n._3),a(zn,r,n._4))}),$n={ctor:"Same"},Wn={ctor:"Remove"},Qn={ctor:"Insert"},Zn=n(function(r,t,n){var e=function(n){var o=n;if("RBEmpty_elm_builtin"===o.ctor){var u=t($);return"Nothing"===u.ctor?{ctor:"_Tuple2",_0:$n,_1:On}:{ctor:"_Tuple2",_0:Qn,_1:s(Pn,xn,r,u._0,On,On)}}var c=o._2,i=o._4,_=o._3,l=o._1,d=o._0;switch(a(A,r,l).ctor){case"EQ":var v=t(W(c));return"Nothing"===v.ctor?{ctor:"_Tuple2",_0:Wn,_1:f(Un,d,_,i)}:{ctor:"_Tuple2",_0:$n,_1:s(Pn,d,l,v._0,_,i)};case"LT":var p=e(_),h=p._0,g=p._1;switch(h.ctor){case"Same":return{ctor:"_Tuple2",_0:$n,_1:s(Pn,d,l,c,g,i)};case"Insert":return{ctor:"_Tuple2",_0:Qn,_1:s(Dn,d,l,c,g,i)};default:return{ctor:"_Tuple2",_0:Wn,_1:s(Fn,d,l,c,g,i)}}default:var m=e(i),h=m._0,b=m._1;switch(h.ctor){case"Same":return{ctor:"_Tuple2",_0:$n,_1:s(Pn,d,l,c,_,b)};case"Insert":return{ctor:"_Tuple2",_0:Qn,_1:s(Dn,d,l,c,_,b)};default:return{ctor:"_Tuple2",_0:Wn,_1:s(Fn,d,l,c,_,b)}}}},o=e(n),u=o._0,c=o._1;switch(u.ctor){case"Same":return c;case"Insert":return Mn(c);default:return qn(c)}}),Gn=n(function(r,t,n){return f(Zn,r,b(W(t)),n)}),Kn=(t(function(r,t){return f(Gn,r,t,On)}),t(function(r,t){return f(dn,Gn,t,r)})),Hn=t(function(r,t){var e=n(function(t,n,e){return a(r,t,n)?f(Gn,t,n,e):e});return f(dn,e,On,t)}),Vn=t(function(r,n){return a(Hn,t(function(r,t){return a(bn,r,n)}),r)}),Xn=t(function(r,t){var e=n(function(t,n,e){var o=e,u=o._1,c=o._0;return a(r,t,n)?{ctor:"_Tuple2",_0:f(Gn,t,n,c),_1:u}:{ctor:"_Tuple2",_0:c,_1:f(Gn,t,n,u)}});return f(dn,e,{ctor:"_Tuple2",_0:On,_1:On},t)}),Yn=function(r){return f(cr,t(function(r,t){var n=r;return f(Gn,n._0,n._1,t)}),On,r)},re=t(function(r,t){return f(Zn,r,b($),t)}),te=t(function(r,t){return f(dn,n(function(r,t,n){return a(re,r,n)}),r,t)}),ne=(n(function(r,t,e){var o=e;return f(fn,n(function(t,n,e){return a(r,t,e)}),t,o._0)}),n(function(r,t,e){var o=e;return f(dn,n(function(t,n,e){return a(r,t,e)}),t,o._0)}),function(r){return ln(r._0)}),ee=t(function(r,t){return a(bn,r,t._0)}),oe=function(r){return{ctor:"Set_elm_builtin",_0:r}},ue=oe(On),ce=t(function(r,t){return oe(f(Gn,r,{ctor:"_Tuple0"},t._0))}),ie=function(r){return f(cr,ce,ue,r)},_e=(t(function(r,t){return ie(a(dr,r,ne(t)))}),t(function(r,t){return oe(a(re,r,t._0))}),t(function(r,t){var n=r,e=t;return oe(a(Kn,n._0,e._0))}),t(function(r,t){var n=r,e=t;return oe(a(Vn,n._0,e._0))}),t(function(r,t){var n=r,e=t;return oe(a(te,n._0,e._0))}),t(function(r,n){var e=n;return oe(a(Hn,t(function(t,n){return r(t)}),e._0))}),t(function(r,n){var e=n,o=a(Xn,t(function(t,n){return r(t)}),e._0),u=o._0,c=o._1;return{ctor:"_Tuple2",_0:oe(u),_1:oe(c)}}),n(function(r,t,n){var e=h.cmp(ir(n),0)>0,o=h.cmp(r,0)>0&&h.cmp(t,0)>0,u=a(X,t,n),c=a(xr,r,n);return o&&e?{ctor:"::",_0:c,_1:f(_e,r,t,u)}:{ctor:"[]"}})),ae=t(function(r,t){return f(_e,r,r,t)}),fe=n(function(r,t,n){var e=h.cmp(r,0)>0&&h.cmp(t,0)>0,o=a(X,t,n),u=a(xr,r,n),c=h.eq(r,ir(u));return e&&c?{ctor:"::",_0:u,_1:f(fe,r,t,o)}:{ctor:"[]"}}),le=(t(function(r,t){return f(fe,r,r,t)}),Y(o(function(r,t,n,e,o){return{ctor:"_Tuple5",_0:r,_1:t,_2:n,_3:e,_4:o}})),rr(e(function(r,t,n,e){return{ctor:"_Tuple4",_0:r,_1:t,_2:n,_3:e}})),tr(n(function(r,t,n){return{ctor:"_Tuple3",_0:r,_1:t,_2:n}})),nr(t(function(r,t){return{ctor:"_Tuple2",_0:r,_1:t}})),t(function(r,t){var n={ctor:"_Tuple2",_0:r,_1:t};return"[]"===n._0.ctor||"[]"!==n._1.ctor&&(h.eq(n._0._0,n._1._0)&&a(le,n._0._1,n._1._1))})),se=(t(function(r,t){return a(le,hr(r),hr(t))}),function(r){var t=r;if("[]"===t.ctor)return{ctor:"[]"};var n=t._1,e=t._0;return{ctor:"::",_0:{ctor:"_Tuple2",_0:e,_1:n},_1:a(dr,function(r){var t=r;return{ctor:"_Tuple2",_0:t._0,_1:{ctor:"::",_0:e,_1:t._1}}},se(n))}}),de=t(function(r,t){var n=t;if("::"===n.ctor){var e=n._0;return{ctor:"::",_0:{ctor:"::",_0:r,_1:e},_1:{ctor:"::",_0:e,_1:n._1}}}return{ctor:"[]"}}),ve=a(ur,de,{ctor:"::",_0:{ctor:"[]"},_1:{ctor:"[]"}}),pe=(t(function(r,t){return a(er,le(r),ve(t))}),a(ur,t(function(r,n){return{ctor:"::",_0:{ctor:"[]"},_1:a(dr,t(function(r,t){return{ctor:"::",_0:r,_1:t}})(r),n)}}),{ctor:"::",_0:{ctor:"[]"},_1:{ctor:"[]"}}),t(function(r,t){var n=t;if("[]"===n.ctor)return{ctor:"[]"};if("[]"===n._1.ctor)return{ctor:"::",_0:{ctor:"::",_0:n._0,_1:{ctor:"[]"}},_1:{ctor:"[]"}};var e=n._0,o=a(pe,r,n._1);return"::"===o.ctor?a(r,e,n._1._0)?{ctor:"::",_0:{ctor:"::",_0:e,_1:o._0},_1:o._1}:{ctor:"::",_0:{ctor:"::",_0:e,_1:{ctor:"[]"}},_1:o}:{ctor:"[]"}})),he=(t(function(r,n){var e=t(function(r,t){var n=t;return"Nothing"===n.ctor?$:"[]"===n._0.ctor?$:h.eq(r,n._0._0)?W(n._0._1):$});return f(cr,e,W(n),r)}),t(function(r,t){return{ctor:"_Tuple2",_0:a(xr,r,t),_1:a(X,r,t)}})),ge=n(function(r,t,n){for(;;){var e={ctor:"_Tuple2",_0:r,_1:t};{if("_Tuple2"!==e.ctor||"::"!==e._0.ctor||"::"!==e._1.ctor)return hr(n);var o=a(he,e._0._0,t),u=o._0,c=o._1,i=e._0._1,_=c,f={ctor:"::",_0:u,_1:n};r=i,t=_,n=f}}}),me=(t(function(r,t){return f(ge,r,t,{ctor:"[]"})}),t(function(r,t){var n=r(t);return"Nothing"===n.ctor?{ctor:"[]"}:{ctor:"::",_0:n._0._0,_1:a(me,r,n._0._1)}})),be=t(function(r,t){var n=t;if("[]"===n.ctor)return{ctor:"[]"};if("[]"===n._1.ctor)return{ctor:"::",_0:n._0,_1:{ctor:"[]"}};var e=a(be,r,n._1);return"::"===e.ctor?{ctor:"::",_0:a(r,n._0,e._0),_1:e}:{ctor:"[]"}}),ye=n(function(r,t,n){var e=n;if("[]"===e.ctor)return{ctor:"::",_0:t,_1:{ctor:"[]"}};var o=f(ye,r,t,e._1);return"::"===o.ctor?{ctor:"::",_0:a(r,e._0,o._0),_1:o}:{ctor:"[]"}}),ke=(t(function(r,t){var n=t;return"[]"===n.ctor?{ctor:"[]"}:f(gr,r,n._0,n._1)}),n(function(r,n,e){var o=t(function(t,n){var e=n,o=e._0;return{ctor:"_Tuple2",_0:o-1,_1:f(r,o,t,e._1)}});return _t(f(ur,o,{ctor:"_Tuple2",_0:ir(e)-1,_1:n},e))}),n(function(r,n,e){var o=t(function(t,n){var e=n,o=e._0;return{ctor:"_Tuple2",_0:o+1,_1:f(r,o,t,e._1)}});return _t(f(cr,o,{ctor:"_Tuple2",_0:0,_1:n},e))}),t(function(r,n){var e=t(function(t,n){return W(function(){var e=n;return"Nothing"===e.ctor?t:a(r,t,e._0)}())});return f(ur,e,$,n)}),t(function(r,n){var e=t(function(t,n){return W(function(){var e=n;return"Nothing"===e.ctor?t:a(r,e._0,t)}())});return f(cr,e,$,n)})),Te=n(function(r,t,n){r:for(;;){var e={ctor:"_Tuple2",_0:r,_1:t};t:do{if("::"===e._0.ctor){if("::"===e._1.ctor){var o=e._0._1,u=e._1._1,c=a(k["++"],n,{ctor:"::",_0:e._0._0,_1:{ctor:"::",_0:e._1._0,_1:{ctor:"[]"}}});r=o,t=u,n=c;continue r}break t}if("[]"===e._1.ctor)break t;return a(k["++"],n,e._1)}while(!1);return a(k["++"],n,e._0)}}),we=(t(function(r,t){return f(Te,r,t,{ctor:"[]"})}),function(r){var n=r;return"[]"===n.ctor?{ctor:"::",_0:{ctor:"[]"},_1:{ctor:"[]"}}:a(yr,function(r){var n=r;return a(dr,t(function(r,t){return{ctor:"::",_0:r,_1:t}})(n._0),we(n._1))},se(n))}),Ne=(t(function(r,t){return a(_r,r,we(t))}),function(r){var n=r;if("[]"===n.ctor)return{ctor:"[]"};var e=n._0,o=t(function(r,t){return{ctor:"::",_0:r,_1:{ctor:"::",_0:{ctor:"::",_0:e,_1:r},_1:t}}});return{ctor:"::",_0:{ctor:"::",_0:e,_1:{ctor:"[]"}},_1:f(ur,o,{ctor:"[]"},Ne(n._1))}}),xe=function(r){return{ctor:"::",_0:{ctor:"[]"},_1:Ne(r)}},Be=(t(function(r,t){return a(_r,r,xe(t))}),t(function(r,t){return a(vr,function(t){return!r(t)},t)}),t(function(r,t){if(h.cmp(r,0)<0)return t;var n=fr(a(X,r,t)),e=a(xr,r,t),o=n;return"Nothing"===o.ctor?t:a(mr,e,o._0)}),t(function(r,n){var e=t(function(t,n){var e=t,o=n,u=a(r,e._0,o._0);return"EQ"===u.ctor?a(A,e._1,o._1):u}),o=a(Ar,t(function(r,t){return{ctor:"_Tuple2",_0:t,_1:r}}),n);return a(dr,at,a(K,e,o))}),n(function(r,t,n){if(h.cmp(r,0)<0)return $;var e=fr(a(X,r,n)),o=a(xr,r,n),u=e;return"Nothing"===u.ctor?$:W(a(mr,o,{ctor:"::",_0:t,_1:u._0}))}),t(function(r,t){var n=t;if("[]"===n.ctor)return{ctor:"[]"};var e=n._1,o=n._0;return h.eq(r,o)?e:{ctor:"::",_0:o,_1:a(Be,r,e)}})),Re=n(function(r,n,e){return a(Ar,t(function(t,e){return r(t)?n(e):e}),e)}),Ee=(n(function(r,n,e){return h.cmp(r,0)<0||h.cmp(r,ir(e))>-1?$:W(f(Re,t(function(r,t){return h.eq(r,t)})(r),n,e))}),n(function(r,t,n){return a(dr,function(n){return r(n)?t(n):n},n)})),Ae=(n(function(r,t,n){return f(Ee,r,b(t),n)}),function(r){return function(n){return a(dr,at,a(vr,function(t){return r(t._1)},a(Ar,t(function(r,t){return{ctor:"_Tuple2",_0:r,_1:t}}),n)))}}),Ce=function(r){return function(t){return lr(a(Ae,r,t))}},Oe=(t(function(r,t){return a(Q,function(r){return a(he,r,t)},a(Ce,r,t))}),t(function(r,t){for(;;){var n=t;if("[]"===n.ctor)return $;var e=n._0;if(r(e))return W(e);var o=r,u=n._1;r=o,t=u}}),yr),Pe=(n(function(r,t,n){return a(Oe,function(t){return a(Oe,function(n){return{ctor:"::",_0:a(r,t,n),_1:{ctor:"[]"}}},n)},t)}),e(function(r,t,n,e){return a(Oe,function(t){return a(Oe,function(n){return a(Oe,function(e){return{ctor:"::",_0:f(r,t,n,e),_1:{ctor:"[]"}}},e)},n)},t)}),o(function(r,t,n,e,o){return a(Oe,function(t){return a(Oe,function(n){return a(Oe,function(e){return a(Oe,function(o){return{ctor:"::",_0:l(r,t,n,e,o),_1:{ctor:"[]"}}},o)},e)},n)},t)}),t(function(r,n){return f(nr,t(function(r,t){return r(t)}),n,r)}),n(function(r,t,n){for(;;){var e=n;if("[]"===e.ctor)return{ctor:"[]"};var o=e._1,u=e._0,c=r(u);{if(!a(ee,c,t))return{ctor:"::",_0:u,_1:f(Pe,r,a(ce,c,t),o)};var i=r,_=t,l=o;r=i,t=_,n=l}}})),Me=t(function(r,t){return f(Pe,r,ue,t)}),Se=(t(function(r,t){return h.eq(ir(t),ir(a(Me,r,t)))}),t(function(r,t){for(;;){var n=t;if("[]"===n.ctor)return{ctor:"[]"};{if(!r(n._0))return t;var e=r,o=n._1;r=e,t=o}}})),Le=function(r){return t(function(t,n){for(;;){var e=n;if("[]"===e.ctor)return hr(t);var o=e._0;{if(!r(o))return hr(t);var u={ctor:"::",_0:o,_1:t},c=e._1;t=u,n=c}}})({ctor:"[]"})},qe=t(function(r,t){return{ctor:"_Tuple2",_0:a(Le,r,t),_1:a(Se,r,t)}}),Ie=t(function(r,t){var n=t;if("[]"===n.ctor)return{ctor:"[]"};var e=n._0,o=a(qe,r(e),n._1),u=o._0,c=o._1;return{ctor:"::",_0:{ctor:"::",_0:e,_1:u},_1:a(Ie,r,c)}}),Je=(Ie(t(function(r,t){return h.eq(r,t)})),t(function(r,n){var e=t(function(t,n){var e=n,o=e._1,u=r(t);return h.cmp(u,o)<0?{ctor:"_Tuple2",_0:t,_1:u}:{ctor:"_Tuple2",_0:e._0,_1:o}}),o=n;if("::"===o.ctor){if("[]"===o._1.ctor)return W(o._0);var u=o._0;return W(at(f(cr,e,{ctor:"_Tuple2",_0:u,_1:r(u)},o._1)))}return $}),t(function(r,n){var e=t(function(t,n){var e=n,o=e._1,u=r(t);return h.cmp(u,o)>0?{ctor:"_Tuple2",_0:t,_1:u}:{ctor:"_Tuple2",_0:e._0,_1:o}}),o=n;if("::"===o.ctor){if("[]"===o._1.ctor)return W(o._0);var u=o._0;return W(at(f(cr,e,{ctor:"_Tuple2",_0:u,_1:r(u)},o._1)))}return $}),function(r){var t=r;return"[]"===t.ctor?$:W({ctor:"_Tuple2",_0:t._0,_1:t._1})}),De=(n(function(r,n,e){for(;;){if(h.eq(r,n))return W(e);{if(!(h.cmp(r,n)>0)){if(h.cmp(r,0)<0)return $;var o=a(he,r,e),u=o._0,c=o._1,i=a(he,n-r,c),_=i._0,l=i._1;return f(Z,t(function(r,t){var n=r,e=t;return br({ctor:"::",_0:u,_1:{ctor:"::",_0:{ctor:"::",_0:e._0,_1:n._1},_1:{ctor:"::",_0:{ctor:"::",_0:n._0,_1:e._1},_1:{ctor:"[]"}}}})}),Je(_),Je(l))}var s=n,d=r,v=e;r=s,n=d,e=v}}}),t(function(r,t){var n=r(t);return"Just"===n.ctor?{ctor:"::",_0:t,_1:a(De,r,n._0)}:{ctor:"::",_0:t,_1:{ctor:"[]"}}})),Fe=t(function(r,t){return h.cmp(r,0)<0?$:lr(a(X,r,t))}),je=je||{};je["!!"]=m(Fe);var Ue=(function(){var r=t(function(r,t){return function(n){return a(z,r,a(Q,t,n))}});a(ur,function(n){return function(e){return W(f(r,{ctor:"[]"},t(function(r,t){return{ctor:"::",_0:r,_1:t}})(n),e))}},$)}(),ke(m(b))),ze=t(function(r,t){return h.eq(r,0)?{ctor:"::",_0:{ctor:"[]"},_1:{ctor:"[]"}}:h.cmp(r,0)<0?{ctor:"[]"}:h.cmp(ir(t),r)>0?{ctor:"::",_0:a(xr,r,t),_1:a(ze,r,a(X,r,t))}:{ctor:"::",_0:t,_1:{ctor:"[]"}}}),$e=(t(function(r,t){return"Err"===t.ctor?r:t}),t(function(r,t){return"Err"===t.ctor?r({ctor:"_Tuple0"}):t}),t(function(r,t){return"Err"===r.ctor?t({ctor:"_Tuple0"}):r}),t(function(r,t){return"Err"===r.ctor?t:r}),t(function(r,t){var n={ctor:"_Tuple2",_0:r,_1:t};return"Err"===n._1.ctor?Pr(n._1._0):a(Lr,n._1._0,n._0)}),a(ur,qr(t(function(r,t){return{ctor:"::",_0:r,_1:t}})),Sr({ctor:"[]"}))),We=(n(function(r,t,n){var e=n;return"Ok"===e.ctor?Sr(t(e._0)):Pr(r(e._0))}),n(function(r,t,n){var e=n;return"Ok"===e.ctor?t(e._0):r(e._0)}),n(function(r,t,n){var e=n;return"Ok"===e.ctor?t(e._0):r}),t(function(r,t){var n=t;return"Ok"===n.ctor?n._0:r(n._0)}),function(){function r(r,t){if(r<0||r>=q(t))throw new Error("Index "+r+" is out of range. Check the length of your array first or use getMaybe or getWithDefault.");return e(r,t)}function e(r,t){for(var n=t.height;n>0;n--){for(var e=r>>5*n;t.lengths[e]<=r;)e++;e>0&&(r-=t.lengths[e-1]),t=t.table[e]}return t.table[r]}function o(r,t,n){return r<0||q(n)<=r?n:u(r,t,n)}function u(r,t,n){if(n=L(n),0===n.height)n.table[r]=t;else{var e=I(r,n);e>0&&(r-=n.lengths[e-1]),n.table[e]=u(r,t,n.table[e])}return n}function c(r,t){return r<=0?Z:i(t,Math.floor(Math.log(r)/Math.log(W)),0,r)}function i(r,t,n,e){if(0===t){for(var o=new Array((e-n)%(W+1)),u=0;u<o.length;u++)o[u]=r(n+u);return{ctor:"_Array",height:0,table:o}}for(var c=Math.pow(W,t),o=new Array(Math.ceil((e-n)/c)),_=new Array(o.length),u=0;u<o.length;u++)o[u]=i(r,t-1,n+u*c,Math.min(n+(u+1)*c,e)),_[u]=q(o[u])+(u>0?_[u-1]:0);return{ctor:"_Array",height:t,table:o,lengths:_}}function _(r){if("[]"===r.ctor)return Z;for(var t=new Array(W),n=[],e=0;"[]"!==r.ctor;)if(t[e]=r._0,r=r._1,++e===W){var o={ctor:"_Array",height:0,table:t};f(o,n),t=new Array(W),e=0}if(e>0){var o={ctor:"_Array",height:0,table:t.splice(0,e)};f(o,n)}for(var u=0;u<n.length-1;u++)n[u].table.length>0&&f(n[u],n);var c=n[n.length-1];return c.height>0&&1===c.table.length?c.table[0]:c}function f(r,t){var n=r.height;if(t.length===n){var e={ctor:"_Array",height:n+1,table:[],lengths:[]};t.push(e)}t[n].table.push(r);var o=q(r);t[n].lengths.length>0&&(o+=t[n].lengths[t[n].lengths.length-1]),t[n].lengths.push(o),t[n].table.length===W&&(f(t[n],t),t[n]={ctor:"_Array",height:n+1,table:[],lengths:[]})}function l(r,t){var n=s(r,t);return null!==n?n:F(t,J(r,t.height))}function s(r,t){if(0===t.height){if(t.table.length<W){var n={ctor:"_Array",height:0,table:t.table.slice()};return n.table.push(r),n}return null}var e=s(r,M(t));if(null!==e){var n=L(t);return n.table[n.table.length-1]=e,n.lengths[n.lengths.length-1]++,n}if(t.table.length<W){var o=J(r,t.height-1),n=L(t);return n.table.push(o),n.lengths.push(n.lengths[n.lengths.length-1]+q(o)),n}return null}function d(r){return v(G.Nil,r)}function v(r,t){for(var n=t.table.length-1;n>=0;n--)r=0===t.height?G.Cons(t.table[n],r):v(r,t.table[n]);return r}function p(r,t){var n={ctor:"_Array",height:t.height,table:new Array(t.table.length)};t.height>0&&(n.lengths=t.lengths);for(var e=0;e<t.table.length;e++)n.table[e]=0===t.height?r(t.table[e]):p(r,t.table[e]);return n}function h(r,t){return g(r,t,0)}function g(r,t,n){var e={ctor:"_Array",height:t.height,table:new Array(t.table.length)};t.height>0&&(e.lengths=t.lengths);for(var o=0;o<t.table.length;o++)e.table[o]=0===t.height?a(r,n+o,t.table[o]):g(r,t.table[o],0==o?n:n+t.lengths[o-1]);return e}function m(r,t,n){if(0===n.height)for(var e=0;e<n.table.length;e++)t=a(r,n.table[e],t);else for(var e=0;e<n.table.length;e++)t=m(r,t,n.table[e]);return t}function b(r,t,n){if(0===n.height)for(var e=n.table.length;e--;)t=a(r,n.table[e],t);else for(var e=n.table.length;e--;)t=b(r,t,n.table[e]);return t}function y(r,t,n){return r<0&&(r+=q(n)),t<0&&(t+=q(n)),T(r,k(t,n))}function k(r,t){if(r===q(t))return t;if(0===t.height){var n={ctor:"_Array",height:0};return n.table=t.table.slice(0,r),n}var e=I(r,t),o=k(r-(e>0?t.lengths[e-1]:0),t.table[e]);if(0===e)return o;var n={ctor:"_Array",height:t.height,table:t.table.slice(0,e),lengths:t.lengths.slice(0,e)};return o.table.length>0&&(n.table[e]=o,n.lengths[e]=q(o)+(e>0?n.lengths[e-1]:0)),n}function T(r,t){if(0===r)return t;if(0===t.height){var n={ctor:"_Array",height:0};return n.table=t.table.slice(r,t.table.length+1),n}var e=I(r,t),o=T(r-(e>0?t.lengths[e-1]:0),t.table[e]);if(e===t.table.length-1)return o;var n={ctor:"_Array",height:t.height,table:t.table.slice(e,t.table.length+1),lengths:new Array(t.table.length-e)};n.table[0]=o;for(var u=0,c=0;c<n.table.length;c++)u+=q(n.table[c]),n.lengths[c]=u;return n}function w(r,t){if(0===r.table.length)return t;if(0===t.table.length)return r;var n=N(r,t);if(n[0].table.length+n[1].table.length<=W){if(0===n[0].table.length)return n[1];if(0===n[1].table.length)return n[0];if(n[0].table=n[0].table.concat(n[1].table),n[0].height>0){for(var e=q(n[0]),o=0;o<n[1].lengths.length;o++)n[1].lengths[o]+=e;n[0].lengths=n[0].lengths.concat(n[1].lengths)}return n[0]}if(n[0].height>0){var u=R(r,t);u>Q&&(n=P(n[0],n[1],u))}return F(n[0],n[1])}function N(r,t){if(0===r.height&&0===t.height)return[r,t];if(1!==r.height||1!==t.height)if(r.height===t.height){r=L(r),t=L(t);var n=N(M(r),S(t));x(r,n[1]),B(t,n[0])}else if(r.height>t.height){r=L(r);var n=N(M(r),t);x(r,n[0]),t=D(n[1],n[1].height+1)}else{t=L(t);var n=N(r,S(t)),e=0===n[0].table.length?0:1,o=0===e?1:0;B(t,n[e]),r=D(n[o],n[o].height+1)}if(0===r.table.length||0===t.table.length)return[r,t];var u=R(r,t);return u<=Q?[r,t]:P(r,t,u)}function x(r,t){var n=r.table.length-1;r.table[n]=t,r.lengths[n]=q(t),r.lengths[n]+=n>0?r.lengths[n-1]:0}function B(r,t){if(t.table.length>0){r.table[0]=t,r.lengths[0]=q(t);for(var n=q(r.table[0]),e=1;e<r.lengths.length;e++)n+=q(r.table[e]),r.lengths[e]=n}else{r.table.shift();for(var e=1;e<r.lengths.length;e++)r.lengths[e]=r.lengths[e]-r.lengths[0];r.lengths.shift()}}function R(r,t){for(var n=0,e=0;e<r.table.length;e++)n+=r.table[e].table.length;for(var e=0;e<t.table.length;e++)n+=t.table[e].table.length;return r.table.length+t.table.length-(Math.floor((n-1)/W)+1)}function E(r,t,n){return n<r.length?r[n]:t[n-r.length]}function A(r,t,n,e){n<r.length?r[n]=e:t[n-r.length]=e}function C(r,t,n,e){A(r.table,t.table,n,e);var o=0===n||n===r.lengths.length?0:E(r.lengths,r.lengths,n-1);A(r.lengths,t.lengths,n,o+q(e))}function O(r,t){t<0&&(t=0);var n={ctor:"_Array",height:r,table:new Array(t)};return r>0&&(n.lengths=new Array(t)),n}function P(r,t,n){for(var e=O(r.height,Math.min(W,r.table.length+t.table.length-n)),o=O(r.height,e.table.length-(r.table.length+t.table.length-n)),u=0;E(r.table,t.table,u).table.length%W==0;)A(e.table,o.table,u,E(r.table,t.table,u)),A(e.lengths,o.lengths,u,E(r.lengths,t.lengths,u)),u++;for(var c=u,i=new O(r.height-1,0),_=0;u-c-(i.table.length>0?1:0)<n;){var a=E(r.table,t.table,u),f=Math.min(W-i.table.length,a.table.length);if(i.table=i.table.concat(a.table.slice(_,f)),i.height>0)for(var l=i.lengths.length,s=l;s<l+f-_;s++)i.lengths[s]=q(i.table[s]),i.lengths[s]+=s>0?i.lengths[s-1]:0;_+=f,a.table.length<=f&&(u++,_=0),i.table.length===W&&(C(e,o,c,i),i=O(r.height-1,0),c++)}for(i.table.length>0&&(C(e,o,c,i),c++);u<r.table.length+t.table.length;)C(e,o,c,E(r.table,t.table,u)),u++,c++;return[e,o]}function M(r){return r.table[r.table.length-1]}function S(r){return r.table[0]}function L(r){var t={ctor:"_Array",height:r.height,table:r.table.slice()};return r.height>0&&(t.lengths=r.lengths.slice()),t}function q(r){return 0===r.height?r.table.length:r.lengths[r.lengths.length-1]}function I(r,t){for(var n=r>>5*t.height;t.lengths[n]<=r;)n++;return n}function J(r,t){return 0===t?{ctor:"_Array",height:0,table:[r]}:{ctor:"_Array",height:t,table:[J(r,t-1)],lengths:[1]}}function D(r,t){return t===r.height?r:{ctor:"_Array",height:t,table:[D(r,t-1)],lengths:[q(r)]}}function F(r,t){return{ctor:"_Array",height:r.height+1,table:[r,t],lengths:[q(r),q(r)+q(t)]}}function j(r){var t=new Array(q(r));return U(t,0,r),t}function U(r,t,n){for(var e=0;e<n.table.length;e++)if(0===n.height)r[t+e]=n.table[e];else{var o=0===e?0:n.lengths[e-1];U(r,t+o,n.table[e])}}function z(r){return 0===r.length?Z:$(r,Math.floor(Math.log(r.length)/Math.log(W)),0,r.length)}function $(r,t,n,e){if(0===t)return{ctor:"_Array",height:0,table:r.slice(n,e)};for(var o=Math.pow(W,t),u=new Array(Math.ceil((e-n)/o)),c=new Array(u.length),i=0;i<u.length;i++)u[i]=$(r,t-1,n+i*o,Math.min(n+(i+1)*o,e)),c[i]=q(u[i])+(i>0?c[i-1]:0);return{ctor:"_Array",height:t,table:u,lengths:c}}var W=32,Q=2,Z={ctor:"_Array",height:0,table:[]};return{empty:Z,fromList:_,toList:d,initialize:t(c),append:t(w),push:t(l),slice:n(y),get:t(r),set:n(o),map:t(p),indexedMap:t(h),foldl:n(m),foldr:n(b),length:q,toJSArray:j,fromJSArray:z}}()),Qe=(We.append,We.length,We.slice,We.set,t(function(r,t){return h.cmp(0,r)<1&&h.cmp(r,We.length(t))<0?W(a(We.get,r,t)):$})),Ze=(We.push,We.empty,t(function(r,n){var e=t(function(t,n){return r(t)?a(We.push,t,n):n});return f(We.foldl,e,We.empty,n)}),We.foldr,We.foldl,We.indexedMap,We.map,We.toList),Ge=We.fromList,Ke=We.initialize,He=(t(function(r,t){return a(Ke,r,b(t))}),function(){return{and:t(function(r,t){return r&t}),or:t(function(r,t){return r|t}),xor:t(function(r,t){return r^t}),complement:function(r){return~r},shiftLeftBy:t(function(r,t){return t<<r}),shiftRightBy:t(function(r,t){return t>>r}),shiftRightZfBy:t(function(r,t){return t>>>r})}}()),Ve=(He.shiftRightZfBy,He.shiftRightBy,He.shiftLeftBy,He.complement,He.xor,He.or,He.and,t(function(r,t){var n=x(r);return w(a(k["%"],n,t))+r-w(n)})),Xe=(n(function(r,t,n){var e=w(n)/255,o=w(t)/255,u=w(r)/255,c=a(R,a(R,u,o),e),i=a(E,a(E,u,o),e),_=c-i,f=(c+i)/2,l=h.eq(f,0)?0:_/(1-M(2*f-1));return{ctor:"_Tuple3",_0:J(60)*(h.eq(c,u)?a(Ve,(o-e)/_,6):h.eq(c,o)?(e-u)/_+2:(u-o)/_+4),_1:l,_2:f}}),n(function(r,t,n){var e=r/J(60),o=(1-M(2*n-1))*t,u=o*(1-M(a(Ve,e,2)-1)),c=h.cmp(e,0)<0?{ctor:"_Tuple3",_0:0,_1:0,_2:0}:h.cmp(e,1)<0?{ctor:"_Tuple3",_0:o,_1:u,_2:0}:h.cmp(e,2)<0?{ctor:"_Tuple3",_0:u,_1:o,_2:0}:h.cmp(e,3)<0?{ctor:"_Tuple3",_0:0,_1:o,_2:u}:h.cmp(e,4)<0?{ctor:"_Tuple3",_0:0,_1:u,_2:o}:h.cmp(e,5)<0?{ctor:"_Tuple3",_0:u,_1:0,_2:o}:h.cmp(e,6)<0?{ctor:"_Tuple3",_0:o,_1:0,_2:u}:{ctor:"_Tuple3",_0:0,_1:0,_2:0},i=c._0,_=c._1,f=c._2,l=n-o/2;return{ctor:"_Tuple3",_0:i+l,_1:_+l,_2:f+l}})),Ye=function(r){var t=r;if("RGBA"===t.ctor)return{red:t._0,green:t._1,blue:t._2,alpha:t._3};var n=f(Xe,t._0,t._1,t._2),e=n._0,o=n._1,u=n._2;return{red:B(255*e),green:B(255*o),blue:B(255*u),alpha:t._3}},ro=e(function(r,t,n,e){return{ctor:"HSLA",_0:r,_1:t,_2:n,_3:e}}),to=e(function(r,t,n,e){return l(ro,r-I(w(x(r/(2*O)))),t,n,e)}),no=n(function(r,t,n){return l(to,r,t,n,1)}),eo=e(function(r,t,n,e){return{ctor:"RGBA",_0:r,_1:t,_2:n,_3:e}}),oo=(n(function(r,t,n){return l(eo,r,t,n,1)}),l(eo,239,41,41,1),l(eo,204,0,0,1),l(eo,164,0,0,1),l(eo,252,175,62,1),l(eo,245,121,0,1),l(eo,206,92,0,1),l(eo,255,233,79,1),l(eo,237,212,0,1),l(eo,196,160,0,1),l(eo,138,226,52,1),l(eo,115,210,22,1),l(eo,78,154,6,1),l(eo,114,159,207,1),l(eo,52,101,164,1),l(eo,32,74,135,1),l(eo,173,127,168,1),l(eo,117,80,123,1),l(eo,92,53,102,1),l(eo,233,185,110,1),l(eo,193,125,17,1),l(eo,143,89,2,1),l(eo,0,0,0,1),l(eo,255,255,255,1),l(eo,238,238,236,1),l(eo,211,215,207,1),l(eo,186,189,182,1),l(eo,238,238,236,1),l(eo,211,215,207,1),l(eo,186,189,182,1),l(eo,136,138,133,1),l(eo,85,87,83,1),l(eo,46,52,54,1),o(function(r,t,n,e,o){return{ctor:"Radial",_0:r,_1:t,_2:n,_3:e,_4:o}}),n(function(r,t,n){return{ctor:"Linear",_0:r,_1:t,_2:n}}),lt.onError),uo=lt.andThen,co=t(function(r,t){var n=t;return lt.spawn(a(uo,mt(r),n._0))}),io=lt.fail,_o=(t(function(r,t){return a(oo,function(t){return io(r(t))},t)}),lt.succeed),ao=t(function(r,t){return a(uo,function(t){return _o(r(t))},t)}),fo=n(function(r,t,n){return a(uo,function(t){return a(uo,function(n){return _o(a(r,t,n))},n)},t)}),lo=(e(function(r,t,n,e){return a(uo,function(t){return a(uo,function(n){return a(uo,function(e){return _o(f(r,t,n,e))},e)},n)},t)}),o(function(r,t,n,e,o){return a(uo,function(t){return a(uo,function(n){return a(uo,function(e){return a(uo,function(o){return _o(l(r,t,n,e,o))},o)},e)},n)},t)}),u(function(r,t,n,e,o,u){return a(uo,function(t){return a(uo,function(n){return a(uo,function(e){return a(uo,function(o){return a(uo,function(u){return _o(s(r,t,n,e,o,u))},u)},o)},e)},n)},t)}),function(r){var n=r;return"[]"===n.ctor?_o({ctor:"[]"}):f(fo,t(function(r,t){return{ctor:"::",_0:r,_1:t}}),n._0,lo(n._1))}),so=n(function(r,t,n){return a(ao,function(r){return{ctor:"_Tuple0"}},lo(a(dr,co(r),t)))}),vo=_o({ctor:"_Tuple0"}),po=n(function(r,t,n){return _o({ctor:"_Tuple0"})}),ho=ft.leaf("Task"),go=function(r){return{ctor:"Perform",_0:r}},mo=(t(function(r,t){return ho(go(a(ao,r,t)))}),t(function(r,t){return ho(go(a(oo,function(t){return _o(r(Pr(t)))},a(uo,function(t){return _o(r(Sr(t)))},t))))}),t(function(r,t){return go(a(ao,r,t._0))}));ft.effectManagers.Task={pkg:"elm-lang/core",init:vo,onEffects:so,onSelfMsg:po,tag:"cmd",cmdMap:mo};var bo=function(){function r(r,t){return lt.nativeBinding(function(n){var e=setInterval(function(){lt.rawSpawn(t)},r);return function(){clearInterval(e)}})}return{now:lt.nativeBinding(function(r){r(lt.succeed(Date.now()))}),setInterval_:t(r)}}(),yo=bo.setInterval_,ko=n(function(r,t,n){var e=t;if("[]"===e.ctor)return _o(n);var o=e._0,u=function(t){return f(ko,r,e._1,f(Gn,o,t,n))},c=lt.spawn(a(yo,o,a(gt,r,o)));return a(uo,u,c)}),To=t(function(r,t){var n=r,e=n._1,o=n._0,u=a(mn,o,t);return"Nothing"===u.ctor?f(Gn,o,{ctor:"::",_0:e,_1:{ctor:"[]"}},t):f(Gn,o,{ctor:"::",_0:e,_1:u._0},t)}),wo=bo.now,No=n(function(r,t,n){var e=a(mn,t,n.taggers);if("Nothing"===e.ctor)return _o(n);var o=function(t){return lo(a(dr,function(n){return a(mt,r,n(t))},e._0))};return a(uo,function(r){return _o(n)},a(uo,o,wo))}),xo=ft.leaf("Time"),Bo=t(function(r,t){return{taggers:r,processes:t}}),Ro=_o(a(Bo,On,On)),Eo=n(function(r,t,o){var u=o,c=n(function(r,t,n){var e=n;return{ctor:"_Tuple3",_0:e._0,_1:e._1,_2:a(uo,function(r){return e._2},lt.kill(t))}}),i=e(function(r,t,n,e){var o=e;return{ctor:"_Tuple3",_0:o._0,_1:f(Gn,r,n,o._1),_2:o._2}}),_=n(function(r,t,n){var e=n;return{ctor:"_Tuple3",_0:{ctor:"::",_0:r,_1:e._0},_1:e._1,_2:e._2}}),l=f(cr,To,On,t),s=d(vn,_,i,c,l,u.processes,{ctor:"_Tuple3",_0:{ctor:"[]"},_1:On,_2:_o({ctor:"_Tuple0"})}),v=s._0,p=s._1,h=s._2;return a(uo,function(r){return _o(a(Bo,l,r))},a(uo,function(t){return f(ko,r,v,p)},h))}),Ao=t(function(r,t){return{ctor:"Every",_0:r,_1:t}}),Co=(t(function(r,t){return xo(a(Ao,r,t))}),t(function(r,t){var n=t;return a(Ao,n._0,function(t){return r(n._1(t))})}));ft.effectManagers.Time={pkg:"elm-lang/core",init:Ro,onEffects:Eo,onSelfMsg:No,tag:"sub",subMap:Co};var Oo=function(){function r(r){return{ctor:"<decoder>",tag:"succeed",msg:r}}function a(r){return{ctor:"<decoder>",tag:"fail",msg:r}}function f(r){return{ctor:"<decoder>",tag:r}}function l(r,t){return{ctor:"<decoder>",tag:r,decoder:t}}function s(r){return{ctor:"<decoder>",tag:"null",value:r}}function d(r,t){return{ctor:"<decoder>",tag:"field",field:r,decoder:t}}function v(r,t){return{ctor:"<decoder>",tag:"index",index:r,decoder:t}}function p(r){return{ctor:"<decoder>",tag:"key-value",decoder:r}}function g(r,t){return{ctor:"<decoder>",tag:"map-many",func:r,decoders:t}}function m(r,t){return{ctor:"<decoder>",tag:"andThen",decoder:t,callback:r}}function b(r){return{ctor:"<decoder>",tag:"oneOf",decoders:r}}function y(r,t){return g(r,[t])}function k(r,t,n){return g(r,[t,n])}function T(r,t,n,e){return g(r,[t,n,e])}function w(r,t,n,e,o){return g(r,[t,n,e,o])}function N(r,t,n,e,o,u){return g(r,[t,n,e,o,u])}function x(r,t,n,e,o,u,c){return g(r,[t,n,e,o,u,c])}function B(r,t,n,e,o,u,c,i){return g(r,[t,n,e,o,u,c,i])}function R(r,t,n,e,o,u,c,i,_){return g(r,[t,n,e,o,u,c,i,_])}function E(r){return{tag:"ok",value:r}}function A(r,t){return{tag:"primitive",type:r,value:t}}function C(r,t){return{tag:"index",index:r,rest:t}}function O(r,t){return{tag:"field",field:r,rest:t}}function C(r,t){return{tag:"index",index:r,rest:t}}function P(r){return{tag:"oneOf",problems:r}}function M(r){return{tag:"fail",msg:r}}function S(r){for(var t="_";r;)switch(r.tag){case"primitive":return"Expecting "+r.type+("_"===t?"":" at "+t)+" but instead got: "+L(r.value);case"index":t+="["+r.index+"]",r=r.rest;break;case"field":t+="."+r.field,r=r.rest;break;case"oneOf":for(var n=r.problems,e=0;e<n.length;e++)n[e]=S(n[e]);return"I ran into the following problems"+("_"===t?"":" at "+t)+":\n\n"+n.join("\n");case"fail":return"I ran into a `fail` decoder"+("_"===t?"":" at "+t)+": "+r.msg}}function L(r){return void 0===r?"undefined":JSON.stringify(r)}function q(r,t){var n;try{n=JSON.parse(t)}catch(r){return Pr("Given an invalid JSON: "+r.message)}return I(r,n)}function I(r,t){var n=J(r,t);return"ok"===n.tag?Sr(n.value):Pr(S(n))}function J(r,t){switch(r.tag){case"bool":return"boolean"==typeof t?E(t):A("a Bool",t);case"int":return"number"!=typeof t?A("an Int",t):-2147483647<t&&t<2147483647&&(0|t)===t?E(t):!isFinite(t)||t%1?A("an Int",t):E(t);case"float":return"number"==typeof t?E(t):A("a Float",t);case"string":return"string"==typeof t?E(t):t instanceof String?E(t+""):A("a String",t);case"null":return null===t?E(r.value):A("null",t);case"value":return E(t);case"list":if(!(t instanceof Array))return A("a List",t);for(var n=G.Nil,e=t.length;e--;){var o=J(r.decoder,t[e]);if("ok"!==o.tag)return C(e,o);n=G.Cons(o.value,n)}return E(n);case"array":if(!(t instanceof Array))return A("an Array",t);for(var u=t.length,c=new Array(u),e=u;e--;){var o=J(r.decoder,t[e]);if("ok"!==o.tag)return C(e,o);c[e]=o.value}return E(We.fromJSArray(c));case"maybe":var o=J(r.decoder,t);return E("ok"===o.tag?W(o.value):$);case"field":var i=r.field;if("object"!=typeof t||null===t||!(i in t))return A("an object with a field named `"+i+"`",t);var o=J(r.decoder,t[i]);return"ok"===o.tag?o:O(i,o);case"index":var _=r.index;if(!(t instanceof Array))return A("an array",t);if(_>=t.length)return A("a longer array. Need index "+_+" but there are only "+t.length+" entries",t);var o=J(r.decoder,t[_]);return"ok"===o.tag?o:C(_,o);case"key-value":if("object"!=typeof t||null===t||t instanceof Array)return A("an object",t);var a=G.Nil;for(var f in t){var o=J(r.decoder,t[f]);if("ok"!==o.tag)return O(f,o);var l=h.Tuple2(f,o.value);a=G.Cons(l,a)}return E(a);case"map-many":for(var s=r.func,d=r.decoders,e=0;e<d.length;e++){var o=J(d[e],t);if("ok"!==o.tag)return o;s=s(o.value)}return E(s);case"andThen":var o=J(r.decoder,t);return"ok"!==o.tag?o:J(r.callback(o.value),t);case"oneOf":for(var v=[],p=r.decoders;"[]"!==p.ctor;){var o=J(p._0,t);if("ok"===o.tag)return o;v.push(o),p=p._1}return P(v);case"fail":return M(r.msg);case"succeed":return E(r.msg)}}function D(r,t){if(r===t)return!0;if(r.tag!==t.tag)return!1;switch(r.tag){case"succeed":case"fail":return r.msg===t.msg;case"bool":case"int":case"float":case"string":case"value":return!0;case"null":return r.value===t.value;case"list":case"array":case"maybe":case"key-value":return D(r.decoder,t.decoder);case"field":return r.field===t.field&&D(r.decoder,t.decoder);case"index":return r.index===t.index&&D(r.decoder,t.decoder);case"map-many":return r.func===t.func&&F(r.decoders,t.decoders);case"andThen":return r.callback===t.callback&&D(r.decoder,t.decoder);case"oneOf":return F(r.decoders,t.decoders)}}function F(r,t){var n=r.length;if(n!==t.length)return!1;for(var e=0;e<n;e++)if(!D(r[e],t[e]))return!1;return!0}function j(r,t){return JSON.stringify(t,null,r)}function U(r){return r}function z(r){for(var t={};"[]"!==r.ctor;){var n=r._0;t[n._0]=n._1,r=r._1}return t}return{encode:t(j),runOnString:t(q),run:t(I),decodeNull:s,decodePrimitive:f,decodeContainer:t(l),decodeField:t(d),decodeIndex:t(v),map1:t(y),map2:n(k),map3:e(T),map4:o(w),map5:u(N),map6:c(x),map7:i(B),map8:_(R),decodeKeyValuePairs:p,andThen:t(m),fail:a,succeed:r,oneOf:b,identity:U,encodeNull:null,encodeArray:We.toJSArray,encodeList:G.toArray,encodeObject:z,equality:D}}(),Po=(Oo.encodeList,Oo.encodeArray,Oo.encodeObject,Oo.encodeNull,Oo.identity),Mo=Oo.identity,So=(Oo.identity,Oo.identity),Lo=(Oo.encode,Oo.decodeNull,Oo.decodePrimitive("value"),Oo.andThen),qo=Oo.fail,Io=Oo.succeed,Jo=Oo.run,Do=(Oo.runOnString,Oo.map8,Oo.map7,Oo.map6,Oo.map5,Oo.map4,Oo.map3,Oo.map2,Oo.map1),Fo=(Oo.oneOf,Oo.decodeIndex,Oo.decodeField),jo=t(function(r,t){return f(ur,Fo,t,r)}),Uo=(Oo.decodeKeyValuePairs,Oo.decodePrimitive("float"),Oo.decodePrimitive("int")),zo=Oo.decodePrimitive("bool"),$o=Oo.decodePrimitive("string"),Wo=n(function(r,t,n){return _o(n)}),Qo=function(r){return{ctor:"_Tuple2",_0:0,_1:2147483562}},Zo=t(function(r,t){return r._0(t)}),Go=n(function(r,t,n){var e=t;if("[]"===e.ctor)return _o(n);var o=a(Zo,e._0._0,n),u=o._0,c=o._1;return a(uo,function(t){return f(Go,r,e._1,c)},a(mt,r,u))}),Ko=e(function(r,t,n,e){for(;;){if(h.cmp(t,1)<0)return{ctor:"_Tuple2",_0:hr(r),_1:e};var o=n(e),u=o._0,c=o._1,i={ctor:"::",_0:u,_1:r},_=t-1,a=n,f=c;r=i,t=_,n=a,e=f}}),Ho=t(function(r,t){return h.cmp(t,r)<0?1:1+a(Ho,r,t/r|0)}),Vo=ft.leaf("Random"),Xo=function(r){return{ctor:"Generator",_0:r}},Yo=(t(function(r,t){var n=t;return Xo(function(t){return l(Ko,{ctor:"[]"},r,n._0,t)})}),t(function(r,t){var n=t;return Xo(function(t){var e=n._0(t),o=e._0,u=e._1;return{ctor:"_Tuple2",_0:r(o),_1:u}})})),ru=n(function(r,t,n){var e=t,o=n;return Xo(function(t){var n=e._0(t),u=n._0,c=n._1,i=o._0(c),_=i._0,f=i._1;return{ctor:"_Tuple2",_0:a(r,u,_),_1:f}})}),tu=(t(function(r,n){return f(ru,t(function(r,t){return{ctor:"_Tuple2",_0:r,_1:t}}),r,n)}),e(function(r,t,n,e){var o=t,u=n,c=e;return Xo(function(t){var n=o._0(t),e=n._0,i=n._1,_=u._0(i),a=_._0,l=_._1,s=c._0(l),d=s._0,v=s._1;return{ctor:"_Tuple2",_0:f(r,e,a,d),_1:v}})}),o(function(r,t,n,e,o){var u=t,c=n,i=e,_=o;return Xo(function(t){var n=u._0(t),e=n._0,o=n._1,a=c._0(o),f=a._0,s=a._1,d=i._0(s),v=d._0,p=d._1,h=_._0(p),g=h._0,m=h._1;return{ctor:"_Tuple2",_0:l(r,e,f,v,g),_1:m}})}),u(function(r,t,n,e,o,u){var c=t,i=n,_=e,a=o,f=u;return Xo(function(t){var n=c._0(t),e=n._0,o=n._1,u=i._0(o),l=u._0,d=u._1,v=_._0(d),p=v._0,h=v._1,g=a._0(h),m=g._0,b=g._1,y=f._0(b),k=y._0,T=y._1;return{ctor:"_Tuple2",_0:s(r,e,l,p,m,k),_1:T}})}),t(function(r,t){var n=t;return Xo(function(t){var e=n._0(t),o=e._0,u=e._1;return(0,r(o)._0)(u)})}),t(function(r,t){return{ctor:"State",_0:r,_1:t}})),nu=function(r){var t=a(R,r,0-r),n=t/2147483562|0,e=a(k["%"],n,2147483398),o=a(k["%"],t,2147483562);return a(tu,o+1,e+1)},eu=function(r){var t=r,n=t._1,e=t._0,o=n/52774|0,u=40692*(n-52774*o)-3791*o,c=h.cmp(u,0)<0?u+2147483399:u,i=e/53668|0,_=40014*(e-53668*i)-12211*i,f=h.cmp(_,0)<0?_+2147483563:_,l=f-c;return{ctor:"_Tuple2",_0:h.cmp(l,1)<0?l+2147483562:l,_1:a(tu,f,c)}},ou=function(r){var t=r,n=t._1,e=t._0,o=_t(eu(t)),u=o._0,c=o._1,i=h.eq(n,1)?2147483398:n-1,_=h.eq(e,2147483562)?1:e+1;return{ctor:"_Tuple2",_0:a(tu,_,c),_1:a(tu,u,i)}},uu=function(r){return{ctor:"Seed",_0:r}},cu=t(function(r,t){return Xo(function(e){var o=e,u=o._0,c=n(function(r,t,n){for(;;){if(0===r)return{ctor:"_Tuple2",_0:t,_1:n};var e=u.next(n),o=e._0,c=e._1,i=r-1,_=o+2147483561*t,a=c;r=i,t=_,n=a}}),i=h.cmp(r,t)<0?{ctor:"_Tuple2",_0:r,_1:t}:{ctor:"_Tuple2",_0:t,_1:r},_=i._0,l=i._1,s=l-_+1,d=a(Ho,2147483561,s),v=f(c,d,1,u.state),p=v._0,g=v._1;return{ctor:"_Tuple2",_0:_+a(k["%"],p,s),_1:uu(h.update(u,{state:g}))}})}),iu=(a(Yo,t(function(r,t){return h.eq(r,t)})(1),a(cu,0,1)),t(function(r,t){return Xo(function(n){var e=a(Zo,a(cu,-2147483648,2147483647),n),o=e._0,u=e._1,c=w(o)/w(4294967295),i=h.cmp(r,t)<0?{ctor:"_Tuple2",_0:r,_1:t}:{ctor:"_Tuple2",_0:t,_1:r},_=i._0,f=i._1;return{ctor:"_Tuple2",_0:(_+f)/2+(f-_)*c,_1:u}})}),function(r){return uu({state:nu(r),next:eu,split:ou,range:Qo})}),_u=a(uo,function(r){return _o(iu(B(r)))},wo),au=function(r){return{ctor:"Generate",_0:r}},fu=(t(function(r,t){return Vo(au(a(Yo,r,t)))}),t(function(r,t){return au(a(Yo,r,t._0))}));ft.effectManagers.Random={pkg:"elm-lang/core",init:_u,onEffects:Go,onSelfMsg:Wo,tag:"cmd",cmdMap:fu};var lu,su=function(){function r(r){return{type:"text",text:r}}function o(r){return t(function(t,n){return u(r,t,n)})}function u(r,t,n){for(var e=p(t),o=e.namespace,u=e.facts,c=[],i=0;"[]"!==n.ctor;){var _=n._0;i+=_.descendantsCount||0,c.push(_),n=n._1}return i+=c.length,{type:"node",tag:r,facts:u,children:c,namespace:o,descendantsCount:i}}function c(r,t,n){for(var e=p(t),o=e.namespace,u=e.facts,c=[],i=0;"[]"!==n.ctor;){var _=n._0;i+=_._1.descendantsCount||0,c.push(_),n=n._1}return i+=c.length,{type:"keyed-node",tag:r,facts:u,children:c,namespace:o,descendantsCount:i}}function i(r,t,n){return{type:"custom",facts:p(r).facts,model:t,impl:n}}function _(r,t){return{type:"tagger",tagger:r,node:t,descendantsCount:1+(t.descendantsCount||0)}}function l(r,t,n){return{type:"thunk",func:r,args:t,thunk:n,node:void 0}}function s(r,t){return l(r,[t],function(){return r(t)})}function d(r,t,n){return l(r,[t,n],function(){return a(r,t,n)})}function v(r,t,n,e){return l(r,[t,n,e],function(){return f(r,t,n,e)})}function p(r){for(var t,n={};"[]"!==r.ctor;){var e=r._0,o=e.key;if(o===dr||o===vr||o===sr){var u=n[o]||{};u[e.realKey]=e.value,n[o]=u}else if(o===lr){for(var c=n[o]||{},i=e.value;"[]"!==i.ctor;){var _=i._0;c[_._0]=_._1,i=i._1}n[o]=c}else if("namespace"===o)t=e.value;else if("className"===o){var a=n[o];n[o]=void 0===a?e.value:a+" "+e.value}else n[o]=e.value;r=r._1}return{facts:n,namespace:t}}function g(r){return{key:lr,value:r}}function m(r,t){return{key:r,value:t}}function b(r,t){return{key:dr,realKey:r,value:t}}function y(r,t,n){return{key:vr,realKey:t,value:{value:n,namespace:r}}}function k(r,t,n){return{key:sr,realKey:r,value:{options:t,decoder:n}}}function T(r,t){return(r.options===t.options||r.options.stopPropagation===t.options.stopPropagation&&r.options.preventDefault===t.options.preventDefault)&&Oo.equality(r.decoder,t.decoder)}function w(r,t){return t.key!==sr?t:k(t.realKey,t.value.options,a(Do,r,t.value.decoder))}function N(r,t){switch(r.type){case"thunk":return r.node||(r.node=r.thunk()),N(r.node,t);case"tagger":for(var n=r.node,e=r.tagger;"tagger"===n.type;)"object"!=typeof e?e=[e,n.tagger]:e.push(n.tagger),n=n.node;var o={tagger:e,parent:t},u=N(n,o);return u.elm_event_node_ref=o,u;case"text":return pr.createTextNode(r.text);case"node":var u=r.namespace?pr.createElementNS(r.namespace,r.tag):pr.createElement(r.tag);x(u,t,r.facts);for(var c=r.children,i=0;i<c.length;i++)u.appendChild(N(c[i],t));return u;case"keyed-node":var u=r.namespace?pr.createElementNS(r.namespace,r.tag):pr.createElement(r.tag);x(u,t,r.facts);for(var c=r.children,i=0;i<c.length;i++)u.appendChild(N(c[i]._1,t));return u;case"custom":var u=r.impl.render(r.model);return x(u,t,r.facts),u}}function x(r,t,n){for(var e in n){var o=n[e];switch(e){case lr:B(r,o);break;case sr:R(r,t,o);break;case dr:A(r,o);break;case vr:C(r,o);break;case"value":r[e]!==o&&(r[e]=o);break;default:r[e]=o}}}function B(r,t){var n=r.style;for(var e in t)n[e]=t[e]}function R(r,t,n){var e=r.elm_handlers||{};for(var o in n){var u=e[o],c=n[o];if(void 0===c)r.removeEventListener(o,u),e[o]=void 0;else if(void 0===u){var u=E(t,c);r.addEventListener(o,u),e[o]=u}else u.info=c}r.elm_handlers=e}function E(r,t){function n(t){var e=n.info,o=a(Oo.run,e.decoder,t);if("Ok"===o.ctor){var u=e.options;u.stopPropagation&&t.stopPropagation(),u.preventDefault&&t.preventDefault();for(var c=o._0,i=r;i;){var _=i.tagger;if("function"==typeof _)c=_(c);else for(var f=_.length;f--;)c=_[f](c);i=i.parent}}}return n.info=t,n}function A(r,t){for(var n in t){var e=t[n];void 0===e?r.removeAttribute(n):r.setAttribute(n,e)}}function C(r,t){for(var n in t){var e=t[n],o=e.namespace,u=e.value;void 0===u?r.removeAttributeNS(o,n):r.setAttributeNS(o,n,u)}}function O(r,t){var n=[];return M(r,t,n,0),n}function P(r,t,n){return{index:t,type:r,data:n,domNode:void 0,eventNode:void 0}}function M(r,t,n,e){if(r!==t){var o=r.type,u=t.type;if(o!==u)return void n.push(P("p-redraw",e,t));switch(u){case"thunk":for(var c=r.args,i=t.args,_=c.length,a=r.func===t.func&&_===i.length;a&&_--;)a=c[_]===i[_];if(a)return void(t.node=r.node);t.node=t.thunk();var f=[];return M(r.node,t.node,f,0),void(f.length>0&&n.push(P("p-thunk",e,f)));case"tagger":for(var l=r.tagger,s=t.tagger,d=!1,v=r.node;"tagger"===v.type;)d=!0,"object"!=typeof l?l=[l,v.tagger]:l.push(v.tagger),v=v.node;for(var p=t.node;"tagger"===p.type;)d=!0,"object"!=typeof s?s=[s,p.tagger]:s.push(p.tagger),p=p.node;return d&&l.length!==s.length?void n.push(P("p-redraw",e,t)):((d?S(l,s):l===s)||n.push(P("p-tagger",e,s)),void M(v,p,n,e+1));case"text":if(r.text!==t.text)return void n.push(P("p-text",e,t.text));return;case"node":if(r.tag!==t.tag||r.namespace!==t.namespace)return void n.push(P("p-redraw",e,t));var h=L(r.facts,t.facts);return void 0!==h&&n.push(P("p-facts",e,h)),void q(r,t,n,e);case"keyed-node":if(r.tag!==t.tag||r.namespace!==t.namespace)return void n.push(P("p-redraw",e,t));var h=L(r.facts,t.facts);return void 0!==h&&n.push(P("p-facts",e,h)),void I(r,t,n,e);case"custom":if(r.impl!==t.impl)return void n.push(P("p-redraw",e,t));var h=L(r.facts,t.facts);void 0!==h&&n.push(P("p-facts",e,h));var g=t.impl.diff(r,t);if(g)return void n.push(P("p-custom",e,g));return}}}function S(r,t){for(var n=0;n<r.length;n++)if(r[n]!==t[n])return!1;return!0}function L(r,t,n){var e;for(var o in r)if(o!==lr&&o!==sr&&o!==dr&&o!==vr)if(o in t){var u=r[o],c=t[o];u===c&&"value"!==o||n===sr&&T(u,c)||(e=e||{},e[o]=c)}else e=e||{},e[o]=void 0===n?"string"==typeof r[o]?"":null:n===lr?"":n===sr||n===dr?void 0:{namespace:r[o].namespace,value:void 0};else{var i=L(r[o],t[o]||{},o);i&&(e=e||{},e[o]=i)}for(var _ in t)_ in r||(e=e||{},e[_]=t[_]);return e}function q(r,t,n,e){var o=r.children,u=t.children,c=o.length,i=u.length;c>i?n.push(P("p-remove-last",e,c-i)):c<i&&n.push(P("p-append",e,u.slice(c)));for(var _=e,a=c<i?c:i,f=0;f<a;f++){_++;var l=o[f];M(l,u[f],n,_),_+=l.descendantsCount||0}}function I(r,t,n,e){for(var o=[],u={},c=[],i=r.children,_=t.children,a=i.length,f=_.length,l=0,s=0,d=e;l<a&&s<f;){var v=i[l],p=_[s],h=v._0,g=p._0,m=v._1,b=p._1;if(h!==g){var y=l+1<a,k=s+1<f;if(y)var T=i[l+1],w=T._0,N=T._1,x=g===w;if(k)var B=_[s+1],R=B._0,E=B._1,A=h===R;if(y&&k&&A&&x)d++,M(m,E,o,d),J(u,o,h,b,s,c),d+=m.descendantsCount||0,d++,D(u,o,h,N,d),d+=N.descendantsCount||0,l+=2,s+=2;else if(k&&A)d++,J(u,o,g,b,s,c),M(m,E,o,d),d+=m.descendantsCount||0,l+=1,s+=2;else if(y&&x)d++,D(u,o,h,m,d),d+=m.descendantsCount||0,d++,M(N,b,o,d),d+=N.descendantsCount||0,l+=2,s+=1;else{if(!y||!k||w!==R)break;d++,D(u,o,h,m,d),J(u,o,g,b,s,c),d+=m.descendantsCount||0,d++,M(N,E,o,d),d+=N.descendantsCount||0,l+=2,s+=2}}else d++,M(m,b,o,d),d+=m.descendantsCount||0,l++,s++}for(;l<a;){d++;var v=i[l],m=v._1;D(u,o,v._0,m,d),d+=m.descendantsCount||0,l++}for(var C;s<f;){C=C||[];var p=_[s];J(u,o,p._0,p._1,void 0,C),s++}(o.length>0||c.length>0||void 0!==C)&&n.push(P("p-reorder",e,{patches:o,inserts:c,endInserts:C}))}function J(r,t,n,e,o,u){var c=r[n];if(void 0===c)return c={tag:"insert",vnode:e,index:o,data:void 0},u.push({index:o,entry:c}),void(r[n]=c);if("remove"===c.tag){u.push({index:o,entry:c}),c.tag="move";var i=[];return M(c.vnode,e,i,c.index),c.index=o,void(c.data.data={patches:i,entry:c})}J(r,t,n+hr,e,o,u)}function D(r,t,n,e,o){var u=r[n];if(void 0===u){var c=P("p-remove",o,void 0);return t.push(c),void(r[n]={tag:"remove",vnode:e,index:o,data:c})}if("insert"===u.tag){u.tag="move";var i=[];M(e,u.vnode,i,o);var c=P("p-remove",o,{patches:i,entry:u});return void t.push(c)}D(r,t,n+hr,e,o)}function F(r,t,n,e){j(r,t,n,0,0,t.descendantsCount,e)}function j(r,t,n,e,o,u,c){for(var i=n[e],_=i.index;_===o;){var a=i.type;if("p-thunk"===a)F(r,t.node,i.data,c);else if("p-reorder"===a){i.domNode=r,i.eventNode=c;var f=i.data.patches;f.length>0&&j(r,t,f,0,o,u,c)}else if("p-remove"===a){i.domNode=r,i.eventNode=c;var l=i.data;if(void 0!==l){l.entry.data=r;var f=l.patches;f.length>0&&j(r,t,f,0,o,u,c)}}else i.domNode=r,i.eventNode=c;if(e++,!(i=n[e])||(_=i.index)>u)return e}switch(t.type){case"tagger":for(var s=t.node;"tagger"===s.type;)s=s.node;return j(r,s,n,e,o+1,u,r.elm_event_node_ref);case"node":for(var d=t.children,v=r.childNodes,p=0;p<d.length;p++){o++;var h=d[p],g=o+(h.descendantsCount||0);if(o<=_&&_<=g&&(e=j(v[p],h,n,e,o,g,c),!(i=n[e])||(_=i.index)>u))return e;o=g}return e;case"keyed-node":for(var d=t.children,v=r.childNodes,p=0;p<d.length;p++){o++;var h=d[p]._1,g=o+(h.descendantsCount||0);if(o<=_&&_<=g&&(e=j(v[p],h,n,e,o,g,c),!(i=n[e])||(_=i.index)>u))return e;o=g}return e;case"text":case"thunk":throw new Error("should never traverse `text` or `thunk` nodes like this")}}function U(r,t,n,e){return 0===n.length?r:(F(r,t,n,e),z(r,n))}function z(r,t){for(var n=0;n<t.length;n++){var e=t[n],o=e.domNode,u=$(o,e);o===r&&(r=u)}return r}function $(r,t){switch(t.type){case"p-redraw":return W(r,t.data,t.eventNode);case"p-facts":return x(r,t.eventNode,t.data),r;case"p-text":return r.replaceData(0,r.length,t.data),r;case"p-thunk":return z(r,t.data);case"p-tagger":return void 0!==r.elm_event_node_ref?r.elm_event_node_ref.tagger=t.data:r.elm_event_node_ref={tagger:t.data,parent:t.eventNode},r;case"p-remove-last":for(var n=t.data;n--;)r.removeChild(r.lastChild);return r;case"p-append":for(var e=t.data,n=0;n<e.length;n++)r.appendChild(N(e[n],t.eventNode));return r;case"p-remove":var o=t.data;if(void 0===o)return r.parentNode.removeChild(r),r;var u=o.entry;return void 0!==u.index&&r.parentNode.removeChild(r),u.data=z(r,o.patches),r;case"p-reorder":return Q(r,t);case"p-custom":var c=t.data;return c.applyPatch(r,c.data);default:throw new Error("Ran into an unknown patch!")}}function W(r,t,n){var e=r.parentNode,o=N(t,n);return void 0===o.elm_event_node_ref&&(o.elm_event_node_ref=r.elm_event_node_ref),e&&o!==r&&e.replaceChild(o,r),o}function Q(r,t){var n=t.data,e=Z(n.endInserts,t);r=z(r,n.patches);for(var o=n.inserts,u=0;u<o.length;u++){var c=o[u],i=c.entry,_="move"===i.tag?i.data:N(i.vnode,t.eventNode);r.insertBefore(_,r.childNodes[c.index])}return void 0!==e&&r.appendChild(e),r}function Z(r,t){if(void 0!==r){for(var n=pr.createDocumentFragment(),e=0;e<r.length;e++){var o=r[e],u=o.entry;n.appendChild("move"===u.tag?u.data:N(u.vnode,t.eventNode))}return n}}function G(r){return t(function(t,n){return function(e){return function(o,u,c){var i=r(e,u);void 0===c?Y(n,o,u,i):nr(a(t,c,n),o,u,i)}}})}function K(r){var n=h.Tuple2(h.Tuple0,dt);return a(gr,lu,{init:n,view:function(){return r},update:t(function(){return n}),subscriptions:function(){return ht}})()}function H(r,t){return function(r,n,e){if(void 0===n)return r;X("The `"+t+"` module does not need flags.\nInitialize it with no arguments and you should be all set!",e)}}function V(r,t){return function(n,e,o){if(void 0===r){var u="Are you trying to sneak a Never value into Elm? Trickster!\nIt looks like "+t+".main is defined with `programWithFlags` but has type `Program Never`.\nUse `program` instead if you do not want flags.";X(u,o)}var c=a(Oo.run,r,e);if("Ok"===c.ctor)return n(c._0);var u="Trying to initialize the `"+t+"` module with an unexpected flag.\nI tried to convert it to an Elm value, but ran into this problem:\n\n"+c._0;X(u,o)}}function X(r,t){throw t&&(t.innerHTML='<div style="padding-left:1em;"><h2 style="font-weight:normal;"><b>Oops!</b> Something went wrong when starting your Elm program.</h2><pre style="padding-left:1em;">'+r+"</pre></div>"),new Error(r)}function Y(r,t,n,e){t.embed=function(t,n){for(;t.lastChild;)t.removeChild(t.lastChild);return ft.initialize(e(r.init,n,t),r.update,r.subscriptions,rr(t,r.view))},t.fullscreen=function(t){return ft.initialize(e(r.init,t,document.body),r.update,r.subscriptions,rr(document.body,r.view))}}function rr(r,t){return function(n,e){var o={tagger:n,parent:void 0},u=t(e),c=N(u,o);return r.appendChild(c),tr(c,t,u,o)}}function tr(r,t,n,e){function o(){switch(c){case"NO_REQUEST":throw new Error("Unexpected draw callback.\nPlease report this to <https://github.com/elm-lang/virtual-dom/issues>.");case"PENDING_REQUEST":br(o),c="EXTRA_REQUEST";var n=t(u),_=O(i,n);return r=U(r,i,_,e),void(i=n);case"EXTRA_REQUEST":return void(c="NO_REQUEST")}}var u,c="NO_REQUEST",i=n;return function(r){"NO_REQUEST"===c&&br(o),c="PENDING_REQUEST",u=r}}function nr(r,t,n,e){t.fullscreen=function(t){var o={doc:void 0};return ft.initialize(e(r.init,t,document.body),r.update(er(o)),r.subscriptions,or(n,document.body,o,r.view,r.viewIn,r.viewOut))},t.embed=function(t,o){var u={doc:void 0};return ft.initialize(e(r.init,o,t),r.update(er(u)),r.subscriptions,or(n,t,u,r.view,r.viewIn,r.viewOut))}}function er(r){return lt.nativeBinding(function(t){var n=r.doc;if(n){var e=n.getElementsByClassName("debugger-sidebar-messages")[0];e&&(e.scrollTop=e.scrollHeight)}t(lt.succeed(h.Tuple0))})}function or(r,t,n,e,o,u){return function(c,i){var _={tagger:c,parent:void 0},a={tagger:c,parent:void 0},f=e(i),l=N(f,_);t.appendChild(l);var s=tr(l,e,f,_),d=o(i)._1,v=N(d,a);t.appendChild(v);var p=ir(_,v,o),h=tr(v,p,d,a),g=ur(i,u,a,t,r,n);return function(r){s(r),h(r),g(r)}}}function ur(r,t,n,e,o,u){var c,i;return function(r){if(r.isDebuggerOpen){if(!u.doc)return c=t(r),void(i=cr(o,u,c,n));pr=u.doc;var e=t(r),_=O(c,e);i=U(i,c,_,n),c=e,pr=document}}}function cr(r,t,n,e){function o(){t.doc=void 0,i.close()}var u=screen.width-900,c=screen.height-360,i=window.open("","","width=900,height=360,left="+u+",top="+c);pr=i.document,t.doc=pr,pr.title="Debugger - "+r,pr.body.style.margin="0",pr.body.style.padding="0";var _=N(n,e);return pr.body.appendChild(_),pr.addEventListener("keydown",function(r){r.metaKey&&82===r.which&&window.location.reload(),38===r.which&&(e.tagger({ctor:"Up"}),r.preventDefault()),40===r.which&&(e.tagger({ctor:"Down"}),r.preventDefault())}),window.addEventListener("unload",o),i.addEventListener("unload",function(){t.doc=void 0,window.removeEventListener("unload",o),e.tagger({ctor:"Close"})}),pr=document,_}function ir(r,t,n){var e,o=fr(t),u="Normal",c=r.tagger,i=function(){};return function(t){var _=n(t),a=_._0.ctor;return r.tagger="Normal"===a?c:i,u!==a&&(_r("removeEventListener",o,u),_r("addEventListener",o,a),"Normal"===u&&(e=document.body.style.overflow,document.body.style.overflow="hidden"),"Normal"===a&&(document.body.style.overflow=e),u=a),_._1}}function _r(r,t,n){switch(n){case"Normal":return;case"Pause":return ar(r,t,yr);case"Message":return ar(r,t,kr)}}function ar(r,t,n){for(var e=0;e<n.length;e++)document.body[r](n[e],t,!0)}function fr(r){return function(t){if("keydown"!==t.type||!t.metaKey||82!==t.which){for(var n="scroll"===t.type||"wheel"===t.type,e=t.target;null!==e;){if("elm-overlay-message-details"===e.className&&n)return;if(e===r&&!n)return;e=e.parentNode}t.stopPropagation(),t.preventDefault()}}}var lr="STYLE",sr="EVENT",dr="ATTR",vr="ATTR_NS",pr="undefined"!=typeof document?document:{},hr="_elmW6BL",gr=G(H),mr=G(V),br="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:function(r){setTimeout(r,1e3/60)},yr=["click","dblclick","mousemove","mouseup","mousedown","mouseenter","mouseleave","touchstart","touchend","touchcancel","touchmove","pointerdown","pointerup","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointercancel","dragstart","drag","dragend","dragenter","dragover","dragleave","drop","keyup","keydown","keypress","input","change","focus","blur"],kr=yr.concat("wheel","scroll");return{node:o,text:r,custom:i,map:t(_),on:n(k),style:g,property:t(m),attribute:t(b),attributeNS:n(y),mapProperty:t(w),lazy:t(s),lazy2:n(d),lazy3:e(v),keyedNode:n(c),program:gr,programWithFlags:mr,staticProgram:K}}(),du=function(r){return a(su.program,lu,r)},vu=(su.keyedNode,su.lazy3,su.lazy2,su.lazy,{stopPropagation:!1,preventDefault:!1}),pu=su.on,hu=t(function(r,t){return f(pu,r,vu,t)}),gu=su.style,mu=(su.mapProperty,su.attributeNS,su.attribute,su.property),bu=su.map,yu=su.text,ku=su.node,Tu=(t(function(r,t){return{stopPropagation:r,preventDefault:t}}),du),wu=bu,Nu=yu,xu=ku,Bu=(xu("body"),xu("section"),xu("nav"),xu("article"),xu("aside"),xu("h1"),xu("h2"),xu("h3"),xu("h4"),xu("h5"),xu("h6"),xu("header"),xu("footer"),xu("address"),xu("main"),xu("p"),xu("hr")),Ru=(xu("pre"),xu("blockquote"),xu("ol"),xu("ul"),xu("li"),xu("dl"),xu("dt"),xu("dd"),xu("figure"),xu("figcaption"),xu("div")),Eu=(xu("a"),xu("em"),xu("strong"),xu("small"),xu("s"),xu("cite"),xu("q"),xu("dfn"),xu("abbr"),xu("time"),xu("code"),xu("var"),xu("samp"),xu("kbd"),xu("sub"),xu("sup"),xu("i"),xu("b"),xu("u"),xu("mark"),xu("ruby"),xu("rt"),xu("rp"),xu("bdi"),xu("bdo"),xu("span")),Au=xu("br"),Cu=(xu("wbr"),xu("ins"),xu("del"),xu("img"),xu("iframe"),xu("embed"),xu("object"),xu("param"),xu("video"),xu("audio"),xu("source"),xu("track"),xu("canvas"),xu("math"),xu("table"),xu("caption"),xu("colgroup"),xu("col"),xu("tbody"),xu("thead"),xu("tfoot"),xu("tr"),xu("td"),xu("th"),xu("form"),xu("fieldset"),xu("legend"),xu("label")),Ou=xu("input"),Pu=(xu("button"),xu("select")),Mu=(xu("datalist"),xu("optgroup"),xu("option")),Su=(xu("textarea"),xu("keygen"),xu("output"),xu("progress"),xu("meter"),xu("details"),xu("summary"),xu("menuitem"),xu("menu"),mu),Lu=t(function(r,t){return a(Su,r,So(t))}),qu=function(r){return a(Lu,"className",r)},Iu=function(r){return a(Lu,"type",r)},Ju=function(r){return a(Lu,"value",r)},Du=function(r){return a(Lu,"placeholder",r)},Fu=t(function(r,t){return a(Su,r,Po(t))}),ju=function(r){return a(Fu,"checked",r)},Uu=function(r){return a(Fu,"selected",r)},zu=function(r){return a(Fu,"autofocus",r)},$u=gu,Wu=(a(Fo,"keyCode",Uo),a(jo,{ctor:"::",_0:"target",_1:{ctor:"::",_0:"checked",_1:{ctor:"[]"}}},zo)),Qu=a(jo,{ctor:"::",_0:"target",_1:{ctor:"::",_0:"value",_1:{ctor:"[]"}}},$o),Zu=vu,Gu=hu,Ku=(h.update(Zu,{preventDefault:!0}),function(r){return a(Gu,"change",a(Do,r,Wu))}),Hu=function(r){return a(Gu,"input",a(Do,r,Qu))},Vu=(t(function(r,t){return{stopPropagation:r,preventDefault:t}}),function(r){return Gr(h.cmp(r,0)<0?{ctor:"::",_0:h.chr("-"),_1:a(Xu,{ctor:"[]"},S(r))}:a(Xu,{ctor:"[]"},r))}),Xu=t(function(r,t){for(;;){if(h.cmp(t,16)<0)return{ctor:"::",_0:Yu(t),_1:r};var n={ctor:"::",_0:Yu(a(k["%"],t,16)),_1:r},e=t/16|0;r=n,t=e}}),Yu=function(r){var t=r;switch(t){case 0:return h.chr("0");case 1:return h.chr("1");case 2:return h.chr("2");case 3:return h.chr("3");case 4:return h.chr("4");case 5:return h.chr("5");case 6:return h.chr("6");case 7:return h.chr("7");case 8:return h.chr("8");case 9:return h.chr("9");case 10:return h.chr("a");case 11:return h.chr("b");case 12:return h.chr("c");case 13:return h.chr("d");case 14:return h.chr("e");case 15:return h.chr("f");default:return h.crashCase("Hex",{start:{line:138,column:5},end:{line:188,column:84}},t)(a(k["++"],"Tried to convert ",a(k["++"],Vu(r)," to hexadecimal.")))}},rc=n(function(r,t,n){var e=t;if("[]"===e.ctor)return Sr(n);var o=function(t){return f(rc,r-1,e._1,n+t*Math.pow(16,r))},u=e._0;switch(u.valueOf()){case"0":return o(0);case"1":return o(1);case"2":return o(2);case"3":return o(3);case"4":return o(4);case"5":return o(5);case"6":return o(6);case"7":return o(7);case"8":return o(8);case"9":return o(9);case"a":return o(10);case"b":return o(11);case"c":return o(12);case"d":return o(13);case"e":return o(14);case"f":return o(15);default:return Pr(a(k["++"],T(u)," is not a valid hexadecimal character."))}}),tc=t(function(r,t){return 1024*(r-55296)+t-56320+65536}),nc=function(r){var t=Kr(ct(r)),n=jr(r);if(h.cmp(n,55296)>-1&&h.cmp(n,56319)<1){var e=t;return"::"===e.ctor&&"::"===e._1.ctor&&"[]"===e._1._1.ctor?a(tc,n,jr(e._1._0)):n}return n},ec=function(r){var t=Ye(r),n=a(k["++"],Vu(t.red),a(k["++"],Vu(t.green),Vu(t.blue)));return a(k["++"],"#",n)},oc=n(function(r,n,e){var o=f(cr,t(function(r,t){return r+t}),0,a(dr,nc,Kr(e))),u=w(a(k["%"],o*o,360));return f(no,u,r,n)}),uc=function(r){return ec(f(oc,.5,.5,r))},cc=-1+Math.pow(10,7),ic=t(function(r,t){var n={ctor:"_Tuple2",_0:r,_1:t};return"[]"===n._0.ctor?"[]"===n._1.ctor?{ctor:"[]"}:{ctor:"::",_0:{ctor:"_Tuple2",_0:0,_1:n._1._0},_1:a(ic,{ctor:"[]"},n._1._1)}:"[]"===n._1.ctor?{ctor:"::",_0:{ctor:"_Tuple2",_0:n._0._0,_1:0},_1:a(ic,n._0._1,{ctor:"[]"})}:{ctor:"::",_0:{ctor:"_Tuple2",_0:n._0._0,_1:n._1._0},_1:a(ic,n._0._1,n._1._1)}}),_c=dr(S),ac=function(r){var t=Ue(r);return"Nothing"!==t.ctor&&h.cmp(t._0,0)<0},fc=function(r){return a(ur,t(function(t,n){return r(t)&&ar(n)?{ctor:"[]"}:{ctor:"::",_0:t,_1:n}}),{ctor:"[]"})}(t(function(r,t){return h.eq(r,t)})(0)),lc=n(function(r,t,n){return f(cr,b(r),t,a(Er,1,n))}),sc=N(a(P,2,w(cc))),dc=function(r){return f(Yr,7,h.chr("0"),T(r))},vc=function(r){var t=r,n=hr(t._0);return"[]"===n.ctor?"0":et({ctor:"::",_0:T(n._0),_1:a(dr,dc,n._1)})},pc=function(r){var t=r;switch(t.ctor){case"Zer":return"0";case"Pos":return vc(t._0);default:return a(k["++"],"-",vc(t._0))}},hc=function(r){switch(r.ctor){case"LT":return D;case"EQ":return F;default:return j}},gc=e(function(r,t,n,e){for(;;){var o={ctor:"_Tuple2",_0:n,_1:e};if("[]"===o._0.ctor)return"[]"===o._1.ctor?a(A,r,t):j;if("[]"===o._1.ctor)return D;var u=o._1._1,c=o._1._0,i=o._0._1,_=o._0._0;if(h.eq(_,c)){var f=r,l=t,s=i,d=u;r=f,t=l,n=s,e=d}else{var v=_,p=c,g=i,m=u;r=v,t=p,n=g,e=m}}}),mc=t(function(r,t){var n={ctor:"_Tuple2",_0:r,_1:t};switch(n._0.ctor){case"Pos":return"Pos"===n._1.ctor?l(gc,0,0,n._0._0._0,n._1._0._0):D;case"Neg":return"Neg"===n._1.ctor?hc(l(gc,0,0,n._0._0._0,n._1._0._0)):j;default:switch(n._1.ctor){case"Pos":return j;case"Zer":return F;default:return D}}}),bc=t(function(r,t){return h.eq(a(mc,r,t),j)}),yc=t(function(r,t){return!a(bc,r,t)}),kc=(t(function(r,t){return a(bc,r,t)?t:r}),t(function(r,t){return h.eq(a(mc,r,t),D)})),Tc=t(function(r,t){return!a(kc,r,t)}),wc=(t(function(r,t){return a(kc,r,t)?t:r}),cc+1),Nc=function(r){return h.cmp(r,0)<0?a(it,t(function(r,t){return r+t})(-1),Nc(r+wc)):{ctor:"_Tuple2",_0:r/wc|0,_1:a(q,r,wc)}},xc=t(function(r,t){var n=t;if("[]"===n.ctor)return{ctor:"::",_0:r,_1:{ctor:"[]"}};var e=Nc(n._0+r),o=e._0;return{ctor:"::",_0:e._1,_1:a(xc,o,n._1)}}),Bc=function(r){var t=r;switch(t.ctor){case"Zer":return{ctor:"[]"};case"Pos":default:return t._0._0}},Rc={ctor:"Zero"},Ec={ctor:"Negative"},Ac={ctor:"Positive"},Cc=t(function(r,t){return h.eq(r,Rc)||h.eq(t,Rc)?Rc:h.eq(r,t)?Ac:Ec}),Oc=function(r){switch(r.ctor){case"Positive":return Ec;case"Negative":return Ac;default:return Rc}},Pc=function(r){switch(a(A,r,0).ctor){case"LT":return Ec;case"GT":return Ac;default:return Rc}},Mc=function(r){switch(r.ctor){case"Zer":return Rc;case"Pos":return Ac;default:return Ec}},Sc={ctor:"Zer"},Lc=function(r){return{ctor:"Neg",_0:r}},qc=function(r){return{ctor:"Pos",_0:r}},Ic=t(function(r,t){var n=t,e=n;if(ar(n._0))return Sc;switch(r.ctor){case"Zero":return Sc;case"Positive":return qc(e);default:return Lc(e)}}),Jc=function(r){var t=r;switch(t.ctor){case"Zer":return Sc;case"Pos":return Lc(t._0);default:return qc(t._0)}},Dc=function(r){var t=r;switch(t.ctor){case"Zer":return Sc;case"Neg":return qc(t._0);default:return t}},Fc=function(r){return{ctor:"Magnitude",_0:r}},jc=function(r){var n=r,e=n._0,o=a(Se,t(function(r,t){return h.eq(r,t)})(0),e);return Fc("[]"===o.ctor?{ctor:"[]"}:e)},Uc=function(r){return a(Q,function(r){return jc(Fc(r))},Cr($e(a(dr,function(r){return Vr(Gr(hr(r)))},a(ae,7,hr(r))))))},zc=function(r){var t=r;switch(t.ctor){case"Zer":return Fc({ctor:"[]"});case"Pos":default:return t._0}},$c=function(r){return Fc(fc(a(xc,0,r._0)))},Wc=t(function(r,t){return{ctor:"BigIntNotNormalised",_0:r,_1:t}}),Qc=function(r){return{ctor:"MagnitudeNotNormalised",_0:r}},Zc=t(function(r,t){return a(Wc,r,Qc(t))}),Gc=function(r){for(;;){var t=r,n=t._0,e=$c(t._1),o=e._0;if(!ac(o))return a(Ic,n,Fc(o));r=a(Zc,Oc(n),_c(o))}},Kc=function(r){var t=r;switch(t.ctor){case"Zer":return a(Zc,Rc,{ctor:"[]"});case"Neg":return a(Zc,Ac,_c(t._0._0));default:return a(Zc,Ac,t._0._0)}},Hc=function(r){return Gc(a(Wc,Pc(r),Qc({ctor:"::",_0:M(r),_1:{ctor:"[]"}})))},Vc=Hc(0),Xc=function(r){var t=Kr(r);if("[]"===t.ctor)return W(Vc);switch(t._0.valueOf()){case"-":return a(Q,Ic(Ec),Uc(t._1));case"+":return a(Q,Ic(Ac),Uc(t._1));default:return a(Q,Ic(Ac),Uc(t))}},Yc=Hc(1),ri=t(function(r,n){var e=r;return $c(Qc(a(dr,t(function(r,t){return r*t})(n),e._0)))}),ti=function(r){return{ctor:"MagnitudePair",_0:r}},ni=t(function(r,t){var n=r,e=t;return ti(a(ic,n._0,e._0))}),ei=t(function(r,n){var e=Kc(n),o=e._1,u=Kc(r),c=u._1,i=a(ni,c,o),_=i._0,f=a(dr,g(t(function(r,t){return r+t})),_);return Gc(a(Wc,Ac,Qc(f)))}),oi=t(function(r,t){return a(ei,r,Jc(t))}),ui=t(function(r,t){var n=r,e=t,o=e._0,u=n._0;if("[]"===u.ctor)return Fc({ctor:"[]"});if("[]"===u._1.ctor)return a(ri,Fc(o),u._0);var c=a(ui,Fc(u._1),Fc(o)),i=c._0,_=a(ri,Fc(o),u._0),f=a(ei,a(Ic,Ac,_),a(Ic,Ac,Fc({ctor:"::",_0:0,_1:i})));return zc(f)}),ci=t(function(r,t){return a(Ic,a(Cc,Mc(r),Mc(t)),a(ui,zc(r),zc(t)))}),ii=function(r){return f(lc,ci(Hc(wc)),Yc,r)},_i=e(function(r,t,n,e){if(h.eq(r,0))return{ctor:"_Tuple2",_0:Vc,_1:n};var o=Hc(r),u=a(ci,a(ci,o,e),t),c=a(Tc,u,n)?{ctor:"_Tuple2",_0:a(ci,o,t),_1:a(oi,n,u)}:{ctor:"_Tuple2",_0:Vc,_1:n},i=c._0,_=c._1,f=l(_i,r/2|0,t,_,e),s=f._0,d=f._1;return{ctor:"_Tuple2",_0:a(ei,i,s),_1:d}}),ai=n(function(r,t,n){return l(_i,Math.pow(2,sc),r,t,n)}),fi=n(function(r,t,n){if(h.eq(r,0))return f(ai,ii(r),t,n);var e=f(ai,ii(r),t,n),o=e._0,u=e._1,c=f(fi,r-1,u,n),i=c._0,_=c._1;return{ctor:"_Tuple2",_0:a(ei,o,i),_1:_}}),li=t(function(r,t){if(h.eq(t,Vc))return $;var n=ir(Bc(r))-ir(Bc(t))+1,e=f(fi,a(R,0,n),Dc(r),Dc(t)),o=e._0,u=e._1;return W({ctor:"_Tuple2",_0:a(Ic,a(Cc,Mc(r),Mc(t)),zc(o)),_1:a(Ic,Mc(r),zc(u))})}),si=t(function(r,t){return a(z,Vc,a(Q,at,a(li,r,t)))}),di=t(function(r,t){var n=a(Q,_t,a(li,r,t));return"Nothing"===n.ctor?h.crashCase("BigInt",{start:{line:481,column:5},end:{line:486,column:14}},n)("Cannot perform mod 0. Division by zero error."):n._0}),vi=(t(function(r,t){var n=r;return a(wu,function(r){return a(n.update,r,t)},n.view(t))}),n(function(r,t,n){var e=t,o=a(Do,function(r){return a(Or,n,Hr(r))},Qu);return a(Ou,{ctor:"::",_0:Iu("range"),_1:{ctor:"::",_0:a(Su,"min",Mo(e.min)),_1:{ctor:"::",_0:a(Su,"max",Mo(e.max)),_1:{ctor:"::",_0:a(Su,"step",Mo(e.step)),_1:{ctor:"::",_0:a(Su,"value",Mo(n)),_1:{ctor:"::",_0:a(Gu,"input",o),_1:r}}}}}},{ctor:"[]"})})),pi=(n(function(r,t,n){var e=a(jo,{ctor:"::",_0:"target",_1:{ctor:"::",_0:"selectedIndex",_1:{ctor:"[]"}}},Uo),o=Ge(n),u=function(r){return a(Lo,function(t){var n=a(Qe,t,o);if("Just"===n.ctor){var e=n._0;return h.eq(e,r)?qo("selected item did not change"):Io(e)}return qo("selected index out of range")},e)};return function(e){var o=function(r){return a(Mu,{ctor:"::",_0:Uu(h.eq(r,e)),_1:{ctor:"[]"}},{ctor:"::",_0:Nu(t(r)),_1:{ctor:"[]"}})},c=u(e),i=a(Gu,"change",c),_=a(Gu,"keyup",c);return a(Pu,{ctor:"::",_0:i,_1:{ctor:"::",_0:_,_1:r}},a(dr,o,n))}}),t(function(r,t){return a(Ou,{ctor:"::",_0:Ju(t),_1:{ctor:"::",_0:Hu(y),_1:r}},{ctor:"[]"})}),n(function(r,t,n){return a(Ou,{ctor:"::",_0:Iu("radio"),_1:{ctor:"::",_0:ju(h.eq(t,n)),_1:{ctor:"::",_0:Ku(b(t)),_1:r}}},{ctor:"[]"})})),hi=(t(function(r,t){return a(Ou,{ctor:"::",_0:Iu("checkbox"),_1:{ctor:"::",_0:ju(t),_1:{ctor:"::",_0:Ku(y),_1:r}}},{ctor:"[]"})}),t(function(r,t){var n=t;return f(cr,r,n._0,n._1)}),n(function(r,t,n){var e=n;return f(cr,r,t,{ctor:"::",_0:e._0,_1:e._1})}),t(function(r,t){var n=t;return r(n._0)||a(er,r,n._1)}),t(function(r,t){var n=t;return r(n._0)&&a(or,r,n._1)}),t(function(r,t){var n=t;return h.eq(n._0,r)||a(_r,r,n._1)}),function(r){return ir(r._1)+1}),gi=t(function(r,n){var e=n,o=t(function(r,t){for(;;){var n=t;if("[]"===n.ctor)return h.crashCase("List.Nonempty",{start:{line:131,column:13},end:{line:139,column:40}},n)("This can't happen: attempted to take value at safe index from empty list");if(h.eq(r,0))return n._0;var e=r-1,o=n._1;r=e,t=o}}),u=a(k["%"],r,hi(e));return h.eq(u,0)?e._0:a(o,u-1,e._1)}),mi=function(r){var t=r;return{ctor:"::",_0:t._0,_1:t._1}},bi=function(r){return r._1},yi=function(r){return r._0},ki=t(function(r,t){return{ctor:"Nonempty",_0:r,_1:t}}),Ti=function(r){var t=r;return"::"===t.ctor?W(a(ki,t._0,t._1)):$},wi=t(function(r,t){var n=t;return a(ki,r,{ctor:"::",_0:n._0,_1:n._1})}),Ni=Ni||{};Ni[":::"]=wi;var xi=(t(function(r,t){var n=r,e=t;return a(ki,n._0,a(k["++"],n._1,{ctor:"::",_0:e._0,_1:e._1}))}),function(r){var t=r,n=t._0,e=a(k["++"],bi(n),br(a(dr,mi,t._1))),o=yi(n);return a(ki,o,e)}),Bi=(t(function(r,t){return a(ki,r,t._1)}),t(function(r,t){return a(ki,t._0,r)}),t(function(r,t){var n=t;return a(ki,r(n._0),a(dr,r,n._1))})),Ri=(t(function(r,t){return xi(a(Bi,r,t))}),n(function(r,t,n){var e=t,o=n;return a(ki,a(r,e._0,o._0),f(nr,r,e._1,o._1))})),Ei=(Ri(t(function(r,t){return t(r)})),t(function(r,n){var e=n,o=t(function(t,n){return a(r,t+1,n)});return a(ki,a(r,0,e._0),a(Ar,o,e._1))}),n(function(r,t,n){var e=n,o=e._1,u=e._0;if(r(u))return a(ki,u,a(vr,r,o));var c=a(vr,r,o);return"[]"===c.ctor?a(ki,t,{ctor:"[]"}):a(ki,c._0,c._1)}),t(function(r,t){var n=t,e=a(H,r,{ctor:"::",_0:n._0,_1:n._1});return"::"===e.ctor?a(ki,e._0,e._1):h.crashCase("List.Nonempty",{start:{line:372,column:5},end:{line:377,column:94}},e)("This can't happen: sortBying a nonempty list returned an empty list")}),t(function(r,t){var n=t,e=a(K,r,{ctor:"::",_0:n._0,_1:n._1});return"::"===e.ctor?a(ki,e._0,e._1):h.crashCase("List.Nonempty",{start:{line:384,column:5},end:{line:389,column:96}},e)("This can't happen: sortWithing a nonempty list returned an empty list")}),n(function(r,t,n){var e=n;return a(ki,t,f(gr,r,a(r,e._0,t),e._1))}),t(function(r,t){var n=t,e=n._0,o=n._1;return"[]"===o.ctor?a(ki,e,{ctor:"[]"}):a(ki,e,f(gr,r,a(r,o._0,e),o._1))}),t(function(r,n){var e=r,o=n;return a(ki,{ctor:"_Tuple2",_0:e._0,_1:o._0},f(nr,t(function(r,t){return{ctor:"_Tuple2",_0:r,_1:t}}),e._1,o._1))}),function(r){return et(a(kr," or ",r))}),Ai=Qt("[A-Za-z\\^%*$£!@#~.,=+-_;:/\\\\]*"),Ci=function(r){return{ctor:"Group",_0:r}},Oi=function(r){return{ctor:"Op",_0:r}},Pi=a(qt,Oi,Ai),Mi=function(r){return{ctor:"Int",_0:r}},Si=function(r){return{ctor:"Float",_0:r}},Li=a(It["<|>"],a(It["<$>"],Si,an),a(It["<?>"],a(It["<$>"],function(r){return Mi(a(z,Hc(0),Xc(r)))},Qt("\\d+")),"expected a number (float or int)")),qi=a(It["<|>"],Pt(function(r){return Ii}),a(It["<|>"],Li,Pi)),Ii=a(qt,Ci,a(It["<?>"],Wt(a(Xt,Zt,Pt(function(r){return qi}))),"expected a group (whitespace-separated expressions between brackets)")),Ji=function(r){return a(Lr,function(r){return r._2},a(Ir,function(r){return Ei(r._2)},a(Ct,qi,r)))},Di=function(r){var t=Vr(pc(r)),n=t;return"Ok"===n.ctor?w(n._0):0},Fi=function(r){var t=r;return Di(t._0)/Di(t._1)},ji=(t(function(r,t){return a(A,Fi(r),Fi(t))}),function(r){return x(Fi(r))}),Ui=function(r){return r._1},zi=function(r){return r._0},$i=n(function(r,t,n){return a(r,a(ci,zi(t),Ui(n)),a(ci,zi(n),Ui(t)))}),Wi=(t(function(r,n){return f($i,t(function(r,t){return h.eq(r,t)}),r,n)}),t(function(r,n){return f($i,t(function(r,t){return!h.eq(r,t)}),r,n)}),t(function(r,t){return f($i,kc,r,t)})),Qi=(t(function(r,t){return a(Wi,r,t)?r:t}),t(function(r,t){return f($i,bc,r,t)})),Zi=(t(function(r,t){return a(Qi,r,t)?r:t}),t(function(r,t){return f($i,yc,r,t)}),t(function(r,t){return f($i,Tc,r,t)}),t(function(r,t){for(;;){if(h.eq(t,Hc(0)))return r;var n=t,e=a(di,r,t);r=n,t=e}})),Gi=t(function(r,t){return{ctor:"Rational",_0:r,_1:t}}),Ki=function(r){var t=r,n=t._1,e=t._0,o=a(ci,a(Zi,e,n),Hc(a(bc,n,Hc(0))?-1:1));return a(Gi,a(si,e,o),a(si,n,o))},Hi=n(function(r,t,n){var e=t,o=e._1,u=n,c=u._1;return Ki(a(Gi,a(r,a(ci,e._0,c),a(ci,o,u._0)),a(ci,o,c)))}),Vi=Hi(ei),Xi=Hi(oi),Yi=t(function(r,t){var n=r,e=t;return Ki(a(Gi,a(ci,n._0,e._0),a(ci,n._1,e._1)))}),r_=(t(function(r,t){var n=r;return Ki(a(Gi,a(ci,n._0,t),n._1))}),t(function(r,t){var n=t;return a(Yi,r,a(Gi,n._1,n._0))})),t_=function(r){var t=r;return a(Gi,Jc(t._0),t._1)},n_=function(r){var t=r;return Ki(a(Gi,t._1,t._0))},e_=t(function(r,t){return Ki(a(bc,t,Hc(0))?a(Gi,Jc(r),Jc(t)):a(Gi,r,t))}),o_=function(r){return a(e_,r,Hc(1))},u_=(t(function(r,t){return Ki(a(r_,r,o_(t)))}),t(function(r,t){return Ki(a(r_,o_(r),t))}),t(function(r,t){var n=Hc(r);return a(e_,Hc(x(t*Di(n))),n)})),c_=function(r){return r._1},i_=function(r){return r._0},__=function(r){return{ctor:"ParseError",_0:r}},a_=function(r){return{ctor:"OpNotFound",_0:r}},f_=function(r){return{ctor:"StackUnderflow",_0:r}},l_=function(r){return{ctor:"Partial",_0:r}},s_=n(function(r,t,n){var e=n;if("Ok"===e.ctor)return n;var o=e._0;return"StackUnderflow"===o.ctor?Sr({ctor:"::",_0:l_({ctor:"_Tuple3",_0:r,_1:t,_2:o._0}),_1:{ctor:"[]"}}):n}),d_=n(function(r,t,n){var e=a(mn,t,i_(r));return"Just"===e.ctor?f(s_,t,n,a(e._0,r,n)):Pr(a_(t))}),v_=function(r){return{ctor:"Rational",_0:r}},p_=n(function(r,t,n){var e=t;switch(e.ctor){case"Float":return function(r){return Sr({ctor:"::",_0:r,_1:n})}(v_(a(u_,c_(r),e._0)));case"Int":return function(r){return Sr({ctor:"::",_0:r,_1:n})}(v_(o_(e._0)));case"Group":return a(Lr,function(r){return a(k["++"],r,n)},a(h_,r,e._0));default:return f(d_,r,e._0,n)}}),h_=t(function(r,n){return f(cr,t(function(t,n){return a(Mr,function(n){return f(p_,r,t,n)},n)}),Sr({ctor:"[]"}),n)}),g_=t(function(r,t){return f(p_,r,t,{ctor:"[]"})}),m_=t(function(r,t){return{ctor:"Context",_0:r,_1:t}}),b_=function(r){return a(Q,function(t){return{ctor:"_Tuple2",_0:t,_1:a(z,{ctor:"[]"},fr(r))}},lr(r))},y_=n(function(r,n,e){var o=t(function(t,n){var e=n,o=e._0,u=e._2,c=e._1;return r(t)?{ctor:"_Tuple3",_0:{ctor:"::",_0:t,_1:o},_1:c,_2:u+1}:{ctor:"_Tuple3",_0:o,_1:{ctor:"::",_0:t,_1:c},_2:u}}),u=t(function(r,t){var n=t,u=n._0,c=n._2,i=n._1;return h.cmp(c,e)<0?a(o,r,{ctor:"_Tuple3",_0:u,_1:i,_2:c}):{ctor:"_Tuple3",_0:u,_1:{ctor:"::",_0:r,_1:i},_2:c}}),c=f(cr,u,{ctor:"_Tuple3",_0:{ctor:"[]"},_1:{ctor:"[]"},_2:0},n),i=c._0,_=c._1,l=c._2;return h.eq(l,e)?a(Lr,function(r){return{ctor:"_Tuple2",_0:_,_1:r}},a(Jr,e,Ti(i))):Pr(e-l)}),k_=t(function(r,t){return a(Lr,function(r){return r._1},a(Jr,f_(1),b_(t)))}),T_=t(function(r,t){return a(Lr,function(r){return{ctor:"::",_0:r,_1:t}},a(Jr,f_(1),lr(t)))}),w_=function(r){return"Partial"===r.ctor},N_=n(function(r,t,n){return function(n){var e=n;if("Ok"===e.ctor){var o=e._0._0,u=yi(e._0._1);return"Partial"===u.ctor?f(r,o,t,u._0):Sr(o)}return Pr(f_(e._0))}(f(y_,w_,n,1))}),x_=N_(n(function(r,t,n){var e=n;return f(d_,t,e._0,a(k["++"],e._1,r))})),B_=N_(n(function(r,n,e){var o=e;return f(cr,t(function(r,t){var n=r;return"Ok"===n.ctor?a(Lr,function(r){return a(k["++"],n._0,r)},t):Pr(n._0)}),Sr({ctor:"[]"}),a(dr,function(r){return f(d_,n,o._0,a(k["++"],r,o._1))},a(ze,o._2,r)))})),R_=N_(n(function(r,n,e){var o=e;return a(Mr,function(r){var e=r;return f(cr,t(function(r,t){return a(Mr,function(t){return f(d_,n,o._0,{ctor:"::",_0:r,_1:t})},t)}),Sr({ctor:"::",_0:e._0,_1:{ctor:"[]"}}),e._1)},a(Jr,f_(1),b_(r)))})),E_=N_(n(function(r,t,n){var e=n,o=e._0;return f(d_,t,o,{ctor:"::",_0:l_({ctor:"_Tuple3",_0:"y",_1:{ctor:"::",_0:l_({ctor:"_Tuple3",_0:o,_1:e._1,_2:e._2}),_1:{ctor:"[]"}},_2:1}),_1:r})})),A_=e(function(r,t,n,e){return Sr({ctor:"::",_0:v_(r(t)),_1:e})}),C_=(A_(y),t(function(r,t){return f(A_,u_(c_(t)),r,t)})),O_=t(function(r,t){var n=Bi(function(r){var t=r;return"Rational"===t.ctor?t._0:o_(Hc(0))});return a(Ir,f_,a(Lr,function(r){var t=r;return{ctor:"_Tuple2",_0:t._0,_1:n(t._1)}},f(y_,function(r){return"Rational"===r.ctor},r,t)))}),P_=o(function(r,t,n,e,o){return a(Lr,function(e){var o=e,u=o._1;return{ctor:"::",_0:v_(t(a(n,r(a(gi,0,u)),r(a(gi,1,u))))),_1:o._0}},a(O_,o,2))}),M_=a(P_,y,y),S_=t(function(r,t){return l(P_,Fi,u_(c_(t)),r,t)}),L_=o(function(r,t,n,e,o){return a(Lr,function(e){var o=e;return{ctor:"::",_0:v_(t(n(r(yi(o._1))))),_1:o._0}},a(O_,o,1))}),q_=a(L_,y,y),I_=t(function(r,t){return l(L_,Fi,u_(c_(t)),r,t)}),J_=t(function(r,n){var e=t(function(r,t){return ji(a(gi,r,t))});return a(Lr,function(r){var t=r,n=t._1;return a(dr,function(r){return v_(o_(Hc(r)))},a(Er,a(e,0,n),a(e,1,n)))},a(O_,n,2))}),D_=Yn({ctor:"::",_0:{ctor:"_Tuple2",_0:"Partial (type)",_1:"Generated when an op would otherwise stack-underflow; the op's name, a capture of the current stack, and the amount of values needed to evaluate."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"Rational (type)",_1:"Basically a fraction. These are used internally for almost all computation."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"Floating Point Accuracy/Precision Adjuster",_1:"This controls the balance between precision and accuracy with floating point conversion. If it is too high, big numbers run through floating-point functions or entered will produce crazy results."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"+",_1:"What do YOU think?"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"-",_1:"Destroys the universe."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"/",_1:"Divides x by y."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"*",_1:"Multiplies x by y."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"neg",_1:"Negates x (-x)."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"inv",_1:"Reciprocal (1 x /)."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"sqrt",_1:"Square root (x 0.5 ^). Uses floats."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"^",_1:"Exponent (x to the power of y). Uses floats."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"nth",_1:"Y-th root of X (x y inv ^). Uses floats"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"constant.pi",_1:"π, the ratio of a circle's circumference to its diameter."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"constant.e",_1:"Euler's constant, bizarrely common in lots of maths."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"constant.phi",_1:"The Golden Ratio (1 5 sqrt + 2 /) - also turns up a lot."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"run",_1:"Uses the current stack to attempt to evaluate a Partial."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"map",_1:"Runs a Partial over all other values in the stack."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"dup",_1:"Copies the top item on the stack."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"drp",_1:"Deletes the top item on the stack."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fld",_1:"Works through the stack top-to-bottom, using a Partial to combine each value it encounters with its accumulator. It returns the accumulator when done."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"ran",_1:"Puts onto the stack all numbers between x and y - inclusive. Uses floats."},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}}),F_=Yn({ctor:"::",_0:{ctor:"_Tuple2",_0:"/",_1:M_(r_)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"+",_1:M_(Vi)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"*",_1:M_(Yi)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"-",_1:M_(Xi)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"neg",_1:q_(t_)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"inv",_1:q_(n_)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"sqrt",_1:I_(L)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"^",_1:S_(t(function(r,t){return Math.pow(r,t)}))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"nth",_1:S_(t(function(r,t){return Math.pow(r,1/t)}))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"constant.pi",_1:C_(O)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"constant.e",_1:C_(C)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"constant.phi",_1:C_(1.618033988749895)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"run",_1:x_},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"map",_1:B_},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"dup",_1:T_},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"drp",_1:k_},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fld",_1:R_},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"ran",_1:J_},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"y",_1:E_},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}),j_=function(r){var t=function(r){var t=r,n=t._0;return a(Ru,{ctor:"::",_0:qu("op-docs"),_1:{ctor:"[]"}},{ctor:"::",_0:a(Eu,{ctor:"::",_0:qu("op-name"),_1:{ctor:"::",_0:$u({ctor:"::",_0:{ctor:"_Tuple2",_0:"background-color",_1:uc(n)},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:Nu(n),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:a(Eu,{ctor:"::",_0:qu("op-desc"),_1:{ctor:"[]"}},{ctor:"::",_0:Nu(t._1),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})},n=sn(r);return a(dr,t,n)},U_=function(r){var t=f(vi,{ctor:"::",_0:qu("float-slider"),_1:{ctor:"[]"}},{min:1,max:12,step:.5},r);return a(Cu,{ctor:"::",_0:qu("float-slider-label"),_1:{ctor:"[]"}},{ctor:"::",_0:t,_1:{ctor:"::",_0:Nu("Floating Point Accuracy/Precision Adjuster"),_1:{ctor:"[]"}}})},z_=t(function(r,t){var n=function(r){return a(Ru,{ctor:"::",_0:qu("horizontal-center"),_1:{ctor:"[]"}},V(r))},e=function(r){return Nu(pc(r))},o=function(r){return a(k["++"],{ctor:"::",_0:n(e(zi(r))),_1:{ctor:"[]"}},h.eq(Ui(r),Hc(1))?{ctor:"[]"}:{ctor:"::",_0:a(Bu,{ctor:"[]"},{ctor:"[]"}),_1:{ctor:"::",_0:n(e(Ui(r))),_1:{ctor:"[]"}}})},u=function(r){return Nu(T(r))},c=function(){var n=t;if("Rational"===n.ctor){var e=n._0;return"FormattedRational"===r.ctor?{ctor:"::",_0:a(Ru,{ctor:"::",_0:qu("formatted-rational"),_1:{ctor:"[]"}},o(e)),_1:{ctor:"[]"}}:{ctor:"::",_0:u(Fi(e)),_1:{ctor:"[]"}}}return{ctor:"::",_0:a(Ru,{ctor:"::",_0:qu("partial"),_1:{ctor:"[]"}},{ctor:"::",_0:a(Ru,{ctor:"::",_0:qu("partial-op"),_1:{ctor:"[]"}},{ctor:"::",_0:Nu(n._0._0),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:a(Ru,{ctor:"::",_0:qu("partial-missing"),_1:{ctor:"[]"}},{ctor:"::",_0:Nu(a(tt," ",{ctor:"::",_0:"Missing",_1:{ctor:"::",_0:T(n._0._2),_1:{ctor:"::",_0:"values",_1:{ctor:"[]"}}}})),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:a(Ru,{ctor:"::",_0:qu("partial-stack"),_1:{ctor:"[]"}},a(dr,z_(r),n._0._1)),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}}();return a(Ru,{ctor:"::",_0:qu("item"),_1:{ctor:"[]"}},c)}),$_=function(r){return a(Ru,{ctor:"::",_0:qu("error"),_1:{ctor:"[]"}},{ctor:"::",_0:Nu(function(r){var t=r;switch(t.ctor){case"MathematicalImpossibility":return"Does not compute";case"OpNotFound":return a(tt," ",{ctor:"::",_0:"Operator not found: ",_1:{ctor:"::",_0:t._0,_1:{ctor:"[]"}}});case"StackUnderflow":return a(tt," ",{ctor:"::",_0:"Stack underflowed by",_1:{ctor:"::",_0:T(t._0),_1:{ctor:"::",_0:"items",_1:{ctor:"[]"}}}});default:return a(tt," ",{ctor:"::",_0:"Parse error:",_1:{ctor:"::",_0:t._0,_1:{ctor:"[]"}}})}}(r)),_1:{ctor:"[]"}})},W_=function(r){return x(Math.pow(10,r))},Q_=t(function(r,t){var n=r;switch(n.ctor){case"ExpressionTyped":var e=n._0;return function(r){return h.update(t,{result:r,expression:e})}(a(Mr,g_(a(m_,F_,W_(t.floatingPointControl))),a(Ir,__,Ji(a(k["++"],"(",a(k["++"],e,")"))))));case"SwitchOutputConf":return h.update(t,{outputSetting:n._0});default:return h.update(t,{floatingPointControl:n._0})}}),Z_=(e(function(r,t,n,e){return{result:r,expression:t,outputSetting:n,floatingPointControl:e}}),{ctor:"FormattedRational"}),G_={result:Sr({ctor:"[]"}),expression:"",outputSetting:Z_,floatingPointControl:6},K_={ctor:"Float"},H_=function(r){var n=t(function(t,n){return a(Cu,{ctor:"[]"},{ctor:"::",_0:f(pi,{ctor:"[]"},n,r),_1:{ctor:"::",_0:Nu(t),_1:{ctor:"[]"}}})});return a(Ru,{ctor:"[]"},{ctor:"::",_0:a(n,"Rational (formatted)",Z_),_1:{ctor:"::",_0:a(Au,{ctor:"[]"},{ctor:"[]"}),_1:{ctor:"::",_0:a(n,"Decimal (via floating point, may break)",K_),_1:{ctor:"[]"}}}})},V_=function(r){return{ctor:"AdjustFloatingPointControl",_0:r}},X_=function(r){return{ctor:"SwitchOutputConf",_0:r}},Y_=function(r){return{ctor:"ExpressionTyped",_0:r}},ra=function(r){var t=function(){var t=r.result;return"Ok"===t.ctor?a(dr,z_(r.outputSetting),hr(t._0)):{ctor:"::",_0:$_(t._0),_1:{ctor:"[]"}}}();return a(Ru,{ctor:"::",_0:qu("rpncalc"),_1:{ctor:"[]"}},{ctor:"::",_0:a(Ou,{ctor:"::",_0:Hu(Y_),_1:{ctor:"::",_0:Ju(r.expression),_1:{ctor:"::",_0:qu("exprinput"),_1:{ctor:"::",_0:zu(!0),_1:{ctor:"::",_0:Du("Expression"),_1:{ctor:"[]"}}}}}},{ctor:"[]"}),_1:{ctor:"::",_0:a(Ru,{ctor:"::",_0:qu("config-panel"),_1:{ctor:"[]"}},{ctor:"::",_0:a(wu,X_,H_(r.outputSetting)),_1:{ctor:"::",_0:a(wu,V_,U_(r.floatingPointControl)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:a(Ru,{ctor:"::",_0:qu("stack"),_1:{ctor:"[]"}},t),_1:{ctor:"::",_0:a(Ru,{ctor:"::",_0:qu("docs"),_1:{ctor:"[]"}},j_(D_)),_1:{ctor:"[]"}}}}})},ta=function(r){var n=r;return Tu({init:a(vt["!"],n.model,{ctor:"[]"}),update:t(function(r,t){return a(vt["!"],a(n.update,r,t),{ctor:"[]"})}),view:n.view,subscriptions:function(r){return ht}})}({model:G_,update:Q_,view:ra})(),na={};if(na.Main=na.Main||{},void 0!==ta&&ta(na.Main,"Main",void 0),"function"==typeof define&&define.amd)return void define([],function(){return na});if("object"==typeof r)return void(r.exports=na);var ea=this.Elm;if(void 0===ea)return void(this.Elm=na);for(var oa in na){if(oa in ea)throw new Error("There are two Elm modules called `"+oa+"` on this page! Rename one of them.");ea[oa]=na[oa]}}).call(this)}]);