ruby_event_store-browser 1.3.1 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_event_store/browser/app.rb +28 -35
- data/lib/ruby_event_store/browser/get_events_from_stream.rb +8 -4
- data/lib/ruby_event_store/browser/json_api_event.rb +2 -10
- data/lib/ruby_event_store/browser/routing.rb +28 -5
- data/lib/ruby_event_store/browser/version.rb +1 -1
- data/public/ruby_event_store_browser.css +1 -1
- data/public/ruby_event_store_browser.css.map +1 -1
- data/public/ruby_event_store_browser.js +3 -3
- data/public/ruby_event_store_browser.js.map +1 -1
- metadata +5 -5
@@ -1,8 +1,8 @@
|
|
1
1
|
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"Rfvt":[function(require,module,exports) {
|
2
2
|
|
3
3
|
},{}],"asWa":[function(require,module,exports) {
|
4
|
-
!function(n){"use strict";function r(n,r,t){return t.a=n,t.f=r,t}function t(n){return r(2,n,function(r){return function(t){return n(r,t)}})}function e(n){return r(3,n,function(r){return function(t){return function(e){return n(r,t,e)}}})}function u(n){return r(4,n,function(r){return function(t){return function(e){return function(u){return n(r,t,e,u)}}}})}function a(n){return r(5,n,function(r){return function(t){return function(e){return function(u){return function(a){return n(r,t,e,u,a)}}}}})}function i(n){return r(6,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(i){return n(r,t,e,u,a,i)}}}}}})}function c(n){return r(7,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(i){return function(c){return n(r,t,e,u,a,i,c)}}}}}}})}function o(n){return r(9,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(i){return function(c){return function(o){return function(f){return n(r,t,e,u,a,i,c,o,f)}}}}}}}}})}function f(n,r,t){return 2===n.a?n.f(r,t):n(r)(t)}function s(n,r,t,e){return 3===n.a?n.f(r,t,e):n(r)(t)(e)}function b(n,r,t,e,u){return 4===n.a?n.f(r,t,e,u):n(r)(t)(e)(u)}function v(n,r,t,e,u,a){return 5===n.a?n.f(r,t,e,u,a):n(r)(t)(e)(u)(a)}function d(n,r,t,e,u,a,i){return 6===n.a?n.f(r,t,e,u,a,i):n(r)(t)(e)(u)(a)(i)}function l(n,r,t,e,u,a,i,c){return 7===n.a?n.f(r,t,e,u,a,i,c):n(r)(t)(e)(u)(a)(i)(c)}var $=e(function(n,r,t){for(var e=[],u=0;n>u;u++)e[u]=t(r+u);return e}),h=t(function(n,r){for(var t=[],e=0;n>e&&r.b;e++)t[e]=r.a,r=r.b;return t.length=e,w(t,r)});function p(n){throw Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}function g(n,r){for(var t,e=[],u=m(n,r,0,e);u&&(t=e.pop());u=m(t.a,t.b,0,e));return u}function m(n,r,t,e){if(n===r)return!0;if("object"!=typeof n||null===n||null===r)return"function"==typeof n&&p(5),!1;if(t>100)return e.push(w(n,r)),!0;for(var u in 0>n.$&&(n=Or(n),r=Or(r)),n)if(!m(n[u],r[u],t+1,e))return!1;return!0}function _(n,r,t){if("object"!=typeof n)return n===r?0:r>n?-1:1;if(void 0===n.$)return(t=_(n.a,r.a))?t:(t=_(n.b,r.b))?t:_(n.c,r.c);for(;n.b&&r.b&&!(t=_(n.a,r.a));n=n.b,r=r.b);return t||(n.b?1:r.b?-1:0)}var y=t(function(n,r){var t=_(n,r);return 0>t?Qr:t?Sr:xr});function w(n,r){return{a:n,b:r}}function k(n,r,t){return{a:n,b:r,c:t}}function E(n){return n}function A(n,r){var t={};for(var e in n)t[e]=n[e];for(var e in r)t[e]=r[e];return t}function T(n,r){if("string"==typeof n)return n+r;if(!n.b)return r;var t=N(n.a,r);n=n.b;for(var e=t;n.b;n=n.b)e=e.b=N(n.a,r);return t}var j={$:0};function N(n,r){return{$:1,a:n,b:r}}var L=t(N);function R(n){for(var r=j,t=n.length;t--;)r=N(n[t],r);return r}var C=e(function(n,r,t){for(var e=[];r.b&&t.b;r=r.b,t=t.b)e.push(f(n,r.a,t.a));return R(e)}),I=t(function(n,r){return n+r}),O=t(function(n,r){var t=r%n;return 0===n?p(11):t>0&&0>n||0>t&&n>0?t+n:t}),x=Math.ceil,S=Math.floor,Q=Math.round,K=Math.log,F=t(function(n,r){return n+r}),D=t(function(n,r){return r.split(n)}),M=t(function(n,r){return r.join(n)}),P=e(function(n,r,t){return t.slice(n,r)}),B=t(function(n,r){for(var t=r.length;t--;){var e=r[t],u=r.charCodeAt(t);if(56320>u||u>57343||(e=r[--t]+e),!n(E(e)))return!1}return!0}),H=t(function(n,r){return r.indexOf(n)>-1}),J=t(function(n,r){return 0===r.indexOf(n)}),X=t(function(n,r){var t=n.length;if(1>t)return j;for(var e=0,u=[];(e=r.indexOf(n,e))>-1;)u.push(e),e+=t;return R(u)});function z(n){return n+""}function q(n){return{$:2,b:n}}q(function(n){return"number"!=typeof n?sn("an INT",n):n>-2147483647&&2147483647>n&&(0|n)===n?Pr(n):!isFinite(n)||n%1?sn("an INT",n):Pr(n)});var Z=q(function(n){return"boolean"==typeof n?Pr(n):sn("a BOOL",n)}),U=q(function(n){return"number"==typeof n?Pr(n):sn("a FLOAT",n)}),Y=q(function(n){return Pr(ln(n))}),G=q(function(n){return"string"==typeof n?Pr(n):n instanceof String?Pr(n+""):sn("a STRING",n)}),V=t(function(n,r){return{$:6,d:n,b:r}});function W(n,r){return{$:9,f:n,g:r}}var nn=t(function(n,r){return{$:10,b:r,h:n}}),rn=t(function(n,r){return W(n,[r])}),tn=e(function(n,r,t){return W(n,[r,t])}),en=t(function(n,r){try{return an(n,JSON.parse(r))}catch(n){return Kr(f(Fr,"This is not valid JSON! "+n.message,ln(r)))}}),un=t(function(n,r){return an(n,$n(r))});function an(n,r){switch(n.$){case 2:return n.b(r);case 5:return null===r?Pr(n.c):sn("null",r);case 3:return on(r)?cn(n.b,r,R):sn("a LIST",r);case 4:return on(r)?cn(n.b,r,fn):sn("an ARRAY",r);case 6:var t=n.d;if("object"!=typeof r||null===r||!(t in r))return sn("an OBJECT with a field named `"+t+"`",r);var e=an(n.b,r[t]);return It(e)?e:Kr(f(Dr,t,e.a));case 7:var u=n.e;return on(r)?r.length>u?(e=an(n.b,r[u]),It(e)?e:Kr(f(Mr,u,e.a))):sn("a LONGER array. Need index "+u+" but only see "+r.length+" entries",r):sn("an ARRAY",r);case 8:if("object"!=typeof r||null===r||on(r))return sn("an OBJECT",r);var a=j;for(var i in r)if(r.hasOwnProperty(i)){if(e=an(n.b,r[i]),!It(e))return Kr(f(Dr,i,e.a));a=N(w(i,e.a),a)}return Pr(st(a));case 9:for(var c=n.f,o=n.g,s=0;o.length>s;s++){if(e=an(o[s],r),!It(e))return e;c=c(e.a)}return Pr(c);case 10:return e=an(n.b,r),It(e)?an(n.h(e.a),r):e;case 11:for(var b=j,v=n.g;v.b;v=v.b){if(e=an(v.a,r),It(e))return e;b=N(e.a,b)}return Kr(Br(st(b)));case 1:return Kr(f(Fr,n.a,ln(r)));case 0:return Pr(n.a)}}function cn(n,r,t){for(var e=r.length,u=[],a=0;e>a;a++){var i=an(n,r[a]);if(!It(i))return Kr(f(Mr,a,i.a));u[a]=i.a}return Pr(t(u))}function on(n){return Array.isArray(n)||"undefined"!=typeof FileList&&n instanceof FileList}function fn(n){return f(Ct,n.length,function(r){return n[r]})}function sn(n,r){return Kr(f(Fr,"Expecting "+n,ln(r)))}function bn(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 bn(n.b,r.b);case 6:return n.d===r.d&&bn(n.b,r.b);case 7:return n.e===r.e&&bn(n.b,r.b);case 9:return n.f===r.f&&vn(n.g,r.g);case 10:return n.h===r.h&&bn(n.b,r.b);case 11:return vn(n.g,r.g)}}function vn(n,r){var t=n.length;if(t!==r.length)return!1;for(var e=0;t>e;e++)if(!bn(n[e],r[e]))return!1;return!0}var dn=t(function(n,r){return JSON.stringify($n(r),null,n)+""});function ln(n){return n}function $n(n){return n}function hn(n){return{$:0,a:n}}function pn(n){return{$:2,b:n,c:null}}ln(null);var gn=t(function(n,r){return{$:3,b:n,d:r}}),mn=0;function _n(n){var r={$:0,e:mn++,f:n,g:null,h:[]};return Tn(r),r}function yn(n){return pn(function(r){r(hn(_n(n)))})}function wn(n,r){n.h.push(r),Tn(n)}var kn=t(function(n,r){return pn(function(t){wn(n,r),t(hn(0))})}),En=!1,An=[];function Tn(n){if(An.push(n),!En){for(En=!0;n=An.shift();)jn(n);En=!1}}function jn(n){for(;n.f;){var r=n.f.$;if(0===r||1===r){for(;n.g&&n.g.$!==r;)n.g=n.g.i;if(!n.g)return;n.f=n.g.b(n.f.a),n.g=n.g.i}else{if(2===r)return void(n.f.c=n.f.b(function(r){n.f=r,Tn(n)}));if(5===r){if(0===n.h.length)return;n.f=n.f.b(n.h.shift())}else n.g={$:3===r?0:1,b:n.f.b,i:n.g},n.f=n.f.d}}}var Nn={};function Ln(n,r,t,e,u){return{b:n,c:r,d:t,e:e,f:u}}function Rn(n,r){var t={g:r,h:void 0},e=n.c,u=n.d,a=n.e,i=n.f;function c(n){return f(gn,c,{$:5,b:function(r){var c=r.a;return 0===r.$?s(u,t,c,n):a&&i?b(e,t,c.i,c.j,n):s(e,t,a?c.i:c.j,n)}})}return t.h=_n(f(gn,c,n.b))}var Cn=t(function(n,r){return pn(function(t){n.g(r),t(hn(0))})}),In=t(function(n,r){return f(kn,n.h,{$:0,a:r})});function On(n){return function(r){return{$:1,k:n,l:r}}}function xn(n){return{$:2,m:n}}var Sn,Qn=t(function(n,r){return{$:3,n:n,o:r}}),Kn=[],Fn=!1;function Dn(n,r,t){if(Kn.push({p:n,q:r,r:t}),!Fn){Fn=!0;for(var e;e=Kn.shift();)Mn(e.p,e.q,e.r);Fn=!1}}function Mn(n,r,t){var e={};for(var u in Pn(!0,r,e,null),Pn(!1,t,e,null),n)wn(n[u],{$:"fx",a:e[u]||{i:j,j:j}})}function Pn(n,r,t,e){switch(r.$){case 1:var u=r.k,a=function(n,t,e){function u(n){for(var r=e;r;r=r.t)n=r.s(n);return n}return f(n?Nn[t].e:Nn[t].f,u,r.l)}(n,u,e);return void(t[u]=function(n,r,t){return t=t||{i:j,j:j},n?t.i=N(r,t.i):t.j=N(r,t.j),t}(n,a,t[u]));case 2:for(var i=r.m;i.b;i=i.b)Pn(n,i.a,t,e);return;case 3:return void Pn(n,r.o,t,{s:r.n,t:e})}}var Bn="undefined"!=typeof document?document:{};function Hn(n,r){n.appendChild(r)}function Jn(n){return{$:0,a:n}}var Xn=t(function(n,r){return t(function(t,e){for(var u=[],a=0;e.b;e=e.b){var i=e.a;a+=i.b||0,u.push(i)}return a+=u.length,{$:1,c:r,d:Vn(t),e:u,f:n,b:a}})})(void 0);t(function(n,r){return t(function(t,e){for(var u=[],a=0;e.b;e=e.b){var i=e.a;a+=i.b.b||0,u.push(i)}return a+=u.length,{$:2,c:r,d:Vn(t),e:u,f:n,b:a}})})(void 0);var zn,qn=t(function(n,r){return{$:4,j:n,k:r,b:1+(r.b||0)}}),Zn=t(function(n,r){return{$:"a0",n:n,o:r}}),Un=t(function(n,r){return{$:"a1",n:n,o:r}}),Yn=t(function(n,r){return{$:"a2",n:n,o:r}}),Gn=t(function(n,r){return{$:"a3",n:n,o:r}});function Vn(n){for(var r={};n.b;n=n.b){var t=n.a,e=t.$,u=t.n,a=t.o;if("a2"!==e){var i=r[e]||(r[e]={});"a3"===e&&"class"===u?Wn(i,u,a):i[u]=a}else"className"===u?Wn(r,u,$n(a)):r[u]=$n(a)}return r}function Wn(n,r,t){var e=n[r];n[r]=e?e+" "+t:t}function nr(n,r){var t=n.$;if(5===t)return nr(n.k||(n.k=n.m()),r);if(0===t)return Bn.createTextNode(n.a);if(4===t){for(var e=n.k,u=n.j;4===e.$;)"object"!=typeof u?u=[u,e.j]:u.push(e.j),e=e.k;var a={j:u,p:r};return(i=nr(e,a)).elm_event_node_ref=a,i}if(3===t)return rr(i=n.h(n.g),r,n.d),i;var i=n.f?Bn.createElementNS(n.f,n.c):Bn.createElement(n.c);Sn&&"a"==n.c&&i.addEventListener("click",Sn(i)),rr(i,r,n.d);for(var c=n.e,o=0;c.length>o;o++)Hn(i,nr(1===t?c[o]:c[o].b,r));return i}function rr(n,r,t){for(var e in t){var u=t[e];"a1"===e?tr(n,u):"a0"===e?ar(n,r,u):"a3"===e?er(n,u):"a4"===e?ur(n,u):("value"!==e&&"checked"!==e||n[e]!==u)&&(n[e]=u)}}function tr(n,r){var t=n.style;for(var e in r)t[e]=r[e]}function er(n,r){for(var t in r){var e=r[t];void 0!==e?n.setAttribute(t,e):n.removeAttribute(t)}}function ur(n,r){for(var t in r){var e=r[t],u=e.f,a=e.o;void 0!==a?n.setAttributeNS(u,t,a):n.removeAttributeNS(u,t)}}function ar(n,r,t){var e=n.elmFs||(n.elmFs={});for(var u in t){var a=t[u],i=e[u];if(a){if(i){if(i.q.$===a.$){i.q=a;continue}n.removeEventListener(u,i)}i=ir(r,a),n.addEventListener(u,i,zn&&{passive:2>Kt(a)}),e[u]=i}else n.removeEventListener(u,i),e[u]=void 0}}try{window.addEventListener("t",null,Object.defineProperty({},"passive",{get:function(){zn=!0}}))}catch(n){}function ir(n,r){function t(r){var e=t.q,u=an(e.a,r);if(It(u)){for(var a,i=Kt(e),c=u.a,o=i?3>i?c.a:c.B:c,f=1==i?c.b:3==i&&c.aH,s=(f&&r.stopPropagation(),(2==i?c.b:3==i&&c.aw)&&r.preventDefault(),n);a=s.j;){if("function"==typeof a)o=a(o);else for(var b=a.length;b--;)o=a[b](o);s=s.p}s(o,f)}}return t.q=r,t}function cr(n,r){return n.$==r.$&&bn(n.a,r.a)}function or(n,r,t,e){var u={$:r,r:t,s:e,t:void 0,u:void 0};return n.push(u),u}function fr(n,r,t,e){if(n!==r){var u=n.$,a=r.$;if(u!==a){if(1!==u||2!==a)return void or(t,0,e,r);r=function(n){for(var r=n.e,t=r.length,e=[],u=0;t>u;u++)e[u]=r[u].b;return{$:1,c:n.c,d:n.d,e:e,f:n.f,b:n.b}}(r),a=1}switch(a){case 5:for(var i=n.l,c=r.l,o=i.length,f=o===c.length;f&&o--;)f=i[o]===c[o];if(f)return void(r.k=n.k);r.k=r.m();var s=[];return fr(n.k,r.k,s,0),void(s.length>0&&or(t,1,e,s));case 4:for(var b=n.j,v=r.j,d=!1,l=n.k;4===l.$;)d=!0,"object"!=typeof b?b=[b,l.j]:b.push(l.j),l=l.k;for(var $=r.k;4===$.$;)d=!0,"object"!=typeof v?v=[v,$.j]:v.push($.j),$=$.k;return d&&b.length!==v.length?void or(t,0,e,r):((d?function(n,r){for(var t=0;n.length>t;t++)if(n[t]!==r[t])return!1;return!0}(b,v):b===v)||or(t,2,e,v),void fr(l,$,t,e+1));case 0:return void(n.a!==r.a&&or(t,3,e,r.a));case 1:return void sr(n,r,t,e,vr);case 2:return void sr(n,r,t,e,dr);case 3:if(n.h!==r.h)return void or(t,0,e,r);var h=br(n.d,r.d);h&&or(t,4,e,h);var p=r.i(n.g,r.g);return void(p&&or(t,5,e,p))}}}function sr(n,r,t,e,u){if(n.c===r.c&&n.f===r.f){var a=br(n.d,r.d);a&&or(t,4,e,a),u(n,r,t,e)}else or(t,0,e,r)}function br(n,r,t){var e;for(var u in n)if("a1"!==u&&"a0"!==u&&"a3"!==u&&"a4"!==u)if(u in r){var a=n[u],i=r[u];a===i&&"value"!==u&&"checked"!==u||"a0"===t&&cr(a,i)||((e=e||{})[u]=i)}else(e=e||{})[u]=t?"a1"===t?"":"a0"===t||"a3"===t?void 0:{f:n[u].f,o:void 0}:"string"==typeof n[u]?"":null;else{var c=br(n[u],r[u]||{},u);c&&((e=e||{})[u]=c)}for(var o in r)o in n||((e=e||{})[o]=r[o]);return e}function vr(n,r,t,e){var u=n.e,a=r.e,i=u.length,c=a.length;i>c?or(t,6,e,{v:c,i:i-c}):c>i&&or(t,7,e,{v:i,e:a});for(var o=c>i?i:c,f=0;o>f;f++){var s=u[f];fr(s,a[f],t,++e),e+=s.b||0}}function dr(n,r,t,e){for(var u=[],a={},i=[],c=n.e,o=r.e,f=c.length,s=o.length,b=0,v=0,d=e;f>b&&s>v;){var l=(T=c[b]).a,$=(j=o[v]).a,h=T.b,p=j.b,g=void 0,m=void 0;if(l!==$){var _=c[b+1],y=o[v+1];if(_){var w=_.a,k=_.b;m=$===w}if(y){var E=y.a,A=y.b;g=l===E}if(g&&m)fr(h,A,u,++d),$r(a,u,l,p,v,i),d+=h.b||0,hr(a,u,l,k,++d),d+=k.b||0,b+=2,v+=2;else if(g)d++,$r(a,u,$,p,v,i),fr(h,A,u,d),d+=h.b||0,b+=1,v+=2;else if(m)hr(a,u,l,h,++d),d+=h.b||0,fr(k,p,u,++d),d+=k.b||0,b+=2,v+=1;else{if(!_||w!==E)break;hr(a,u,l,h,++d),$r(a,u,$,p,v,i),d+=h.b||0,fr(k,A,u,++d),d+=k.b||0,b+=2,v+=2}}else fr(h,p,u,++d),d+=h.b||0,b++,v++}for(;f>b;){var T;hr(a,u,(T=c[b]).a,h=T.b,++d),d+=h.b||0,b++}for(;s>v;){var j,N=N||[];$r(a,u,(j=o[v]).a,j.b,void 0,N),v++}(u.length>0||i.length>0||N)&&or(t,8,e,{w:u,x:i,y:N})}var lr="_elmW6BL";function $r(n,r,t,e,u,a){var i=n[t];if(!i)return a.push({r:u,A:i={c:0,z:e,r:u,s:void 0}}),void(n[t]=i);if(1===i.c){a.push({r:u,A:i}),i.c=2;var c=[];return fr(i.z,e,c,i.r),i.r=u,void(i.s.s={w:c,A:i})}$r(n,r,t+lr,e,u,a)}function hr(n,r,t,e,u){var a=n[t];if(a){if(0===a.c){a.c=2;var i=[];return fr(e,a.z,i,u),void or(r,9,u,{w:i,A:a})}hr(n,r,t+lr,e,u)}else{var c=or(r,9,u,void 0);n[t]={c:1,z:e,r:u,s:c}}}function pr(n,r,t,e){return 0===t.length?n:(function n(r,t,e,u){!function r(t,e,u,a,i,c,o){for(var f=u[a],s=f.r;s===i;){var b=f.$;if(1===b)n(t,e.k,f.s,o);else if(8===b)f.t=t,f.u=o,(v=f.s.w).length>0&&r(t,e,v,0,i,c,o);else if(9===b){f.t=t,f.u=o;var v,d=f.s;d&&(d.A.s=t,(v=d.w).length>0&&r(t,e,v,0,i,c,o))}else f.t=t,f.u=o;if(!(f=u[++a])||(s=f.r)>c)return a}var l=e.$;if(4===l){for(var $=e.k;4===$.$;)$=$.k;return r(t,$,u,a,i+1,c,t.elm_event_node_ref)}for(var h=e.e,p=t.childNodes,g=0;h.length>g;g++){var m=1===l?h[g]:h[g].b,_=++i+(m.b||0);if(!(i>s||s>_||(f=u[a=r(p[g],m,u,a,i,_,o)])&&(s=f.r)<=c))return a;i=_}return a}(r,t,e,0,0,t.b,u)}(n,r,t,e),gr(n,t))}function gr(n,r){for(var t=0;r.length>t;t++){var e=r[t],u=e.t,a=mr(u,e);u===n&&(n=a)}return n}function mr(n,r){switch(r.$){case 0:return function(n){var t=n.parentNode,e=nr(r.s,r.u);return e.elm_event_node_ref||(e.elm_event_node_ref=n.elm_event_node_ref),t&&e!==n&&t.replaceChild(e,n),e}(n);case 4:return rr(n,r.u,r.s),n;case 3:return n.replaceData(0,n.length,r.s),n;case 1:return gr(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,e=0;t.i>e;e++)n.removeChild(n.childNodes[t.v]);return n;case 7:for(var u=(t=r.s).e,a=n.childNodes[e=t.v];u.length>e;e++)n.insertBefore(nr(u[e],r.u),a);return n;case 9:if(!(t=r.s))return n.parentNode.removeChild(n),n;var i=t.A;return void 0!==i.r&&n.parentNode.removeChild(n),i.s=gr(n,t.w),n;case 8:return function(n,r){var t=r.s,e=function(n,r){if(n){for(var t=Bn.createDocumentFragment(),e=0;n.length>e;e++){var u=n[e].A;Hn(t,2===u.c?u.s:nr(u.z,r.u))}return t}}(t.y,r);n=gr(n,t.w);for(var u=t.x,a=0;u.length>a;a++){var i=u[a],c=i.A,o=2===c.c?c.s:nr(c.z,r.u);n.insertBefore(o,n.childNodes[i.r])}return e&&Hn(n,e),n}(n,r);case 5:return r.s(n);default:p(10)}}var _r=u(function(n,r,t,e){return function(n,r,t,e,u,a){var i=f(un,n,ln(r?r.flags:void 0));It(i)||p(2);var c={},o=t(i.a),s=o.a,b=a(d,s),v=function(n,r){var t;for(var e in Nn){var u=Nn[e];u.a&&((t=t||{})[e]=u.a(e,r)),n[e]=Rn(u,r)}return t}(c,d);function d(n,r){var t=f(e,n,s);b(s=t.a,r),Dn(c,t.b,u(s))}return Dn(c,o.b,u(s)),v?{ports:v}:{}}(r,e,n.ce,n.cY,n.cM,function(r,t){var e=n.az&&n.az(r),u=n.cZ,a=Bn.title,i=Bn.body,c=function n(r){if(3===r.nodeType)return Jn(r.textContent);if(1!==r.nodeType)return Jn("");for(var t=j,e=r.attributes,u=e.length;u--;){var a=e[u];t=N(f(Gn,a.name,a.value),t)}var i=r.tagName.toLowerCase(),c=j,o=r.childNodes;for(u=o.length;u--;)c=N(n(o[u]),c);return s(Xn,i,t,c)}(i);return function(n,r){r(n);var t=0;function e(){t=1===t?0:(yr(e),r(n),1)}return function(u,a){n=u,a?(r(n),2===t&&(t=1)):(0===t&&yr(e),t=2)}}(t,function(n){Sn=e;var t=u(n),o=Xn("body")(j)(t.bT),f=function(n,r){var t=[];return fr(n,r,t,0),t}(c,o);i=pr(i,c,f,r),c=o,Sn=0,a!==t.cQ&&(Bn.title=a=t.cQ)})})}),yr=("undefined"!=typeof cancelAnimationFrame&&cancelAnimationFrame,"undefined"!=typeof requestAnimationFrame?requestAnimationFrame:function(n){return setTimeout(n,1e3/60)});function wr(){return Wt(Bn.location.href).a||p(1)}var kr=t(function(n,r){return f(pe,ne,pn(function(){history.pushState({},"",r),n()}))}),Er=("undefined"!=typeof document&&document,"undefined"!=typeof window?window:{addEventListener:function(){},removeEventListener:function(){}}),Ar=a(function(n,r,t,e,u){for(var a=n.length,i=u.length>=r+a,c=0;i&&a>c;){var o=u.charCodeAt(r);i=n[c++]===u[r++]&&(10===o?(t++,e=1):(e++,55296==(63488&o)?n[c++]===u[r++]:1))}return k(i?r:-1,t,e)}),Tr=e(function(n,r,t){return t.length>r?55296==(63488&t.charCodeAt(r))?n(E(t.substr(r,2)))?r+2:-1:n(E(t[r]))?"\n"===t[r]?-2:r+1:-1:-1}),jr=e(function(n,r,t){return pn(function(e){function u(n){e(r(t.al.a(n)))}var a=new XMLHttpRequest;a.addEventListener("error",function(){u(Ea)}),a.addEventListener("timeout",function(){u(ja)}),a.addEventListener("load",function(){u(function(n,r){return f(r.status>=200&&300>r.status?ka:ya,function(n){return{aK:n.responseURL,cJ:n.status,cK:n.statusText,a0:Nr(n.getAllResponseHeaders())}}(r),n(r.response))}(t.al.b,a))}),Na(t.bI)&&function(n,r,t){r.upload.addEventListener("progress",function(e){r.c||_n(f(La,n,w(t,Ta({cI:e.loaded,bB:e.total}))))}),r.addEventListener("progress",function(e){r.c||_n(f(La,n,w(t,Aa({cC:e.loaded,bB:e.lengthComputable?Jr(e.total):Xr}))))})}(n,a,t.bI.a);try{a.open(t.ci,t.aK,!0)}catch(n){return u(wa(t.aK))}return function(n,r){for(var t=r.a0;t.b;t=t.b)n.setRequestHeader(t.a.a,t.a.b);n.timeout=r.cP.a||0,n.responseType=r.al.d,n.withCredentials=r.bR}(a,t),t.bT.a&&a.setRequestHeader("Content-Type",t.bT.a),a.send(t.bT.b),function(){a.c=!0,a.abort()}})});function Nr(n){if(!n)return Je;for(var r=Je,t=n.split("\r\n"),e=t.length;e--;){var u=t[e],a=u.indexOf(": ");if(a>0){var i=u.substring(0,a),c=u.substring(a+2);r=s(Be,i,function(n){return Jr(Na(n)?c+", "+n.a:c)},r)}}return r}var Lr=e(function(n,r,t){return{$:0,d:n,b:r,a:t}}),Rr=t(function(n,r){return{$:0,d:r.d,b:r.b,a:function(t){return n(r.a(t))}}}),Cr=L,Ir=e(function(n,r,t){for(;;){if(-2===t.$)return r;var e=t.d,u=n,a=s(n,t.b,t.c,s(Ir,n,r,t.e));n=u,r=a,t=e}}),Or=function(n){return s(Ir,e(function(n,r,t){return f(Cr,w(n,r),t)}),j,n)},xr=1,Sr=2,Qr=0,Kr=function(n){return{$:1,a:n}},Fr=t(function(n,r){return{$:3,a:n,b:r}}),Dr=t(function(n,r){return{$:0,a:n,b:r}}),Mr=t(function(n,r){return{$:1,a:n,b:r}}),Pr=function(n){return{$:0,a:n}},Br=function(n){return{$:2,a:n}},Hr=I,Jr=function(n){return{$:0,a:n}},Xr={$:1},zr=B,qr=dn,Zr=z,Ur=t(function(n,r){return f(M,n,function(n){for(var r=[];n.b;n=n.b)r.push(n.a);return r}(r))}),Yr=t(function(n,r){return R(f(D,n,r))}),Gr=function(n){return f(Ur,"\n ",f(Yr,"\n",n))},Vr=e(function(n,r,t){for(;;){if(!t.b)return r;var e=t.b,u=n,a=f(n,t.a,r);n=u,r=a,t=e}}),Wr=function(n){return s(Vr,t(function(n,r){return r+1}),0,n)},nt=C,rt=e(function(n,r,t){for(;;){if(_(n,r)>=1)return t;var e=n,u=r-1,a=f(Cr,r,t);n=e,r=u,t=a}}),tt=t(function(n,r){return s(rt,n,r,j)}),et=t(function(n,r){return s(nt,n,f(tt,0,Wr(r)-1),r)}),ut=function(n){var r=n.charCodeAt(0);return 55296>r||r>56319?r:1024*(r-55296)+n.charCodeAt(1)-56320+65536},at=function(n){var r=ut(n);return r>=97&&122>=r},it=function(n){var r=ut(n);return 90>=r&&r>=65},ct=function(n){return at(n)||it(n)},ot=function(n){var r=ut(n);return 57>=r&&r>=48},ft=function(n){return at(n)||it(n)||ot(n)},st=function(n){return s(Vr,Cr,j,n)},bt=t(function(n,r){return"\n\n("+Zr(n+1)+") "+Gr(vt(r))}),vt=function(n){return f(dt,n,j)},dt=t(function(n,r){n:for(;;)switch(n.$){case 0:var t=n.a,e=n.b,u=function(){var n,r,e=(r=(n=t).charCodeAt(0),isNaN(r)?Xr:Jr(55296>r||r>56319?w(E(n[0]),n.slice(1)):w(E(n[0]+n[1]),n.slice(2))));if(1===e.$)return!1;var u=e.a,a=u.b;return ct(u.a)&&f(zr,ft,a)}();n=e,r=f(Cr,u?"."+t:"['"+t+"']",r);continue n;case 1:e=n.b;var a="["+Zr(n.a)+"]";n=e,r=f(Cr,a,r);continue n;case 2:var i=n.a;if(i.b){if(i.b.b){var c=(r.b?"The Json.Decode.oneOf at json"+f(Ur,"",st(r)):"Json.Decode.oneOf")+" failed in the following "+Zr(Wr(i))+" ways:";return f(Ur,"\n\n",f(Cr,c,f(et,bt,i)))}n=e=i.a,r=r;continue n}return"Ran into a Json.Decode.oneOf with no possibilities"+(r.b?" at json"+f(Ur,"",st(r)):"!");default:var o=n.a,s=n.b;return(c=r.b?"Problem with the value at json"+f(Ur,"",st(r))+":\n\n ":"Problem with the given value:\n\n")+Gr(f(qr,4,s))+"\n\n"+o}}),lt=u(function(n,r,t,e){return{$:0,a:n,b:r,c:t,d:e}}),$t=[],ht=x,pt=t(function(n,r){return K(r)/K(n)}),gt=ht(f(pt,2,32)),mt=b(lt,0,gt,$t,$t),_t=$,yt=t(function(n,r){return n(r)}),wt=t(function(n,r){return r(n)}),kt=S,Et=function(n){return n.length},At=t(function(n,r){return _(n,r)>0?n:r}),Tt=h,jt=t(function(n,r){for(;;){var t=f(Tt,32,n),e=t.b,u=f(Cr,{$:0,a:t.a},r);if(!e.b)return st(u);n=e,r=u}}),Nt=t(function(n,r){for(;;){var t=ht(r/32);if(1===t)return f(Tt,32,n).a;n=f(jt,n,j),r=t}}),Lt=t(function(n,r){if(r.f){var t=32*r.f,e=kt(f(pt,32,t-1)),u=n?st(r.i):r.i,a=f(Nt,u,r.f);return b(lt,Et(r.h)+t,f(At,5,e*gt),a,r.h)}return b(lt,Et(r.h),gt,$t,r.h)}),Rt=a(function(n,r,t,e,u){for(;;){if(0>r)return f(Lt,!1,{i:e,f:t/32|0,h:u});var a={$:1,a:s(_t,32,r,n)};n=n,r-=32,t=t,e=f(Cr,a,e),u=u}}),Ct=t(function(n,r){if(n>0){var t=n%32;return v(Rt,r,n-t-32,n,j,s(_t,t,n-t,r))}return mt}),It=function(n){return!n.$},Ot=nn,xt=rn,St=tn,Qt=function(n){return{$:0,a:n}},Kt=function(n){switch(n.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},Ft=function(n){return n},Dt=i(function(n,r,t,e,u,a){return{aZ:a,a3:r,cz:e,bj:t,bo:n,bp:u}}),Mt=H,Pt=function(n){return n.length},Bt=P,Ht=t(function(n,r){return 1>n?r:s(Bt,n,Pt(r),r)}),Jt=X,Xt=function(n){return""===n},zt=t(function(n,r){return 1>n?"":s(Bt,0,n,r)}),qt=function(n){for(var r=0,t=n.charCodeAt(0),e=43==t||45==t?1:0,u=e;n.length>u;++u){var a=n.charCodeAt(u);if(48>a||a>57)return Xr;r=10*r+a-48}return u==e?Xr:Jr(45==t?-r:r)},Zt=a(function(n,r,t,e,u){if(Xt(u)||f(Mt,"@",u))return Xr;var a=f(Jt,":",u);if(a.b){if(a.b.b)return Xr;var i=a.a,c=qt(f(Ht,i+1,u));if(1===c.$)return Xr;var o=c;return Jr(d(Dt,n,f(zt,i,u),o,r,t,e))}return Jr(d(Dt,n,u,Xr,r,t,e))}),Ut=u(function(n,r,t,e){if(Xt(e))return Xr;var u=f(Jt,"/",e);if(u.b){var a=u.a;return v(Zt,n,f(Ht,a,e),r,t,f(zt,a,e))}return v(Zt,n,"/",r,t,e)}),Yt=e(function(n,r,t){if(Xt(t))return Xr;var e=f(Jt,"?",t);if(e.b){var u=e.a;return b(Ut,n,Jr(f(Ht,u+1,t)),r,f(zt,u,t))}return b(Ut,n,Xr,r,t)}),Gt=t(function(n,r){if(Xt(r))return Xr;var t=f(Jt,"#",r);if(t.b){var e=t.a;return s(Yt,n,Jr(f(Ht,e+1,r)),f(zt,e,r))}return s(Yt,n,Xr,r)}),Vt=J,Wt=function(n){return f(Vt,"http://",n)?f(Gt,0,f(Ht,7,n)):f(Vt,"https://",n)?f(Gt,1,f(Ht,8,n)):Xr},ne=function(n){for(;;)n=n},re=hn,te=re(0),ee=u(function(n,r,t,e){if(e.b){var u=e.a,a=e.b;if(a.b){var i=a.a,c=a.b;if(c.b){var o=c.a,v=c.b;if(v.b){var d=v.b;return f(n,u,f(n,i,f(n,o,f(n,v.a,t>500?s(Vr,n,r,st(d)):b(ee,n,r,t+1,d)))))}return f(n,u,f(n,i,f(n,o,r)))}return f(n,u,f(n,i,r))}return f(n,u,r)}return r}),ue=e(function(n,r,t){return b(ee,n,r,0,t)}),ae=t(function(n,r){return s(ue,t(function(r,t){return f(Cr,n(r),t)}),j,r)}),ie=gn,ce=t(function(n,r){return f(ie,function(r){return re(n(r))},r)}),oe=e(function(n,r,t){return f(ie,function(r){return f(ie,function(t){return re(f(n,r,t))},t)},r)}),fe=function(n){return s(ue,oe(Cr),re(j),n)},se=Cn,be=t(function(n,r){var t=r;return yn(f(ie,se(n),t))});Nn.Task=Ln(te,e(function(n,r){return f(ce,function(){return 0},fe(f(ae,be(n),r)))}),e(function(){return re(0)}),t(function(n,r){return f(ce,n,r)}));var ve,de,le,$e,he=On("Task"),pe=t(function(n,r){return he(f(ce,n,r))}),ge={$:0},me={K:""},_e=function(n){return{$:3,a:n}},ye=function(n){return{$:4,a:n}},we=function(n){return{$:1,a:n}},ke=function(n){return{$:2,a:n}},Ee=a(function(n,r,t,e,u){return{E:e,F:t,D:r,y:u,H:n}}),Ae=function(n){return n.b&&(""!==n.a||n.b.b)?f(Cr,n.a,Ae(n.b)):j},Te=t(function(n,r){return Jr(1===r.$?R([n]):f(Cr,n,r.a))}),je=function(n){try{return Jr(decodeURIComponent(n))}catch(n){return Xr}},Ne=y,Le=t(function(n,r){n:for(;;){if(-2===r.$)return Xr;var t=r.c,e=r.d,u=r.e;switch(f(Ne,n,r.b)){case 0:n=n,r=e;continue n;case 1:return Jr(t);default:n=n,r=u;continue n}}}),Re=a(function(n,r,t,e,u){return{$:-1,a:n,b:r,c:t,d:e,e:u}}),Ce={$:-2},Ie=a(function(n,r,t,e,u){if(-1!==u.$||u.a){if(-1!==e.$||e.a||-1!==e.d.$||e.d.a)return v(Re,n,r,t,e,u);var a=e.d;return i=e.e,v(Re,0,e.b,e.c,v(Re,1,a.b,a.c,a.d,a.e),v(Re,1,r,t,i,u))}var i,c=u.b,o=u.c,f=u.d,s=u.e;return-1!==e.$||e.a?v(Re,n,c,o,v(Re,0,r,t,e,f),s):v(Re,0,r,t,v(Re,1,e.b,e.c,e.d,i=e.e),v(Re,1,c,o,f,s))}),Oe=e(function(n,r,t){if(-2===t.$)return v(Re,0,n,r,Ce,Ce);var e=t.a,u=t.b,a=t.c,i=t.d,c=t.e;switch(f(Ne,n,u)){case 0:return v(Ie,e,u,a,s(Oe,n,r,i),c);case 1:return v(Re,e,u,r,i,c);default:return v(Ie,e,u,a,i,s(Oe,n,r,c))}}),xe=e(function(n,r,t){var e=s(Oe,n,r,t);return-1!==e.$||e.a?e:v(Re,1,e.b,e.c,e.d,e.e)}),Se=function(n){if(-1===n.$&&-1===n.d.$&&-1===n.e.$){if(-1!==n.e.d.$||n.e.d.a){var r=n.d,t=n.e;return i=t.b,c=t.c,e=t.d,s=t.e,v(Re,1,n.b,n.c,v(Re,0,r.b,r.c,r.d,r.e),v(Re,0,i,c,e,s))}var e,u=n.d,a=n.e,i=a.b,c=a.c,o=(e=a.d).d,f=e.e,s=a.e;return v(Re,0,e.b,e.c,v(Re,1,n.b,n.c,v(Re,0,u.b,u.c,u.d,u.e),o),v(Re,1,i,c,f,s))}return n},Qe=function(n){if(-1===n.$&&-1===n.d.$&&-1===n.e.$){if(-1!==n.d.d.$||n.d.d.a){var r=n.d,t=n.e;return f=t.b,s=t.c,b=t.d,d=t.e,v(Re,1,e=n.b,u=n.c,v(Re,0,r.b,r.c,r.d,c=r.e),v(Re,0,f,s,b,d))}var e=n.b,u=n.c,a=n.d,i=a.d,c=a.e,o=n.e,f=o.b,s=o.c,b=o.d,d=o.e;return v(Re,0,a.b,a.c,v(Re,1,i.b,i.c,i.d,i.e),v(Re,1,e,u,c,v(Re,0,f,s,b,d)))}return n},Ke=c(function(n,r,t,e,u,a,i){if(-1!==a.$||a.a){n:for(;;){if(-1===i.$&&1===i.a){if(-1===i.d.$){if(1===i.d.a)return Qe(r);break n}return Qe(r)}break n}return r}return v(Re,t,a.b,a.c,a.d,v(Re,0,e,u,a.e,i))}),Fe=function(n){if(-1===n.$&&-1===n.d.$){var r=n.a,t=n.b,e=n.c,u=n.d,a=u.d,i=n.e;if(1===u.a){if(-1!==a.$||a.a){var c=Se(n);if(-1===c.$){var o=c.e;return v(Ie,c.a,c.b,c.c,Fe(c.d),o)}return Ce}return v(Re,r,t,e,Fe(u),i)}return v(Re,r,t,e,Fe(u),i)}return Ce},De=t(function(n,r){if(-2===r.$)return Ce;var t=r.a,e=r.b,u=r.c,a=r.d,i=r.e;if(0>_(n,e)){if(-1===a.$&&1===a.a){var c=a.d;if(-1!==c.$||c.a){var o=Se(r);if(-1===o.$){var s=o.e;return v(Ie,o.a,o.b,o.c,f(De,n,o.d),s)}return Ce}return v(Re,t,e,u,f(De,n,a),i)}return v(Re,t,e,u,f(De,n,a),i)}return f(Me,n,l(Ke,n,r,t,e,u,a,i))}),Me=t(function(n,r){if(-1===r.$){var t=r.a,e=r.b,u=r.c,a=r.d,i=r.e;if(g(n,e)){var c=function(n){for(;;){if(-1!==n.$||-1!==n.d.$)return n;n=n.d}}(i);return-1===c.$?v(Ie,t,c.b,c.c,a,Fe(i)):Ce}return v(Ie,t,e,u,a,f(De,n,i))}return Ce}),Pe=t(function(n,r){var t=f(De,n,r);return-1!==t.$||t.a?t:v(Re,1,t.b,t.c,t.d,t.e)}),Be=e(function(n,r,t){var e=r(f(Le,n,t));return e.$?f(Pe,n,t):s(xe,n,e.a,t)}),He=t(function(n,r){var t=f(Yr,"=",n);if(t.b&&t.b.b&&!t.b.b.b){var e=t.b.a,u=je(t.a);if(1===u.$)return r;var a=u.a,i=je(e);return 1===i.$?r:s(Be,a,Te(i.a),r)}return r}),Je=Ce,Xe=t(function(n,r){var t;return function(n){n:for(;;){if(n.b){var r=n.a,t=r.D;if(t.b){if(""!==t.a||t.b.b){n=n.b;continue n}return Jr(r.y)}return Jr(r.y)}return Xr}}(n(v(Ee,j,function(){var n=f(Yr,"/",r.cz);return Ae(n.b&&""===n.a?n.b:n)}(),1===(t=r.bp).$?Je:s(ue,He,Je,f(Yr,"&",t.a)),r.aZ,Ft)))}),ze=function(n){return{$:0,a:n}},qe=function(n){return{$:1,a:n}},Ze=t(function(n,r){return v(Ee,r.H,r.D,r.F,r.E,n(r.y))}),Ue=t(function(n,r){var t=r;return function(r){var e=r.H,u=r.D,a=r.F,i=r.E;return f(ae,Ze(r.y),t(v(Ee,e,u,a,i,n)))}}),Ye=t(function(n,r){return r.b?s(ue,Cr,r,n):n}),Ge=t(function(n,r){return s(ue,Ye,j,f(ae,n,r))}),Ve=function(n){return function(r){var t=r.H,e=r.D,u=r.F,a=r.E,i=r.y;if(e.b){var c=e.a,o=e.b;return g(c,n)?R([v(Ee,f(Cr,c,t),o,u,a,i)]):j}return j}},We=t(function(n,r){var t=n,e=r;return function(n){return f(Ge,e,t(n))}}),nu=f(t(function(n,r){return function(n){var t=n.H,e=n.D,u=n.F,a=n.E,i=n.y;if(e.b){var c=e.a,o=e.b,s=r(c);if(s.$)return j;var b=s.a;return R([v(Ee,f(Cr,c,t),o,u,a,i(b))])}return j}}),"STRING",Jr),ru=function(n){return R([n])},tu=(ve=R([f(Ue,ze("all"),ru),f(Ue,ze,f(We,Ve("streams"),nu)),f(Ue,qe,f(We,Ve("events"),nu))]),function(n){return f(Ge,function(r){return r(n)},ve)}),eu=t(function(n,r){return r.$?n:r.a}),uu=function(n){return{$:2,a:n}},au=function(n){return encodeURIComponent(n)},iu=t(function(n,r){return n+"/"+au(r)}),cu=o(function(n,r,t,e,u,a,i,c,o){return{bV:i,b_:a,b$:t,b3:r,b4:n,cy:o,cA:e,cB:u,cX:c}}),ou=function(n){return{$:1,a:n}},fu=G,su=t(function(n,r){return{$:1,a:n,b:r}}),bu=e(function(n,r,t){return{$:0,a:n,b:r,c:t}}),vu=t(function(n,r){var t=r;return function(r){var e=t(r);if(1===e.$)return f(su,e.a,e.b);var u=e.a,a=e.c,i=n(e.b)(a);if(1===i.$){var c=i.a;return f(su,u||c,i.b)}return c=i.a,s(bu,u||c,i.b,i.c)}}),du=t(function(n,r){return{$:1,a:n,b:r}}),lu=u(function(n,r,t,e){return{aQ:r,bZ:e,bl:t,bv:n}}),$u={$:0},hu=t(function(n,r){return f(du,$u,b(lu,n.bv,n.aQ,r,n.c))}),pu=(de={$:10},function(n){return g(Pt(n.a),n.b)?s(bu,!1,0,n):f(su,!1,f(hu,n,de))}),gu=Tr,mu=a(function(n,r,t,e,u){for(;;){var a=s(gu,n,r,u.a);if(g(a,-1))return s(bu,0>_(u.b,r),0,{aQ:e,c:u.c,d:u.d,b:r,bv:t,a:u.a});g(a,-2)?(n=n,r+=1,t+=1,e=1,u=u):(n=n,r=a,t=t,e+=1,u=u)}}),_u=t(function(n){return n}),yu=t(function(n,r){var t=r;return function(r){var e=t(r);if(1===e.$)return f(su,e.a,e.b);var u=e.b,a=e.c;return s(bu,e.a,f(n,s(Bt,r.b,a.b,r.a),u),a)}}),wu=function(n){return f(yu,_u,n)},ku=function(n){return r={$:12,a:n},function(n){return f(su,!1,f(hu,n,r))};var r},Eu=Q,Au=function(n){return function(r){return s(bu,!1,n,r)}},Tu=f(vu,function(n){if(Pt(n)>9)return ku("Expected at most 9 digits, but got "+Zr(Pt(n)));var r=function(n){if(0===n.length||/[\sxbo]/.test(n))return Xr;var r=+n;return r==r?Jr(r):Xr}("0."+n);return r.$?ku('Invalid float: "'+n+'"'):Au(Eu(1e3*r.a))},wu(($e=ot,function(n){return v(mu,$e,n.b,n.bv,n.aQ,n)}))),ju=Ft,Nu=i(function(n,r,t,e,u,a){return ju(n+60*r*60*1e3+60*(t-a)*1e3+1e3*e+u)}),Lu=e(function(n,r,t){var e=r,u=t;return function(r){var t=e(r);if(1===t.$)return f(su,t.a,t.b);var a=t.a,i=t.b,c=u(t.c);if(1===c.$){var o=c.a;return f(su,a||o,c.b)}o=c.a;var b=c.c;return s(bu,a||o,f(n,i,c.b),b)}}),Ru=t(function(n,r){return s(Lu,_u,n,r)}),Cu=t(function(n,r){return s(Lu,yt,n,r)}),Iu=t(function(n,r){return{$:2,a:n,b:r}}),Ou=e(function(n,r,t){n:for(;;){if(t.b){var e=t.b,u=(0,t.a)(n);if(u.$){var a;if((a=u).a)return a;n=n,r=f(Iu,r,a.b),t=e;continue n}return u}return f(su,!1,r)}}),xu=function(n){return function(r){return s(Ou,r,$u,n)}},Su=function(n){return{$:1,a:n}},Qu=F,Ku={$:11},Fu=t(function(n,r){return function(t){var e=s(gu,n,t.b,t.a);return g(e,-1)?f(su,!1,f(hu,t,r)):g(e,-2)?s(bu,!0,0,{aQ:1,c:t.c,d:t.d,b:t.b+1,bv:t.bv+1,a:t.a}):s(bu,!0,0,{aQ:t.aQ+1,c:t.c,d:t.d,b:e,bv:t.bv,a:t.a})}}),Du=u(function(n,r,t,e){for(;;){var u=t(r)(e);if(u.$)return a=u.a,f(su,n||a,u.b);var a=u.a,i=u.b,c=u.c;if(i.$)return s(bu,n||a,i.a,c);n=n||a,r=i.a,t=t,e=c}}),Mu=t(function(n,r){return function(t){return b(Du,!1,n,r,t)}}),Pu=t(function(n,r){var t=r;return function(r){var e=t(r);if(e.$)return f(su,e.a,e.b);var u=e.c;return s(bu,e.a,n(e.b),u)}}),Bu=function(n){return n.$?{$:1,a:n.a}:{$:0,a:n.a}},Hu=t(function(n,r){return f(Mu,n,function(n){return f(Pu,Bu,r(n))})}),Ju=function(n){return f(Hu,"",function(r){if(g(Pt(r),n)){var t=qt(r);return t.$?ku('Invalid integer: "'+r+'"'):f(Pu,Su,Au(t.a))}return f(Pu,function(n){return{$:0,a:f(Qu,r,n)}},wu(f(Fu,ot,Ku)))})},Xu=t(function(n,r){return{$:0,a:n,b:r}}),zu=Ar,qu=function(n){return function(n){var r=n.a,t=n.b,e=!Xt(r);return function(n){var u=v(zu,r,n.b,n.bv,n.aQ,n.a),a=u.a,i=u.b,c=u.c;return g(a,-1)?f(su,!1,f(hu,n,t)):s(bu,e,0,{aQ:c,c:n.c,d:n.d,b:a,bv:i,a:n.a})}}(f(Xu,n,{$:8,a:n}))},Zu=function(n){return ku("Invalid day: "+Zr(n))},Uu=O,Yu=function(n){return!(f(Uu,4,n)||!f(Uu,100,n)&&f(Uu,400,n))},Gu=function(n){var r=n-1;return(r/4|0)-(r/100|0)+(r/400|0)},Vu=f(vu,function(n){var r=n.a,t=n.b,e=n.c;if(0>e)return Zu(e);var u=function(n){var u=31536e6*(r-1970),a=864e5*((3>t||!Yu(r)?e-1:e)+(Gu(r)-Gu(1970)));return Au(n+u+a)};switch(t){case 1:return e>31?Zu(e):u(0);case 2:return e>29||29===e&&!Yu(r)?Zu(e):u(26784e5);case 3:return e>31?Zu(e):u(50976e5);case 4:return e>30?Zu(e):u(7776e6);case 5:return e>31?Zu(e):u(10368e6);case 6:return e>30?Zu(e):u(130464e5);case 7:return e>31?Zu(e):u(156384e5);case 8:return e>31?Zu(e):u(183168e5);case 9:return e>30?Zu(e):u(209952e5);case 10:return e>31?Zu(e):u(235872e5);case 11:return e>30?Zu(e):u(262656e5);case 12:return e>31?Zu(e):u(288576e5);default:return ku('Invalid month: "'+Zr(t)+'"')}},f(Cu,f(Cu,f(Cu,Au(e(function(n,r,t){return k(n,r,t)})),Ju(4)),xu(R([f(Cu,f(Ru,Au(Ft),qu("-")),Ju(2)),Ju(2)]))),xu(R([f(Cu,f(Ru,Au(Ft),qu("-")),Ju(2)),Ju(2)])))),Wu=(le=e(function(n,r,t){return n*(60*r)+t}),f(Cu,Au(Ft),xu(R([f(Pu,function(){return 0},qu("Z")),f(Cu,f(Cu,f(Cu,Au(le),xu(R([f(Pu,function(){return 1},qu("+")),f(Pu,function(){return-1},qu("-"))]))),Ju(2)),xu(R([f(Cu,f(Ru,Au(Ft),qu(":")),Ju(2)),Ju(2),Au(0)]))),f(Ru,Au(0),pu)])))),na=f(vu,function(n){return xu(R([f(Cu,f(Cu,f(Cu,f(Cu,f(Cu,f(Ru,Au(Nu(n)),qu("T")),Ju(2)),xu(R([f(Cu,f(Ru,Au(Ft),qu(":")),Ju(2)),Ju(2)]))),xu(R([f(Cu,f(Ru,Au(Ft),qu(":")),Ju(2)),Ju(2)]))),xu(R([f(Cu,f(Ru,Au(Ft),qu(".")),Tu),Au(0)]))),f(Ru,Wu,pu)),f(Ru,Au(d(Nu,n,0,0,0,0,0)),pu)]))},Vu),ra=e(function(n,r,t){return{aQ:r,bl:t,bv:n}}),ta=function(n){return s(ra,n.bv,n.aQ,n.bl)},ea=t(function(n,r){n:for(;;)switch(n.$){case 0:return r;case 1:var t=n.b;n=n.a,r=f(Cr,t,r);continue n;default:var e=n.b;n=n.a,r=f(ea,e,r);continue n}}),ua=t(function(n,r){var t=n({aQ:1,c:j,d:1,b:0,bv:1,a:r});return t.$?Kr(f(ea,t.b,j)):Pr(t.b)}),aa=t(function(n,r){var t=f(ua,n,r);return t.$?Kr(f(ae,ta,t.a)):Pr(t.a)}),ia=f(Ot,function(n){var r=function(n){return f(aa,na,n)}(n);return 1===r.$?ou("TODO deadEndsToString"):Qt(r.a)},fu),ca=function(n){return{$:11,g:n}},oa=function(n){return ca(R([f(xt,Jr,n),Qt(Xr)]))},fa=V,sa=t(function(n,r){return s(ue,fa,r,n)}),ba=St(wt),va=un,da=function(n){return{$:5,c:n}},la=Y,$a=e(function(n,r,t){return f(Ot,function(e){var u=f(va,n,e);if(u.$)return Qt(t);var a=u.a,i=f(va,ca(R([r,da(t)])),a);return i.$?ou(vt(i.a)):Qt(i.a)},la)}),ha=u(function(n,r,t,e){return f(ba,s($a,f(sa,n,la),r,t),e)}),pa=e(function(n,r,t){return f(ba,f(sa,n,r),t)}),ga=b(ha,R(["attributes","parent_event_id"]),oa(fu),Xr,s(pa,R(["attributes","type_stream_name"]),fu,b(ha,R(["attributes","causation_stream_name"]),oa(fu),Xr,b(ha,R(["attributes","correlation_stream_name"]),oa(fu),Xr,s(pa,R(["attributes","metadata"]),f(xt,qr(2),la),s(pa,R(["attributes","data"]),f(xt,qr(2),la),s(pa,R(["attributes","metadata","timestamp"]),ia,s(pa,R(["id"]),fu,s(pa,R(["attributes","event_type"]),fu,Qt(cu)))))))))),ma=f(fa,"data",ga),_a=en,ya=t(function(n,r){return{$:3,a:n,b:r}}),wa=function(n){return{$:0,a:n}},ka=t(function(n,r){return{$:4,a:n,b:r}}),Ea={$:2},Aa=function(n){return{$:1,a:n}},Ta=function(n){return{$:0,a:n}},ja={$:1},Na=function(n){return!n.$},La=In,Ra=e(function(n,r,t){return r(n(t))}),Ca=t(function(n,r){return s(Lr,"",Ft,f(Ra,r,n))}),Ia=t(function(n,r){return r.$?Kr(n(r.a)):Pr(r.a)}),Oa=function(n){return{$:4,a:n}},xa={$:2},Sa={$:1},Qa=t(function(n,r){switch(r.$){case 0:return Kr({$:0,a:r.a});case 1:return Kr(Sa);case 2:return Kr(xa);case 3:return Kr({$:3,a:r.a.cJ});default:return f(Ia,Oa,n(r.b))}}),Ka=t(function(n,r){return f(Ca,n,Qa(function(n){return f(Ia,vt,f(_a,r,n))}))}),Fa={$:0},Da=function(n){return{$:1,a:n}},Ma=t(function(n,r){return{br:n,bG:r}}),Pa=re(f(Ma,Je,j)),Ba=function(n){return pn(function(r){var t=n.f;2===t.$&&t.c&&t.c(),n.f=null,r(hn(0))})},Ha=yn,Ja=e(function(n,r,t){n:for(;;){if(r.b){var e=r.a,u=r.b;if(e.$){var a=e.a;return f(ie,function(r){var e=a.bI;return s(Ja,n,u,1===e.$?t:s(xe,e.a,r,t))},Ha(s(jr,n,se(n),a)))}var i=e.a,c=f(Le,i,t);if(1===c.$){n=n,r=u,t=t;continue n}return f(ie,function(){return s(Ja,n,u,f(Pe,i,t))},Ba(c.a))}return re(t)}}),Xa=u(function(n,r,t,e){return f(ie,function(n){return re(f(Ma,n,t))},s(Ja,n,r,e.br))}),za=e(function(n,r,t){var e=n(r);return e.$?t:f(Cr,e.a,t)}),qa=t(function(n,r){return s(ue,za(n),j,r)}),Za=u(function(n,r,t,e){var u=e.b;return g(r,e.a)?Jr(f(se,n,u(t))):Xr}),Ua=e(function(n,r,t){return f(ie,function(){return re(t)},fe(f(qa,s(Za,n,r.a,r.b),t.bG)))}),Ya=t(function(n,r){if(r.$){var t=r.a;return Da({bR:t.bR,bT:t.bT,al:f(Rr,n,t.al),a0:t.a0,ci:t.ci,cP:t.cP,bI:t.bI,aK:t.aK})}return{$:0,a:r.a}}),Ga=t(function(n,r){return{$:0,a:n,b:r}});Nn.Http=Ln(Pa,Xa,Ua,Ya,t(function(n,r){return f(Ga,r.a,f(Ra,r.b,n))}));var Va=On("Http"),Wa=(On("Http"),function(n){return function(n){return Va(Da({bR:!1,bT:n.bT,al:n.al,a0:n.a0,ci:n.ci,cP:n.cP,bI:n.bI,aK:n.aK}))}({bT:Fa,al:n.al,a0:j,ci:"GET",cP:Xr,bI:Xr,aK:n.aK})}),ni=e(function(n,r,t){return Wa({al:f(Ka,n,ma),aK:f(iu,r.b7,t)})}),ri=t(function(n,r){return s(ni,uu,n,r)}),ti=t(function(n,r){return f(ri,n,r)}),ei=function(n){return{$:2,a:n}},ui=t(function(n,r){return{b6:n,cE:r}}),ai=function(n){return{$:3,b:n}},ii=b(ha,R(["attributes","related_streams"]),oa(ai(fu)),Xr,s(pa,R(["relationships","events","links","self"]),fu,Qt(ui))),ci=f(fa,"data",ii),oi=e(function(n,r,t){return Wa({al:f(Ka,n,ci),aK:f(iu,r.cL,t)})}),fi=t(function(n,r){return s(oi,ei,n,r)}),si=t(function(n,r){return{aa:Xr,A:Xr,b3:r,aX:n}}),bi=t(function(n,r){return{b5:n,ch:r}}),vi=f(bi,j,{aW:Xr,bb:Xr,bf:Xr,bk:Xr}),di=Qn,li=xn(j),$i=t(function(n,r){var t,e=f(Xe,tu,A(t=r,{aZ:Xr,cz:f(eu,"",t.aZ)}));if(e.$)return w(A(n,{w:ge}),li);if(e.a.$){var u=je(e.a.a);if(u.$)return w(A(n,{w:ge}),li);var a=u.a;return w(A(n,{w:we(f(si,n.aX,a))}),f(di,_e,f(ti,n.aX,a)))}var i=je(e.a.a);if(i.$)return w(A(n,{w:ge}),li);var c,o=i.a;return w(A(n,{w:ke((c=o,{b5:vi,cE:Xr,ah:c}))}),f(di,ye,f(fi,n.aX,o)))}),hi=e(function(n,r,t){return f($i,{aX:n,cg:t,T:me,w:ge},r)}),pi=xn(j),gi=function(n){return{$:2,a:n}},mi=function(n){return f(pe,ne,pn(function(){try{Er.location=n}catch(n){Bn.location.reload(!1)}}))},_i=kr,yi=t(function(n,r){return 1===n.$?r:r+":"+Zr(n.a)}),wi=e(function(n,r,t){return 1===r.$?t:T(t,T(n,r.a))}),ki=function(n){return s(wi,"#",n.aZ,s(wi,"?",n.bp,T(f(yi,n.bj,T(n.bo?"https://":"http://",n.a3)),n.cz)))},Ei=t(function(n,r){return n+"/"+au(r)}),Ai=function(n){return f(Ei,"#streams",n)},Ti=t(function(n,r){return n.$?w({K:n.a},li):w({K:""},f(_i,r.cg,Ai(r.a7.K)))}),ji=function(n){return{$:3,a:n}},Ni=Je,Li=t(function(n,r){return s(xe,n,0,r)}),Ri=s(Vr,Li,Ni,j),Ci=function(n){return{$:4,a:n}},Ii=t(function(n,r){var t=r.bV;return t.$?li:s(oi,Ci,n,t.a)}),Oi=u(function(n,r,t,e){return{aW:t,bb:e,bf:n,bk:r}}),xi=u(function(n,r,t,e){return f(ba,s($a,f(fa,n,la),r,t),e)}),Si=b(xi,"last",oa(fu),Xr,b(xi,"first",oa(fu),Xr,b(xi,"prev",oa(fu),Xr,b(xi,"next",oa(fu),Xr,Qt(Oi))))),Qi=e(function(n,r,t){return f(ba,f(fa,n,r),t)}),Ki=s(Qi,"links",Si,s(Qi,"data",ai(ga),Qt(bi))),Fi=t(function(n,r){return Wa({al:f(Ka,n,Ki),aK:r})}),Di=t(function(n,r){switch(n.$){case 0:var t=n.a,e=r.A;return w(e.$?r:A(r,{A:Jr(A(a=e.a,{ab:t}))}),li);case 1:t=n.a;var u=r.A;return w(u.$?r:A(r,{A:Jr(A(a=u.a,{ae:t}))}),li);case 2:if(n.a.$)return w(r,li);var a={bV:(i=n.a.a).bV,b_:i.b_,ab:Ri,b3:i.b3,b4:i.b4,ae:Ri,cy:i.cy,cA:i.cA,cB:i.cB,cX:i.cX};return w(A(r,{A:Jr(a)}),f(Ii,r.aX,a));case 4:return w(r,n.a.$?li:f(Fi,ji,n.a.a.b6));default:return w(n.a.$?r:A(r,{aa:Jr(n.a.a.b5)}),li)}var i}),Mi=function(n){return{$:1,a:n}},Pi=t(function(n,r){switch(n.$){case 0:return w(r,f(Fi,Mi,n.a));case 1:return w(n.a.$?r:A(r,{b5:n.a.a}),li);default:if(n.a.$)return w(r,li);var t=n.a.a;return w(A(r,{cE:t.cE}),f(Fi,Mi,t.b6))}}),Bi=u(function(n,r,t,e){var u=e.b;return w(A(t,{w:n(e.a)}),f(di,r,u))}),Hi=t(function(n,r){return{aX:n.aX,a7:r,cg:n.cg}}),Ji=t(function(n,r){var t=w(n,r.w);n:for(;;)switch(t.a.$){case 0:return f($i,r,t.a.a);case 1:var e=t.a.a;return w(r,e.$?mi(e.a):f(_i,r.cg,ki(e.a)));case 4:if(2===t.b.$)return b(Bi,ke,ye,r,f(Pi,t.a.a,t.b.a));break n;case 3:if(1===t.b.$)return b(Bi,we,_e,r,f(Di,t.a.a,t.b.a));break n;default:var u=f(Ti,t.a.a,f(Hi,r,r.T)),a=u.b;return w(A(r,{T:u.a}),f(di,gi,a))}return w(r,li)}),Xi=function(n){return n.$?"RubyEventStore::Browser":"RubyEventStore::Browser - "+n.a},zi=Xn("a"),qi=ln,Zi=t(function(n,r){return f(Yn,n,qi(r))}),Ui=Zi("className"),Yi=Xn("div"),Gi=Xn("footer"),Vi=function(n){return f(Zi,"href",/^javascript:/i.test((r=n).replace(/\s/g,""))?"":r);var r},Wi=Jn,nc={$:0},rc=function(n){return{$:1,a:n}},tc=Xn("form"),ec=Xn("input"),uc=Xn("nav"),ac=function(n){return w(n,!0)},ic=Zn,cc=t(function(n,r){return f(ic,n,{$:1,a:r})}),oc=f(sa,R(["target","value"]),fu),fc=function(n){return w(n,!0)},sc=t(function(n,r){return f(ic,n,{$:2,a:r})}),bc=Zi("placeholder"),vc=Zi("value"),dc=function(n){return f(uc,R([Ui("navigation")]),R([f(Yi,R([Ui("navigation__brand")]),R([f(zi,R([Vi(n.aX.cH),Ui("navigation__logo")]),R([Wi("Ruby Event Store")]))])),f(Yi,R([Ui("navigation__links")]),j),f(Yi,R([Ui("navigation__go-to-stream")]),R([f(tc,R([(t=nc,f(sc,"submit",f(xt,fc,Qt(t))))]),R([f(ec,R([vc(n.a7.K),(r=rc,f(cc,"input",f(xt,ac,f(xt,r,oc)))),bc("Go to stream...")]),j)]))]))]));var r,t},lc=Xn("header"),$c=Xn("main"),hc=qn,pc=e(function(n,r,t){return f(Yi,R([Ui("frame")]),R([f(lc,R([Ui("frame__header")]),R([f(hc,n,dc(r))])),f($c,R([Ui("frame__body")]),R([t])),f(Gi,R([Ui("frame__footer")]),R([f(hc,n,(e=r.aX,f(Gi,R([Ui("footer")]),R([f(Yi,R([Ui("footer__links")]),R([Wi("RubyEventStore v"+e.cF),f(zi,R([Vi("https://railseventstore.org/docs/install/"),Ui("footer__link")]),R([Wi("Documentation")])),f(zi,R([Vi("https://railseventstore.org/support/"),Ui("footer__link")]),R([Wi("Support")]))]))]))))]))]));var e}),gc=Xn("h1"),mc=Xn("h2"),_c=Xn("li"),yc=t(function(n,r){return r.$?Xr:Jr(n(r.a))}),wc=function(n){return f(zi,R([Ui("event__stream-link"),Vi(Ai(n))]),R([Wi(n)]))},kc=function(n){return f(yc,function(n){return f(_c,j,R([Wi("Causation stream: "),wc(n)]))},n.bV)},Ec=function(n){return f(yc,function(n){return f(_c,j,R([Wi("Correlation stream: "),wc(n)]))},n.b_)},Ac=function(n){return f(Ei,"#events",n)},Tc=function(n){return f(yc,function(n){return f(_c,j,R([Wi("Parent event: "),(r=n,f(zi,R([Ui("event__event-link"),Vi(Ac(r))]),R([Wi(r)])))]));var r},n.cy)},jc=function(n){return f(_c,j,R([Wi("Type stream: "),wc(n.cX)]))},Nc=f(ue,t(function(n,r){return n.$?r:f(Cr,n.a,r)}),j),Lc=function(n){return Nc(R([Tc(n),Jr(jc(n)),Ec(n),kc(n)]))},Rc=Xn("ul"),Cc=function(n){return g(Lc(n),j)?Wi(""):f(Yi,R([Ui("event__related-streams")]),R([f(mc,j,R([Wi("Related streams / events:")])),f(Rc,j,Lc(n))]))},Ic=Xn("p"),Oc=Xn("td"),xc=Xn("tr"),Sc=function(n){var r=n.b4,t=n.b3;return f(xc,j,R([f(Oc,j,R([f(zi,R([Ui("results__link"),Vi(Ac(t))]),R([Wi(r)]))])),f(Oc,j,R([Wi(t)]))]))},Qc=Xn("table"),Kc=Xn("tbody"),Fc=Xn("tfoot"),Dc=Xn("th"),Mc=Xn("thead"),Pc=function(n){return n.b?f(Qc,j,R([f(Mc,j,R([f(xc,j,R([f(Dc,j,R([Wi("Event name")])),f(Dc,j,R([Wi("Event id")]))]))])),f(Kc,j,f(ae,Sc,n)),f(Fc,j,R([f(xc,j,R([f(Oc,R([(2,f(Gn,"colspan",Zr(2)))]),R([20===Wr(n)?Wi("The results may be truncated, check stream for full information."):Wi("")]))]))]))])):f(Ic,R([Ui("results__empty")]),R([Wi("No items")]))},Bc={I:"firebrick",L:"gray",M:"blue",N:"#fafad2",P:"green"},Hc=t(function(n,r){return r.$?Kr(r.a):Pr(n(r.a))}),Jc=t(function(n,r){return r.$?Kr(r.a):n(r.a)}),Xc=function(n){return{$:4,a:n}},zc=function(n){return{$:3,a:n}},qc=t(function(n,r){if(-2===r.$)return Ce;var t=r.b,e=r.d,u=r.e;return v(Re,r.a,t,f(n,t,r.c),f(qc,n,e),f(qc,n,u))}),Zc=t(function(n,r){var e=t(function(r,t){return f(Zc,n+"["+Zr(r)+"]",t)}),u=t(function(r,t){return f(Zc,n+"."+r,t)}),a=r.y;switch(a.$){case 0:case 1:case 2:case 5:return A(r,{l:n});case 3:return A(r,{l:n,y:zc(f(et,e,a.a))});default:return A(r,{l:n,y:Xc(f(qc,u,a.a))})}}),Uc=function(n){return{$:2,a:n}},Yc=function(n){return{$:1,a:n}},Gc={$:5},Vc=function(n){return{$:0,a:n}},Wc=Z,no=e(function(n,r,t){return n(r(t))}),ro=function(n){return s(Vr,t(function(n,r){return s(xe,n.a,n.b,r)}),Je,n)},to=function(n){return f(xt,ro,function(n){return{$:8,b:n}}(n))},eo=U,uo=function(n){return f(Ot,n,Qt(0))};function ao(){var n=function(n){return{l:"",y:n}};return ca(R([f(xt,f(no,n,Vc),fu),f(xt,f(no,n,Yc),eo),f(xt,f(no,n,Uc),Wc),f(xt,f(no,n,zc),ai(uo(function(){return ao()}))),f(xt,f(no,n,Xc),to(uo(function(){return ao()}))),da(n(Gc))]))}var io=ao();ao=function(){return io};var co,oo,fo,so,bo,vo=function(n){var r=f(xt,Zc(""),io);return f(va,r,n)},lo=Xn("pre"),$o={I:function(n){return R([w("color",n.I)])},aj:R([w("position","absolute"),w("cursor","pointer"),w("top","1px"),w("left","-15px")]),am:R([w("font-weight","bold")]),ac:R([w("position","relative")]),L:function(n){return R([w("color",n.L)])},M:function(n){return R([w("color",n.M)])},ay:R([w("font-family","monospace"),w("white-space","pre")]),N:function(n){return R([w("background-color",n.N),w("cursor","pointer")])},P:function(n){return R([w("color",n.P)])},ai:R([w("list-style-type","none"),w("margin-left","26px"),w("padding-left","0px")])},ho=function(n){return Xn(function(n){return"script"==n?"p":n}(n))},po=Un,go=function(n){return f(ae,function(n){return f(po,n.a,n.b)},n)},mo=z,_o=t(function(n,r){return!f(Le,n,r).$}),yo=t(function(n,r){return f(_o,n,r)}),wo=t(function(n,r){return f(yo,n,r)}),ko=Xn("span"),Eo=t(function(n,r){return f(Li,n,r)}),Ao=t(function(n,r){return f(ic,n,{$:0,a:r})}),To=t(function(n,r){return f(Ao,"click",f(xt,f(Ra,function(n){return n(0)},r),Qt(n)))}),jo=u(function(n,r,t,e){return n?f(ko,f(Cr,f(To,t,r.cU),go($o.aj)),R([Wi(e)])):Wi("")}),No=u(function(n,r,t,e){return b(jo,n,t,function(){return f(Eo,r,e)},"-")}),Lo=t(function(n,r){return f(Pe,n,r)}),Ro=t(function(n,r){return f(Lo,n,r)}),Co=u(function(n,r,t,e){return b(jo,n,t,function(){return f(Ro,r,e)},"+")}),Io=Zi("id"),Oo=function(n){return f(Ao,"click",Qt(n))},xo=u(function(n,r,t,e){return u=f(ko,T(R([Io(t.l)]),T(go(n),(a=e.ct).$?j:R([Oo((0,a.a)(t.l)),Ui("selectableJsonTreeNode")]))),R([Wi(r)])),R([u]);var u,a}),So=a(function(n,r,t,e,u){var a=function(r){return f(_c,go($o.ac),f(Ye,b(Ko,n+1,e,r,u),R([Wi(",")])))},i=r.b?R(f(wo,t,u)?[b(Co,n,t,e,u),Wi("…")]:[b(No,n,t,e,u),f(Rc,go($o.ai),f(ae,a,r))]):j;return T(R([Wi("[")]),T(i,R([Wi("]")])))}),Qo=a(function(n,r,t,e,u){var a=function(r){var t=r.a,a=r.b;return f(_c,go($o.ac),T(R([f(ko,go($o.am),R([Wi(t)])),Wi(": ")]),T(b(Ko,n+1,e,a,u),R([Wi(",")]))))},i=function(n){return-2===n.$}(r)?j:R(f(wo,t,u)?[b(Co,n,t,e,u),Wi("…")]:[b(No,n,t,e,u),f(Rc,go($o.ai),f(ae,a,Or(r)))]);return T(R([Wi("{")]),T(i,R([Wi("}")])))}),Ko=u(function(n,r,t,e){var u=r.bY,a=t.y;switch(a.$){case 0:var i=a.a;return b(xo,$o.P(u),'"'+i+'"',t,r);case 1:var c=a.a;return b(xo,$o.M(u),mo(c),t,r);case 2:var o=a.a;return b(xo,$o.I(u),function(n){return n?"true":"false"}(o),t,r);case 5:return b(xo,$o.L(u),"null",t,r);case 3:return v(So,n,a.a,t.l,r,e);default:return v(Qo,n,a.a,t.l,r,e)}}),Fo=e(function(n,r,t){return f(Yi,go($o.ay),f(Cr,function(n){var r=f(Ur,"\n",f(ae,function(n){return n.a+": "+n.b+";"},$o.N(n.bY)));return s(ho,"style",j,R([Wi(".selectableJsonTreeNode:hover {\n"+r+"\n}\n")]))}(r),b(Ko,0,r,n,t)))}),Do=t(function(n,r){return r.$?n:r.a}),Mo=e(function(n,r,t){return f(Do,f(lo,j,R([Wi(n)])),f(Hc,function(n){return s(Fo,n,{bY:Bc,ct:Xr,cU:t},r)},f(Jc,vo,f(_a,la,n))))}),Po=t(function(n,r){return f(Yi,R([Ui("event")]),R([f(gc,R([Ui("event__title")]),R([Wi(n.b4)])),f(Yi,R([Ui("event__body")]),R([f(Qc,j,R([f(Mc,j,R([f(xc,j,R([f(Dc,j,R([Wi("Event id")])),f(Dc,j,R([Wi("Raw Data")])),f(Dc,j,R([Wi("Raw Metadata")]))]))])),f(Kc,j,R([f(xc,j,R([f(Oc,j,R([Wi(n.b3)])),f(Oc,j,R([s(Mo,n.cA,n.ab,function(n){return{$:0,a:n}})])),f(Oc,j,R([s(Mo,n.cB,n.ae,function(n){return{$:1,a:n}})]))]))]))]))])),Cc(n),function(){if(r.$)return Wi("");var n=r.a;return f(Yi,R([Ui("event__caused-events")]),R(n.b?[f(mc,j,R([Wi("Events caused by this event:")])),Pc(n)]:[f(mc,j,R([Wi("Events caused by this event: none")]))]))}()]))}),Bo=function(n){return w("Event "+n.b3,function(n){var r=n.A;return r.$?f(Yi,R([Ui("event")]),R([f(gc,R([Ui("event__missing")]),R([Wi("There's no event with given ID")]))])):f(Po,r.a,n.aa)}(n))},Ho=Xn("button"),Jo=ln,Xo=t(function(n,r){return f(Yn,n,Jo(r))})("disabled"),zo=function(n){if(n.$)return R([Xo(!0)]);var r,t=n.a;return R([Vi(t),Oo((r=t,{$:0,a:r}))])},qo=function(n){return f(Ho,T(R([Ui("pagination__page")]),zo(n)),R([Wi("last")]))},Zo=function(n){return f(Ho,T(R([Ui("pagination__page")]),zo(n)),R([Wi("next")]))},Uo=function(n){return f(Ho,T(R([Ui("pagination__page")]),zo(n)),R([Wi("previous")]))},Yo=function(n){var r,t=n.aW,e=n.bb,u=n.bf,a=n.bk;return f(Rc,R([Ui("pagination")]),R([f(_c,j,R([(r=t,f(Ho,T(R([Ui("pagination__page")]),zo(r)),R([Wi("first")])))])),f(_c,j,R([Uo(a)])),f(_c,j,R([Zo(u)])),f(_c,j,R([qo(e)]))]))},Go=Wi(""),Vo=function(n){if(n.$)return Go;var r=n.a;return f(Yi,R([Ui("event__related-streams")]),R([f(mc,j,R([Wi("Related streams:")])),f(Rc,j,f(ae,function(n){return f(_c,j,R([(r=n,f(zi,R([Ui("event__stream-link"),Vi(Ai(r))]),R([Wi(r)])))]));var r},r))]))},Wo={$:7},nf=function(n){return n>11?"pm":"am"},rf=function(n){switch(n){case 0:return"January";case 1:return"February";case 2:return"March";case 3:return"April";case 4:return"May";case 5:return"June";case 6:return"July";case 7:return"August";case 8:return"September";case 9:return"October";case 10:return"November";default:return"December"}},tf=function(n){switch(f(Uu,100,n)){case 11:case 12:case 13:return"th";default:switch(f(Uu,10,n)){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}},ef=function(n){switch(n){case 0:return"Monday";case 1:return"Tuesday";case 2:return"Wednesday";case 3:return"Thursday";case 4:return"Friday";case 5:return"Saturday";default:return"Sunday"}},uf=d(i(function(n,r,t,e,u,a){return{cR:u,cS:r,cT:n,Q:a,cV:e,cW:t}}),rf,f(Ra,rf,zt(3)),ef,f(Ra,ef,zt(3)),nf,tf),af=t(function(n,r){return kt(n/r)}),cf=function(n){return n},of=e(function(n,r,t){for(;;){if(!t.b)return r+n;var e=t.a,u=t.b;if(0>_(e.aG,r))return r+e.b;n=n,r=r,t=u}}),ff=t(function(n,r){var t=n.b;return s(of,n.a,f(af,cf(r),6e4),t)}),sf=t(function(n,r){return f(Uu,24,f(af,f(ff,n,r),60))}),bf=e(function(n,r,t){return n.cR(f(sf,r,t))}),vf=function(n){var r=f(af,n,1440)+719468,t=(0>r?r-146096:r)/146097|0,e=r-146097*t,u=(e-(e/1460|0)+(e/36524|0)-(e/146096|0))/365|0,a=e-(365*u+(u/4|0)-(u/100|0)),i=(5*a+2)/153|0,c=i+(10>i?3:-9);return{aR:a-((153*i+2)/5|0)+1,bd:c,bO:u+400*t+(c>2?0:1)}},df=t(function(n,r){return vf(f(ff,n,r)).aR}),lf=R([6,0,1,2,3,4,5]),$f=t(function(n,r){return s(ue,t(function(r,t){return n(r)?f(Cr,r,t):t}),j,r)}),hf=function(n){return n.b?Jr(n.a):Xr},pf=t(function(n,r){switch(f(Uu,7,f(af,f(ff,n,r),1440))){case 0:return 3;case 1:return 4;case 2:return 5;case 3:return 6;case 4:return 0;case 5:return 1;default:return 2}}),gf=t(function(n,r){return f(eu,w(0,6),hf(f($f,function(t){return g(t.b,f(pf,n,r))},f(et,t(function(n,r){return w(n,r)}),lf)))).a}),mf=t(function(n,r){switch(r){case 0:return 31;case 1:return function(n){return!(f(Uu,4,n)||!f(Uu,100,n)&&f(Uu,400,n))}(n)?29:28;case 2:return 31;case 3:return 30;case 4:return 31;case 5:return 30;case 6:case 7:return 31;case 8:return 30;case 9:return 31;case 10:return 30;default:return 31}}),_f=R([0,1,2,3,4,5,6,7,8,9,10,11]),yf=t(function(n,r){switch(vf(f(ff,n,r)).bd){case 1:return 0;case 2:return 1;case 3:return 2;case 4:return 3;case 5:return 4;case 6:return 5;case 7:return 6;case 8:return 7;case 9:return 8;case 10:return 9;case 11:return 10;default:return 11}}),wf=t(function(n,r){return f(eu,w(0,0),hf(f($f,function(t){return g(t.b,f(yf,n,r))},f(et,t(function(n,r){return w(n,r)}),_f))))}),kf=t(function(n,r){return 1+f(wf,n,r).a}),Ef=e(function(n,r,t){n:for(;;){if(n>0){if(r.b){var e=r.a;n-=1,r=r.b,t=f(Cr,e,t);continue n}return t}return t}}),Af=t(function(n,r){return st(s(Ef,n,r,j))}),Tf=e(function(n,r,t){if(r>0){var e=w(r,t);n:for(;;){r:for(;;){if(!e.b.b)return t;if(!e.b.b.b){if(1===e.a)break n;break r}switch(e.a){case 1:break n;case 2:var u=e.b;return R([u.a,u.b.a]);case 3:if(e.b.b.b.b){var a=e.b,i=a.b;return R([a.a,i.a,i.b.a])}break r;default:if(e.b.b.b.b&&e.b.b.b.b.b){var c=e.b,o=c.b,b=o.b,v=b.b,d=v.b;return f(Cr,c.a,f(Cr,o.a,f(Cr,b.a,f(Cr,v.a,n>1e3?f(Af,r-4,d):s(Tf,n+1,r-4,d)))))}break r}}return t}return R([e.b.a])}return j}),jf=t(function(n,r){return s(Tf,0,n,r)}),Nf=t(function(n,r){return vf(f(ff,n,r)).bO}),Lf=t(function(n,r){var t,e=f(jf,f(kf,n,r)-1,_f);return t=f(ae,mf(f(Nf,n,r)),e),s(Vr,Hr,0,t)+f(df,n,r)}),Rf=t(function(n,r){return f(kf,n,r)/4|0}),Cf=t(function(n,r){return 1>n?"":s(Bt,-n,Pt(r),r)}),If=t(function(n,r){var t=Zr(r),e=n-Pt(t);return T(f(Ur,"",f(ae,function(){return"0"},f(tt,1,e))),t)}),Of=t(function(n,r){return f(Uu,1e3,cf(r))}),xf=t(function(n,r){return f(Uu,60,f(ff,n,r))}),Sf=function(n){return n?n>12?n-12:n:12},Qf=t(function(n,r){return f(Uu,60,f(af,cf(r),1e3))}),Kf=Eu(315576e5),Ff=t(function(n,r){return ju(Kf*f(Nf,n,r))}),Df=t(function(n,r){var t=f(gf,n,f(Ff,n,r));return 1+((f(Lf,n,r)+t)/7|0)}),Mf=t(function(n,r){return Zr(f(Nf,n,r))}),Pf=u(function(n,r,t,e){switch(e.$){case 0:return Zr(f(kf,r,t));case 1:return T(Zr(u=f(kf,r,t)),n.Q(u));case 2:return f(If,2,f(kf,r,t));case 3:return n.cS(f(yf,r,t));case 4:return n.cT(f(yf,r,t));case 17:return Zr(1+f(Rf,r,t));case 18:return function(r){return T(Zr(r),n.Q(r))}(1+f(Rf,r,t));case 5:return Zr(f(df,r,t));case 6:return function(r){return T(Zr(r),n.Q(r))}(f(df,r,t));case 7:return f(If,2,f(df,r,t));case 8:return Zr(f(Lf,r,t));case 9:return function(r){return T(Zr(r),n.Q(r))}(f(Lf,r,t));case 10:return f(If,3,f(Lf,r,t));case 11:return Zr(f(gf,r,t));case 12:return function(r){return T(Zr(r),n.Q(r))}(f(gf,r,t));case 13:return n.cV(f(pf,r,t));case 14:return n.cW(f(pf,r,t));case 19:return Zr(f(Df,r,t));case 20:return function(r){return T(Zr(r),n.Q(r))}(f(Df,r,t));case 21:return f(If,2,f(Df,r,t));case 15:return f(Cf,2,f(Mf,r,t));case 16:return f(Mf,r,t);case 22:return s(bf,n,r,t).toUpperCase();case 23:return function(n){return n.toLowerCase()}(s(bf,n,r,t));case 24:return Zr(f(sf,r,t));case 25:return f(If,2,f(sf,r,t));case 26:return Zr(Sf(f(sf,r,t)));case 27:return f(If,2,Sf(f(sf,r,t)));case 28:return Zr(1+f(sf,r,t));case 29:return f(If,2,1+f(sf,r,t));case 30:return Zr(f(xf,r,t));case 31:return f(If,2,f(xf,r,t));case 32:return Zr(f(Qf,r,t));case 33:return f(If,2,f(Qf,r,t));case 34:return Zr(f(Of,r,t));case 35:return f(If,3,f(Of,r,t));default:return e.a}var u}),Bf=u(function(n,r,t,e){return f(Ur,"",f(ae,s(Pf,n,t,e),r))})(uf),Hf={$:25},Jf={$:35},Xf={$:31},zf={$:2},qf={$:33},Zf=function(n){return{$:36,a:n}},Uf=f(t(function(n,r){return{$:0,a:n,b:r}}),0,j),Yf={$:16},Gf=function(n){var r,t=n.b4,e=n.b$,u=n.b3;return f(xc,j,R([f(Oc,j,R([f(zi,R([Ui("results__link"),Vi(Ac(u))]),R([Wi(t)]))])),f(Oc,j,R([Wi(u)])),f(Oc,R([Ui("text-right")]),R([Wi((r=e,s(Bf,R([Wo,Zf("."),zf,Zf("."),Yf,Zf(", "),Hf,Zf(":"),Xf,Zf(":"),qf,Zf("."),Jf]),Uf,r)))]))]))},Vf=function(n){return n.b?f(Qc,j,R([f(Mc,j,R([f(xc,j,R([f(Dc,j,R([Wi("Event name")])),f(Dc,j,R([Wi("Event id")])),f(Dc,R([Ui("text-right")]),R([Wi("Created at")]))]))])),f(Kc,j,f(ae,Gf,n))])):f(Ic,R([Ui("results__empty")]),R([Wi("No items")]))},Wf=e(function(n,r,t){var e=r.ch,u=r.b5;return f(Yi,R([Ui("browser")]),R([f(gc,R([Ui("browser__title")]),R([Wi(n)])),f(Yi,R([Ui("browser__pagination")]),R([Yo(e)])),f(Yi,R([Ui("browser__results")]),R([Vf(u)])),f(Yi,j,R([Vo(t)]))]))}),ns=function(n){return w("Stream "+n.ah,s(Wf,"Events in "+n.ah,n.b5,n.cE))},rs=f(gc,j,R([Wi("404")])),ts=e(function(n,r,t){var e=r(t),u=e.b;return w(Jr(e.a),f(hc,n,u))});co={Main:{init:(fo=(oo={ce:hi,cu:function(n){return{$:0,a:n}},cv:function(n){return{$:1,a:n}},cM:function(){return pi},cY:Ji,cZ:function(n){var r=function(n){switch(n.$){case 2:return s(ts,ye,ns,n.a);case 1:return s(ts,_e,Bo,n.a);default:return w(Xr,rs)}}(n.w),t=r.a,e=r.b;return{bT:R([s(pc,gi,f(Hi,n,n.T),e)]),cQ:Xi(t)}}}).cu,so=oo.cv,bo=function(){bo.a(fo(wr()))},_r({az:function(n){return bo.a=n,Er.addEventListener("popstate",bo),0>Er.navigator.userAgent.indexOf("Trident")||Er.addEventListener("hashchange",bo),t(function(r,t){if(!(t.ctrlKey||t.metaKey||t.shiftKey||t.button>=1||r.target||r.hasAttribute("download"))){t.preventDefault();var e=r.href,u=wr(),a=Wt(e).a;n(so(a&&u.bo===a.bo&&u.a3===a.a3&&u.bj.a===a.bj.a?{$:0,a:a}:function(n){return{$:1,a:n}}(e)))}})},ce:function(n){return s(oo.ce,n,wr(),bo)},cZ:oo.cZ,cY:oo.cY,cM:oo.cM}))(f(Ot,function(n){return f(Ot,function(r){return f(Ot,function(t){return f(Ot,function(e){return Qt({b7:e,cF:t,cH:r,cL:n})},f(fa,"eventsUrl",fu))},f(fa,"resVersion",fu))},f(fa,"rootUrl",fu))},f(fa,"streamsUrl",fu)))(0)}},n.Elm?function n(r,t){for(var e in t)e in r?"init"==e?p(6):n(r[e],t[e]):r[e]=t[e]}(n.Elm,co):n.Elm=co}(this);
|
4
|
+
!function(n){"use strict";function r(n,r,t){return t.a=n,t.f=r,t}function t(n){return r(2,n,function(r){return function(t){return n(r,t)}})}function e(n){return r(3,n,function(r){return function(t){return function(e){return n(r,t,e)}}})}function u(n){return r(4,n,function(r){return function(t){return function(e){return function(u){return n(r,t,e,u)}}}})}function a(n){return r(5,n,function(r){return function(t){return function(e){return function(u){return function(a){return n(r,t,e,u,a)}}}}})}function i(n){return r(6,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(i){return n(r,t,e,u,a,i)}}}}}})}function c(n){return r(7,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(i){return function(c){return n(r,t,e,u,a,i,c)}}}}}}})}function o(n){return r(9,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(i){return function(c){return function(o){return function(f){return n(r,t,e,u,a,i,c,o,f)}}}}}}}}})}function f(n,r,t){return 2===n.a?n.f(r,t):n(r)(t)}function s(n,r,t,e){return 3===n.a?n.f(r,t,e):n(r)(t)(e)}function b(n,r,t,e,u){return 4===n.a?n.f(r,t,e,u):n(r)(t)(e)(u)}function v(n,r,t,e,u,a){return 5===n.a?n.f(r,t,e,u,a):n(r)(t)(e)(u)(a)}function d(n,r,t,e,u,a,i){return 6===n.a?n.f(r,t,e,u,a,i):n(r)(t)(e)(u)(a)(i)}function l(n,r,t,e,u,a,i,c){return 7===n.a?n.f(r,t,e,u,a,i,c):n(r)(t)(e)(u)(a)(i)(c)}var $=e(function(n,r,t){for(var e=[],u=0;n>u;u++)e[u]=t(r+u);return e}),h=t(function(n,r){for(var t=[],e=0;n>e&&r.b;e++)t[e]=r.a,r=r.b;return t.length=e,w(t,r)});function p(n){throw Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}function g(n,r){for(var t,e=[],u=m(n,r,0,e);u&&(t=e.pop());u=m(t.a,t.b,0,e));return u}function m(n,r,t,e){if(n===r)return!0;if("object"!=typeof n||null===n||null===r)return"function"==typeof n&&p(5),!1;if(t>100)return e.push(w(n,r)),!0;for(var u in 0>n.$&&(n=Rr(n),r=Rr(r)),n)if(!m(n[u],r[u],t+1,e))return!1;return!0}function _(n,r,t){if("object"!=typeof n)return n===r?0:r>n?-1:1;if(void 0===n.$)return(t=_(n.a,r.a))?t:(t=_(n.b,r.b))?t:_(n.c,r.c);for(;n.b&&r.b&&!(t=_(n.a,r.a));n=n.b,r=r.b);return t||(n.b?1:r.b?-1:0)}var y=t(function(n,r){var t=_(n,r);return 0>t?Sr:t?zr:Dr});function w(n,r){return{a:n,b:r}}function k(n,r,t){return{a:n,b:r,c:t}}function E(n){return n}function A(n,r){var t={};for(var e in n)t[e]=n[e];for(var e in r)t[e]=r[e];return t}function O(n,r){if("string"==typeof n)return n+r;if(!n.b)return r;var t=C(n.a,r);n=n.b;for(var e=t;n.b;n=n.b)e=e.b=C(n.a,r);return t}var T={$:0};function C(n,r){return{$:1,a:n,b:r}}var N=t(C);function j(n){for(var r=T,t=n.length;t--;)r=C(n[t],r);return r}var x=e(function(n,r,t){for(var e=[];r.b&&t.b;r=r.b,t=t.b)e.push(f(n,r.a,t.a));return j(e)}),L=t(function(n,r){return n+r}),R=t(function(n,r){var t=r%n;return 0===n?p(11):t>0&&0>n||0>t&&n>0?t+n:t}),D=Math.ceil,z=Math.floor,S=Math.round,F=Math.log,J=t(function(n,r){return n+r}),M=t(function(n,r){return r.split(n)}),W=t(function(n,r){return r.join(n)}),H=e(function(n,r,t){return t.slice(n,r)}),I=t(function(n,r){for(var t=r.length;t--;){var e=r[t],u=r.charCodeAt(t);if(56320>u||u>57343||(e=r[--t]+e),!n(E(e)))return!1}return!0}),q=t(function(n,r){return r.indexOf(n)>-1}),U=t(function(n,r){return 0===r.indexOf(n)}),B=t(function(n,r){var t=n.length;if(1>t)return T;for(var e=0,u=[];(e=r.indexOf(n,e))>-1;)u.push(e),e+=t;return j(u)});function P(n){return n+""}function Q(n){return{$:2,b:n}}Q(function(n){return"number"!=typeof n?sn("an INT",n):n>-2147483647&&2147483647>n&&(0|n)===n?Hr(n):!isFinite(n)||n%1?sn("an INT",n):Hr(n)});var X=Q(function(n){return"boolean"==typeof n?Hr(n):sn("a BOOL",n)}),G=Q(function(n){return"number"==typeof n?Hr(n):sn("a FLOAT",n)}),K=Q(function(n){return Hr(ln(n))}),Y=Q(function(n){return"string"==typeof n?Hr(n):n instanceof String?Hr(n+""):sn("a STRING",n)}),V=t(function(n,r){return{$:6,d:n,b:r}});function Z(n,r){return{$:9,f:n,g:r}}var nn=t(function(n,r){return{$:10,b:r,h:n}}),rn=t(function(n,r){return Z(n,[r])}),tn=e(function(n,r,t){return Z(n,[r,t])}),en=t(function(n,r){try{return an(n,JSON.parse(r))}catch(n){return Fr(f(Jr,"This is not valid JSON! "+n.message,ln(r)))}}),un=t(function(n,r){return an(n,$n(r))});function an(n,r){switch(n.$){case 2:return n.b(r);case 5:return null===r?Hr(n.c):sn("null",r);case 3:return on(r)?cn(n.b,r,j):sn("a LIST",r);case 4:return on(r)?cn(n.b,r,fn):sn("an ARRAY",r);case 6:var t=n.d;if("object"!=typeof r||null===r||!(t in r))return sn("an OBJECT with a field named `"+t+"`",r);var e=an(n.b,r[t]);return Lt(e)?e:Fr(f(Mr,t,e.a));case 7:var u=n.e;return on(r)?r.length>u?(e=an(n.b,r[u]),Lt(e)?e:Fr(f(Wr,u,e.a))):sn("a LONGER array. Need index "+u+" but only see "+r.length+" entries",r):sn("an ARRAY",r);case 8:if("object"!=typeof r||null===r||on(r))return sn("an OBJECT",r);var a=T;for(var i in r)if(r.hasOwnProperty(i)){if(e=an(n.b,r[i]),!Lt(e))return Fr(f(Mr,i,e.a));a=C(w(i,e.a),a)}return Hr(st(a));case 9:for(var c=n.f,o=n.g,s=0;o.length>s;s++){if(e=an(o[s],r),!Lt(e))return e;c=c(e.a)}return Hr(c);case 10:return e=an(n.b,r),Lt(e)?an(n.h(e.a),r):e;case 11:for(var b=T,v=n.g;v.b;v=v.b){if(e=an(v.a,r),Lt(e))return e;b=C(e.a,b)}return Fr(Ir(st(b)));case 1:return Fr(f(Jr,n.a,ln(r)));case 0:return Hr(n.a)}}function cn(n,r,t){for(var e=r.length,u=[],a=0;e>a;a++){var i=an(n,r[a]);if(!Lt(i))return Fr(f(Wr,a,i.a));u[a]=i.a}return Hr(t(u))}function on(n){return Array.isArray(n)||"undefined"!=typeof FileList&&n instanceof FileList}function fn(n){return f(xt,n.length,function(r){return n[r]})}function sn(n,r){return Fr(f(Jr,"Expecting "+n,ln(r)))}function bn(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 bn(n.b,r.b);case 6:return n.d===r.d&&bn(n.b,r.b);case 7:return n.e===r.e&&bn(n.b,r.b);case 9:return n.f===r.f&&vn(n.g,r.g);case 10:return n.h===r.h&&bn(n.b,r.b);case 11:return vn(n.g,r.g)}}function vn(n,r){var t=n.length;if(t!==r.length)return!1;for(var e=0;t>e;e++)if(!bn(n[e],r[e]))return!1;return!0}var dn=t(function(n,r){return JSON.stringify($n(r),null,n)+""});function ln(n){return n}function $n(n){return n}function hn(n){return{$:0,a:n}}function pn(n){return{$:2,b:n,c:null}}ln(null);var gn=t(function(n,r){return{$:3,b:n,d:r}}),mn=0;function _n(n){var r={$:0,e:mn++,f:n,g:null,h:[]};return On(r),r}function yn(n){return pn(function(r){r(hn(_n(n)))})}function wn(n,r){n.h.push(r),On(n)}var kn=t(function(n,r){return pn(function(t){wn(n,r),t(hn(0))})}),En=!1,An=[];function On(n){if(An.push(n),!En){for(En=!0;n=An.shift();)Tn(n);En=!1}}function Tn(n){for(;n.f;){var r=n.f.$;if(0===r||1===r){for(;n.g&&n.g.$!==r;)n.g=n.g.i;if(!n.g)return;n.f=n.g.b(n.f.a),n.g=n.g.i}else{if(2===r)return void(n.f.c=n.f.b(function(r){n.f=r,On(n)}));if(5===r){if(0===n.h.length)return;n.f=n.f.b(n.h.shift())}else n.g={$:3===r?0:1,b:n.f.b,i:n.g},n.f=n.f.d}}}var Cn={};function Nn(n,r,t,e,u){return{b:n,c:r,d:t,e:e,f:u}}function jn(n,r){var t={g:r,h:void 0},e=n.c,u=n.d,a=n.e,i=n.f;function c(n){return f(gn,c,{$:5,b:function(r){var c=r.a;return 0===r.$?s(u,t,c,n):a&&i?b(e,t,c.i,c.j,n):s(e,t,a?c.i:c.j,n)}})}return t.h=_n(f(gn,c,n.b))}var xn=t(function(n,r){return pn(function(t){n.g(r),t(hn(0))})}),Ln=t(function(n,r){return f(kn,n.h,{$:0,a:r})});function Rn(n){return function(r){return{$:1,k:n,l:r}}}function Dn(n){return{$:2,m:n}}var zn,Sn=t(function(n,r){return{$:3,n:n,o:r}}),Fn=[],Jn=!1;function Mn(n,r,t){if(Fn.push({p:n,q:r,r:t}),!Jn){Jn=!0;for(var e;e=Fn.shift();)Wn(e.p,e.q,e.r);Jn=!1}}function Wn(n,r,t){var e={};for(var u in Hn(!0,r,e,null),Hn(!1,t,e,null),n)wn(n[u],{$:"fx",a:e[u]||{i:T,j:T}})}function Hn(n,r,t,e){switch(r.$){case 1:var u=r.k,a=function(n,t,e){function u(n){for(var r=e;r;r=r.t)n=r.s(n);return n}return f(n?Cn[t].e:Cn[t].f,u,r.l)}(n,u,e);return void(t[u]=function(n,r,t){return t=t||{i:T,j:T},n?t.i=C(r,t.i):t.j=C(r,t.j),t}(n,a,t[u]));case 2:for(var i=r.m;i.b;i=i.b)Hn(n,i.a,t,e);return;case 3:return void Hn(n,r.o,t,{s:r.n,t:e})}}var In="undefined"!=typeof document?document:{};function qn(n,r){n.appendChild(r)}function Un(n){return{$:0,a:n}}var Bn=t(function(n,r){return t(function(t,e){for(var u=[],a=0;e.b;e=e.b){var i=e.a;a+=i.b||0,u.push(i)}return a+=u.length,{$:1,c:r,d:Vn(t),e:u,f:n,b:a}})})(void 0);t(function(n,r){return t(function(t,e){for(var u=[],a=0;e.b;e=e.b){var i=e.a;a+=i.b.b||0,u.push(i)}return a+=u.length,{$:2,c:r,d:Vn(t),e:u,f:n,b:a}})})(void 0);var Pn,Qn=t(function(n,r){return{$:4,j:n,k:r,b:1+(r.b||0)}}),Xn=t(function(n,r){return{$:"a0",n:n,o:r}}),Gn=t(function(n,r){return{$:"a1",n:n,o:r}}),Kn=t(function(n,r){return{$:"a2",n:n,o:r}}),Yn=t(function(n,r){return{$:"a3",n:n,o:r}});function Vn(n){for(var r={};n.b;n=n.b){var t=n.a,e=t.$,u=t.n,a=t.o;if("a2"!==e){var i=r[e]||(r[e]={});"a3"===e&&"class"===u?Zn(i,u,a):i[u]=a}else"className"===u?Zn(r,u,$n(a)):r[u]=$n(a)}return r}function Zn(n,r,t){var e=n[r];n[r]=e?e+" "+t:t}function nr(n,r){var t=n.$;if(5===t)return nr(n.k||(n.k=n.m()),r);if(0===t)return In.createTextNode(n.a);if(4===t){for(var e=n.k,u=n.j;4===e.$;)"object"!=typeof u?u=[u,e.j]:u.push(e.j),e=e.k;var a={j:u,p:r};return(i=nr(e,a)).elm_event_node_ref=a,i}if(3===t)return rr(i=n.h(n.g),r,n.d),i;var i=n.f?In.createElementNS(n.f,n.c):In.createElement(n.c);zn&&"a"==n.c&&i.addEventListener("click",zn(i)),rr(i,r,n.d);for(var c=n.e,o=0;c.length>o;o++)qn(i,nr(1===t?c[o]:c[o].b,r));return i}function rr(n,r,t){for(var e in t){var u=t[e];"a1"===e?tr(n,u):"a0"===e?ar(n,r,u):"a3"===e?er(n,u):"a4"===e?ur(n,u):("value"!==e&&"checked"!==e||n[e]!==u)&&(n[e]=u)}}function tr(n,r){var t=n.style;for(var e in r)t[e]=r[e]}function er(n,r){for(var t in r){var e=r[t];void 0!==e?n.setAttribute(t,e):n.removeAttribute(t)}}function ur(n,r){for(var t in r){var e=r[t],u=e.f,a=e.o;void 0!==a?n.setAttributeNS(u,t,a):n.removeAttributeNS(u,t)}}function ar(n,r,t){var e=n.elmFs||(n.elmFs={});for(var u in t){var a=t[u],i=e[u];if(a){if(i){if(i.q.$===a.$){i.q=a;continue}n.removeEventListener(u,i)}i=ir(r,a),n.addEventListener(u,i,Pn&&{passive:2>Ft(a)}),e[u]=i}else n.removeEventListener(u,i),e[u]=void 0}}try{window.addEventListener("t",null,Object.defineProperty({},"passive",{get:function(){Pn=!0}}))}catch(n){}function ir(n,r){function t(r){var e=t.q,u=an(e.a,r);if(Lt(u)){for(var a,i=Ft(e),c=u.a,o=i?3>i?c.a:c.B:c,f=1==i?c.b:3==i&&c.aL,s=(f&&r.stopPropagation(),(2==i?c.b:3==i&&c.ay)&&r.preventDefault(),n);a=s.j;){if("function"==typeof a)o=a(o);else for(var b=a.length;b--;)o=a[b](o);s=s.p}s(o,f)}}return t.q=r,t}function cr(n,r){return n.$==r.$&&bn(n.a,r.a)}function or(n,r,t,e){var u={$:r,r:t,s:e,t:void 0,u:void 0};return n.push(u),u}function fr(n,r,t,e){if(n!==r){var u=n.$,a=r.$;if(u!==a){if(1!==u||2!==a)return void or(t,0,e,r);r=function(n){for(var r=n.e,t=r.length,e=[],u=0;t>u;u++)e[u]=r[u].b;return{$:1,c:n.c,d:n.d,e:e,f:n.f,b:n.b}}(r),a=1}switch(a){case 5:for(var i=n.l,c=r.l,o=i.length,f=o===c.length;f&&o--;)f=i[o]===c[o];if(f)return void(r.k=n.k);r.k=r.m();var s=[];return fr(n.k,r.k,s,0),void(s.length>0&&or(t,1,e,s));case 4:for(var b=n.j,v=r.j,d=!1,l=n.k;4===l.$;)d=!0,"object"!=typeof b?b=[b,l.j]:b.push(l.j),l=l.k;for(var $=r.k;4===$.$;)d=!0,"object"!=typeof v?v=[v,$.j]:v.push($.j),$=$.k;return d&&b.length!==v.length?void or(t,0,e,r):((d?function(n,r){for(var t=0;n.length>t;t++)if(n[t]!==r[t])return!1;return!0}(b,v):b===v)||or(t,2,e,v),void fr(l,$,t,e+1));case 0:return void(n.a!==r.a&&or(t,3,e,r.a));case 1:return void sr(n,r,t,e,vr);case 2:return void sr(n,r,t,e,dr);case 3:if(n.h!==r.h)return void or(t,0,e,r);var h=br(n.d,r.d);h&&or(t,4,e,h);var p=r.i(n.g,r.g);return void(p&&or(t,5,e,p))}}}function sr(n,r,t,e,u){if(n.c===r.c&&n.f===r.f){var a=br(n.d,r.d);a&&or(t,4,e,a),u(n,r,t,e)}else or(t,0,e,r)}function br(n,r,t){var e;for(var u in n)if("a1"!==u&&"a0"!==u&&"a3"!==u&&"a4"!==u)if(u in r){var a=n[u],i=r[u];a===i&&"value"!==u&&"checked"!==u||"a0"===t&&cr(a,i)||((e=e||{})[u]=i)}else(e=e||{})[u]=t?"a1"===t?"":"a0"===t||"a3"===t?void 0:{f:n[u].f,o:void 0}:"string"==typeof n[u]?"":null;else{var c=br(n[u],r[u]||{},u);c&&((e=e||{})[u]=c)}for(var o in r)o in n||((e=e||{})[o]=r[o]);return e}function vr(n,r,t,e){var u=n.e,a=r.e,i=u.length,c=a.length;i>c?or(t,6,e,{v:c,i:i-c}):c>i&&or(t,7,e,{v:i,e:a});for(var o=c>i?i:c,f=0;o>f;f++){var s=u[f];fr(s,a[f],t,++e),e+=s.b||0}}function dr(n,r,t,e){for(var u=[],a={},i=[],c=n.e,o=r.e,f=c.length,s=o.length,b=0,v=0,d=e;f>b&&s>v;){var l=(O=c[b]).a,$=(T=o[v]).a,h=O.b,p=T.b,g=void 0,m=void 0;if(l!==$){var _=c[b+1],y=o[v+1];if(_){var w=_.a,k=_.b;m=$===w}if(y){var E=y.a,A=y.b;g=l===E}if(g&&m)fr(h,A,u,++d),$r(a,u,l,p,v,i),d+=h.b||0,hr(a,u,l,k,++d),d+=k.b||0,b+=2,v+=2;else if(g)d++,$r(a,u,$,p,v,i),fr(h,A,u,d),d+=h.b||0,b+=1,v+=2;else if(m)hr(a,u,l,h,++d),d+=h.b||0,fr(k,p,u,++d),d+=k.b||0,b+=2,v+=1;else{if(!_||w!==E)break;hr(a,u,l,h,++d),$r(a,u,$,p,v,i),d+=h.b||0,fr(k,A,u,++d),d+=k.b||0,b+=2,v+=2}}else fr(h,p,u,++d),d+=h.b||0,b++,v++}for(;f>b;){var O;hr(a,u,(O=c[b]).a,h=O.b,++d),d+=h.b||0,b++}for(;s>v;){var T,C=C||[];$r(a,u,(T=o[v]).a,T.b,void 0,C),v++}(u.length>0||i.length>0||C)&&or(t,8,e,{w:u,x:i,y:C})}var lr="_elmW6BL";function $r(n,r,t,e,u,a){var i=n[t];if(!i)return a.push({r:u,A:i={c:0,z:e,r:u,s:void 0}}),void(n[t]=i);if(1===i.c){a.push({r:u,A:i}),i.c=2;var c=[];return fr(i.z,e,c,i.r),i.r=u,void(i.s.s={w:c,A:i})}$r(n,r,t+lr,e,u,a)}function hr(n,r,t,e,u){var a=n[t];if(a){if(0===a.c){a.c=2;var i=[];return fr(e,a.z,i,u),void or(r,9,u,{w:i,A:a})}hr(n,r,t+lr,e,u)}else{var c=or(r,9,u,void 0);n[t]={c:1,z:e,r:u,s:c}}}function pr(n,r,t,e){return 0===t.length?n:(function n(r,t,e,u){!function r(t,e,u,a,i,c,o){for(var f=u[a],s=f.r;s===i;){var b=f.$;if(1===b)n(t,e.k,f.s,o);else if(8===b)f.t=t,f.u=o,(v=f.s.w).length>0&&r(t,e,v,0,i,c,o);else if(9===b){f.t=t,f.u=o;var v,d=f.s;d&&(d.A.s=t,(v=d.w).length>0&&r(t,e,v,0,i,c,o))}else f.t=t,f.u=o;if(!(f=u[++a])||(s=f.r)>c)return a}var l=e.$;if(4===l){for(var $=e.k;4===$.$;)$=$.k;return r(t,$,u,a,i+1,c,t.elm_event_node_ref)}for(var h=e.e,p=t.childNodes,g=0;h.length>g;g++){var m=1===l?h[g]:h[g].b,_=++i+(m.b||0);if(!(i>s||s>_||(f=u[a=r(p[g],m,u,a,i,_,o)])&&(s=f.r)<=c))return a;i=_}return a}(r,t,e,0,0,t.b,u)}(n,r,t,e),gr(n,t))}function gr(n,r){for(var t=0;r.length>t;t++){var e=r[t],u=e.t,a=mr(u,e);u===n&&(n=a)}return n}function mr(n,r){switch(r.$){case 0:return function(n){var t=n.parentNode,e=nr(r.s,r.u);return e.elm_event_node_ref||(e.elm_event_node_ref=n.elm_event_node_ref),t&&e!==n&&t.replaceChild(e,n),e}(n);case 4:return rr(n,r.u,r.s),n;case 3:return n.replaceData(0,n.length,r.s),n;case 1:return gr(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,e=0;t.i>e;e++)n.removeChild(n.childNodes[t.v]);return n;case 7:for(var u=(t=r.s).e,a=n.childNodes[e=t.v];u.length>e;e++)n.insertBefore(nr(u[e],r.u),a);return n;case 9:if(!(t=r.s))return n.parentNode.removeChild(n),n;var i=t.A;return void 0!==i.r&&n.parentNode.removeChild(n),i.s=gr(n,t.w),n;case 8:return function(n,r){var t=r.s,e=function(n,r){if(n){for(var t=In.createDocumentFragment(),e=0;n.length>e;e++){var u=n[e].A;qn(t,2===u.c?u.s:nr(u.z,r.u))}return t}}(t.y,r);n=gr(n,t.w);for(var u=t.x,a=0;u.length>a;a++){var i=u[a],c=i.A,o=2===c.c?c.s:nr(c.z,r.u);n.insertBefore(o,n.childNodes[i.r])}return e&&qn(n,e),n}(n,r);case 5:return r.s(n);default:p(10)}}var _r=u(function(n,r,t,e){return function(n,r,t,e,u,a){var i=f(un,n,ln(r?r.flags:void 0));Lt(i)||p(2);var c={},o=t(i.a),s=o.a,b=a(d,s),v=function(n,r){var t;for(var e in Cn){var u=Cn[e];u.a&&((t=t||{})[e]=u.a(e,r)),n[e]=jn(u,r)}return t}(c,d);function d(n,r){var t=f(e,n,s);b(s=t.a,r),Mn(c,t.b,u(s))}return Mn(c,o.b,u(s)),v?{ports:v}:{}}(r,e,n.ci,n.cX,n.cM,function(r,t){var e=n.aD&&n.aD(r),u=n.cY,a=In.title,i=In.body,c=function n(r){if(3===r.nodeType)return Un(r.textContent);if(1!==r.nodeType)return Un("");for(var t=T,e=r.attributes,u=e.length;u--;){var a=e[u];t=C(f(Yn,a.name,a.value),t)}var i=r.tagName.toLowerCase(),c=T,o=r.childNodes;for(u=o.length;u--;)c=C(n(o[u]),c);return s(Bn,i,t,c)}(i);return function(n,r){r(n);var t=0;function e(){t=1===t?0:(yr(e),r(n),1)}return function(u,a){n=u,a?(r(n),2===t&&(t=1)):(0===t&&yr(e),t=2)}}(t,function(n){zn=e;var t=u(n),o=Bn("body")(T)(t.aT),f=function(n,r){var t=[];return fr(n,r,t,0),t}(c,o);i=pr(i,c,f,r),c=o,zn=0,a!==t.bN&&(In.title=a=t.bN)})})}),yr=("undefined"!=typeof cancelAnimationFrame&&cancelAnimationFrame,"undefined"!=typeof requestAnimationFrame?requestAnimationFrame:function(n){return setTimeout(n,1e3/60)});function wr(){return Zt(In.location.href).a||p(1)}var kr=t(function(n,r){return f(pe,ne,pn(function(){history.pushState({},"",r),n()}))}),Er=("undefined"!=typeof document&&document,"undefined"!=typeof window?window:{addEventListener:function(){},removeEventListener:function(){}}),Ar=a(function(n,r,t,e,u){for(var a=n.length,i=u.length>=r+a,c=0;i&&a>c;){var o=u.charCodeAt(r);i=n[c++]===u[r++]&&(10===o?(t++,e=1):(e++,55296==(63488&o)?n[c++]===u[r++]:1))}return k(i?r:-1,t,e)}),Or=e(function(n,r,t){return t.length>r?55296==(63488&t.charCodeAt(r))?n(E(t.substr(r,2)))?r+2:-1:n(E(t[r]))?"\n"===t[r]?-2:r+1:-1:-1}),Tr=e(function(n,r,t){return pn(function(e){function u(n){e(r(t.am.a(n)))}var a=new XMLHttpRequest;a.addEventListener("error",function(){u(xa)}),a.addEventListener("timeout",function(){u(Da)}),a.addEventListener("load",function(){u(function(n,r){return f(r.status>=200&&300>r.status?ja:Ca,function(n){return{aO:n.responseURL,cK:n.status,cL:n.statusText,a5:Cr(n.getAllResponseHeaders())}}(r),n(r.response))}(t.am.b,a))}),za(t.bO)&&function(n,r,t){r.upload.addEventListener("progress",function(e){r.c||_n(f(Sa,n,w(t,Ra({cJ:e.loaded,bG:e.total}))))}),r.addEventListener("progress",function(e){r.c||_n(f(Sa,n,w(t,La({cF:e.loaded,bG:e.lengthComputable?Ur(e.total):Br}))))})}(n,a,t.bO.a);try{a.open(t.cm,t.aO,!0)}catch(n){return u(Na(t.aO))}return function(n,r){for(var t=r.a5;t.b;t=t.b)n.setRequestHeader(t.a.a,t.a.b);n.timeout=r.cP.a||0,n.responseType=r.am.d,n.withCredentials=r.bX}(a,t),t.aT.a&&a.setRequestHeader("Content-Type",t.aT.a),a.send(t.aT.b),function(){a.c=!0,a.abort()}})});function Cr(n){if(!n)return Pe;for(var r=Pe,t=n.split("\r\n"),e=t.length;e--;){var u=t[e],a=u.indexOf(": ");if(a>0){var i=u.substring(0,a),c=u.substring(a+2);r=s(Ue,i,function(n){return Ur(za(n)?c+", "+n.a:c)},r)}}return r}var Nr=e(function(n,r,t){return{$:0,d:n,b:r,a:t}}),jr=t(function(n,r){return{$:0,d:r.d,b:r.b,a:function(t){return n(r.a(t))}}}),xr=N,Lr=e(function(n,r,t){for(;;){if(-2===t.$)return r;var e=t.d,u=n,a=s(n,t.b,t.c,s(Lr,n,r,t.e));n=u,r=a,t=e}}),Rr=function(n){return s(Lr,e(function(n,r,t){return f(xr,w(n,r),t)}),T,n)},Dr=1,zr=2,Sr=0,Fr=function(n){return{$:1,a:n}},Jr=t(function(n,r){return{$:3,a:n,b:r}}),Mr=t(function(n,r){return{$:0,a:n,b:r}}),Wr=t(function(n,r){return{$:1,a:n,b:r}}),Hr=function(n){return{$:0,a:n}},Ir=function(n){return{$:2,a:n}},qr=L,Ur=function(n){return{$:0,a:n}},Br={$:1},Pr=I,Qr=dn,Xr=P,Gr=t(function(n,r){return f(W,n,function(n){for(var r=[];n.b;n=n.b)r.push(n.a);return r}(r))}),Kr=t(function(n,r){return j(f(M,n,r))}),Yr=function(n){return f(Gr,"\n ",f(Kr,"\n",n))},Vr=e(function(n,r,t){for(;;){if(!t.b)return r;var e=t.b,u=n,a=f(n,t.a,r);n=u,r=a,t=e}}),Zr=function(n){return s(Vr,t(function(n,r){return r+1}),0,n)},nt=x,rt=e(function(n,r,t){for(;;){if(_(n,r)>=1)return t;var e=n,u=r-1,a=f(xr,r,t);n=e,r=u,t=a}}),tt=t(function(n,r){return s(rt,n,r,T)}),et=t(function(n,r){return s(nt,n,f(tt,0,Zr(r)-1),r)}),ut=function(n){var r=n.charCodeAt(0);return 55296>r||r>56319?r:1024*(r-55296)+n.charCodeAt(1)-56320+65536},at=function(n){var r=ut(n);return r>=97&&122>=r},it=function(n){var r=ut(n);return 90>=r&&r>=65},ct=function(n){return at(n)||it(n)},ot=function(n){var r=ut(n);return 57>=r&&r>=48},ft=function(n){return at(n)||it(n)||ot(n)},st=function(n){return s(Vr,xr,T,n)},bt=t(function(n,r){return"\n\n("+Xr(n+1)+") "+Yr(vt(r))}),vt=function(n){return f(dt,n,T)},dt=t(function(n,r){n:for(;;)switch(n.$){case 0:var t=n.a,e=n.b,u=function(){var n,r,e=(r=(n=t).charCodeAt(0),isNaN(r)?Br:Ur(55296>r||r>56319?w(E(n[0]),n.slice(1)):w(E(n[0]+n[1]),n.slice(2))));if(1===e.$)return!1;var u=e.a,a=u.b;return ct(u.a)&&f(Pr,ft,a)}();n=e,r=f(xr,u?"."+t:"['"+t+"']",r);continue n;case 1:e=n.b;var a="["+Xr(n.a)+"]";n=e,r=f(xr,a,r);continue n;case 2:var i=n.a;if(i.b){if(i.b.b){var c=(r.b?"The Json.Decode.oneOf at json"+f(Gr,"",st(r)):"Json.Decode.oneOf")+" failed in the following "+Xr(Zr(i))+" ways:";return f(Gr,"\n\n",f(xr,c,f(et,bt,i)))}n=e=i.a,r=r;continue n}return"Ran into a Json.Decode.oneOf with no possibilities"+(r.b?" at json"+f(Gr,"",st(r)):"!");default:var o=n.a,s=n.b;return(c=r.b?"Problem with the value at json"+f(Gr,"",st(r))+":\n\n ":"Problem with the given value:\n\n")+Yr(f(Qr,4,s))+"\n\n"+o}}),lt=u(function(n,r,t,e){return{$:0,a:n,b:r,c:t,d:e}}),$t=[],ht=D,pt=t(function(n,r){return F(r)/F(n)}),gt=ht(f(pt,2,32)),mt=b(lt,0,gt,$t,$t),_t=$,yt=t(function(n,r){return n(r)}),wt=t(function(n,r){return r(n)}),kt=z,Et=function(n){return n.length},At=t(function(n,r){return _(n,r)>0?n:r}),Ot=h,Tt=t(function(n,r){for(;;){var t=f(Ot,32,n),e=t.b,u=f(xr,{$:0,a:t.a},r);if(!e.b)return st(u);n=e,r=u}}),Ct=t(function(n,r){for(;;){var t=ht(r/32);if(1===t)return f(Ot,32,n).a;n=f(Tt,n,T),r=t}}),Nt=t(function(n,r){if(r.f){var t=32*r.f,e=kt(f(pt,32,t-1)),u=n?st(r.i):r.i,a=f(Ct,u,r.f);return b(lt,Et(r.h)+t,f(At,5,e*gt),a,r.h)}return b(lt,Et(r.h),gt,$t,r.h)}),jt=a(function(n,r,t,e,u){for(;;){if(0>r)return f(Nt,!1,{i:e,f:t/32|0,h:u});var a={$:1,a:s(_t,32,r,n)};n=n,r-=32,t=t,e=f(xr,a,e),u=u}}),xt=t(function(n,r){if(n>0){var t=n%32;return v(jt,r,n-t-32,n,T,s(_t,t,n-t,r))}return mt}),Lt=function(n){return!n.$},Rt=nn,Dt=rn,zt=tn,St=function(n){return{$:0,a:n}},Ft=function(n){switch(n.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},Jt=function(n){return n},Mt=i(function(n,r,t,e,u,a){return{a2:a,a8:r,ag:e,bo:t,bt:n,bu:u}}),Wt=q,Ht=function(n){return n.length},It=H,qt=t(function(n,r){return 1>n?r:s(It,n,Ht(r),r)}),Ut=B,Bt=function(n){return""===n},Pt=t(function(n,r){return 1>n?"":s(It,0,n,r)}),Qt=function(n){for(var r=0,t=n.charCodeAt(0),e=43==t||45==t?1:0,u=e;n.length>u;++u){var a=n.charCodeAt(u);if(48>a||a>57)return Br;r=10*r+a-48}return u==e?Br:Ur(45==t?-r:r)},Xt=a(function(n,r,t,e,u){if(Bt(u)||f(Wt,"@",u))return Br;var a=f(Ut,":",u);if(a.b){if(a.b.b)return Br;var i=a.a,c=Qt(f(qt,i+1,u));if(1===c.$)return Br;var o=c;return Ur(d(Mt,n,f(Pt,i,u),o,r,t,e))}return Ur(d(Mt,n,u,Br,r,t,e))}),Gt=u(function(n,r,t,e){if(Bt(e))return Br;var u=f(Ut,"/",e);if(u.b){var a=u.a;return v(Xt,n,f(qt,a,e),r,t,f(Pt,a,e))}return v(Xt,n,"/",r,t,e)}),Kt=e(function(n,r,t){if(Bt(t))return Br;var e=f(Ut,"?",t);if(e.b){var u=e.a;return b(Gt,n,Ur(f(qt,u+1,t)),r,f(Pt,u,t))}return b(Gt,n,Br,r,t)}),Yt=t(function(n,r){if(Bt(r))return Br;var t=f(Ut,"#",r);if(t.b){var e=t.a;return s(Kt,n,Ur(f(qt,e+1,r)),f(Pt,e,r))}return s(Kt,n,Br,r)}),Vt=U,Zt=function(n){return f(Vt,"http://",n)?f(Yt,0,f(qt,7,n)):f(Vt,"https://",n)?f(Yt,1,f(qt,8,n)):Br},ne=function(n){for(;;)n=n},re=hn,te=re(0),ee=u(function(n,r,t,e){if(e.b){var u=e.a,a=e.b;if(a.b){var i=a.a,c=a.b;if(c.b){var o=c.a,v=c.b;if(v.b){var d=v.b;return f(n,u,f(n,i,f(n,o,f(n,v.a,t>500?s(Vr,n,r,st(d)):b(ee,n,r,t+1,d)))))}return f(n,u,f(n,i,f(n,o,r)))}return f(n,u,f(n,i,r))}return f(n,u,r)}return r}),ue=e(function(n,r,t){return b(ee,n,r,0,t)}),ae=t(function(n,r){return s(ue,t(function(r,t){return f(xr,n(r),t)}),T,r)}),ie=gn,ce=t(function(n,r){return f(ie,function(r){return re(n(r))},r)}),oe=e(function(n,r,t){return f(ie,function(r){return f(ie,function(t){return re(f(n,r,t))},t)},r)}),fe=function(n){return s(ue,oe(xr),re(T),n)},se=xn,be=t(function(n,r){var t=r;return yn(f(ie,se(n),t))});Cn.Task=Nn(te,e(function(n,r){return f(ce,function(){return 0},fe(f(ae,be(n),r)))}),e(function(){return re(0)}),t(function(n,r){return f(ce,n,r)}));var ve,de,le,$e,he=Rn("Task"),pe=t(function(n,r){return he(f(ce,n,r))}),ge={$:0},me=e(function(n,r,t){return{aQ:r,az:t,aC:n}}),_e=u(function(n,r,t,e){return 1===r.$?Br:1===t.$?Br:1===e.$?Br:Ur(s(n,r.a,t.a,e.a))}),ye={L:""},we=function(n){return{$:3,a:n}},ke=function(n){return{$:4,a:n}},Ee=function(n){return{$:1,a:n}},Ae=function(n){return{$:2,a:n}},Oe=a(function(n,r,t,e,u){return{E:e,F:t,D:r,z:u,H:n}}),Te=function(n){return n.b&&(""!==n.a||n.b.b)?f(xr,n.a,Te(n.b)):T},Ce=t(function(n,r){return Ur(1===r.$?j([n]):f(xr,n,r.a))}),Ne=function(n){try{return Ur(decodeURIComponent(n))}catch(n){return Br}},je=y,xe=t(function(n,r){n:for(;;){if(-2===r.$)return Br;var t=r.c,e=r.d,u=r.e;switch(f(je,n,r.b)){case 0:n=n,r=e;continue n;case 1:return Ur(t);default:n=n,r=u;continue n}}}),Le=a(function(n,r,t,e,u){return{$:-1,a:n,b:r,c:t,d:e,e:u}}),Re={$:-2},De=a(function(n,r,t,e,u){if(-1!==u.$||u.a){if(-1!==e.$||e.a||-1!==e.d.$||e.d.a)return v(Le,n,r,t,e,u);var a=e.d;return i=e.e,v(Le,0,e.b,e.c,v(Le,1,a.b,a.c,a.d,a.e),v(Le,1,r,t,i,u))}var i,c=u.b,o=u.c,f=u.d,s=u.e;return-1!==e.$||e.a?v(Le,n,c,o,v(Le,0,r,t,e,f),s):v(Le,0,r,t,v(Le,1,e.b,e.c,e.d,i=e.e),v(Le,1,c,o,f,s))}),ze=e(function(n,r,t){if(-2===t.$)return v(Le,0,n,r,Re,Re);var e=t.a,u=t.b,a=t.c,i=t.d,c=t.e;switch(f(je,n,u)){case 0:return v(De,e,u,a,s(ze,n,r,i),c);case 1:return v(Le,e,u,r,i,c);default:return v(De,e,u,a,i,s(ze,n,r,c))}}),Se=e(function(n,r,t){var e=s(ze,n,r,t);return-1!==e.$||e.a?e:v(Le,1,e.b,e.c,e.d,e.e)}),Fe=function(n){if(-1===n.$&&-1===n.d.$&&-1===n.e.$){if(-1!==n.e.d.$||n.e.d.a){var r=n.d,t=n.e;return i=t.b,c=t.c,e=t.d,s=t.e,v(Le,1,n.b,n.c,v(Le,0,r.b,r.c,r.d,r.e),v(Le,0,i,c,e,s))}var e,u=n.d,a=n.e,i=a.b,c=a.c,o=(e=a.d).d,f=e.e,s=a.e;return v(Le,0,e.b,e.c,v(Le,1,n.b,n.c,v(Le,0,u.b,u.c,u.d,u.e),o),v(Le,1,i,c,f,s))}return n},Je=function(n){if(-1===n.$&&-1===n.d.$&&-1===n.e.$){if(-1!==n.d.d.$||n.d.d.a){var r=n.d,t=n.e;return f=t.b,s=t.c,b=t.d,d=t.e,v(Le,1,e=n.b,u=n.c,v(Le,0,r.b,r.c,r.d,c=r.e),v(Le,0,f,s,b,d))}var e=n.b,u=n.c,a=n.d,i=a.d,c=a.e,o=n.e,f=o.b,s=o.c,b=o.d,d=o.e;return v(Le,0,a.b,a.c,v(Le,1,i.b,i.c,i.d,i.e),v(Le,1,e,u,c,v(Le,0,f,s,b,d)))}return n},Me=c(function(n,r,t,e,u,a,i){if(-1!==a.$||a.a){n:for(;;){if(-1===i.$&&1===i.a){if(-1===i.d.$){if(1===i.d.a)return Je(r);break n}return Je(r)}break n}return r}return v(Le,t,a.b,a.c,a.d,v(Le,0,e,u,a.e,i))}),We=function(n){if(-1===n.$&&-1===n.d.$){var r=n.a,t=n.b,e=n.c,u=n.d,a=u.d,i=n.e;if(1===u.a){if(-1!==a.$||a.a){var c=Fe(n);if(-1===c.$){var o=c.e;return v(De,c.a,c.b,c.c,We(c.d),o)}return Re}return v(Le,r,t,e,We(u),i)}return v(Le,r,t,e,We(u),i)}return Re},He=t(function(n,r){if(-2===r.$)return Re;var t=r.a,e=r.b,u=r.c,a=r.d,i=r.e;if(0>_(n,e)){if(-1===a.$&&1===a.a){var c=a.d;if(-1!==c.$||c.a){var o=Fe(r);if(-1===o.$){var s=o.e;return v(De,o.a,o.b,o.c,f(He,n,o.d),s)}return Re}return v(Le,t,e,u,f(He,n,a),i)}return v(Le,t,e,u,f(He,n,a),i)}return f(Ie,n,l(Me,n,r,t,e,u,a,i))}),Ie=t(function(n,r){if(-1===r.$){var t=r.a,e=r.b,u=r.c,a=r.d,i=r.e;if(g(n,e)){var c=function(n){for(;;){if(-1!==n.$||-1!==n.d.$)return n;n=n.d}}(i);return-1===c.$?v(De,t,c.b,c.c,a,We(i)):Re}return v(De,t,e,u,a,f(He,n,i))}return Re}),qe=t(function(n,r){var t=f(He,n,r);return-1!==t.$||t.a?t:v(Le,1,t.b,t.c,t.d,t.e)}),Ue=e(function(n,r,t){var e=r(f(xe,n,t));return e.$?f(qe,n,t):s(Se,n,e.a,t)}),Be=t(function(n,r){var t=f(Kr,"=",n);if(t.b&&t.b.b&&!t.b.b.b){var e=t.b.a,u=Ne(t.a);if(1===u.$)return r;var a=u.a,i=Ne(e);return 1===i.$?r:s(Ue,a,Ce(i.a),r)}return r}),Pe=Re,Qe=t(function(n,r){var t;return function(n){n:for(;;){if(n.b){var r=n.a,t=r.D;if(t.b){if(""!==t.a||t.b.b){n=n.b;continue n}return Ur(r.z)}return Ur(r.z)}return Br}}(n(v(Oe,T,function(){var n=f(Kr,"/",r.ag);return Te(n.b&&""===n.a?n.b:n)}(),1===(t=r.bu).$?Pe:s(ue,Be,Pe,f(Kr,"&",t.a)),r.a2,Jt)))}),Xe=function(n){return{$:0,a:n}},Ge=function(n){return{$:1,a:n}},Ke=t(function(n,r){return v(Oe,r.H,r.D,r.F,r.E,n(r.z))}),Ye=t(function(n,r){var t=r;return function(r){var e=r.H,u=r.D,a=r.F,i=r.E;return f(ae,Ke(r.z),t(v(Oe,e,u,a,i,n)))}}),Ve=t(function(n,r){return r.b?s(ue,xr,r,n):n}),Ze=t(function(n,r){return s(ue,Ve,T,f(ae,n,r))}),nu=function(n){return function(r){var t=r.H,e=r.D,u=r.F,a=r.E,i=r.z;if(e.b){var c=e.a,o=e.b;return g(c,n)?j([v(Oe,f(xr,c,t),o,u,a,i)]):T}return T}},ru=t(function(n,r){var t=n,e=r;return function(n){return f(Ze,e,t(n))}}),tu=f(t(function(n,r){return function(n){var t=n.H,e=n.D,u=n.F,a=n.E,i=n.z;if(e.b){var c=e.a,o=e.b,s=r(c);if(s.$)return T;var b=s.a;return j([v(Oe,f(xr,c,t),o,u,a,i(b))])}return T}}),"STRING",Ur),eu=function(n){return j([n])},uu=(ve=j([f(Ye,Xe("all"),eu),f(Ye,Xe,f(ru,nu("streams"),tu)),f(Ye,Ge,f(ru,nu("events"),tu))]),function(n){return f(Ze,function(r){return r(n)},ve)}),au=t(function(n,r){return A(r,{ag:f(qt,Ht(n.ag),r.ag)})}),iu=t(function(n,r){return f(Qe,uu,f(au,n,r))}),cu=function(n){return{$:2,a:n}},ou=o(function(n,r,t,e,u,a,i,c,o){return{b_:i,b3:a,b4:t,b8:r,b9:n,cC:o,cD:e,cE:u,cW:c}}),fu=function(n){return{$:1,a:n}},su=Y,bu=t(function(n,r){return{$:1,a:n,b:r}}),vu=e(function(n,r,t){return{$:0,a:n,b:r,c:t}}),du=t(function(n,r){var t=r;return function(r){var e=t(r);if(1===e.$)return f(bu,e.a,e.b);var u=e.a,a=e.c,i=n(e.b)(a);if(1===i.$){var c=i.a;return f(bu,u||c,i.b)}return c=i.a,s(vu,u||c,i.b,i.c)}}),lu=t(function(n,r){return{$:1,a:n,b:r}}),$u=u(function(n,r,t,e){return{aW:r,b2:e,bq:t,bA:n}}),hu={$:0},pu=t(function(n,r){return f(lu,hu,b($u,n.bA,n.aW,r,n.c))}),gu=(de={$:10},function(n){return g(Ht(n.a),n.b)?s(vu,!1,0,n):f(bu,!1,f(pu,n,de))}),mu=Or,_u=a(function(n,r,t,e,u){for(;;){var a=s(mu,n,r,u.a);if(g(a,-1))return s(vu,0>_(u.b,r),0,{aW:e,c:u.c,d:u.d,b:r,bA:t,a:u.a});g(a,-2)?(n=n,r+=1,t+=1,e=1,u=u):(n=n,r=a,t=t,e+=1,u=u)}}),yu=t(function(n){return n}),wu=t(function(n,r){var t=r;return function(r){var e=t(r);if(1===e.$)return f(bu,e.a,e.b);var u=e.b,a=e.c;return s(vu,e.a,f(n,s(It,r.b,a.b,r.a),u),a)}}),ku=function(n){return f(wu,yu,n)},Eu=function(n){return r={$:12,a:n},function(n){return f(bu,!1,f(pu,n,r))};var r},Au=S,Ou=function(n){return function(r){return s(vu,!1,n,r)}},Tu=f(du,function(n){if(Ht(n)>9)return Eu("Expected at most 9 digits, but got "+Xr(Ht(n)));var r=function(n){if(0===n.length||/[\sxbo]/.test(n))return Br;var r=+n;return r==r?Ur(r):Br}("0."+n);return r.$?Eu('Invalid float: "'+n+'"'):Ou(Au(1e3*r.a))},ku(($e=ot,function(n){return v(_u,$e,n.b,n.bA,n.aW,n)}))),Cu=Jt,Nu=i(function(n,r,t,e,u,a){return Cu(n+60*r*60*1e3+60*(t-a)*1e3+1e3*e+u)}),ju=e(function(n,r,t){var e=r,u=t;return function(r){var t=e(r);if(1===t.$)return f(bu,t.a,t.b);var a=t.a,i=t.b,c=u(t.c);if(1===c.$){var o=c.a;return f(bu,a||o,c.b)}o=c.a;var b=c.c;return s(vu,a||o,f(n,i,c.b),b)}}),xu=t(function(n,r){return s(ju,yu,n,r)}),Lu=t(function(n,r){return s(ju,yt,n,r)}),Ru=t(function(n,r){return{$:2,a:n,b:r}}),Du=e(function(n,r,t){n:for(;;){if(t.b){var e=t.b,u=(0,t.a)(n);if(u.$){var a;if((a=u).a)return a;n=n,r=f(Ru,r,a.b),t=e;continue n}return u}return f(bu,!1,r)}}),zu=function(n){return function(r){return s(Du,r,hu,n)}},Su=function(n){return{$:1,a:n}},Fu=J,Ju={$:11},Mu=t(function(n,r){return function(t){var e=s(mu,n,t.b,t.a);return g(e,-1)?f(bu,!1,f(pu,t,r)):g(e,-2)?s(vu,!0,0,{aW:1,c:t.c,d:t.d,b:t.b+1,bA:t.bA+1,a:t.a}):s(vu,!0,0,{aW:t.aW+1,c:t.c,d:t.d,b:e,bA:t.bA,a:t.a})}}),Wu=u(function(n,r,t,e){for(;;){var u=t(r)(e);if(u.$)return a=u.a,f(bu,n||a,u.b);var a=u.a,i=u.b,c=u.c;if(i.$)return s(vu,n||a,i.a,c);n=n||a,r=i.a,t=t,e=c}}),Hu=t(function(n,r){return function(t){return b(Wu,!1,n,r,t)}}),Iu=t(function(n,r){var t=r;return function(r){var e=t(r);if(e.$)return f(bu,e.a,e.b);var u=e.c;return s(vu,e.a,n(e.b),u)}}),qu=function(n){return n.$?{$:1,a:n.a}:{$:0,a:n.a}},Uu=t(function(n,r){return f(Hu,n,function(n){return f(Iu,qu,r(n))})}),Bu=function(n){return f(Uu,"",function(r){if(g(Ht(r),n)){var t=Qt(r);return t.$?Eu('Invalid integer: "'+r+'"'):f(Iu,Su,Ou(t.a))}return f(Iu,function(n){return{$:0,a:f(Fu,r,n)}},ku(f(Mu,ot,Ju)))})},Pu=t(function(n,r){return{$:0,a:n,b:r}}),Qu=Ar,Xu=function(n){return function(n){var r=n.a,t=n.b,e=!Bt(r);return function(n){var u=v(Qu,r,n.b,n.bA,n.aW,n.a),a=u.a,i=u.b,c=u.c;return g(a,-1)?f(bu,!1,f(pu,n,t)):s(vu,e,0,{aW:c,c:n.c,d:n.d,b:a,bA:i,a:n.a})}}(f(Pu,n,{$:8,a:n}))},Gu=function(n){return Eu("Invalid day: "+Xr(n))},Ku=R,Yu=function(n){return!(f(Ku,4,n)||!f(Ku,100,n)&&f(Ku,400,n))},Vu=function(n){var r=n-1;return(r/4|0)-(r/100|0)+(r/400|0)},Zu=f(du,function(n){var r=n.a,t=n.b,e=n.c;if(0>e)return Gu(e);var u=function(n){var u=31536e6*(r-1970),a=864e5*((3>t||!Yu(r)?e-1:e)+(Vu(r)-Vu(1970)));return Ou(n+u+a)};switch(t){case 1:return e>31?Gu(e):u(0);case 2:return e>29||29===e&&!Yu(r)?Gu(e):u(26784e5);case 3:return e>31?Gu(e):u(50976e5);case 4:return e>30?Gu(e):u(7776e6);case 5:return e>31?Gu(e):u(10368e6);case 6:return e>30?Gu(e):u(130464e5);case 7:return e>31?Gu(e):u(156384e5);case 8:return e>31?Gu(e):u(183168e5);case 9:return e>30?Gu(e):u(209952e5);case 10:return e>31?Gu(e):u(235872e5);case 11:return e>30?Gu(e):u(262656e5);case 12:return e>31?Gu(e):u(288576e5);default:return Eu('Invalid month: "'+Xr(t)+'"')}},f(Lu,f(Lu,f(Lu,Ou(e(function(n,r,t){return k(n,r,t)})),Bu(4)),zu(j([f(Lu,f(xu,Ou(Jt),Xu("-")),Bu(2)),Bu(2)]))),zu(j([f(Lu,f(xu,Ou(Jt),Xu("-")),Bu(2)),Bu(2)])))),na=(le=e(function(n,r,t){return n*(60*r)+t}),f(Lu,Ou(Jt),zu(j([f(Iu,function(){return 0},Xu("Z")),f(Lu,f(Lu,f(Lu,Ou(le),zu(j([f(Iu,function(){return 1},Xu("+")),f(Iu,function(){return-1},Xu("-"))]))),Bu(2)),zu(j([f(Lu,f(xu,Ou(Jt),Xu(":")),Bu(2)),Bu(2),Ou(0)]))),f(xu,Ou(0),gu)])))),ra=f(du,function(n){return zu(j([f(Lu,f(Lu,f(Lu,f(Lu,f(Lu,f(xu,Ou(Nu(n)),Xu("T")),Bu(2)),zu(j([f(Lu,f(xu,Ou(Jt),Xu(":")),Bu(2)),Bu(2)]))),zu(j([f(Lu,f(xu,Ou(Jt),Xu(":")),Bu(2)),Bu(2)]))),zu(j([f(Lu,f(xu,Ou(Jt),Xu(".")),Tu),Ou(0)]))),f(xu,na,gu)),f(xu,Ou(d(Nu,n,0,0,0,0,0)),gu)]))},Zu),ta=e(function(n,r,t){return{aW:r,bq:t,bA:n}}),ea=function(n){return s(ta,n.bA,n.aW,n.bq)},ua=t(function(n,r){n:for(;;)switch(n.$){case 0:return r;case 1:var t=n.b;n=n.a,r=f(xr,t,r);continue n;default:var e=n.b;n=n.a,r=f(ua,e,r);continue n}}),aa=t(function(n,r){var t=n({aW:1,c:T,d:1,b:0,bA:1,a:r});return t.$?Fr(f(ua,t.b,T)):Hr(t.b)}),ia=t(function(n,r){var t=f(aa,n,r);return t.$?Fr(f(ae,ea,t.a)):Hr(t.a)}),ca=f(Rt,function(n){var r=function(n){return f(ia,ra,n)}(n);return 1===r.$?fu("TODO deadEndsToString"):St(r.a)},su),oa=function(n){return{$:11,g:n}},fa=function(n){return oa(j([f(Dt,Ur,n),St(Br)]))},sa=V,ba=t(function(n,r){return s(ue,sa,r,n)}),va=zt(wt),da=un,la=function(n){return{$:5,c:n}},$a=K,ha=e(function(n,r,t){return f(Rt,function(e){var u=f(da,n,e);if(u.$)return St(t);var a=u.a,i=f(da,oa(j([r,la(t)])),a);return i.$?fu(vt(i.a)):St(i.a)},$a)}),pa=u(function(n,r,t,e){return f(va,s(ha,f(ba,n,$a),r,t),e)}),ga=e(function(n,r,t){return f(va,f(ba,n,r),t)}),ma=b(pa,j(["attributes","parent_event_id"]),fa(su),Br,s(ga,j(["attributes","type_stream_name"]),su,b(pa,j(["attributes","causation_stream_name"]),fa(su),Br,b(pa,j(["attributes","correlation_stream_name"]),fa(su),Br,s(ga,j(["attributes","metadata"]),f(Dt,Qr(2),$a),s(ga,j(["attributes","data"]),f(Dt,Qr(2),$a),s(ga,j(["attributes","metadata","timestamp"]),ca,s(ga,j(["id"]),su,s(ga,j(["attributes","event_type"]),su,St(ou)))))))))),_a=f(sa,"data",ma),ya=function(n){return encodeURIComponent(n)},wa=t(function(n,r){return n+"/"+ya(r)}),ka=t(function(n,r){return 1===n.$?r:r+":"+Xr(n.a)}),Ea=e(function(n,r,t){return 1===r.$?t:O(t,O(n,r.a))}),Aa=function(n){return s(Ea,"#",n.a2,s(Ea,"?",n.bu,O(f(ka,n.bo,O(n.bt?"https://":"http://",n.a8)),n.ag)))},Oa=t(function(n,r){return f(wa,Aa(n.aQ)+"/events",r)}),Ta=en,Ca=t(function(n,r){return{$:3,a:n,b:r}}),Na=function(n){return{$:0,a:n}},ja=t(function(n,r){return{$:4,a:n,b:r}}),xa={$:2},La=function(n){return{$:1,a:n}},Ra=function(n){return{$:0,a:n}},Da={$:1},za=function(n){return!n.$},Sa=Ln,Fa=e(function(n,r,t){return r(n(t))}),Ja=t(function(n,r){return s(Nr,"",Jt,f(Fa,r,n))}),Ma=t(function(n,r){return r.$?Fr(n(r.a)):Hr(r.a)}),Wa=function(n){return{$:4,a:n}},Ha={$:2},Ia={$:1},qa=t(function(n,r){switch(r.$){case 0:return Fr({$:0,a:r.a});case 1:return Fr(Ia);case 2:return Fr(Ha);case 3:return Fr({$:3,a:r.a.cK});default:return f(Ma,Wa,n(r.b))}}),Ua=t(function(n,r){return f(Ja,n,qa(function(n){return f(Ma,vt,f(Ta,r,n))}))}),Ba={$:0},Pa=function(n){return{$:1,a:n}},Qa=t(function(n,r){return{bw:n,bL:r}}),Xa=re(f(Qa,Pe,T)),Ga=function(n){return pn(function(r){var t=n.f;2===t.$&&t.c&&t.c(),n.f=null,r(hn(0))})},Ka=yn,Ya=e(function(n,r,t){n:for(;;){if(r.b){var e=r.a,u=r.b;if(e.$){var a=e.a;return f(ie,function(r){var e=a.bO;return s(Ya,n,u,1===e.$?t:s(Se,e.a,r,t))},Ka(s(Tr,n,se(n),a)))}var i=e.a,c=f(xe,i,t);if(1===c.$){n=n,r=u,t=t;continue n}return f(ie,function(){return s(Ya,n,u,f(qe,i,t))},Ga(c.a))}return re(t)}}),Va=u(function(n,r,t,e){return f(ie,function(n){return re(f(Qa,n,t))},s(Ya,n,r,e.bw))}),Za=e(function(n,r,t){var e=n(r);return e.$?t:f(xr,e.a,t)}),ni=t(function(n,r){return s(ue,Za(n),T,r)}),ri=u(function(n,r,t,e){var u=e.b;return g(r,e.a)?Ur(f(se,n,u(t))):Br}),ti=e(function(n,r,t){return f(ie,function(){return re(t)},fe(f(ni,s(ri,n,r.a,r.b),t.bL)))}),ei=t(function(n,r){if(r.$){var t=r.a;return Pa({bX:t.bX,aT:t.aT,am:f(jr,n,t.am),a5:t.a5,cm:t.cm,cP:t.cP,bO:t.bO,aO:t.aO})}return{$:0,a:r.a}}),ui=t(function(n,r){return{$:0,a:n,b:r}});Cn.Http=Nn(Xa,Va,ti,ei,t(function(n,r){return f(ui,r.a,f(Fa,r.b,n))}));var ai=Rn("Http"),ii=(Rn("Http"),function(n){return function(n){return ai(Pa({bX:!1,aT:n.aT,am:n.am,a5:n.a5,cm:n.cm,cP:n.cP,bO:n.bO,aO:n.aO}))}({aT:Ba,am:n.am,a5:T,cm:"GET",cP:Br,bO:Br,aO:n.aO})}),ci=e(function(n,r,t){return ii({am:f(Ua,n,_a),aO:f(Oa,r,t)})}),oi=t(function(n,r){return s(ci,cu,n,r)}),fi=t(function(n,r){return f(oi,n,r)}),si=function(n){return{$:2,a:n}},bi=t(function(n,r){return{cb:n,cH:r}}),vi=function(n){return{$:3,b:n}},di=b(pa,j(["attributes","related_streams"]),fa(vi(su)),Br,s(ga,j(["relationships","events","links","self"]),su,St(bi))),li=f(sa,"data",di),$i=t(function(n,r){return f(wa,Aa(n.aQ)+"/streams",r)}),hi=e(function(n,r,t){return ii({am:f(Ua,n,li),aO:f($i,r,t)})}),pi=t(function(n,r){return s(hi,si,n,r)}),gi={$:0},mi=t(function(n,r){return{J:gi,u:gi,b8:r,ao:n}}),_i=t(function(n,r){return{ca:n,cl:r}}),yi=f(_i,T,{a0:Br,bg:Br,bk:Br,bp:Br}),wi=t(function(n,r){return{ca:yi,ao:n,cH:Br,ai:r}}),ki=Sn,Ei=Dn(T),Ai=t(function(n,r){var t=n.ao;if(1===t.$)return w(n,Ei);var e=t.a,u=f(iu,e.aC,r);if(u.$)return w(A(n,{x:ge}),Ei);if(u.a.$){var a=Ne(u.a.a);if(a.$)return w(A(n,{x:ge}),Ei);var i=a.a;return w(A(n,{x:Ee(f(mi,e,i))}),f(ki,we,f(fi,e,i)))}var c=Ne(u.a.a);if(c.$)return w(A(n,{x:ge}),Ei);var o=c.a;return w(A(n,{x:Ae(f(wi,e,o))}),f(ki,ke,f(pi,e,o)))}),Oi=e(function(n,r,t){var e,u,a,i={ao:(e=n,u=e.aQ,a=e.az,b(_e,me,Zt(e.aC),Zt(u),Ur(a))),ck:t,U:ye,x:ge};return f(Ai,i,r)}),Ti=Dn(T),Ci=function(n){return{$:2,a:n}},Ni=function(n){return f(pe,ne,pn(function(){try{Er.location=n}catch(n){In.location.reload(!1)}}))},ji=kr,xi=function(n){return n.a+"="+n.b},Li=t(function(n,r){return"/"+(f(Gr,"/",n)+function(n){return n.b?"?"+f(Gr,"&",f(ae,xi,n)):""}(r))}),Ri=t(function(n,r){return s(ue,t(function(r,t){return n(r)?f(xr,r,t):t}),T,r)}),Di=t(function(n,r){return f(Li,O(function(n){return f(Ri,function(n){return""!==n},f(Kr,"/",n.ag))}(n),r),T)}),zi=t(function(n,r){return f(Di,n,j(["streams",ya(r)]))}),Si=t(function(n,r){return n.$?w({L:n.a},Ei):w({L:""},f(ji,r.ck,f(zi,r.ao.aC,r.bc.L)))}),Fi=function(n){return{$:3,a:n}},Ji={$:3},Mi=function(n){return{$:1,a:n}},Wi={$:2},Hi=Pe,Ii=t(function(n,r){return s(Se,n,0,r)}),qi=s(Vr,Ii,Hi,T),Ui=function(n){return{$:4,a:n}},Bi=t(function(n,r){var t=r.b_;return t.$?Ei:s(hi,Ui,n,t.a)}),Pi=u(function(n,r,t,e){return{a0:t,bg:e,bk:n,bp:r}}),Qi=u(function(n,r,t,e){return f(va,s(ha,f(sa,n,$a),r,t),e)}),Xi=b(Qi,"last",fa(su),Br,b(Qi,"first",fa(su),Br,b(Qi,"prev",fa(su),Br,b(Qi,"next",fa(su),Br,St(Pi))))),Gi=e(function(n,r,t){return f(va,f(sa,n,r),t)}),Ki=s(Gi,"links",Xi,s(Gi,"data",vi(ma),St(_i))),Yi=t(function(n,r){return ii({am:f(Ua,n,Ki),aO:r})}),Vi=t(function(n,r){switch(n.$){case 0:var t=n.a,e=r.u;return w(1===e.$?A(r,{u:Mi(A(a=e.a,{ab:t}))}):r,Ei);case 1:t=n.a;var u=r.u;return w(1===u.$?A(r,{u:Mi(A(a=u.a,{ae:t}))}):r,Ei);case 2:if(n.a.$)return w(A(r,3===n.a.a.$&&404===n.a.a.a?{u:Wi}:{u:Ji}),Ei);var a={b_:(i=n.a.a).b_,b3:i.b3,ab:qi,b8:i.b8,b9:i.b9,ae:qi,cC:i.cC,cD:i.cD,cE:i.cE,cW:i.cW};return w(A(r,{u:Mi(a)}),f(Bi,r.ao,a));case 4:return n.a.$?w(A(r,{J:Ji}),Ei):w(r,f(Yi,Fi,n.a.a.cb));default:return w(n.a.$?A(r,{J:Ji}):A(r,{J:Mi(n.a.a.ca)}),Ei)}var i}),Zi=function(n){return{$:1,a:n}},nc=t(function(n,r){switch(n.$){case 0:return w(r,f(Yi,Zi,n.a));case 1:return w(n.a.$?r:A(r,{ca:n.a.a}),Ei);default:if(n.a.$)return w(r,Ei);var t=n.a.a;return w(A(r,{cH:t.cH}),f(Yi,Zi,t.cb))}}),rc=u(function(n,r,t,e){var u=e.b;return w(A(t,{x:n(e.a)}),f(ki,r,u))}),tc=e(function(n,r,t){return{ao:t,bc:r,ck:n.ck}}),ec=t(function(n,r){var t=w(n,r.x);n:for(;;)switch(t.a.$){case 0:return f(Ai,r,t.a.a);case 1:var e=t.a.a;return w(r,e.$?Ni(e.a):f(ji,r.ck,Aa(e.a)));case 4:if(2===t.b.$)return b(rc,Ae,ke,r,f(nc,t.a.a,t.b.a));break n;case 3:if(1===t.b.$)return b(rc,Ee,we,r,f(Vi,t.a.a,t.b.a));break n;default:var u=t.a.a,a=r.ao;if(1===a.$)return w(r,Ei);var i=f(Si,u,s(tc,r,r.U,a.a)),c=i.b;return w(A(r,{U:i.a}),f(ki,Ci,c))}return w(r,Ei)}),uc=function(n){return n.$?"RubyEventStore::Browser":"RubyEventStore::Browser - "+n.a},ac=Bn("a"),ic=ln,cc=t(function(n,r){return f(Kn,n,ic(r))}),oc=cc("className"),fc=Bn("div"),sc=Bn("footer"),bc=function(n){return f(cc,"href",/^javascript:/i.test((r=n).replace(/\s/g,""))?"":r);var r},vc=Un,dc={$:0},lc=function(n){return{$:1,a:n}},$c=Bn("form"),hc=Bn("input"),pc=Bn("nav"),gc=function(n){return w(n,!0)},mc=Xn,_c=t(function(n,r){return f(mc,n,{$:1,a:r})}),yc=f(ba,j(["target","value"]),su),wc=function(n){return w(n,!0)},kc=t(function(n,r){return f(mc,n,{$:2,a:r})}),Ec=cc("placeholder"),Ac=cc("value"),Oc=function(n){return f(pc,j([oc("navigation")]),j([f(fc,j([oc("navigation__brand")]),j([f(ac,j([bc(Aa(n.ao.aC)),oc("navigation__logo")]),j([vc("Ruby Event Store")]))])),f(fc,j([oc("navigation__links")]),T),f(fc,j([oc("navigation__go-to-stream")]),j([f($c,j([(t=dc,f(kc,"submit",f(Dt,wc,St(t))))]),j([f(hc,j([Ac(n.bc.L),(r=lc,f(_c,"input",f(Dt,gc,f(Dt,r,yc)))),Ec("Go to stream...")]),T)]))]))]));var r,t},Tc=Bn("header"),Cc=Bn("main"),Nc=Qn,jc=e(function(n,r,t){return f(fc,j([oc("frame")]),j([f(Tc,j([oc("frame__header")]),j([f(Nc,n,Oc(r))])),f(Cc,j([oc("frame__body")]),j([t])),f(sc,j([oc("frame__footer")]),j([f(Nc,n,(e=r.ao,f(sc,j([oc("footer")]),j([f(fc,j([oc("footer__links")]),j([vc("RubyEventStore v"+e.az),f(ac,j([bc("https://railseventstore.org/docs/install/"),oc("footer__link")]),j([vc("Documentation")])),f(ac,j([bc("https://railseventstore.org/support/"),oc("footer__link")]),j([vc("Support")]))]))]))))]))]));var e}),xc=Bn("h1"),Lc=f(xc,T,j([vc("Incorrect RES Browser config")])),Rc=f(fc,j([oc("lds-dual-ring")]),T),Dc=f(fc,j([oc("central-spinner")]),j([Rc])),zc=Bn("h2"),Sc=Bn("li"),Fc=t(function(n,r){return r.$?Br:Ur(n(r.a))}),Jc=t(function(n,r){return f(ac,j([oc("event__stream-link"),bc(f(zi,n,r))]),j([vc(r)]))}),Mc=t(function(n,r){return f(Fc,function(r){return f(Sc,T,j([vc("Causation stream: "),f(Jc,n,r)]))},r.b_)}),Wc=t(function(n,r){return f(Fc,function(r){return f(Sc,T,j([vc("Correlation stream: "),f(Jc,n,r)]))},r.b3)}),Hc=t(function(n,r){return f(Di,n,j(["events",ya(r)]))}),Ic=t(function(n,r){return f(ac,j([oc("event__event-link"),bc(f(Hc,n,r))]),j([vc(r)]))}),qc=t(function(n,r){return f(Fc,function(r){return f(Sc,T,j([vc("Parent event: "),f(Ic,n,r)]))},r.cC)}),Uc=t(function(n,r){return f(Sc,T,j([vc("Type stream: "),f(Jc,n,r.cW)]))}),Bc=f(ue,t(function(n,r){return n.$?r:f(xr,n.a,r)}),T),Pc=t(function(n,r){return Bc(j([f(qc,n,r),Ur(f(Uc,n,r)),f(Wc,n,r),f(Mc,n,r)]))}),Qc=Bn("ul"),Xc=t(function(n,r){return g(f(Pc,n,r),T)?vc(""):f(fc,j([oc("event__related-streams")]),j([f(zc,T,j([vc("Related streams / events:")])),f(Qc,T,f(Pc,n,r))]))}),Gc=Bn("p"),Kc=Bn("td"),Yc=Bn("tr"),Vc=t(function(n,r){var t=r.b9,e=r.b8;return f(Yc,T,j([f(Kc,T,j([f(ac,j([oc("results__link"),bc(f(Hc,n,e))]),j([vc(t)]))])),f(Kc,T,j([vc(e)]))]))}),Zc=Bn("table"),no=Bn("tbody"),ro=Bn("tfoot"),to=Bn("th"),eo=Bn("thead"),uo=t(function(n,r){return r.b?f(Zc,T,j([f(eo,T,j([f(Yc,T,j([f(to,T,j([vc("Event name")])),f(to,T,j([vc("Event id")]))]))])),f(no,T,f(ae,Vc(n),r)),f(ro,T,j([f(Yc,T,j([f(Kc,j([(2,f(Yn,"colspan",Xr(2)))]),j([20===Zr(r)?vc("The results may be truncated, check stream for full information."):vc("")]))]))]))])):f(Gc,j([oc("results__empty")]),j([vc("No items")]))}),ao={I:"firebrick",M:"gray",N:"blue",O:"#fafad2",Q:"green"},io=t(function(n,r){return r.$?Fr(r.a):Hr(n(r.a))}),co=t(function(n,r){return r.$?Fr(r.a):n(r.a)}),oo=function(n){return{$:4,a:n}},fo=function(n){return{$:3,a:n}},so=t(function(n,r){if(-2===r.$)return Re;var t=r.b,e=r.d,u=r.e;return v(Le,r.a,t,f(n,t,r.c),f(so,n,e),f(so,n,u))}),bo=t(function(n,r){var e=t(function(r,t){return f(bo,n+"["+Xr(r)+"]",t)}),u=t(function(r,t){return f(bo,n+"."+r,t)}),a=r.z;switch(a.$){case 0:case 1:case 2:case 5:return A(r,{l:n});case 3:return A(r,{l:n,z:fo(f(et,e,a.a))});default:return A(r,{l:n,z:oo(f(so,u,a.a))})}}),vo=function(n){return{$:2,a:n}},lo=function(n){return{$:1,a:n}},$o={$:5},ho=function(n){return{$:0,a:n}},po=X,go=e(function(n,r,t){return n(r(t))}),mo=function(n){return s(Vr,t(function(n,r){return s(Se,n.a,n.b,r)}),Pe,n)},_o=function(n){return f(Dt,mo,function(n){return{$:8,b:n}}(n))},yo=G,wo=function(n){return f(Rt,n,St(0))};function ko(){var n=function(n){return{l:"",z:n}};return oa(j([f(Dt,f(go,n,ho),su),f(Dt,f(go,n,lo),yo),f(Dt,f(go,n,vo),po),f(Dt,f(go,n,fo),vi(wo(function(){return ko()}))),f(Dt,f(go,n,oo),_o(wo(function(){return ko()}))),la(n($o))]))}var Eo=ko();ko=function(){return Eo};var Ao,Oo,To,Co,No,jo=function(n){var r=f(Dt,bo(""),Eo);return f(da,r,n)},xo=Bn("pre"),Lo={I:function(n){return j([w("color",n.I)])},ak:j([w("position","absolute"),w("cursor","pointer"),w("top","1px"),w("left","-15px")]),an:j([w("font-weight","bold")]),ac:j([w("position","relative")]),M:function(n){return j([w("color",n.M)])},N:function(n){return j([w("color",n.N)])},aB:j([w("font-family","monospace"),w("white-space","pre")]),O:function(n){return j([w("background-color",n.O),w("cursor","pointer")])},Q:function(n){return j([w("color",n.Q)])},aj:j([w("list-style-type","none"),w("margin-left","26px"),w("padding-left","0px")])},Ro=function(n){return Bn(function(n){return"script"==n?"p":n}(n))},Do=Gn,zo=function(n){return f(ae,function(n){return f(Do,n.a,n.b)},n)},So=P,Fo=t(function(n,r){return!f(xe,n,r).$}),Jo=t(function(n,r){return f(Fo,n,r)}),Mo=t(function(n,r){return f(Jo,n,r)}),Wo=Bn("span"),Ho=t(function(n,r){return f(Ii,n,r)}),Io=t(function(n,r){return f(mc,n,{$:0,a:r})}),qo=t(function(n,r){return f(Io,"click",f(Dt,f(Fa,function(n){return n(0)},r),St(n)))}),Uo=u(function(n,r,t,e){return n?f(Wo,f(xr,f(qo,t,r.cT),zo(Lo.ak)),j([vc(e)])):vc("")}),Bo=u(function(n,r,t,e){return b(Uo,n,t,function(){return f(Ho,r,e)},"-")}),Po=t(function(n,r){return f(qe,n,r)}),Qo=t(function(n,r){return f(Po,n,r)}),Xo=u(function(n,r,t,e){return b(Uo,n,t,function(){return f(Qo,r,e)},"+")}),Go=cc("id"),Ko=function(n){return f(Io,"click",St(n))},Yo=u(function(n,r,t,e){return u=f(Wo,O(j([Go(t.l)]),O(zo(n),(a=e.cx).$?T:j([Ko((0,a.a)(t.l)),oc("selectableJsonTreeNode")]))),j([vc(r)])),j([u]);var u,a}),Vo=a(function(n,r,t,e,u){var a=function(r){return f(Sc,zo(Lo.ac),f(Ve,b(nf,n+1,e,r,u),j([vc(",")])))},i=r.b?j(f(Mo,t,u)?[b(Xo,n,t,e,u),vc("…")]:[b(Bo,n,t,e,u),f(Qc,zo(Lo.aj),f(ae,a,r))]):T;return O(j([vc("[")]),O(i,j([vc("]")])))}),Zo=a(function(n,r,t,e,u){var a=function(r){var t=r.a,a=r.b;return f(Sc,zo(Lo.ac),O(j([f(Wo,zo(Lo.an),j([vc(t)])),vc(": ")]),O(b(nf,n+1,e,a,u),j([vc(",")]))))},i=function(n){return-2===n.$}(r)?T:j(f(Mo,t,u)?[b(Xo,n,t,e,u),vc("…")]:[b(Bo,n,t,e,u),f(Qc,zo(Lo.aj),f(ae,a,Rr(r)))]);return O(j([vc("{")]),O(i,j([vc("}")])))}),nf=u(function(n,r,t,e){var u=r.b1,a=t.z;switch(a.$){case 0:var i=a.a;return b(Yo,Lo.Q(u),'"'+i+'"',t,r);case 1:var c=a.a;return b(Yo,Lo.N(u),So(c),t,r);case 2:var o=a.a;return b(Yo,Lo.I(u),function(n){return n?"true":"false"}(o),t,r);case 5:return b(Yo,Lo.M(u),"null",t,r);case 3:return v(Vo,n,a.a,t.l,r,e);default:return v(Zo,n,a.a,t.l,r,e)}}),rf=e(function(n,r,t){return f(fc,zo(Lo.aB),f(xr,function(n){var r=f(Gr,"\n",f(ae,function(n){return n.a+": "+n.b+";"},Lo.O(n.b1)));return s(Ro,"style",T,j([vc(".selectableJsonTreeNode:hover {\n"+r+"\n}\n")]))}(r),b(nf,0,r,n,t)))}),tf=t(function(n,r){return r.$?n:r.a}),ef=e(function(n,r,t){return f(tf,f(xo,T,j([vc(n)])),f(io,function(n){return s(rf,n,{b1:ao,cx:Br,cT:t},r)},f(co,jo,f(Ta,$a,n))))}),uf=e(function(n,r,t){return f(fc,j([oc("event")]),j([f(xc,j([oc("event__title")]),j([vc(r.b9)])),f(fc,j([oc("event__body")]),j([f(Zc,T,j([f(eo,T,j([f(Yc,T,j([f(to,T,j([vc("Event id")])),f(to,T,j([vc("Raw Data")])),f(to,T,j([vc("Raw Metadata")]))]))])),f(no,T,j([f(Yc,T,j([f(Kc,T,j([vc(r.b8)])),f(Kc,T,j([s(ef,r.cD,r.ab,function(n){return{$:0,a:n}})])),f(Kc,T,j([s(ef,r.cE,r.ae,function(n){return{$:1,a:n}})]))]))]))]))])),f(Xc,n,r),function(){switch(t.$){case 0:return f(fc,j([oc("event__caused-events")]),j([f(zc,T,j([vc("Events caused by this event:")])),vc("Loading...")]));case 1:var r=t.a;return f(fc,j([oc("event__caused-events")]),j(r.b?[f(zc,T,j([vc("Events caused by this event:")])),f(uo,n,r)]:[f(zc,T,j([vc("Events caused by this event: none")]))]));default:return vc("")}}()]))}),af=function(n){return w("Event "+n.b8,function(n){var r=n.u;switch(r.$){case 2:return f(fc,j([oc("event")]),j([f(xc,j([oc("event__missing")]),j([vc("There's no event with given ID")]))]));case 0:return Dc;case 1:return s(uf,n.ao.aC,r.a,n.J);default:return f(fc,j([oc("event")]),j([f(xc,j([oc("event__missing")]),j([vc("Unexpected request failure happened when fetching the event")]))]))}}(n))},cf=Bn("button"),of=ln,ff=t(function(n,r){return f(Kn,n,of(r))})("disabled"),sf=function(n){if(n.$)return j([ff(!0)]);var r,t=n.a;return j([bc(t),Ko((r=t,{$:0,a:r}))])},bf=function(n){return f(cf,O(j([oc("pagination__page")]),sf(n)),j([vc("last")]))},vf=function(n){return f(cf,O(j([oc("pagination__page")]),sf(n)),j([vc("next")]))},df=function(n){return f(cf,O(j([oc("pagination__page")]),sf(n)),j([vc("previous")]))},lf=function(n){var r,t=n.a0,e=n.bg,u=n.bk,a=n.bp;return f(Qc,j([oc("pagination")]),j([f(Sc,T,j([(r=t,f(cf,O(j([oc("pagination__page")]),sf(r)),j([vc("first")])))])),f(Sc,T,j([df(a)])),f(Sc,T,j([vf(u)])),f(Sc,T,j([bf(e)]))]))},$f=vc(""),hf=t(function(n,r){return f(ac,j([oc("event__stream-link"),bc(f(zi,n,r))]),j([vc(r)]))}),pf=t(function(n,r){if(r.$)return $f;var t=r.a;return f(fc,j([oc("event__related-streams")]),j([f(zc,T,j([vc("Related streams:")])),f(Qc,T,f(ae,function(r){return f(Sc,T,j([f(hf,n,r)]))},t))]))}),gf={$:7},mf=function(n){return n>11?"pm":"am"},_f=function(n){switch(n){case 0:return"January";case 1:return"February";case 2:return"March";case 3:return"April";case 4:return"May";case 5:return"June";case 6:return"July";case 7:return"August";case 8:return"September";case 9:return"October";case 10:return"November";default:return"December"}},yf=function(n){switch(f(Ku,100,n)){case 11:case 12:case 13:return"th";default:switch(f(Ku,10,n)){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}},wf=function(n){switch(n){case 0:return"Monday";case 1:return"Tuesday";case 2:return"Wednesday";case 3:return"Thursday";case 4:return"Friday";case 5:return"Saturday";default:return"Sunday"}},kf=d(i(function(n,r,t,e,u,a){return{cQ:u,cR:r,cS:n,R:a,cU:e,cV:t}}),_f,f(Fa,_f,Pt(3)),wf,f(Fa,wf,Pt(3)),mf,yf),Ef=t(function(n,r){return kt(n/r)}),Af=function(n){return n},Of=e(function(n,r,t){for(;;){if(!t.b)return r+n;var e=t.a,u=t.b;if(0>_(e.aK,r))return r+e.b;n=n,r=r,t=u}}),Tf=t(function(n,r){var t=n.b;return s(Of,n.a,f(Ef,Af(r),6e4),t)}),Cf=t(function(n,r){return f(Ku,24,f(Ef,f(Tf,n,r),60))}),Nf=e(function(n,r,t){return n.cQ(f(Cf,r,t))}),jf=function(n){var r=f(Ef,n,1440)+719468,t=(0>r?r-146096:r)/146097|0,e=r-146097*t,u=(e-(e/1460|0)+(e/36524|0)-(e/146096|0))/365|0,a=e-(365*u+(u/4|0)-(u/100|0)),i=(5*a+2)/153|0,c=i+(10>i?3:-9);return{aX:a-((153*i+2)/5|0)+1,bi:c,bU:u+400*t+(c>2?0:1)}},xf=t(function(n,r){return jf(f(Tf,n,r)).aX}),Lf=j([6,0,1,2,3,4,5]),Rf=function(n){return n.b?Ur(n.a):Br},Df=t(function(n,r){switch(f(Ku,7,f(Ef,f(Tf,n,r),1440))){case 0:return 3;case 1:return 4;case 2:return 5;case 3:return 6;case 4:return 0;case 5:return 1;default:return 2}}),zf=t(function(n,r){return r.$?n:r.a}),Sf=t(function(n,r){return f(zf,w(0,6),Rf(f(Ri,function(t){return g(t.b,f(Df,n,r))},f(et,t(function(n,r){return w(n,r)}),Lf)))).a}),Ff=t(function(n,r){switch(r){case 0:return 31;case 1:return function(n){return!(f(Ku,4,n)||!f(Ku,100,n)&&f(Ku,400,n))}(n)?29:28;case 2:return 31;case 3:return 30;case 4:return 31;case 5:return 30;case 6:case 7:return 31;case 8:return 30;case 9:return 31;case 10:return 30;default:return 31}}),Jf=j([0,1,2,3,4,5,6,7,8,9,10,11]),Mf=t(function(n,r){switch(jf(f(Tf,n,r)).bi){case 1:return 0;case 2:return 1;case 3:return 2;case 4:return 3;case 5:return 4;case 6:return 5;case 7:return 6;case 8:return 7;case 9:return 8;case 10:return 9;case 11:return 10;default:return 11}}),Wf=t(function(n,r){return f(zf,w(0,0),Rf(f(Ri,function(t){return g(t.b,f(Mf,n,r))},f(et,t(function(n,r){return w(n,r)}),Jf))))}),Hf=t(function(n,r){return 1+f(Wf,n,r).a}),If=e(function(n,r,t){n:for(;;){if(n>0){if(r.b){var e=r.a;n-=1,r=r.b,t=f(xr,e,t);continue n}return t}return t}}),qf=t(function(n,r){return st(s(If,n,r,T))}),Uf=e(function(n,r,t){if(r>0){var e=w(r,t);n:for(;;){r:for(;;){if(!e.b.b)return t;if(!e.b.b.b){if(1===e.a)break n;break r}switch(e.a){case 1:break n;case 2:var u=e.b;return j([u.a,u.b.a]);case 3:if(e.b.b.b.b){var a=e.b,i=a.b;return j([a.a,i.a,i.b.a])}break r;default:if(e.b.b.b.b&&e.b.b.b.b.b){var c=e.b,o=c.b,b=o.b,v=b.b,d=v.b;return f(xr,c.a,f(xr,o.a,f(xr,b.a,f(xr,v.a,n>1e3?f(qf,r-4,d):s(Uf,n+1,r-4,d)))))}break r}}return t}return j([e.b.a])}return T}),Bf=t(function(n,r){return s(Uf,0,n,r)}),Pf=t(function(n,r){return jf(f(Tf,n,r)).bU}),Qf=t(function(n,r){var t,e=f(Bf,f(Hf,n,r)-1,Jf);return t=f(ae,Ff(f(Pf,n,r)),e),s(Vr,qr,0,t)+f(xf,n,r)}),Xf=t(function(n,r){return f(Hf,n,r)/4|0}),Gf=t(function(n,r){return 1>n?"":s(It,-n,Ht(r),r)}),Kf=t(function(n,r){var t=Xr(r),e=n-Ht(t);return O(f(Gr,"",f(ae,function(){return"0"},f(tt,1,e))),t)}),Yf=t(function(n,r){return f(Ku,1e3,Af(r))}),Vf=t(function(n,r){return f(Ku,60,f(Tf,n,r))}),Zf=function(n){return n?n>12?n-12:n:12},ns=t(function(n,r){return f(Ku,60,f(Ef,Af(r),1e3))}),rs=Au(315576e5),ts=t(function(n,r){return Cu(rs*f(Pf,n,r))}),es=t(function(n,r){var t=f(Sf,n,f(ts,n,r));return 1+((f(Qf,n,r)+t)/7|0)}),us=t(function(n,r){return Xr(f(Pf,n,r))}),as=u(function(n,r,t,e){switch(e.$){case 0:return Xr(f(Hf,r,t));case 1:return O(Xr(u=f(Hf,r,t)),n.R(u));case 2:return f(Kf,2,f(Hf,r,t));case 3:return n.cR(f(Mf,r,t));case 4:return n.cS(f(Mf,r,t));case 17:return Xr(1+f(Xf,r,t));case 18:return function(r){return O(Xr(r),n.R(r))}(1+f(Xf,r,t));case 5:return Xr(f(xf,r,t));case 6:return function(r){return O(Xr(r),n.R(r))}(f(xf,r,t));case 7:return f(Kf,2,f(xf,r,t));case 8:return Xr(f(Qf,r,t));case 9:return function(r){return O(Xr(r),n.R(r))}(f(Qf,r,t));case 10:return f(Kf,3,f(Qf,r,t));case 11:return Xr(f(Sf,r,t));case 12:return function(r){return O(Xr(r),n.R(r))}(f(Sf,r,t));case 13:return n.cU(f(Df,r,t));case 14:return n.cV(f(Df,r,t));case 19:return Xr(f(es,r,t));case 20:return function(r){return O(Xr(r),n.R(r))}(f(es,r,t));case 21:return f(Kf,2,f(es,r,t));case 15:return f(Gf,2,f(us,r,t));case 16:return f(us,r,t);case 22:return s(Nf,n,r,t).toUpperCase();case 23:return function(n){return n.toLowerCase()}(s(Nf,n,r,t));case 24:return Xr(f(Cf,r,t));case 25:return f(Kf,2,f(Cf,r,t));case 26:return Xr(Zf(f(Cf,r,t)));case 27:return f(Kf,2,Zf(f(Cf,r,t)));case 28:return Xr(1+f(Cf,r,t));case 29:return f(Kf,2,1+f(Cf,r,t));case 30:return Xr(f(Vf,r,t));case 31:return f(Kf,2,f(Vf,r,t));case 32:return Xr(f(ns,r,t));case 33:return f(Kf,2,f(ns,r,t));case 34:return Xr(f(Yf,r,t));case 35:return f(Kf,3,f(Yf,r,t));default:return e.a}var u}),is=u(function(n,r,t,e){return f(Gr,"",f(ae,s(as,n,t,e),r))})(kf),cs={$:25},os={$:35},fs={$:31},ss={$:2},bs={$:33},vs=function(n){return{$:36,a:n}},ds=f(t(function(n,r){return{$:0,a:n,b:r}}),0,T),ls={$:16},$s=t(function(n,r){var t,e=r.b9,u=r.b4,a=r.b8;return f(Yc,T,j([f(Kc,T,j([f(ac,j([oc("results__link"),bc(f(Hc,n,a))]),j([vc(e)]))])),f(Kc,T,j([vc(a)])),f(Kc,j([oc("text-right")]),j([vc((t=u,s(is,j([gf,vs("."),ss,vs("."),ls,vs(", "),cs,vs(":"),fs,vs(":"),bs,vs("."),os]),ds,t)))]))]))}),hs=t(function(n,r){return r.b?f(Zc,T,j([f(eo,T,j([f(Yc,T,j([f(to,T,j([vc("Event name")])),f(to,T,j([vc("Event id")])),f(to,j([oc("text-right")]),j([vc("Created at")]))]))])),f(no,T,f(ae,$s(n),r))])):f(Gc,j([oc("results__empty")]),j([vc("No items")]))}),ps=u(function(n,r,t,e){var u=t.cl,a=t.ca;return f(fc,j([oc("browser")]),j([f(xc,j([oc("browser__title")]),j([vc(r)])),f(fc,j([oc("browser__pagination")]),j([lf(u)])),f(fc,j([oc("browser__results")]),j([f(hs,n,a)])),f(fc,T,j([f(pf,n,e)]))]))}),gs=function(n){return w("Stream "+n.ai,b(ps,n.ao.aC,"Events in "+n.ai,n.ca,n.cH))},ms=f(xc,T,j([vc("404")])),_s=e(function(n,r,t){var e=r(t),u=e.b;return w(Ur(e.a),f(Nc,n,u))});Ao={Main:{init:(To=(Oo={ci:Oi,cy:function(n){return{$:0,a:n}},cz:function(n){return{$:1,a:n}},cM:function(){return Ti},cX:ec,cY:function(n){var r=n.ao;if(1===r.$)return{aT:j([Lc]),bN:uc(Br)};var t=r.a,e=function(n){switch(n.$){case 2:return s(_s,ke,gs,n.a);case 1:return s(_s,we,af,n.a);default:return w(Br,ms)}}(n.x),u=e.a,a=e.b;return{aT:j([s(jc,Ci,s(tc,n,n.U,t),a)]),bN:uc(u)}}}).cy,Co=Oo.cz,No=function(){No.a(To(wr()))},_r({aD:function(n){return No.a=n,Er.addEventListener("popstate",No),0>Er.navigator.userAgent.indexOf("Trident")||Er.addEventListener("hashchange",No),t(function(r,t){if(!(t.ctrlKey||t.metaKey||t.shiftKey||t.button>=1||r.target||r.hasAttribute("download"))){t.preventDefault();var e=r.href,u=wr(),a=Zt(e).a;n(Co(a&&u.bt===a.bt&&u.a8===a.a8&&u.bo.a===a.bo.a?{$:0,a:a}:function(n){return{$:1,a:n}}(e)))}})},ci:function(n){return s(Oo.ci,n,wr(),No)},cY:Oo.cY,cX:Oo.cX,cM:Oo.cM}))(f(Rt,function(n){return f(Rt,function(r){return f(Rt,function(t){return St({aQ:t,az:r,aC:n})},f(sa,"apiUrl",su))},f(sa,"resVersion",su))},f(sa,"rootUrl",su)))(0)}},n.Elm?function n(r,t){for(var e in t)e in r?"init"==e?p(6):n(r[e],t[e]):r[e]=t[e]}(n.Elm,Ao):n.Elm=Ao}(this);
|
5
5
|
},{}],"Focm":[function(require,module,exports) {
|
6
|
-
require("./style/tailwind.css"),require("./style/style.css"),window.RubyEventStore={},window.RubyEventStore.Browser=require("./Main.elm");
|
7
|
-
},{"./style/tailwind.css":"Rfvt","./style/style.css":"Rfvt","./Main.elm":"asWa"}]},{},["Focm"], null)
|
6
|
+
require("./style/tailwind.css"),require("./style/style.css"),require("./style/spinner.css"),window.RubyEventStore={},window.RubyEventStore.Browser=require("./Main.elm");
|
7
|
+
},{"./style/tailwind.css":"Rfvt","./style/style.css":"Rfvt","./style/spinner.css":"Rfvt","./Main.elm":"asWa"}]},{},["Focm"], null)
|
8
8
|
//# sourceMappingURL=/ruby_event_store_browser.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.js"],"names":["require","window","RubyEventStore","Browser"],"mappings":";;;;;AAAAA,QAAQ,wBACRA,QAAQ,
|
1
|
+
{"version":3,"sources":["index.js"],"names":["require","window","RubyEventStore","Browser"],"mappings":";;;;;AAAAA,QAAQ,wBACRA,QAAQ,qBACRA,QAAQ,uBAERC,OAAOC,eAAiB,GACxBD,OAAOC,eAAeC,QAAUH,QAAQ","file":"ruby_event_store_browser.js","sourceRoot":"../elm/src","sourcesContent":["require(\"./style/tailwind.css\");\nrequire(\"./style/style.css\");\nrequire(\"./style/spinner.css\");\n\nwindow.RubyEventStore = {};\nwindow.RubyEventStore.Browser = require(\"./Main.elm\");\n"]}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_event_store-browser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arkency
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01
|
11
|
+
date: 2021-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby_event_store
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.0.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.0.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sinatra
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
|
-
rubygems_version: 3.1.
|
85
|
+
rubygems_version: 3.1.6
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Web interface for RubyEventStore
|