From 499162f0297e72bee6199d09aed679c3ad053c2b Mon Sep 17 00:00:00 2001 From: wsowens Date: Sat, 7 Nov 2020 17:58:06 -0800 Subject: [PATCH] updated to latest version of elm package --- dist/sockterm-element.min.js | 2 +- dist/sockterm.min.js | 2 +- elm.json | 2 +- examples/demo.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/sockterm-element.min.js b/dist/sockterm-element.min.js index 487a3d8..2fc2d45 100644 --- a/dist/sockterm-element.min.js +++ b/dist/sockterm-element.min.js @@ -1 +1 @@ -function _initializeSocketPorts(n,r){n.ws_term_socket=null;var t=null;function e(r){console.debug(r),n.ports.openSocket.send(null)}function u(r){console.debug(r),n.ports.msgSocket.send(r.data)}function a(n){console.error(n)}function o(r){console.log(r),n.ports.closeSocket.send(r.code)}n.ports.connectSocket.subscribe(n=>{null!=t&&(t.close(),t=null),(t=new WebSocket(n)).addEventListener("open",e),t.addEventListener("message",u),t.addEventListener("error",a),t.addEventListener("close",o)}),n.ports.writeSocket.subscribe(n=>{null!=t&&t.send(n)}),n.ports.scrollTerm.subscribe(n=>{var t=r.getElementById(n);null!==t?setTimeout(()=>{(t.scrollHeight-t.scrollTop-t.clientHeight)/t.clientHeight<.5&&t.scroll(0,t.scrollHeight)},50):console.err("Could not scroll "+n)})}function initializeSocketPorts(n){_initializeSocketPorts(n,document)}!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 o(n){return r(6,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(o){return n(r,t,e,u,a,o)}}}}}})}function i(n){return r(7,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(o){return function(i){return n(r,t,e,u,a,o,i)}}}}}}})}function c(n){return r(8,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(o){return function(i){return function(c){return n(r,t,e,u,a,o,i,c)}}}}}}}})}function f(n){return r(9,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(o){return function(i){return function(c){return function(f){return n(r,t,e,u,a,o,i,c,f)}}}}}}}}})}function v(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 l(n,r,t,e,u){return 4===n.a?n.f(r,t,e,u):n(r)(t)(e)(u)}function b(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,o){return 6===n.a?n.f(r,t,e,u,a,o):n(r)(t)(e)(u)(a)(o)}function h(n,r,t,e,u,a,o,i){return 7===n.a?n.f(r,t,e,u,a,o,i):n(r)(t)(e)(u)(a)(o)(i)}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&&H(5),!1;if(t>100)return e.push(w(n,r)),!0;for(var u in n.$<0&&(n=Zr(n),r=Zr(r)),n)if(!m(n[u],r[u],t+1,e))return!1;return!0}t(g);var p=t(function(n,r){return!g(n,r)});function $(n,r,t){if("object"!=typeof n)return n===r?0:n0}),t(function(n,r){return $(n,r)>=0});var k=t(function(n,r){var t=$(n,r);return t<0?Kr:t?Br:Rr}),y=0;function w(n,r){return{a:n,b:r}}function A(n,r,t){return{a:n,b:r,c:t}}function S(n){return n}function C(n,r){var t={};for(var e in n)t[e]=n[e];for(var e in r)t[e]=r[e];return t}t(T);function T(n,r){if("string"==typeof n)return n+r;if(!n.b)return r;var t=E(n.a,r);n=n.b;for(var e=t;n.b;n=n.b)e=e.b=E(n.a,r);return t}var N={$:0};function E(n,r){return{$:1,a:n,b:r}}var j=t(E);function _(n){for(var r=N,t=n.length;t--;)r=E(n[t],r);return r}function x(n){for(var r=[];n.b;n=n.b)r.push(n.a);return r}var O=e(function(n,r,t){for(var e=[];r.b&&t.b;r=r.b,t=t.b)e.push(v(n,r.a,t.a));return _(e)});u(function(n,r,t,e){for(var u=[];r.b&&t.b&&e.b;r=r.b,t=t.b,e=e.b)u.push(s(n,r.a,t.a,e.a));return _(u)}),a(function(n,r,t,e,u){for(var a=[];r.b&&t.b&&e.b&&u.b;r=r.b,t=t.b,e=e.b,u=u.b)a.push(l(n,r.a,t.a,e.a,u.a));return _(a)}),o(function(n,r,t,e,u,a){for(var o=[];r.b&&t.b&&e.b&&u.b&&a.b;r=r.b,t=t.b,e=e.b,u=u.b,a=a.b)o.push(b(n,r.a,t.a,e.a,u.a,a.a));return _(o)}),t(function(n,r){return _(x(r).sort(function(r,t){return $(n(r),n(t))}))}),t(function(n,r){return _(x(r).sort(function(r,t){var e=v(n,r,t);return e===Rr?0:e===Kr?-1:1}))});var L=e(function(n,r,t){for(var e=new Array(n),u=0;u=0;e--)r=v(n,t[e],r);return r}),D=(t(function(n,r){for(var t=r.length,e=new Array(t),u=0;ut.length&&(u=t.length);for(var a=new Array(e+u),o=0;o"),r});function H(n){throw new Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}t(function(n,r){return n+r}),t(function(n,r){return n-r}),t(function(n,r){return n*r}),t(function(n,r){return n/r}),t(function(n,r){return n/r|0}),t(Math.pow),t(function(n,r){return r%n}),t(function(n,r){var t=r%n;return 0===n?H(11):t>0&&n<0||t<0&&n>0?t+n:t}),Math.PI,Math.E,Math.cos,Math.sin,Math.tan,Math.acos,Math.asin,Math.atan,t(Math.atan2);var Y=Math.ceil,J=Math.floor,R=(Math.round,Math.sqrt,Math.log);isNaN;t(function(n,r){return n&&r}),t(function(n,r){return n||r}),t(function(n,r){return n!==r}),t(function(n,r){return n+r});t(function(n,r){return n+r});t(function(n,r){for(var t=r.length,e=new Array(t),u=0;u-1}),U=(t(function(n,r){return 0===r.indexOf(n)}),t(function(n,r){return r.length>=n.length&&r.lastIndexOf(n)===r.length-n.length}),t(function(n,r){var t=n.length;if(t<1)return N;for(var e=0,u=[];(e=r.indexOf(n,e))>-1;)u.push(e),e+=t;return _(u)}));function X(n){return{$:2,b:n}}var V=X(function(n){return"number"!=typeof n?bn("an INT",n):-2147483647=r.length)return bn("a LONGER array. Need index "+u+" but only see "+r.length+" entries",r);e=fn(n.b,r[u]);return Wt(e)?e:nt(v(et,u,e.a));case 8:if("object"!=typeof r||null===r||sn(r))return bn("an OBJECT",r);var a=N;for(var o in r)if(r.hasOwnProperty(o)){e=fn(n.b,r[o]);if(!Wt(e))return nt(v(tt,o,e.a));a=E(w(o,e.a),a)}return ut(Ct(a));case 9:for(var i=n.f,c=n.g,f=0;f=0&&t.splice(r,1)}}}function Bn(n,r){return Hn(n),On[n]={f:Qn,u:r,a:Wn},Pn(n)}var Kn,Qn=t(function(n,r){return function(t){return n(r(t))}});function Wn(n,r){var t=N,u=On[n].u,a=$n(null);return On[n].b=a,On[n].c=e(function(n,r,e){return t=r,a}),{send:function(n){var e=v(cn,u,mn(n));Wt(e)||H(4,e.a);for(var a=e.a,o=t;o.b;o=o.b)r(o.a(a))}}}var Zn="undefined"!=typeof document?document:{};function Un(n,r){n.appendChild(r)}u(function(n,r,t,e){var u=e.node;return u.parentNode.replaceChild(fr(n,function(){}),u),{}});function Xn(n){return{$:0,a:n}}var Vn=t(function(n,r){return t(function(t,e){for(var u=[],a=0;e.b;e=e.b){var o=e.a;a+=o.b||0,u.push(o)}return a+=u.length,{$:1,c:r,d:ir(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 o=e.a;a+=o.b.b||0,u.push(o)}return a+=u.length,{$:2,c:r,d:ir(t),e:u,f:n,b:a}})})(void 0);t(function(n,r){return{$:4,j:n,k:r,b:1+(r.b||0)}});function nr(n,r){return{$:5,l:n,m:r,k:void 0}}t(function(n,r){return nr([n,r],function(){return n(r)})}),e(function(n,r,t){return nr([n,r,t],function(){return v(n,r,t)})}),u(function(n,r,t,e){return nr([n,r,t,e],function(){return s(n,r,t,e)})}),a(function(n,r,t,e,u){return nr([n,r,t,e,u],function(){return l(n,r,t,e,u)})}),o(function(n,r,t,e,u,a){return nr([n,r,t,e,u,a],function(){return b(n,r,t,e,u,a)})}),i(function(n,r,t,e,u,a,o){return nr([n,r,t,e,u,a,o],function(){return d(n,r,t,e,u,a,o)})}),c(function(n,r,t,e,u,a,o,i){return nr([n,r,t,e,u,a,o,i],function(){return h(n,r,t,e,u,a,o,i)})}),f(function(n,r,t,e,u,a,o,i,c){return nr([n,r,t,e,u,a,o,i,c],function(){return function(n,r,t,e,u,a,o,i,c){return 8===n.a?n.f(r,t,e,u,a,o,i,c):n(r)(t)(e)(u)(a)(o)(i)(c)}(n,r,t,e,u,a,o,i,c)})});var rr=t(function(n,r){return{$:"a0",n:n,o:r}}),tr=(t(function(n,r){return{$:"a1",n:n,o:r}}),t(function(n,r){return{$:"a2",n:n,o:r}})),er=t(function(n,r){return{$:"a3",n:n,o:r}});e(function(n,r,t){return{$:"a4",n:r,o:{f:n,o:t}}});t(function(n,r){return"a0"===r.$?v(rr,r.n,function(n,r){var t=Vt(r);return{$:r.$,a:t?s(Ut,t<3?ar:or,Xt(n),r.a):v(Zt,n,r.a)}}(n,r.o)):r});var ur,ar=t(function(n,r){return w(n(r.a),r.b)}),or=t(function(n,r){return{u:n(r.u),Z:r.Z,W:r.W}});function ir(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 o=r[e]||(r[e]={});"a3"===e&&"class"===u?cr(o,u,a):o[u]=a}else"className"===u?cr(r,u,pn(a)):r[u]=pn(a)}return r}function cr(n,r,t){var e=n[r];n[r]=e?e+" "+t:t}function fr(n,r){var t=n.$;if(5===t)return fr(n.k||(n.k=n.m()),r);if(0===t)return Zn.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(o=fr(e,a)).elm_event_node_ref=a,o}if(3===t)return vr(o=n.h(n.g),r,n.d),o;var o=n.f?Zn.createElementNS(n.f,n.c):Zn.createElement(n.c);Kn&&"a"==n.c&&o.addEventListener("click",Kn(o)),vr(o,r,n.d);for(var i=n.e,c=0;c0&&pr(t,1,e,v));case 4:for(var s=n.j,l=r.j,b=!1,d=n.k;4===d.$;)b=!0,"object"!=typeof s?s=[s,d.j]:s.push(d.j),d=d.k;for(var h=r.k;4===h.$;)b=!0,"object"!=typeof l?l=[l,h.j]:l.push(h.j),h=h.k;return b&&s.length!==l.length?void pr(t,0,e,r):((b?function(n,r){for(var t=0;ti?pr(t,6,e,{v:i,i:o-i}):o0||o.length>0||E)&&pr(t,8,e,{w:u,x:o,y:E})}var Sr="_elmW6BL";function Cr(n,r,t,e,u,a){var o=n[t];if(!o)return o={c:0,z:e,r:u,s:void 0},a.push({r:u,A:o}),void(n[t]=o);if(1===o.c){a.push({r:u,A:o}),o.c=2;var i=[];return $r(o.z,e,i,o.r),o.r=u,void(o.s.s={w:i,A:o})}Cr(n,r,t+Sr,e,u,a)}function Tr(n,r,t,e,u){var a=n[t];if(a){if(0===a.c){a.c=2;var o=[];return $r(e,a.z,o,u),void pr(r,9,u,{w:o,A:a})}Tr(n,r,t+Sr,e,u)}else{var i=pr(r,9,u,void 0);n[t]={c:1,z:e,r:u,s:i}}}function Nr(n,r,t,e){!function n(r,t,e,u,a,o,i){var c=e[u];var f=c.r;for(;f===a;){var v=c.$;if(1===v)Nr(r,t.k,c.s,i);else if(8===v){c.t=r,c.u=i;var s=c.s.w;s.length>0&&n(r,t,s,0,a,o,i)}else if(9===v){c.t=r,c.u=i;var l=c.s;if(l){l.A.s=r;var s=l.w;s.length>0&&n(r,t,s,0,a,o,i)}}else c.t=r,c.u=i;if(!(c=e[++u])||(f=c.r)>o)return u}var b=t.$;if(4===b){for(var d=t.k;4===d.$;)d=d.k;return n(r,d,e,u,a+1,o,r.elm_event_node_ref)}var h=t.e;var g=r.childNodes;for(var m=0;mo))return u;a=$}return u}(n,r,t,0,0,r.b,e)}function Er(n,r,t,e){return 0===t.length?n:(Nr(n,r,t,e),jr(n,t))}function jr(n,r){for(var t=0;t>n}),t(function(n,r){return r>>>n});var qr,Fr=a(function(n,r,t,e,u){for(var a=n.length,o=r+a<=u.length,i=0;o&&i0?n:r}),Ht=function(n){return{$:0,a:n}},Yt=G,Jt=t(function(n,r){for(;;){var t=v(Yt,32,n),e=t.a,u=t.b,a=v(Qr,Ht(e),r);if(!u.b)return Ct(a);n=u,r=a}}),Rt=t(function(n,r){for(;;){var t=Ot(r/32);if(1===t)return v(Yt,32,n).a;n=v(Jt,n,N),r=t}}),Bt=t(function(n,r){if(r.f){var t=32*r.f,e=Ft(v(Lt,32,t-1)),u=n?Ct(r.i):r.i,a=v(Rt,u,r.f);return l(_t,Dt(r.h)+t,v(It,5,e*Gt),a,r.h)}return l(_t,Dt(r.h),Gt,xt,r.h)}),Kt=a(function(n,r,t,e,u){for(;;){if(r<0)return v(Bt,!1,{i:e,f:t/32|0,h:u});var a=zt(s(Mt,32,r,n));n=n,r=r-32,t=t,e=v(Qr,a,e),u=u}}),Qt=t(function(n,r){if(n<=0)return Pt;var t=n%32,e=s(Mt,t,n-t,r);return b(Kt,r,n-t-32,n,N,e)}),Wt=function(n){return!n.$},Zt=an,Ut=on,Xt=function(n){return{$:0,a:n}},Vt=function(n){switch(n.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},ne=function(n){return n},re=ne,te=o(function(n,r,t,e,u,a){return{ai:a,al:r,av:e,ax:t,aB:n,aC:u}}),ee=Z,ue=function(n){return n.length},ae=Q,oe=t(function(n,r){return n<1?r:s(ae,n,ue(r),r)}),ie=U,ce=function(n){return""===n},fe=t(function(n,r){return n<1?"":s(ae,0,n,r)}),ve=function(n){for(var r=0,t=n.charCodeAt(0),e=43==t||45==t?1:0,u=e;u500?s(dt,n,r,Ct(d)):l(me,n,r,t+1,d)))))}return v(n,u,v(n,o,v(n,c,r)))}return v(n,u,v(n,o,r))}return v(n,u,r)}return r}),pe=e(function(n,r,t){return l(me,n,r,0,t)}),$e=t(function(n,r){return s(pe,t(function(r,t){return v(Qr,n(r),t)}),N,r)}),ke=yn,ye=t(function(n,r){return v(ke,function(r){return he(n(r))},r)}),we=e(function(n,r,t){return v(ke,function(r){return v(ke,function(t){return he(v(n,r,t))},t)},r)}),Ae=Gn,Se=t(function(n,r){var t=r;return Sn(v(ke,Ae(n),t))}),Ce=e(function(n,r,t){return v(ye,function(n){return 0},(e=v($e,Se(n),r),s(pe,we(Qr),he(N),e)));var e}),Te=e(function(n,r,t){return he(0)}),Ne=t(function(n,r){return v(ye,n,r)});On.Task={b:ge,c:Ce,d:Te,e:Ne,f:qr};var Ee,je,_e=Pn("Task"),xe=t(function(n,r){return _e(v(ye,n,r))}),Oe=Or,Le={$:2},Ge={e:8,C:!1,D:!1,S:8,T:!1,A:!1,G:!1,H:!1},Pe=t(function(n,r){return{at:n,au:r}}),Me=u(function(n,r,t,e){return{R:e,P:t,aq:r,Q:n}}),ze=un,qe=function(n){return{$:1,a:n}},Fe=tn,De=rn,Ie=v(t(function(n,r){return s(pe,Fe,r,n)}),_(["target","value"]),De),He=function(n){return 13===n.ap?Ie:qe("Shift key pressed with enter")},Ye=t(function(n,r){return{ap:r,aJ:n}}),Je=V,Re=s(Ut,Ye,v(Fe,"shiftKey",nn),v(Fe,"keyCode",Je)),Be=rr,Ke=t(function(n,r){return v(Be,n,{$:1,a:r})}),Qe=function(n){return 13===n.ap?n.aJ?qe("Shift key pressed with enter"):Ie:qe("Shift key pressed with enter")},We=l(u(function(n,r,t,e){return l(Me,n,Pt,r,v(Pe,function(n){return v(Ke,"keypress",v(Zt,function(r){return w(n(r),!1)},v(ze,He,Re)))}(t),function(n){return v(Ke,"keypress",v(Zt,function(r){return w(n(r),!1)},v(ze,Qe,Re)))}(e)))}),ot(Le),ot(Ge),function(n){return{$:1,a:n}},function(n){return{$:0,a:n}}),Ze=Mn,Ue=Ze(N),Xe=function(n){return{$:4,a:n}},Ve=function(n){return{$:3,a:n}},nu={$:2},ru=t(function(n,r){return n}),tu=Mn,eu=Bn("closeSocket",Je),uu=Bn("msgSocket",De),au=Bn("openSocket",function(n){return{$:5,c:n}}(0)),ou=C(Ge,{S:1,T:!0}),iu=mn,cu=t(function(n,r){return v(tr,n,iu(r))}),fu=cu("className"),vu=t(function(n,r){var t=function(n){switch(n){case 0:return ot("black");case 1:return ot("red");case 2:return ot("green");case 3:return ot("yellow");case 4:return ot("blue");case 5:return ot("magenta");case 6:return ot("cyan");case 7:return ot("white");case 9:return ot("bright-black");case 10:return ot("bright-red");case 11:return ot("bright-green");case 12:return ot("bright-yellow");case 13:return ot("bright-blue");case 14:return ot("bright-magenta");case 15:return ot("bright-cyan");case 16:return ot("bright-white");default:return it}}(n);if(t.$)return it;var e=t.a;return ot(fu(1===r?"term-"+e:"term-"+e+"-bg"))}),su=t(function(n,r){return n?ot(r):it}),lu=e(function(n,r,t){var e=n(r);if(e.$)return t;var u=e.a;return v(Qr,u,t)}),bu=t(function(n,r){return s(pe,lu(n),N,r)}),du=Vn("span"),hu=Xn,gu=t(function(n,r){var t=n.A?w(v(vu,n.e,1),v(vu,n.S,0)):w(v(vu,n.S,1),v(vu,n.e,0)),e=t.a,u=t.b,a=v(bu,ne,T(function(n){return n.G&&n.H?v(Qr,v(su,n.A,fu("term-reverse")),v(Qr,v(su,n.C,fu("term-blink")),v(Qr,v(su,n.T,fu("term-italic")),v(Qr,v(su,n.D,fu("term-bold")),_([ot(fu("term-underline-strike"))]))))):v(Qr,v(su,n.G,fu("term-strike")),v(Qr,v(su,n.A,fu("term-reverse")),v(Qr,v(su,n.C,fu("term-blink")),v(Qr,v(su,n.H,fu("term-underline")),v(Qr,v(su,n.T,fu("term-italic")),v(Qr,v(su,n.D,fu("term-bold")),N))))))}(n),v(Qr,u,v(Qr,e,N))));return v(du,a,_([hu(r)]))}),mu=z,pu=4294967295>>>32-Gt,$u=function(n){return[n]},ku=P,yu=M,wu=u(function(n,r,t,e){var u=pu&r>>>n;if($(u,Dt(e))>-1){if(5===n)return v(mu,zt(t),e);var a=Ht(l(wu,n-Gt,r,t,xt));return v(mu,a,e)}var o=v(ku,u,e);if(o.$){a=Ht(l(wu,n-Gt,r,t,$u(o)));return s(yu,u,a,e)}var i=o.a,a=Ht(l(wu,n-Gt,r,t,i));return s(yu,u,a,e)}),Au=t(function(n,r){var t=r.a,e=r.b,u=r.c,a=r.d,o=Dt(a),i=Dt(n),c=t+(i-o);if(g(i,32)){if($(c>>>Gt,1<0){var f=e+Gt,v=l(wu,f,t,n,$u(Ht(u)));return l(_t,c,f,v,xt)}return l(_t,c,e,l(wu,e,t,n,u),xt)}return l(_t,c,e,u,n)}),Su=t(function(n,r){var t=r.d;return v(Au,v(mu,n,t),r)}),Cu=e(function(n,r,t){var e=v(gu,n,r);return C(t,{aq:v(Su,e,t.aq)})}),Tu=t(function(n,r){var t=function(){switch(n){case 1015:return"Host not recognized. (1015)\n";case 1006:return"Connection closed. (1006)\n";default:return"Unknown error. ("+vt(n)+")\n"}}();return C(s(Cu,ou,t,r),{Q:ot(Le)})}),Nu=C(Ge,{S:4,T:!0}),Eu=Yn("connectSocket",iu),ju=I,_u=D,xu=t(function(n,r){var t=Dt(n),e=32-Dt(r.h)-t,u=s(ju,32,r.h,n);return e<0?{i:v(Qr,zt(u),r.i),f:r.f+1,h:s(_u,e,t,n)}:e?{i:r.i,f:r.f,h:u}:{i:v(Qr,zt(u),r.i),f:r.f+1,h:xt}}),Ou=t(function(n,r){r.a,r.c;var t=r.d,e=Dt(n),u=32-Dt(t)-e,a=s(ju,32,t,n),o=v(Au,a,r);if(u<0){var i=s(_u,u,e,n);return v(Au,i,o)}return o}),Lu=q,Gu=t(function(n,r){n.d;var e=r.a,u=r.c,a=r.d;if($(e,128)<1){var o=t(function(n,r){if(n.$){var t=n.a;return v(Ou,t,r)}var e=n.a;return s(Lu,o,r,e)});return v(Ou,a,s(Lu,o,n,u))}o=t(function(n,r){if(n.$){var t=n.a;return v(xu,t,r)}var e=n.a;return s(Lu,o,r,e)});return v(Bt,!0,v(xu,a,s(Lu,o,function(n){var r=n.a,e=n.c,u=n.d,a=t(function(n,r){if(n.$)return v(Qr,n,r);var t=n.a;return s(Lu,a,r,t)});return{i:s(Lu,a,N,e),f:r/32|0,h:u}}(n),u)))}),Pu=e(function(n,r,t){for(;;){var e=v(Yt,32,n),u=e.a,a=e.b;if($(Dt(u),32)<0)return v(Bt,!0,{i:r,f:t,h:u});n=a,r=v(Qr,zt(u),r),t=t+1}}),Mu=t(function(n,r){var t,e=(t=n.a3).b?s(Pu,t,N,0):Pt;return C(r,{P:r.P,aq:v(Gu,r.aq,e)})}),zu=t(function(n,r){return{P:r,a3:n}}),qu=t(function(n,r){switch(n){case 0:return Ge;case 1:return C(r,{D:!0});case 3:return C(r,{T:!0});case 4:return C(r,{H:!0});case 5:case 6:return C(r,{C:!0});case 7:return C(r,{A:!0});case 9:return C(r,{G:!0});case 21:return C(r,{D:!1});case 23:return C(r,{T:!1});case 24:return C(r,{H:!1});case 27:return C(r,{A:!1});case 29:return C(r,{G:!1});case 30:return C(r,{S:0});case 31:return C(r,{S:1});case 32:return C(r,{S:2});case 33:return C(r,{S:3});case 34:return C(r,{S:4});case 35:return C(r,{S:5});case 36:return C(r,{S:6});case 37:return C(r,{S:7});case 38:return r;case 39:return C(r,{S:8});case 40:return C(r,{e:0});case 41:return C(r,{e:1});case 42:return C(r,{e:2});case 43:return C(r,{e:3});case 44:return C(r,{e:4});case 45:return C(r,{e:5});case 46:return C(r,{e:6});case 47:return C(r,{e:7});case 48:return r;case 49:return C(r,{e:8});case 90:return C(r,{S:9});case 91:return C(r,{S:10});case 92:return C(r,{S:11});case 93:return C(r,{S:12});case 94:return C(r,{S:13});case 95:return C(r,{S:14});case 96:return C(r,{S:15});case 97:return C(r,{S:16});case 100:return C(r,{e:9});case 101:return C(r,{e:10});case 102:return C(r,{e:11});case 103:return C(r,{e:12});case 104:return C(r,{e:13});case 105:return C(r,{e:14});case 106:return C(r,{e:15});case 107:return C(r,{e:16});default:return r}}),Fu=t(function(n,r){return r.$?n:r.a}),Du=t(function(n,r){if(1===n.$){var t=n.a,e=r.P;if(e.$)return r;var u=e.a;return C(r,{P:ot(s(dt,qu,u,t))})}var a=n.a;u=v(Fu,Ge,r.P);return C(r,{a3:v(Qr,v(gu,u,a),r.a3)})}),Iu=t(function(n,r){var t=v(zu,N,n),e=s(dt,Du,t,r);return C(e,{a3:Ct(e.a3)})}),Hu=e(function(n,r,t){return{ac:r,ay:t,aG:n}}),Yu=function(n){return s(Hu,n.aG,n.ac,n.ay)},Ju=t(function(n,r){n:for(;;)switch(n.$){case 0:return r;case 1:var t=n.a,e=n.b;n=t,r=v(Qr,e,r);continue n;default:t=n.a;var u=n.b;n=t,r=v(Ju,u,r);continue n}}),Ru=t(function(n,r){var t=n({ac:1,c:N,d:1,b:0,aG:1,a:r});if(t.$){var e=t.b;return nt(v(Ju,e,N))}var u=t.b;return ut(u)}),Bu=t(function(n,r){var t=v(Ru,n,r);if(t.$){var e=t.a;return nt(v($e,Yu,e))}var u=t.a;return ut(u)}),Ku={$:-2},Qu=t(function(n,r){return{$:1,a:n,b:r}}),Wu=e(function(n,r,t){return{$:0,a:n,b:r,c:t}}),Zu=e(function(n,r,t){var e=r,u=t;return function(r){var t=e(r);if(1===t.$){var a=t.a,o=t.b;return v(Qu,a,o)}var i=t.a,c=t.b,f=t.c,l=u(f);if(1===l.$){var b=l.a;o=l.b;return v(Qu,i||b,o)}b=l.a;var d=l.b,h=l.c;return s(Wu,i||b,v(n,c,d),h)}}),Uu=t(function(n,r){return s(Zu,qt,n,r)}),Xu=p,Vu=function(n){return function(r){return s(Wu,!1,n,r)}},na=Vu,ra={$:7},ta=t(function(n,r){return{$:1,a:n,b:r}}),ea=u(function(n,r,t,e){return{ac:r,aW:e,ay:t,aG:n}}),ua={$:0},aa=t(function(n,r){return v(ta,ua,l(ea,n.aG,n.ac,r,n.c))}),oa=Dr,ia=k,ca=t(function(n,r){n:for(;;){if(-2===r.$)return it;var t=r.b,e=r.c,u=r.d,a=r.e;switch(v(ia,n,t)){case 0:n=n,r=u;continue n;case 1:return ot(e);default:n=n,r=a;continue n}}}),fa=t(function(n,r){return!v(ca,n,r).$}),va=t(function(n,r){return v(fa,n,r)}),sa=i(function(n,r,t,e,u,a,o){for(;;){var i=s(oa,n,r,u);if(g(i,-1))return{ac:e,c:o,d:a,b:r,aG:t,a:u};if(g(i,-2))n=n,r=r+1,t=t+1,e=1,u=u,a=a,o=o;else n=n,r=i,t=t,e=e+1,u=u,a=a,o=o}}),la=v(Uu,na(function(n){return{$:0,a:n}}),(Ee={am:Xu(""),aF:Ku,Y:Xu("")},function(n){return function(r){var t=s(oa,n.Y,r.b,r.a);if(g(t,-1))return v(Qu,!1,v(aa,r,n.ag));var e=g(t,-2)?h(sa,n.am,r.b+1,r.aG+1,1,r.a,r.d,r.c):h(sa,n.am,t,r.aG,r.ac+1,r.a,r.d,r.c),u=s(ae,r.b,e.b,r.a);return v(va,u,n.aF)?v(Qu,!1,v(aa,r,n.ag)):s(Wu,!0,u,e)}}({ag:ra,am:Ee.am,aF:Ee.aF,Y:Ee.Y}))),ba=t(function(n,r){return{$:2,a:n,b:r}}),da=e(function(n,r,t){n:for(;;){if(t.b){var e=t.a,u=t.b,a=e(n);if(a.$){var o,i=(o=a).a,c=o.b;if(i)return o;n=n,r=v(ba,r,c),t=u;continue n}return o=a}return v(Qu,!1,r)}}),ha=function(n){return function(r){return s(da,r,ua,n)}},ga=ha,ma=t(function(n,r){var t=r;return function(r){var e=t(r);if(1===e.$){var u=e.a,a=e.b;return v(Qu,u,a)}var o=e.a,i=e.b,c=e.c,f=n(i)(c);if(1===f.$){var l=f.a;a=f.b;return v(Qu,o||l,a)}l=f.a;var b=f.b,d=f.c;return s(Wu,o||l,b,d)}}),pa=t(function(n,r){return s(Zu,ru,n,r)}),$a=u(function(n,r,t,e){for(;;){var u=t(r)(e);if(u.$){o=u.a;var a=u.b;return v(Qu,n||o,a)}var o=u.a,i=u.b,c=u.c;if(i.$){var f=i.a;return s(Wu,n||o,f,c)}var l=i.a;n=n||o,r=l,t=t,e=c}}),ka=t(function(n,r){return function(t){return l($a,!1,n,r,t)}}),ya=t(function(n,r){var t=r;return function(r){var e=t(r);if(e.$){a=e.a;var u=e.b;return v(Qu,a,u)}var a=e.a,o=e.b,i=e.c;return s(Wu,a,n(o),i)}}),wa=function(n){return{$:1,a:n}},Aa=function(n){return{$:0,a:n}},Sa=t(function(n,r){return r}),Ca=t(function(n,r){return s(Zu,Sa,n,r)}),Ta=a(function(n,r,t,e,u){return v(Ca,r,ha(_([v(Ca,e,v(Ca,r,v(ya,function(n){return Aa(v(Qr,n,u))},t))),v(ya,function(n){return wa(Ct(u))},n)])))}),Na=u(function(n,r,t,e){return ha(_([v(ya,function(n){return Aa(v(Qr,n,e))},v(pa,r,v(pa,n,v(pa,t,n)))),v(ya,function(n){return wa(Ct(e))},Vu(0))]))}),Ea=a(function(n,r,t,e,u){var a=v(ya,function(n){return wa(Ct(u))},n);return v(Ca,r,ha(_([v(Ca,e,v(Ca,r,ha(_([v(ya,function(n){return Aa(v(Qr,n,u))},t),a])))),a])))}),ja=a(function(n,r,t,e,u){return ha(_([v(ma,function(a){switch(u){case 0:return v(ka,_([a]),l(Ta,n,r,t,e));case 1:return v(ka,_([a]),l(Ea,n,r,t,e));default:return v(pa,v(Ca,r,v(Ca,e,v(Ca,r,v(ka,_([a]),s(Na,r,t,e))))),n)}},t),v(ya,function(n){return N},n)]))}),_a=Fr,xa=function(n){var r=n.a,t=n.b,e=!ce(r);return function(n){var u=b(_a,r,n.b,n.aG,n.ac,n.a),a=u.a,o=u.b,i=u.c;return g(a,-1)?v(Qu,!1,v(aa,n,t)):s(Wu,e,0,{ac:i,c:n.c,d:n.d,b:a,aG:o,a:n.a})}},Oa=t(function(n,r){return{$:0,a:n,b:r}}),La=function(n){return v(Oa,n,{$:0,a:n})},Ga=function(n){return function(n){return v(Ca,xa(n.Y),v(Ca,n.aK,b(ja,xa(n.ae),n.aK,n.ao,xa(n.aI),n.aN)))}({ae:La(n.ae),ao:n.ao,aI:La(n.aI),aK:n.aK,Y:La(n.Y),aN:function(n){switch(n){case 0:return 0;case 1:return 1;default:return 2}}(n.aN)})},Pa={$:1},Ma=Yr,za=Jr,qa=t(function(n,r){return{ac:r.ac+(n-r.b),c:r.c,d:r.d,b:n,aG:r.aG,a:r.a}}),Fa=Hr,Da=Ir,Ia=t(function(n,r){if(s(Da,101,n,r)||s(Da,69,n,r)){var t=n+1,e=s(Da,43,t,r)||s(Da,45,t,r)?t+1:t,u=v(Fa,e,r);return g(e,u)?-u:u}return n}),Ha=t(function(n,r){return s(Da,46,n,r)?v(Ia,v(Fa,n+1,r),r):v(Ia,n,r)}),Ya=a(function(n,r,t,e,u){var a=e.a,o=e.b;if(1===r.$){var i=r.a;return v(Qu,!0,v(aa,u,i))}var c=r.a;return g(t,a)?v(Qu,$(u.b,t)<0,v(aa,u,n)):s(Wu,!0,c(o),v(qa,a,u))}),Ja=u(function(n,r,t,e){return v(ta,ua,l(ea,n,r,t,e))}),Ra=function(n){if(0===n.length||/[\sxbo]/.test(n))return it;var r=+n;return r==r?ot(r):it},Ba=o(function(n,r,t,e,u,a){var o=u.a,i=v(Ha,o,a.a);if(i<0)return v(Qu,!0,l(Ja,a.aG,a.ac-(i+a.b),n,a.c));if(g(a.b,i))return v(Qu,!1,v(aa,a,r));if(g(o,i))return b(Ya,n,t,a.b,u,a);if(1===e.$){e.a;return v(Qu,!0,v(aa,a,n))}var c=e.a,f=Ra(s(ae,a.b,i,a.a));if(1===f.$)return v(Qu,!0,v(aa,a,n));var d=f.a;return s(Wu,!0,c(d),v(qa,i,a))}),Ka=v(t(function(n,r){return t={aa:nt(r),ag:n,ah:nt(r),ak:nt(r),an:ut(ne),a1:r,as:nt(r)},function(n){if(s(Da,48,n.b,n.a)){var r=n.b+1,e=r+1;return s(Da,120,r,n.a)?b(Ya,t.a1,t.ak,e,v(za,e,n.a),n):s(Da,111,r,n.a)?b(Ya,t.a1,t.as,e,s(Ma,8,e,n.a),n):s(Da,98,r,n.a)?b(Ya,t.a1,t.aa,e,s(Ma,2,e,n.a),n):d(Ba,t.a1,t.ag,t.an,t.ah,w(r,0),n)}return d(Ba,t.a1,t.ag,t.an,t.ah,s(Ma,10,n.b,n.a),n)};var t}),Pa,Pa),Qa=Ga({ae:"",ao:ga(_([v(Uu,na(function(n){return{$:1,a:n}}),Ga({ae:"m",ao:Ka,aI:";",aK:na(0),Y:"[",aN:0})),la])),aI:"",aK:na(0),Y:"",aN:1}),Wa=t(function(n,r){var t=v(Bu,Qa,r);if(1===t.$){t.a;return v(zu,_([hu("TODO deadEndsToString")]),n)}var e=t.a;return v(Iu,n,e)}),Za=t(function(n,r){return v(Mu,v(Wa,r.P,n),r)}),Ua=Yn("scrollTerm",iu),Xa=C(Ge,{S:9,T:!0}),Va=Cu(Xa),no=Yn("writeSocket",iu),ro=t(function(n,r){switch(n.$){case 0:var t=n.a+"\n";return w(C(r,{k:v(Va,t,r.k)}),Ze(_([Ua("term-output"),no(t)])));case 1:var e=n.a,u=C(o=s(Cu,Nu,"Connecting to: ["+e+"]...\n",r.k),{Q:ot((c=e,{$:1,a:c}))});return w(C(r,{k:u}),Ze(_([Ua("term-output"),Eu(e)])));case 3:var a=n.a;return w(C(r,{k:v(Za,a,r.k)}),Ua("term-output"));case 2:var o=s(Cu,Nu,"Connected!\n",r.k);u=function(){var n,t=v(Fu,Le,r.k.Q);if(1===t.$){var e=t.a;return C(o,{Q:ot((n=e,{$:0,a:n}))})}return r.k}();return w(C(r,{k:u}),Ua("term-output"));default:var i=n.a;u=v(Tu,i,r.k);return w(C(r,{k:u}),Ua("term-output"))}var c}),to=Vn("div"),eo=cu("id"),uo=t(function(n,r){if(r.$)return it;var t=r.a;return ot(n(t))}),ao=cu("placeholder"),oo=Vn("input"),io=mn,co=t(function(n,r){return v(tr,n,io(r))})("spellcheck"),fo=t(function(n,r){return v(to,_([fu("term-element")]),_([v(to,_([eo("term-url-bar")]),_([hu("Connected to:"),v(oo,_([eo("term-url-input"),co(!1),ao("ws://server-domain.com:port"),n]),N),function(n){switch(n.$){case 0:return hu("[CONNECTED]");case 1:return hu("[CONNECTING...]");default:return hu("[CLOSED]")}}(r)]))]))}),vo=Vn("textarea"),so=cu("value"),lo=Oe({a0:function(n){return w({k:We},Ue)},a8:function(n){return tu(_([au(ru(nu)),uu(Ve),eu(Xe)]))},ba:ro,bb:function(n){return r=n.k,v(to,_([fu("term")]),_([v(Fu,v(to,_([fu("term-element")]),N),v(uo,fo(r.R.at),r.Q)),v(to,_([fu("term-element"),eo("term-output")]),Vr(r.aq)),v(vo,_([fu("term-element"),eo("term-input"),co(!1),ao("Type a command here. Press [Enter] to submit."),r.R.au,so("")]),N)]));var r}});je={Main:{init:lo(Xt(0))(0)}},n.Elm?function n(r,t){for(var e in t)e in r?"init"==e?H(6):n(r[e],t[e]):r[e]=t[e]}(n.Elm,je):n.Elm=je}(this);class SockTerm extends HTMLElement{constructor(){super();var n=this.attachShadow({mode:"open"}),r=document.createElement("div");_initializeSocketPorts(Elm.Main.init({node:r}),n),n.appendChild(r);const t=document.createElement("style");t.innerText="#term-url-bar{display:flex;justify-content:space-between;align-items:baseline;background-color:#2472c8;color:#e5e5e5;padding:0 1%;font-family:monospace;font-size:medium}#term-url-input{background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;border:none;width:60%}.term{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-align:left;resize:both;overflow:hidden;font-size:x-large;font-family:monospace;padding-left:.01em;min-width:82ch;width:82ch;height:60.5ch}.term-element{font-family:inherit;font-size:inherit;width:100%}#term-input,#term-output{color:#e5e5e5;background-color:#1e1e1e;white-space:pre-wrap}#term-input{resize:none;min-height:2em;max-height:2em;overflow-y:auto}#term-output{overflow:hidden scroll;overflow-wrap:break-word;flex-grow:1}.term-bold{font-weight:700}.term-italic{font-style:italic}.term-underline{text-decoration:underline}.term-blink{animation:blinking 1s steps(1,end) infinite}@keyframes blinking{50%{opacity:0}}.term-reverse{background-color:#e5e5e5;color:#1e1e1e}.term-strike{text-decoration:line-through}.term-underline-strike{text-decoration:underline line-through}.term-black{color:#1e1e1e}.term-red{color:#cd3131}.term-green{color:#0dbc79}.term-yellow{color:#e5e510}.term-blue{color:#2472c8}.term-magenta{color:#bc3fbc}.term-cyan{color:#11a8cd}.term-white{color:#e5e5e5}.term-bright-black{color:#666}.term-bright-red{color:#f14c4c}.term-bright-green{color:#23d18b}.term-bright-yellow{color:#f5f543}.term-bright-blue{color:#3b8eea}.term-bright-magenta{color:#d670d6}.term-bright-cyan{color:#29b8db}.term-bright-white{color:#e5e5e5}.term-black-bg{background-color:#1e1e1e}.term-red-bg{background-color:#cd3131}.term-green-bg{background-color:#0dbc79}.term-yellow-bg{background-color:#e5e510}.term-blue-bg{background-color:#2472c8}.term-magenta-bg{background-color:#bc3fbc}.term-cyan-bg{background-color:#11a8cd}.term-white-bg{background-color:#e5e5e5}.term-bright-black-bg{background-color:#666}.term-bright-red-bg{background-color:#f14c4c}.term-bright-green-bg{background-color:#23d18b}.term-bright-yellow-bg{background-color:#f5f543}.term-bright-blue-bg{background-color:#3b8eea}.term-bright-magenta-bg{background-color:#d670d6}.term-bright-cyan-bg{background-color:#29b8db}.term-bright-white-bg{background-color:#e5e5e5}",n.appendChild(t)}}customElements.define("sock-term",SockTerm); +function _initializeSocketPorts(n,r){n.ws_term_socket=null;var t=null;function e(r){console.debug(r),n.ports.openSocket.send(null)}function u(r){console.debug(r),n.ports.msgSocket.send(r.data)}function a(n){console.error(n)}function o(r){console.log(r),n.ports.closeSocket.send(r.code)}n.ports.connectSocket.subscribe(n=>{null!=t&&(t.close(),t=null),(t=new WebSocket(n)).addEventListener("open",e),t.addEventListener("message",u),t.addEventListener("error",a),t.addEventListener("close",o)}),n.ports.writeSocket.subscribe(n=>{null!=t&&t.send(n)}),n.ports.scrollTerm.subscribe(n=>{var t=r.getElementById(n);null!==t?setTimeout(()=>{(t.scrollHeight-t.scrollTop-t.clientHeight)/t.clientHeight<.5&&t.scroll(0,t.scrollHeight)},50):console.err("Could not scroll "+n)})}function initializeSocketPorts(n){_initializeSocketPorts(n,document)}!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 o(n){return r(6,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(o){return n(r,t,e,u,a,o)}}}}}})}function i(n){return r(7,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(o){return function(i){return n(r,t,e,u,a,o,i)}}}}}}})}function c(n){return r(8,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(o){return function(i){return function(c){return n(r,t,e,u,a,o,i,c)}}}}}}}})}function f(n){return r(9,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(o){return function(i){return function(c){return function(f){return n(r,t,e,u,a,o,i,c,f)}}}}}}}}})}function s(n,r,t){return 2===n.a?n.f(r,t):n(r)(t)}function v(n,r,t,e){return 3===n.a?n.f(r,t,e):n(r)(t)(e)}function l(n,r,t,e,u){return 4===n.a?n.f(r,t,e,u):n(r)(t)(e)(u)}function b(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,o){return 6===n.a?n.f(r,t,e,u,a,o):n(r)(t)(e)(u)(a)(o)}function h(n,r,t,e,u,a,o,i){return 7===n.a?n.f(r,t,e,u,a,o,i):n(r)(t)(e)(u)(a)(o)(i)}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&&H(5),!1;if(t>100)return e.push(w(n,r)),!0;for(var u in n.$<0&&(n=Ur(n),r=Ur(r)),n)if(!m(n[u],r[u],t+1,e))return!1;return!0}t(g);var p=t(function(n,r){return!g(n,r)});function $(n,r,t){if("object"!=typeof n)return n===r?0:n0}),t(function(n,r){return $(n,r)>=0});var k=t(function(n,r){var t=$(n,r);return t<0?Qr:t?Kr:Br}),y=0;function w(n,r){return{a:n,b:r}}function A(n,r,t){return{a:n,b:r,c:t}}function S(n){return n}function C(n,r){var t={};for(var e in n)t[e]=n[e];for(var e in r)t[e]=r[e];return t}t(x);function x(n,r){if("string"==typeof n)return n+r;if(!n.b)return r;var t=T(n.a,r);n=n.b;for(var e=t;n.b;n=n.b)e=e.b=T(n.a,r);return t}var N={$:0};function T(n,r){return{$:1,a:n,b:r}}var j=t(T);function E(n){for(var r=N,t=n.length;t--;)r=T(n[t],r);return r}function _(n){for(var r=[];n.b;n=n.b)r.push(n.a);return r}var G=e(function(n,r,t){for(var e=[];r.b&&t.b;r=r.b,t=t.b)e.push(s(n,r.a,t.a));return E(e)});u(function(n,r,t,e){for(var u=[];r.b&&t.b&&e.b;r=r.b,t=t.b,e=e.b)u.push(v(n,r.a,t.a,e.a));return E(u)}),a(function(n,r,t,e,u){for(var a=[];r.b&&t.b&&e.b&&u.b;r=r.b,t=t.b,e=e.b,u=u.b)a.push(l(n,r.a,t.a,e.a,u.a));return E(a)}),o(function(n,r,t,e,u,a){for(var o=[];r.b&&t.b&&e.b&&u.b&&a.b;r=r.b,t=t.b,e=e.b,u=u.b,a=a.b)o.push(b(n,r.a,t.a,e.a,u.a,a.a));return E(o)}),t(function(n,r){return E(_(r).sort(function(r,t){return $(n(r),n(t))}))}),t(function(n,r){return E(_(r).sort(function(r,t){var e=s(n,r,t);return e===Br?0:e===Qr?-1:1}))});var L=e(function(n,r,t){for(var e=new Array(n),u=0;u=0;e--)r=s(n,t[e],r);return r}),I=(t(function(n,r){for(var t=r.length,e=new Array(t),u=0;ut.length&&(u=t.length);for(var a=new Array(e+u),o=0;o"),r});function H(n){throw new Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}t(function(n,r){return n+r}),t(function(n,r){return n-r}),t(function(n,r){return n*r}),t(function(n,r){return n/r}),t(function(n,r){return n/r|0}),t(Math.pow),t(function(n,r){return r%n}),t(function(n,r){var t=r%n;return 0===n?H(11):t>0&&n<0||t<0&&n>0?t+n:t}),Math.PI,Math.E,Math.cos,Math.sin,Math.tan,Math.acos,Math.asin,Math.atan,t(Math.atan2);var J=Math.ceil,R=Math.floor,B=(Math.round,Math.sqrt,Math.log);isNaN;t(function(n,r){return n&&r}),t(function(n,r){return n||r}),t(function(n,r){return n!==r}),t(function(n,r){return n+r});t(function(n,r){return n+r});t(function(n,r){for(var t=r.length,e=new Array(t),u=0;u-1}),X=(t(function(n,r){return 0===r.indexOf(n)}),t(function(n,r){return r.length>=n.length&&r.lastIndexOf(n)===r.length-n.length}),t(function(n,r){var t=n.length;if(t<1)return N;for(var e=0,u=[];(e=r.indexOf(n,e))>-1;)u.push(e),e+=t;return E(u)}));function V(n){return{$:2,b:n}}var nn=V(function(n){return"number"!=typeof n?dn("an INT",n):-2147483647=r.length)return dn("a LONGER array. Need index "+u+" but only see "+r.length+" entries",r);e=sn(n.b,r[u]);return Zt(e)?e:rt(s(ut,u,e.a));case 8:if("object"!=typeof r||null===r||ln(r))return dn("an OBJECT",r);var a=N;for(var o in r)if(r.hasOwnProperty(o)){e=sn(n.b,r[o]);if(!Zt(e))return rt(s(et,o,e.a));a=T(w(o,e.a),a)}return at(xt(a));case 9:for(var i=n.f,c=n.g,f=0;f=0&&t.splice(r,1)}}}function Kn(n,r){return Hn(n),Ln[n]={f:Wn,u:r,a:Zn},Mn(n)}var Qn,Wn=t(function(n,r){return function(t){return n(r(t))}});function Zn(n,r){var t=N,u=Ln[n].u,a=kn(null);return Ln[n].b=a,Ln[n].c=e(function(n,r,e){return t=r,a}),{send:function(n){var e=s(fn,u,pn(n));Zt(e)||H(4,e.a);for(var a=e.a,o=t;o.b;o=o.b)r(o.a(a))}}}var Un="undefined"!=typeof document?document:{};function Xn(n,r){n.appendChild(r)}u(function(n,r,t,e){var u=e.node;return u.parentNode.replaceChild(sr(n,function(){}),u),{}});function Vn(n){return{$:0,a:n}}var nr=t(function(n,r){return t(function(t,e){for(var u=[],a=0;e.b;e=e.b){var o=e.a;a+=o.b||0,u.push(o)}return a+=u.length,{$:1,c:r,d:cr(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 o=e.a;a+=o.b.b||0,u.push(o)}return a+=u.length,{$:2,c:r,d:cr(t),e:u,f:n,b:a}})})(void 0);t(function(n,r){return{$:4,j:n,k:r,b:1+(r.b||0)}});function rr(n,r){return{$:5,l:n,m:r,k:void 0}}t(function(n,r){return rr([n,r],function(){return n(r)})}),e(function(n,r,t){return rr([n,r,t],function(){return s(n,r,t)})}),u(function(n,r,t,e){return rr([n,r,t,e],function(){return v(n,r,t,e)})}),a(function(n,r,t,e,u){return rr([n,r,t,e,u],function(){return l(n,r,t,e,u)})}),o(function(n,r,t,e,u,a){return rr([n,r,t,e,u,a],function(){return b(n,r,t,e,u,a)})}),i(function(n,r,t,e,u,a,o){return rr([n,r,t,e,u,a,o],function(){return d(n,r,t,e,u,a,o)})}),c(function(n,r,t,e,u,a,o,i){return rr([n,r,t,e,u,a,o,i],function(){return h(n,r,t,e,u,a,o,i)})}),f(function(n,r,t,e,u,a,o,i,c){return rr([n,r,t,e,u,a,o,i,c],function(){return function(n,r,t,e,u,a,o,i,c){return 8===n.a?n.f(r,t,e,u,a,o,i,c):n(r)(t)(e)(u)(a)(o)(i)(c)}(n,r,t,e,u,a,o,i,c)})});var tr=t(function(n,r){return{$:"a0",n:n,o:r}}),er=(t(function(n,r){return{$:"a1",n:n,o:r}}),t(function(n,r){return{$:"a2",n:n,o:r}})),ur=t(function(n,r){return{$:"a3",n:n,o:r}});e(function(n,r,t){return{$:"a4",n:r,o:{f:n,o:t}}});t(function(n,r){return"a0"===r.$?s(tr,r.n,function(n,r){var t=ne(r);return{$:r.$,a:t?v(Xt,t<3?or:ir,Vt(n),r.a):s(Ut,n,r.a)}}(n,r.o)):r});var ar,or=t(function(n,r){return w(n(r.a),r.b)}),ir=t(function(n,r){return{u:n(r.u),Z:r.Z,W:r.W}});function cr(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 o=r[e]||(r[e]={});"a3"===e&&"class"===u?fr(o,u,a):o[u]=a}else"className"===u?fr(r,u,$n(a)):r[u]=$n(a)}return r}function fr(n,r,t){var e=n[r];n[r]=e?e+" "+t:t}function sr(n,r){var t=n.$;if(5===t)return sr(n.k||(n.k=n.m()),r);if(0===t)return Un.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(o=sr(e,a)).elm_event_node_ref=a,o}if(3===t)return vr(o=n.h(n.g),r,n.d),o;var o=n.f?Un.createElementNS(n.f,n.c):Un.createElement(n.c);Qn&&"a"==n.c&&o.addEventListener("click",Qn(o)),vr(o,r,n.d);for(var i=n.e,c=0;c0&&$r(t,1,e,s));case 4:for(var v=n.j,l=r.j,b=!1,d=n.k;4===d.$;)b=!0,"object"!=typeof v?v=[v,d.j]:v.push(d.j),d=d.k;for(var h=r.k;4===h.$;)b=!0,"object"!=typeof l?l=[l,h.j]:l.push(h.j),h=h.k;return b&&v.length!==l.length?void $r(t,0,e,r):((b?function(n,r){for(var t=0;ti?$r(t,6,e,{v:i,i:o-i}):o0||o.length>0||T)&&$r(t,8,e,{w:u,x:o,y:T})}var Cr="_elmW6BL";function xr(n,r,t,e,u,a){var o=n[t];if(!o)return o={c:0,z:e,r:u,s:void 0},a.push({r:u,A:o}),void(n[t]=o);if(1===o.c){a.push({r:u,A:o}),o.c=2;var i=[];return kr(o.z,e,i,o.r),o.r=u,void(o.s.s={w:i,A:o})}xr(n,r,t+Cr,e,u,a)}function Nr(n,r,t,e,u){var a=n[t];if(a){if(0===a.c){a.c=2;var o=[];return kr(e,a.z,o,u),void $r(r,9,u,{w:o,A:a})}Nr(n,r,t+Cr,e,u)}else{var i=$r(r,9,u,void 0);n[t]={c:1,z:e,r:u,s:i}}}function Tr(n,r,t,e){!function n(r,t,e,u,a,o,i){var c=e[u];var f=c.r;for(;f===a;){var s=c.$;if(1===s)Tr(r,t.k,c.s,i);else if(8===s){c.t=r,c.u=i;var v=c.s.w;v.length>0&&n(r,t,v,0,a,o,i)}else if(9===s){c.t=r,c.u=i;var l=c.s;if(l){l.A.s=r;var v=l.w;v.length>0&&n(r,t,v,0,a,o,i)}}else c.t=r,c.u=i;if(!(c=e[++u])||(f=c.r)>o)return u}var b=t.$;if(4===b){for(var d=t.k;4===d.$;)d=d.k;return n(r,d,e,u,a+1,o,r.elm_event_node_ref)}var h=t.e;var g=r.childNodes;for(var m=0;mo))return u;a=$}return u}(n,r,t,0,0,r.b,e)}function jr(n,r,t,e){return 0===t.length?n:(Tr(n,r,t,e),Er(n,t))}function Er(n,r){for(var t=0;t>n}),t(function(n,r){return r>>>n});var qr,Ir=a(function(n,r,t,e,u){for(var a=n.length,o=r+a<=u.length,i=0;o&&i0?n:r}),Ht=function(n){return{$:0,a:n}},Jt=O,Rt=t(function(n,r){for(;;){var t=s(Jt,32,n),e=t.a,u=t.b,a=s(Wr,Ht(e),r);if(!u.b)return xt(a);n=u,r=a}}),Bt=t(function(n,r){for(;;){var t=Lt(r/32);if(1===t)return s(Jt,32,n).a;n=s(Rt,n,N),r=t}}),Kt=t(function(n,r){if(r.f){var t=32*r.f,e=It(s(Ot,32,t-1)),u=n?xt(r.i):r.i,a=s(Bt,u,r.f);return l(_t,Dt(r.h)+t,s(Yt,5,e*Pt),a,r.h)}return l(_t,Dt(r.h),Pt,Gt,r.h)}),Qt=a(function(n,r,t,e,u){for(;;){if(r<0)return s(Kt,!1,{i:e,f:t/32|0,h:u});var a=Ft(v(zt,32,r,n));n=n,r=r-32,t=t,e=s(Wr,a,e),u=u}}),Wt=t(function(n,r){if(n<=0)return Mt;var t=n%32,e=v(zt,t,n-t,r);return b(Qt,r,n-t-32,n,N,e)}),Zt=function(n){return!n.$},Ut=on,Xt=cn,Vt=function(n){return{$:0,a:n}},ne=function(n){switch(n.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},re=function(n){return n},te=re,ee=o(function(n,r,t,e,u,a){return{ai:a,al:r,av:e,ax:t,aB:n,aC:u}}),ue=U,ae=function(n){return n.length},oe=W,ie=t(function(n,r){return n<1?r:v(oe,n,ae(r),r)}),ce=X,fe=function(n){return""===n},se=t(function(n,r){return n<1?"":v(oe,0,n,r)}),ve=function(n){for(var r=0,t=n.charCodeAt(0),e=43==t||45==t?1:0,u=e;u500?v(ht,n,r,xt(d)):l(pe,n,r,t+1,d)))))}return s(n,u,s(n,o,s(n,c,r)))}return s(n,u,s(n,o,r))}return s(n,u,r)}return r}),$e=e(function(n,r,t){return l(pe,n,r,0,t)}),ke=t(function(n,r){return v($e,t(function(r,t){return s(Wr,n(r),t)}),N,r)}),ye=wn,we=t(function(n,r){return s(ye,function(r){return ge(n(r))},r)}),Ae=e(function(n,r,t){return s(ye,function(r){return s(ye,function(t){return ge(s(n,r,t))},t)},r)}),Se=Pn,Ce=t(function(n,r){var t=r;return Cn(s(ye,Se(n),t))}),xe=e(function(n,r,t){return s(we,function(n){return 0},(e=s(ke,Ce(n),r),v($e,Ae(Wr),ge(N),e)));var e}),Ne=e(function(n,r,t){return ge(0)}),Te=t(function(n,r){return s(we,n,r)});Ln.Task={b:me,c:xe,d:Ne,e:Te,f:qr};var je,Ee,_e,Ge=Mn("Task"),Le=t(function(n,r){return Ge(s(we,n,r))}),Oe=Lr,Pe={$:2},Me={e:8,C:!1,D:!1,S:8,T:!1,A:!1,G:!1,H:!1},ze=t(function(n,r){return{at:n,au:r}}),Fe=u(function(n,r,t,e){return{R:e,P:t,aq:r,Q:n}}),qe=an,Ie=function(n){return{$:1,a:n}},De=en,Ye=tn,He=s(t(function(n,r){return v($e,De,r,n)}),E(["target","value"]),Ye),Je=function(n){return 13===n.ap?He:Ie("Shift key pressed with enter")},Re=t(function(n,r){return{ap:r,aJ:n}}),Be=nn,Ke=v(Xt,Re,s(De,"shiftKey",rn),s(De,"keyCode",Be)),Qe=tr,We=t(function(n,r){return s(Qe,n,{$:1,a:r})}),Ze=function(n){return 13===n.ap?n.aJ?Ie("Shift key pressed with enter"):He:Ie("Shift key pressed with enter")},Ue=l(u(function(n,r,t,e){return l(Fe,n,Mt,r,s(ze,function(n){return s(We,"keypress",s(Ut,function(r){return w(n(r),!1)},s(qe,Je,Ke)))}(t),function(n){return s(We,"keypress",s(Ut,function(r){return w(n(r),!1)},s(qe,Ze,Ke)))}(e)))}),it(Pe),it(Me),function(n){return{$:1,a:n}},function(n){return{$:0,a:n}}),Xe=zn,Ve=Xe(N),nu=function(n){return{$:4,a:n}},ru=function(n){return{$:3,a:n}},tu={$:2},eu=t(function(n,r){return n}),uu=zn,au=Kn("closeSocket",Be),ou=Kn("msgSocket",Ye),iu=Kn("openSocket",function(n){return{$:5,c:n}}(0)),cu=C(Me,{S:1,T:!0}),fu=pn,su=t(function(n,r){return s(er,n,fu(r))}),vu=su("className"),lu=t(function(n,r){var t=function(n){switch(n){case 0:return it("black");case 1:return it("red");case 2:return it("green");case 3:return it("yellow");case 4:return it("blue");case 5:return it("magenta");case 6:return it("cyan");case 7:return it("white");case 9:return it("bright-black");case 10:return it("bright-red");case 11:return it("bright-green");case 12:return it("bright-yellow");case 13:return it("bright-blue");case 14:return it("bright-magenta");case 15:return it("bright-cyan");case 16:return it("bright-white");default:return ct}}(n);if(t.$)return ct;var e=t.a;return it(vu(1===r?"term-"+e:"term-"+e+"-bg"))}),bu=t(function(n,r){return n?it(r):ct}),du=e(function(n,r,t){var e=n(r);if(e.$)return t;var u=e.a;return s(Wr,u,t)}),hu=t(function(n,r){return v($e,du(n),N,r)}),gu=nr("span"),mu=Vn,pu=t(function(n,r){var t=n.A?w(s(lu,n.e,1),s(lu,n.S,0)):w(s(lu,n.S,1),s(lu,n.e,0)),e=t.a,u=t.b,a=s(hu,re,x(function(n){return n.G&&n.H?s(Wr,s(bu,n.A,vu("term-reverse")),s(Wr,s(bu,n.C,vu("term-blink")),s(Wr,s(bu,n.T,vu("term-italic")),s(Wr,s(bu,n.D,vu("term-bold")),E([it(vu("term-underline-strike"))]))))):s(Wr,s(bu,n.G,vu("term-strike")),s(Wr,s(bu,n.A,vu("term-reverse")),s(Wr,s(bu,n.C,vu("term-blink")),s(Wr,s(bu,n.H,vu("term-underline")),s(Wr,s(bu,n.T,vu("term-italic")),s(Wr,s(bu,n.D,vu("term-bold")),N))))))}(n),s(Wr,u,s(Wr,e,N))));return s(gu,a,E([mu(r)]))}),$u=z,ku=4294967295>>>32-Pt,yu=function(n){return[n]},wu=P,Au=M,Su=u(function(n,r,t,e){var u=ku&r>>>n;if($(u,Dt(e))>-1){if(5===n)return s($u,Ft(t),e);var a=Ht(l(Su,n-Pt,r,t,Gt));return s($u,a,e)}var o=s(wu,u,e);if(o.$){a=Ht(l(Su,n-Pt,r,t,yu(o)));return v(Au,u,a,e)}var i=o.a,a=Ht(l(Su,n-Pt,r,t,i));return v(Au,u,a,e)}),Cu=t(function(n,r){var t=r.a,e=r.b,u=r.c,a=r.d,o=Dt(a),i=Dt(n),c=t+(i-o);if(g(i,32)){if($(c>>>Pt,1<0){var f=e+Pt,s=l(Su,f,t,n,yu(Ht(u)));return l(_t,c,f,s,Gt)}return l(_t,c,e,l(Su,e,t,n,u),Gt)}return l(_t,c,e,u,n)}),xu=t(function(n,r){var t=r.d;return s(Cu,s($u,n,t),r)}),Nu=e(function(n,r,t){var e=s(pu,n,r);return C(t,{aq:s(xu,e,t.aq)})}),Tu=t(function(n,r){var t=function(){switch(n){case 1015:return"Host not recognized. (1015)\n";case 1006:return"Connection closed. (1006)\n";default:return"Unknown error. ("+vt(n)+")\n"}}();return C(v(Nu,cu,t,r),{Q:it(Pe)})}),ju=C(Me,{S:4,T:!0}),Eu=Jn("connectSocket",fu),_u=D,Gu=I,Lu=t(function(n,r){var t=Dt(n),e=32-Dt(r.h)-t,u=v(_u,32,r.h,n);return e<0?{i:s(Wr,Ft(u),r.i),f:r.f+1,h:v(Gu,e,t,n)}:e?{i:r.i,f:r.f,h:u}:{i:s(Wr,Ft(u),r.i),f:r.f+1,h:Gt}}),Ou=t(function(n,r){r.a,r.c;var t=r.d,e=Dt(n),u=32-Dt(t)-e,a=v(_u,32,t,n),o=s(Cu,a,r);if(u<0){var i=v(Gu,u,e,n);return s(Cu,i,o)}return o}),Pu=F,Mu=t(function(n,r){n.d;var e=r.a,u=r.c,a=r.d;if($(e,128)<1){var o=t(function(n,r){if(n.$){var t=n.a;return s(Ou,t,r)}var e=n.a;return v(Pu,o,r,e)});return s(Ou,a,v(Pu,o,n,u))}o=t(function(n,r){if(n.$){var t=n.a;return s(Lu,t,r)}var e=n.a;return v(Pu,o,r,e)});return s(Kt,!0,s(Lu,a,v(Pu,o,function(n){var r=n.a,e=n.c,u=n.d,a=t(function(n,r){if(n.$)return s(Wr,n,r);var t=n.a;return v(Pu,a,r,t)});return{i:v(Pu,a,N,e),f:r/32|0,h:u}}(n),u)))}),zu=e(function(n,r,t){for(;;){var e=s(Jt,32,n),u=e.a,a=e.b;if($(Dt(u),32)<0)return s(Kt,!0,{i:r,f:t,h:u});n=a,r=s(Wr,Ft(u),r),t=t+1}}),Fu=t(function(n,r){var t,e=(t=n.a3).b?v(zu,t,N,0):Mt;return C(r,{P:r.P,aq:s(Mu,r.aq,e)})}),qu=t(function(n,r){return{P:r,a3:n}}),Iu=function(n){return function(n){switch(n.$){case 0:return"expecting '"+n.a+"'";case 1:return"expecting int";case 2:return"expecting hex";case 3:return"expecting octal";case 4:return"expecting binary";case 5:return"expecting float";case 6:return"expecting number";case 7:return"expecting variable";case 8:return"expecting symbol '"+n.a+"'";case 9:return"expecting keyword '"+n.a+"'";case 10:return"expecting end";case 11:return"unexpected char";case 12:return"problem "+n.a;default:return"bad repeat"}}(n.ay)+" at row "+vt(n.aG)+", col "+vt(n.ac)},Du=t(function(n,r){if(r.b){var e=r.a,u=r.b,a=t(function(r,t){return s(Wr,n,s(Wr,r,t))}),o=v($e,a,N,u);return s(Wr,e,o)}return N}),Yu=function(n){return r=s(Du,"; ",s(ke,Iu,n)),s(lt,"",r);var r},Hu=Y,Ju=t(function(n,r){switch(n){case 0:return Me;case 1:return C(r,{D:!0});case 3:return C(r,{T:!0});case 4:return C(r,{H:!0});case 5:case 6:return C(r,{C:!0});case 7:return C(r,{A:!0});case 9:return C(r,{G:!0});case 21:return C(r,{D:!1});case 23:return C(r,{T:!1});case 24:return C(r,{H:!1});case 27:return C(r,{A:!1});case 29:return C(r,{G:!1});case 30:return C(r,{S:0});case 31:return C(r,{S:1});case 32:return C(r,{S:2});case 33:return C(r,{S:3});case 34:return C(r,{S:4});case 35:return C(r,{S:5});case 36:return C(r,{S:6});case 37:return C(r,{S:7});case 38:return r;case 39:return C(r,{S:8});case 40:return C(r,{e:0});case 41:return C(r,{e:1});case 42:return C(r,{e:2});case 43:return C(r,{e:3});case 44:return C(r,{e:4});case 45:return C(r,{e:5});case 46:return C(r,{e:6});case 47:return C(r,{e:7});case 48:return r;case 49:return C(r,{e:8});case 90:return C(r,{S:9});case 91:return C(r,{S:10});case 92:return C(r,{S:11});case 93:return C(r,{S:12});case 94:return C(r,{S:13});case 95:return C(r,{S:14});case 96:return C(r,{S:15});case 97:return C(r,{S:16});case 100:return C(r,{e:9});case 101:return C(r,{e:10});case 102:return C(r,{e:11});case 103:return C(r,{e:12});case 104:return C(r,{e:13});case 105:return C(r,{e:14});case 106:return C(r,{e:15});case 107:return C(r,{e:16});default:return r}}),Ru=t(function(n,r){return r.$?n:r.a}),Bu=t(function(n,r){var t=s(Hu,"token: ",n);switch(t.$){case 1:var e=t.a,u=r.P;if(u.$)return r;var a=u.a;return C(r,{P:it(v(ht,Ju,a,e))});case 0:var o=t.a;a=s(Ru,Me,r.P);return C(r,{a3:s(Wr,s(pu,a,o),r.a3)});default:t.a,t.b;return r}}),Ku=t(function(n,r){var t=s(qu,N,n),e=v(ht,Bu,t,r);return C(e,{a3:xt(e.a3)})}),Qu=e(function(n,r,t){return{ac:r,ay:t,aG:n}}),Wu=function(n){return v(Qu,n.aG,n.ac,n.ay)},Zu=t(function(n,r){n:for(;;)switch(n.$){case 0:return r;case 1:var t=n.a,e=n.b;n=t,r=s(Wr,e,r);continue n;default:t=n.a;var u=n.b;n=t,r=s(Zu,u,r);continue n}}),Uu=t(function(n,r){var t=n({ac:1,c:N,d:1,b:0,aG:1,a:r});if(t.$){var e=t.b;return rt(s(Zu,e,N))}var u=t.b;return at(u)}),Xu=t(function(n,r){var t=s(Uu,n,r);if(t.$){var e=t.a;return rt(s(ke,Wu,e))}var u=t.a;return at(u)}),Vu={$:-2},na=t(function(n,r){return{$:1,a:n,b:r}}),ra=e(function(n,r,t){return{$:0,a:n,b:r,c:t}}),ta=e(function(n,r,t){var e=r,u=t;return function(r){var t=e(r);if(1===t.$){var a=t.a,o=t.b;return s(na,a,o)}var i=t.a,c=t.b,f=t.c,l=u(f);if(1===l.$){var b=l.a;o=l.b;return s(na,i||b,o)}b=l.a;var d=l.b,h=l.c;return v(ra,i||b,s(n,c,d),h)}}),ea=t(function(n,r){return v(ta,qt,n,r)}),ua=p,aa=function(n){return function(r){return v(ra,!1,n,r)}},oa=aa,ia={$:7},ca=t(function(n,r){return{$:1,a:n,b:r}}),fa=u(function(n,r,t,e){return{ac:r,aW:e,ay:t,aG:n}}),sa={$:0},va=t(function(n,r){return s(ca,sa,l(fa,n.aG,n.ac,r,n.c))}),la=Dr,ba=k,da=t(function(n,r){n:for(;;){if(-2===r.$)return ct;var t=r.b,e=r.c,u=r.d,a=r.e;switch(s(ba,n,t)){case 0:n=n,r=u;continue n;case 1:return it(e);default:n=n,r=a;continue n}}}),ha=t(function(n,r){return!s(da,n,r).$}),ga=t(function(n,r){return s(ha,n,r)}),ma=i(function(n,r,t,e,u,a,o){for(;;){var i=v(la,n,r,u);if(g(i,-1))return{ac:e,c:o,d:a,b:r,aG:t,a:u};if(g(i,-2))n=n,r=r+1,t=t+1,e=1,u=u,a=a,o=o;else n=n,r=i,t=t,e=e+1,u=u,a=a,o=o}}),pa=function(n){return function(n){return function(r){var t=v(la,n.Y,r.b,r.a);if(g(t,-1))return s(na,!1,s(va,r,n.ag));var e=g(t,-2)?h(ma,n.am,r.b+1,r.aG+1,1,r.a,r.d,r.c):h(ma,n.am,t,r.aG,r.ac+1,r.a,r.d,r.c),u=v(oe,r.b,e.b,r.a);return s(ga,u,n.aF)?s(na,!1,s(va,r,n.ag)):v(ra,!0,u,e)}}({ag:ia,am:n.am,aF:n.aF,Y:n.Y})},$a=s(ea,oa(function(n){return{$:0,a:n}}),pa({am:ua(""),aF:Vu,Y:ua("")})),ka=t(function(n,r){return{$:2,a:n,b:r}}),ya=e(function(n,r,t){n:for(;;){if(t.b){var e=t.a,u=t.b,a=e(n);if(a.$){var o,i=(o=a).a,c=o.b;if(i)return o;n=n,r=s(ka,r,c),t=u;continue n}return o=a}return s(na,!1,r)}}),wa=function(n){return function(r){return v(ya,r,sa,n)}},Aa=wa,Sa=t(function(n,r){var t=r;return function(r){var e=t(r);if(1===e.$){var u=e.a,a=e.b;return s(na,u,a)}var o=e.a,i=e.b,c=e.c,f=n(i)(c);if(1===f.$){var l=f.a;a=f.b;return s(na,o||l,a)}l=f.a;var b=f.b,d=f.c;return v(ra,o||l,b,d)}}),Ca=t(function(n,r){return v(ta,eu,n,r)}),xa=u(function(n,r,t,e){for(;;){var u=t(r)(e);if(u.$){o=u.a;var a=u.b;return s(na,n||o,a)}var o=u.a,i=u.b,c=u.c;if(i.$){var f=i.a;return v(ra,n||o,f,c)}var l=i.a;n=n||o,r=l,t=t,e=c}}),Na=t(function(n,r){return function(t){return l(xa,!1,n,r,t)}}),Ta=t(function(n,r){var t=r;return function(r){var e=t(r);if(e.$){a=e.a;var u=e.b;return s(na,a,u)}var a=e.a,o=e.b,i=e.c;return v(ra,a,n(o),i)}}),ja=function(n){return{$:1,a:n}},Ea=function(n){return{$:0,a:n}},_a=t(function(n,r){return r}),Ga=t(function(n,r){return v(ta,_a,n,r)}),La=a(function(n,r,t,e,u){return s(Ga,r,wa(E([s(Ga,e,s(Ga,r,s(Ta,function(n){return Ea(s(Wr,n,u))},t))),s(Ta,function(n){return ja(xt(u))},n)])))}),Oa=u(function(n,r,t,e){return wa(E([s(Ta,function(n){return Ea(s(Wr,n,e))},s(Ca,r,s(Ca,n,s(Ca,t,n)))),s(Ta,function(n){return ja(xt(e))},aa(0))]))}),Pa=a(function(n,r,t,e,u){var a=s(Ta,function(n){return ja(xt(u))},n);return s(Ga,r,wa(E([s(Ga,e,s(Ga,r,wa(E([s(Ta,function(n){return Ea(s(Wr,n,u))},t),a])))),a])))}),Ma=a(function(n,r,t,e,u){return wa(E([s(Sa,function(a){switch(u){case 0:return s(Na,E([a]),l(La,n,r,t,e));case 1:return s(Na,E([a]),l(Pa,n,r,t,e));default:return s(Ca,s(Ga,r,s(Ga,e,s(Ga,r,s(Na,E([a]),v(Oa,r,t,e))))),n)}},t),s(Ta,function(n){return N},n)]))}),za=Ir,Fa=function(n){var r=n.a,t=n.b,e=!fe(r);return function(n){var u=b(za,r,n.b,n.aG,n.ac,n.a),a=u.a,o=u.b,i=u.c;return g(a,-1)?s(na,!1,s(va,n,t)):v(ra,e,0,{ac:i,c:n.c,d:n.d,b:a,aG:o,a:n.a})}},qa=t(function(n,r){return{$:0,a:n,b:r}}),Ia=function(n){return s(qa,n,{$:0,a:n})},Da=function(n){return function(n){return s(Ga,Fa(n.Y),s(Ga,n.aK,b(Ma,Fa(n.ae),n.aK,n.ao,Fa(n.aI),n.aN)))}({ae:Ia(n.ae),ao:n.ao,aI:Ia(n.aI),aK:n.aK,Y:Ia(n.Y),aN:function(n){switch(n){case 0:return 0;case 1:return 1;default:return 2}}(n.aN)})},Ya=Sa,Ha=a(function(n,r,t,e,u){for(;;){var a=v(la,n,r,u.a);if(g(a,-1))return v(ra,$(u.b,r)<0,0,{ac:e,c:u.c,d:u.d,b:r,aG:t,a:u.a});if(g(a,-2))n=n,r=r+1,t=t+1,e=1,u=u;else n=n,r=a,t=t,e=e+1,u=u}}),Ja=function(n){return function(r){return b(Ha,n,r.b,r.aG,r.ac,r)}},Ra=t(function(n,r){var t=r;return function(r){var e=t(r);if(1===e.$){var u=e.a,a=e.b;return s(na,u,a)}u=e.a;var o=e.b,i=e.c;return v(ra,u,s(n,v(oe,r.b,i.b,r.a),o),i)}}),Ba=function(n){return s(Ra,eu,n)},Ka={$:1},Qa=Jr,Wa=Rr,Za=t(function(n,r){return{ac:r.ac+(n-r.b),c:r.c,d:r.d,b:n,aG:r.aG,a:r.a}}),Ua=Hr,Xa=Yr,Va=t(function(n,r){if(v(Xa,101,n,r)||v(Xa,69,n,r)){var t=n+1,e=v(Xa,43,t,r)||v(Xa,45,t,r)?t+1:t,u=s(Ua,e,r);return g(e,u)?-u:u}return n}),no=t(function(n,r){return v(Xa,46,n,r)?s(Va,s(Ua,n+1,r),r):s(Va,n,r)}),ro=a(function(n,r,t,e,u){var a=e.a,o=e.b;if(1===r.$){var i=r.a;return s(na,!0,s(va,u,i))}var c=r.a;return g(t,a)?s(na,$(u.b,t)<0,s(va,u,n)):v(ra,!0,c(o),s(Za,a,u))}),to=u(function(n,r,t,e){return s(ca,sa,l(fa,n,r,t,e))}),eo=function(n){if(0===n.length||/[\sxbo]/.test(n))return ct;var r=+n;return r==r?it(r):ct},uo=o(function(n,r,t,e,u,a){var o=u.a,i=s(no,o,a.a);if(i<0)return s(na,!0,l(to,a.aG,a.ac-(i+a.b),n,a.c));if(g(a.b,i))return s(na,!1,s(va,a,r));if(g(o,i))return b(ro,n,t,a.b,u,a);if(1===e.$){e.a;return s(na,!0,s(va,a,n))}var c=e.a,f=eo(v(oe,a.b,i,a.a));if(1===f.$)return s(na,!0,s(va,a,n));var d=f.a;return v(ra,!0,c(d),s(Za,i,a))}),ao=s(t(function(n,r){return t={aa:rt(r),ag:n,ah:rt(r),ak:rt(r),an:at(re),a1:r,as:rt(r)},function(n){if(v(Xa,48,n.b,n.a)){var r=n.b+1,e=r+1;return v(Xa,120,r,n.a)?b(ro,t.a1,t.ak,e,s(Wa,e,n.a),n):v(Xa,111,r,n.a)?b(ro,t.a1,t.as,e,v(Qa,8,e,n.a),n):v(Xa,98,r,n.a)?b(ro,t.a1,t.aa,e,v(Qa,2,e,n.a),n):d(uo,t.a1,t.ag,t.an,t.ah,w(r,0),n)}return d(uo,t.a1,t.ag,t.an,t.ah,v(Qa,10,n.b,n.a),n)};var t}),Ka,Ka),oo=s(Ya,function(n){return""===n?ao:Aa(E([ao,oa(0)]))},Ba(Ja(function(n){return"0"===n}))),io=s(ea,oa(function(n){return{$:1,a:n}}),Da({ae:"m",ao:oo,aI:";",aK:oa(0),Y:"[",aN:0})),co=t(function(n,r){return{$:2,a:n,b:r}}),fo=Ca,so={$:11},vo=t(function(n,r){return function(t){var e=v(la,n,t.b,t.a);return g(e,-1)?s(na,!1,s(va,t,r)):g(e,-2)?v(ra,!0,0,{ac:1,c:t.c,d:t.d,b:t.b+1,aG:t.aG+1,a:t.a}):v(ra,!0,0,{ac:t.ac+1,c:t.c,d:t.d,b:e,aG:t.aG,a:t.a})}}),lo=Ba((je=eu(!0),s(vo,je,so))),bo=Fa,ho=s(ea,s(ea,s(fo,oa(co),bo(s(qa,Ee="",{$:8,a:Ee}))),lo),Da({ae:"",ao:pa({am:function(n){return";"!==n&&""!==n},aF:Vu,Y:eu(!0)}),aI:";",aK:oa(0),Y:"",aN:0})),go=Da({ae:"",ao:Aa(E([io,$a,ho])),aI:"",aK:oa(0),Y:"",aN:1}),mo=t(function(n,r){var t=s(Xu,go,r);if(1===t.$){var e=t.a;return s(qu,E([mu(s(Hu,"uh-oh",Yu(e)))]),n)}var u=t.a;return s(Ku,n,u)}),po=t(function(n,r){return s(Fu,s(mo,r.P,n),r)}),$o=Jn("scrollTerm",fu),ko=C(Me,{S:9,T:!0}),yo=Nu(ko),wo=Jn("writeSocket",fu),Ao=t(function(n,r){switch(n.$){case 0:var t=n.a+"\n";return w(C(r,{k:s(yo,t,r.k)}),Xe(E([$o("term-output"),wo(t)])));case 1:var e=n.a,u=C(o=v(Nu,ju,"Connecting to: ["+e+"]...\n",r.k),{Q:it((c=e,{$:1,a:c}))});return w(C(r,{k:u}),Xe(E([$o("term-output"),Eu(e)])));case 3:var a=n.a;return w(C(r,{k:s(po,a,r.k)}),$o("term-output"));case 2:var o=v(Nu,ju,"Connected!\n",r.k);u=function(){var n,t=s(Ru,Pe,r.k.Q);if(1===t.$){var e=t.a;return C(o,{Q:it((n=e,{$:0,a:n}))})}return r.k}();return w(C(r,{k:u}),$o("term-output"));default:var i=n.a;u=s(Tu,i,r.k);return w(C(r,{k:u}),$o("term-output"))}var c}),So=nr("div"),Co=su("id"),xo=t(function(n,r){if(r.$)return ct;var t=r.a;return it(n(t))}),No=su("placeholder"),To=nr("input"),jo=pn,Eo=t(function(n,r){return s(er,n,jo(r))})("spellcheck"),_o=t(function(n,r){return s(So,E([vu("term-element")]),E([s(So,E([Co("term-url-bar")]),E([mu("Connected to:"),s(To,E([Co("term-url-input"),Eo(!1),No("ws://server-domain.com:port"),n]),N),function(n){switch(n.$){case 0:return mu("[CONNECTED]");case 1:return mu("[CONNECTING...]");default:return mu("[CLOSED]")}}(r)]))]))}),Go=nr("textarea"),Lo=su("value"),Oo=Oe({a0:function(n){return w({k:Ue},Ve)},a8:function(n){return uu(E([iu(eu(tu)),ou(ru),au(nu)]))},ba:Ao,bb:function(n){return r=n.k,s(So,E([vu("term")]),E([s(Ru,s(So,E([vu("term-element")]),N),s(xo,_o(r.R.at),r.Q)),s(So,E([vu("term-element"),Co("term-output")]),nt(r.aq)),s(Go,E([vu("term-element"),Co("term-input"),Eo(!1),No("Type a command here. Press [Enter] to submit."),r.R.au,Lo("")]),N)]));var r}});_e={Main:{init:Oo(Vt(0))(0)}},n.Elm?function n(r,t){for(var e in t)e in r?"init"==e?H(6):n(r[e],t[e]):r[e]=t[e]}(n.Elm,_e):n.Elm=_e}(this);class SockTerm extends HTMLElement{constructor(){super();var n=this.attachShadow({mode:"open"}),r=document.createElement("div");_initializeSocketPorts(Elm.Main.init({node:r}),n),n.appendChild(r);const t=document.createElement("style");t.innerText="#term-url-bar{display:flex;justify-content:space-between;align-items:baseline;background-color:#2472c8;color:#e5e5e5;padding:0 1%;font-family:monospace;font-size:medium}#term-url-input{background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;border:none;width:60%}.term{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-align:left;resize:both;overflow:hidden;font-size:x-large;font-family:monospace;padding-left:.01em;min-width:82ch;width:82ch;height:60.5ch}.term-element{font-family:inherit;font-size:inherit;width:100%}#term-input,#term-output{color:#e5e5e5;background-color:#1e1e1e;white-space:pre-wrap}#term-input{resize:none;min-height:2em;max-height:2em;overflow-y:auto}#term-output{overflow:hidden scroll;overflow-wrap:break-word;flex-grow:1}.term-bold{font-weight:700}.term-italic{font-style:italic}.term-underline{text-decoration:underline}.term-blink{animation:blinking 1s steps(1,end) infinite}@keyframes blinking{50%{opacity:0}}.term-reverse{background-color:#e5e5e5;color:#1e1e1e}.term-strike{text-decoration:line-through}.term-underline-strike{text-decoration:underline line-through}.term-black{color:#1e1e1e}.term-red{color:#cd3131}.term-green{color:#0dbc79}.term-yellow{color:#e5e510}.term-blue{color:#2472c8}.term-magenta{color:#bc3fbc}.term-cyan{color:#11a8cd}.term-white{color:#e5e5e5}.term-bright-black{color:#666}.term-bright-red{color:#f14c4c}.term-bright-green{color:#23d18b}.term-bright-yellow{color:#f5f543}.term-bright-blue{color:#3b8eea}.term-bright-magenta{color:#d670d6}.term-bright-cyan{color:#29b8db}.term-bright-white{color:#e5e5e5}.term-black-bg{background-color:#1e1e1e}.term-red-bg{background-color:#cd3131}.term-green-bg{background-color:#0dbc79}.term-yellow-bg{background-color:#e5e510}.term-blue-bg{background-color:#2472c8}.term-magenta-bg{background-color:#bc3fbc}.term-cyan-bg{background-color:#11a8cd}.term-white-bg{background-color:#e5e5e5}.term-bright-black-bg{background-color:#666}.term-bright-red-bg{background-color:#f14c4c}.term-bright-green-bg{background-color:#23d18b}.term-bright-yellow-bg{background-color:#f5f543}.term-bright-blue-bg{background-color:#3b8eea}.term-bright-magenta-bg{background-color:#d670d6}.term-bright-cyan-bg{background-color:#29b8db}.term-bright-white-bg{background-color:#e5e5e5}",n.appendChild(t)}}customElements.define("sock-term",SockTerm); diff --git a/dist/sockterm.min.js b/dist/sockterm.min.js index 910a977..861f533 100644 --- a/dist/sockterm.min.js +++ b/dist/sockterm.min.js @@ -1 +1 @@ -function _initializeSocketPorts(n,r){n.ws_term_socket=null;var t=null;function e(r){console.debug(r),n.ports.openSocket.send(null)}function u(r){console.debug(r),n.ports.msgSocket.send(r.data)}function a(n){console.error(n)}function i(r){console.log(r),n.ports.closeSocket.send(r.code)}n.ports.connectSocket.subscribe(n=>{null!=t&&(t.close(),t=null),(t=new WebSocket(n)).addEventListener("open",e),t.addEventListener("message",u),t.addEventListener("error",a),t.addEventListener("close",i)}),n.ports.writeSocket.subscribe(n=>{null!=t&&t.send(n)}),n.ports.scrollTerm.subscribe(n=>{var t=r.getElementById(n);null!==t?setTimeout(()=>{(t.scrollHeight-t.scrollTop-t.clientHeight)/t.clientHeight<.5&&t.scroll(0,t.scrollHeight)},50):console.err("Could not scroll "+n)})}function initializeSocketPorts(n){_initializeSocketPorts(n,document)}!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 o(n){return r(7,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(i){return function(o){return n(r,t,e,u,a,i,o)}}}}}}})}function f(n){return r(8,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(i){return function(o){return function(f){return n(r,t,e,u,a,i,o,f)}}}}}}}})}function c(n){return r(9,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(i){return function(o){return function(f){return function(c){return n(r,t,e,u,a,i,o,f,c)}}}}}}}}})}function v(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 l(n,r,t,e,u){return 4===n.a?n.f(r,t,e,u):n(r)(t)(e)(u)}function b(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 h(n,r,t,e,u,a,i,o){return 7===n.a?n.f(r,t,e,u,a,i,o):n(r)(t)(e)(u)(a)(i)(o)}function g(n,r){for(var t,e=[],u=$(n,r,0,e);u&&(t=e.pop());u=$(t.a,t.b,0,e));return u}function $(n,r,t,e){if(n===r)return!0;if("object"!=typeof n||null===n||null===r)return"function"==typeof n&&z(5),!1;if(t>100)return e.push(w(n,r)),!0;for(var u in n.$<0&&(n=Zr(n),r=Zr(r)),n)if(!$(n[u],r[u],t+1,e))return!1;return!0}t(g);var m=t(function(n,r){return!g(n,r)});function p(n,r,t){if("object"!=typeof n)return n===r?0:n0}),t(function(n,r){return p(n,r)>=0});var k=t(function(n,r){var t=p(n,r);return t<0?Kr:t?Br:Rr}),y=0;function w(n,r){return{a:n,b:r}}function A(n,r,t){return{a:n,b:r,c:t}}function S(n){return n}function C(n,r){var t={};for(var e in n)t[e]=n[e];for(var e in r)t[e]=r[e];return t}t(N);function N(n,r){if("string"==typeof n)return n+r;if(!n.b)return r;var t=j(n.a,r);n=n.b;for(var e=t;n.b;n=n.b)e=e.b=j(n.a,r);return t}var T={$:0};function j(n,r){return{$:1,a:n,b:r}}var E=t(j);function _(n){for(var r=T,t=n.length;t--;)r=j(n[t],r);return r}function O(n){for(var r=[];n.b;n=n.b)r.push(n.a);return r}var L=e(function(n,r,t){for(var e=[];r.b&&t.b;r=r.b,t=t.b)e.push(v(n,r.a,t.a));return _(e)});u(function(n,r,t,e){for(var u=[];r.b&&t.b&&e.b;r=r.b,t=t.b,e=e.b)u.push(s(n,r.a,t.a,e.a));return _(u)}),a(function(n,r,t,e,u){for(var a=[];r.b&&t.b&&e.b&&u.b;r=r.b,t=t.b,e=e.b,u=u.b)a.push(l(n,r.a,t.a,e.a,u.a));return _(a)}),i(function(n,r,t,e,u,a){for(var i=[];r.b&&t.b&&e.b&&u.b&&a.b;r=r.b,t=t.b,e=e.b,u=u.b,a=a.b)i.push(b(n,r.a,t.a,e.a,u.a,a.a));return _(i)}),t(function(n,r){return _(O(r).sort(function(r,t){return p(n(r),n(t))}))}),t(function(n,r){return _(O(r).sort(function(r,t){var e=v(n,r,t);return e===Rr?0:e===Kr?-1:1}))});var G=e(function(n,r,t){for(var e=new Array(n),u=0;u=0;e--)r=v(n,t[e],r);return r}),I=(t(function(n,r){for(var t=r.length,e=new Array(t),u=0;ut.length&&(u=t.length);for(var a=new Array(e+u),i=0;i"),r});function z(n){throw new Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}t(function(n,r){return n+r}),t(function(n,r){return n-r}),t(function(n,r){return n*r}),t(function(n,r){return n/r}),t(function(n,r){return n/r|0}),t(Math.pow),t(function(n,r){return r%n}),t(function(n,r){var t=r%n;return 0===n?z(11):t>0&&n<0||t<0&&n>0?t+n:t}),Math.PI,Math.E,Math.cos,Math.sin,Math.tan,Math.acos,Math.asin,Math.atan,t(Math.atan2);var H=Math.ceil,J=Math.floor,R=(Math.round,Math.sqrt,Math.log);isNaN;t(function(n,r){return n&&r}),t(function(n,r){return n||r}),t(function(n,r){return n!==r}),t(function(n,r){return n+r});t(function(n,r){return n+r});t(function(n,r){for(var t=r.length,e=new Array(t),u=0;u-1}),U=(t(function(n,r){return 0===r.indexOf(n)}),t(function(n,r){return r.length>=n.length&&r.lastIndexOf(n)===r.length-n.length}),t(function(n,r){var t=n.length;if(t<1)return T;for(var e=0,u=[];(e=r.indexOf(n,e))>-1;)u.push(e),e+=t;return _(u)}));function X(n){return{$:2,b:n}}var V=X(function(n){return"number"!=typeof n?bn("an INT",n):-2147483647=r.length)return bn("a LONGER array. Need index "+u+" but only see "+r.length+" entries",r);e=cn(n.b,r[u]);return Wt(e)?e:nt(v(et,u,e.a));case 8:if("object"!=typeof r||null===r||sn(r))return bn("an OBJECT",r);var a=T;for(var i in r)if(r.hasOwnProperty(i)){e=cn(n.b,r[i]);if(!Wt(e))return nt(v(tt,i,e.a));a=j(w(i,e.a),a)}return ut(Ct(a));case 9:for(var o=n.f,f=n.g,c=0;c=0&&t.splice(r,1)}}}function Bn(n,r){return zn(n),Ln[n]={f:Qn,u:r,a:Wn},xn(n)}var Kn,Qn=t(function(n,r){return function(t){return n(r(t))}});function Wn(n,r){var t=T,u=Ln[n].u,a=pn(null);return Ln[n].b=a,Ln[n].c=e(function(n,r,e){return t=r,a}),{send:function(n){var e=v(fn,u,$n(n));Wt(e)||z(4,e.a);for(var a=e.a,i=t;i.b;i=i.b)r(i.a(a))}}}var Zn="undefined"!=typeof document?document:{};function Un(n,r){n.appendChild(r)}u(function(n,r,t,e){var u=e.node;return u.parentNode.replaceChild(cr(n,function(){}),u),{}});function Xn(n){return{$:0,a:n}}var Vn=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:or(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:or(t),e:u,f:n,b:a}})})(void 0);t(function(n,r){return{$:4,j:n,k:r,b:1+(r.b||0)}});function nr(n,r){return{$:5,l:n,m:r,k:void 0}}t(function(n,r){return nr([n,r],function(){return n(r)})}),e(function(n,r,t){return nr([n,r,t],function(){return v(n,r,t)})}),u(function(n,r,t,e){return nr([n,r,t,e],function(){return s(n,r,t,e)})}),a(function(n,r,t,e,u){return nr([n,r,t,e,u],function(){return l(n,r,t,e,u)})}),i(function(n,r,t,e,u,a){return nr([n,r,t,e,u,a],function(){return b(n,r,t,e,u,a)})}),o(function(n,r,t,e,u,a,i){return nr([n,r,t,e,u,a,i],function(){return d(n,r,t,e,u,a,i)})}),f(function(n,r,t,e,u,a,i,o){return nr([n,r,t,e,u,a,i,o],function(){return h(n,r,t,e,u,a,i,o)})}),c(function(n,r,t,e,u,a,i,o,f){return nr([n,r,t,e,u,a,i,o,f],function(){return function(n,r,t,e,u,a,i,o,f){return 8===n.a?n.f(r,t,e,u,a,i,o,f):n(r)(t)(e)(u)(a)(i)(o)(f)}(n,r,t,e,u,a,i,o,f)})});var rr=t(function(n,r){return{$:"a0",n:n,o:r}}),tr=(t(function(n,r){return{$:"a1",n:n,o:r}}),t(function(n,r){return{$:"a2",n:n,o:r}})),er=t(function(n,r){return{$:"a3",n:n,o:r}});e(function(n,r,t){return{$:"a4",n:r,o:{f:n,o:t}}});t(function(n,r){return"a0"===r.$?v(rr,r.n,function(n,r){var t=Vt(r);return{$:r.$,a:t?s(Ut,t<3?ar:ir,Xt(n),r.a):v(Zt,n,r.a)}}(n,r.o)):r});var ur,ar=t(function(n,r){return w(n(r.a),r.b)}),ir=t(function(n,r){return{u:n(r.u),Z:r.Z,W:r.W}});function or(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?fr(i,u,a):i[u]=a}else"className"===u?fr(r,u,mn(a)):r[u]=mn(a)}return r}function fr(n,r,t){var e=n[r];n[r]=e?e+" "+t:t}function cr(n,r){var t=n.$;if(5===t)return cr(n.k||(n.k=n.m()),r);if(0===t)return Zn.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=cr(e,a)).elm_event_node_ref=a,i}if(3===t)return vr(i=n.h(n.g),r,n.d),i;var i=n.f?Zn.createElementNS(n.f,n.c):Zn.createElement(n.c);Kn&&"a"==n.c&&i.addEventListener("click",Kn(i)),vr(i,r,n.d);for(var o=n.e,f=0;f0&&mr(t,1,e,v));case 4:for(var s=n.j,l=r.j,b=!1,d=n.k;4===d.$;)b=!0,"object"!=typeof s?s=[s,d.j]:s.push(d.j),d=d.k;for(var h=r.k;4===h.$;)b=!0,"object"!=typeof l?l=[l,h.j]:l.push(h.j),h=h.k;return b&&s.length!==l.length?void mr(t,0,e,r):((b?function(n,r){for(var t=0;to?mr(t,6,e,{v:o,i:i-o}):i0||i.length>0||j)&&mr(t,8,e,{w:u,x:i,y:j})}var Sr="_elmW6BL";function Cr(n,r,t,e,u,a){var i=n[t];if(!i)return i={c:0,z:e,r:u,s:void 0},a.push({r:u,A:i}),void(n[t]=i);if(1===i.c){a.push({r:u,A:i}),i.c=2;var o=[];return pr(i.z,e,o,i.r),i.r=u,void(i.s.s={w:o,A:i})}Cr(n,r,t+Sr,e,u,a)}function Nr(n,r,t,e,u){var a=n[t];if(a){if(0===a.c){a.c=2;var i=[];return pr(e,a.z,i,u),void mr(r,9,u,{w:i,A:a})}Nr(n,r,t+Sr,e,u)}else{var o=mr(r,9,u,void 0);n[t]={c:1,z:e,r:u,s:o}}}function Tr(n,r,t,e){!function n(r,t,e,u,a,i,o){var f=e[u];var c=f.r;for(;c===a;){var v=f.$;if(1===v)Tr(r,t.k,f.s,o);else if(8===v){f.t=r,f.u=o;var s=f.s.w;s.length>0&&n(r,t,s,0,a,i,o)}else if(9===v){f.t=r,f.u=o;var l=f.s;if(l){l.A.s=r;var s=l.w;s.length>0&&n(r,t,s,0,a,i,o)}}else f.t=r,f.u=o;if(!(f=e[++u])||(c=f.r)>i)return u}var b=t.$;if(4===b){for(var d=t.k;4===d.$;)d=d.k;return n(r,d,e,u,a+1,i,r.elm_event_node_ref)}var h=t.e;var g=r.childNodes;for(var $=0;$i))return u;a=p}return u}(n,r,t,0,0,r.b,e)}function jr(n,r,t,e){return 0===t.length?n:(Tr(n,r,t,e),Er(n,t))}function Er(n,r){for(var t=0;t>n}),t(function(n,r){return r>>>n});var Fr,Dr=a(function(n,r,t,e,u){for(var a=n.length,i=r+a<=u.length,o=0;i&&o0?n:r}),zt=function(n){return{$:0,a:n}},Ht=P,Jt=t(function(n,r){for(;;){var t=v(Ht,32,n),e=t.a,u=t.b,a=v(Qr,zt(e),r);if(!u.b)return Ct(a);n=u,r=a}}),Rt=t(function(n,r){for(;;){var t=Lt(r/32);if(1===t)return v(Ht,32,n).a;n=v(Jt,n,T),r=t}}),Bt=t(function(n,r){if(r.f){var t=32*r.f,e=Dt(v(Gt,32,t-1)),u=n?Ct(r.i):r.i,a=v(Rt,u,r.f);return l(_t,It(r.h)+t,v(Yt,5,e*Pt),a,r.h)}return l(_t,It(r.h),Pt,Ot,r.h)}),Kt=a(function(n,r,t,e,u){for(;;){if(r<0)return v(Bt,!1,{i:e,f:t/32|0,h:u});var a=qt(s(Mt,32,r,n));n=n,r=r-32,t=t,e=v(Qr,a,e),u=u}}),Qt=t(function(n,r){if(n<=0)return xt;var t=n%32,e=s(Mt,t,n-t,r);return b(Kt,r,n-t-32,n,T,e)}),Wt=function(n){return!n.$},Zt=an,Ut=on,Xt=function(n){return{$:0,a:n}},Vt=function(n){switch(n.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},ne=function(n){return n},re=ne,te=i(function(n,r,t,e,u,a){return{ai:a,al:r,av:e,ax:t,aB:n,aC:u}}),ee=Z,ue=function(n){return n.length},ae=Q,ie=t(function(n,r){return n<1?r:s(ae,n,ue(r),r)}),oe=U,fe=function(n){return""===n},ce=t(function(n,r){return n<1?"":s(ae,0,n,r)}),ve=function(n){for(var r=0,t=n.charCodeAt(0),e=43==t||45==t?1:0,u=e;u500?s(dt,n,r,Ct(d)):l($e,n,r,t+1,d)))))}return v(n,u,v(n,i,v(n,f,r)))}return v(n,u,v(n,i,r))}return v(n,u,r)}return r}),me=e(function(n,r,t){return l($e,n,r,0,t)}),pe=t(function(n,r){return s(me,t(function(r,t){return v(Qr,n(r),t)}),T,r)}),ke=yn,ye=t(function(n,r){return v(ke,function(r){return he(n(r))},r)}),we=e(function(n,r,t){return v(ke,function(r){return v(ke,function(t){return he(v(n,r,t))},t)},r)}),Ae=Pn,Se=t(function(n,r){var t=r;return Sn(v(ke,Ae(n),t))}),Ce=e(function(n,r,t){return v(ye,function(n){return 0},(e=v(pe,Se(n),r),s(me,we(Qr),he(T),e)));var e}),Ne=e(function(n,r,t){return he(0)}),Te=t(function(n,r){return v(ye,n,r)});Ln.Task={b:ge,c:Ce,d:Ne,e:Te,f:Fr};var je,Ee,_e=xn("Task"),Oe=t(function(n,r){return _e(v(ye,n,r))}),Le=Lr,Ge={$:2},Pe={e:8,C:!1,D:!1,S:8,T:!1,A:!1,G:!1,H:!1},xe=t(function(n,r){return{at:n,au:r}}),Me=u(function(n,r,t,e){return{R:e,P:t,aq:r,Q:n}}),qe=un,Fe=function(n){return{$:1,a:n}},De=tn,Ie=rn,Ye=v(t(function(n,r){return s(me,De,r,n)}),_(["target","value"]),Ie),ze=function(n){return 13===n.ap?Ye:Fe("Shift key pressed with enter")},He=t(function(n,r){return{ap:r,aJ:n}}),Je=V,Re=s(Ut,He,v(De,"shiftKey",nn),v(De,"keyCode",Je)),Be=rr,Ke=t(function(n,r){return v(Be,n,{$:1,a:r})}),Qe=function(n){return 13===n.ap?n.aJ?Fe("Shift key pressed with enter"):Ye:Fe("Shift key pressed with enter")},We=l(u(function(n,r,t,e){return l(Me,n,xt,r,v(xe,function(n){return v(Ke,"keypress",v(Zt,function(r){return w(n(r),!1)},v(qe,ze,Re)))}(t),function(n){return v(Ke,"keypress",v(Zt,function(r){return w(n(r),!1)},v(qe,Qe,Re)))}(e)))}),it(Ge),it(Pe),function(n){return{$:1,a:n}},function(n){return{$:0,a:n}}),Ze=Mn,Ue=Ze(T),Xe=function(n){return{$:4,a:n}},Ve=function(n){return{$:3,a:n}},nu={$:2},ru=t(function(n,r){return n}),tu=Mn,eu=Bn("closeSocket",Je),uu=Bn("msgSocket",Ie),au=Bn("openSocket",function(n){return{$:5,c:n}}(0)),iu=C(Pe,{S:1,T:!0}),ou=$n,fu=t(function(n,r){return v(tr,n,ou(r))}),cu=fu("className"),vu=t(function(n,r){var t=function(n){switch(n){case 0:return it("black");case 1:return it("red");case 2:return it("green");case 3:return it("yellow");case 4:return it("blue");case 5:return it("magenta");case 6:return it("cyan");case 7:return it("white");case 9:return it("bright-black");case 10:return it("bright-red");case 11:return it("bright-green");case 12:return it("bright-yellow");case 13:return it("bright-blue");case 14:return it("bright-magenta");case 15:return it("bright-cyan");case 16:return it("bright-white");default:return ot}}(n);if(t.$)return ot;var e=t.a;return it(cu(1===r?"term-"+e:"term-"+e+"-bg"))}),su=t(function(n,r){return n?it(r):ot}),lu=e(function(n,r,t){var e=n(r);if(e.$)return t;var u=e.a;return v(Qr,u,t)}),bu=t(function(n,r){return s(me,lu(n),T,r)}),du=Vn("span"),hu=Xn,gu=t(function(n,r){var t=n.A?w(v(vu,n.e,1),v(vu,n.S,0)):w(v(vu,n.S,1),v(vu,n.e,0)),e=t.a,u=t.b,a=v(bu,ne,N(function(n){return n.G&&n.H?v(Qr,v(su,n.A,cu("term-reverse")),v(Qr,v(su,n.C,cu("term-blink")),v(Qr,v(su,n.T,cu("term-italic")),v(Qr,v(su,n.D,cu("term-bold")),_([it(cu("term-underline-strike"))]))))):v(Qr,v(su,n.G,cu("term-strike")),v(Qr,v(su,n.A,cu("term-reverse")),v(Qr,v(su,n.C,cu("term-blink")),v(Qr,v(su,n.H,cu("term-underline")),v(Qr,v(su,n.T,cu("term-italic")),v(Qr,v(su,n.D,cu("term-bold")),T))))))}(n),v(Qr,u,v(Qr,e,T))));return v(du,a,_([hu(r)]))}),$u=q,mu=4294967295>>>32-Pt,pu=function(n){return[n]},ku=x,yu=M,wu=u(function(n,r,t,e){var u=mu&r>>>n;if(p(u,It(e))>-1){if(5===n)return v($u,qt(t),e);var a=zt(l(wu,n-Pt,r,t,Ot));return v($u,a,e)}var i=v(ku,u,e);if(i.$){a=zt(l(wu,n-Pt,r,t,pu(i)));return s(yu,u,a,e)}var o=i.a,a=zt(l(wu,n-Pt,r,t,o));return s(yu,u,a,e)}),Au=t(function(n,r){var t=r.a,e=r.b,u=r.c,a=r.d,i=It(a),o=It(n),f=t+(o-i);if(g(o,32)){if(p(f>>>Pt,1<0){var c=e+Pt,v=l(wu,c,t,n,pu(zt(u)));return l(_t,f,c,v,Ot)}return l(_t,f,e,l(wu,e,t,n,u),Ot)}return l(_t,f,e,u,n)}),Su=t(function(n,r){var t=r.d;return v(Au,v($u,n,t),r)}),Cu=e(function(n,r,t){var e=v(gu,n,r);return C(t,{aq:v(Su,e,t.aq)})}),Nu=t(function(n,r){var t=function(){switch(n){case 1015:return"Host not recognized. (1015)\n";case 1006:return"Connection closed. (1006)\n";default:return"Unknown error. ("+vt(n)+")\n"}}();return C(s(Cu,iu,t,r),{Q:it(Ge)})}),Tu=C(Pe,{S:4,T:!0}),ju=Hn("connectSocket",ou),Eu=Y,_u=I,Ou=t(function(n,r){var t=It(n),e=32-It(r.h)-t,u=s(Eu,32,r.h,n);return e<0?{i:v(Qr,qt(u),r.i),f:r.f+1,h:s(_u,e,t,n)}:e?{i:r.i,f:r.f,h:u}:{i:v(Qr,qt(u),r.i),f:r.f+1,h:Ot}}),Lu=t(function(n,r){r.a,r.c;var t=r.d,e=It(n),u=32-It(t)-e,a=s(Eu,32,t,n),i=v(Au,a,r);if(u<0){var o=s(_u,u,e,n);return v(Au,o,i)}return i}),Gu=F,Pu=t(function(n,r){n.d;var e=r.a,u=r.c,a=r.d;if(p(e,128)<1){var i=t(function(n,r){if(n.$){var t=n.a;return v(Lu,t,r)}var e=n.a;return s(Gu,i,r,e)});return v(Lu,a,s(Gu,i,n,u))}i=t(function(n,r){if(n.$){var t=n.a;return v(Ou,t,r)}var e=n.a;return s(Gu,i,r,e)});return v(Bt,!0,v(Ou,a,s(Gu,i,function(n){var r=n.a,e=n.c,u=n.d,a=t(function(n,r){if(n.$)return v(Qr,n,r);var t=n.a;return s(Gu,a,r,t)});return{i:s(Gu,a,T,e),f:r/32|0,h:u}}(n),u)))}),xu=e(function(n,r,t){for(;;){var e=v(Ht,32,n),u=e.a,a=e.b;if(p(It(u),32)<0)return v(Bt,!0,{i:r,f:t,h:u});n=a,r=v(Qr,qt(u),r),t=t+1}}),Mu=t(function(n,r){var t,e=(t=n.a3).b?s(xu,t,T,0):xt;return C(r,{P:r.P,aq:v(Pu,r.aq,e)})}),qu=t(function(n,r){return{P:r,a3:n}}),Fu=t(function(n,r){switch(n){case 0:return Pe;case 1:return C(r,{D:!0});case 3:return C(r,{T:!0});case 4:return C(r,{H:!0});case 5:case 6:return C(r,{C:!0});case 7:return C(r,{A:!0});case 9:return C(r,{G:!0});case 21:return C(r,{D:!1});case 23:return C(r,{T:!1});case 24:return C(r,{H:!1});case 27:return C(r,{A:!1});case 29:return C(r,{G:!1});case 30:return C(r,{S:0});case 31:return C(r,{S:1});case 32:return C(r,{S:2});case 33:return C(r,{S:3});case 34:return C(r,{S:4});case 35:return C(r,{S:5});case 36:return C(r,{S:6});case 37:return C(r,{S:7});case 38:return r;case 39:return C(r,{S:8});case 40:return C(r,{e:0});case 41:return C(r,{e:1});case 42:return C(r,{e:2});case 43:return C(r,{e:3});case 44:return C(r,{e:4});case 45:return C(r,{e:5});case 46:return C(r,{e:6});case 47:return C(r,{e:7});case 48:return r;case 49:return C(r,{e:8});case 90:return C(r,{S:9});case 91:return C(r,{S:10});case 92:return C(r,{S:11});case 93:return C(r,{S:12});case 94:return C(r,{S:13});case 95:return C(r,{S:14});case 96:return C(r,{S:15});case 97:return C(r,{S:16});case 100:return C(r,{e:9});case 101:return C(r,{e:10});case 102:return C(r,{e:11});case 103:return C(r,{e:12});case 104:return C(r,{e:13});case 105:return C(r,{e:14});case 106:return C(r,{e:15});case 107:return C(r,{e:16});default:return r}}),Du=t(function(n,r){return r.$?n:r.a}),Iu=t(function(n,r){if(1===n.$){var t=n.a,e=r.P;if(e.$)return r;var u=e.a;return C(r,{P:it(s(dt,Fu,u,t))})}var a=n.a;u=v(Du,Pe,r.P);return C(r,{a3:v(Qr,v(gu,u,a),r.a3)})}),Yu=t(function(n,r){var t=v(qu,T,n),e=s(dt,Iu,t,r);return C(e,{a3:Ct(e.a3)})}),zu=e(function(n,r,t){return{ac:r,ay:t,aG:n}}),Hu=function(n){return s(zu,n.aG,n.ac,n.ay)},Ju=t(function(n,r){n:for(;;)switch(n.$){case 0:return r;case 1:var t=n.a,e=n.b;n=t,r=v(Qr,e,r);continue n;default:t=n.a;var u=n.b;n=t,r=v(Ju,u,r);continue n}}),Ru=t(function(n,r){var t=n({ac:1,c:T,d:1,b:0,aG:1,a:r});if(t.$){var e=t.b;return nt(v(Ju,e,T))}var u=t.b;return ut(u)}),Bu=t(function(n,r){var t=v(Ru,n,r);if(t.$){var e=t.a;return nt(v(pe,Hu,e))}var u=t.a;return ut(u)}),Ku={$:-2},Qu=t(function(n,r){return{$:1,a:n,b:r}}),Wu=e(function(n,r,t){return{$:0,a:n,b:r,c:t}}),Zu=e(function(n,r,t){var e=r,u=t;return function(r){var t=e(r);if(1===t.$){var a=t.a,i=t.b;return v(Qu,a,i)}var o=t.a,f=t.b,c=t.c,l=u(c);if(1===l.$){var b=l.a;i=l.b;return v(Qu,o||b,i)}b=l.a;var d=l.b,h=l.c;return s(Wu,o||b,v(n,f,d),h)}}),Uu=t(function(n,r){return s(Zu,Ft,n,r)}),Xu=m,Vu=function(n){return function(r){return s(Wu,!1,n,r)}},na=Vu,ra={$:7},ta=t(function(n,r){return{$:1,a:n,b:r}}),ea=u(function(n,r,t,e){return{ac:r,aW:e,ay:t,aG:n}}),ua={$:0},aa=t(function(n,r){return v(ta,ua,l(ea,n.aG,n.ac,r,n.c))}),ia=Ir,oa=k,fa=t(function(n,r){n:for(;;){if(-2===r.$)return ot;var t=r.b,e=r.c,u=r.d,a=r.e;switch(v(oa,n,t)){case 0:n=n,r=u;continue n;case 1:return it(e);default:n=n,r=a;continue n}}}),ca=t(function(n,r){return!v(fa,n,r).$}),va=t(function(n,r){return v(ca,n,r)}),sa=o(function(n,r,t,e,u,a,i){for(;;){var o=s(ia,n,r,u);if(g(o,-1))return{ac:e,c:i,d:a,b:r,aG:t,a:u};if(g(o,-2))n=n,r=r+1,t=t+1,e=1,u=u,a=a,i=i;else n=n,r=o,t=t,e=e+1,u=u,a=a,i=i}}),la=v(Uu,na(function(n){return{$:0,a:n}}),(je={am:Xu(""),aF:Ku,Y:Xu("")},function(n){return function(r){var t=s(ia,n.Y,r.b,r.a);if(g(t,-1))return v(Qu,!1,v(aa,r,n.ag));var e=g(t,-2)?h(sa,n.am,r.b+1,r.aG+1,1,r.a,r.d,r.c):h(sa,n.am,t,r.aG,r.ac+1,r.a,r.d,r.c),u=s(ae,r.b,e.b,r.a);return v(va,u,n.aF)?v(Qu,!1,v(aa,r,n.ag)):s(Wu,!0,u,e)}}({ag:ra,am:je.am,aF:je.aF,Y:je.Y}))),ba=t(function(n,r){return{$:2,a:n,b:r}}),da=e(function(n,r,t){n:for(;;){if(t.b){var e=t.a,u=t.b,a=e(n);if(a.$){var i,o=(i=a).a,f=i.b;if(o)return i;n=n,r=v(ba,r,f),t=u;continue n}return i=a}return v(Qu,!1,r)}}),ha=function(n){return function(r){return s(da,r,ua,n)}},ga=ha,$a=t(function(n,r){var t=r;return function(r){var e=t(r);if(1===e.$){var u=e.a,a=e.b;return v(Qu,u,a)}var i=e.a,o=e.b,f=e.c,c=n(o)(f);if(1===c.$){var l=c.a;a=c.b;return v(Qu,i||l,a)}l=c.a;var b=c.b,d=c.c;return s(Wu,i||l,b,d)}}),ma=t(function(n,r){return s(Zu,ru,n,r)}),pa=u(function(n,r,t,e){for(;;){var u=t(r)(e);if(u.$){i=u.a;var a=u.b;return v(Qu,n||i,a)}var i=u.a,o=u.b,f=u.c;if(o.$){var c=o.a;return s(Wu,n||i,c,f)}var l=o.a;n=n||i,r=l,t=t,e=f}}),ka=t(function(n,r){return function(t){return l(pa,!1,n,r,t)}}),ya=t(function(n,r){var t=r;return function(r){var e=t(r);if(e.$){a=e.a;var u=e.b;return v(Qu,a,u)}var a=e.a,i=e.b,o=e.c;return s(Wu,a,n(i),o)}}),wa=function(n){return{$:1,a:n}},Aa=function(n){return{$:0,a:n}},Sa=t(function(n,r){return r}),Ca=t(function(n,r){return s(Zu,Sa,n,r)}),Na=a(function(n,r,t,e,u){return v(Ca,r,ha(_([v(Ca,e,v(Ca,r,v(ya,function(n){return Aa(v(Qr,n,u))},t))),v(ya,function(n){return wa(Ct(u))},n)])))}),Ta=u(function(n,r,t,e){return ha(_([v(ya,function(n){return Aa(v(Qr,n,e))},v(ma,r,v(ma,n,v(ma,t,n)))),v(ya,function(n){return wa(Ct(e))},Vu(0))]))}),ja=a(function(n,r,t,e,u){var a=v(ya,function(n){return wa(Ct(u))},n);return v(Ca,r,ha(_([v(Ca,e,v(Ca,r,ha(_([v(ya,function(n){return Aa(v(Qr,n,u))},t),a])))),a])))}),Ea=a(function(n,r,t,e,u){return ha(_([v($a,function(a){switch(u){case 0:return v(ka,_([a]),l(Na,n,r,t,e));case 1:return v(ka,_([a]),l(ja,n,r,t,e));default:return v(ma,v(Ca,r,v(Ca,e,v(Ca,r,v(ka,_([a]),s(Ta,r,t,e))))),n)}},t),v(ya,function(n){return T},n)]))}),_a=Dr,Oa=function(n){var r=n.a,t=n.b,e=!fe(r);return function(n){var u=b(_a,r,n.b,n.aG,n.ac,n.a),a=u.a,i=u.b,o=u.c;return g(a,-1)?v(Qu,!1,v(aa,n,t)):s(Wu,e,0,{ac:o,c:n.c,d:n.d,b:a,aG:i,a:n.a})}},La=t(function(n,r){return{$:0,a:n,b:r}}),Ga=function(n){return v(La,n,{$:0,a:n})},Pa=function(n){return function(n){return v(Ca,Oa(n.Y),v(Ca,n.aK,b(Ea,Oa(n.ae),n.aK,n.ao,Oa(n.aI),n.aN)))}({ae:Ga(n.ae),ao:n.ao,aI:Ga(n.aI),aK:n.aK,Y:Ga(n.Y),aN:function(n){switch(n){case 0:return 0;case 1:return 1;default:return 2}}(n.aN)})},xa={$:1},Ma=Hr,qa=Jr,Fa=t(function(n,r){return{ac:r.ac+(n-r.b),c:r.c,d:r.d,b:n,aG:r.aG,a:r.a}}),Da=zr,Ia=Yr,Ya=t(function(n,r){if(s(Ia,101,n,r)||s(Ia,69,n,r)){var t=n+1,e=s(Ia,43,t,r)||s(Ia,45,t,r)?t+1:t,u=v(Da,e,r);return g(e,u)?-u:u}return n}),za=t(function(n,r){return s(Ia,46,n,r)?v(Ya,v(Da,n+1,r),r):v(Ya,n,r)}),Ha=a(function(n,r,t,e,u){var a=e.a,i=e.b;if(1===r.$){var o=r.a;return v(Qu,!0,v(aa,u,o))}var f=r.a;return g(t,a)?v(Qu,p(u.b,t)<0,v(aa,u,n)):s(Wu,!0,f(i),v(Fa,a,u))}),Ja=u(function(n,r,t,e){return v(ta,ua,l(ea,n,r,t,e))}),Ra=function(n){if(0===n.length||/[\sxbo]/.test(n))return ot;var r=+n;return r==r?it(r):ot},Ba=i(function(n,r,t,e,u,a){var i=u.a,o=v(za,i,a.a);if(o<0)return v(Qu,!0,l(Ja,a.aG,a.ac-(o+a.b),n,a.c));if(g(a.b,o))return v(Qu,!1,v(aa,a,r));if(g(i,o))return b(Ha,n,t,a.b,u,a);if(1===e.$){e.a;return v(Qu,!0,v(aa,a,n))}var f=e.a,c=Ra(s(ae,a.b,o,a.a));if(1===c.$)return v(Qu,!0,v(aa,a,n));var d=c.a;return s(Wu,!0,f(d),v(Fa,o,a))}),Ka=v(t(function(n,r){return t={aa:nt(r),ag:n,ah:nt(r),ak:nt(r),an:ut(ne),a1:r,as:nt(r)},function(n){if(s(Ia,48,n.b,n.a)){var r=n.b+1,e=r+1;return s(Ia,120,r,n.a)?b(Ha,t.a1,t.ak,e,v(qa,e,n.a),n):s(Ia,111,r,n.a)?b(Ha,t.a1,t.as,e,s(Ma,8,e,n.a),n):s(Ia,98,r,n.a)?b(Ha,t.a1,t.aa,e,s(Ma,2,e,n.a),n):d(Ba,t.a1,t.ag,t.an,t.ah,w(r,0),n)}return d(Ba,t.a1,t.ag,t.an,t.ah,s(Ma,10,n.b,n.a),n)};var t}),xa,xa),Qa=Pa({ae:"",ao:ga(_([v(Uu,na(function(n){return{$:1,a:n}}),Pa({ae:"m",ao:Ka,aI:";",aK:na(0),Y:"[",aN:0})),la])),aI:"",aK:na(0),Y:"",aN:1}),Wa=t(function(n,r){var t=v(Bu,Qa,r);if(1===t.$){t.a;return v(qu,_([hu("TODO deadEndsToString")]),n)}var e=t.a;return v(Yu,n,e)}),Za=t(function(n,r){return v(Mu,v(Wa,r.P,n),r)}),Ua=Hn("scrollTerm",ou),Xa=C(Pe,{S:9,T:!0}),Va=Cu(Xa),ni=Hn("writeSocket",ou),ri=t(function(n,r){switch(n.$){case 0:var t=n.a+"\n";return w(C(r,{k:v(Va,t,r.k)}),Ze(_([Ua("term-output"),ni(t)])));case 1:var e=n.a,u=C(i=s(Cu,Tu,"Connecting to: ["+e+"]...\n",r.k),{Q:it((f=e,{$:1,a:f}))});return w(C(r,{k:u}),Ze(_([Ua("term-output"),ju(e)])));case 3:var a=n.a;return w(C(r,{k:v(Za,a,r.k)}),Ua("term-output"));case 2:var i=s(Cu,Tu,"Connected!\n",r.k);u=function(){var n,t=v(Du,Ge,r.k.Q);if(1===t.$){var e=t.a;return C(i,{Q:it((n=e,{$:0,a:n}))})}return r.k}();return w(C(r,{k:u}),Ua("term-output"));default:var o=n.a;u=v(Nu,o,r.k);return w(C(r,{k:u}),Ua("term-output"))}var f}),ti=Vn("div"),ei=fu("id"),ui=t(function(n,r){if(r.$)return ot;var t=r.a;return it(n(t))}),ai=fu("placeholder"),ii=Vn("input"),oi=$n,fi=t(function(n,r){return v(tr,n,oi(r))})("spellcheck"),ci=t(function(n,r){return v(ti,_([cu("term-element")]),_([v(ti,_([ei("term-url-bar")]),_([hu("Connected to:"),v(ii,_([ei("term-url-input"),fi(!1),ai("ws://server-domain.com:port"),n]),T),function(n){switch(n.$){case 0:return hu("[CONNECTED]");case 1:return hu("[CONNECTING...]");default:return hu("[CLOSED]")}}(r)]))]))}),vi=Vn("textarea"),si=fu("value"),li=Le({a0:function(n){return w({k:We},Ue)},a8:function(n){return tu(_([au(ru(nu)),uu(Ve),eu(Xe)]))},ba:ri,bb:function(n){return r=n.k,v(ti,_([cu("term")]),_([v(Du,v(ti,_([cu("term-element")]),T),v(ui,ci(r.R.at),r.Q)),v(ti,_([cu("term-element"),ei("term-output")]),Vr(r.aq)),v(vi,_([cu("term-element"),ei("term-input"),fi(!1),ai("Type a command here. Press [Enter] to submit."),r.R.au,si("")]),T)]));var r}});Ee={Main:{init:li(Xt(0))(0)}},n.Elm?function n(r,t){for(var e in t)e in r?"init"==e?z(6):n(r[e],t[e]):r[e]=t[e]}(n.Elm,Ee):n.Elm=Ee}(this); +function _initializeSocketPorts(n,r){n.ws_term_socket=null;var t=null;function e(r){console.debug(r),n.ports.openSocket.send(null)}function u(r){console.debug(r),n.ports.msgSocket.send(r.data)}function a(n){console.error(n)}function i(r){console.log(r),n.ports.closeSocket.send(r.code)}n.ports.connectSocket.subscribe(n=>{null!=t&&(t.close(),t=null),(t=new WebSocket(n)).addEventListener("open",e),t.addEventListener("message",u),t.addEventListener("error",a),t.addEventListener("close",i)}),n.ports.writeSocket.subscribe(n=>{null!=t&&t.send(n)}),n.ports.scrollTerm.subscribe(n=>{var t=r.getElementById(n);null!==t?setTimeout(()=>{(t.scrollHeight-t.scrollTop-t.clientHeight)/t.clientHeight<.5&&t.scroll(0,t.scrollHeight)},50):console.err("Could not scroll "+n)})}function initializeSocketPorts(n){_initializeSocketPorts(n,document)}!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 o(n){return r(7,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(i){return function(o){return n(r,t,e,u,a,i,o)}}}}}}})}function c(n){return r(8,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(i){return function(o){return function(c){return n(r,t,e,u,a,i,o,c)}}}}}}}})}function f(n){return r(9,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(i){return function(o){return function(c){return function(f){return n(r,t,e,u,a,i,o,c,f)}}}}}}}}})}function v(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 l(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 h(n,r,t,e,u,a,i,o){return 7===n.a?n.f(r,t,e,u,a,i,o):n(r)(t)(e)(u)(a)(i)(o)}function g(n,r){for(var t,e=[],u=$(n,r,0,e);u&&(t=e.pop());u=$(t.a,t.b,0,e));return u}function $(n,r,t,e){if(n===r)return!0;if("object"!=typeof n||null===n||null===r)return"function"==typeof n&&H(5),!1;if(t>100)return e.push(w(n,r)),!0;for(var u in n.$<0&&(n=Ur(n),r=Ur(r)),n)if(!$(n[u],r[u],t+1,e))return!1;return!0}t(g);var p=t(function(n,r){return!g(n,r)});function m(n,r,t){if("object"!=typeof n)return n===r?0:n0}),t(function(n,r){return m(n,r)>=0});var k=t(function(n,r){var t=m(n,r);return t<0?Qr:t?Kr:Br}),y=0;function w(n,r){return{a:n,b:r}}function A(n,r,t){return{a:n,b:r,c:t}}function S(n){return n}function C(n,r){var t={};for(var e in n)t[e]=n[e];for(var e in r)t[e]=r[e];return t}t(N);function N(n,r){if("string"==typeof n)return n+r;if(!n.b)return r;var t=T(n.a,r);n=n.b;for(var e=t;n.b;n=n.b)e=e.b=T(n.a,r);return t}var j={$:0};function T(n,r){return{$:1,a:n,b:r}}var E=t(T);function x(n){for(var r=j,t=n.length;t--;)r=T(n[t],r);return r}function _(n){for(var r=[];n.b;n=n.b)r.push(n.a);return r}var G=e(function(n,r,t){for(var e=[];r.b&&t.b;r=r.b,t=t.b)e.push(v(n,r.a,t.a));return x(e)});u(function(n,r,t,e){for(var u=[];r.b&&t.b&&e.b;r=r.b,t=t.b,e=e.b)u.push(s(n,r.a,t.a,e.a));return x(u)}),a(function(n,r,t,e,u){for(var a=[];r.b&&t.b&&e.b&&u.b;r=r.b,t=t.b,e=e.b,u=u.b)a.push(b(n,r.a,t.a,e.a,u.a));return x(a)}),i(function(n,r,t,e,u,a){for(var i=[];r.b&&t.b&&e.b&&u.b&&a.b;r=r.b,t=t.b,e=e.b,u=u.b,a=a.b)i.push(l(n,r.a,t.a,e.a,u.a,a.a));return x(i)}),t(function(n,r){return x(_(r).sort(function(r,t){return m(n(r),n(t))}))}),t(function(n,r){return x(_(r).sort(function(r,t){var e=v(n,r,t);return e===Br?0:e===Qr?-1:1}))});var L=e(function(n,r,t){for(var e=new Array(n),u=0;u=0;e--)r=v(n,t[e],r);return r}),D=(t(function(n,r){for(var t=r.length,e=new Array(t),u=0;ut.length&&(u=t.length);for(var a=new Array(e+u),i=0;i"),r});function H(n){throw new Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}t(function(n,r){return n+r}),t(function(n,r){return n-r}),t(function(n,r){return n*r}),t(function(n,r){return n/r}),t(function(n,r){return n/r|0}),t(Math.pow),t(function(n,r){return r%n}),t(function(n,r){var t=r%n;return 0===n?H(11):t>0&&n<0||t<0&&n>0?t+n:t}),Math.PI,Math.E,Math.cos,Math.sin,Math.tan,Math.acos,Math.asin,Math.atan,t(Math.atan2);var J=Math.ceil,R=Math.floor,B=(Math.round,Math.sqrt,Math.log);isNaN;t(function(n,r){return n&&r}),t(function(n,r){return n||r}),t(function(n,r){return n!==r}),t(function(n,r){return n+r});t(function(n,r){return n+r});t(function(n,r){for(var t=r.length,e=new Array(t),u=0;u-1}),X=(t(function(n,r){return 0===r.indexOf(n)}),t(function(n,r){return r.length>=n.length&&r.lastIndexOf(n)===r.length-n.length}),t(function(n,r){var t=n.length;if(t<1)return j;for(var e=0,u=[];(e=r.indexOf(n,e))>-1;)u.push(e),e+=t;return x(u)}));function V(n){return{$:2,b:n}}var nn=V(function(n){return"number"!=typeof n?dn("an INT",n):-2147483647=r.length)return dn("a LONGER array. Need index "+u+" but only see "+r.length+" entries",r);e=vn(n.b,r[u]);return Zt(e)?e:rt(v(ut,u,e.a));case 8:if("object"!=typeof r||null===r||bn(r))return dn("an OBJECT",r);var a=j;for(var i in r)if(r.hasOwnProperty(i)){e=vn(n.b,r[i]);if(!Zt(e))return rt(v(et,i,e.a));a=T(w(i,e.a),a)}return at(Nt(a));case 9:for(var o=n.f,c=n.g,f=0;f=0&&t.splice(r,1)}}}function Kn(n,r){return Hn(n),Ln[n]={f:Wn,u:r,a:Zn},Fn(n)}var Qn,Wn=t(function(n,r){return function(t){return n(r(t))}});function Zn(n,r){var t=j,u=Ln[n].u,a=kn(null);return Ln[n].b=a,Ln[n].c=e(function(n,r,e){return t=r,a}),{send:function(n){var e=v(fn,u,pn(n));Zt(e)||H(4,e.a);for(var a=e.a,i=t;i.b;i=i.b)r(i.a(a))}}}var Un="undefined"!=typeof document?document:{};function Xn(n,r){n.appendChild(r)}u(function(n,r,t,e){var u=e.node;return u.parentNode.replaceChild(vr(n,function(){}),u),{}});function Vn(n){return{$:0,a:n}}var nr=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:cr(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:cr(t),e:u,f:n,b:a}})})(void 0);t(function(n,r){return{$:4,j:n,k:r,b:1+(r.b||0)}});function rr(n,r){return{$:5,l:n,m:r,k:void 0}}t(function(n,r){return rr([n,r],function(){return n(r)})}),e(function(n,r,t){return rr([n,r,t],function(){return v(n,r,t)})}),u(function(n,r,t,e){return rr([n,r,t,e],function(){return s(n,r,t,e)})}),a(function(n,r,t,e,u){return rr([n,r,t,e,u],function(){return b(n,r,t,e,u)})}),i(function(n,r,t,e,u,a){return rr([n,r,t,e,u,a],function(){return l(n,r,t,e,u,a)})}),o(function(n,r,t,e,u,a,i){return rr([n,r,t,e,u,a,i],function(){return d(n,r,t,e,u,a,i)})}),c(function(n,r,t,e,u,a,i,o){return rr([n,r,t,e,u,a,i,o],function(){return h(n,r,t,e,u,a,i,o)})}),f(function(n,r,t,e,u,a,i,o,c){return rr([n,r,t,e,u,a,i,o,c],function(){return function(n,r,t,e,u,a,i,o,c){return 8===n.a?n.f(r,t,e,u,a,i,o,c):n(r)(t)(e)(u)(a)(i)(o)(c)}(n,r,t,e,u,a,i,o,c)})});var tr=t(function(n,r){return{$:"a0",n:n,o:r}}),er=(t(function(n,r){return{$:"a1",n:n,o:r}}),t(function(n,r){return{$:"a2",n:n,o:r}})),ur=t(function(n,r){return{$:"a3",n:n,o:r}});e(function(n,r,t){return{$:"a4",n:r,o:{f:n,o:t}}});t(function(n,r){return"a0"===r.$?v(tr,r.n,function(n,r){var t=ne(r);return{$:r.$,a:t?s(Xt,t<3?ir:or,Vt(n),r.a):v(Ut,n,r.a)}}(n,r.o)):r});var ar,ir=t(function(n,r){return w(n(r.a),r.b)}),or=t(function(n,r){return{u:n(r.u),Z:r.Z,W:r.W}});function cr(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?fr(i,u,a):i[u]=a}else"className"===u?fr(r,u,mn(a)):r[u]=mn(a)}return r}function fr(n,r,t){var e=n[r];n[r]=e?e+" "+t:t}function vr(n,r){var t=n.$;if(5===t)return vr(n.k||(n.k=n.m()),r);if(0===t)return Un.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=vr(e,a)).elm_event_node_ref=a,i}if(3===t)return sr(i=n.h(n.g),r,n.d),i;var i=n.f?Un.createElementNS(n.f,n.c):Un.createElement(n.c);Qn&&"a"==n.c&&i.addEventListener("click",Qn(i)),sr(i,r,n.d);for(var o=n.e,c=0;c0&&mr(t,1,e,v));case 4:for(var s=n.j,b=r.j,l=!1,d=n.k;4===d.$;)l=!0,"object"!=typeof s?s=[s,d.j]:s.push(d.j),d=d.k;for(var h=r.k;4===h.$;)l=!0,"object"!=typeof b?b=[b,h.j]:b.push(h.j),h=h.k;return l&&s.length!==b.length?void mr(t,0,e,r):((l?function(n,r){for(var t=0;to?mr(t,6,e,{v:o,i:i-o}):i0||i.length>0||T)&&mr(t,8,e,{w:u,x:i,y:T})}var Cr="_elmW6BL";function Nr(n,r,t,e,u,a){var i=n[t];if(!i)return i={c:0,z:e,r:u,s:void 0},a.push({r:u,A:i}),void(n[t]=i);if(1===i.c){a.push({r:u,A:i}),i.c=2;var o=[];return kr(i.z,e,o,i.r),i.r=u,void(i.s.s={w:o,A:i})}Nr(n,r,t+Cr,e,u,a)}function jr(n,r,t,e,u){var a=n[t];if(a){if(0===a.c){a.c=2;var i=[];return kr(e,a.z,i,u),void mr(r,9,u,{w:i,A:a})}jr(n,r,t+Cr,e,u)}else{var o=mr(r,9,u,void 0);n[t]={c:1,z:e,r:u,s:o}}}function Tr(n,r,t,e){!function n(r,t,e,u,a,i,o){var c=e[u];var f=c.r;for(;f===a;){var v=c.$;if(1===v)Tr(r,t.k,c.s,o);else if(8===v){c.t=r,c.u=o;var s=c.s.w;s.length>0&&n(r,t,s,0,a,i,o)}else if(9===v){c.t=r,c.u=o;var b=c.s;if(b){b.A.s=r;var s=b.w;s.length>0&&n(r,t,s,0,a,i,o)}}else c.t=r,c.u=o;if(!(c=e[++u])||(f=c.r)>i)return u}var l=t.$;if(4===l){for(var d=t.k;4===d.$;)d=d.k;return n(r,d,e,u,a+1,i,r.elm_event_node_ref)}var h=t.e;var g=r.childNodes;for(var $=0;$i))return u;a=m}return u}(n,r,t,0,0,r.b,e)}function Er(n,r,t,e){return 0===t.length?n:(Tr(n,r,t,e),xr(n,t))}function xr(n,r){for(var t=0;t>n}),t(function(n,r){return r>>>n});var Ir,Dr=a(function(n,r,t,e,u){for(var a=n.length,i=r+a<=u.length,o=0;i&&o0?n:r}),Ht=function(n){return{$:0,a:n}},Jt=O,Rt=t(function(n,r){for(;;){var t=v(Jt,32,n),e=t.a,u=t.b,a=v(Wr,Ht(e),r);if(!u.b)return Nt(a);n=u,r=a}}),Bt=t(function(n,r){for(;;){var t=Lt(r/32);if(1===t)return v(Jt,32,n).a;n=v(Rt,n,j),r=t}}),Kt=t(function(n,r){if(r.f){var t=32*r.f,e=Dt(v(Ot,32,t-1)),u=n?Nt(r.i):r.i,a=v(Bt,u,r.f);return b(_t,Yt(r.h)+t,v(zt,5,e*Pt),a,r.h)}return b(_t,Yt(r.h),Pt,Gt,r.h)}),Qt=a(function(n,r,t,e,u){for(;;){if(r<0)return v(Kt,!1,{i:e,f:t/32|0,h:u});var a=qt(s(Mt,32,r,n));n=n,r=r-32,t=t,e=v(Wr,a,e),u=u}}),Wt=t(function(n,r){if(n<=0)return Ft;var t=n%32,e=s(Mt,t,n-t,r);return l(Qt,r,n-t-32,n,j,e)}),Zt=function(n){return!n.$},Ut=on,Xt=cn,Vt=function(n){return{$:0,a:n}},ne=function(n){switch(n.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},re=function(n){return n},te=re,ee=i(function(n,r,t,e,u,a){return{ai:a,al:r,av:e,ax:t,aB:n,aC:u}}),ue=U,ae=function(n){return n.length},ie=W,oe=t(function(n,r){return n<1?r:s(ie,n,ae(r),r)}),ce=X,fe=function(n){return""===n},ve=t(function(n,r){return n<1?"":s(ie,0,n,r)}),se=function(n){for(var r=0,t=n.charCodeAt(0),e=43==t||45==t?1:0,u=e;u500?s(ht,n,r,Nt(d)):b(pe,n,r,t+1,d)))))}return v(n,u,v(n,i,v(n,c,r)))}return v(n,u,v(n,i,r))}return v(n,u,r)}return r}),me=e(function(n,r,t){return b(pe,n,r,0,t)}),ke=t(function(n,r){return s(me,t(function(r,t){return v(Wr,n(r),t)}),j,r)}),ye=wn,we=t(function(n,r){return v(ye,function(r){return ge(n(r))},r)}),Ae=e(function(n,r,t){return v(ye,function(r){return v(ye,function(t){return ge(v(n,r,t))},t)},r)}),Se=Pn,Ce=t(function(n,r){var t=r;return Cn(v(ye,Se(n),t))}),Ne=e(function(n,r,t){return v(we,function(n){return 0},(e=v(ke,Ce(n),r),s(me,Ae(Wr),ge(j),e)));var e}),je=e(function(n,r,t){return ge(0)}),Te=t(function(n,r){return v(we,n,r)});Ln.Task={b:$e,c:Ne,d:je,e:Te,f:Ir};var Ee,xe,_e,Ge=Fn("Task"),Le=t(function(n,r){return Ge(v(we,n,r))}),Oe=Lr,Pe={$:2},Fe={e:8,C:!1,D:!1,S:8,T:!1,A:!1,G:!1,H:!1},Me=t(function(n,r){return{at:n,au:r}}),qe=u(function(n,r,t,e){return{R:e,P:t,aq:r,Q:n}}),Ie=an,De=function(n){return{$:1,a:n}},Ye=en,ze=tn,He=v(t(function(n,r){return s(me,Ye,r,n)}),x(["target","value"]),ze),Je=function(n){return 13===n.ap?He:De("Shift key pressed with enter")},Re=t(function(n,r){return{ap:r,aJ:n}}),Be=nn,Ke=s(Xt,Re,v(Ye,"shiftKey",rn),v(Ye,"keyCode",Be)),Qe=tr,We=t(function(n,r){return v(Qe,n,{$:1,a:r})}),Ze=function(n){return 13===n.ap?n.aJ?De("Shift key pressed with enter"):He:De("Shift key pressed with enter")},Ue=b(u(function(n,r,t,e){return b(qe,n,Ft,r,v(Me,function(n){return v(We,"keypress",v(Ut,function(r){return w(n(r),!1)},v(Ie,Je,Ke)))}(t),function(n){return v(We,"keypress",v(Ut,function(r){return w(n(r),!1)},v(Ie,Ze,Ke)))}(e)))}),ot(Pe),ot(Fe),function(n){return{$:1,a:n}},function(n){return{$:0,a:n}}),Xe=Mn,Ve=Xe(j),nu=function(n){return{$:4,a:n}},ru=function(n){return{$:3,a:n}},tu={$:2},eu=t(function(n,r){return n}),uu=Mn,au=Kn("closeSocket",Be),iu=Kn("msgSocket",ze),ou=Kn("openSocket",function(n){return{$:5,c:n}}(0)),cu=C(Fe,{S:1,T:!0}),fu=pn,vu=t(function(n,r){return v(er,n,fu(r))}),su=vu("className"),bu=t(function(n,r){var t=function(n){switch(n){case 0:return ot("black");case 1:return ot("red");case 2:return ot("green");case 3:return ot("yellow");case 4:return ot("blue");case 5:return ot("magenta");case 6:return ot("cyan");case 7:return ot("white");case 9:return ot("bright-black");case 10:return ot("bright-red");case 11:return ot("bright-green");case 12:return ot("bright-yellow");case 13:return ot("bright-blue");case 14:return ot("bright-magenta");case 15:return ot("bright-cyan");case 16:return ot("bright-white");default:return ct}}(n);if(t.$)return ct;var e=t.a;return ot(su(1===r?"term-"+e:"term-"+e+"-bg"))}),lu=t(function(n,r){return n?ot(r):ct}),du=e(function(n,r,t){var e=n(r);if(e.$)return t;var u=e.a;return v(Wr,u,t)}),hu=t(function(n,r){return s(me,du(n),j,r)}),gu=nr("span"),$u=Vn,pu=t(function(n,r){var t=n.A?w(v(bu,n.e,1),v(bu,n.S,0)):w(v(bu,n.S,1),v(bu,n.e,0)),e=t.a,u=t.b,a=v(hu,re,N(function(n){return n.G&&n.H?v(Wr,v(lu,n.A,su("term-reverse")),v(Wr,v(lu,n.C,su("term-blink")),v(Wr,v(lu,n.T,su("term-italic")),v(Wr,v(lu,n.D,su("term-bold")),x([ot(su("term-underline-strike"))]))))):v(Wr,v(lu,n.G,su("term-strike")),v(Wr,v(lu,n.A,su("term-reverse")),v(Wr,v(lu,n.C,su("term-blink")),v(Wr,v(lu,n.H,su("term-underline")),v(Wr,v(lu,n.T,su("term-italic")),v(Wr,v(lu,n.D,su("term-bold")),j))))))}(n),v(Wr,u,v(Wr,e,j))));return v(gu,a,x([$u(r)]))}),mu=M,ku=4294967295>>>32-Pt,yu=function(n){return[n]},wu=P,Au=F,Su=u(function(n,r,t,e){var u=ku&r>>>n;if(m(u,Yt(e))>-1){if(5===n)return v(mu,qt(t),e);var a=Ht(b(Su,n-Pt,r,t,Gt));return v(mu,a,e)}var i=v(wu,u,e);if(i.$){a=Ht(b(Su,n-Pt,r,t,yu(i)));return s(Au,u,a,e)}var o=i.a,a=Ht(b(Su,n-Pt,r,t,o));return s(Au,u,a,e)}),Cu=t(function(n,r){var t=r.a,e=r.b,u=r.c,a=r.d,i=Yt(a),o=Yt(n),c=t+(o-i);if(g(o,32)){if(m(c>>>Pt,1<0){var f=e+Pt,v=b(Su,f,t,n,yu(Ht(u)));return b(_t,c,f,v,Gt)}return b(_t,c,e,b(Su,e,t,n,u),Gt)}return b(_t,c,e,u,n)}),Nu=t(function(n,r){var t=r.d;return v(Cu,v(mu,n,t),r)}),ju=e(function(n,r,t){var e=v(pu,n,r);return C(t,{aq:v(Nu,e,t.aq)})}),Tu=t(function(n,r){var t=function(){switch(n){case 1015:return"Host not recognized. (1015)\n";case 1006:return"Connection closed. (1006)\n";default:return"Unknown error. ("+st(n)+")\n"}}();return C(s(ju,cu,t,r),{Q:ot(Pe)})}),Eu=C(Fe,{S:4,T:!0}),xu=Jn("connectSocket",fu),_u=Y,Gu=D,Lu=t(function(n,r){var t=Yt(n),e=32-Yt(r.h)-t,u=s(_u,32,r.h,n);return e<0?{i:v(Wr,qt(u),r.i),f:r.f+1,h:s(Gu,e,t,n)}:e?{i:r.i,f:r.f,h:u}:{i:v(Wr,qt(u),r.i),f:r.f+1,h:Gt}}),Ou=t(function(n,r){r.a,r.c;var t=r.d,e=Yt(n),u=32-Yt(t)-e,a=s(_u,32,t,n),i=v(Cu,a,r);if(u<0){var o=s(Gu,u,e,n);return v(Cu,o,i)}return i}),Pu=q,Fu=t(function(n,r){n.d;var e=r.a,u=r.c,a=r.d;if(m(e,128)<1){var i=t(function(n,r){if(n.$){var t=n.a;return v(Ou,t,r)}var e=n.a;return s(Pu,i,r,e)});return v(Ou,a,s(Pu,i,n,u))}i=t(function(n,r){if(n.$){var t=n.a;return v(Lu,t,r)}var e=n.a;return s(Pu,i,r,e)});return v(Kt,!0,v(Lu,a,s(Pu,i,function(n){var r=n.a,e=n.c,u=n.d,a=t(function(n,r){if(n.$)return v(Wr,n,r);var t=n.a;return s(Pu,a,r,t)});return{i:s(Pu,a,j,e),f:r/32|0,h:u}}(n),u)))}),Mu=e(function(n,r,t){for(;;){var e=v(Jt,32,n),u=e.a,a=e.b;if(m(Yt(u),32)<0)return v(Kt,!0,{i:r,f:t,h:u});n=a,r=v(Wr,qt(u),r),t=t+1}}),qu=t(function(n,r){var t,e=(t=n.a3).b?s(Mu,t,j,0):Ft;return C(r,{P:r.P,aq:v(Fu,r.aq,e)})}),Iu=t(function(n,r){return{P:r,a3:n}}),Du=function(n){return function(n){switch(n.$){case 0:return"expecting '"+n.a+"'";case 1:return"expecting int";case 2:return"expecting hex";case 3:return"expecting octal";case 4:return"expecting binary";case 5:return"expecting float";case 6:return"expecting number";case 7:return"expecting variable";case 8:return"expecting symbol '"+n.a+"'";case 9:return"expecting keyword '"+n.a+"'";case 10:return"expecting end";case 11:return"unexpected char";case 12:return"problem "+n.a;default:return"bad repeat"}}(n.ay)+" at row "+st(n.aG)+", col "+st(n.ac)},Yu=t(function(n,r){if(r.b){var e=r.a,u=r.b,a=t(function(r,t){return v(Wr,n,v(Wr,r,t))}),i=s(me,a,j,u);return v(Wr,e,i)}return j}),zu=function(n){return r=v(Yu,"; ",v(ke,Du,n)),v(bt,"",r);var r},Hu=z,Ju=t(function(n,r){switch(n){case 0:return Fe;case 1:return C(r,{D:!0});case 3:return C(r,{T:!0});case 4:return C(r,{H:!0});case 5:case 6:return C(r,{C:!0});case 7:return C(r,{A:!0});case 9:return C(r,{G:!0});case 21:return C(r,{D:!1});case 23:return C(r,{T:!1});case 24:return C(r,{H:!1});case 27:return C(r,{A:!1});case 29:return C(r,{G:!1});case 30:return C(r,{S:0});case 31:return C(r,{S:1});case 32:return C(r,{S:2});case 33:return C(r,{S:3});case 34:return C(r,{S:4});case 35:return C(r,{S:5});case 36:return C(r,{S:6});case 37:return C(r,{S:7});case 38:return r;case 39:return C(r,{S:8});case 40:return C(r,{e:0});case 41:return C(r,{e:1});case 42:return C(r,{e:2});case 43:return C(r,{e:3});case 44:return C(r,{e:4});case 45:return C(r,{e:5});case 46:return C(r,{e:6});case 47:return C(r,{e:7});case 48:return r;case 49:return C(r,{e:8});case 90:return C(r,{S:9});case 91:return C(r,{S:10});case 92:return C(r,{S:11});case 93:return C(r,{S:12});case 94:return C(r,{S:13});case 95:return C(r,{S:14});case 96:return C(r,{S:15});case 97:return C(r,{S:16});case 100:return C(r,{e:9});case 101:return C(r,{e:10});case 102:return C(r,{e:11});case 103:return C(r,{e:12});case 104:return C(r,{e:13});case 105:return C(r,{e:14});case 106:return C(r,{e:15});case 107:return C(r,{e:16});default:return r}}),Ru=t(function(n,r){return r.$?n:r.a}),Bu=t(function(n,r){var t=v(Hu,"token: ",n);switch(t.$){case 1:var e=t.a,u=r.P;if(u.$)return r;var a=u.a;return C(r,{P:ot(s(ht,Ju,a,e))});case 0:var i=t.a;a=v(Ru,Fe,r.P);return C(r,{a3:v(Wr,v(pu,a,i),r.a3)});default:t.a,t.b;return r}}),Ku=t(function(n,r){var t=v(Iu,j,n),e=s(ht,Bu,t,r);return C(e,{a3:Nt(e.a3)})}),Qu=e(function(n,r,t){return{ac:r,ay:t,aG:n}}),Wu=function(n){return s(Qu,n.aG,n.ac,n.ay)},Zu=t(function(n,r){n:for(;;)switch(n.$){case 0:return r;case 1:var t=n.a,e=n.b;n=t,r=v(Wr,e,r);continue n;default:t=n.a;var u=n.b;n=t,r=v(Zu,u,r);continue n}}),Uu=t(function(n,r){var t=n({ac:1,c:j,d:1,b:0,aG:1,a:r});if(t.$){var e=t.b;return rt(v(Zu,e,j))}var u=t.b;return at(u)}),Xu=t(function(n,r){var t=v(Uu,n,r);if(t.$){var e=t.a;return rt(v(ke,Wu,e))}var u=t.a;return at(u)}),Vu={$:-2},na=t(function(n,r){return{$:1,a:n,b:r}}),ra=e(function(n,r,t){return{$:0,a:n,b:r,c:t}}),ta=e(function(n,r,t){var e=r,u=t;return function(r){var t=e(r);if(1===t.$){var a=t.a,i=t.b;return v(na,a,i)}var o=t.a,c=t.b,f=t.c,b=u(f);if(1===b.$){var l=b.a;i=b.b;return v(na,o||l,i)}l=b.a;var d=b.b,h=b.c;return s(ra,o||l,v(n,c,d),h)}}),ea=t(function(n,r){return s(ta,It,n,r)}),ua=p,aa=function(n){return function(r){return s(ra,!1,n,r)}},ia=aa,oa={$:7},ca=t(function(n,r){return{$:1,a:n,b:r}}),fa=u(function(n,r,t,e){return{ac:r,aW:e,ay:t,aG:n}}),va={$:0},sa=t(function(n,r){return v(ca,va,b(fa,n.aG,n.ac,r,n.c))}),ba=Yr,la=k,da=t(function(n,r){n:for(;;){if(-2===r.$)return ct;var t=r.b,e=r.c,u=r.d,a=r.e;switch(v(la,n,t)){case 0:n=n,r=u;continue n;case 1:return ot(e);default:n=n,r=a;continue n}}}),ha=t(function(n,r){return!v(da,n,r).$}),ga=t(function(n,r){return v(ha,n,r)}),$a=o(function(n,r,t,e,u,a,i){for(;;){var o=s(ba,n,r,u);if(g(o,-1))return{ac:e,c:i,d:a,b:r,aG:t,a:u};if(g(o,-2))n=n,r=r+1,t=t+1,e=1,u=u,a=a,i=i;else n=n,r=o,t=t,e=e+1,u=u,a=a,i=i}}),pa=function(n){return function(n){return function(r){var t=s(ba,n.Y,r.b,r.a);if(g(t,-1))return v(na,!1,v(sa,r,n.ag));var e=g(t,-2)?h($a,n.am,r.b+1,r.aG+1,1,r.a,r.d,r.c):h($a,n.am,t,r.aG,r.ac+1,r.a,r.d,r.c),u=s(ie,r.b,e.b,r.a);return v(ga,u,n.aF)?v(na,!1,v(sa,r,n.ag)):s(ra,!0,u,e)}}({ag:oa,am:n.am,aF:n.aF,Y:n.Y})},ma=v(ea,ia(function(n){return{$:0,a:n}}),pa({am:ua(""),aF:Vu,Y:ua("")})),ka=t(function(n,r){return{$:2,a:n,b:r}}),ya=e(function(n,r,t){n:for(;;){if(t.b){var e=t.a,u=t.b,a=e(n);if(a.$){var i,o=(i=a).a,c=i.b;if(o)return i;n=n,r=v(ka,r,c),t=u;continue n}return i=a}return v(na,!1,r)}}),wa=function(n){return function(r){return s(ya,r,va,n)}},Aa=wa,Sa=t(function(n,r){var t=r;return function(r){var e=t(r);if(1===e.$){var u=e.a,a=e.b;return v(na,u,a)}var i=e.a,o=e.b,c=e.c,f=n(o)(c);if(1===f.$){var b=f.a;a=f.b;return v(na,i||b,a)}b=f.a;var l=f.b,d=f.c;return s(ra,i||b,l,d)}}),Ca=t(function(n,r){return s(ta,eu,n,r)}),Na=u(function(n,r,t,e){for(;;){var u=t(r)(e);if(u.$){i=u.a;var a=u.b;return v(na,n||i,a)}var i=u.a,o=u.b,c=u.c;if(o.$){var f=o.a;return s(ra,n||i,f,c)}var b=o.a;n=n||i,r=b,t=t,e=c}}),ja=t(function(n,r){return function(t){return b(Na,!1,n,r,t)}}),Ta=t(function(n,r){var t=r;return function(r){var e=t(r);if(e.$){a=e.a;var u=e.b;return v(na,a,u)}var a=e.a,i=e.b,o=e.c;return s(ra,a,n(i),o)}}),Ea=function(n){return{$:1,a:n}},xa=function(n){return{$:0,a:n}},_a=t(function(n,r){return r}),Ga=t(function(n,r){return s(ta,_a,n,r)}),La=a(function(n,r,t,e,u){return v(Ga,r,wa(x([v(Ga,e,v(Ga,r,v(Ta,function(n){return xa(v(Wr,n,u))},t))),v(Ta,function(n){return Ea(Nt(u))},n)])))}),Oa=u(function(n,r,t,e){return wa(x([v(Ta,function(n){return xa(v(Wr,n,e))},v(Ca,r,v(Ca,n,v(Ca,t,n)))),v(Ta,function(n){return Ea(Nt(e))},aa(0))]))}),Pa=a(function(n,r,t,e,u){var a=v(Ta,function(n){return Ea(Nt(u))},n);return v(Ga,r,wa(x([v(Ga,e,v(Ga,r,wa(x([v(Ta,function(n){return xa(v(Wr,n,u))},t),a])))),a])))}),Fa=a(function(n,r,t,e,u){return wa(x([v(Sa,function(a){switch(u){case 0:return v(ja,x([a]),b(La,n,r,t,e));case 1:return v(ja,x([a]),b(Pa,n,r,t,e));default:return v(Ca,v(Ga,r,v(Ga,e,v(Ga,r,v(ja,x([a]),s(Oa,r,t,e))))),n)}},t),v(Ta,function(n){return j},n)]))}),Ma=Dr,qa=function(n){var r=n.a,t=n.b,e=!fe(r);return function(n){var u=l(Ma,r,n.b,n.aG,n.ac,n.a),a=u.a,i=u.b,o=u.c;return g(a,-1)?v(na,!1,v(sa,n,t)):s(ra,e,0,{ac:o,c:n.c,d:n.d,b:a,aG:i,a:n.a})}},Ia=t(function(n,r){return{$:0,a:n,b:r}}),Da=function(n){return v(Ia,n,{$:0,a:n})},Ya=function(n){return function(n){return v(Ga,qa(n.Y),v(Ga,n.aK,l(Fa,qa(n.ae),n.aK,n.ao,qa(n.aI),n.aN)))}({ae:Da(n.ae),ao:n.ao,aI:Da(n.aI),aK:n.aK,Y:Da(n.Y),aN:function(n){switch(n){case 0:return 0;case 1:return 1;default:return 2}}(n.aN)})},za=Sa,Ha=a(function(n,r,t,e,u){for(;;){var a=s(ba,n,r,u.a);if(g(a,-1))return s(ra,m(u.b,r)<0,0,{ac:e,c:u.c,d:u.d,b:r,aG:t,a:u.a});if(g(a,-2))n=n,r=r+1,t=t+1,e=1,u=u;else n=n,r=a,t=t,e=e+1,u=u}}),Ja=function(n){return function(r){return l(Ha,n,r.b,r.aG,r.ac,r)}},Ra=t(function(n,r){var t=r;return function(r){var e=t(r);if(1===e.$){var u=e.a,a=e.b;return v(na,u,a)}u=e.a;var i=e.b,o=e.c;return s(ra,u,v(n,s(ie,r.b,o.b,r.a),i),o)}}),Ba=function(n){return v(Ra,eu,n)},Ka={$:1},Qa=Jr,Wa=Rr,Za=t(function(n,r){return{ac:r.ac+(n-r.b),c:r.c,d:r.d,b:n,aG:r.aG,a:r.a}}),Ua=Hr,Xa=zr,Va=t(function(n,r){if(s(Xa,101,n,r)||s(Xa,69,n,r)){var t=n+1,e=s(Xa,43,t,r)||s(Xa,45,t,r)?t+1:t,u=v(Ua,e,r);return g(e,u)?-u:u}return n}),ni=t(function(n,r){return s(Xa,46,n,r)?v(Va,v(Ua,n+1,r),r):v(Va,n,r)}),ri=a(function(n,r,t,e,u){var a=e.a,i=e.b;if(1===r.$){var o=r.a;return v(na,!0,v(sa,u,o))}var c=r.a;return g(t,a)?v(na,m(u.b,t)<0,v(sa,u,n)):s(ra,!0,c(i),v(Za,a,u))}),ti=u(function(n,r,t,e){return v(ca,va,b(fa,n,r,t,e))}),ei=function(n){if(0===n.length||/[\sxbo]/.test(n))return ct;var r=+n;return r==r?ot(r):ct},ui=i(function(n,r,t,e,u,a){var i=u.a,o=v(ni,i,a.a);if(o<0)return v(na,!0,b(ti,a.aG,a.ac-(o+a.b),n,a.c));if(g(a.b,o))return v(na,!1,v(sa,a,r));if(g(i,o))return l(ri,n,t,a.b,u,a);if(1===e.$){e.a;return v(na,!0,v(sa,a,n))}var c=e.a,f=ei(s(ie,a.b,o,a.a));if(1===f.$)return v(na,!0,v(sa,a,n));var d=f.a;return s(ra,!0,c(d),v(Za,o,a))}),ai=v(t(function(n,r){return t={aa:rt(r),ag:n,ah:rt(r),ak:rt(r),an:at(re),a1:r,as:rt(r)},function(n){if(s(Xa,48,n.b,n.a)){var r=n.b+1,e=r+1;return s(Xa,120,r,n.a)?l(ri,t.a1,t.ak,e,v(Wa,e,n.a),n):s(Xa,111,r,n.a)?l(ri,t.a1,t.as,e,s(Qa,8,e,n.a),n):s(Xa,98,r,n.a)?l(ri,t.a1,t.aa,e,s(Qa,2,e,n.a),n):d(ui,t.a1,t.ag,t.an,t.ah,w(r,0),n)}return d(ui,t.a1,t.ag,t.an,t.ah,s(Qa,10,n.b,n.a),n)};var t}),Ka,Ka),ii=v(za,function(n){return""===n?ai:Aa(x([ai,ia(0)]))},Ba(Ja(function(n){return"0"===n}))),oi=v(ea,ia(function(n){return{$:1,a:n}}),Ya({ae:"m",ao:ii,aI:";",aK:ia(0),Y:"[",aN:0})),ci=t(function(n,r){return{$:2,a:n,b:r}}),fi=Ca,vi={$:11},si=t(function(n,r){return function(t){var e=s(ba,n,t.b,t.a);return g(e,-1)?v(na,!1,v(sa,t,r)):g(e,-2)?s(ra,!0,0,{ac:1,c:t.c,d:t.d,b:t.b+1,aG:t.aG+1,a:t.a}):s(ra,!0,0,{ac:t.ac+1,c:t.c,d:t.d,b:e,aG:t.aG,a:t.a})}}),bi=Ba((Ee=eu(!0),v(si,Ee,vi))),li=qa,di=v(ea,v(ea,v(fi,ia(ci),li(v(Ia,xe="",{$:8,a:xe}))),bi),Ya({ae:"",ao:pa({am:function(n){return";"!==n&&""!==n},aF:Vu,Y:eu(!0)}),aI:";",aK:ia(0),Y:"",aN:0})),hi=Ya({ae:"",ao:Aa(x([oi,ma,di])),aI:"",aK:ia(0),Y:"",aN:1}),gi=t(function(n,r){var t=v(Xu,hi,r);if(1===t.$){var e=t.a;return v(Iu,x([$u(v(Hu,"uh-oh",zu(e)))]),n)}var u=t.a;return v(Ku,n,u)}),$i=t(function(n,r){return v(qu,v(gi,r.P,n),r)}),pi=Jn("scrollTerm",fu),mi=C(Fe,{S:9,T:!0}),ki=ju(mi),yi=Jn("writeSocket",fu),wi=t(function(n,r){switch(n.$){case 0:var t=n.a+"\n";return w(C(r,{k:v(ki,t,r.k)}),Xe(x([pi("term-output"),yi(t)])));case 1:var e=n.a,u=C(i=s(ju,Eu,"Connecting to: ["+e+"]...\n",r.k),{Q:ot((c=e,{$:1,a:c}))});return w(C(r,{k:u}),Xe(x([pi("term-output"),xu(e)])));case 3:var a=n.a;return w(C(r,{k:v($i,a,r.k)}),pi("term-output"));case 2:var i=s(ju,Eu,"Connected!\n",r.k);u=function(){var n,t=v(Ru,Pe,r.k.Q);if(1===t.$){var e=t.a;return C(i,{Q:ot((n=e,{$:0,a:n}))})}return r.k}();return w(C(r,{k:u}),pi("term-output"));default:var o=n.a;u=v(Tu,o,r.k);return w(C(r,{k:u}),pi("term-output"))}var c}),Ai=nr("div"),Si=vu("id"),Ci=t(function(n,r){if(r.$)return ct;var t=r.a;return ot(n(t))}),Ni=vu("placeholder"),ji=nr("input"),Ti=pn,Ei=t(function(n,r){return v(er,n,Ti(r))})("spellcheck"),xi=t(function(n,r){return v(Ai,x([su("term-element")]),x([v(Ai,x([Si("term-url-bar")]),x([$u("Connected to:"),v(ji,x([Si("term-url-input"),Ei(!1),Ni("ws://server-domain.com:port"),n]),j),function(n){switch(n.$){case 0:return $u("[CONNECTED]");case 1:return $u("[CONNECTING...]");default:return $u("[CLOSED]")}}(r)]))]))}),_i=nr("textarea"),Gi=vu("value"),Li=Oe({a0:function(n){return w({k:Ue},Ve)},a8:function(n){return uu(x([ou(eu(tu)),iu(ru),au(nu)]))},ba:wi,bb:function(n){return r=n.k,v(Ai,x([su("term")]),x([v(Ru,v(Ai,x([su("term-element")]),j),v(Ci,xi(r.R.at),r.Q)),v(Ai,x([su("term-element"),Si("term-output")]),nt(r.aq)),v(_i,x([su("term-element"),Si("term-input"),Ei(!1),Ni("Type a command here. Press [Enter] to submit."),r.R.au,Gi("")]),j)]));var r}});_e={Main:{init:Li(Vt(0))(0)}},n.Elm?function n(r,t){for(var e in t)e in r?"init"==e?H(6):n(r[e],t[e]):r[e]=t[e]}(n.Elm,_e):n.Elm=_e}(this); diff --git a/elm.json b/elm.json index 48dc2f3..d93156a 100644 --- a/elm.json +++ b/elm.json @@ -12,7 +12,7 @@ "elm/json": "1.1.3", "elm/parser": "1.1.0", "elm/url": "1.0.0", - "wsowens/term": "2.0.0" + "wsowens/term": "2.0.6" }, "indirect": { "elm/time": "1.0.0", diff --git a/examples/demo.html b/examples/demo.html index 3da7352..64ad56f 100644 --- a/examples/demo.html +++ b/examples/demo.html @@ -2,7 +2,7 @@ - +