-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelm.js
1 lines (1 loc) · 43.9 KB
/
elm.js
1
!function(n){"use strict";function r(n,r,t){return t.a=n,t.f=r,t}function a(t){return r(2,t,function(r){return function(n){return t(r,n)}})}function l(u){return r(3,u,function(t){return function(r){return function(n){return u(t,r,n)}}})}function v(e){return r(4,e,function(u){return function(t){return function(r){return function(n){return e(u,t,r,n)}}}})}function t(i){return r(5,i,function(e){return function(u){return function(t){return function(r){return function(n){return i(e,u,t,r,n)}}}}})}function u(o){return r(6,o,function(i){return function(e){return function(u){return function(t){return function(r){return function(n){return o(i,e,u,t,r,n)}}}}}})}function e(a){return r(7,a,function(o){return function(i){return function(e){return function(u){return function(t){return function(r){return function(n){return a(o,i,e,u,t,r,n)}}}}}}})}function i(f){return r(8,f,function(a){return function(o){return function(i){return function(e){return function(u){return function(t){return function(r){return function(n){return f(a,o,i,e,u,t,r,n)}}}}}}}})}function o(c){return r(9,c,function(f){return function(a){return function(o){return function(i){return function(e){return function(u){return function(t){return function(r){return function(n){return c(f,a,o,i,e,u,t,r,n)}}}}}}}}})}function g(n,r,t){return 2===n.a?n.f(r,t):n(r)(t)}function d(n,r,t,u){return 3===n.a?n.f(r,t,u):n(r)(t)(u)}function h(n,r,t,u,e){return 4===n.a?n.f(r,t,u,e):n(r)(t)(u)(e)}function s(n,r,t,u,e,i){return 5===n.a?n.f(r,t,u,e,i):n(r)(t)(u)(e)(i)}function $(n,r,t,u,e,i,o){return 6===n.a?n.f(r,t,u,e,i,o):n(r)(t)(u)(e)(i)(o)}var p={$:0};function b(n,r){return{$:1,a:n,b:r}}var f=a(b);function m(n){for(var r=p,t=n.length;t--;)r=b(n[t],r);return r}function c(n){for(var r=[];n.b;n=n.b)r.push(n.a);return r}var w=l(function(n,r,t){for(var u=[];r.b&&t.b;r=r.b,t=t.b)u.push(g(n,r.a,t.a));return m(u)});v(function(n,r,t,u){for(var e=[];r.b&&t.b&&u.b;r=r.b,t=t.b,u=u.b)e.push(d(n,r.a,t.a,u.a));return m(e)}),t(function(n,r,t,u,e){for(var i=[];r.b&&t.b&&u.b&&e.b;r=r.b,t=t.b,u=u.b,e=e.b)i.push(h(n,r.a,t.a,u.a,e.a));return m(i)}),u(function(n,r,t,u,e,i){for(var o=[];r.b&&t.b&&u.b&&e.b&&i.b;r=r.b,t=t.b,u=u.b,e=e.b,i=i.b)o.push(s(n,r.a,t.a,u.a,e.a,i.a));return m(o)}),a(function(t,n){return m(c(n).sort(function(n,r){return A(t(n),t(r))}))}),a(function(u,n){return m(c(n).sort(function(n,r){var t=g(u,n,r);return t===pt?0:t===wt?-1:1}))});function y(n,r){for(var t,u=[],e=C(n,r,0,u);e&&(t=u.pop());e=C(t.a,t.b,0,u));return e}function C(n,r,t,u){if(100<t)return u.push(N(n,r)),!0;if(n===r)return!0;if("object"!=typeof n||null===n||null===r)return"function"==typeof n&&P(5),!1;for(var e in n.$<0&&(n=At(n),r=At(r)),n)if(!C(n[e],r[e],t+1,u))return!1;return!0}a(y),a(function(n,r){return!y(n,r)});function A(n,r,t){if("object"!=typeof n)return n===r?0:n<r?-1:1;if(void 0===n.$)return(t=A(n.a,r.a))?t:(t=A(n.b,r.b))?t:A(n.c,r.c);for(;n.b&&r.b&&!(t=A(n.a,r.a));n=n.b,r=r.b);return t||(n.b?1:r.b?-1:0)}a(function(n,r){return A(n,r)<0}),a(function(n,r){return A(n,r)<1}),a(function(n,r){return 0<A(n,r)}),a(function(n,r){return 0<=A(n,r)});var k=a(function(n,r){var t=A(n,r);return t<0?wt:t?mt:pt}),j=0;function N(n,r){return{a:n,b:r}}function _(n,r,t){return{a:n,b:r,c:t}}function E(n){return n}function x(n,r){var t={};for(var u in n)t[u]=n[u];for(var u in r)t[u]=r[u];return t}a(S);function S(n,r){if("string"==typeof n)return n+r;if(!n.b)return r;var t=b(n.a,r);n=n.b;for(var u=t;n.b;n=n.b)u=u.b=b(n.a,r);return t}var F=l(function(n,r,t){for(var u=Array(n),e=0;e<n;e++)u[e]=t(r+e);return u}),T=a(function(n,r){for(var t=Array(n),u=0;u<n&&r.b;u++)t[u]=r.a,r=r.b;return t.length=u,N(t,r)}),L=a(function(n,r){return r[n]}),D=l(function(n,r,t){for(var u=t.length,e=Array(u),i=0;i<u;i++)e[i]=t[i];return e[n]=r,e}),O=a(function(n,r){for(var t=r.length,u=Array(t+1),e=0;e<t;e++)u[e]=r[e];return u[t]=n,u}),M=l(function(n,r,t){for(var u=t.length,e=0;e<u;e++)r=g(n,t[e],r);return r}),B=l(function(n,r,t){for(var u=t.length-1;0<=u;u--)r=g(n,t[u],r);return r}),q=a(function(n,r){for(var t=r.length,u=Array(t),e=0;e<t;e++)u[e]=n(r[e]);return u});l(function(n,r,t){for(var u=t.length,e=Array(u),i=0;i<u;i++)e[i]=g(n,r+i,t[i]);return e}),l(function(n,r,t){return t.slice(n,r)}),l(function(n,r,t){var u=r.length,e=n-u;t.length<e&&(e=t.length);for(var i=Array(u+e),o=0;o<u;o++)i[o]=r[o];for(o=0;o<e;o++)i[o+u]=t[o];return i}),a(function(n,r){return r}),a(function(n,r){return console.log(n+": <internals>"),r});function P(n){throw Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}a(function(n,r){return n+r}),a(function(n,r){return n-r});var J=a(function(n,r){return n*r}),I=(a(function(n,r){return n/r}),a(function(n,r){return n/r|0}),a(Math.pow)),R=(a(function(n,r){return r%n}),a(function(n,r){var t=r%n;return 0===n?P(11):0<t&&n<0||t<0&&0<n?t+n:t})),z=Math.cos,H=Math.sin,Y=a(Math.atan2);var K=Math.ceil,Z=Math.floor,Q=Math.sqrt,U=Math.log,G=isNaN;a(function(n,r){return n&&r}),a(function(n,r){return n||r}),a(function(n,r){return n!==r}),a(function(n,r){return n&r}),a(function(n,r){return n|r}),a(function(n,r){return n^r});a(function(n,r){return r<<n}),a(function(n,r){return r>>n}),a(function(n,r){return r>>>n});a(function(n,r){return n+r});a(function(n,r){return n+r});a(function(n,r){for(var t=r.length,u=Array(t),e=0;e<t;){var i=r.charCodeAt(e);i<55296||56319<i?(u[e]=n(E(r[e])),e++):(u[e]=n(E(r[e]+r[e+1])),e+=2)}return u.join("")}),a(function(n,r){for(var t=[],u=r.length,e=0;e<u;){var i=r[e],o=r.charCodeAt(e);e++,o<55296||56319<o||(i+=r[e],e++),n(E(i))&&t.push(i)}return t.join("")});l(function(n,r,t){for(var u=t.length,e=0;e<u;){var i=t[e],o=t.charCodeAt(e);e++,o<55296||56319<o||(i+=t[e],e++),r=g(n,E(i),r)}return r}),l(function(n,r,t){for(var u=t.length;u--;){var e=t[u],i=t.charCodeAt(u);i<56320||57343<i||(e=t[--u]+e),r=g(n,E(e),r)}return r});var W=a(function(n,r){return r.split(n)}),V=a(function(n,r){return r.join(n)}),X=l(function(n,r,t){return t.slice(n,r)});a(function(n,r){for(var t=r.length;t--;){var u=r[t],e=r.charCodeAt(t);if(e<56320||57343<e||(u=r[--t]+u),n(E(u)))return!0}return!1});var nn=a(function(n,r){for(var t=r.length;t--;){var u=r[t],e=r.charCodeAt(t);if(e<56320||57343<e||(u=r[--t]+u),!n(E(u)))return!1}return!0}),rn=a(function(n,r){return!!~r.indexOf(n)}),tn=(a(function(n,r){return 0==r.indexOf(n)}),a(function(n,r){return n.length<=r.length&&r.lastIndexOf(n)==r.length-n.length}),a(function(n,r){var t=n.length;if(t<1)return p;for(var u=0,e=[];-1<(u=r.indexOf(n,u));)e.push(u),u+=t;return m(e)}));function un(n){return n+""}function en(n){return{$:2,b:n}}en(function(n){return"number"!=typeof n?gn("an INT",n):-2147483647<n&&n<2147483647&&(0|n)===n?Hu(n):!isFinite(n)||n%1?gn("an INT",n):Hu(n)}),en(function(n){return"boolean"==typeof n?Hu(n):gn("a BOOL",n)});var on=en(function(n){return"number"==typeof n?Hu(n):gn("a FLOAT",n)}),an=(en(function(n){return Hu(yn(n))}),en(function(n){return"string"==typeof n?Hu(n):n instanceof String?Hu(n+""):gn("a STRING",n)}));var fn=a(function(n,r){return{$:6,d:n,b:r}});a(function(n,r){return{$:7,e:n,b:r}});function cn(n,r){return{$:9,f:n,g:r}}a(function(n,r){return{$:10,b:r,h:n}});var vn=a(function(n,r){return cn(n,[r])}),sn=l(function(n,r,t){return cn(n,[r,t])}),ln=(v(function(n,r,t,u){return cn(n,[r,t,u])}),t(function(n,r,t,u,e){return cn(n,[r,t,u,e])}),u(function(n,r,t,u,e,i){return cn(n,[r,t,u,e,i])}),e(function(n,r,t,u,e,i,o){return cn(n,[r,t,u,e,i,o])}),i(function(n,r,t,u,e,i,o,a){return cn(n,[r,t,u,e,i,o,a])}),o(function(n,r,t,u,e,i,o,a,f){return cn(n,[r,t,u,e,i,o,a,f])}),a(function(n,r){try{return bn(n,JSON.parse(r))}catch(n){return zu(g(Yu,"This is not valid JSON! "+n.message,yn(r)))}}),a(function(n,r){return bn(n,Cn(r))}));function bn(n,r){switch(n.$){case 2:return n.b(r);case 5:return null===r?Hu(n.c):gn("null",r);case 3:return hn(r)?dn(n.b,r,m):gn("a LIST",r);case 4:return hn(r)?dn(n.b,r,$n):gn("an ARRAY",r);case 6:var t=n.d;if("object"!=typeof r||null===r||!(t in r))return gn("an OBJECT with a field named `"+t+"`",r);var u=bn(n.b,r[t]);return Pu(u)?u:zu(g(Ku,t,u.a));case 7:var e=n.e;if(!hn(r))return gn("an ARRAY",r);if(r.length<=e)return gn("a LONGER array. Need index "+e+" but only see "+r.length+" entries",r);u=bn(n.b,r[e]);return Pu(u)?u:zu(g(Zu,e,u.a));case 8:if("object"!=typeof r||null===r||hn(r))return gn("an OBJECT",r);var i=p;for(var o in r)if(r.hasOwnProperty(o)){u=bn(n.b,r[o]);if(!Pu(u))return zu(g(Ku,o,u.a));i=b(N(o,u.a),i)}return Hu(nu(i));case 9:for(var a=n.f,f=n.g,c=0;c<f.length;c++){u=bn(f[c],r);if(!Pu(u))return u;a=a(u.a)}return Hu(a);case 10:u=bn(n.b,r);return Pu(u)?bn(n.h(u.a),r):u;case 11:for(var v=p,s=n.g;s.b;s=s.b){u=bn(s.a,r);if(Pu(u))return u;v=b(u.a,v)}return zu(Qu(nu(v)));case 1:return zu(g(Yu,n.a,yn(r)));case 0:return Hu(n.a)}}function dn(n,r,t){for(var u=r.length,e=Array(u),i=0;i<u;i++){var o=bn(n,r[i]);if(!Pu(o))return zu(g(Zu,i,o.a));e[i]=o.a}return Hu(t(e))}function hn(n){return Array.isArray(n)||"undefined"!=typeof FileList&&n instanceof FileList}function $n(r){return g(Ru,r.length,function(n){return r[n]})}function gn(n,r){return zu(g(Yu,"Expecting "+n,yn(r)))}function pn(n,r){if(n===r)return!0;if(n.$!==r.$)return!1;switch(n.$){case 0:case 1:return n.a===r.a;case 2:return n.b===r.b;case 5:return n.c===r.c;case 3:case 4:case 8:return pn(n.b,r.b);case 6:return n.d===r.d&&pn(n.b,r.b);case 7:return n.e===r.e&&pn(n.b,r.b);case 9:return n.f===r.f&&mn(n.g,r.g);case 10:return n.h===r.h&&pn(n.b,r.b);case 11:return mn(n.g,r.g)}}function mn(n,r){var t=n.length;if(t!==r.length)return!1;for(var u=0;u<t;u++)if(!pn(n[u],r[u]))return!1;return!0}var wn=a(function(n,r){return JSON.stringify(Cn(r),null,n)+""});function yn(n){return n}function Cn(n){return n}l(function(n,r,t){return t[n]=Cn(r),t});yn(null);function An(n){return{$:0,a:n}}function kn(n){return{$:2,b:n,c:null}}var jn=a(function(n,r){return{$:3,b:n,d:r}});a(function(n,r){return{$:4,b:n,d:r}});var Nn=0;function _n(n){var r={$:0,e:Nn++,f:n,g:null,h:[]};return Ln(r),r}function En(r){return kn(function(n){n(An(_n(r)))})}function xn(n,r){n.h.push(r),Ln(n)}var Sn=a(function(r,t){return kn(function(n){xn(r,t),n(An(j))})});var Fn=!1,Tn=[];function Ln(n){if(Tn.push(n),!Fn){for(Fn=!0;n=Tn.shift();)Dn(n);Fn=!1}}function Dn(r){for(;r.f;){var n=r.f.$;if(0===n||1===n){for(;r.g&&r.g.$!==n;)r.g=r.g.i;if(!r.g)return;r.f=r.g.b(r.f.a),r.g=r.g.i}else{if(2===n)return void(r.f.c=r.f.b(function(n){r.f=n,Ln(r)}));if(5===n){if(0===r.h.length)return;r.f=r.f.b(r.h.shift())}else r.g={$:3===n?0:1,b:r.f.b,i:r.g},r.f=r.f.d}}}v(function(n,r,t,u){return On(r,u,n.a_,n.a7,n.a5,function(){return function(){}})});function On(n,r,t,u,e,i){var o=g(ln,n,yn(r?r.flags:void 0));Pu(o)||P(2);var a={},f=(o=t(o.a)).a,c=i(s,f),v=function(n,r){var t;for(var u in Mn){var e=Mn[u];e.a&&((t=t||{})[u]=e.a(u,r)),n[u]=qn(e,r)}return t}(a,s);function s(n,r){o=g(u,n,f),c(f=o.a,r),Hn(a,o.b,e(f))}return Hn(a,o.b,e(f)),v?{ports:v}:{}}var Mn={};function Bn(n,r,t,u,e){return{b:n,c:r,d:t,e:u,f:e}}function qn(n,r){var u={g:r,h:void 0},e=n.c,i=n.d,o=n.e,a=n.f;return u.h=_n(g(jn,function n(t){return g(jn,n,function(n){return{$:5,b:n}}(function(n){var r=n.a;return 0===n.$?d(i,u,r,t):o&&a?h(e,u,r.i,r.j,t):d(e,u,o?r.i:r.j,t)}))},n.b))}var Pn=a(function(r,t){return kn(function(n){r.g(t),n(An(j))})}),Jn=a(function(n,r){return g(Sn,n.h,{$:0,a:r})});function In(r){return function(n){return{$:1,k:r,l:n}}}function Rn(n){return{$:2,m:n}}var zn=a(function(n,r){return{$:3,n:n,o:r}});function Hn(n,r,t){var u={};for(var e in Yn(!0,r,u,null),Yn(!1,t,u,null),n)xn(n[e],{$:"fx",a:u[e]||{i:p,j:p}})}function Yn(n,r,t,u){switch(r.$){case 1:var e=r.k,i=function(n,r,t,u){return g(n?Mn[r].e:Mn[r].f,function(n){for(var r=t;r;r=r.q)n=r.p(n);return n},u)}(n,e,u,r.l);return void(t[e]=function(n,r,t){return t=t||{i:p,j:p},n?t.i=b(r,t.i):t.j=b(r,t.j),t}(n,i,t[e]));case 2:for(var o=r.m;o.b;o=o.b)Yn(n,o.a,t,u);return;case 3:return void Yn(n,r.o,t,{p:r.n,q:u})}}a(function(n,r){return r});var Kn;a(function(r,t){return function(n){return r(t(n))}});var Zn="undefined"!=typeof document?document:{};function Qn(n,r){n.appendChild(r)}v(function(n,r,t,u){var e=u.node;return e.parentNode.replaceChild(sr(n,function(){}),e),{}});function Un(n){return{$:0,a:n}}var Gn=a(function(i,o){return a(function(n,r){for(var t=[],u=0;r.b;r=r.b){var e=r.a;u+=e.b||0,t.push(e)}return u+=t.length,{$:1,c:o,d:cr(n),e:t,f:i,b:u}})}),Wn=Gn(void 0);a(function(i,o){return a(function(n,r){for(var t=[],u=0;r.b;r=r.b){var e=r.a;u+=e.b.b||0,t.push(e)}return u+=t.length,{$:2,c:o,d:cr(n),e:t,f:i,b:u}})})(void 0);var Vn=a(function(n,r){return{$:4,j:n,k:r,b:1+(r.b||0)}});function Xn(n,r){return{$:5,l:n,m:r,k:void 0}}var nr=a(function(n,r){return Xn([n,r],function(){return n(r)})}),rr=(l(function(n,r,t){return Xn([n,r,t],function(){return g(n,r,t)})}),v(function(n,r,t,u){return Xn([n,r,t,u],function(){return d(n,r,t,u)})}),t(function(n,r,t,u,e){return Xn([n,r,t,u,e],function(){return h(n,r,t,u,e)})}),u(function(n,r,t,u,e,i){return Xn([n,r,t,u,e,i],function(){return s(n,r,t,u,e,i)})}),e(function(n,r,t,u,e,i,o){return Xn([n,r,t,u,e,i,o],function(){return $(n,r,t,u,e,i,o)})}),i(function(n,r,t,u,e,i,o,a){return Xn([n,r,t,u,e,i,o,a],function(){return function(n,r,t,u,e,i,o,a){return 7===n.a?n.f(r,t,u,e,i,o,a):n(r)(t)(u)(e)(i)(o)(a)}(n,r,t,u,e,i,o,a)})}),o(function(n,r,t,u,e,i,o,a,f){return Xn([n,r,t,u,e,i,o,a,f],function(){return function(n,r,t,u,e,i,o,a,f){return 8===n.a?n.f(r,t,u,e,i,o,a,f):n(r)(t)(u)(e)(i)(o)(a)(f)}(n,r,t,u,e,i,o,a,f)})})),tr=a(function(n,r){return{$:"a0",n:n,o:r}}),ur=a(function(n,r){return{$:"a1",n:n,o:r}}),er=a(function(n,r){return{$:"a2",n:n,o:r}}),ir=a(function(n,r){return{$:"a3",n:n,o:r}});l(function(n,r,t){return{$:"a4",n:r,o:{f:n,o:t}}});a(function(n,r){return"a0"===r.$?g(tr,r.n,function(n,r){var t=De(r);return{$:r.$,a:t?d(Te,t<3?ar:fr,Le(n),r.a):g(Fe,n,r.a)}}(n,r.o)):r});var or,ar=a(function(n,r){return N(n(r.a),r.b)}),fr=a(function(n,r){return{q:n(r.q),aa:r.aa,Z:r.Z}});function cr(n){for(var r={};n.b;n=n.b){var t=n.a,u=t.$,e=t.n,i=t.o;if("a2"!==u){var o=r[u]||(r[u]={});"a3"===u&&"class"===e?vr(o,e,i):o[e]=i}else"className"===e?vr(r,e,Cn(i)):r[e]=Cn(i)}return r}function vr(n,r,t){var u=n[r];n[r]=u?u+" "+t:t}function sr(n,r){var t=n.$;if(5===t)return sr(n.k||(n.k=n.m()),r);if(0===t)return Zn.createTextNode(n.a);if(4===t){for(var u=n.k,e=n.j;4===u.$;)"object"!=typeof e?e=[e,u.j]:e.push(u.j),u=u.k;var i={j:e,p:r};return(o=sr(u,i)).elm_event_node_ref=i,o}if(3===t)return lr(o=n.h(n.g),r,n.d),o;var o=n.f?Zn.createElementNS(n.f,n.c):Zn.createElement(n.c);Kn&&"a"==n.c&&o.addEventListener("click",Kn(o)),lr(o,r,n.d);for(var a=n.e,f=0;f<a.length;f++)Qn(o,sr(1===t?a[f]:a[f].b,r));return o}function lr(n,r,t){for(var u in t){var e=t[u];"a1"===u?br(n,e):"a0"===u?$r(n,r,e):"a3"===u?dr(n,e):"a4"===u?hr(n,e):("value"!==u&&"checked"!==u||n[u]!==e)&&(n[u]=e)}}function br(n,r){var t=n.style;for(var u in r)t[u]=r[u]}function dr(n,r){for(var t in r){var u=r[t];void 0!==u?n.setAttribute(t,u):n.removeAttribute(t)}}function hr(n,r){for(var t in r){var u=r[t],e=u.f,i=u.o;void 0!==i?n.setAttributeNS(e,t,i):n.removeAttributeNS(e,t)}}function $r(n,r,t){var u=n.elmFs||(n.elmFs={});for(var e in t){var i=t[e],o=u[e];if(i){if(o){if(o.q.$===i.$){o.q=i;continue}n.removeEventListener(e,o)}o=gr(r,i),n.addEventListener(e,o,or&&{passive:De(i)<2}),u[e]=o}else n.removeEventListener(e,o),u[e]=void 0}}try{window.addEventListener("t",null,Object.defineProperty({},"passive",{get:function(){or=!0}}))}catch(n){}function gr(v,n){function s(n){var r=s.q,t=bn(r.a,n);if(Pu(t)){for(var u,e=De(r),i=t.a,o=e?e<3?i.a:i.q:i,a=1==e?i.b:3==e&&i.aa,f=(a&&n.stopPropagation(),(2==e?i.b:3==e&&i.Z)&&n.preventDefault(),v);u=f.j;){if("function"==typeof u)o=u(o);else for(var c=u.length;c--;)o=u[c](o);f=f.p}f(o,a)}}return s.q=n,s}function pr(n,r){return n.$==r.$&&pn(n.a,r.a)}function mr(n,r){var t=[];return yr(n,r,t,0),t}function wr(n,r,t,u){var e={$:r,r:t,s:u,t:void 0,u:void 0};return n.push(e),e}function yr(n,r,t,u){if(n!==r){var e=n.$,i=r.$;if(e!==i){if(1!==e||2!==i)return void wr(t,0,u,r);r=function(n){for(var r=n.e,t=r.length,u=Array(t),e=0;e<t;e++)u[e]=r[e].b;return{$:1,c:n.c,d:n.d,e:u,f:n.f,b:n.b}}(r),i=1}switch(i){case 5:for(var o=n.l,a=r.l,f=o.length,c=f===a.length;c&&f--;)c=o[f]===a[f];if(c)return void(r.k=n.k);r.k=r.m();var v=[];return yr(n.k,r.k,v,0),void(0<v.length&&wr(t,1,u,v));case 4:for(var s=n.j,l=r.j,b=!1,d=n.k;4===d.$;)b=!0,"object"!=typeof s?s=[s,d.j]:s.push(d.j),d=d.k;for(var h=r.k;4===h.$;)b=!0,"object"!=typeof l?l=[l,h.j]:l.push(h.j),h=h.k;return b&&s.length!==l.length?void wr(t,0,u,r):((b?function(n,r){for(var t=0;t<n.length;t++)if(n[t]!==r[t])return!1;return!0}(s,l):s===l)||wr(t,2,u,l),void yr(d,h,t,u+1));case 0:return void(n.a!==r.a&&wr(t,3,u,r.a));case 1:return void Cr(n,r,t,u,kr);case 2:return void Cr(n,r,t,u,jr);case 3:if(n.h!==r.h)return void wr(t,0,u,r);var $=Ar(n.d,r.d);$&&wr(t,4,u,$);var g=r.i(n.g,r.g);return void(g&&wr(t,5,u,g))}}}function Cr(n,r,t,u,e){if(n.c===r.c&&n.f===r.f){var i=Ar(n.d,r.d);i&&wr(t,4,u,i),e(n,r,t,u)}else wr(t,0,u,r)}function Ar(n,r,t){var u;for(var e in n)if("a1"!==e&&"a0"!==e&&"a3"!==e&&"a4"!==e)if(e in r){var i=n[e],o=r[e];i===o&&"value"!==e&&"checked"!==e||"a0"===t&&pr(i,o)||((u=u||{})[e]=o)}else(u=u||{})[e]=t?"a1"===t?"":"a0"===t||"a3"===t?void 0:{f:n[e].f,o:void 0}:"string"==typeof n[e]?"":null;else{var a=Ar(n[e],r[e]||{},e);a&&((u=u||{})[e]=a)}for(var f in r)f in n||((u=u||{})[f]=r[f]);return u}function kr(n,r,t,u){var e=n.e,i=r.e,o=e.length,a=i.length;a<o?wr(t,6,u,{v:a,i:o-a}):o<a&&wr(t,7,u,{v:o,e:i});for(var f=o<a?o:a,c=0;c<f;c++){var v=e[c];yr(v,i[c],t,++u),u+=v.b||0}}function jr(n,r,t,u){for(var e=[],i={},o=[],a=n.e,f=r.e,c=a.length,v=f.length,s=0,l=0,b=u;s<c&&l<v;){var d=(N=a[s]).a,h=(_=f[l]).a,$=N.b,g=_.b,p=void 0,m=void 0;if(d!==h){var w=a[s+1],y=f[l+1];if(w){var C=w.a,A=w.b;m=h===C}if(y){var k=y.a,j=y.b;p=d===k}if(p&&m)yr($,j,e,++b),_r(i,e,d,g,l,o),b+=$.b||0,Er(i,e,d,A,++b),b+=A.b||0,s+=2,l+=2;else if(p)b++,_r(i,e,h,g,l,o),yr($,j,e,b),b+=$.b||0,s+=1,l+=2;else if(m)Er(i,e,d,$,++b),b+=$.b||0,yr(A,g,e,++b),b+=A.b||0,s+=2,l+=1;else{if(!w||C!==k)break;Er(i,e,d,$,++b),_r(i,e,h,g,l,o),b+=$.b||0,yr(A,j,e,++b),b+=A.b||0,s+=2,l+=2}}else yr($,g,e,++b),b+=$.b||0,s++,l++}for(;s<c;){var N;Er(i,e,(N=a[s]).a,$=N.b,++b),b+=$.b||0,s++}for(;l<v;){var _,E=E||[];_r(i,e,(_=f[l]).a,_.b,void 0,E),l++}(0<e.length||0<o.length||E)&&wr(t,8,u,{w:e,x:o,y:E})}var Nr="_elmW6BL";function _r(n,r,t,u,e,i){var o=n[t];if(!o)return i.push({r:e,A:o={c:0,z:u,r:e,s:void 0}}),void(n[t]=o);if(1===o.c){i.push({r:e,A:o}),o.c=2;var a=[];return yr(o.z,u,a,o.r),o.r=e,void(o.s.s={w:a,A:o})}_r(n,r,t+Nr,u,e,i)}function Er(n,r,t,u,e){var i=n[t];if(i){if(0===i.c){i.c=2;var o=[];return yr(u,i.z,o,e),void wr(r,9,e,{w:o,A:i})}Er(n,r,t+Nr,u,e)}else{var a=wr(r,9,e,void 0);n[t]={c:1,z:u,r:e,s:a}}}function xr(n,r,t,u){!function n(r,t,u,e,i,o,a){var f=u[e];var c=f.r;for(;c===i;){var v=f.$;if(1===v)xr(r,t.k,f.s,a);else if(8===v){f.t=r,f.u=a;var s=f.s.w;0<s.length&&n(r,t,s,0,i,o,a)}else if(9===v){f.t=r,f.u=a;var l=f.s;if(l){l.A.s=r;var s=l.w;0<s.length&&n(r,t,s,0,i,o,a)}}else f.t=r,f.u=a;if(!(f=u[++e])||(c=f.r)>o)return e}var b=t.$;if(4===b){for(var d=t.k;4===d.$;)d=d.k;return n(r,d,u,e,i+1,o,r.elm_event_node_ref)}var h=t.e;var $=r.childNodes;for(var g=0;g<h.length;g++){var p=1===b?h[g]:h[g].b,m=++i+(p.b||0);if(i<=c&&c<=m&&(e=n($[g],p,u,e,i,m,a),!(f=u[e])||(c=f.r)>o))return e;i=m}return e}(n,r,t,0,0,r.b,u)}function Sr(n,r,t,u){return 0===t.length?n:(xr(n,r,t,u),Fr(n,t))}function Fr(n,r){for(var t=0;t<r.length;t++){var u=r[t],e=u.t,i=Tr(e,u);e===n&&(n=i)}return n}function Tr(n,r){switch(r.$){case 0:return function(n,r,t){var u=n.parentNode,e=sr(r,t);e.elm_event_node_ref||(e.elm_event_node_ref=n.elm_event_node_ref);u&&e!==n&&u.replaceChild(e,n);return e}(n,r.s,r.u);case 4:return lr(n,r.u,r.s),n;case 3:return n.replaceData(0,n.length,r.s),n;case 1:return Fr(n,r.s);case 2:return n.elm_event_node_ref?n.elm_event_node_ref.j=r.s:n.elm_event_node_ref={j:r.s,p:r.u},n;case 6:for(var t=r.s,u=0;u<t.i;u++)n.removeChild(n.childNodes[t.v]);return n;case 7:for(var e=(t=r.s).e,i=n.childNodes[u=t.v];u<e.length;u++)n.insertBefore(sr(e[u],r.u),i);return n;case 9:if(!(t=r.s))return n.parentNode.removeChild(n),n;var o=t.A;return void 0!==o.r&&n.parentNode.removeChild(n),o.s=Fr(n,t.w),n;case 8:return function(n,r){var t=r.s,u=function(n,r){if(!n)return;for(var t=Zn.createDocumentFragment(),u=0;u<n.length;u++){var e=n[u].A;Qn(t,2===e.c?e.s:sr(e.z,r.u))}return t}(t.y,r);n=Fr(n,t.w);for(var e=t.x,i=0;i<e.length;i++){var o=e[i],a=o.A,f=2===a.c?a.s:sr(a.z,r.u);n.insertBefore(f,n.childNodes[o.r])}u&&Qn(n,u);return n}(n,r);case 5:return r.s(n);default:P(10)}}function Lr(n){if(3===n.nodeType)return Un(n.textContent);if(1!==n.nodeType)return Un("");for(var r=p,t=n.attributes,u=t.length;u--;){var e=t[u];r=b(g(ir,e.name,e.value),r)}var i=n.tagName.toLowerCase(),o=p,a=n.childNodes;for(u=a.length;u--;)o=b(Lr(a[u]),o);return d(Wn,i,r,o)}var Dr=v(function(r,n,t,a){return On(n,a,r.a_,r.a7,r.a5,function(u,n){var e=r.a9,i=a.node,o=Lr(i);return Br(n,function(n){var r=e(n),t=mr(o,r);i=Sr(i,o,t,u),o=r})})}),Or=(v(function(r,n,t,u){return On(n,u,r.a_,r.a7,r.a5,function(e,n){var i=r.O&&r.O(e),o=r.a9,a=Zn.title,f=Zn.body,c=Lr(f);return Br(n,function(n){Kn=i;var r=o(n),t=Wn("body")(p)(r.aS),u=mr(c,t);f=Sr(f,c,u,e),c=t,Kn=0,a!==r.a6&&(Zn.title=a=r.a6)})})}),"undefined"!=typeof cancelAnimationFrame?cancelAnimationFrame:function(n){clearTimeout(n)}),Mr="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:function(n){return setTimeout(n,1e3/60)};function Br(t,u){u(t);var e=0;function i(){e=1===e?0:(Mr(i),u(t),1)}return function(n,r){t=n,r?(u(t),2===e&&(e=1)):(0===e&&Mr(i),e=2)}}a(function(n,r){return g(Se,pe,kn(function(){r&&history.go(r),n()}))}),a(function(n,r){return g(Se,pe,kn(function(){history.pushState({},"",r),n()}))}),a(function(n,r){return g(Se,pe,kn(function(){history.replaceState({},"",r),n()}))});var qr={addEventListener:function(){},removeEventListener:function(){}},Pr="undefined"!=typeof document?document:qr,Jr="undefined"!=typeof window?window:qr,Ir=l(function(r,t,u){return En(kn(function(){function n(n){_n(u(n))}return r.addEventListener(t,n,or&&{passive:!0}),function(){r.removeEventListener(t,n)}}))}),Rr=a(function(n,r){var t=bn(n,r);return Pu(t)?Su(t.a):Fu});function zr(t,u){return kn(function(r){Mr(function(){var n=document.getElementById(t);r(n?An(u(n)):function(n){return{$:1,a:n}}(ge(t)))})})}a(function(r,n){return zr(n,function(n){return n[r](),j})});a(function(n,r){return function(r){return kn(function(n){Mr(function(){n(An(r()))})})}(function(){return Jr.scroll(n,r),j})});l(function(n,r,t){return zr(n,function(n){return n.scrollLeft=r,n.scrollTop=t,j})});function Hr(n){return{$:0,a:n}}function Yr(n){return{$:0,a:n}}function Kr(n){return g(_t,2,n)?-(1+(n/2|0)):n/2|0}function Zr(n){return n.a}function Qr(n){return n}function Ur(n){return y(n,Mt)}function Gr(n){return y(n,Bt)}function Wr(n){return g(Ot,n,0)}function Vr(n){return{$:1,a:n}}function Xr(n){return{$:0,a:n}}function nt(n){return n.a}function rt(n){return n.b?d(au,n,p,0):Wt}function tt(n){if(Ur(n))return Bt;var r=Jt(n);return g(mu,g(zt,2.718281828459045,r.aC),r.an)}function ut(n){return g(Ot,0,n)}function et(n){return 6.283185307179586*n}function it(r){return rt(g(su,function(n){return g(yu,Au(r),Kr(n))},g(bu,0,100)))}function ot(n){return{$:1,a:n}}function at(n){return g(su,Au(n),Bu)}function ft(n){var r=Uu(n);return 97<=r&&r<=122}function ct(n){var r=Uu(n);return r<=90&&65<=r}function vt(n){return ft(n)||ct(n)}function st(n){return ft(n)||ct(n)||function(n){var r=Uu(n);return r<=57&&48<=r}(n)}function lt(n){return d(Xt,a(function(n,r){return r+1}),0,n)}function bt(n){return g(ne,"\n ",g(te,"\n",n))}function dt(){var n=Nu,r=it(n);return N({T:n,M:r,N:g(qu,r,40),U:at(n),l:fe(40),s:ot(Ht),D:!0,E:!0,F:!0,t:"8",H:0,j:"2"},ae)}function ht(n){return{$:1,a:n}}function $t(n){return{$:1,a:n}}function gt(n){return d(vu,Ce(Ct),he(p),n)}var pt=1,mt=2,wt=0,yt=l(function(n,r,t){for(;;){if(-2===t.$)return r;var u=t.d,e=n,i=d(n,t.b,t.c,d(yt,n,r,t.e));n=e,r=i,t=u}}),Ct=f,At=function(n){return d(yt,l(function(n,r,t){return g(Ct,N(n,r),t)}),p,n)},kt=B,jt=l(function(t,n,r){var u=r.c,e=r.d,i=a(function(n,r){return d(kt,n.$?t:i,r,n.a)});return d(kt,i,d(kt,t,n,e),u)}),Nt=function(n){return d(jt,Ct,p,n)},_t=R,Et=M,xt=l(function(t,n,r){var u=r.c,e=r.d,i=a(function(n,r){return d(Et,n.$?t:i,r,n.a)});return d(Et,t,d(Et,i,n,u),e)}),St=(a(function(n,r){return r(n)}),function(n){return n===1/0||n===-1/0}),Ft=G,Tt={$:2},Lt={$:1},Dt=a(function(n,r){return Ft(n)||Ft(r)?Lt:St(n)||St(r)?Tt:function(n){return{$:0,a:n}}({an:r,aC:n})}),Ot=Dt,Mt=g(Dt,1/0,0),Bt=g(Dt,NaN,0),qt={an:1/0,aC:1/0},Pt={an:NaN,aC:NaN},Jt=function(n){switch(n.$){case 0:return n.a;case 1:return Pt;default:return qt}},It=a(function(n,r){if(Ur(n)&&Ur(r))return Bt;var t=Jt(r),u=Jt(n);return g(Ot,u.aC+t.aC,u.an+t.an)}),Rt=J,zt=I,Ht=g(Ot,0,0),Yt=a(function(n,r){if(Ur(n))return Gr(r)||Ur(r)?Bt:Mt;if(Ur(r))return Gr(n)?Bt:Ht;if(y(r,Ht))return Gr(n)?Bt:Mt;var t=Jt(n),u=Jt(r),e=g(zt,u.aC,2)+g(zt,u.an,2);return g(Ot,(t.aC*u.aC+t.an*u.an)/e,(t.an*u.aC-t.aC*u.an)/e)}),Kt=v(function(n,r,t,u){return{$:0,a:n,b:r,c:t,d:u}}),Zt=K,Qt=a(function(n,r){return U(r)/U(n)}),Ut=Zt(g(Qt,2,32)),Gt=[],Wt=h(Kt,0,Ut,Gt,Gt),Vt=T,Xt=l(function(n,r,t){for(;;){if(!t.b)return r;var u=t.b,e=n,i=g(n,t.a,r);n=e,r=i,t=u}}),nu=function(n){return d(Xt,Ct,p,n)},ru=a(function(n,r){for(;;){var t=g(Vt,32,n),u=t.b,e=g(Ct,Xr(t.a),r);if(!u.b)return nu(e);n=u,r=e}}),tu=a(function(n,r){for(;;){var t=Zt(r/32);if(1===t)return g(Vt,32,n).a;n=g(ru,n,p),r=t}}),uu=(a(function(n,r){return n(r)}),Z),eu=a(function(n,r){return 0<A(n,r)?n:r}),iu=function(n){return n.length},ou=a(function(n,r){if(r.e){var t=32*r.e,u=uu(g(Qt,32,t-1)),e=n?nu(r.h):r.h,i=g(tu,e,r.e);return h(Kt,iu(r.g)+t,g(eu,5,u*Ut),i,r.g)}return h(Kt,iu(r.g),Ut,Gt,r.g)}),au=l(function(n,r,t){for(;;){var u=g(Vt,32,n),e=u.a,i=u.b;if(A(iu(e),32)<0)return g(ou,!0,{h:r,e:t,g:e});n=i,r=g(Ct,Vr(e),r),t=t+1}}),fu=l(function(n,r,t){return r(n(t))}),cu=v(function(n,r,t,u){if(u.b){var e=u.a,i=u.b;if(i.b){var o=i.a,a=i.b;if(a.b){var f=a.a,c=a.b;if(c.b){var v=c.b;return g(n,e,g(n,o,g(n,f,g(n,c.a,500<t?d(Xt,n,r,nu(v)):h(cu,n,r,t+1,v)))))}return g(n,e,g(n,o,g(n,f,r)))}return g(n,e,g(n,o,r))}return g(n,e,r)}return r}),vu=l(function(n,r,t){return h(cu,n,r,0,t)}),su=a(function(t,n){return d(vu,a(function(n,r){return g(Ct,t(n),r)}),p,n)}),lu=l(function(n,r,t){for(;;){if(1<=A(n,r))return t;var u=n,e=r-1,i=g(Ct,r,t);n=u,r=e,t=i}}),bu=a(function(n,r){return d(lu,n,r,p)}),du=rt(g(su,g(fu,Qr,Rt(.001)),g(bu,0,999))),hu=q,$u=a(function(r,n){var t=n.d,u=function(n){return n.$?Vr(g(hu,r,n.a)):Xr(g(hu,u,n.a))};return h(Kt,n.a,n.b,g(hu,u,n.c),g(hu,r,t))}),gu=z,pu=H,mu=a(function(n,r){return St(n)?Mt:g(Ot,n*gu(r),n*pu(r))}),wu=a(function(n,r){if(Ur(n)||Ur(r))return y(n,Ht)||y(r,Ht)||Gr(n)||Gr(r)?Bt:Mt;var t=Jt(r),u=Jt(n);return g(Ot,u.aC*t.aC-u.an*t.an,u.aC*t.an+u.an*t.aC)}),yu=a(function(r,t){return function(n){return g(Yt,d(xt,It,Ht,n),Wr(Zr(n)))}(g($u,function(n){return g(wu,r(n),tt(ut(-6.283185307179586*t*n)))},du))}),Cu=Q,Au=a(function(n,r){var t=r-uu(r);switch(n.$){case 0:return g(Ot,.25<t?.5<t?.75<t?8*t-7:-1:3-8*t:1,.25<t?.5<t?.75<t?-1:5-8*t:1:8*t-1);case 1:return Wr(gu(et(t)));case 2:return g(Ot,4*t-2,pu(et(3*t)));case 3:return Wr(t<.5?1:-1);case 4:return g(Ot,2*t-1,2*t-1);case 5:return g(Ot,2*t-1,2*g(zt,2*t-1,2)-1);case 6:var u=2*t*3.141592653589793,e=2/1.2*Cu(2)*gu(u)/(pu(u)*pu(u)+1);return g(Ot,e,e*pu(u));default:return(0,n.a)(t)}}),ku=function(n){return n},ju={$:3},Nu=ju,_u=4294967295>>>32-Ut,Eu=L,xu=l(function(n,r,t){for(;;){var u=g(Eu,_u&r>>>n,t);if(u.$)return g(Eu,_u&r,u.a);n=n-Ut,r=r,t=u.a}}),Su=function(n){return{$:0,a:n}},Fu={$:1},Tu=a(function(n,r){var t=r.a,u=r.b,e=r.c,i=r.d;return n<0||-1<A(n,t)?Fu:-1<A(n,function(n){return n>>>5<<5}(t))?Su(g(Eu,_u&n,i)):Su(d(xu,u,n,e))}),Lu=a(function(n,r){return r.$?n:r.a}),Du=a(function(n,r){return g(Lu,Ht,g(Tu,n,r))}),Ou=l(function(n,r,t){return g(wu,g(Du,r,n),tt(ut(6.283185307179586*Kr(r)*t)))}),Mu=l(function(t,n,u){return d(Xt,a(function(n,r){return g(It,r,d(Ou,t,n,u))}),Ht,g(bu,0,n))}),Bu=g(su,g(fu,Qr,Rt(.001)),g(bu,0,1e3)),qu=a(function(n,r){return g(su,g(Mu,n,r),Bu)}),Pu=function(n){return!n.$},Ju=F,Iu=t(function(n,r,t,u,e){for(;;){if(r<0)return g(ou,!1,{h:u,e:t/32|0,g:e});var i=Vr(d(Ju,32,r,n));n=n,r=r-32,t=t,u=g(Ct,i,u),e=e}}),Ru=a(function(n,r){if(0<n){var t=n%32,u=d(Ju,t,n-t,r);return s(Iu,r,n-t-32,n,p,u)}return Wt}),zu=function(n){return{$:1,a:n}},Hu=function(n){return{$:0,a:n}},Yu=a(function(n,r){return{$:3,a:n,b:r}}),Ku=a(function(n,r){return{$:0,a:n,b:r}}),Zu=a(function(n,r){return{$:1,a:n,b:r}}),Qu=function(n){return{$:2,a:n}},Uu=function(n){var r=n.charCodeAt(0);return r<55296||56319<r?r:1024*(r-55296)+n.charCodeAt(1)-56320+65536},Gu=w,Wu=a(function(n,r){return d(Gu,n,g(bu,0,lt(r)-1),r)}),Vu=nn,Xu=un,ne=a(function(n,r){return g(V,n,c(r))}),re=function(n){var r=n.charCodeAt(0);return r?Su(r<55296||56319<r?N(E(n[0]),n.slice(1)):N(E(n[0]+n[1]),n.slice(2))):Fu},te=a(function(n,r){return m(g(W,n,r))}),ue=wn,ee=a(function(n,r){return"\n\n("+Xu(n+1)+") "+bt(ie(r))}),ie=function(n){return g(oe,n,p)},oe=a(function(n,r){n:for(;;)switch(n.$){case 0:var u=n.a,t=n.b,e=function(){var n=re(u);if(1===n.$)return!1;var r=n.a,t=r.b;return vt(r.a)&&g(Vu,st,t)}(),i=t,o=g(Ct,e?"."+u:"['"+u+"']",r);n=i,r=o;continue n;case 1:t=n.b;var a="["+Xu(n.a)+"]";i=t,o=g(Ct,a,r);n=i,r=o;continue n;case 2:var f=n.a;if(f.b){if(f.b.b){var c=(r.b?"The Json.Decode.oneOf at json"+g(ne,"",nu(r)):"Json.Decode.oneOf")+" failed in the following "+Xu(lt(f))+" ways:";return g(ne,"\n\n",g(Ct,c,g(Wu,ee,f)))}n=i=t=f.a,r=o=r;continue n}return"Ran into a Json.Decode.oneOf with no possibilities"+(r.b?" at json"+g(ne,"",nu(r)):"!");default:var v=n.a,s=n.b;return(c=r.b?"Problem with the value at json"+g(ne,"",nu(r))+":\n\n ":"Problem with the given value:\n\n")+(bt(g(ue,4,s))+"\n\n")+v}}),ae=Rn(p),fe=un,ce=zn,ve=l(function(n,r,t){var u=t.b;return N(n(t.a),r(u))}),se={$:0},le={$:12},be={$:13},de=l(function(n,r,t){return{Y:t,aE:r,aK:n}}),he=An,$e=he(d(de,p,Fu,0)),ge=ku,pe=function(n){for(;;){n=n}},me=he(0),we=jn,ye=a(function(r,n){return g(we,function(n){return he(r(n))},n)}),Ce=l(function(t,n,u){return g(we,function(r){return g(we,function(n){return he(g(t,r,n))},u)},n)}),Ae=Pn,ke=a(function(n,r){var t=r;return En(g(we,Ae(n),t))}),je=l(function(n,r){return g(ye,function(){return 0},gt(g(su,ke(n),r)))}),Ne=l(function(){return he(0)}),_e=a(function(n,r){return g(ye,n,r)});Mn.Task=Bn(me,je,Ne,_e);function Ee(n){return""===n}var xe=In("Task"),Se=a(function(n,r){return xe(g(ye,n,r))}),Fe=vn,Te=sn,Le=function(n){return{$:0,a:n}},De=function(n){switch(n.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},Oe=function(n){return n.length},Me=X,Be=a(function(n,r){return n<1?r:d(Me,n,Oe(r),r)}),qe=tn,Pe=a(function(n,r){return n<1?"":d(Me,0,n,r)}),Je=rn,Ie=function(n){for(var r=0,t=n.charCodeAt(0),u=43==t||45==t?1:0,e=u;e<n.length;++e){var i=n.charCodeAt(e);if(i<48||57<i)return Fu;r=10*r+i-48}return e==u?Fu:Su(45==t?-r:r)},Re=u(function(n,r,t,u,e,i){return{ak:i,am:r,au:u,aw:t,aA:n,aB:e}}),ze=t(function(n,r,t,u,e){if(Ee(e)||g(Je,"@",e))return Fu;var i=g(qe,":",e);if(i.b){if(i.b.b)return Fu;var o=i.a,a=Ie(g(Be,o+1,e));if(1===a.$)return Fu;var f=a;return Su($(Re,n,g(Pe,o,e),f,r,t,u))}return Su($(Re,n,e,Fu,r,t,u))}),He=v(function(n,r,t,u){if(Ee(u))return Fu;var e=g(qe,"/",u);if(e.b){var i=e.a;return s(ze,n,g(Be,i,u),r,t,g(Pe,i,u))}return s(ze,n,"/",r,t,u)}),Ye=l(function(n,r,t){if(Ee(t))return Fu;var u=g(qe,"?",t);if(u.b){var e=u.a;return h(He,n,Su(g(Be,e+1,t)),r,g(Pe,e,t))}return h(He,n,Fu,r,t)}),Ke=(a(function(n,r){if(Ee(r))return Fu;var t=g(qe,"#",r);if(t.b){var u=t.a;return d(Ye,n,Su(g(Be,u+1,r)),g(Pe,u,r))}return d(Ye,n,Fu,r)}),kn(function(n){n(An(Date.now()))})),Ze=kn(function(n){var r=Mr(function(){n(An(Date.now()))});return function(){Or(r)}}),Qe=Jn,Ue=function(t){return kn(function(n){var r=t.f;2===r.$&&r.c&&r.c(),t.f=null,n(An(j))})},Ge=En,We=l(function(n,t,r){var u=r.aE,e=r.Y,i=N(u,t);if(1!==i.a.$)return i.b.b?he(d(de,t,u,e)):g(we,function(){return $e},Ue(i.a.a));if(i.b.b){return g(we,function(r){return g(we,function(n){return he(d(de,t,Su(r),n))},Ke)},Ge(g(we,Qe(n),Ze)))}return $e}),Ve=ku,Xe=l(function(r,t,n){function u(n){return g(Ae,r,n.$?(0,n.a)(t-i):(0,n.a)(Ve(t)))}var e=n.aK,i=n.Y;return g(we,function(n){return g(we,function(){return he(d(de,e,Su(n),t))},gt(g(su,u,e)))},Ge(g(we,Qe(r),Ze)))}),ni=l(function(n,r,t){return n(r(t))}),ri=a(function(n,r){return r.$?$t(g(ni,n,r.a)):function(n){return{$:0,a:n}}(g(ni,n,r.a))});Mn["Browser.AnimationManager"]=Bn($e,We,Xe,0,ri);function ti(n){var r=n.b;return N(S(function(n){return n?"w_":"d_"}(n.a),r),n)}function ui(n){return d(Xt,a(function(n,r){return d(gi,n.a,n.b,r)}),ci,n)}var ei=In("Browser.AnimationManager"),ii=function(n){return ei($t(n))},oi=l(function(n,r,t){return{$:0,a:n,b:r,c:t}}),ai=a(function(n,r){return{av:r,aK:n}}),fi={$:-2},ci=fi,vi=he(g(ai,p,ci)),si=a(function(n,r){return{ah:r,ar:n}}),li=l(function(r,t,n){return g(ye,function(n){return N(t,n)},d(Ir,n.a?Jr:Pr,n.b,function(n){return g(Qe,r,g(si,t,n))}))}),bi=t(function(n,r,t,u,e){return{$:-1,a:n,b:r,c:t,d:u,e:e}}),di=k,hi=t(function(n,r,t,u,e){if(-1!==e.$||e.a){if(-1!==u.$||u.a||-1!==u.d.$||u.d.a)return s(bi,n,r,t,u,e);var i=u.d;v=u.e;return s(bi,0,u.b,u.c,s(bi,1,i.b,i.c,i.d,i.e),s(bi,1,r,t,v,e))}var o=e.b,a=e.c,f=e.d,c=e.e;if(-1!==u.$||u.a)return s(bi,n,o,a,s(bi,0,r,t,u,f),c);var v;return s(bi,0,r,t,s(bi,1,u.b,u.c,u.d,v=u.e),s(bi,1,o,a,f,c))}),$i=l(function(n,r,t){if(-2===t.$)return s(bi,0,n,r,fi,fi);var u=t.a,e=t.b,i=t.c,o=t.d,a=t.e;switch(g(di,n,e)){case 0:return s(hi,u,e,i,d($i,n,r,o),a);case 1:return s(bi,u,e,r,o,a);default:return s(hi,u,e,i,o,d($i,n,r,a))}}),gi=l(function(n,r,t){var u=d($i,n,r,t);if(-1!==u.$||u.a)return u;return s(bi,1,u.b,u.c,u.d,u.e)}),pi=l(function(n,r,t){for(;;){if(-2===t.$)return r;var u=t.e,e=n,i=d(n,t.b,t.c,d(pi,n,r,t.d));n=e,r=i,t=u}}),mi=u(function(c,v,s,n,r,t){var u=l(function(n,r,t){n:for(;;){var u=t.a,e=t.b;if(u.b){var i=u.a,o=i.a,a=i.b,f=u.b;if(A(o,n)<0){n=n,r=r,t=N(f,d(c,o,a,e));continue n}return 0<A(o,n)?N(u,d(s,n,r,e)):N(f,h(v,o,a,r,e))}return N(u,d(s,n,r,e))}}),e=d(pi,u,N(At(n),t),r),i=e.a,o=e.b;return d(Xt,a(function(n,r){return d(c,n.a,n.b,r)}),o,i)}),wi=a(function(n,r){return d(pi,gi,r,n)}),yi=l(function(e,n,r){var t=l(function(n,r,t){var u=t.c;return _(t.a,t.b,g(Ct,d(li,e,n,r),u))}),u=l(function(n,r,t){var u=t.b,e=t.c;return _(g(Ct,r,t.a),u,e)}),i=v(function(n,r,t,u){var e=u.c;return _(u.a,d(gi,n,r,u.b),e)}),o=g(su,ti,n),a=$(mi,u,i,t,r.av,ui(o),_(p,ci,p)),f=a.b,c=a.c;return g(we,function(n){return he(g(ai,o,g(wi,f,ui(n))))},g(we,function(){return gt(c)},gt(g(su,Ue,a.a))))}),Ci=l(function(n,r,t){var u=n(r);return u.$?t:g(Ct,u.a,t)}),Ai=a(function(n,r){return d(vu,Ci(n),p,r)}),ki=l(function(n,r,t){var u=r.ar,e=r.ah,i=g(Ai,function(n){var r=n.b,t=r.c;return y(n.a,u)?g(Rr,t,e):Fu},t.aK);return g(we,function(){return he(t)},gt(g(su,Ae(n),i)))}),ji=a(function(n,r){return d(oi,r.a,r.b,g(Fe,n,r.c))});Mn["Browser.Events"]=Bn(vi,yi,ki,0,ji);function Ni(t){var u=Zr(t);return u?function(n){var r=g(_t,u,uu(n*u));return g(Lu,Ht,g(Tu,r,t))}:to(Ht)}function _i(n){return{$:1,a:n}}function Ei(n){return{$:1,a:n}}function xi(n){return{$:1,a:n}}function Si(n){return{$:6,a:n}}function Fi(n){var r=go(n);return r.$?0:r.a}function Ti(n){var r=n.t,t=n.l,u=n.j;return{l:100<po(t)||po(t)<0?100<po(t)?100:0:po(t),t:Fi(r),j:Fi(u)}}function Li(n){return g(ko,p,m([g(jo,m([g(Eo,"text-align","center"),g(Eo,"color","red")]),m([_o(n?"Click again to stop drawing. ":"Click once to start drawing. ")])),g(No,m([g(Eo,"text-align","center")]),m([_o("(This probably won't work on touch devices)")]))]))}function Di(n){return g(ko,p,m([g(Jo,Li,!y(n,uo)),g(Ho,m([Ko("-10 16 120 200"),Zo("100%"),Yo("2000"),g(Vo,"svgmousemove",d(Te,yo,g(Io,m(["detail","x"]),Ro),g(Io,m(["detail","y"]),Ro))),Po("drawable-svg"),function(n){return g(Wo,"click",Le(n))}(n.$?function(n){return{$:2,a:n}}(n.a):Co)]),m([g(zo,m([To("black"),Qo("-100"),Uo("-100"),Zo("500"),Yo("500")]),p),1!==n.$?g(ko,p,p):h(Mo,"green",Ao,2,Nt(n.a))]))]))}function Oi(n){return{$:3,a:n}}function Mi(n){return{$:2,a:n}}function Bi(n){return{$:4,a:n}}function qi(n){return Wn(function(n){return"script"==n?"p":n}(n))}function Pi(n){return ko(m([ja(n)]))}function Ji(n){return g(Wo,"click",Le(n))}function Ii(n){return"SwitchToDrawMode"===n?Ca:Si(function(n){switch(n){case"SquareFunction":return Pa;case"CosFunction":return Da;case"SinFunction2D":return qa;case"StepFunction":return ju;case"Line":return Ma;case"Parabola":return Ba;case"LemniscateOfBernoulli":return Oa;default:return ju}}(n))}function Ri(n){return N(n,!0)}function zi(n){return g(za,"input",g(Fe,Ri,g(Fe,n,Ha)))}function Hi(n){return g(qo,"step",n)}function Yi(n){var r=n.t,t=n.l,u=n.j,e=n.s,i=n.D,o=n.E,a=n.F,f=function(n){return 7===n.$}(n.T);return g(ko,p,m([function(n,r,t,u,e,i,o,a,f,c){return 9===n.a?n.f(r,t,u,e,i,o,a,f,c):n(r)(t)(u)(e)(i)(o)(a)(f)(c)}(Xa,Va,r,t,u,e,i,o,a,f),function(n){var u=n.H,r=n.s,e=n.D,t=n.E,i=n.F,o=n.M,a=n.N,f=n.U,c=Ti(n),v=c.l,s=c.j,l=d(Mu,o,v,u),b=r.$?r.a:l;return g(Ho,m([Ko("-10 16 120 200"),Zo("100%"),Yo("2000"),Po(y(r,$o)?"svg":"draggable-svg"),g(Wo,"svgdrag",d(Te,Xo,g(Io,m(["detail","x"]),Ro),g(Io,m(["detail","y"]),Ro)))]),S(m([g(zo,m([To("black"),Qo("-100"),Uo("-100"),Zo("500"),Yo("500")]),p),t?h(Mo,"green",b,s,f):g(ko,p,p),i?h(Mo,"blue",b,s,a):g(ko,p,p)]),S(g(ba,function(n){var r=ga(d(Ou,o,n+1,u)).aP,t=d(Mu,o,n,u);return r<1e-4?p:m([h(sa,b,t,d(Mu,o,n+1,u),s),e?$(ia,b,t,r,"orange","none",s):g(ko,p,p),$(ia,b,t,.0075*s,"none","blue",s)])},g(bu,0,v-1)),m([$(ia,b,l,.015*s,"none","green",s)]))))}(n)]))}var Ki,Zi=In("Browser.Events"),Qi=g(l(function(n,r,t){return Zi(d(oi,n,r,t))}),0,"keydown"),Ui=a(function(n,r){for(;;){if(!r.b)return!1;var t=r.b;if(n(r.a))return!0;n=n,r=t}}),Gi=a(function(r,n){return g(Ui,function(n){return y(n,r)},n)}),Wi=Rn,Vi=fn,Xi=an,no=zn,ro=Wi(p),to=a(function(n){return n}),uo={$:0},eo=uo,io=l(function(n,r,t){return 2*t*r/100+n-r}),oo=O,ao=function(n){return[n]},fo=D,co=v(function(n,r,t,u){var e=_u&r>>>n;if(-1<A(e,iu(u))){if(5===n)return g(oo,Vr(t),u);var i=Xr(h(co,n-Ut,r,t,Gt));return g(oo,i,u)}var o=g(Eu,e,u);if(o.$){i=Xr(h(co,n-Ut,r,t,ao(o)));return d(fo,e,i,u)}var i=Xr(h(co,n-Ut,r,t,o.a));return d(fo,e,i,u)}),vo=a(function(n,r){var t=r.a,u=r.b,e=r.c,i=iu(r.d),o=iu(n),a=t+(o-i);if(y(o,32)){if(0<A(a>>>Ut,1<<u)){var f=u+Ut,c=h(co,f,t,n,ao(Xr(e)));return h(Kt,a,f,c,Gt)}return h(Kt,a,u,h(co,u,t,n,e),Gt)}return h(Kt,a,u,e,n)}),so=a(function(n,r){return g(vo,g(oo,n,r.d),r)}),lo=a(function(e,i){return N(function(){var n=N(e,i);n:for(;;){if(!n.b.$){if(n.a.$)break n;return _i(Wt)}switch(n.a.$){case 1:var r=n.a,t=r.b,u=n.b.a;return _i(g(so,g(Ot,d(io,0,2,r.a),d(io,0,2,t)),u));case 2:return i;default:break n}}return i}(),ae)}),bo=function(n){return{$:7,a:n}},ho=a(function(n,r){return 2*r*n/100}),$o={$:0},go=function(n){if(0===n.length||/[\sxbo]/.test(n))return Fu;var r=+n;return r==r?Su(r):Fu},po=g(ni,Lu(0),Ie),mo=a(function(h,$){return N(function(){switch(h.$){case 1:var n=h.a,r=Ti($);return x($,{H:$.H+r.t/60/1e3*n});case 2:return x($,{t:h.a});case 3:var t=x($,{l:h.a}),u=Ti(t);return x(t,{N:g(qu,$.M,u.l)});case 4:return x($,{j:h.a});case 5:return x($,{s:$.s.$?$o:ot(Ht)});case 7:return x($,{D:!$.D});case 8:return x($,{E:!$.E});case 9:return x($,{F:!$.F});case 6:var e=h.a,i=it(e),o=Ti($);return x($,{T:e,M:i,N:g(qu,i,o.l),U:at(e),H:0});case 11:var a=h.a,f=h.b,c=$.s;if(c.$){var v=c.a,s=Ti($);return x($,{s:ot(g(It,v,g(Ot,g(ho,b=s.j,a),g(ho,b,f))))})}return $;case 12:var l=Ti($);return x($,{j:fe(.75*(b=l.j))});case 13:var b,d=Ti($);return x($,{j:fe((b=d.j)/.75)});case 10:default:return $}}(),ae)}),wo=a(function(n,r){var t=N(n,r);n:for(;;){if(t.a.$){if(1!==t.b.$)break n;if(2===t.a.a.$){var u=g(fu,mo(Si(bo(Ni(t.a.a.a)))),nt);return d(ve,g(fu,u,Hr),ce(Yr),dt())}e=t.a.a,i=t.b.a;return d(ve,Ei,ce(xi),g(lo,e,i))}if(t.b.$)break n;if(10===t.a.a.$){return N(Ei(eo),ae)}var e=t.a.a,i=t.b.a;return d(ve,Hr,ce(Yr),g(mo,e,i))}return N(r,ae)}),yo=a(function(n,r){return{$:1,a:n,b:r}}),Co={$:0},Ao=Ht,ko=Wn("div"),jo=Wn("h4"),No=Wn("p"),_o=Un,Eo=ur,xo=l(function(n,r,t){return fe(100*(t+r-n)/r/2)}),So=Gn("http://www.w3.org/2000/svg"),Fo=So("polygon"),To=ir("fill"),Lo=ir("points"),Do=ir("stroke"),Oo=ir("stroke-width"),Mo=v(function(n,r,t,u){var e=Jt(r),i=g(su,Jt,u),o=g(su,function(n){var r=n.an;return d(xo,e.aC,t,n.aC)+","+d(xo,e.an,t,r)},i),a=g(ne," ",o);return function(n){return!n.b}(u)?g(ko,p,p):g(Fo,m([Lo(a),Oo("0.35"),Do(n),To("none")]),p)}),Bo=yn,qo=a(function(n,r){return g(er,n,Bo(r))}),Po=qo("id"),Jo=nr,Io=a(function(n,r){return d(vu,Vi,r,n)}),Ro=on,zo=So("rect"),Ho=So("svg"),Yo=ir("height"),Ko=ir("viewBox"),Zo=ir("width"),Qo=ir("x"),Uo=ir("y"),Go=tr,Wo=a(function(n,r){return g(Go,n,function(n){return{$:0,a:n}}(r))}),Vo=Wo,Xo=a(function(n,r){return{$:11,a:n,b:r}}),na=a(function(n,r){return fe(function(n){return n<0?-n:n}(100*r/n/2))}),ra=So("circle"),ta=ir("cx"),ua=ir("cy"),ea=ir("r"),ia=u(function(n,r,t,u,e,i){var o=Jt(n),a=Jt(r);return g(ra,m([ta(d(xo,o.aC,i,a.aC)),ua(d(xo,o.an,i,a.an)),ea(g(na,i,t)),Do(u),To(e),Oo("0.06")]),p)}),oa=So("line"),aa=ir("x1"),fa=ir("x2"),ca=ir("y1"),va=ir("y2"),sa=v(function(n,r,t,u){var e=Jt(n),i=Jt(t),o=Jt(r);return g(oa,m([aa(d(xo,e.aC,u,o.aC)),ca(d(xo,e.an,u,o.an)),fa(d(xo,e.aC,u,i.aC)),va(d(xo,e.an,u,i.an)),Do("red"),Oo("0.3")]),p)}),la=a(function(n,r){return r.b?d(vu,Ct,r,n):n}),ba=a(function(n,r){return function(n){return d(vu,la,p,n)}(g(su,n,r))}),da=Y,ha={aP:1/0,aQ:NaN},$a={aP:NaN,aQ:NaN},ga=function(n){switch(n.$){case 0:var r=n.a.aC,t=n.a.an;return{aP:Cu(g(zt,r,2)+g(zt,t,2)),aQ:g(da,t,r)};case 1:return $a;default:return ha}},pa={$:5},ma={$:7},wa={$:8},ya={$:9},Ca={$:10},Aa=a(function(n,r){return g(ir,function(n){return/^(on|formAction$)/i.test(n)?"data-"+n:n}(n),function(n){return/^\s*(javascript:|data:text\/html)/i.test(n)?"":n}(r))}),ka=a(function(n,r){return d(qi,"font",m([g(Aa,"color",n)]),m([_o(r)]))}),ja=qo("className"),Na=Wn("input"),_a=Wn("label"),Ea=yn,xa=a(function(n,r){return g(er,n,Ea(r))}),Sa=xa("checked"),Fa=qo("type"),Ta=qo("value"),La=v(function(n,r,t,u){return g(Pi,"form-check",m([g(Na,m([ja("form-check-input"),Fa("checkbox"),Ta(""),Ji(n),Sa(r)]),p),g(_a,m([ja("form-check-label")]),m([g(ka,t,u)]))]))}),Da={$:1},Oa={$:6},Ma={$:4},Ba={$:5},qa={$:2},Pa={$:0},Ja=Wn("option"),Ia=Wn("select"),Ra=xa("selected"),za=a(function(n,r){return g(Go,n,function(n){return{$:1,a:n}}(r))}),Ha=g(Io,m(["target","value"]),Xi),Ya=a(function(n,r){return g(Pi,n,m([r]))}),Ka=Wn("span"),Za=v(function(n,r,t,u){return g(Ka,p,m([g(_a,p,m([u])),g(Ya,"input-group",g(Na,m([ja("numberInput form-control"),zi(n),Fa("number"),Ta(r),Hi(t)]),p))]))}),Qa=qo("max"),Ua=qo("min"),Ga=u(function(n,r,t,u,e,i){return g(ko,p,m([h(Za,n,r,e,i),g(Ya,"input-group",g(Na,m([Fa("range"),ja("form-control-range"),Ua(t),Qa(u),Hi(e),Ta(r),zi(n)]),p))]))}),Wa=Wn("button"),Va=i(function(n,r,t,u,e,i,o,a){return g(Pi,"row",m([g(Pi,"col",m([function(n){return g(ko,p,m([g(_a,p,m([_o("Function: ")])),g(Ia,m([zi(Ii)]),m([g(Ja,m([Ta("StepFunction")]),m([_o("Step function")])),g(Ja,m([Ta("SquareFunction")]),m([_o("Square function")])),g(Ja,m([Ta("CosFunction")]),m([_o("1D Cosine")])),g(Ja,m([Ta("SinFunction2D")]),m([_o("2D Sine")])),g(Ja,m([Ta("Line")]),m([_o("Line")])),g(Ja,m([Ta("Parabola")]),m([_o("Parabola")])),g(Ja,m([Ta("LemniscateOfBernoulli")]),m([_o("Lemniscate of Bernoulli (infinity symbol)")])),g(Ja,m([Ta("SwitchToDrawMode"),Ra(n)]),m([_o("* Draw your own function! *")]))]))]))}(a),g(Wa,m([Ji(Ca),ja("btn btn-primary")]),m([_o(a?"Draw another function!":"Draw your own function!")])),$(Ga,Oi,r,"0","100","1",g(ka,"red","Number of spinning vectors (max = 100)")),g(No,p,m([_o("Try starting with one "),g(ka,"red","vector "),_o("and increasing one at a time.")]))])),g(Pi,"col",m([$(Ga,Mi,n,"0","20","any",_o("Speed (cycles per minute)")),$(Ga,Bi,t,"0.001","3","any",g(ko,p,m([_o("Zoom"),g(Wa,m([ja("mx-1"),Ji(le)]),m([_o("+")])),g(Wa,m([ja("mx-1"),Ji(be)]),m([_o("-")]))]))),h(La,pa,y(u,$o),"green","Follow green point (This might slow down some devices if you're showing intended or traced shapes.)")])),g(Pi,"col",m([h(La,ma,e,"orange","Show orange circles"),h(La,wa,i,"green","Show intended shape (green curve)"),h(La,ya,o,"blue","Show traced shape (blue curve)")]))]))}),Xa=rr,nf=Vn,rf=Dr({a_:function(){return d(ve,Hr,ce(Yr),dt())},a5:function(n){if(n.$)return ro;return g(no,Yr,Wi(m([ii(ht),Qi(g(Fe,function(n){return g(Gi,n,m(["=","+","i"]))?le:g(Gi,n,m(["-","_","o"]))?be:se},g(Vi,"key",Xi)))])))},a7:wo,a9:function(n){return n.$?g(nf,xi,Di(n.a)):g(nf,Yr,Yi(n.a))}});Ki={Main:{init:rf(Le(0))(0)}},n.Elm?function n(r,t){for(var u in t)u in r?"init"==u?P(6):n(r[u],t[u]):r[u]=t[u]}(n.Elm,Ki):n.Elm=Ki}(this);