<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAcCAYAAAAAwr0iAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA0xpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTgyRjc1RjA3MTZEMTFFNjg2M0NCOEY3RjJBMEY3N0EiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTgyRjc1RUY3MTZEMTFFNjg2M0NCOEY3RjJBMEY3N0EiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjU3YmQxNjhjLWI5ZDctMTE3OS1hM2RlLWZmNjQyYTM4NTJmMCIgc3RSZWY6ZG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjU3YmQxNjhjLWI5ZDctMTE3OS1hM2RlLWZmNjQyYTM4NTJmMCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PhsssMYAAALDSURBVHjaxFa9jxJBFH8zDMdCYrhIAppgIjaG5C5RQ+zO2Gty5gpbY2KsbOyu1MrGGEtj/A9stLPXs6CjJ5GYIF6AE5IDBHZmfG92F4ZzvQAnyyO7O8zX+73f+5gRd3bvvSgffN4/l948YgASFhQ9aWhqM6+pYfrVjD5WH9NK8f7x8ebNnVtvWC6b/RaPxy8zxsxmbB5lIfNsIDMggreezqG1o9GIGj8E45zFNzYgnU4D5xyUUkBglpFAKfgWa5gFY89rNVvgJJMgSBkpjcViIISA4XAI4/EYkBXTdyYQ9LOUU9sw7bmG2lqgPwwAKSV9D/P5/G2csNtoNJ71+32HFjqOszyQkDY9xLbrjkEorSe+wYGc67o72Wz2dSqV+tjr9e4iiAfdbnfL+G4B10wtDV/nBSYAN5O053eivVqtvq1UKr/RDaVCofCyVCo9ogXE0qISppgsJ3GlCzzGkQHcOEgT8n2xWLyfy+XeDwaDK7Va7Xm73X4YUHaaRfMwcbIPdTNBGWBSwkP3Ewdr9Xr9FcbAUwpICkyKAXuTRdkIAxH4QThOEn61W2YSKruAVpeJiUQiYRQjqHImk9nDjDiPijnO+d7pdN5hXOwRuGXdYRggANIdM9sy2tTeGPsuNpvNJwgkRVUMpYPdV5dJURsIZZ9WBEB6aRhKkeeWSzi2j9kxk8vLFqsABFkvlWSYhoqdni6zY2dRfHJfYoErvxBFLb5expVUDFlYCwDpM8CU0pEDoADUGH9YCf8dgKuQSRagXoo/Lg0Da3CBVwm9syBKBv46FfHNIlc+BYFZQHe0yBnQPgN0HFtV8H8VmXko8ABgEOo1uIDZMbCWALRiQAR/gkvpqsU+Rcl4gW9zR6JLCXXQ5XTVAKR/sqIvGODl89BnJfLHcRJNceP6tQ9fDr4+RmRHmAUqoiLEkOnM1vb2pz8CDACUMgcHE3VMqAAAAABJRU5ErkJggg==" />
</head>
<body>
- <div id="terminal-container"></div>
+ <div id="terminal-container"></div>
<div class="modal" id="modal">
<div class="modal-background"></div>
<div class="modal-content">
</div>
</div>
</div>
- <script src="auth_token.js"></script>
+ <script src="auth_token.js"></script>
<script type="text/javascript">!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=233)}([function(e,t,n){var i=n(1),r=n(12),o=n(14),s=n(31),a=n(17),l=function(e,t,n){var c,u,h,f,d=e&l.F,p=e&l.G,_=e&l.S,m=e&l.P,b=e&l.B,g=p?i:_?i[t]||(i[t]={}):(i[t]||{}).prototype,v=p?r:r[t]||(r[t]={}),y=v.prototype||(v.prototype={});for(c in p&&(n=t),n)h=((u=!d&&g&&void 0!==g[c])?g:n)[c],f=b&&u?a(h,i):m&&"function"==typeof h?a(Function.call,h):h,g&&s(g,c,h,e&l.U),v[c]!=h&&o(v,c,f),m&&y[c]!=h&&(y[c]=h)};i.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var i=n(70)("wks"),r=n(26),o=n(1).Symbol,s="function"==typeof o;(e.exports=function(e){return i[e]||(i[e]=s&&o[e]||(s?o:r)("Symbol."+e))}).store=i},function(e,t,n){var i=n(73);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(23),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){e.exports=!n(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var i=n(11),r=n(101),o=n(33),s=Object.defineProperty;t.f=n(6)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(41),r=n(73);e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict";var i=n(7);e.exports=function(e,t){return!!e&&i(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var i=n(2);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(0),r=n(12),o=n(7);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],s={};s[e]=t(n),i(i.S+i.F*o(function(){n(1)}),"Object",s)}},function(e,t,n){var i=n(8),r=n(32);e.exports=n(6)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";if(n(6)){var i=n(27),r=n(1),o=n(7),s=n(0),a=n(46),l=n(56),c=n(17),u=n(59),h=n(32),f=n(14),d=n(57),p=n(23),_=n(5),m=n(86),b=n(28),g=n(33),v=n(18),y=n(38),w=n(2),x=n(4),k=n(67),C=n(42),S=n(39),A=n(36).f,E=n(65),O=n(26),L=n(3),R=n(22),T=n(53),M=n(47),I=n(61),P=n(30),D=n(64),N=n(51),B=n(62),H=n(96),j=n(8),F=n(20),z=j.f,W=F.f,Z=r.RangeError,U=r.TypeError,V=r.Uint8Array,K=Array.prototype,X=l.ArrayBuffer,G=l.DataView,q=R(0),Y=R(2),Q=R(3),J=R(4),$=R(5),ee=R(6),te=T(!0),ne=T(!1),ie=I.values,re=I.keys,oe=I.entries,se=K.lastIndexOf,ae=K.reduce,le=K.reduceRight,ce=K.join,ue=K.sort,he=K.slice,fe=K.toString,de=K.toLocaleString,pe=L("iterator"),_e=L("toStringTag"),me=O("typed_constructor"),be=O("def_constructor"),ge=a.CONSTR,ve=a.TYPED,ye=a.VIEW,we=R(1,function(e,t){return Ae(M(e,e[be]),t)}),xe=o(function(){return 1===new V(new Uint16Array([1]).buffer)[0]}),ke=!!V&&!!V.prototype.set&&o(function(){new V(1).set({})}),Ce=function(e,t){var n=p(e);if(n<0||n%t)throw Z("Wrong offset!");return n},Se=function(e){if(w(e)&&ve in e)return e;throw U(e+" is not a typed array!")},Ae=function(e,t){if(!(w(e)&&me in e))throw U("It is not a typed array constructor!");return new e(t)},Ee=function(e,t){return Oe(M(e,e[be]),t)},Oe=function(e,t){for(var n=0,i=t.length,r=Ae(e,i);i>n;)r[n]=t[n++];return r},Le=function(e,t,n){z(e,t,{get:function(){return this._d[n]}})},Re=function(e){var t,n,i,r,o,s,a=x(e),l=arguments.length,u=l>1?arguments[1]:void 0,h=void 0!==u,f=E(a);if(void 0!=f&&!k(f)){for(s=f.call(a),i=[],t=0;!(o=s.next()).done;t++)i.push(o.value);a=i}for(h&&l>2&&(u=c(u,arguments[2],2)),t=0,n=_(a.length),r=Ae(this,n);n>t;t++)r[t]=h?u(a[t],t):a[t];return r},Te=function(){for(var e=0,t=arguments.length,n=Ae(this,t);t>e;)n[e]=arguments[e++];return n},Me=!!V&&o(function(){de.call(new V(1))}),Ie=function(){return de.apply(Me?he.call(Se(this)):Se(this),arguments)},Pe={copyWithin:function(e,t){return H.call(Se(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return J(Se(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return B.apply(Se(this),arguments)},filter:function(e){return Ee(this,Y(Se(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return $(Se(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Se(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){q(Se(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Se(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Se(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ce.apply(Se(this),arguments)},lastIndexOf:function(e){return se.apply(Se(this),arguments)},map:function(e){return we(Se(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ae.apply(Se(this),arguments)},reduceRight:function(e){return le.apply(Se(this),arguments)},reverse:function(){for(var e,t=Se(this).length,n=Math.floor(t/2),i=0;i<n;)e=this[i],this[i++]=this[--t],this[t]=e;return this},some:function(e){return Q(Se(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return ue.call(Se(this),e)},subarray:function(e,t){var n=Se(this),i=n.length,r=b(e,i);return new(M(n,n[be]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,_((void 0===t?i:b(t,i))-r))}},De=function(e,t){return Ee(this,he.call(Se(this),e,t))},Ne=function(e){Se(this);var t=Ce(arguments[1],1),n=this.length,i=x(e),r=_(i.length),o=0;if(r+t>n)throw Z("Wrong length!");for(;o<r;)this[t+o]=i[o++]},Be={entries:function(){return oe.call(Se(this))},keys:function(){return re.call(Se(this))},values:function(){return ie.call(Se(this))}},He=function(e,t){return w(e)&&e[ve]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},je=function(e,t){return He(e,t=g(t,!0))?h(2,e[t]):W(e,t)},Fe=function(e,t,n){return!(He(e,t=g(t,!0))&&w(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?z(e,t,n):(e[t]=n.value,e)};ge||(F.f=je,j.f=Fe),s(s.S+s.F*!ge,"Object",{getOwnPropertyDescriptor:je,defineProperty:Fe}),o(function(){fe.call({})})&&(fe=de=function(){return ce.call(this)});var ze=d({},Pe);d(ze,Be),f(ze,pe,Be.values),d(ze,{slice:De,set:Ne,constructor:function(){},toString:fe,toLocaleString:Ie}),Le(ze,"buffer","b"),Le(ze,"byteOffset","o"),Le(ze,"byteLength","l"),Le(ze,"length","e"),z(ze,_e,{get:function(){return this[ve]}}),e.exports=function(e,t,n,l){var c=e+((l=!!l)?"Clamped":"")+"Array",h="get"+e,d="set"+e,p=r[c],b=p||{},g=p&&S(p),v=!p||!a.ABV,x={},k=p&&p.prototype,E=function(e,n){z(e,n,{get:function(){return function(e,n){var i=e._d;return i.v[h](n*t+i.o,xe)}(this,n)},set:function(e){return function(e,n,i){var r=e._d;l&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),r.v[d](n*t+r.o,i,xe)}(this,n,e)},enumerable:!0})};v?(p=n(function(e,n,i,r){u(e,p,c,"_d");var o,s,a,l,h=0,d=0;if(w(n)){if(!(n instanceof X||"ArrayBuffer"==(l=y(n))||"SharedArrayBuffer"==l))return ve in n?Oe(p,n):Re.call(p,n);o=n,d=Ce(i,t);var b=n.byteLength;if(void 0===r){if(b%t)throw Z("Wrong length!");if((s=b-d)<0)throw Z("Wrong length!")}else if((s=_(r)*t)+d>b)throw Z("Wrong length!");a=s/t}else a=m(n),o=new X(s=a*t);for(f(e,"_d",{b:o,o:d,l:s,e:a,v:new G(o)});h<a;)E(e,h++)}),k=p.prototype=C(ze),f(k,"constructor",p)):o(function(){p(1)})&&o(function(){new p(-1)})&&D(function(e){new p,new p(null),new p(1.5),new p(e)},!0)||(p=n(function(e,n,i,r){var o;return u(e,p,c),w(n)?n instanceof X||"ArrayBuffer"==(o=y(n))||"SharedArrayBuffer"==o?void 0!==r?new b(n,Ce(i,t),r):void 0!==i?new b(n,Ce(i,t)):new b(n):ve in n?Oe(p,n):Re.call(p,n):new b(m(n))}),q(g!==Function.prototype?A(b).concat(A(g)):A(b),function(e){e in p||f(p,e,b[e])}),p.prototype=k,i||(k.constructor=p));var O=k[pe],L=!!O&&("values"==O.name||void 0==O.name),R=Be.values;f(p,me,!0),f(k,ve,c),f(k,ye,!0),f(k,be,p),(l?new p(1)[_e]==c:_e in k)||z(k,_e,{get:function(){return c}}),x[c]=p,s(s.G+s.W+s.F*(p!=b),x),s(s.S,c,{BYTES_PER_ELEMENT:t}),s(s.S+s.F*o(function(){b.of.call(p,1)}),c,{from:Re,of:Te}),"BYTES_PER_ELEMENT"in k||f(k,"BYTES_PER_ELEMENT",t),s(s.P,c,Pe),N(c),s(s.P+s.F*ke,c,{set:Ne}),s(s.P+s.F*!L,c,Be),i||k.toString==fe||(k.toString=fe),s(s.P+s.F*o(function(){new p(1).slice()}),c,{slice:De}),s(s.P+s.F*(o(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!o(function(){k.toLocaleString.call([1,2])})),c,{toLocaleString:Ie}),P[c]=L?O:R,i||L||f(k,pe,R)}}else e.exports=function(){}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(16);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._events=this._events||{}}return e.prototype.on=function(e,t){this._events[e]=this._events[e]||[],this._events[e].push(t)},e.prototype.addDisposableListener=function(e,t){var n=this;return this.on(e,t),{dispose:function(){t&&(n.off(e,t),t=null)}}},e.prototype.off=function(e,t){if(this._events[e])for(var n=this._events[e],i=n.length;i--;)if(n[i]===t)return void n.splice(i,1)},e.prototype.removeAllListeners=function(e){this._events[e]&&delete this._events[e]},e.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(this._events[e])for(var i=this._events[e],r=0;r<i.length;r++)i[r].apply(this,t)},e.prototype.listeners=function(e){return this._events[e]||[]},e.prototype.destroy=function(){this._events={}},e}();t.EventEmitter=i},function(e,t,n){var i=n(37),r=n(32),o=n(9),s=n(33),a=n(18),l=n(101),c=Object.getOwnPropertyDescriptor;t.f=n(6)?c:function(e,t){if(e=o(e),t=s(t,!0),l)try{return c(e,t)}catch(e){}if(a(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t,n){var i=n(3)("unscopables"),r=Array.prototype;void 0==r[i]&&n(14)(r,i,{}),e.exports=function(e){r[i][e]=!0}},function(e,t,n){var i=n(17),r=n(41),o=n(4),s=n(5),a=n(63);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,h=6==e,f=5==e||h,d=t||a;return function(t,a,p){for(var _,m,b=o(t),g=r(b),v=i(a,p,3),y=s(g.length),w=0,x=n?d(t,y):l?d(t,0):void 0;y>w;w++)if((f||w in g)&&(m=v(_=g[w],w,b),e))if(n)x[w]=m;else if(m)switch(e){case 3:return!0;case 5:return _;case 6:return w;case 2:x.push(_)}else if(u)return!1;return h?-1:c||u?u:x}}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(132),s=n(19);t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.MAX_BUFFER_SIZE=4294967295;var a=function(){function e(e,t){this._terminal=e,this._hasScrollback=t,this.markers=[],this.clear()}return Object.defineProperty(e.prototype,"lines",{get:function(){return this._lines},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._terminal.rows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._terminal.rows},enumerable:!0,configurable:!0}),e.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;var n=e+this._terminal.options.scrollback;return n>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:n},e.prototype.fillViewportRows=function(){if(0===this._lines.length)for(var e=this._terminal.rows;e--;)this.lines.push(this._terminal.blankLine())},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this._lines=new o.CircularList(this._getCorrectBufferLength(this._terminal.rows)),this.scrollTop=0,this.scrollBottom=this._terminal.rows-1,this.setupTabStops()},e.prototype.resize=function(e,t){var n=this._getCorrectBufferLength(t);if(n>this._lines.maxLength&&(this._lines.maxLength=n),this._lines.length>0){if(this._terminal.cols<e)for(var i=[this._terminal.defAttr," ",1,32],r=0;r<this._lines.length;r++)for(;this._lines.get(r).length<e;)this._lines.get(r).push(i);var o=0;if(this._terminal.rows<t)for(var s=this._terminal.rows;s<t;s++)this._lines.length<t+this.ybase&&(this.ybase>0&&this._lines.length<=this.ybase+this.y+o+1?(this.ybase--,o++,this.ydisp>0&&this.ydisp--):this._lines.push(this._terminal.blankLine(void 0,void 0,e)));else for(s=this._terminal.rows;s>t;s--)this._lines.length>t+this.ybase&&(this._lines.length>this.ybase+this.y+1?this._lines.pop():(this.ybase++,this.ydisp++));if(n<this._lines.maxLength){var a=this._lines.length-n;a>0&&(this._lines.trimStart(a),this.ybase=Math.max(this.ybase-a,0),this.ydisp=Math.max(this.ydisp-a,0)),this._lines.maxLength=n}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),o&&(this.y+=o),this.savedY=Math.min(this.savedY,t-1),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}this.scrollBottom=t-1},e.prototype.translateBufferLineToString=function(e,n,i,r){void 0===i&&(i=0),void 0===r&&(r=null);var o="",s=this.lines.get(e);if(!s)return"";var a=i;null===r&&(r=s.length);for(var l=r,c=0;c<s.length;c++){var u=s[c];o+=u[t.CHAR_DATA_CHAR_INDEX],0===u[t.CHAR_DATA_WIDTH_INDEX]?(i>=c&&a--,r>=c&&l--):u[t.CHAR_DATA_CHAR_INDEX].length>1&&(i>c&&(a+=u[t.CHAR_DATA_CHAR_INDEX].length-1),r>c&&(l+=u[t.CHAR_DATA_CHAR_INDEX].length-1))}if(n){var h=o.search(/\s+$/);if(-1!==h&&(l=Math.min(l,h)),l<=a)return""}return o.substring(a,l)},e.prototype.setupTabStops=function(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._terminal.cols;e+=this._terminal.options.tabStopWidth)this.tabs[e]=!0},e.prototype.prevStop=function(e){for(null==e&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._terminal.cols?this._terminal.cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._terminal.cols;);return e>=this._terminal.cols?this._terminal.cols-1:e<0?0:e},e.prototype.addMarker=function(e){var t=this,n=new l(e);return this.markers.push(n),n.disposables.push(this._lines.addDisposableListener("trim",function(e){n.line-=e,n.line<0&&n.dispose()})),n.on("dispose",function(){return t._removeMarker(n)}),n},e.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},e}();t.Buffer=a;var l=function(e){function t(n){var i=e.call(this)||this;return i.line=n,i._id=t.NEXT_ID++,i.isDisposed=!1,i.disposables=[],i}return r(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.disposables.forEach(function(e){return e.dispose()}),this.disposables.length=0,this.emit("dispose"))},t.NEXT_ID=1,t}(s.EventEmitter);t.Marker=l},function(e,t,n){var i=n(99),r=n(69);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t){e.exports=!1},function(e,t,n){var i=n(23),r=Math.max,o=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):o(e,t)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports={}},function(e,t,n){var i=n(1),r=n(14),o=n(18),s=n(26)("src"),a=Function.toString,l=(""+a).split("toString");n(12).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var c="function"==typeof n;c&&(o(n,"name")||r(n,"name",t)),e[t]!==n&&(c&&(o(n,s)||r(n,s,e[t]?""+e[t]:l.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(2);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var r={aborted:"Session aborted",peer_aborted:"Peer aborted session",already_aborted:"Session already aborted",crc:function(e,t){return this.got=e.slice(0),this.expected=t.slice(0),"CRC check failed! (got: "+e.join()+"; expected: "+t.join()+")"},validation:function(e){return e}};e.exports.Error=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),o=function(e){var t=r[e];switch(void 0===t?"undefined":i(t)){case"string":return t;case"function":var n=[].slice.call(arguments).slice(1);return t.apply(this,n)}return null}.apply(n,arguments);return o?(n.type=e,n.message=o):n.message=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Error),t}()},function(e,t,n){"use strict";e.exports.ZMLIB={ZDLE:24,XON:17,XOFF:19,ABORT_SEQUENCE:[24,24,24,24,24],strip_ignored_bytes:function(e){for(var t=e.length-1;t>=0;t--)switch(e[t]){case 17:case 145:case 19:case 147:e.splice(t,1);continue}return e},find_subarray:function(e,t){var n,i=0;Date.now();e:for(;-1!==i&&-1!==(i=e.indexOf(t[0],i));){for(n=1;n<t.length;n++)if(e[i+n]!==t[n]){i++;continue e}return i}return-1}}},function(e,t,n){var i=n(99),r=n(69).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(29),r=n(3)("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:o?i(t):"Object"==(s=i(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){var i=n(18),r=n(4),o=n(71)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var i=n(8).f,r=n(18),o=n(3)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},function(e,t,n){var i=n(29);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){var i=n(11),r=n(100),o=n(69),s=n(71)("IE_PROTO"),a=function(){},l=function(){var e,t=n(72)("iframe"),i=o.length;for(t.style.display="none",n(68).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;i--;)delete l.prototype[o[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=i(e),n=new a,a.prototype=null,n[s]=e):n=l(),void 0===t?n:r(n,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="undefined"==typeof navigator,r=i?"node":navigator.userAgent,o=i?"node":navigator.platform;function s(e,t){return e.indexOf(t)>=0}t.isFirefox=!!~r.indexOf("Firefox"),t.isMSIE=!!~r.indexOf("MSIE")||!!~r.indexOf("Trident"),t.isMac=s(["Macintosh","MacIntel","MacPPC","Mac68K"],o),t.isIpad="iPad"===o,t.isIphone="iPhone"===o,t.isMSWindows=s(["Windows","Win16","Win32","WinCE"],o),t.isLinux=o.indexOf("Linux")>=0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(82),r=n(81),o=n(122),s=n(24),a=function(){function e(e,t,n,i,r){this._container=e,this._alpha=i,this._colors=r,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=n.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype._initCanvas=function(){this._ctx=this._canvas.getContext("2d",{alpha:this._alpha}),this._alpha||this.clearAll()},e.prototype.onOptionsChanged=function(e){},e.prototype.onBlur=function(e){},e.prototype.onFocus=function(e){},e.prototype.onCursorMove=function(e){},e.prototype.onGridChanged=function(e,t,n){},e.prototype.onSelectionChanged=function(e,t,n){},e.prototype.onThemeChanged=function(e,t){this._refreshCharAtlas(e,t)},e.prototype.setTransparency=function(e,t){if(t!==this._alpha){var n=this._canvas;this._alpha=t,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,n),this._refreshCharAtlas(e,this._colors),this.onGridChanged(e,0,e.rows-1)}},e.prototype._refreshCharAtlas=function(e,t){var n=this;if(!(this._scaledCharWidth<=0&&this._scaledCharHeight<=0)){this._charAtlas=null;var i=o.acquireCharAtlas(e,t,this._scaledCharWidth,this._scaledCharHeight);i instanceof HTMLCanvasElement?this._charAtlas=i:i.then(function(e){return n._charAtlas=e})}},e.prototype.resize=function(e,t){this._scaledCellWidth=t.scaledCellWidth,this._scaledCellHeight=t.scaledCellHeight,this._scaledCharWidth=t.scaledCharWidth,this._scaledCharHeight=t.scaledCharHeight,this._scaledCharLeft=t.scaledCharLeft,this._scaledCharTop=t.scaledCharTop,this._canvas.width=t.scaledCanvasWidth,this._canvas.height=t.scaledCanvasHeight,this._canvas.style.width=t.canvasWidth+"px",this._canvas.style.height=t.canvasHeight+"px",this._alpha||this.clearAll(),this._refreshCharAtlas(e,this._colors)},e.prototype.fillCells=function(e,t,n,i){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight)},e.prototype.fillBottomLineAtCells=function(e,t,n){void 0===n&&(n=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,n*this._scaledCellWidth,window.devicePixelRatio)},e.prototype.fillLeftLineAtCell=function(e,t){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio,this._scaledCellHeight)},e.prototype.strokeRectAtCell=function(e,t,n,i){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,n*this._scaledCellWidth-window.devicePixelRatio,i*this._scaledCellHeight-window.devicePixelRatio)},e.prototype.clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype.clearCells=function(e,t,n,i){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight))},e.prototype.fillCharTrueColor=function(e,t,n,i){this._ctx.font=this._getFont(e,!1),this._ctx.textBaseline="top",this._clipRow(e,i),this._ctx.fillText(t[s.CHAR_DATA_CHAR_INDEX],n*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop)},e.prototype.drawChar=function(e,t,n,o,s,a,l,c,u,h){var f=0;l<256?f=l+2:u&&e.options.enableBold&&(f=1);var d=n<256,p=f>1&&l<16&&(l<8||u),_=l>=256,m=c>=256;if(this._charAtlas&&d&&(p||_)&&m){var b=this._scaledCharWidth+r.CHAR_ATLAS_CELL_SPACING,g=this._scaledCharHeight+r.CHAR_ATLAS_CELL_SPACING;h&&(this._ctx.globalAlpha=i.DIM_OPACITY),u&&!e.options.enableBold&&f>1&&(f-=8),this._ctx.drawImage(this._charAtlas,n*b,f*g,b,this._scaledCharHeight,s*this._scaledCellWidth+this._scaledCharLeft,a*this._scaledCellHeight+this._scaledCharTop,b,this._scaledCharHeight)}else this._drawUncachedChar(e,t,o,l,s,a,u&&e.options.enableBold,h)},e.prototype._drawUncachedChar=function(e,t,n,r,o,s,a,l){this._ctx.save(),this._ctx.font=this._getFont(e,a),this._ctx.textBaseline="top",r===i.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:this._ctx.fillStyle=r<256?this._colors.ansi[r].css:this._colors.foreground.css,this._clipRow(e,s),l&&(this._ctx.globalAlpha=i.DIM_OPACITY),this._ctx.fillText(t,o*this._scaledCellWidth+this._scaledCharLeft,s*this._scaledCellHeight+this._scaledCharTop),this._ctx.restore()},e.prototype._clipRow=function(e,t){this._ctx.beginPath(),this._ctx.rect(0,t*this._scaledCellHeight,e.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e.prototype._getFont=function(e,t){return(t?e.options.fontWeightBold:e.options.fontWeight)+" "+e.options.fontSize*window.devicePixelRatio+"px "+e.options.fontFamily},e}();t.BaseRenderLayer=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.NUL="\0",e.SOH="\ 1",e.STX="\ 2",e.ETX="\ 3",e.EOT="\ 4",e.ENQ="\ 5",e.ACK="\ 6",e.BEL="\a",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="\ e",e.SI="\ f",e.DLE="\10",e.DC1="\11",e.DC2="\12",e.DC3="\13",e.DC4="\14",e.NAK="\15",e.SYN="\16",e.ETB="\17",e.CAN="\18",e.EM="\19",e.SUB="\1a",e.ESC="\e",e.FS="\1c",e.GS="\1d",e.RS="\1e",e.US="\1f",e.SP=" ",e.DEL="\7f"}(t.C0||(t.C0={}))},function(e,t,n){for(var i,r=n(1),o=n(14),s=n(26),a=s("typed_array"),l=s("view"),c=!(!r.ArrayBuffer||!r.DataView),u=c,h=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(i=r[f[h++]])?(o(i.prototype,a,!0),o(i.prototype,l,!0)):u=!1;e.exports={ABV:c,CONSTR:u,TYPED:a,VIEW:l}},function(e,t,n){var i=n(11),r=n(16),o=n(3)("species");e.exports=function(e,t){var n,s=i(e).constructor;return void 0===s||void 0==(n=i(s)[o])?t:r(n)}},function(e,t,n){"use strict";e.exports=n(27)||!n(7)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n(1)[e]})},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(26)("meta"),r=n(2),o=n(18),s=n(8).f,a=0,l=Object.isExtensible||function(){return!0},c=!n(7)(function(){return l(Object.preventExtensions({}))}),u=function(e){s(e,i,{value:{i:"O"+ ++a,w:{}}})},h=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,i)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[i].i},getWeak:function(e,t){if(!o(e,i)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[i].w},onFreeze:function(e){return c&&h.NEED&&l(e)&&!o(e,i)&&u(e),e}}},function(e,t,n){"use strict";var i=n(1),r=n(8),o=n(6),s=n(3)("species");e.exports=function(e){var t=i[e];o&&t&&!t[s]&&r.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var i=n(29);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(9),r=n(5),o=n(28);e.exports=function(e){return function(t,n,s){var a,l=i(t),c=r(l.length),u=o(s,c);if(e&&n!=n){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){"use strict";var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var r,o,s=e.exports;Object.assign(s,n(35));var a=s.ZMLIB.ZDLE;s.ZDLE=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._config={},t&&this.set_escape_ctrl_chars(!!t.escape_ctrl_chars)}return i(e,[{key:"set_escape_ctrl_chars",value:function(e){if("boolean"!=typeof e)throw"need boolean!";e!==this._config.escape_ctrl_chars&&(this._config.escape_ctrl_chars=e,this._setup_zdle_table())}},{key:"escapes_ctrl_chars",value:function(){return!!this._config.escape_ctrl_chars}},{key:"encode",value:function(e){if(!this._zdle_table)throw"No ZDLE encode table configured!";var t=this._zdle_table,n=this._lastcode,i=new ArrayBuffer(2*e.length),s=new Uint8Array(i),l=this._config.escape_ctrl_chars,c=0;for(r=0;r<e.length;r++){if(!(o=t[e[r]]))throw console.trace(),console.error("bad encode() call:",JSON.stringify(e)),this._lastcode=n,"Invalid octet: "+e[r];n=e[r],1===o||(l||2===o||64==(127&n))&&(s[c]=a,c++,n^=64),s[c]=n,c++}return this._lastcode=n,e.splice(0),e.push.apply(e,new Uint8Array(i,0,c)),e}},{key:"_setup_zdle_table",value:function(){for(var e=new Array(256),t=0;t<e.length;t++)if(96&t)e[t]=1;else switch(t){case a:case s.ZMLIB.XOFF:case s.ZMLIB.XON:case 128|s.ZMLIB.XOFF:case 128|s.ZMLIB.XON:e[t]=2;break;case 16:case 144:e[t]=this._config.turbo_escape?1:2;break;case 13:case 141:e[t]=this._config.escape_ctrl_chars?2:this._config.turbo_escape?1:3;break;default:e[t]=this._config.escape_ctrl_chars?2:1}this._zdle_table=e}}],[{key:"decode",value:function(e){for(var t=e.length-1;t>=0;t--)e[t]===a&&e.splice(t,2,e[t+1]-64);return e}},{key:"splice",value:function(t,n,i){var r=0;n||(n=0);for(var o=n;o<t.length&&r<i;o++)r++,t[o]===a&&o++;if(r===i){if(t.length===o-1)return;return t.splice(0,n),e.decode(t.splice(0,o-n))}}}]),e}()},function(e,t,n){"use strict";for(var i=e.exports,r=[48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102],o={},s=0;s<r.length;s++)o[r[s]]=s;i.ENCODELIB={pack_u16_be:function(e){if(e>65535)throw"Number cannot exceed 16 bits: "+e;return[e>>8,255&e]},pack_u32_le:function(e){var t=e/65536;return[255&e,(65535&e)>>8,255&t,t>>8]},unpack_u16_be:function(e){return(e[0]<<8)+e[1]},unpack_u32_le:function(e){return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]},octets_to_hex:function(e){for(var t=[],n=0;n<e.length;n++)t.push(r[e[n]>>4],r[15&e[n]]);return t},parse_hex_octets:function(e){for(var t=new Array(e.length/2),n=0;n<t.length;n++)t[n]=(o[e[2*n]]<<4)+o[e[1+2*n]];return t}}},function(e,t,n){"use strict";var i=n(1),r=n(6),o=n(27),s=n(46),a=n(14),l=n(57),c=n(7),u=n(59),h=n(23),f=n(5),d=n(86),p=n(36).f,_=n(8).f,m=n(62),b=n(40),g="prototype",v="Wrong index!",y=i.ArrayBuffer,w=i.DataView,x=i.Math,k=i.RangeError,C=i.Infinity,S=y,A=x.abs,E=x.pow,O=x.floor,L=x.log,R=x.LN2,T=r?"_b":"buffer",M=r?"_l":"byteLength",I=r?"_o":"byteOffset";function P(e,t,n){var i,r,o,s=new Array(n),a=8*n-t-1,l=(1<<a)-1,c=l>>1,u=23===t?E(2,-24)-E(2,-77):0,h=0,f=e<0||0===e&&1/e<0?1:0;for((e=A(e))!=e||e===C?(r=e!=e?1:0,i=l):(i=O(L(e)/R),e*(o=E(2,-i))<1&&(i--,o*=2),(e+=i+c>=1?u/o:u*E(2,1-c))*o>=2&&(i++,o/=2),i+c>=l?(r=0,i=l):i+c>=1?(r=(e*o-1)*E(2,t),i+=c):(r=e*E(2,c-1)*E(2,t),i=0));t>=8;s[h++]=255&r,r/=256,t-=8);for(i=i<<t|r,a+=t;a>0;s[h++]=255&i,i/=256,a-=8);return s[--h]|=128*f,s}function D(e,t,n){var i,r=8*n-t-1,o=(1<<r)-1,s=o>>1,a=r-7,l=n-1,c=e[l--],u=127&c;for(c>>=7;a>0;u=256*u+e[l],l--,a-=8);for(i=u&(1<<-a)-1,u>>=-a,a+=t;a>0;i=256*i+e[l],l--,a-=8);if(0===u)u=1-s;else{if(u===o)return i?NaN:c?-C:C;i+=E(2,t),u-=s}return(c?-1:1)*i*E(2,u-t)}function N(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function B(e){return[255&e]}function H(e){return[255&e,e>>8&255]}function j(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function F(e){return P(e,52,8)}function z(e){return P(e,23,4)}function W(e,t,n){_(e[g],t,{get:function(){return this[n]}})}function Z(e,t,n,i){var r=d(+n);if(r+t>e[M])throw k(v);var o=e[T]._b,s=r+e[I],a=o.slice(s,s+t);return i?a:a.reverse()}function U(e,t,n,i,r,o){var s=d(+n);if(s+t>e[M])throw k(v);for(var a=e[T]._b,l=s+e[I],c=i(+r),u=0;u<t;u++)a[l+u]=c[o?u:t-u-1]}if(s.ABV){if(!c(function(){y(1)})||!c(function(){new y(-1)})||c(function(){return new y,new y(1.5),new y(NaN),"ArrayBuffer"!=y.name})){for(var V,K=(y=function(e){return u(this,y),new S(d(e))})[g]=S[g],X=p(S),G=0;X.length>G;)(V=X[G++])in y||a(y,V,S[V]);o||(K.constructor=y)}var q=new w(new y(2)),Y=w[g].setInt8;q.setInt8(0,2147483648),q.setInt8(1,2147483649),!q.getInt8(0)&&q.getInt8(1)||l(w[g],{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},!0)}else y=function(e){u(this,y,"ArrayBuffer");var t=d(e);this._b=m.call(new Array(t),0),this[M]=t},w=function(e,t,n){u(this,w,"DataView"),u(e,y,"DataView");var i=e[M],r=h(t);if(r<0||r>i)throw k("Wrong offset!");if(r+(n=void 0===n?i-r:f(n))>i)throw k("Wrong length!");this[T]=e,this[I]=r,this[M]=n},r&&(W(y,"byteLength","_l"),W(w,"buffer","_b"),W(w,"byteLength","_l"),W(w,"byteOffset","_o")),l(w[g],{getInt8:function(e){return Z(this,1,e)[0]<<24>>24},getUint8:function(e){return Z(this,1,e)[0]},getInt16:function(e){var t=Z(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Z(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return N(Z(this,4,e,arguments[1]))},getUint32:function(e){return N(Z(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return D(Z(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return D(Z(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){U(this,1,e,B,t)},setUint8:function(e,t){U(this,1,e,B,t)},setInt16:function(e,t){U(this,2,e,H,t,arguments[2])},setUint16:function(e,t){U(this,2,e,H,t,arguments[2])},setInt32:function(e,t){U(this,4,e,j,t,arguments[2])},setUint32:function(e,t){U(this,4,e,j,t,arguments[2])},setFloat32:function(e,t){U(this,4,e,z,t,arguments[2])},setFloat64:function(e,t){U(this,8,e,F,t,arguments[2])}});b(y,"ArrayBuffer"),b(w,"DataView"),a(w[g],s.VIEW,!0),t.ArrayBuffer=y,t.DataView=w},function(e,t,n){var i=n(31);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},function(e,t,n){"use strict";var i=n(16);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i}),this.resolve=i(t),this.reject=i(n)}(e)}},function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){"use strict";var i=n(38),r={};r[n(3)("toStringTag")]="z",r+""!="[object z]"&&n(31)(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},function(e,t,n){"use strict";var i=n(21),r=n(203),o=n(30),s=n(9);e.exports=n(102)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";var i=n(4),r=n(28),o=n(5);e.exports=function(e){for(var t=i(this),n=o(t.length),s=arguments.length,a=r(s>1?arguments[1]:void 0,n),l=s>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>a;)t[a++]=e;return t}},function(e,t,n){var i=n(217);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(3)("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o=[7],s=o[i]();s.next=function(){return{done:n=!0}},o[i]=function(){return s},e(o)}catch(e){}return n}},function(e,t,n){var i=n(38),r=n(3)("iterator"),o=n(30);e.exports=n(12).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||o[i(e)]}},function(e,t,n){"use strict";var i=n(8),r=n(32);e.exports=function(e,t,n){t in e?i.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var i=n(30),r=n(3)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[r]===e)}},function(e,t,n){var i=n(1).document;e.exports=i&&i.documentElement},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(1),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});e.exports=function(e){return r[e]||(r[e]={})}},function(e,t,n){var i=n(70)("keys"),r=n(26);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(2),r=n(1).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.blankLine="Blank line",t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._renderer=e}return e.getCoordsRelativeToElement=function(e,t){if(null==e.pageX)return null;for(var n=t,i=e.pageX,r=e.pageY;t;)i-=t.offsetLeft,r-=t.offsetTop,t=t.offsetParent;for(t=n;t&&t!==t.ownerDocument.body;)i+=t.scrollLeft,r+=t.scrollTop,t=t.parentElement;return[i,r]},e.prototype.getCoords=function(t,n,i,r,o,s,a){if(!i.width||!i.height)return null;var l=e.getCoordsRelativeToElement(t,n);return l?(l[0]=Math.ceil((l[0]+(a?this._renderer.dimensions.actualCellWidth/2:0))/this._renderer.dimensions.actualCellWidth),l[1]=Math.ceil(l[1]/this._renderer.dimensions.actualCellHeight),l[0]=Math.min(Math.max(l[0],1),o+(a?1:0)),l[1]=Math.min(Math.max(l[1],1),s),l):null},e.prototype.getRawByteCoords=function(e,t,n,i,r,o){var s=this.getCoords(e,t,n,i,r,o),a=s[0],l=s[1];return{x:a+=32,y:l+=32}},e}();t.MouseHelper=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){var t=this;this._terminal=e,this._zones=[],this._areZonesActive=!1,this._tooltipTimeout=null,this._currentZone=null,this._lastHoverCoords=[null,null],this._terminal.element.addEventListener("mousedown",function(e){return t._onMouseDown(e)}),this._mouseMoveListener=function(e){return t._onMouseMove(e)},this._clickListener=function(e){return t._onClick(e)}}return e.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},e.prototype.clearAll=function(e,t){if(0!==this._zones.length){t||(e=0,t=this._terminal.rows-1);for(var n=0;n<this._zones.length;n++){var i=this._zones[n];(i.y1>e&&i.y1<=t+1||i.y2>e&&i.y2<=t+1||i.y1<e&&i.y2>t+1)&&(this._currentZone&&this._currentZone===i&&(this._currentZone.leaveCallback(),this._currentZone=null),this._zones.splice(n--,1))}0===this._zones.length&&this._deactivate()}},e.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._terminal.element.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.addEventListener("click",this._clickListener))},e.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._terminal.element.removeEventListener("mousemove",this._mouseMoveListener),this._terminal.element.removeEventListener("click",this._clickListener))},e.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},e.prototype._onHover=function(e){var t=this,n=this._findZoneEventAt(e);n!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=null,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),n&&(this._currentZone=n,n.hoverCallback&&n.hoverCallback(e),this._tooltipTimeout=setTimeout(function(){return t._onTooltip(e)},500)))},e.prototype._onTooltip=function(e){this._tooltipTimeout=null;var t=this._findZoneEventAt(e);t&&t.tooltipCallback&&t.tooltipCallback(e)},e.prototype._onMouseDown=function(e){if(this._areZonesActive){var t=this._findZoneEventAt(e);t&&t.willLinkActivate(e)&&(e.preventDefault(),e.stopImmediatePropagation())}},e.prototype._onClick=function(e){var t=this._findZoneEventAt(e);t&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},e.prototype._findZoneEventAt=function(e){var t=this._terminal.mouseHelper.getCoords(e,this._terminal.screenElement,this._terminal.charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows);if(!t)return null;for(var n=t[0],i=t[1],r=0;r<this._zones.length;r++){var o=this._zones[r];if(o.y1===o.y2){if(i===o.y1&&n>=o.x1&&n<o.x2)return o}else if(i===o.y1&&n>=o.x1||i===o.y2&&n<o.x2||i>o.y1&&i<o.y2)return o}return null},e}();t.MouseZoneManager=i;var r=function(){return function(e,t,n,i,r,o,s,a,l){this.x1=e,this.y1=t,this.x2=n,this.y2=i,this.clickCallback=r,this.hoverCallback=o,this.tooltipCallback=s,this.leaveCallback=a,this.willLinkActivate=l}}();t.MouseZone=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.setListener=function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener(window.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr()},this._updateDpr()},e.prototype._updateDpr=function(){this._resolutionMediaMatchList&&this._resolutionMediaMatchList.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener)},e.prototype.clearListener=function(){this._listener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._listener=null,this._outerListener=null)},e}();t.ScreenDprMonitor=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this._terminal=e,this._callback=t,this._animationFrame=null}return e.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},e.prototype.refresh=function(e,t){var n=this;e=e||0,t=t||this._terminal.rows-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return n._innerRefresh()}))},e.prototype._innerRefresh=function(){this._rowStart=Math.max(this._rowStart,0),this._rowEnd=Math.min(this._rowEnd,this._terminal.rows-1),this._callback(this._rowStart,this._rowEnd),this._rowStart=null,this._rowEnd=null,this._animationFrame=null},e}();t.RenderDebouncer=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.HOVER="linkhover",e.TOOLTIP="linktooltip",e.LEAVE="linkleave"}(t.LinkHoverEventTypes||(t.LinkHoverEventTypes={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=l("#ffffff"),r=l("#000000"),o=l("#ffffff"),s=l("#000000"),a={css:"rgba(255, 255, 255, 0.3)",rgba:4294967159};function l(e){return{css:e,rgba:parseInt(e.slice(1),16)<<8|255}}function c(e){var t=e.toString(16);return t.length<2?"0"+t:t}t.DEFAULT_ANSI_COLORS=function(){for(var e=[l("#2e3436"),l("#cc0000"),l("#4e9a06"),l("#c4a000"),l("#3465a4"),l("#75507b"),l("#06989a"),l("#d3d7cf"),l("#555753"),l("#ef2929"),l("#8ae234"),l("#fce94f"),l("#729fcf"),l("#ad7fa8"),l("#34e2e2"),l("#eeeeec")],t=[0,95,135,175,215,255],n=0;n<216;n++){var i=t[n/36%6|0],r=t[n/6%6|0],o=t[n%6];e.push({css:"#"+c(i)+c(r)+c(o),rgba:(i<<24|r<<16|o<<8|255)>>>0})}for(n=0;n<24;n++){var s=8+10*n,a=c(s);e.push({css:"#"+a+a+a,rgba:(s<<24|s<<16|s<<8|255)>>>0})}return e}();var u=function(){function e(e,n){this.allowTransparency=n;var l=e.createElement("canvas");l.width=1,l.height=1,this._ctx=l.getContext("2d"),this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this.colors={foreground:i,background:r,cursor:o,cursorAccent:s,selection:a,ansi:t.DEFAULT_ANSI_COLORS.slice()}}return e.prototype.setTheme=function(e){this.colors.foreground=this._parseColor(e.foreground,i),this.colors.background=this._parseColor(e.background,r),this.colors.cursor=this._parseColor(e.cursor,o,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,s,!0),this.colors.selection=this._parseColor(e.selection,a,!0),this.colors.ansi[0]=this._parseColor(e.black,t.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,t.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,t.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,t.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,t.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,t.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,t.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,t.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,t.DEFAULT_ANSI_COLORS[15])},e.prototype._parseColor=function(e,t,n){if(void 0===n&&(n=this.allowTransparency),!e)return t;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+e+" is invalid using fallback "+t.css),t;this._ctx.fillRect(0,0,1,1);var i=this._ctx.getImageData(0,0,1,1).data;return n||255===i[3]?{css:e,rgba:(i[0]<<24|i[1]<<16|i[2]<<8|i[3])>>>0}:(console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+t.css+"."),t)},e}();t.ColorManager=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR_ATLAS_CELL_SPACING=1},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INVERTED_DEFAULT_COLOR=-1,t.DIM_OPACITY=.5},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.BOLD=1]="BOLD",e[e.UNDERLINE=2]="UNDERLINE",e[e.BLINK=4]="BLINK",e[e.INVERSE=8]="INVERSE",e[e.INVISIBLE=16]="INVISIBLE",e[e.DIM=32]="DIM"}(t.FLAGS||(t.FLAGS={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"\t",c:"\f",d:"\r",e:"\n",f:"°",g:"±",h:"",i:"\v",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=null,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},function(e,t,n){"use strict";var i,r=n(137),o=e.exports;Object.assign(o,n(34),n(55));var s=16,a=4129,l=65535,c=1<<s-1;function u(e,t){return i||function(){i=new Array(256);for(var e=s-8,t=0;t<256;t++){for(var n=t<<e&l,r=0;r<8;r++)0!=(n&c)?(n<<=1,n^=a):n<<=1;i[t]=n&l}}(),i[t>>8&255]^(255&t)<<8^e}function h(e,t){if(e.join()!==t.join())throw new o.Error("crc",t,e)}o.CRC={crc16:function(e){for(var t=e[0],n=1;n<e.length;n++)t=u(e[n],t);return t=u(0,u(0,t)),o.ENCODELIB.pack_u16_be(t)},crc32:function(e){return o.ENCODELIB.pack_u32_le(r.buf(e)>>>0)},verify16:function(e,t){return h(this.crc16(e),t)},verify32:function(e,t){try{h(this.crc32(e),t)}catch(t){throw t.input=e.slice(0),t}}}},function(e,t,n){var i=n(23),r=n(5);e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var i=n(11),r=n(2),o=n(58);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var i,r,o,s=n(17),a=n(161),l=n(68),c=n(72),u=n(1),h=u.process,f=u.setImmediate,d=u.clearImmediate,p=u.MessageChannel,_=u.Dispatch,m=0,b={},g=function(){var e=+this;if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},v=function(e){g.call(e.data)};f&&d||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++m]=function(){a("function"==typeof e?e:Function(e),t)},i(m),m},d=function(e){delete b[e]},"process"==n(29)(h)?i=function(e){h.nextTick(s(g,e,1))}:_&&_.now?i=function(e){_.now(s(g,e,1))}:p?(o=(r=new p).port2,r.port1.onmessage=v,i=s(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(e){u.postMessage(e+"","*")},u.addEventListener("message",v,!1)):i="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),g.call(e)}}:function(e){setTimeout(s(g,e,1),0)}),e.exports={set:f,clear:d}},function(e,t,n){var i=n(8),r=n(20),o=n(92),s=n(9);e.exports=function(e,t){for(var n,a=o(s(t)),l=a.length,c=0;l>c;)i.f(e,n=a[c++],r.f(t,n));return e}},function(e,t,n){var i=n(25),r=n(9),o=n(37).f;e.exports=function(e){return function(t){for(var n,s=r(t),a=i(s),l=a.length,c=0,u=[];l>c;)o.call(s,n=a[c++])&&u.push(e?[n,s[n]]:s[n]);return u}}},function(e,t,n){var i=n(36),r=n(49),o=n(11),s=n(1).Reflect;e.exports=s&&s.ownKeys||function(e){var t=i.f(o(e)),n=r.f;return n?t.concat(n(e)):t}},function(e,t,n){var i=n(9),r=n(36).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?function(e){try{return r(e)}catch(e){return s.slice()}}(e):r(i(e))}},function(e,t,n){t.f=n(3)},function(e,t,n){"use strict";var i=n(52),r=n(2),o=n(5),s=n(17),a=n(3)("isConcatSpreadable");e.exports=function e(t,n,l,c,u,h,f,d){for(var p,_,m=u,b=0,g=!!f&&s(f,d,3);b<c;){if(b in l){if(p=g?g(l[b],b,n):l[b],_=!1,r(p)&&(_=void 0!==(_=p[a])?!!_:i(p)),_&&h>0)m=e(t,n,p,o(p.length),m,h-1)-1;else{if(m>=9007199254740991)throw TypeError();t[m]=p}m++}b++}return m}},function(e,t,n){"use strict";var i=n(4),r=n(28),o=n(5);e.exports=[].copyWithin||function(e,t){var n=i(this),s=o(n.length),a=r(e,s),l=r(t,s),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?s:r(c,s))-l,s-a),h=1;for(l<a&&a<l+u&&(h=-1,l+=u-1,a+=u-1);u-- >0;)l in n?n[a]=n[l]:delete n[a],a+=h,l+=h;return n}},function(e,t,n){var i=n(16),r=n(4),o=n(41),s=n(5);e.exports=function(e,t,n,a,l){i(t);var c=r(e),u=o(c),h=s(c.length),f=l?h-1:0,d=l?-1:1;if(n<2)for(;;){if(f in u){a=u[f],f+=d;break}if(f+=d,l?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?f>=0:h>f;f+=d)f in u&&(a=t(a,u[f],f,c));return a}},function(e,t,n){var i=n(11);e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&i(o.call(e)),t}}},function(e,t,n){var i=n(18),r=n(9),o=n(53)(!1),s=n(71)("IE_PROTO");e.exports=function(e,t){var n,a=r(e),l=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);for(;t.length>l;)i(a,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var i=n(8),r=n(11),o=n(25);e.exports=n(6)?Object.defineProperties:function(e,t){r(e);for(var n,s=o(t),a=s.length,l=0;a>l;)i.f(e,n=s[l++],t[n]);return e}},function(e,t,n){e.exports=!n(6)&&!n(7)(function(){return 7!=Object.defineProperty(n(72)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var i=n(27),r=n(0),o=n(31),s=n(14),a=n(18),l=n(30),c=n(225),u=n(40),h=n(39),f=n(3)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,_,m,b,g){c(n,t,_);var v,y,w,x=function(e){if(!d&&e in A)return A[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",C="values"==m,S=!1,A=e.prototype,E=A[f]||A["@@iterator"]||m&&A[m],O=!d&&E||x(m),L=m?C?x("entries"):O:void 0,R="Array"==t&&A.entries||E;if(R&&(w=h(R.call(new e)))!==Object.prototype&&w.next&&(u(w,k,!0),i||a(w,f)||s(w,f,p)),C&&E&&"values"!==E.name&&(S=!0,O=function(){return E.call(this)}),i&&!g||!d&&!S&&A[f]||s(A,f,O),l[t]=O,l[k]=p,m)if(v={values:C?O:x("values"),keys:b?O:x("keys"),entries:L},g)for(y in v)y in A||o(A,y,v[y]);else r(r.P+r.F*(d||S),t,v);return v}},function(e,t,n){"use strict";var i=n(226)(!0);n(102)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var r=(s=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),o=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[n].concat(o).concat([r]).join("\n")}var s;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<e.length;r++){var s=e[r];"number"==typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){"use strict";function i(e,t,n){if(!e.overlayNode_){if(!e.element)return;e.overlayNode_=document.createElement("div"),e.overlayNode_.style.cssText="border-radius: 15px;font-size: xx-large;opacity: 0.75;padding: 0.2em 0.5em 0.2em 0.5em;position: absolute;-webkit-user-select: none;-webkit-transition: opacity 180ms ease-in;-moz-user-select: none;-moz-transition: opacity 180ms ease-in;",e.overlayNode_.addEventListener("mousedown",function(e){e.preventDefault(),e.stopPropagation()},!0)}e.overlayNode_.style.color="#101010",e.overlayNode_.style.backgroundColor="#f0f0f0",e.overlayNode_.textContent=t,e.overlayNode_.style.opacity="0.75",e.overlayNode_.parentNode||e.element.appendChild(e.overlayNode_);var i=e.element.getBoundingClientRect(),r=e.overlayNode_.getBoundingClientRect();e.overlayNode_.style.top=(i.height-r.height)/2+"px",e.overlayNode_.style.left=(i.width-r.width)/2+"px",e.overlayTimeout_&&clearTimeout(e.overlayTimeout_),null!==n&&(e.overlayTimeout_=setTimeout(function(){e.overlayNode_.style.opacity="0",e.overlayTimeout_=setTimeout(function(){e.overlayNode_.parentNode&&e.overlayNode_.parentNode.removeChild(e.overlayNode_),e.overlayTimeout_=null,e.overlayNode_.style.opacity="0.75"},200)},n||1500))}Object.defineProperty(t,"__esModule",{value:!0}),t.showOverlay=i,t.apply=function(e){e.prototype.showOverlay=function(e,t){return i(this,e,t)}}},function(e,t,n){"use strict";function i(e){var t=e;["Windows","Win16","Win32","WinCE"].indexOf(navigator.platform)>=0&&t.on("linefeed",function(){32!==t.buffer.lines.get(t.buffer.ybase+t.buffer.y-1)[t.cols-1][3]&&(t.buffer.lines.get(t.buffer.ybase+t.buffer.y).isWrapped=!0)})}Object.defineProperty(t,"__esModule",{value:!0}),t.winptyCompatInit=i,t.apply=function(e){e.prototype.winptyCompatInit=function(){i(this)}}},function(e,t,n){"use strict";function i(e){if(!e.element.parentElement)return null;var t=window.getComputedStyle(e.element.parentElement),n=parseInt(t.getPropertyValue("height")),i=Math.max(0,parseInt(t.getPropertyValue("width"))),r=window.getComputedStyle(e.element),o=n-(parseInt(r.getPropertyValue("padding-top"))+parseInt(r.getPropertyValue("padding-bottom"))),s=i-(parseInt(r.getPropertyValue("padding-right"))+parseInt(r.getPropertyValue("padding-left")))-e.viewport.scrollBarWidth;return{cols:Math.floor(s/e.renderer.dimensions.actualCellWidth),rows:Math.floor(o/e.renderer.dimensions.actualCellHeight)}}function r(e){var t=i(e);t&&(e.rows===t.rows&&e.cols===t.cols||(e.renderer.clear(),e.resize(t.cols,t.rows)))}Object.defineProperty(t,"__esModule",{value:!0}),t.proposeGeometry=i,t.fit=r,t.apply=function(e){e.prototype.proposeGeometry=function(){return i(this)},e.prototype.fit=function(){r(this)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableListener=function(e,t,n,i){return e.addEventListener(t,n,i),{dispose:function(){n&&(e.removeEventListener(t,n,i),e=null,n=null)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(74),o=n(43),s=n(78),a=n(108);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(i||(i={}));var l=function(){function e(e){var t=this;this._terminal=e,this._liveRegionLineCount=0,this._disposables=[],this._charsToConsume=[],this._accessibilityTreeRoot=document.createElement("div"),this._accessibilityTreeRoot.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(var n=0;n<this._terminal.rows;n++)this._rowElements[n]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[n]);this._topBoundaryFocusListener=function(e){return t._onBoundaryFocus(e,i.Top)},this._bottomBoundaryFocusListener=function(e){return t._onBoundaryFocus(e,i.Bottom)},this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityTreeRoot.appendChild(this._rowContainer),this._renderRowsDebouncer=new s.RenderDebouncer(this._terminal,this._renderRows.bind(this)),this._refreshRows(),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityTreeRoot.appendChild(this._liveRegion),this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityTreeRoot),this._disposables.push(this._renderRowsDebouncer),this._disposables.push(this._terminal.addDisposableListener("resize",function(e){return t._onResize(e.cols,e.rows)})),this._disposables.push(this._terminal.addDisposableListener("refresh",function(e){return t._refreshRows(e.start,e.end)})),this._disposables.push(this._terminal.addDisposableListener("scroll",function(e){return t._refreshRows()})),this._disposables.push(this._terminal.addDisposableListener("a11y.char",function(e){return t._onChar(e)})),this._disposables.push(this._terminal.addDisposableListener("linefeed",function(){return t._onChar("\n")})),this._disposables.push(this._terminal.addDisposableListener("a11y.tab",function(e){return t._onTab(e)})),this._disposables.push(this._terminal.addDisposableListener("key",function(e){return t._onKey(e)})),this._disposables.push(this._terminal.addDisposableListener("blur",function(){return t._clearLiveRegion()})),this._disposables.push(this._terminal.addDisposableListener("dprchange",function(){return t._refreshRowsDimensions()})),this._disposables.push(this._terminal.renderer.addDisposableListener("resize",function(){return t._refreshRowsDimensions()})),this._disposables.push(a.addDisposableListener(window,"resize",function(){return t._refreshRowsDimensions()}))}return e.prototype.dispose=function(){this._disposables.forEach(function(e){return e.dispose()}),this._disposables.length=0,this._terminal.element.removeChild(this._accessibilityTreeRoot),this._rowElements.length=0},e.prototype._onBoundaryFocus=function(e,t){var n=e.target,r=this._rowElements[t===i.Top?1:this._rowElements.length-2];if(n.getAttribute("aria-posinset")!==(t===i.Top?"1":""+this._terminal.buffer.lines.length)&&e.relatedTarget===r){var o,s;if(t===i.Top?(o=n,s=this._rowElements.pop(),this._rowContainer.removeChild(s)):(o=this._rowElements.shift(),s=n,this._rowContainer.removeChild(o)),o.removeEventListener("focus",this._topBoundaryFocusListener),s.removeEventListener("focus",this._bottomBoundaryFocusListener),t===i.Top){var a=this._createAccessibilityTreeNode();this._rowElements.unshift(a),this._rowContainer.insertAdjacentElement("afterbegin",a)}else{a=this._createAccessibilityTreeNode();this._rowElements.push(a),this._rowContainer.appendChild(a)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(t===i.Top?-1:1),this._rowElements[t===i.Top?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}},e.prototype._onResize=function(e,t){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var n=this._rowContainer.children.length;n<this._terminal.rows;n++)this._rowElements[n]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[n]);for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},e.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},e.prototype._onTab=function(e){for(var t=0;t<e;t++)this._onChar(" ")},e.prototype._onChar=function(e){var t=this;if(this._liveRegionLineCount<21){if(this._charsToConsume.length>0)this._charsToConsume.shift()!==e&&this._announceCharacter(e);else this._announceCharacter(e);"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=r.tooMuchOutput)),o.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)},0)}},e.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,o.isMac&&this._liveRegion.parentNode&&this._accessibilityTreeRoot.removeChild(this._liveRegion)},e.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},e.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t)},e.prototype._renderRows=function(e,t){for(var n=this._terminal.buffer,i=n.lines.length.toString(),o=e;o<=t;o++){var s=n.translateBufferLineToString(n.ydisp+o,!0),a=(n.ydisp+o+1).toString(),l=this._rowElements[o];l.textContent=0===s.length?r.blankLine:s,l.setAttribute("aria-posinset",a),l.setAttribute("aria-setsize",i)}},e.prototype._refreshRowsDimensions=function(){if(this._terminal.renderer.dimensions.actualCellHeight)for(var e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])},e.prototype._refreshRowDimensions=function(e){e.style.height=this._terminal.renderer.dimensions.actualCellHeight+"px"},e.prototype._announceCharacter=function(e){" "===e?this._liveRegion.innerHTML+=" ":this._liveRegion.textContent+=e},e}();t.AccessibilityManager=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_BELL_SOUND="data:audio/wav;base64,UklGRigBAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQQBAADpAFgCwAMlBZoG/wdmCcoKRAypDQ8PbRDBEQQTOxRtFYcWlBePGIUZXhoiG88bcBz7HHIdzh0WHlMeZx51HmkeUx4WHs8dah0AHXwc3hs9G4saxRnyGBIYGBcQFv8U4RPAEoYRQBACD70NWwwHC6gJOwjWBloF7gOBAhABkf8b/qv8R/ve+Xf4Ife79W/0JfPZ8Z/wde9N7ijtE+wU6xvqM+lb6H7nw+YX5mrlxuQz5Mzje+Ma49fioeKD4nXiYeJy4pHitOL04j/jn+MN5IPkFOWs5U3mDefM55/ogOl36m7rdOyE7abuyu8D8Unyj/Pg9D/2qfcb+Yn6/vuK/Qj/lAAlAg==";var i=function(){function e(e){this._terminal=e}return e.prototype.playBellSound=function(){var e=window.AudioContext||window.webkitAudioContext;if(!this._audioContext&&e&&(this._audioContext=new e),this._audioContext){var t=this._audioContext.createBufferSource(),n=this._audioContext;this._audioContext.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._terminal.options.bellSound)),function(e){t.buffer=e,t.connect(n.destination),t.start(0)})}else console.warn("Sorry, but the Web Audio API is not supported by your browser. Please, consider upgrading to the latest version")},e.prototype._base64ToArrayBuffer=function(e){for(var t=window.atob(e),n=t.length,i=new Uint8Array(n),r=0;r<n;r++)i[r]=t.charCodeAt(r);return i.buffer},e.prototype._removeMimeType=function(e){return e.split(",")[1]},e}();t.SoundManager=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=function(e,n){if(void 0===n&&(n=5),"object"!=typeof e)return e;if(null===e)return null;var i=Array.isArray(e)?[]:{};for(var r in e)i[r]=n<=1?e[r]:t.clone(e[r],n-1);return i}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t,n){var i=e.call(this)||this;return i._document=t,i._parentElement=n,i._measureElement=i._document.createElement("span"),i._measureElement.classList.add("xterm-char-measure-element"),i._measureElement.textContent="W",i._measureElement.setAttribute("aria-hidden","true"),i._parentElement.appendChild(i._measureElement),i}return r(t,e),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),t.prototype.measure=function(e){this._measureElement.style.fontFamily=e.fontFamily,this._measureElement.style.fontSize=e.fontSize+"px";var t=this._measureElement.getBoundingClientRect();0!==t.width&&0!==t.height&&(this._width===t.width&&this._height===t.height||(this._width=t.width,this._height=Math.ceil(t.height),this.emit("charsizechanged")))},t}(n(19).EventEmitter);t.CharMeasure=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(45);!function(e){e.Up="A",e.Down="B",e.Right="C",e.Left="D"}(i||(i={}));var o=function(){function e(e,t){var n;this._mouseEvent=e,this._terminal=t,this._lines=this._terminal.buffer.lines,this._startCol=this._terminal.buffer.x,this._startRow=this._terminal.buffer.y,n=this._terminal.mouseHelper.getCoords(this._mouseEvent,this._terminal.element,this._terminal.charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows,!1).map(function(e){return e-1}),this._endCol=n[0],this._endRow=n[1]}return e.prototype.move=function(){this._mouseEvent.altKey&&this._terminal.send(this._arrowSequences())},e.prototype._arrowSequences=function(){return this._terminal.buffer.hasScrollback?this._moveHorizontallyOnly():this._resetStartingRow()+this._moveToRequestedRow()+this._moveToRequestedCol()},e.prototype._resetStartingRow=function(){return 0===this._moveToRequestedRow().length?"":s(this._bufferLine(this._startCol,this._startRow,this._startCol,this._startRow-this._wrappedRowsForRow(this._startRow),!1).length,this._sequence(i.Left))},e.prototype._moveToRequestedRow=function(){var e=this._startRow-this._wrappedRowsForRow(this._startRow),t=this._endRow-this._wrappedRowsForRow(this._endRow);return s(Math.abs(e-t)-this._wrappedRowsCount(),this._sequence(this._verticalDirection()))},e.prototype._moveToRequestedCol=function(){var e;e=this._moveToRequestedRow().length>0?this._endRow-this._wrappedRowsForRow(this._endRow):this._startRow;var t=this._endRow,n=this._horizontalDirection();return s(this._bufferLine(this._startCol,e,this._endCol,t,n===i.Right).length,this._sequence(n))},e.prototype._moveHorizontallyOnly=function(){var e=this._horizontalDirection();return s(Math.abs(this._startCol-this._endCol),this._sequence(e))},e.prototype._wrappedRowsCount=function(){for(var e=0,t=this._startRow-this._wrappedRowsForRow(this._startRow),n=this._endRow-this._wrappedRowsForRow(this._endRow),r=0;r<Math.abs(t-n);r++){var o=this._verticalDirection()===i.Up?-1:1;this._lines.get(t+o*r).isWrapped&&e++}return e},e.prototype._wrappedRowsForRow=function(e){for(var t=0,n=this._lines.get(e).isWrapped;n&&e>=0&&e<this._terminal.rows;)t++,e--,n=this._lines.get(e).isWrapped;return t},e.prototype._horizontalDirection=function(){var e;return e=this._moveToRequestedRow().length>0?this._endRow-this._wrappedRowsForRow(this._endRow):this._startRow,this._startCol<this._endCol&&e<=this._endRow||this._startCol>=this._endCol&&e<this._endRow?i.Right:i.Left},e.prototype._verticalDirection=function(){return this._startRow>this._endRow?i.Up:i.Down},e.prototype._bufferLine=function(e,t,n,i,r){for(var o=e,s=t,a="";o!==n||s!==i;)o+=r?1:-1,r&&o>this._terminal.cols-1?(a+=this._terminal.buffer.translateBufferLineToString(s,!1,e,o),o=0,e=0,s++):!r&&o<0&&(a+=this._terminal.buffer.translateBufferLineToString(s,!1,0,e+1),e=o=this._terminal.cols-1,s--);return a+this._terminal.buffer.translateBufferLineToString(s,!1,e,o)},e.prototype._sequence=function(e){var t=this._terminal.applicationCursor?"O":"[";return r.C0.ESC+t+e},e}();function s(e,t){e=Math.floor(e);for(var n="",i=0;i<e;i++)n+=t;return n}t.AltClickHandler=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._terminal=e,this.clearSelection()}return e.prototype.clearSelection=function(){this.selectionStart=null,this.selectionEnd=null,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._terminal.cols,this._terminal.buffer.ybase+this._terminal.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?[this.selectionStart[0]+this.selectionStartLength,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:null},enumerable:!0,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();t.SelectionModel=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o,s=n(75),a=n(43),l=n(19),c=n(114),u=n(24),h=n(113),f=String.fromCharCode(160),d=new RegExp(f,"g");!function(e){e[e.NORMAL=0]="NORMAL",e[e.WORD=1]="WORD",e[e.LINE=2]="LINE"}(o||(o={}));var p=function(e){function t(t,n){var i=e.call(this)||this;return i._terminal=t,i._charMeasure=n,i._enabled=!0,i._initListeners(),i.enable(),i._model=new c.SelectionModel(t),i._activeSelectionMode=o.NORMAL,i}return r(t,e),Object.defineProperty(t.prototype,"_buffer",{get:function(){return this._terminal.buffers.active},enumerable:!0,configurable:!0}),t.prototype._initListeners=function(){var e=this;this._mouseMoveListener=function(t){return e._onMouseMove(t)},this._mouseUpListener=function(t){return e._onMouseUp(t)},this._trimListener=function(t){return e._onTrim(t)},this.initBuffersListeners()},t.prototype.initBuffersListeners=function(){var e=this;this._terminal.buffer.lines.on("trim",this._trimListener),this._terminal.buffers.on("activate",function(t){return e._onBufferActivate(t)})},t.prototype.disable=function(){this.clearSelection(),this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t)&&(e[0]!==t[0]||e[1]!==t[1])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var n=e[1]===t[1]?t[0]:null,i=[];i.push(this._buffer.translateBufferLineToString(e[1],!0,e[0],n));for(var r=e[1]+1;r<=t[1]-1;r++){var o=this._buffer.lines.get(r),s=this._buffer.translateBufferLineToString(r,!0);o.isWrapped?i[i.length-1]+=s:i.push(s)}if(e[1]!==t[1]){o=this._buffer.lines.get(t[1]),s=this._buffer.translateBufferLineToString(t[1],!0,0,t[0]);o.isWrapped?i[i.length-1]+=s:i.push(s)}return i.map(function(e){return e.replace(d," ")}).join(a.isMSWindows?"\r\n":"\n")},enumerable:!0,configurable:!0}),t.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh()},t.prototype.refresh=function(e){var t=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return t._refresh()})),a.isLinux&&e)&&(this.selectionText.length&&this.emit("newselection",this.selectionText))},t.prototype._refresh=function(){this._refreshAnimationFrame=null,this.emit("refresh",{start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd})},t.prototype.isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),n=this._model.finalSelectionStart,i=this._model.finalSelectionEnd;return!(!n||!i)&&(t[1]>n[1]&&t[1]<i[1]||n[1]===i[1]&&t[1]===n[1]&&t[0]>n[0]&&t[0]<i[0]||n[1]<i[1]&&t[1]===i[1]&&t[0]<i[0])},t.prototype.selectWordAtCursor=function(e){var t=this._getMouseBufferCoords(e);t&&(this._selectWordAt(t,!1),this._model.selectionEnd=null,this.refresh(!0))},t.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._terminal.emit("selection")},t.prototype.selectLines=function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._terminal.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._terminal.cols,t],this.refresh(),this._terminal.emit("selection")},t.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},t.prototype._getMouseBufferCoords=function(e){var t=this._terminal.mouseHelper.getCoords(e,this._terminal.screenElement,this._charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows,!0);return t?(t[0]--,t[1]--,t[1]+=this._terminal.buffer.ydisp,t):null},t.prototype._getMouseEventScrollAmount=function(e){var t=s.MouseHelper.getCoordsRelativeToElement(e,this._terminal.screenElement)[1],n=this._terminal.rows*Math.ceil(this._charMeasure.height*this._terminal.options.lineHeight);return t>=0&&t<=n?0:(t>n&&(t-=n),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},t.prototype.shouldForceSelection=function(e){return a.isMac?e.altKey:e.shiftKey},t.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},t.prototype._addMouseDownListeners=function(){var e=this;this._terminal.element.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.ownerDocument.addEventListener("mouseup",this._mouseUpListener),this._dragScrollIntervalTimer=setInterval(function(){return e._dragScroll()},50)},t.prototype._removeMouseDownListeners=function(){this._terminal.element.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._terminal.element.ownerDocument.removeEventListener("mouseup",this._mouseUpListener),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=null},t.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},t.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=o.NORMAL,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=null;var t=this._buffer.lines.get(this._model.selectionStart[1]);if(t)if(!(t.length>=this._model.selectionStart[0]))0===t[this._model.selectionStart[0]][u.CHAR_DATA_WIDTH_INDEX]&&this._model.selectionStart[0]++}},t.prototype._onDoubleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=o.WORD,this._selectWordAt(t,!0))},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=o.LINE,this._selectLineAt(t[1]))},t.prototype._onMouseMove=function(e){e.stopImmediatePropagation();var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){if(this._activeSelectionMode===o.LINE?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._terminal.cols:this._activeSelectionMode===o.WORD&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),this._dragScrollAmount>0?this._model.selectionEnd[0]=this._terminal.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]<this._buffer.lines.length){var n=this._buffer.lines.get(this._model.selectionEnd[1])[this._model.selectionEnd[0]];n&&0===n[u.CHAR_DATA_WIDTH_INDEX]&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)},t.prototype._dragScroll=function(){this._dragScrollAmount&&(this._terminal.scrollLines(this._dragScrollAmount,!1),this._dragScrollAmount>0?this._model.selectionEnd=[this._terminal.cols-1,Math.min(this._terminal.buffer.ydisp+this._terminal.rows,this._terminal.buffer.lines.length-1)]:this._model.selectionEnd=[0,this._terminal.buffer.ydisp],this.refresh())},t.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500?new h.AltClickHandler(e,this._terminal).move():this.hasSelection&&this._terminal.emit("selection")},t.prototype._onBufferActivate=function(e){this.clearSelection(),e.inactiveBuffer.lines.off("trim",this._trimListener),e.activeBuffer.lines.on("trim",this._trimListener)},t.prototype._convertViewportColToCharacterIndex=function(e,t){for(var n=t[0],i=0;t[0]>=i;i++){var r=e[i];0===r[u.CHAR_DATA_WIDTH_INDEX]?n--:r[u.CHAR_DATA_CHAR_INDEX].length>1&&t[0]!==i&&(n+=r[u.CHAR_DATA_CHAR_INDEX].length-1)}return n},t.prototype.setSelection=function(e,t,n){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=n,this.refresh()},t.prototype._getWordAt=function(e,t){if(e[0]>=this._terminal.cols)return null;var n=this._buffer.lines.get(e[1]);if(!n)return null;var i=this._buffer.translateBufferLineToString(e[1],!1),r=this._convertViewportColToCharacterIndex(n,e),o=r,s=e[0]-r,a=0,l=0,c=0,h=0;if(" "===i.charAt(r)){for(;r>0&&" "===i.charAt(r-1);)r--;for(;o<i.length&&" "===i.charAt(o+1);)o++}else{var f=e[0],d=e[0];for(0===n[f][u.CHAR_DATA_WIDTH_INDEX]&&(a++,f--),2===n[d][u.CHAR_DATA_WIDTH_INDEX]&&(l++,d++),n[d][u.CHAR_DATA_CHAR_INDEX].length>1&&(h+=n[d][u.CHAR_DATA_CHAR_INDEX].length-1,o+=n[d][u.CHAR_DATA_CHAR_INDEX].length-1);f>0&&r>0&&!this._isCharWordSeparator(n[f-1]);){0===(p=n[f-1])[u.CHAR_DATA_WIDTH_INDEX]?(a++,f--):p[u.CHAR_DATA_CHAR_INDEX].length>1&&(c+=p[u.CHAR_DATA_CHAR_INDEX].length-1,r-=p[u.CHAR_DATA_CHAR_INDEX].length-1),r--,f--}for(;d<n.length&&o+1<i.length&&!this._isCharWordSeparator(n[d+1]);){var p;2===(p=n[d+1])[u.CHAR_DATA_WIDTH_INDEX]?(l++,d++):p[u.CHAR_DATA_CHAR_INDEX].length>1&&(h+=p[u.CHAR_DATA_CHAR_INDEX].length-1,o+=p[u.CHAR_DATA_CHAR_INDEX].length-1),o++,d++}}o++;var _=r+s-a+c,m=Math.min(this._terminal.cols,o-r+a+l-c-h);return t||""!==i.slice(r,o).trim()?{start:_,length:m}:null},t.prototype._selectWordAt=function(e,t){var n=this._getWordAt(e,t);n&&(this._model.selectionStart=[n.start,e[1]],this._model.selectionStartLength=n.length)},t.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);t&&(this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,e[1]])},t.prototype._isCharWordSeparator=function(e){return 0!==e[u.CHAR_DATA_WIDTH_INDEX]&&" ()[]{}'\"".indexOf(e[u.CHAR_DATA_CHAR_INDEX])>=0},t.prototype._selectLineAt=function(e){this._model.selectionStart=[0,e],this._model.selectionStartLength=this._terminal.cols},t}(l.EventEmitter);t.SelectionManager=p},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(79),s=n(76),a=function(e){function t(t){var n=e.call(this)||this;return n._terminal=t,n._linkMatchers=[],n._nextLinkMatcherId=0,n._rowsToLinkify={start:null,end:null},n}return r(t,e),t.prototype.attachToDom=function(e){this._mouseZoneManager=e},t.prototype.linkifyRows=function(e,n){var i=this;this._mouseZoneManager&&(null===this._rowsToLinkify.start?(this._rowsToLinkify.start=e,this._rowsToLinkify.end=n):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,e),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,n)),this._mouseZoneManager.clearAll(e,n),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return i._linkifyRows()},t.TIME_BEFORE_LINKIFY))},t.prototype._linkifyRows=function(){this._rowsTimeoutId=null;for(var e=this._rowsToLinkify.start;e<=this._rowsToLinkify.end;e++)this._linkifyRow(e);this._rowsToLinkify.start=null,this._rowsToLinkify.end=null},t.prototype.registerLinkMatcher=function(e,t,n){if(void 0===n&&(n={}),!t)throw new Error("handler must be defined");var i={id:this._nextLinkMatcherId++,regex:e,handler:t,matchIndex:n.matchIndex,validationCallback:n.validationCallback,hoverTooltipCallback:n.tooltipCallback,hoverLeaveCallback:n.leaveCallback,willLinkActivate:n.willLinkActivate,priority:n.priority||0};return this._addLinkMatcherToList(i),i.id},t.prototype._addLinkMatcherToList=function(e){if(0!==this._linkMatchers.length){for(var t=this._linkMatchers.length-1;t>=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},t.prototype.deregisterLinkMatcher=function(e){for(var t=0;t<this._linkMatchers.length;t++)if(this._linkMatchers[t].id===e)return this._linkMatchers.splice(t,1),!0;return!1},t.prototype._linkifyRow=function(e){var t=this._terminal.buffer.ydisp+e;if(!(t>=this._terminal.buffer.lines.length)){if(this._terminal.buffer.lines.get(t).isWrapped){if(0!==e)return;do{e--,t--}while(this._terminal.buffer.lines.get(t).isWrapped)}for(var n=this._terminal.buffer.translateBufferLineToString(t,!1),i=t+1;i<this._terminal.buffer.lines.length&&this._terminal.buffer.lines.get(i).isWrapped;)n+=this._terminal.buffer.translateBufferLineToString(i++,!1);for(var r=0;r<this._linkMatchers.length;r++)this._doLinkifyRow(e,n,this._linkMatchers[r])}},t.prototype._doLinkifyRow=function(e,t,n,i){var r=this;void 0===i&&(i=0);var o=t.match(n.regex);if(o&&0!==o.length){var s=o["number"!=typeof n.matchIndex?0:n.matchIndex],a=t.indexOf(s);n.validationCallback?n.validationCallback(s,function(t){r._rowsTimeoutId||t&&r._addLink(i+a,e,s,n)}):this._addLink(i+a,e,s,n);var l=a+s.length,c=t.substr(l);c.length>0&&this._doLinkifyRow(e,c,n,i+l)}},t.prototype._addLink=function(e,t,n,i){var r=this,a=e%this._terminal.cols,l=t+Math.floor(e/this._terminal.cols),c=(a+n.length)%this._terminal.cols,u=l+Math.floor((a+n.length)/this._terminal.cols);0===c&&(c=this._terminal.cols,u--),this._mouseZoneManager.add(new s.MouseZone(a+1,l+1,c+1,u+1,function(e){if(i.handler)return i.handler(e,n);window.open(n,"_blank")},function(e){r.emit(o.LinkHoverEventTypes.HOVER,r._createLinkHoverEvent(a,l,c,u)),r._terminal.element.classList.add("xterm-cursor-pointer")},function(e){r.emit(o.LinkHoverEventTypes.TOOLTIP,r._createLinkHoverEvent(a,l,c,u)),i.hoverTooltipCallback&&i.hoverTooltipCallback(e,n)},function(){r.emit(o.LinkHoverEventTypes.LEAVE,r._createLinkHoverEvent(a,l,c,u)),r._terminal.element.classList.remove("xterm-cursor-pointer"),i.hoverLeaveCallback&&i.hoverLeaveCallback()},function(e){return!i.willLinkActivate||i.willLinkActivate(e,n)}))},t.prototype._createLinkHoverEvent=function(e,t,n,i){return{x1:e,y1:t,x2:n,y2:i,cols:this._terminal.cols}},t.TIME_BEFORE_LINKIFY=200,t}(n(19).EventEmitter);t.Linkifier=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(79),s=function(e){function t(t,n,i,r){var s=e.call(this,t,"link",n,!0,i)||this;return s._state=null,r.linkifier.on(o.LinkHoverEventTypes.HOVER,function(e){return s._onLinkHover(e)}),r.linkifier.on(o.LinkHoverEventTypes.LEAVE,function(e){return s._onLinkLeave(e)}),s}return r(t,e),t.prototype.resize=function(t,n){e.prototype.resize.call(this,t,n),this._state=null},t.prototype.reset=function(e){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this.clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this.clearCells(0,this._state.y1+1,this._state.cols,e),this.clearCells(0,this._state.y2,this._state.x2,1),this._state=null}},t.prototype._onLinkHover=function(e){if(this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this.fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this.fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t<e.y2;t++)this.fillBottomLineAtCells(0,t,e.cols);this.fillBottomLineAtCells(0,e.y2,e.x2)}this._state=e},t.prototype._onLinkLeave=function(e){this._clearCurrentLink()},t}(n(44).BaseRenderLayer);t.LinkRenderLayer=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(24),s=function(e){function t(t,n,i){var r=e.call(this,t,"cursor",n,!0,i)||this;return r._state={x:null,y:null,isFocused:null,style:null,width:null},r._cursorRenderers={bar:r._renderBarCursor.bind(r),block:r._renderBlockCursor.bind(r),underline:r._renderUnderlineCursor.bind(r)},r}return r(t,e),t.prototype.resize=function(t,n){e.prototype.resize.call(this,t,n),this._state={x:null,y:null,isFocused:null,style:null,width:null}},t.prototype.reset=function(e){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=null,this.onOptionsChanged(e))},t.prototype.onBlur=function(e){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),e.refresh(e.buffer.y,e.buffer.y)},t.prototype.onFocus=function(e){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume(e):e.refresh(e.buffer.y,e.buffer.y)},t.prototype.onOptionsChanged=function(e){var t=this;e.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new a(e,function(){t._render(e,!0)})):(this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=null),e.refresh(e.buffer.y,e.buffer.y))},t.prototype.onCursorMove=function(e){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation(e)},t.prototype.onGridChanged=function(e,t,n){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(e,!1):this._cursorBlinkStateManager.restartBlinkAnimation(e)},t.prototype._render=function(e,t){if(e.cursorState&&!e.cursorHidden){var n=e.buffer.ybase+e.buffer.y,i=n-e.buffer.ydisp;if(i<0||i>=e.rows)this._clearCursor();else{var r=e.buffer.lines.get(n)[e.buffer.x];if(r){if(!e.isFocused)return this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._renderBlurCursor(e,e.buffer.x,i,r),this._ctx.restore(),this._state.x=e.buffer.x,this._state.y=i,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,void(this._state.width=r[o.CHAR_DATA_WIDTH_INDEX]);if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===e.buffer.x&&this._state.y===i&&this._state.isFocused===e.isFocused&&this._state.style===e.options.cursorStyle&&this._state.width===r[o.CHAR_DATA_WIDTH_INDEX])return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[e.options.cursorStyle||"block"](e,e.buffer.x,i,r),this._ctx.restore(),this._state.x=e.buffer.x,this._state.y=i,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,this._state.width=r[o.CHAR_DATA_WIDTH_INDEX]}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(this.clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:null,y:null,isFocused:null,style:null,width:null})},t.prototype._renderBarCursor=function(e,t,n,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillLeftLineAtCell(t,n),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,n,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillCells(t,n,i[o.CHAR_DATA_WIDTH_INDEX],1),this._ctx.fillStyle=this._colors.cursorAccent.css,this.fillCharTrueColor(e,i,t,n),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,n,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillBottomLineAtCells(t,n),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,n,i){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this.strokeRectAtCell(t,n,i[o.CHAR_DATA_WIDTH_INDEX],1),this._ctx.restore()},t}(n(44).BaseRenderLayer);t.CursorRenderLayer=s;var a=function(){function e(e,t){this._renderCallback=t,this.isCursorVisible=!0,e.isFocused&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=null),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=null),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},e.prototype.restartBlinkAnimation=function(e){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=null})))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=setTimeout(function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=null,e>0)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=null}),t._blinkInterval=setInterval(function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=null,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=null})},600)},e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=null),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=null),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},e.prototype.resume=function(e){this._animationTimeRestarted=null,this._restartInterval(),this.restartBlinkAnimation(e)},e}()},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t,n,i){var r=e.call(this,t,"selection",n,!0,i)||this;return r._state={start:null,end:null},r}return r(t,e),t.prototype.resize=function(t,n){e.prototype.resize.call(this,t,n),this._state={start:null,end:null}},t.prototype.reset=function(e){this._state.start&&this._state.end&&(this._state={start:null,end:null},this.clearAll())},t.prototype.onSelectionChanged=function(e,t,n){if(this._state.start!==t&&this._state.end!==n&&(this.clearAll(),t&&n)){var i=t[1]-e.buffer.ydisp,r=n[1]-e.buffer.ydisp,o=Math.max(i,0),s=Math.min(r,e.rows-1);if(!(o>=e.rows||s<0)){var a=i===o?t[0]:0,l=o===s?n[0]:e.cols;this._ctx.fillStyle=this._colors.selection.css,this.fillCells(a,o,l-a,1);var c=Math.max(s-o-1,0);if(this.fillCells(0,o+1,e.cols,c),o!==s){var u=r===s?n[0]:e.cols;this.fillCells(0,s,u,1)}this._state.start=[t[0],t[1]],this._state.end=[n[0],n[1]]}}},t}(n(44).BaseRenderLayer);t.SelectionRenderLayer=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateConfig=function(e,t,n,i){var r={foreground:i.foreground,background:i.background,cursor:null,cursorAccent:null,selection:null,ansi:i.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:e,scaledCharHeight:t,fontFamily:n.options.fontFamily,fontSize:n.options.fontSize,fontWeight:n.options.fontWeight,fontWeightBold:n.options.fontWeightBold,allowTransparency:n.options.allowTransparency,colors:r}},t.configEquals=function(e,t){for(var n=0;n<e.colors.ansi.length;n++)if(e.colors.ansi[n].rgba!==t.colors.ansi[n].rgba)return!1;return e.devicePixelRatio===t.devicePixelRatio&&e.fontFamily===t.fontFamily&&e.fontSize===t.fontSize&&e.fontWeight===t.fontWeight&&e.fontWeightBold===t.fontWeightBold&&e.allowTransparency===t.allowTransparency&&e.scaledCharWidth===t.scaledCharWidth&&e.scaledCharHeight===t.scaledCharHeight&&e.colors.foreground===t.colors.foreground&&e.colors.background===t.colors.background}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(81),r=n(43);function o(e,t){return e+" "+t.fontSize*t.devicePixelRatio+"px "+t.fontFamily}t.generateCharAtlas=function(e,t,n){var s=n.scaledCharWidth+i.CHAR_ATLAS_CELL_SPACING,a=n.scaledCharHeight+i.CHAR_ATLAS_CELL_SPACING,l=t(255*s,18*a),c=l.getContext("2d",{alpha:n.allowTransparency});c.fillStyle=n.colors.background.css,c.fillRect(0,0,l.width,l.height),c.save(),c.fillStyle=n.colors.foreground.css,c.font=o(n.fontWeight,n),c.textBaseline="top";for(var u=0;u<256;u++)c.save(),c.beginPath(),c.rect(u*s,0,s,a),c.clip(),c.fillText(String.fromCharCode(u),u*s,0),c.restore();for(c.save(),c.font=o(n.fontWeightBold,n),u=0;u<256;u++)c.save(),c.beginPath(),c.rect(u*s,a,s,a),c.clip(),c.fillText(String.fromCharCode(u),u*s,a),c.restore();c.restore(),c.font=o(n.fontWeight,n);for(var h=0;h<16;h++){8===h&&(c.font=o(n.fontWeightBold,n));var f=(h+2)*a;for(u=0;u<256;u++)c.save(),c.beginPath(),c.rect(u*s,f,s,a),c.clip(),c.fillStyle=n.colors.ansi[h].css,c.fillText(String.fromCharCode(u),u*s,f),c.restore()}if(c.restore(),!("createImageBitmap"in e)||r.isFirefox)return l instanceof HTMLCanvasElement?l:new Promise(function(e){return e(l.transferToImageBitmap())});var d=c.getImageData(0,0,l.width,l.height);return function(e,t,n,i){for(var r=0;r<e.data.length;r+=4)e.data[r]===t&&e.data[r+1]===n&&e.data[r+2]===i&&(e.data[r+3]=0)}(d,n.colors.background.rgba>>>24,n.colors.background.rgba>>>16&255,n.colors.background.rgba>>>8&255),e.createImageBitmap(d)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(121),r=n(120),o=[];t.acquireCharAtlas=function(e,t,n,s){for(var a=r.generateConfig(n,s,e,t),l=0;l<o.length;l++){var c=(u=o[l]).ownedBy.indexOf(e);if(c>=0){if(r.configEquals(u.config,a))return u.bitmap;1===u.ownedBy.length?o.splice(l,1):u.ownedBy.splice(c,1);break}}for(l=0;l<o.length;l++){var u=o[l];if(r.configEquals(u.config,a))return u.ownedBy.push(e),u.bitmap}var h={bitmap:i.generateCharAtlas(window,function(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n},a),config:a,ownedBy:[e]};return o.push(h),h.bitmap}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var n=0;n<e;n++){this.cache.length<=n&&this.cache.push([]);for(var i=this.cache[n].length;i<t;i++)this.cache[n].push(null);this.cache[n].length=t}this.cache.length=e},e.prototype.clear=function(){for(var e=0;e<this.cache.length;e++)for(var t=0;t<this.cache[e].length;t++)this.cache[e][t]=null},e}();t.GridCache=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(24),s=n(83),a=n(82),l=n(123),c=function(e){function t(t,n,i,r){var o=e.call(this,t,"text",n,r,i)||this;return o._characterOverlapCache={},o._state=new l.GridCache,o}return r(t,e),t.prototype.resize=function(t,n){e.prototype.resize.call(this,t,n);var i=this._getFont(t,!1);this._characterWidth===n.scaledCharWidth&&this._characterFont===i||(this._characterWidth=n.scaledCharWidth,this._characterFont=i,this._characterOverlapCache={}),this._state.clear(),this._state.resize(t.cols,t.rows)},t.prototype.reset=function(e){this._state.clear(),this.clearAll()},t.prototype.onGridChanged=function(e,t,n){if(0!==this._state.cache.length)for(var i=t;i<=n;i++){var r=i+e.buffer.ydisp,l=e.buffer.lines.get(r);this.clearCells(0,i,e.cols,1);for(var c=0;c<e.cols;c++){var u=l[c],h=u[o.CHAR_DATA_CODE_INDEX],f=u[o.CHAR_DATA_CHAR_INDEX],d=u[o.CHAR_DATA_ATTR_INDEX],p=u[o.CHAR_DATA_WIDTH_INDEX];if(0!==p){if(32===h&&c>0){var _=l[c-1];if(this._isOverlapping(_))continue}var m=d>>18,b=511&d,g=b>=256,v=m&s.FLAGS.INVISIBLE,y=m&s.FLAGS.INVERSE;if(h&&(32!==h||!g||y)&&!v){0!==p&&this._isOverlapping(u)&&c<l.length-1&&32===l[c+1][o.CHAR_DATA_CODE_INDEX]&&(p=2);var w=d>>9&511;if(y){var x=b;b=w,256===(w=x)&&(w=a.INVERTED_DEFAULT_COLOR),257===b&&(b=a.INVERTED_DEFAULT_COLOR)}b<256&&(this._ctx.save(),this._ctx.fillStyle=b===a.INVERTED_DEFAULT_COLOR?this._colors.foreground.css:this._colors.ansi[b].css,this.fillCells(c,i,p,1),this._ctx.restore()),this._ctx.save(),m&s.FLAGS.BOLD&&(this._ctx.font=this._getFont(e,!0),w<8&&(w+=8)),m&s.FLAGS.UNDERLINE&&(w===a.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:this._ctx.fillStyle=w<256?this._colors.ansi[w].css:this._colors.foreground.css,this.fillBottomLineAtCells(c,i)),this.drawChar(e,f,h,p,c,i,w,b,!!(m&s.FLAGS.BOLD),!!(m&s.FLAGS.DIM)),this._ctx.restore()}}}}},t.prototype.onOptionsChanged=function(e){this.setTransparency(e,e.options.allowTransparency)},t.prototype._isOverlapping=function(e){if(1!==e[o.CHAR_DATA_WIDTH_INDEX])return!1;if(e[o.CHAR_DATA_CODE_INDEX]<256)return!1;var t=e[o.CHAR_DATA_CHAR_INDEX];if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;var n=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=n,n},t}(n(44).BaseRenderLayer);t.TextRenderLayer=c},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(124),s=n(119),a=n(118),l=n(80),c=n(117),u=n(19),h=n(78),f=n(77),d=function(e){function t(t,n){var i=e.call(this)||this;i._terminal=t,i._isPaused=!1,i._needsFullRefresh=!1;var r=i._terminal.options.allowTransparency;(i.colorManager=new l.ColorManager(document,r),n&&i.colorManager.setTheme(n),i._renderLayers=[new o.TextRenderLayer(i._terminal.screenElement,0,i.colorManager.colors,r),new s.SelectionRenderLayer(i._terminal.screenElement,1,i.colorManager.colors),new c.LinkRenderLayer(i._terminal.screenElement,2,i.colorManager.colors,i._terminal),new a.CursorRenderLayer(i._terminal.screenElement,3,i.colorManager.colors)],i.dimensions={scaledCharWidth:null,scaledCharHeight:null,scaledCellWidth:null,scaledCellHeight:null,scaledCharLeft:null,scaledCharTop:null,scaledCanvasWidth:null,scaledCanvasHeight:null,canvasWidth:null,canvasHeight:null,actualCellWidth:null,actualCellHeight:null},i._devicePixelRatio=window.devicePixelRatio,i._updateDimensions(),i.onOptionsChanged(),i._renderDebouncer=new h.RenderDebouncer(i._terminal,i._renderRows.bind(i)),i._screenDprMonitor=new f.ScreenDprMonitor,i._screenDprMonitor.setListener(function(){return i.onWindowResize(window.devicePixelRatio)}),"IntersectionObserver"in window)&&new IntersectionObserver(function(e){return i.onIntersectionChange(e[0])},{threshold:0}).observe(i._terminal.element);return i}return r(t,e),t.prototype.onIntersectionChange=function(e){this._isPaused=0===e.intersectionRatio,!this._isPaused&&this._needsFullRefresh&&this._terminal.refresh(0,this._terminal.rows-1)},t.prototype.onWindowResize=function(e){this._devicePixelRatio!==e&&(this._devicePixelRatio=e,this.onResize(this._terminal.cols,this._terminal.rows))},t.prototype.setTheme=function(e){var t=this;return this.colorManager.setTheme(e),this._renderLayers.forEach(function(e){e.onThemeChanged(t._terminal,t.colorManager.colors),e.reset(t._terminal)}),this._isPaused?this._needsFullRefresh=!0:this._terminal.refresh(0,this._terminal.rows-1),this.colorManager.colors},t.prototype.onResize=function(e,t){var n=this;this._updateDimensions(),this._renderLayers.forEach(function(e){return e.resize(n._terminal,n.dimensions)}),this._isPaused?this._needsFullRefresh=!0:this._terminal.refresh(0,this._terminal.rows-1),this._terminal.screenElement.style.width=this.dimensions.canvasWidth+"px",this._terminal.screenElement.style.height=this.dimensions.canvasHeight+"px",this.emit("resize",{width:this.dimensions.canvasWidth,height:this.dimensions.canvasHeight})},t.prototype.onCharSizeChanged=function(){this.onResize(this._terminal.cols,this._terminal.rows)},t.prototype.onBlur=function(){var e=this;this._runOperation(function(t){return t.onBlur(e._terminal)})},t.prototype.onFocus=function(){var e=this;this._runOperation(function(t){return t.onFocus(e._terminal)})},t.prototype.onSelectionChanged=function(e,t){var n=this;this._runOperation(function(i){return i.onSelectionChanged(n._terminal,e,t)})},t.prototype.onCursorMove=function(){var e=this;this._runOperation(function(t){return t.onCursorMove(e._terminal)})},t.prototype.onOptionsChanged=function(){var e=this;this._runOperation(function(t){return t.onOptionsChanged(e._terminal)})},t.prototype.clear=function(){var e=this;this._runOperation(function(t){return t.reset(e._terminal)})},t.prototype._runOperation=function(e){this._isPaused?this._needsFullRefresh=!0:this._renderLayers.forEach(function(t){return e(t)})},t.prototype.refreshRows=function(e,t){this._isPaused?this._needsFullRefresh=!0:this._renderDebouncer.refresh(e,t)},t.prototype._renderRows=function(e,t){var n=this;this._renderLayers.forEach(function(i){return i.onGridChanged(n._terminal,e,t)}),this._terminal.emit("refresh",{start:e,end:t})},t.prototype._updateDimensions=function(){this._terminal.charMeasure.width&&this._terminal.charMeasure.height&&(this.dimensions.scaledCharWidth=Math.floor(this._terminal.charMeasure.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._terminal.charMeasure.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._terminal.options.lineHeight),this.dimensions.scaledCharTop=1===this._terminal.options.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._terminal.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._terminal.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._terminal.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._terminal.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._terminal.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._terminal.cols)},t}(u.EventEmitter);t.Renderer=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),r=n(84),o={};o[i.C0.BEL]=function(e,t){return t.bell()},o[i.C0.LF]=function(e,t){return t.lineFeed()},o[i.C0.VT]=o[i.C0.LF],o[i.C0.FF]=o[i.C0.LF],o[i.C0.CR]=function(e,t){return t.carriageReturn()},o[i.C0.BS]=function(e,t){return t.backspace()},o[i.C0.HT]=function(e,t){return t.tab()},o[i.C0.SO]=function(e,t){return t.shiftOut()},o[i.C0.SI]=function(e,t){return t.shiftIn()},o[i.C0.ESC]=function(e,t){return e.setState(l.ESCAPED)};var s={"[":function(e,t){t.params=[],t.currentParam=0,e.setState(l.CSI_PARAM)},"]":function(e,t){t.params=[],t.currentParam=0,e.setState(l.OSC)},P:function(e,t){t.params=[],t.currentParam=0,e.setState(l.DCS)},_:function(e,t){e.setState(l.IGNORE)},"^":function(e,t){e.setState(l.IGNORE)},c:function(e,t){t.reset()},E:function(e,t){t.buffer.x=0,t.index(),e.setState(l.NORMAL)},D:function(e,t){t.index(),e.setState(l.NORMAL)},M:function(e,t){t.reverseIndex(),e.setState(l.NORMAL)},"%":function(e,t){t.setgLevel(0),t.setgCharset(0,r.DEFAULT_CHARSET),e.setState(l.NORMAL),e.skipNextChar()}};s[i.C0.CAN]=function(e){return e.setState(l.NORMAL)};var a={"?":function(e){return e.setPrefix("?")},">":function(e){return e.setPrefix(">")},"!":function(e){return e.setPrefix("!")},0:function(e){return e.setParam(10*e.getParam())},1:function(e){return e.setParam(10*e.getParam()+1)},2:function(e){return e.setParam(10*e.getParam()+2)},3:function(e){return e.setParam(10*e.getParam()+3)},4:function(e){return e.setParam(10*e.getParam()+4)},5:function(e){return e.setParam(10*e.getParam()+5)},6:function(e){return e.setParam(10*e.getParam()+6)},7:function(e){return e.setParam(10*e.getParam()+7)},8:function(e){return e.setParam(10*e.getParam()+8)},9:function(e){return e.setParam(10*e.getParam()+9)},$:function(e){return e.setPostfix("$")},'"':function(e){return e.setPostfix('"')}," ":function(e){return e.setPostfix(" ")},"'":function(e){return e.setPostfix("'")},";":function(e){return e.finalizeParam()}};a[i.C0.CAN]=function(e){return e.setState(l.NORMAL)};var l,c={};c["@"]=function(e,t,n){return e.insertChars(t)},c.A=function(e,t,n){return e.cursorUp(t)},c.B=function(e,t,n){return e.cursorDown(t)},c.C=function(e,t,n){return e.cursorForward(t)},c.D=function(e,t,n){return e.cursorBackward(t)},c.E=function(e,t,n){return e.cursorNextLine(t)},c.F=function(e,t,n){return e.cursorPrecedingLine(t)},c.G=function(e,t,n){return e.cursorCharAbsolute(t)},c.H=function(e,t,n){return e.cursorPosition(t)},c.I=function(e,t,n){return e.cursorForwardTab(t)},c.J=function(e,t,n){return e.eraseInDisplay(t)},c.K=function(e,t,n){return e.eraseInLine(t)},c.L=function(e,t,n){return e.insertLines(t)},c.M=function(e,t,n){return e.deleteLines(t)},c.P=function(e,t,n){return e.deleteChars(t)},c.S=function(e,t,n){return e.scrollUp(t)},c.T=function(e,t,n){t.length<2&&!n&&e.scrollDown(t)},c.X=function(e,t,n){return e.eraseChars(t)},c.Z=function(e,t,n){return e.cursorBackwardTab(t)},c["`"]=function(e,t,n){return e.charPosAbsolute(t)},c.a=function(e,t,n){return e.HPositionRelative(t)},c.b=function(e,t,n){return e.repeatPrecedingCharacter(t)},c.c=function(e,t,n){return e.sendDeviceAttributes(t)},c.d=function(e,t,n){return e.linePosAbsolute(t)},c.e=function(e,t,n){return e.VPositionRelative(t)},c.f=function(e,t,n){return e.HVPosition(t)},c.g=function(e,t,n){return e.tabClear(t)},c.h=function(e,t,n){return e.setMode(t)},c.l=function(e,t,n){return e.resetMode(t)},c.m=function(e,t,n){return e.charAttributes(t)},c.n=function(e,t,n){return e.deviceStatus(t)},c.p=function(e,t,n){switch(n){case"!":e.softReset(t)}},c.q=function(e,t,n,i){" "===i&&e.setCursorStyle(t)},c.r=function(e,t){return e.setScrollRegion(t)},c.s=function(e,t){return e.saveCursor(t)},c.u=function(e,t){return e.restoreCursor(t)},c[i.C0.CAN]=function(e,t,n,i,r){return r.setState(l.NORMAL)},function(e){e[e.NORMAL=0]="NORMAL",e[e.ESCAPED=1]="ESCAPED",e[e.CSI_PARAM=2]="CSI_PARAM",e[e.CSI=3]="CSI",e[e.OSC=4]="OSC",e[e.CHARSET=5]="CHARSET",e[e.DCS=6]="DCS",e[e.IGNORE=7]="IGNORE"}(l=t.ParserState||(t.ParserState={}));var u=function(){function e(e,t){this._inputHandler=e,this._terminal=t,this._state=l.NORMAL}return e.prototype.parse=function(e){var t,n,u,h,f=e.length,d=this._terminal.buffer.x,p=this._terminal.buffer.y;for(this._terminal.debug&&this._terminal.log("data: "+e),this._position=0,this._terminal.surrogate_high&&(e=this._terminal.surrogate_high+e,this._terminal.surrogate_high="");this._position<f;this._position++){if(n=e[this._position],55296<=(u=e.charCodeAt(this._position))&&u<=56319){if(h=e.charCodeAt(this._position+1),isNaN(h)){this._terminal.surrogate_high=n;continue}u=1024*(u-55296)+(h-56320)+65536,n+=e.charAt(this._position+1)}if(!(56320<=u&&u<=57343))switch(this._state){case l.NORMAL:n in o?o[n](this,this._inputHandler):this._inputHandler.addChar(n,u);break;case l.ESCAPED:if(n in s){s[n](this,this._terminal);break}switch(n){case"(":case")":case"*":case"+":case"-":case".":switch(n){case"(":this._terminal.gcharset=0;break;case")":this._terminal.gcharset=1;break;case"*":this._terminal.gcharset=2;break;case"+":this._terminal.gcharset=3;break;case"-":this._terminal.gcharset=1;break;case".":this._terminal.gcharset=2}this._state=l.CHARSET;break;case"/":this._terminal.gcharset=3,this._state=l.CHARSET,this._position--;break;case"N":case"O":this._state=l.NORMAL;break;case"n":this._terminal.setgLevel(2),this._state=l.NORMAL;break;case"o":case"|":this._terminal.setgLevel(3),this._state=l.NORMAL;break;case"}":this._terminal.setgLevel(2),this._state=l.NORMAL;break;case"~":this._terminal.setgLevel(1),this._state=l.NORMAL;break;case"7":this._inputHandler.saveCursor(),this._state=l.NORMAL;break;case"8":this._inputHandler.restoreCursor(),this._state=l.NORMAL;break;case"#":this._state=l.NORMAL,this._position++;break;case"H":this._terminal.tabSet(),this._state=l.NORMAL;break;case"=":this._terminal.log("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport&&this._terminal.viewport.syncScrollArea(),this._state=l.NORMAL;break;case">":this._terminal.log("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport&&this._terminal.viewport.syncScrollArea(),this._state=l.NORMAL;break;default:this._state=l.NORMAL,this._terminal.error("Unknown ESC control: %s.",n)}break;case l.CHARSET:n in r.CHARSETS?(t=r.CHARSETS[n],"/"===n&&this.skipNextChar()):t=r.DEFAULT_CHARSET,this._terminal.setgCharset(this._terminal.gcharset,t),this._terminal.gcharset=null,this._state=l.NORMAL;break;case l.OSC:if(n===i.C0.ESC||n===i.C0.BEL){switch(n===i.C0.ESC&&this._position++,this._terminal.params.push(this._terminal.currentParam),this._terminal.params[0]){case 0:case 1:case 2:this._terminal.params[1]&&(this._terminal.title=this._terminal.params[1],this._terminal.handleTitle(this._terminal.title))}this._terminal.params=[],this._terminal.currentParam=0,this._state=l.NORMAL}else this._terminal.params.length?this._terminal.currentParam+=n:n>="0"&&n<="9"?this._terminal.currentParam=10*this._terminal.currentParam+n.charCodeAt(0)-48:";"===n&&(this._terminal.params.push(this._terminal.currentParam),this._terminal.currentParam="");break;case l.CSI_PARAM:if(n in a){a[n](this);break}this.finalizeParam(),this._state=l.CSI;case l.CSI:n in c?(this._terminal.debug&&this._terminal.log("CSI "+(this._terminal.prefix?this._terminal.prefix:"")+" "+(this._terminal.params?this._terminal.params.join(";"):"")+" "+(this._terminal.postfix?this._terminal.postfix:"")+" "+n),c[n](this._inputHandler,this._terminal.params,this._terminal.prefix,this._terminal.postfix,this)):this._terminal.error("Unknown CSI code: %s.",n),this._state=l.NORMAL,this._terminal.prefix="",this._terminal.postfix="";break;case l.DCS:if(n===i.C0.ESC||n===i.C0.BEL){n===i.C0.ESC&&this._position++;var _=void 0,m=void 0;switch(this._terminal.prefix){case"":break;case"$q":switch(m=!1,_=this._terminal.currentParam){case'"q':_='0"q';break;case'"p':_='61"p';break;case"r":_=this._terminal.buffer.scrollTop+1+";"+(this._terminal.buffer.scrollBottom+1)+"r";break;case"m":_="0m";break;default:this._terminal.error("Unknown DCS Pt: %s.",_),_=""}this._terminal.send(i.C0.ESC+"P"+ +m+"$r"+_+i.C0.ESC+"\\");break;case"+p":break;case"+q":_=this._terminal.currentParam,m=!1,this._terminal.send(i.C0.ESC+"P"+ +m+"+r"+_+i.C0.ESC+"\\");break;default:this._terminal.error("Unknown DCS prefix: %s.",this._terminal.prefix)}this._terminal.currentParam=0,this._terminal.prefix="",this._state=l.NORMAL}else this._terminal.currentParam?this._terminal.currentParam+=n:this._terminal.prefix||"$"===n||"+"===n?2===this._terminal.prefix.length?this._terminal.currentParam=n:this._terminal.prefix+=n:this._terminal.currentParam=n;break;case l.IGNORE:n!==i.C0.ESC&&n!==i.C0.BEL||(n===i.C0.ESC&&this._position++,this._state=l.NORMAL)}}return this._terminal.buffer.x===d&&this._terminal.buffer.y===p||this._terminal.emit("cursormove"),this._state},e.prototype.setState=function(e){this._state=e},e.prototype.setPrefix=function(e){this._terminal.prefix=e},e.prototype.setPostfix=function(e){this._terminal.postfix=e},e.prototype.setParam=function(e){this._terminal.currentParam=e},e.prototype.getParam=function(){return this._terminal.currentParam},e.prototype.finalizeParam=function(){this._terminal.params.push(this._terminal.currentParam),this._terminal.currentParam=0},e.prototype.skipNextChar=function(){this._position++},e}();t.Parser=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wcwidth=function(e){var t=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],n=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];function i(e,t){var n,i=0,r=t.length-1;if(e<t[0][0]||e>t[r][1])return!1;for(;r>=i;)if(e>t[n=i+r>>1][1])i=n+1;else{if(!(e<t[n][0]))return!0;r=n-1}return!1}var r=0|e.control,o=null;return function(s){if((s|=0)<32)return 0|r;if(s<127)return 1;var a,l=o||function(){var n;o="undefined"==typeof Uint32Array?new Array(4096):new Uint32Array(4096);for(var r=0;r<4096;++r){for(var s=0,a=16;a--;)s=s<<2|(0===(n=16*r+a)?e.nul:n<32||n>=127&&n<160?e.control:i(n,t)?0:function(e){return e>=4352&&(e<=4447||9001===e||9002===e||e>=11904&&e<=42191&&12351!==e||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510)}(n)?2:1);o[r]=s}return o}();return s<65536?l[s>>4]>>((15&s)<<1)&3:i(a=s,n)?0:a>=131072&&a<=196605||a>=196608&&a<=262141?2:1}}({nul:0,control:0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),r=n(84),o=n(24),s=n(83),a=n(127),l=function(){function e(e){this._terminal=e}return e.prototype.addChar=function(e,t){if(e>=" "){var n=a.wcwidth(t);this._terminal.charset&&this._terminal.charset[e]&&(e=this._terminal.charset[e]),this._terminal.options.screenReaderMode&&this._terminal.emit("a11y.char",e);var i=this._terminal.buffer.y+this._terminal.buffer.ybase;if(!n&&this._terminal.buffer.x)return void(this._terminal.buffer.lines.get(i)[this._terminal.buffer.x-1]&&(this._terminal.buffer.lines.get(i)[this._terminal.buffer.x-1][o.CHAR_DATA_WIDTH_INDEX]?(this._terminal.buffer.lines.get(i)[this._terminal.buffer.x-1][o.CHAR_DATA_CHAR_INDEX]+=e,this._terminal.buffer.lines.get(i)[this._terminal.buffer.x-1][3]=e.charCodeAt(0)):this._terminal.buffer.lines.get(i)[this._terminal.buffer.x-2]&&(this._terminal.buffer.lines.get(i)[this._terminal.buffer.x-2][o.CHAR_DATA_CHAR_INDEX]+=e,this._terminal.buffer.lines.get(i)[this._terminal.buffer.x-2][3]=e.charCodeAt(0)),this._terminal.updateRange(this._terminal.buffer.y)));if(this._terminal.buffer.x+n-1>=this._terminal.cols)if(this._terminal.wraparoundMode)this._terminal.buffer.x=0,this._terminal.buffer.y++,this._terminal.buffer.y>this._terminal.buffer.scrollBottom?(this._terminal.buffer.y--,this._terminal.scroll(!0)):this._terminal.buffer.lines.get(this._terminal.buffer.y).isWrapped=!0;else if(2===n)return;if(i=this._terminal.buffer.y+this._terminal.buffer.ybase,this._terminal.insertMode)for(var r=0;r<n;++r){0===this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).pop()[o.CHAR_DATA_WIDTH_INDEX]&&this._terminal.buffer.lines.get(i)[this._terminal.cols-2]&&2===this._terminal.buffer.lines.get(i)[this._terminal.cols-2][o.CHAR_DATA_WIDTH_INDEX]&&(this._terminal.buffer.lines.get(i)[this._terminal.cols-2]=[this._terminal.curAttr," ",1," ".charCodeAt(0)]),this._terminal.buffer.lines.get(i).splice(this._terminal.buffer.x,0,[this._terminal.curAttr," ",1," ".charCodeAt(0)])}this._terminal.buffer.lines.get(i)[this._terminal.buffer.x]=[this._terminal.curAttr,e,n,e.charCodeAt(0)],this._terminal.buffer.x++,this._terminal.updateRange(this._terminal.buffer.y),2===n&&(this._terminal.buffer.lines.get(i)[this._terminal.buffer.x]=[this._terminal.curAttr,"",0,void 0],this._terminal.buffer.x++)}},e.prototype.bell=function(){this._terminal.bell()},e.prototype.lineFeed=function(){this._terminal.convertEol&&(this._terminal.buffer.x=0),this._terminal.buffer.y++,this._terminal.buffer.y>this._terminal.buffer.scrollBottom&&(this._terminal.buffer.y--,this._terminal.scroll()),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--,this._terminal.emit("linefeed")},e.prototype.carriageReturn=function(){this._terminal.buffer.x=0},e.prototype.backspace=function(){this._terminal.buffer.x>0&&this._terminal.buffer.x--},e.prototype.tab=function(){var e=this._terminal.buffer.x;this._terminal.buffer.x=this._terminal.buffer.nextStop(),this._terminal.options.screenReaderMode&&this._terminal.emit("a11y.tab",this._terminal.buffer.x-e)},e.prototype.shiftOut=function(){this._terminal.setgLevel(1)},e.prototype.shiftIn=function(){this._terminal.setgLevel(0)},e.prototype.insertChars=function(e){var t=e[0];t<1&&(t=1);for(var n=this._terminal.buffer.y+this._terminal.buffer.ybase,i=this._terminal.buffer.x,r=[this._terminal.eraseAttr()," ",1,32];t--&&i<this._terminal.cols;)this._terminal.buffer.lines.get(n).splice(i++,0,r),this._terminal.buffer.lines.get(n).pop()},e.prototype.cursorUp=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y-=t,this._terminal.buffer.y<0&&(this._terminal.buffer.y=0)},e.prototype.cursorDown=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--},e.prototype.cursorForward=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x+=t,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.cursorBackward=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--,this._terminal.buffer.x-=t,this._terminal.buffer.x<0&&(this._terminal.buffer.x=0)},e.prototype.cursorNextLine=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x=0},e.prototype.cursorPrecedingLine=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y-=t,this._terminal.buffer.y<0&&(this._terminal.buffer.y=0),this._terminal.buffer.x=0},e.prototype.cursorCharAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x=t-1},e.prototype.cursorPosition=function(e){var t,n=e[0]-1;t=e.length>=2?e[1]-1:0,n<0?n=0:n>=this._terminal.rows&&(n=this._terminal.rows-1),t<0?t=0:t>=this._terminal.cols&&(t=this._terminal.cols-1),this._terminal.buffer.x=t,this._terminal.buffer.y=n},e.prototype.cursorForwardTab=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.x=this._terminal.buffer.nextStop()},e.prototype.eraseInDisplay=function(e){var t;switch(e[0]){case 0:for(this._terminal.eraseRight(this._terminal.buffer.x,this._terminal.buffer.y),t=this._terminal.buffer.y+1;t<this._terminal.rows;t++)this._terminal.eraseLine(t);break;case 1:for(this._terminal.eraseLeft(this._terminal.buffer.x,this._terminal.buffer.y),t=this._terminal.buffer.y;t--;)this._terminal.eraseLine(t);break;case 2:for(t=this._terminal.rows;t--;)this._terminal.eraseLine(t);break;case 3:var n=this._terminal.buffer.lines.length-this._terminal.rows;n>0&&(this._terminal.buffer.lines.trimStart(n),this._terminal.buffer.ybase=Math.max(this._terminal.buffer.ybase-n,0),this._terminal.buffer.ydisp=Math.max(this._terminal.buffer.ydisp-n,0),this._terminal.emit("scroll",0))}},e.prototype.eraseInLine=function(e){switch(e[0]){case 0:this._terminal.eraseRight(this._terminal.buffer.x,this._terminal.buffer.y);break;case 1:this._terminal.eraseLeft(this._terminal.buffer.x,this._terminal.buffer.y);break;case 2:this._terminal.eraseLine(this._terminal.buffer.y)}},e.prototype.insertLines=function(e){var t=e[0];t<1&&(t=1);for(var n=this._terminal.buffer.y+this._terminal.buffer.ybase,i=this._terminal.rows-1-this._terminal.buffer.scrollBottom,r=this._terminal.rows-1+this._terminal.buffer.ybase-i+1;t--;)this._terminal.buffer.lines.splice(r-1,1),this._terminal.buffer.lines.splice(n,0,this._terminal.blankLine(!0));this._terminal.updateRange(this._terminal.buffer.y),this._terminal.updateRange(this._terminal.buffer.scrollBottom)},e.prototype.deleteLines=function(e){var t=e[0];t<1&&(t=1);var n,i=this._terminal.buffer.y+this._terminal.buffer.ybase;for(n=this._terminal.rows-1-this._terminal.buffer.scrollBottom,n=this._terminal.rows-1+this._terminal.buffer.ybase-n;t--;)this._terminal.buffer.lines.splice(i,1),this._terminal.buffer.lines.splice(n,0,this._terminal.blankLine(!0));this._terminal.updateRange(this._terminal.buffer.y),this._terminal.updateRange(this._terminal.buffer.scrollBottom)},e.prototype.deleteChars=function(e){var t=e[0];t<1&&(t=1);for(var n=this._terminal.buffer.y+this._terminal.buffer.ybase,i=[this._terminal.eraseAttr()," ",1,32];t--;)this._terminal.buffer.lines.get(n).splice(this._terminal.buffer.x,1),this._terminal.buffer.lines.get(n).push(i);this._terminal.updateRange(this._terminal.buffer.y)},e.prototype.scrollUp=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.lines.splice(this._terminal.buffer.ybase+this._terminal.buffer.scrollTop,1),this._terminal.buffer.lines.splice(this._terminal.buffer.ybase+this._terminal.buffer.scrollBottom,0,this._terminal.blankLine());this._terminal.updateRange(this._terminal.buffer.scrollTop),this._terminal.updateRange(this._terminal.buffer.scrollBottom)},e.prototype.scrollDown=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.lines.splice(this._terminal.buffer.ybase+this._terminal.buffer.scrollBottom,1),this._terminal.buffer.lines.splice(this._terminal.buffer.ybase+this._terminal.buffer.scrollTop,0,this._terminal.blankLine());this._terminal.updateRange(this._terminal.buffer.scrollTop),this._terminal.updateRange(this._terminal.buffer.scrollBottom)},e.prototype.eraseChars=function(e){var t=e[0];t<1&&(t=1);for(var n=this._terminal.buffer.y+this._terminal.buffer.ybase,i=this._terminal.buffer.x,r=[this._terminal.eraseAttr()," ",1,32];t--&&i<this._terminal.cols;)this._terminal.buffer.lines.get(n)[i++]=r},e.prototype.cursorBackwardTab=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.x=this._terminal.buffer.prevStop()},e.prototype.charPosAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x=t-1,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.HPositionRelative=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x+=t,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.repeatPrecedingCharacter=function(e){for(var t=e[0]||1,n=this._terminal.buffer.lines.get(this._terminal.buffer.ybase+this._terminal.buffer.y),i=n[this._terminal.buffer.x-1]||[this._terminal.defAttr," ",1,32];t--;)n[this._terminal.buffer.x++]=i},e.prototype.sendDeviceAttributes=function(e){e[0]>0||(this._terminal.prefix?">"===this._terminal.prefix&&(this._terminal.is("xterm")?this._terminal.send(i.C0.ESC+"[>0;276;0c"):this._terminal.is("rxvt-unicode")?this._terminal.send(i.C0.ESC+"[>85;95;0c"):this._terminal.is("linux")?this._terminal.send(e[0]+"c"):this._terminal.is("screen")&&this._terminal.send(i.C0.ESC+"[>83;40003;0c")):this._terminal.is("xterm")||this._terminal.is("rxvt-unicode")||this._terminal.is("screen")?this._terminal.send(i.C0.ESC+"[?1;2c"):this._terminal.is("linux")&&this._terminal.send(i.C0.ESC+"[?6c"))},e.prototype.linePosAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y=t-1,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1)},e.prototype.VPositionRelative=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--},e.prototype.HVPosition=function(e){e[0]<1&&(e[0]=1),e[1]<1&&(e[1]=1),this._terminal.buffer.y=e[0]-1,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x=e[1]-1,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.tabClear=function(e){var t=e[0];t<=0?delete this._terminal.buffer.tabs[this._terminal.buffer.x]:3===t&&(this._terminal.buffer.tabs={})},e.prototype.setMode=function(e){if(e.length>1)for(var t=0;t<e.length;t++)this.setMode([e[t]]);else if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(e[0]){case 1:this._terminal.applicationCursor=!0;break;case 2:this._terminal.setgCharset(0,r.DEFAULT_CHARSET),this._terminal.setgCharset(1,r.DEFAULT_CHARSET),this._terminal.setgCharset(2,r.DEFAULT_CHARSET),this._terminal.setgCharset(3,r.DEFAULT_CHARSET);break;case 3:this._terminal.savedCols=this._terminal.cols,this._terminal.resize(132,this._terminal.rows);break;case 6:this._terminal.originMode=!0;break;case 7:this._terminal.wraparoundMode=!0;break;case 12:break;case 66:this._terminal.log("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport.syncScrollArea();break;case 9:case 1e3:case 1002:case 1003:this._terminal.x10Mouse=9===e[0],this._terminal.vt200Mouse=1e3===e[0],this._terminal.normalMouse=e[0]>1e3,this._terminal.mouseEvents=!0,this._terminal.element.classList.add("enable-mouse-events"),this._terminal.selectionManager.disable(),this._terminal.log("Binding to mouse events.");break;case 1004:this._terminal.sendFocus=!0;break;case 1005:this._terminal.utfMouse=!0;break;case 1006:this._terminal.sgrMouse=!0;break;case 1015:this._terminal.urxvtMouse=!0;break;case 25:this._terminal.cursorHidden=!1;break;case 1049:case 47:case 1047:this._terminal.buffers.activateAltBuffer(),this._terminal.viewport.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!0}}else switch(e[0]){case 4:this._terminal.insertMode=!0}},e.prototype.resetMode=function(e){if(e.length>1)for(var t=0;t<e.length;t++)this.resetMode([e[t]]);else if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(e[0]){case 1:this._terminal.applicationCursor=!1;break;case 3:132===this._terminal.cols&&this._terminal.savedCols&&this._terminal.resize(this._terminal.savedCols,this._terminal.rows),delete this._terminal.savedCols;break;case 6:this._terminal.originMode=!1;break;case 7:this._terminal.wraparoundMode=!1;break;case 12:break;case 66:this._terminal.log("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport.syncScrollArea();break;case 9:case 1e3:case 1002:case 1003:this._terminal.x10Mouse=!1,this._terminal.vt200Mouse=!1,this._terminal.normalMouse=!1,this._terminal.mouseEvents=!1,this._terminal.element.classList.remove("enable-mouse-events"),this._terminal.selectionManager.enable();break;case 1004:this._terminal.sendFocus=!1;break;case 1005:this._terminal.utfMouse=!1;break;case 1006:this._terminal.sgrMouse=!1;break;case 1015:this._terminal.urxvtMouse=!1;break;case 25:this._terminal.cursorHidden=!0;break;case 1049:case 47:case 1047:this._terminal.buffers.activateNormalBuffer(),this._terminal.refresh(0,this._terminal.rows-1),this._terminal.viewport.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!1}}else switch(e[0]){case 4:this._terminal.insertMode=!1}},e.prototype.charAttributes=function(e){if(1!==e.length||0!==e[0]){for(var t,n=e.length,i=this._terminal.curAttr>>18,r=this._terminal.curAttr>>9&511,o=511&this._terminal.curAttr,a=0;a<n;a++)(t=e[a])>=30&&t<=37?r=t-30:t>=40&&t<=47?o=t-40:t>=90&&t<=97?r=(t+=8)-90:t>=100&&t<=107?o=(t+=8)-100:0===t?(i=this._terminal.defAttr>>18,r=this._terminal.defAttr>>9&511,o=511&this._terminal.defAttr):1===t?i|=s.FLAGS.BOLD:4===t?i|=s.FLAGS.UNDERLINE:5===t?i|=s.FLAGS.BLINK:7===t?i|=s.FLAGS.INVERSE:8===t?i|=s.FLAGS.INVISIBLE:2===t?i|=s.FLAGS.DIM:22===t?(i&=~s.FLAGS.BOLD,i&=~s.FLAGS.DIM):24===t?i&=~s.FLAGS.UNDERLINE:25===t?i&=~s.FLAGS.BLINK:27===t?i&=~s.FLAGS.INVERSE:28===t?i&=~s.FLAGS.INVISIBLE:39===t?r=this._terminal.defAttr>>9&511:49===t?o=511&this._terminal.defAttr:38===t?2===e[a+1]?(a+=2,-1===(r=this._terminal.matchColor(255&e[a],255&e[a+1],255&e[a+2]))&&(r=511),a+=2):5===e[a+1]&&(r=t=255&e[a+=2]):48===t?2===e[a+1]?(a+=2,-1===(o=this._terminal.matchColor(255&e[a],255&e[a+1],255&e[a+2]))&&(o=511),a+=2):5===e[a+1]&&(o=t=255&e[a+=2]):100===t?(r=this._terminal.defAttr>>9&511,o=511&this._terminal.defAttr):this._terminal.error("Unknown SGR attribute: %d.",t);this._terminal.curAttr=i<<18|r<<9|o}else this._terminal.curAttr=this._terminal.defAttr},e.prototype.deviceStatus=function(e){if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(e[0]){case 6:this._terminal.send(i.C0.ESC+"[?"+(this._terminal.buffer.y+1)+";"+(this._terminal.buffer.x+1)+"R")}}else switch(e[0]){case 5:this._terminal.send(i.C0.ESC+"[0n");break;case 6:this._terminal.send(i.C0.ESC+"["+(this._terminal.buffer.y+1)+";"+(this._terminal.buffer.x+1)+"R")}},e.prototype.softReset=function(e){this._terminal.cursorHidden=!1,this._terminal.insertMode=!1,this._terminal.originMode=!1,this._terminal.wraparoundMode=!0,this._terminal.applicationKeypad=!1,this._terminal.viewport.syncScrollArea(),this._terminal.applicationCursor=!1,this._terminal.buffer.scrollTop=0,this._terminal.buffer.scrollBottom=this._terminal.rows-1,this._terminal.curAttr=this._terminal.defAttr,this._terminal.buffer.x=this._terminal.buffer.y=0,this._terminal.charset=null,this._terminal.glevel=0,this._terminal.charsets=[null]},e.prototype.setCursorStyle=function(e){var t=e[0]<1?1:e[0];switch(t){case 1:case 2:this._terminal.setOption("cursorStyle","block");break;case 3:case 4:this._terminal.setOption("cursorStyle","underline");break;case 5:case 6:this._terminal.setOption("cursorStyle","bar")}var n=t%2==1;this._terminal.setOption("cursorBlink",n)},e.prototype.setScrollRegion=function(e){this._terminal.prefix||(this._terminal.buffer.scrollTop=(e[0]||1)-1,this._terminal.buffer.scrollBottom=(e[1]&&e[1]<=this._terminal.rows?e[1]:this._terminal.rows)-1,this._terminal.buffer.x=0,this._terminal.buffer.y=0)},e.prototype.saveCursor=function(e){this._terminal.buffer.savedX=this._terminal.buffer.x,this._terminal.buffer.savedY=this._terminal.buffer.y},e.prototype.restoreCursor=function(e){this._terminal.buffer.x=this._terminal.buffer.savedX||0,this._terminal.buffer.y=this._terminal.buffer.savedY||0},e}();t.InputHandler=l},function(e,t,n){"use strict";function i(e){return e.replace(/\r?\n/g,"\r")}function r(e,t){return t?"\e[200~"+e+"\e[201~":e}function o(e,t){t.style.position="fixed",t.style.width="20px",t.style.height="20px",t.style.left=e.clientX-10+"px",t.style.top=e.clientY-10+"px",t.style.zIndex="1000",t.focus(),setTimeout(function(){t.style.position=null,t.style.width=null,t.style.height=null,t.style.left=null,t.style.top=null,t.style.zIndex=null},200)}Object.defineProperty(t,"__esModule",{value:!0}),t.prepareTextForTerminal=i,t.bracketTextForPaste=r,t.copyHandler=function(e,t,n){t.browser.isMSIE?window.clipboardData.setData("Text",n.selectionText):e.clipboardData.setData("text/plain",n.selectionText),e.preventDefault()},t.pasteHandler=function(e,t){e.stopPropagation();var n=function(n){n=r(n=i(n),t.bracketedPasteMode),t.handler(n),t.textarea.value="",t.emit("paste",n),t.cancel(e)};t.browser.isMSIE?window.clipboardData&&n(window.clipboardData.getData("Text")):e.clipboardData&&n(e.clipboardData.getData("text/plain"))},t.moveTextAreaUnderMouseCursor=o,t.rightClickHandler=function(e,t,n,i){o(e,t),i&&!n.isClickInSelection(e)&&n.selectWordAtCursor(e),t.value=n.selectionText,t.select()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=15,r=function(){function e(e,t,n,r){var o=this;this._terminal=e,this._viewportElement=t,this._scrollArea=n,this._charMeasure=r,this.scrollBarWidth=0,this._currentRowHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._wheelPartialScroll=0,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||i,this._viewportElement.addEventListener("scroll",this._onScroll.bind(this)),setTimeout(function(){return o.syncScrollArea()},0)}return e.prototype.onThemeChanged=function(e){this._viewportElement.style.backgroundColor=e.background.css},e.prototype._refresh=function(){if(this._charMeasure.height>0){this._currentRowHeight=this._terminal.renderer.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._terminal.renderer.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}},e.prototype.syncScrollArea=function(){this._lastRecordedBufferLength!==this._terminal.buffer.lines.length?(this._lastRecordedBufferLength=this._terminal.buffer.lines.length,this._refresh()):this._lastRecordedViewportHeight!==this._terminal.renderer.dimensions.canvasHeight?this._refresh():this._terminal.renderer.dimensions.scaledCellHeight/window.devicePixelRatio!==this._currentRowHeight&&this._refresh();var e=this._terminal.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._viewportElement.scrollTop=e)},e.prototype._onScroll=function(e){if(this._viewportElement.offsetParent){var t=Math.round(this._viewportElement.scrollTop/this._currentRowHeight)-this._terminal.buffer.ydisp;this._terminal.scrollLines(t,!0)}},e.prototype.onWheel=function(e){var t=this._getPixelsScrolled(e);0!==t&&(this._viewportElement.scrollTop+=t,e.preventDefault())},e.prototype._getPixelsScrolled=function(e){if(0===e.deltaY)return 0;var t=e.deltaY;return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._terminal.rows),t},e.prototype.getLinesScrolled=function(e){if(0===e.deltaY)return 0;var t=e.deltaY;return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._terminal.rows),t},e.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},e.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,e.preventDefault())},e}();t.Viewport=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){this._textarea=e,this._compositionView=t,this._terminal=n,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:null,end:null}}return e.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},e.prototype.compositionupdate=function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},e.prototype.compositionend=function(){this._finalizeComposition(!0)},e.prototype.keydown=function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)},e.prototype._finalizeComposition=function(e){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,this._clearTextareaPosition(),e){var n={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(t._isSendingComposition){t._isSendingComposition=!1;var e=void 0;e=t._isComposing?t._textarea.value.substring(n.start,n.end):t._textarea.value.substring(n.start),t._terminal.handler(e)}},0)}else{this._isSendingComposition=!1;var i=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._terminal.handler(i)}},e.prototype._handleAnyTextareaChanges=function(){var e=this,t=this._textarea.value;setTimeout(function(){if(!e._isComposing){var n=e._textarea.value.replace(t,"");n.length>0&&e._terminal.handler(n)}},0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this._isComposing){if(this._terminal.buffer.isCursorInViewport){var n=Math.ceil(this._terminal.charMeasure.height*this._terminal.options.lineHeight),i=this._terminal.buffer.y*n,r=this._terminal.buffer.x*this._terminal.charMeasure.width;this._compositionView.style.left=r+"px",this._compositionView.style.top=i+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px";var o=this._compositionView.getBoundingClientRect();this._textarea.style.left=r+"px",this._textarea.style.top=i+"px",this._textarea.style.width=o.width+"px",this._textarea.style.height=o.height+"px",this._textarea.style.lineHeight=o.height+"px"}e||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},e.prototype._clearTextareaPosition=function(){this._textarea.style.left="",this._textarea.style.top=""},e}();t.CompositionHelper=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var n=e.call(this)||this;return n._maxLength=t,n._array=new Array(n._maxLength),n._startIndex=0,n._length=0,n}return r(t,e),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),n=0;n<Math.min(e,this.length);n++)t[n]=this._array[this._getCyclicIndex(n)];this._array=t,this._maxLength=e,this._startIndex=0}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},set:function(e){if(e>this._length)for(var t=this._length;t<e;t++)this._array[t]=void 0;this._length=e},enumerable:!0,configurable:!0}),t.prototype.get=function(e){return this._array[this._getCyclicIndex(e)]},t.prototype.set=function(e,t){this._array[this._getCyclicIndex(e)]=t},t.prototype.push=function(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex++,this._startIndex===this._maxLength&&(this._startIndex=0),this.emit("trim",1)):this._length++},t.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},t.prototype.splice=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(t){for(var r=e;r<this._length-t;r++)this._array[this._getCyclicIndex(r)]=this._array[this._getCyclicIndex(r+t)];this._length-=t}if(n&&n.length){for(r=this._length-1;r>=e;r--)this._array[this._getCyclicIndex(r+n.length)]=this._array[this._getCyclicIndex(r)];for(r=0;r<n.length;r++)this._array[this._getCyclicIndex(e+r)]=n[r];if(this._length+n.length>this.maxLength){var o=this._length+n.length-this.maxLength;this._startIndex+=o,this._length=this.maxLength,this.emit("trim",o)}else this._length+=n.length}},t.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.emit("trim",e)},t.prototype.shiftElements=function(e,t,n){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+n<0)throw new Error("Cannot shift elements in list beyond index 0");if(n>0){for(var i=t-1;i>=0;i--)this.set(e+i+n,this.get(e+i));var r=e+t+n-this._length;if(r>0)for(this._length+=r;this._length>this.maxLength;)this._length--,this._startIndex++,this.emit("trim",1)}else for(i=0;i<t;i++)this.set(e+i+n,this.get(e+i))}},t.prototype._getCyclicIndex=function(e){return(this._startIndex+e)%this.maxLength},t}(n(19).EventEmitter);t.CircularList=o},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(24),s=function(e){function t(t){var n=e.call(this)||this;return n._terminal=t,n._normal=new o.Buffer(n._terminal,!0),n._normal.fillViewportRows(),n._alt=new o.Buffer(n._terminal,!1),n._activeBuffer=n._normal,n.setupTabStops(),n}return r(t,e),Object.defineProperty(t.prototype,"alt",{get:function(){return this._alt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal},enumerable:!0,configurable:!0}),t.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._alt.clear(),this._activeBuffer=this._normal,this.emit("activate",{activeBuffer:this._normal,inactiveBuffer:this._alt}))},t.prototype.activateAltBuffer=function(){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(),this._activeBuffer=this._alt,this.emit("activate",{activeBuffer:this._alt,inactiveBuffer:this._normal}))},t.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},t.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},t}(n(19).EventEmitter);t.BufferSet=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(133),s=n(24),a=n(131),l=n(19),c=n(130),u=n(129),h=n(45),f=n(128),d=n(126),p=n(125),_=n(116),m=n(115),b=n(112),g=n(43),v=n(74),y=n(75),w=n(111),x=n(110),k=n(80),C=n(76),S=n(109),A=n(77),E={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']},O="undefined"!=typeof window?window.document:null,L={cols:80,rows:24,convertEol:!1,termName:"xterm",cursorBlink:!1,cursorStyle:"block",bellSound:x.DEFAULT_BELL_SOUND,bellStyle:"none",enableBold:!0,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,scrollback:1e3,screenKeys:!1,screenReaderMode:!1,debug:!1,macOptionIsMeta:!1,cancelEvents:!1,disableStdin:!1,useFlowControl:!1,allowTransparency:!1,tabStopWidth:8,theme:null,rightClickSelectsWord:g.isMac},R=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.browser=g,n.options=w.clone(t),n._setup(),n}return r(t,e),t.prototype._setup=function(){var e=this;Object.keys(L).forEach(function(t){null==e.options[t]&&(e.options[t]=L[t]),e[t]=e.options[t]}),this._parent=O?O.body:null,this.cols=this.options.cols,this.rows=this.options.rows,this.options.handler&&this.on("data",this.options.handler),this.cursorState=0,this.cursorHidden=!1,this._sendDataQueue="",this._customKeyEventHandler=null,this.applicationKeypad=!1,this.applicationCursor=!1,this.originMode=!1,this.insertMode=!1,this.wraparoundMode=!0,this.bracketedPasteMode=!1,this.charset=null,this.gcharset=null,this.glevel=0,this.charsets=[null],this.defAttr=131840,this.curAttr=131840,this.params=[],this.currentParam=0,this.prefix="",this.postfix="",this.writeBuffer=[],this._writeInProgress=!1,this._xoffSentToCatchUp=!1,this._userScrolling=!1,this._inputHandler=new f.InputHandler(this),this._parser=new d.Parser(this._inputHandler,this),this.renderer=this.renderer||null,this.selectionManager=this.selectionManager||null,this.linkifier=this.linkifier||new _.Linkifier(this),this._mouseZoneManager=this._mouseZoneManager||null,this.soundManager=this.soundManager||new x.SoundManager(this),this.buffers=new o.BufferSet(this),this.selectionManager&&(this.selectionManager.clearSelection(),this.selectionManager.initBuffersListeners())},Object.defineProperty(t.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return v},enumerable:!0,configurable:!0}),t.prototype.eraseAttr=function(){return-512&this.defAttr|511&this.curAttr},t.prototype.focus=function(){this.textarea&&this.textarea.focus()},Object.defineProperty(t.prototype,"isFocused",{get:function(){return O.activeElement===this.textarea},enumerable:!0,configurable:!0}),t.prototype.getOption=function(e){if(!(e in L))throw new Error('No option with key "'+e+'"');return void 0!==this.options[e]?this.options[e]:this[e]},t.prototype.setOption=function(e,t){if(!(e in L))throw new Error('No option with key "'+e+'"');switch(e){case"bellStyle":t||(t="none");break;case"cursorStyle":t||(t="block");break;case"fontWeight":t||(t="normal");break;case"fontWeightBold":t||(t="bold");break;case"lineHeight":if(t<1)return void console.warn(e+" cannot be less than 1, value: "+t);case"tabStopWidth":if(t<1)return void console.warn(e+" cannot be less than 1, value: "+t);break;case"theme":if(this.renderer)return void this._setTheme(t);break;case"scrollback":if((t=Math.min(t,s.MAX_BUFFER_SIZE))<0)return void console.warn(e+" cannot be less than 0, value: "+t);if(this.options[e]!==t){var n=this.rows+t;if(this.buffer.lines.length>n){var i=this.buffer.lines.length-n,r=this.buffer.ydisp-i<0;this.buffer.lines.trimStart(i),this.buffer.ybase=Math.max(this.buffer.ybase-i,0),this.buffer.ydisp=Math.max(this.buffer.ydisp-i,0),r&&this.refresh(0,this.rows-1)}}}switch(this[e]=t,this.options[e]=t,e){case"fontFamily":case"fontSize":this.renderer.clear(),this.charMeasure.measure(this.options);break;case"enableBold":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":this.renderer.clear(),this.renderer.onResize(this.cols,this.rows),this.refresh(0,this.rows-1);case"scrollback":this.buffers.resize(this.cols,this.rows),this.viewport.syncScrollArea();break;case"screenReaderMode":t?this._accessibilityManager||(this._accessibilityManager=new S.AccessibilityManager(this)):this._accessibilityManager&&(this._accessibilityManager.dispose(),this._accessibilityManager=null);break;case"tabStopWidth":this.buffers.setupTabStops()}this.renderer&&this.renderer.onOptionsChanged()},t.prototype._onTextAreaFocus=function(){this.sendFocus&&this.send(h.C0.ESC+"[I"),this.element.classList.add("focus"),this.showCursor(),this.emit("focus")},t.prototype.blur=function(){return this.textarea.blur()},t.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.sendFocus&&this.send(h.C0.ESC+"[O"),this.element.classList.remove("focus"),this.emit("blur")},t.prototype._initGlobal=function(){var e=this;this._bindKeys(),T(this.element,"copy",function(t){e.hasSelection()&&u.copyHandler(t,e,e.selectionManager)});var t=function(t){return u.pasteHandler(t,e)};T(this.textarea,"paste",t),T(this.element,"paste",t),g.isFirefox?T(this.element,"mousedown",function(t){2===t.button&&u.rightClickHandler(t,e.textarea,e.selectionManager,e.options.rightClickSelectsWord)}):T(this.element,"contextmenu",function(t){u.rightClickHandler(t,e.textarea,e.selectionManager,e.options.rightClickSelectsWord)}),g.isLinux&&T(this.element,"auxclick",function(t){1===t.button&&u.moveTextAreaUnderMouseCursor(t,e.textarea)})},t.prototype._bindKeys=function(){var e=this,t=this;T(this.element,"keydown",function(e){O.activeElement===this&&t._keyDown(e)},!0),T(this.element,"keypress",function(e){O.activeElement===this&&t._keyPress(e)},!0),T(this.element,"keyup",function(t){(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode})(t)||e.focus()},!0),T(this.textarea,"keydown",function(t){return e._keyDown(t)},!0),T(this.textarea,"keypress",function(t){return e._keyPress(t)},!0),T(this.textarea,"compositionstart",function(){return e._compositionHelper.compositionstart()}),T(this.textarea,"compositionupdate",function(t){return e._compositionHelper.compositionupdate(t)}),T(this.textarea,"compositionend",function(){return e._compositionHelper.compositionend()}),this.on("refresh",function(){return e._compositionHelper.updateCompositionElements()}),this.on("refresh",function(t){return e._queueLinkification(t.start,t.end)})},t.prototype.open=function(e){var t=this;if(this._parent=e||this._parent,!this._parent)throw new Error("Terminal requires a parent element.");this._context=this._parent.ownerDocument.defaultView,this._document=this._parent.ownerDocument,this._screenDprMonitor=new A.ScreenDprMonitor,this._screenDprMonitor.setListener(function(){return t.emit("dprchange",window.devicePixelRatio)}),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),this._parent.appendChild(this.element);var n=O.createDocumentFragment();this._viewportElement=O.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),n.appendChild(this._viewportElement),this._viewportScrollArea=O.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=O.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=O.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),n.appendChild(this.screenElement),this._mouseZoneManager=new C.MouseZoneManager(this),this.on("scroll",function(){return t._mouseZoneManager.clearAll()}),this.linkifier.attachToDom(this._mouseZoneManager),this.textarea=O.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",v.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.textarea.addEventListener("focus",function(){return t._onTextAreaFocus()}),this.textarea.addEventListener("blur",function(){return t._onTextAreaBlur()}),this._helperContainer.appendChild(this.textarea),this._compositionView=O.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=new a.CompositionHelper(this.textarea,this._compositionView,this),this._helperContainer.appendChild(this._compositionView),this.charMeasure=new b.CharMeasure(O,this._helperContainer),this.element.appendChild(n),this.renderer=new p.Renderer(this,this.options.theme),this.options.theme=null,this.viewport=new c.Viewport(this,this._viewportElement,this._viewportScrollArea,this.charMeasure),this.viewport.onThemeChanged(this.renderer.colorManager.colors),this.on("cursormove",function(){return t.renderer.onCursorMove()}),this.on("resize",function(){return t.renderer.onResize(t.cols,t.rows)}),this.on("blur",function(){return t.renderer.onBlur()}),this.on("focus",function(){return t.renderer.onFocus()}),this.on("dprchange",function(){return t.renderer.onWindowResize(window.devicePixelRatio)}),window.addEventListener("resize",function(){return t.renderer.onWindowResize(window.devicePixelRatio)}),this.charMeasure.on("charsizechanged",function(){return t.renderer.onResize(t.cols,t.rows)}),this.renderer.on("resize",function(e){return t.viewport.syncScrollArea()}),this.selectionManager=new m.SelectionManager(this,this.charMeasure),this.element.addEventListener("mousedown",function(e){return t.selectionManager.onMouseDown(e)}),this.selectionManager.on("refresh",function(e){return t.renderer.onSelectionChanged(e.start,e.end)}),this.selectionManager.on("newselection",function(e){t.textarea.value=e,t.textarea.focus(),t.textarea.select()}),this.on("scroll",function(){t.viewport.syncScrollArea(),t.selectionManager.refresh()}),this._viewportElement.addEventListener("scroll",function(){return t.selectionManager.refresh()}),this.mouseHelper=new y.MouseHelper(this.renderer),this.options.screenReaderMode&&(this._accessibilityManager=new S.AccessibilityManager(this)),this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},t.prototype._setTheme=function(e){var t=this.renderer.setTheme(e);this.viewport&&this.viewport.onThemeChanged(t)},t.applyAddon=function(e){e.apply(t)},t.prototype.bindMouse=function(){var e=this,t=this.element,n=this,i=32;function r(e){var t,r;if(t=function(e){var t,i,r,o,s;switch(e.overrideType||e.type){case"mousedown":t=null!=e.button?+e.button:null!=e.which?e.which-1:null,g.isMSIE&&(t=1===t?0:4===t?1:t);break;case"mouseup":t=3;break;case"DOMMouseScroll":t=e.detail<0?64:65;break;case"wheel":t=e.wheelDeltaY>0?64:65}i=e.shiftKey?4:0,r=e.metaKey?8:0,o=e.ctrlKey?16:0,s=i|r|o,n.vt200Mouse?s&=o:n.normalMouse||(s=0);return t=32+(s<<2)+t}(e),r=n.mouseHelper.getRawByteCoords(e,n.screenElement,n.charMeasure,n.options.lineHeight,n.cols,n.rows))switch(a(t,r),e.overrideType||e.type){case"mousedown":i=t;break;case"mouseup":i=32}}function o(e){var t=i,r=n.mouseHelper.getRawByteCoords(e,n.screenElement,n.charMeasure,n.options.lineHeight,n.cols,n.rows);r&&a(t+=32,r)}function s(e,t){if(n.utfMouse){if(2047===t)return void e.push(0);t<127?e.push(t):(t>2047&&(t=2047),e.push(192|t>>6),e.push(128|63&t))}else{if(255===t)return void e.push(0);t>127&&(t=127),e.push(t)}}function a(e,t){if(n._vt300Mouse){e&=3,t.x-=32,t.y-=32;var i=h.C0.ESC+"[24";if(0===e)i+="1";else if(1===e)i+="3";else if(2===e)i+="5";else{if(3===e)return;i+="0"}return i+="~["+t.x+","+t.y+"]\r",void n.send(i)}if(n._decLocator)return e&=3,t.x-=32,t.y-=32,0===e?e=2:1===e?e=4:2===e?e=6:3===e&&(e=3),void n.send(h.C0.ESC+"["+e+";"+(3===e?4:0)+";"+t.y+";"+t.x+";"+t.page||"0&w");if(n.urxvtMouse)return t.x-=32,t.y-=32,t.x++,t.y++,void n.send(h.C0.ESC+"["+e+";"+t.x+";"+t.y+"M");if(n.sgrMouse)return t.x-=32,t.y-=32,void n.send(h.C0.ESC+"[<"+((3==(3&e)?-4&e:e)-32)+";"+t.x+";"+t.y+(3==(3&e)?"m":"M"));var r=[];s(r,e),s(r,t.x),s(r,t.y),n.send(h.C0.ESC+"[M"+String.fromCharCode.apply(String,r))}T(t,"mousedown",function(t){if(t.preventDefault(),e.focus(),e.mouseEvents&&!e.selectionManager.shouldForceSelection(t)){if(r(t),e.vt200Mouse)return t.overrideType="mouseup",r(t),e.cancel(t);if(e.normalMouse&&T(e._document,"mousemove",o),!e.x10Mouse){var n=function(t){return r(t),e.normalMouse&&M(e._document,"mousemove",o),M(e._document,"mouseup",n),e.cancel(t)};T(e._document,"mouseup",n)}return e.cancel(t)}}),T(t,"wheel",function(t){if(e.mouseEvents)e.x10Mouse||e._vt300Mouse||e._decLocator||(r(t),t.preventDefault());else if(!e.buffer.hasScrollback){var n=e.viewport.getLinesScrolled(t);if(0===n)return;for(var i=h.C0.ESC+(e.applicationCursor?"O":"[")+(t.deltaY<0?"A":"B"),o="",s=0;s<Math.abs(n);s++)o+=i;e.send(o)}}),T(t,"wheel",function(t){if(!e.mouseEvents)return e.viewport.onWheel(t),e.cancel(t)}),T(t,"touchstart",function(t){if(!e.mouseEvents)return e.viewport.onTouchStart(t),e.cancel(t)}),T(t,"touchmove",function(t){if(!e.mouseEvents)return e.viewport.onTouchMove(t),e.cancel(t)})},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.handler=function(){},this.write=function(){},this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},t.prototype.refresh=function(e,t){this.renderer&&this.renderer.refreshRows(e,t)},t.prototype._queueLinkification=function(e,t){this.linkifier&&this.linkifier.linkifyRows(e,t)},t.prototype.showCursor=function(){this.cursorState||(this.cursorState=1,this.refresh(this.buffer.y,this.buffer.y))},t.prototype.scroll=function(e){var t=this.blankLine(void 0,e),n=this.buffer.ybase+this.buffer.scrollTop,i=this.buffer.ybase+this.buffer.scrollBottom;if(0===this.buffer.scrollTop){var r=this.buffer.lines.length===this.buffer.lines.maxLength;i===this.buffer.lines.length-1?this.buffer.lines.push(t):this.buffer.lines.splice(i+1,0,t),r?this._userScrolling&&(this.buffer.ydisp=Math.max(this.buffer.ydisp-1,0)):(this.buffer.ybase++,this._userScrolling||this.buffer.ydisp++)}else{var o=i-n+1;this.buffer.lines.shiftElements(n+1,o-1,-1),this.buffer.lines.set(i,t)}this._userScrolling||(this.buffer.ydisp=this.buffer.ybase),this.updateRange(this.buffer.scrollTop),this.updateRange(this.buffer.scrollBottom),this.emit("scroll",this.buffer.ydisp)},t.prototype.scrollLines=function(e,t){if(e<0){if(0===this.buffer.ydisp)return;this._userScrolling=!0}else e+this.buffer.ydisp>=this.buffer.ybase&&(this._userScrolling=!1);var n=this.buffer.ydisp;this.buffer.ydisp=Math.max(Math.min(this.buffer.ydisp+e,this.buffer.ybase),0),n!==this.buffer.ydisp&&(t||this.emit("scroll",this.buffer.ydisp),this.refresh(0,this.rows-1))},t.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},t.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},t.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},t.prototype.scrollToLine=function(e){var t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)},t.prototype.write=function(e){var t=this;e&&(this.writeBuffer.push(e),this.options.useFlowControl&&!this._xoffSentToCatchUp&&this.writeBuffer.length>=5&&(this.send(h.C0.DC3),this._xoffSentToCatchUp=!0),!this._writeInProgress&&this.writeBuffer.length>0&&(this._writeInProgress=!0,setTimeout(function(){t._innerWrite()})))},t.prototype._innerWrite=function(){for(var e=this,t=this.writeBuffer.splice(0,300);t.length>0;){var n=t.shift();this._xoffSentToCatchUp&&0===t.length&&0===this.writeBuffer.length&&(this.send(h.C0.DC1),this._xoffSentToCatchUp=!1),this._refreshStart=this.buffer.y,this._refreshEnd=this.buffer.y;var i=this._parser.parse(n);this._parser.setState(i),this.updateRange(this.buffer.y),this.refresh(this._refreshStart,this._refreshEnd)}this.writeBuffer.length>0?setTimeout(function(){return e._innerWrite()},0):this._writeInProgress=!1},t.prototype.writeln=function(e){this.write(e+"\r\n")},t.prototype.attachCustomKeyEventHandler=function(e){this._customKeyEventHandler=e},t.prototype.registerLinkMatcher=function(e,t,n){var i=this.linkifier.registerLinkMatcher(e,t,n);return this.refresh(0,this.rows-1),i},t.prototype.deregisterLinkMatcher=function(e){this.linkifier.deregisterLinkMatcher(e)&&this.refresh(0,this.rows-1)},Object.defineProperty(t.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!0,configurable:!0}),t.prototype.addMarker=function(e){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)},t.prototype.hasSelection=function(){return!!this.selectionManager&&this.selectionManager.hasSelection},t.prototype.getSelection=function(){return this.selectionManager?this.selectionManager.selectionText:""},t.prototype.clearSelection=function(){this.selectionManager&&this.selectionManager.clearSelection()},t.prototype.selectAll=function(){this.selectionManager&&this.selectionManager.selectAll()},t.prototype.selectLines=function(e,t){this.selectionManager&&this.selectionManager.selectLines(e,t)},t.prototype._keyDown=function(e){if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(!this._compositionHelper.keydown(e))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var t=this._evaluateKeyEscapeSequence(e);return t.scrollLines?(this.scrollLines(t.scrollLines),this.cancel(e,!0)):!!this._isThirdLevelShift(this.browser,e)||(t.cancel&&this.cancel(e,!0),!t.key||(this.emit("keydown",e),this.emit("key",t.key,e),this.showCursor(),this.handler(t.key),this.cancel(e,!0)))},t.prototype._isThirdLevelShift=function(e,t){var n=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isMSWindows&&t.altKey&&t.ctrlKey&&!t.metaKey;return"keypress"===t.type?n:n&&(!t.keyCode||t.keyCode>47)},t.prototype._evaluateKeyEscapeSequence=function(e){var t={cancel:!1,key:void 0,scrollLines:void 0},n=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?this.applicationCursor?t.key=h.C0.ESC+"OA":t.key=h.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?this.applicationCursor?t.key=h.C0.ESC+"OD":t.key=h.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?this.applicationCursor?t.key=h.C0.ESC+"OC":t.key=h.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(this.applicationCursor?t.key=h.C0.ESC+"OB":t.key=h.C0.ESC+"[B");break;case 8:if(e.shiftKey){t.key=h.C0.BS;break}if(e.altKey){t.key=h.C0.ESC+h.C0.DEL;break}t.key=h.C0.DEL;break;case 9:if(e.shiftKey){t.key=h.C0.ESC+"[Z";break}t.key=h.C0.HT,t.cancel=!0;break;case 13:t.key=h.C0.CR,t.cancel=!0;break;case 27:t.key=h.C0.ESC,t.cancel=!0;break;case 37:n?(t.key=h.C0.ESC+"[1;"+(n+1)+"D",t.key===h.C0.ESC+"[1;3D"&&(t.key=this.browser.isMac?h.C0.ESC+"b":h.C0.ESC+"[1;5D")):this.applicationCursor?t.key=h.C0.ESC+"OD":t.key=h.C0.ESC+"[D";break;case 39:n?(t.key=h.C0.ESC+"[1;"+(n+1)+"C",t.key===h.C0.ESC+"[1;3C"&&(t.key=this.browser.isMac?h.C0.ESC+"f":h.C0.ESC+"[1;5C")):this.applicationCursor?t.key=h.C0.ESC+"OC":t.key=h.C0.ESC+"[C";break;case 38:n?(t.key=h.C0.ESC+"[1;"+(n+1)+"A",t.key===h.C0.ESC+"[1;3A"&&(t.key=h.C0.ESC+"[1;5A")):this.applicationCursor?t.key=h.C0.ESC+"OA":t.key=h.C0.ESC+"[A";break;case 40:n?(t.key=h.C0.ESC+"[1;"+(n+1)+"B",t.key===h.C0.ESC+"[1;3B"&&(t.key=h.C0.ESC+"[1;5B")):this.applicationCursor?t.key=h.C0.ESC+"OB":t.key=h.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(t.key=h.C0.ESC+"[2~");break;case 46:t.key=n?h.C0.ESC+"[3;"+(n+1)+"~":h.C0.ESC+"[3~";break;case 36:n?t.key=h.C0.ESC+"[1;"+(n+1)+"H":this.applicationCursor?t.key=h.C0.ESC+"OH":t.key=h.C0.ESC+"[H";break;case 35:n?t.key=h.C0.ESC+"[1;"+(n+1)+"F":this.applicationCursor?t.key=h.C0.ESC+"OF":t.key=h.C0.ESC+"[F";break;case 33:e.shiftKey?t.scrollLines=-(this.rows-1):t.key=h.C0.ESC+"[5~";break;case 34:e.shiftKey?t.scrollLines=this.rows-1:t.key=h.C0.ESC+"[6~";break;case 112:t.key=n?h.C0.ESC+"[1;"+(n+1)+"P":h.C0.ESC+"OP";break;case 113:t.key=n?h.C0.ESC+"[1;"+(n+1)+"Q":h.C0.ESC+"OQ";break;case 114:t.key=n?h.C0.ESC+"[1;"+(n+1)+"R":h.C0.ESC+"OR";break;case 115:t.key=n?h.C0.ESC+"[1;"+(n+1)+"S":h.C0.ESC+"OS";break;case 116:t.key=n?h.C0.ESC+"[15;"+(n+1)+"~":h.C0.ESC+"[15~";break;case 117:t.key=n?h.C0.ESC+"[17;"+(n+1)+"~":h.C0.ESC+"[17~";break;case 118:t.key=n?h.C0.ESC+"[18;"+(n+1)+"~":h.C0.ESC+"[18~";break;case 119:t.key=n?h.C0.ESC+"[19;"+(n+1)+"~":h.C0.ESC+"[19~";break;case 120:t.key=n?h.C0.ESC+"[20;"+(n+1)+"~":h.C0.ESC+"[20~";break;case 121:t.key=n?h.C0.ESC+"[21;"+(n+1)+"~":h.C0.ESC+"[21~";break;case 122:t.key=n?h.C0.ESC+"[23;"+(n+1)+"~":h.C0.ESC+"[23~";break;case 123:t.key=n?h.C0.ESC+"[24;"+(n+1)+"~":h.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(this.browser.isMac&&!this.options.macOptionIsMeta||!e.altKey||e.metaKey)this.browser.isMac&&!e.altKey&&!e.ctrlKey&&e.metaKey&&65===e.keyCode&&this.selectAll();else{var i=E[e.keyCode],r=i&&i[e.shiftKey?1:0];if(r)t.key=h.C0.ESC+r;else if(e.keyCode>=65&&e.keyCode<=90){var o=e.ctrlKey?e.keyCode-64:e.keyCode+32;t.key=h.C0.ESC+String.fromCharCode(o)}}else e.keyCode>=65&&e.keyCode<=90?t.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?t.key=String.fromCharCode(0):e.keyCode>=51&&e.keyCode<=55?t.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?t.key=String.fromCharCode(127):219===e.keyCode?t.key=String.fromCharCode(27):220===e.keyCode?t.key=String.fromCharCode(28):221===e.keyCode&&(t.key=String.fromCharCode(29))}return t},t.prototype.setgLevel=function(e){this.glevel=e,this.charset=this.charsets[e]},t.prototype.setgCharset=function(e,t){this.charsets[e]=t,this.glevel===e&&(this.charset=t)},t.prototype._keyPress=function(e){var t;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null==e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e))&&(t=String.fromCharCode(t),this.emit("keypress",t,e),this.emit("key",t,e),this.showCursor(),this.handler(t),!0)},t.prototype.send=function(e){var t=this;this._sendDataQueue||setTimeout(function(){t.handler(t._sendDataQueue),t._sendDataQueue=""},1),this._sendDataQueue+=e},t.prototype.bell=function(){var e=this;this.emit("bell"),this._soundBell()&&this.soundManager.playBellSound(),this._visualBell()&&(this.element.classList.add("visual-bell-active"),clearTimeout(this._visualBellTimer),this._visualBellTimer=window.setTimeout(function(){e.element.classList.remove("visual-bell-active")},200))},t.prototype.log=function(e,t){this.options.debug&&this._context.console&&this._context.console.log&&this._context.console.log(e,t)},t.prototype.error=function(e,t){this.options.debug&&this._context.console&&this._context.console.error&&this._context.console.error(e,t)},t.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e!==this.cols||t!==this.rows?(e<1&&(e=1),t<1&&(t=1),this.buffers.resize(e,t),this.cols=e,this.rows=t,this.buffers.setupTabStops(this.cols),this.charMeasure&&this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this.emit("resize",{cols:e,rows:t})):this.charMeasure.width&&this.charMeasure.height||this.charMeasure.measure(this.options))},t.prototype.updateRange=function(e){e<this._refreshStart&&(this._refreshStart=e),e>this._refreshEnd&&(this._refreshEnd=e)},t.prototype.maxRange=function(){this._refreshStart=0,this._refreshEnd=this.rows-1},t.prototype.eraseRight=function(e,t){var n=this.buffer.lines.get(this.buffer.ybase+t);if(n){for(var i=[this.eraseAttr()," ",1,32];e<this.cols;e++)n[e]=i;this.updateRange(t)}},t.prototype.eraseLeft=function(e,t){var n=this.buffer.lines.get(this.buffer.ybase+t);if(n){var i=[this.eraseAttr()," ",1,32];for(e++;e--;)n[e]=i;this.updateRange(t)}},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e<this.rows;e++)this.buffer.lines.push(this.blankLine());this.refresh(0,this.rows-1),this.emit("scroll",this.buffer.ydisp)}},t.prototype.eraseLine=function(e){this.eraseRight(0,e)},t.prototype.blankLine=function(e,t,n){var i=[e?this.eraseAttr():this.defAttr," ",1,32],r=[];t&&(r.isWrapped=t),n=n||this.cols;for(var o=0;o<n;o++)r[o]=i;return r},t.prototype.ch=function(e){return e?[this.eraseAttr()," ",1,32]:[this.defAttr," ",1,32]},t.prototype.is=function(e){return 0===(this.options.termName+"").indexOf(e)},t.prototype.handler=function(e){this.options.disableStdin||(this.selectionManager&&this.selectionManager.hasSelection&&this.selectionManager.clearSelection(),this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),this.emit("data",e))},t.prototype.handleTitle=function(e){this.emit("title",e)},t.prototype.index=function(){this.buffer.y++,this.buffer.y>this.buffer.scrollBottom&&(this.buffer.y--,this.scroll()),this.buffer.x>=this.cols&&this.buffer.x--},t.prototype.reverseIndex=function(){if(this.buffer.y===this.buffer.scrollTop){var e=this.buffer.scrollBottom-this.buffer.scrollTop;this.buffer.lines.shiftElements(this.buffer.y+this.buffer.ybase,e,1),this.buffer.lines.set(this.buffer.y+this.buffer.ybase,this.blankLine(!0)),this.updateRange(this.buffer.scrollTop),this.updateRange(this.buffer.scrollBottom)}else this.buffer.y--},t.prototype.reset=function(){this.options.rows=this.rows,this.options.cols=this.cols;var e=this._customKeyEventHandler,t=this._inputHandler;this._setup(),this._customKeyEventHandler=e,this._inputHandler=t,this.refresh(0,this.rows-1),this.viewport&&this.viewport.syncScrollArea()},t.prototype.tabSet=function(){this.buffer.tabs[this.buffer.x]=!0},t.prototype.cancel=function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1},t.prototype.matchColor=function(e,t,n){return function(e,t,n){var i=e<<16|t<<8|n;if(null!=I[i])return I[i];for(var r,o,s=1/0,a=-1,l=0;l<k.DEFAULT_ANSI_COLORS.length;l++){if(r=k.DEFAULT_ANSI_COLORS[l].rgba,0===(o=P(e,t,n,r>>>24,r>>>16&255,r>>>8&255))){a=l;break}o<s&&(s=o,a=l)}return I[i]=a}(e,t,n)},t.prototype._visualBell=function(){return!1},t.prototype._soundBell=function(){return"sound"===this.options.bellStyle},t}(l.EventEmitter);t.Terminal=R;var T=function(e,t,n,i){Array.isArray(e)||(e=[e]),e.forEach(function(e){e.addEventListener(t,n,i||!1)})};function M(e,t,n,i){void 0===i&&(i=!1),e.removeEventListener(t,n,i)}var I={};function P(e,t,n,i,r,o){return Math.pow(30*(e-i),2)+Math.pow(59*(t-r),2)+Math.pow(11*(n-o),2)}},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=e.exports;Object.assign(r,n(34));var o=/\*\x18[AC]|\*\*\x18B/;function s(e,t){if(t<0)throw new r.Error("validation","“"+e+"” ("+t+") must be nonnegative.");if(t!==Math.floor(t))throw new r.Error("validation","“"+e+"” ("+t+") must be an integer.")}r.Validation={offer_parameters:function(e){if(!e.name)throw new r.Error("validation","Need “name”!");if("string"!=typeof e.name)throw new r.Error("validation","“name” ("+e.name+") must be a string!");if(e=Object.assign({},e),o.test(e.name)&&console.warn("The filename "+JSON.stringify(name)+" contains characters that look like a ZMODEM header. This could corrupt the ZMODEM session; consider renaming it so that the filename doesn’t contain control characters."),null!==e.serial&&void 0!==e.serial)throw new r.Error("validation","“serial” is meaningless.");if(e.serial=null,["size","mode","files_remaining","bytes_remaining"].forEach(function(t){var n;switch(i(e[t])){case"object":n=null===e[t];break;case"undefined":e[t]=null,n=!0;break;case"number":s(t,e[t]),n=!0}if(!n)throw new r.Error("validation","“"+t+"” ("+e[t]+") must be null, undefined, or a number.")}),"number"==typeof e.mode&&(e.mode|=32768),0===e.files_remaining)throw new r.Error("validation","“files_remaining”, if given, must be positive.");var t;switch(i(e.mtime)){case"object":if(t=!0,e.mtime instanceof Date){var n=e.mtime;if(e.mtime=Math.floor(n.getTime()/1e3),e.mtime<0)throw new r.Error("validation","“mtime” ("+n+") must not be earlier than 1970.")}else null!==e.mtime&&(t=!1);break;case"undefined":e.mtime=null,t=!0;break;case"number":s("mtime",e.mtime),t=!0}if(!t)throw new r.Error("validation","“mtime” ("+e.mtime+") must be null, undefined, a Date, or a number.");return e}}},function(e,t,n){"use strict";var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=e.exports;Object.assign(a,n(85),n(54),n(35),n(34));var l;a.Subpacket=function(){function e(t){s(this,e),this._payload=t}return i(e,[{key:"encode16",value:function(e){return this._encode(e,a.CRC.crc16)}},{key:"encode32",value:function(e){return this._encode(e,a.CRC.crc32)}},{key:"get_payload",value:function(){return this._payload}}],[{key:"build",value:function(e,t){var n=l[t];if(!n)throw"No subpacket type “"+t+"” is defined! Try one of: "+Object.keys(l).join(", ");return new n(e)}},{key:"parse16",value:function(t){return e._parse(t,2)}},{key:"parse32",value:function(t){return e._parse(t,4)}}]),i(e,[{key:"_encode",value:function(e,t){return e.encode(this._payload.slice(0)).concat([a.ZMLIB.ZDLE,this._frameend_num],e.encode(t(this._payload.concat(this._frameend_num))))}}],[{key:"_parse",value:function(e,t){for(var n,i,r={104:h,105:d,106:p,107:f},o=0;o<e.length;){if(-1===(o=e.indexOf(a.ZMLIB.ZDLE,o)))return;if(i=r[e[o+1]]){n=o+1;break}o++}if(i){var s=e[n];if(e[n-1]!==a.ZMLIB.ZDLE)throw"Byte before frame end should be ZDLE, not "+e[n-1];var l=e.splice(0,n-1),c=a.ZDLE.splice(e,2,t);if(c){var u=a.ZDLE.decode(l);return a.CRC[2===t?"verify16":"verify32"](u.concat([s]),c),new i(u,c)}e.unshift.apply(e,l)}}}]),e}();var c=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Subpacket),i(t,[{key:"frame_end",value:function(){return!0}}]),t}(),u=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Subpacket),i(t,[{key:"frame_end",value:function(){return!1}}]),t}(),h=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,c),i(t,[{key:"ack_expected",value:function(){return!1}}]),t}();h.prototype._frameend_num=104;var f=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,c),i(t,[{key:"ack_expected",value:function(){return!0}}]),t}();f.prototype._frameend_num=107;var d=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,u),i(t,[{key:"ack_expected",value:function(){return!1}}]),t}();d.prototype._frameend_num=105;var p=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,u),i(t,[{key:"ack_expected",value:function(){return!0}}]),t}();p.prototype._frameend_num=106,l={end_no_ack:h,end_ack:f,no_end_no_ack:d,no_end_ack:p}},function(e,t,n){var i;i=function(e){e.version="1.1.1";var t=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}();e.table=t,e.bstr=function(e,n){for(var i=-1^n,r=e.length-1,o=0;o<r;)i=(i=i>>>8^t[255&(i^e.charCodeAt(o++))])>>>8^t[255&(i^e.charCodeAt(o++))];return o===r&&(i=i>>>8^t[255&(i^e.charCodeAt(o))]),-1^i},e.buf=function(e,n){if(e.length>1e4)return function(e,n){for(var i=-1^n,r=e.length-7,o=0;o<r;)i=(i=(i=(i=(i=(i=(i=(i=i>>>8^t[255&(i^e[o++])])>>>8^t[255&(i^e[o++])])>>>8^t[255&(i^e[o++])])>>>8^t[255&(i^e[o++])])>>>8^t[255&(i^e[o++])])>>>8^t[255&(i^e[o++])])>>>8^t[255&(i^e[o++])])>>>8^t[255&(i^e[o++])];for(;o<r+7;)i=i>>>8^t[255&(i^e[o++])];return-1^i}(e,n);for(var i=-1^n,r=e.length-3,o=0;o<r;)i=(i=(i=(i=i>>>8^t[255&(i^e[o++])])>>>8^t[255&(i^e[o++])])>>>8^t[255&(i^e[o++])])>>>8^t[255&(i^e[o++])];for(;o<r+3;)i=i>>>8^t[255&(i^e[o++])];return-1^i},e.str=function(e,n){for(var i,r,o=-1^n,s=0,a=e.length;s<a;)(i=e.charCodeAt(s++))<128?o=o>>>8^t[255&(o^i)]:i<2048?o=(o=o>>>8^t[255&(o^(192|i>>6&31))])>>>8^t[255&(o^(128|63&i))]:i>=55296&&i<57344?(i=64+(1023&i),r=1023&e.charCodeAt(s++),o=(o=(o=(o=o>>>8^t[255&(o^(240|i>>8&7))])>>>8^t[255&(o^(128|i>>2&63))])>>>8^t[255&(o^(128|r>>6&15|(3&i)<<4))])>>>8^t[255&(o^(128|63&r))]):o=(o=(o=o>>>8^t[255&(o^(224|i>>12&15))])>>>8^t[255&(o^(128|i>>6&63))])>>>8^t[255&(o^(128|63&i))];return-1^o}},"undefined"==typeof DO_NOT_EXPORT_CRC?i(t):i({})},function(e,t,n){"use strict";var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=e.exports;Object.assign(a,n(55),n(54),n(35),n(85),n(34));var l="*".charCodeAt(0),c="A".charCodeAt(0),u="B".charCodeAt(0),h="C".charCodeAt(0),f=[13,10],d=f.slice(0).concat([a.ZMLIB.XON]),p=[l,l,a.ZMLIB.ZDLE,u],_=[l,a.ZMLIB.ZDLE,c],m=[l,a.ZMLIB.ZDLE,h];a.Header=function(){function e(){s(this,e),this._bytes4||(this._bytes4=[0,0,0,0])}return i(e,[{key:"to_hex",value:function(){var e=this._crc_bytes();return p.concat(a.ENCODELIB.octets_to_hex(e.concat(a.CRC.crc16(e))),this._hex_header_ending)}},{key:"to_binary16",value:function(e){return this._to_binary(e,_,a.CRC.crc16)}},{key:"to_binary32",value:function(e){return this._to_binary(e,m,a.CRC.crc32)}}],[{key:"trim_leading_garbage",value:function(e){var t,n,i=[];e:for(;e.length&&!n;){var r=e.indexOf(l);if(-1===r){t=!0;break e}if(i.push.apply(i,e.splice(0,r)),e.length<2)break e;if(e[1]===l)if(e.length<p.length){if(e.join()===p.slice(0,e.length).join())break e}else e[2]===p[2]&&e[3]===p[3]&&(n=W);else if(e[1]===a.ZMLIB.ZDLE){if(e.length<_.length)break e;e[2]===_[2]?n=j:e[2]===m[2]&&(n=z)}n||i.push(e.shift())}return t&&i.push.apply(i,e.splice(0)),i}},{key:"parse",value:function(e){var t;if(e[1]===l)return(t=W(e))&&[t,16];if(e[2]===c)return(t=j(e))&&[t,16];if(e[2]===h)return(t=z(e))&&[t,32];if(!(e.length<3))throw"Unrecognized/unsupported octets: "+e.join()}},{key:"build",value:function(e){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments),n=D[e];if(!n)throw"No frame class “"+e+"” is defined!";return t.shift(),new(n.bind.apply(n,[null].concat(t)))}}]),i(e,[{key:"_to_binary",value:function(e,t,n){var i=this._crc_bytes();return t.concat(e.encode(i.concat(n(i))))}},{key:"_crc_bytes",value:function(){return[this.TYPENUM].concat(this._bytes4)}}]),e}(),a.Header.prototype._hex_header_ending=d;var b=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Header),t}(),g={CANFDX:1,CANOVIO:2,CANBRK:4,CANCRY:8,CANLZW:16,CANFC32:32,ESCCTL:64,ESC8:128};var v=function(e){function t(e,n){s(this,t);var i=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),o=0;return n||(n=0),e.forEach(function(e){o|=function(e){if(!g[e])throw new a.Error("Invalid ZRINIT flag: "+e);return g[e]}(e)}),i._bytes4=[255&n,n>>8,0,o],i}return o(t,a.Header),i(t,[{key:"get_buffer_size",value:function(){return a.ENCODELIB.unpack_u16_be(this._bytes4.slice(0,2))||void 0}},{key:"can_full_duplex",value:function(){return!!(this._bytes4[3]&g.CANFDX)}},{key:"can_overlap_io",value:function(){return!!(this._bytes4[3]&g.CANOVIO)}},{key:"can_break",value:function(){return!!(this._bytes4[3]&g.CANBRK)}},{key:"can_fcs_32",value:function(){return!!(this._bytes4[3]&g.CANFC32)}},{key:"escape_ctrl_chars",value:function(){return!!(this._bytes4[3]&g.ESCCTL)}},{key:"escape_8th_bit",value:function(){return!!(this._bytes4[3]&g.ESC8)}}]),t}(),y={ESCCTL:64,ESC8:128};var w=function(e){function t(e,n){s(this,t);var i=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),o=0;if(e.forEach(function(e){o|=function(e){if(!y[e])throw"Invalid ZSINIT flag: "+e;return y[e]}(e)}),i._bytes4=[0,0,0,o],n){if(n.length>31)throw"Attn sequence must be <= 31 bytes";if(n.some(function(e){return e>255}))throw"Attn sequence ("+n+") must be <256";i._data=n.concat([0])}return i}return o(t,a.Header),i(t,[{key:"escape_ctrl_chars",value:function(){return!!(this._bytes4[3]&y.ESCCTL)}},{key:"escape_8th_bit",value:function(){return!!(this._bytes4[3]&y.ESC8)}}]),t}(),x=function(e){function t(e){s(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e&&(n._bytes4=e.slice()),n}return o(t,a.Header),t}();x.prototype._hex_header_ending=f;var k={extended:{sparse:64},transport:[void 0,"compress","encrypt","rle"],management:[void 0,"newer_or_longer","crc","append","clobber","newer","mtime_or_length","protect","rename"],conversion:[void 0,"binary","text","resume"]},C=["extended","transport","management","conversion"],S=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Header),i(t,[{key:"get_options",value:function(){var e={sparse:!!(64&this._bytes4[0])},t=this._bytes4.slice(0);return C.forEach(function(n,i){if(k[n]instanceof Array)"management"===n&&(e.skip_if_absent=!!(128&t[i]),t[i]&=31),e[n]=k[n][t[i]];else for(var r in k[n])e[r]=!!(t[i]&k[n][r]),e[r]&&(t[i]^=k[n][r]);!e[n]&&t[i]&&(e[n]="unknown:"+t[i])}),e}}]),t}(),A=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Header),t}(),E=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Header),t}(),O=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Header),t}(),L=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Header),t}();O.prototype._hex_header_ending=f;for(var R=function(e){function t(e){s(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._bytes4=a.ENCODELIB.pack_u32_le(e),n}return o(t,a.Header),i(t,[{key:"get_offset",value:function(){return a.ENCODELIB.unpack_u32_le(this._bytes4)}}]),t}(),T=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,R),t}(),M=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,R),t}(),I=function(e){function t(){return s(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,R),t}(),P=[[b,"ZRQINIT"],[v,"ZRINIT"],[w,"ZSINIT"],[x,"ZACK"],[S,"ZFILE"],[A,"ZSKIP"],void 0,[E,"ZABORT"],[O,"ZFIN"],[T,"ZRPOS"],[M,"ZDATA"],[I,"ZEOF"],[L,"ZFERR"],void 0,void 0,void 0,void 0,void 0,void 0,void 0],D={},N=0;N<P.length;N++)P[N]&&(D[P[N][1]]=P[N][0],Object.assign(P[N][0].prototype,{TYPENUM:N,NAME:P[N][1]}));var B=[b,v,w,x,S,A,"ZNAK",E,O,T,M,I,L,"ZCRC","ZCHALLENGE","ZCOMPL","ZCAN","ZFREECNT","ZCOMMAND","ZSTDERR"];function H(e){var t=B[e];if("string"==typeof t)throw"Received unsupported header: "+t;return function(e){if(e.prototype instanceof R)return new e(0);return new e([])}(t)}function j(e){var t=a.ZDLE.splice(e,_.length,7);return t&&F(t)}function F(e){a.CRC.verify16(e.slice(0,5),e.slice(5));var t=H(e[0]);return t._bytes4=e.slice(1,5),t}function z(e){var t=a.ZDLE.splice(e,m.length,9);if(t){a.CRC.verify32(t.slice(0,5),t.slice(5));var n=H(t[0]);return n._bytes4=t.slice(1,5),n}}function W(e){var t,n,i=e.indexOf(138);if(-1===i&&(i=e.indexOf(10)),-1!==i){if(n=e.splice(0,i),e.shift(),19===n.length){var r=n.pop();13!==r&&141!==r&&(t="Invalid hex header: (CR/)LF doesn’t have CR!")}else 18!==n.length&&(t="Invalid hex header: invalid number of bytes before LF!");if(t)throw t+=" ("+n.length+" bytes: "+n.join()+")";return n.splice(0,4),F(a.ENCODELIB.parse_hex_octets(n))}e.length>11&&(t="Invalid hex header - no LF detected within 12 bytes!")}a.Header.parse_hex=W},function(e,t,n){"use strict";var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){r(this,e)}return i(e,[{key:"encode",value:function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return new Uint8Array(t)}}]),e}(),s=function(){function e(){r(this,e)}return i(e,[{key:"decode",value:function(e){return decodeURIComponent(escape(String.fromCharCode.apply(String,e)))}}]),e}();e.exports.Text={Encoder:"undefined"!=typeof TextEncoder?TextEncoder:o,Decoder:"undefined"!=typeof TextDecoder?TextDecoder:s}},function(e,t,n){"use strict";var i=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=e.exports;Object.assign(l,n(55),n(139),n(54),n(35),n(138),n(136),n(135),n(34));var c=["CANFDX","CANOVIO","CANFC32"],u=[79,79],h=l.ZMLIB.ABORT_SEQUENCE,f=function(){function e(){a(this,e),this._on_evt={},this._evt_once_index={}}return r(e,[{key:"_Add_event",value:function(e){this._on_evt[e]=[],this._evt_once_index[e]=[]}},{key:"_get_evt_queue",value:function(e){if(!this._on_evt[e])throw"Bad event: "+e;return this._on_evt[e]}},{key:"on",value:function(e,t){return this._get_evt_queue(e).push(t),this}},{key:"off",value:function(e,t){var n=this._get_evt_queue(e);if(t){var i=n.indexOf(t);if(-1===i)throw"“"+t+"” is not in the “"+e+"” queue.";n.splice(i,1)}else n.pop();return this}},{key:"_Happen",value:function(e){var t=this._get_evt_queue(e),n=Array.apply(null,arguments);n.shift();var i=this;return t.forEach(function(e){e.apply(i,n)}),t.length}}]),e}();l.Session=function(e){function t(){a(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._config={},e._input_buffer=[],e._Add_event("receive"),e._Add_event("garbage"),e._Add_event("session_end"),e}return s(t,f),r(t,[{key:"set_sender",value:function(e){return this._sender=e,this}},{key:"has_ended",value:function(){return this._has_ended()}},{key:"consume",value:function(e){if(this._before_consume(e),this._aborted)throw new l.Error("already_aborted");e.length&&(this._strip_and_enqueue_input(e),this._check_for_abort_sequence(e)||this._consume_first())}},{key:"aborted",value:function(){return!!this._aborted}}],[{key:"parse",value:function(e){var t;try{t=l.Header.parse_hex(e)}catch(e){return}if(t)switch(t.NAME){case"ZRQINIT":return new l.Session.Receive;case"ZRINIT":return new l.Session.Send(t)}}}]),r(t,[{key:"get_role",value:function(){return this.type}},{key:"_trim_leading_garbage_until_header",value:function(){var e=l.Header.trim_leading_garbage(this._input_buffer);e.length&&0===this._Happen("garbage",e)&&console.debug("Garbage: ",String.fromCharCode.apply(String,e),e)}},{key:"_parse_and_consume_header",value:function(){this._trim_leading_garbage_until_header();var e=l.Header.parse(this._input_buffer);if(e)return this._consume_header(e[0]),this._last_header_name=e[0].NAME,this._last_header_crc=e[1],e[0]}},{key:"_consume_header",value:function(e){this._on_receive(e);var t=this._next_header_handler[e.NAME];if(!t)throw console.error("Unhandled header!",e,this._next_header_handler),new l.Error("Unhandled header: "+e.NAME);this._next_header_handler=null,t.call(this,e)}},{key:"_check_for_abort_sequence",value:function(){var e=l.ZMLIB.find_subarray(this._input_buffer,h);if(-1!==e)throw this._input_buffer.splice(0,e+h.length),this._aborted=!0,this._on_session_end(),new l.Error("peer_aborted")}},{key:"_send_header",value:function(e){if(!this._sender)throw"Need sender!";var t=Array.apply(null,arguments),n=this._create_header_bytes(t);this._sender(n[0]),this._last_sent_header=n[1]}},{key:"_create_header_bytes",value:function(e){var t=l.Header.build.apply(l.Header,e);return[t[this._get_header_formatter(e[0])](this._zencoder),t]}},{key:"_strip_and_enqueue_input",value:function(e){l.ZMLIB.strip_ignored_bytes(e),this._input_buffer.push.apply(this._input_buffer,e)}},{key:"abort",value:function(){this._sender(h.concat([8,8,8,8,8])),this._aborted=!0,this._sender=function(){throw new l.Error("already_aborted")},this._on_session_end()}},{key:"_on_session_end",value:function(){this._Happen("session_end")}},{key:"_on_receive",value:function(e){this._Happen("receive",e)}},{key:"_before_consume",value:function(){}}]),t}(),l.Session.Receive=function(e){function t(){a(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._Add_event("offer"),e._Add_event("data_in"),e._Add_event("file_end"),e}return s(t,l.Session),r(t,[{key:"_before_consume",value:function(e){if(this._bytes_after_OO)throw"PROTOCOL: Session is completed!";this._bytes_being_consumed=e}},{key:"get_trailing_bytes",value:function(){if(this._aborted)return[];if(!this._bytes_after_OO)throw"PROTOCOL: Session is not completed!";return this._bytes_after_OO.slice(0)}},{key:"_has_ended",value:function(){return this.aborted()||!!this._bytes_after_OO}},{key:"_get_header_formatter",value:function(){return"to_hex"}},{key:"_parse_and_consume_subpacket",value:function(){var e;e=16===this._last_header_crc?"parse16":"parse32";var t=l.Subpacket[e](this._input_buffer);return t&&(this._consume_data(t),t.frame_end()&&(this._next_subpacket_handler=null)),t}},{key:"_consume_first",value:function(){if(this._got_ZFIN){if(this._input_buffer.length<2)return;if(0===l.ZMLIB.find_subarray(this._input_buffer,u))return this._bytes_after_OO=(e=this._bytes_being_consumed.slice(0),0===l.ZMLIB.find_subarray(e,u)?e.splice(0,u.length):e[0]===u[u.length-1]&&e.splice(0,1),e),void this._on_session_end();throw"PROTOCOL: Only thing after ZFIN should be “OO” (79,79), not: "+array_buf.join()}var e,t;do{t=this._next_subpacket_handler?this._parse_and_consume_subpacket():this._parse_and_consume_header()}while(t&&this._input_buffer.length)}},{key:"_consume_data",value:function(e){if(this._on_receive(e),!this._next_subpacket_handler)throw"PROTOCOL: Received unexpected data packet after "+this._last_header_name+" header: "+e.get_payload().join();this._next_subpacket_handler.call(this,e)}},{key:"_octets_to_string",value:function(e){return this._textdecoder||(this._textdecoder=new l.Text.Decoder),this._textdecoder.decode(new Uint8Array(e))}},{key:"_consume_ZFILE_data",value:function(e,t){if(this._file_info)throw"PROTOCOL: second ZFILE data subpacket received";var n=t.get_payload(),i=n.indexOf(0),r=this._octets_to_string(n.slice(0,i)),o=this._octets_to_string(n.slice(1+i)).split(" "),s=o[1]&&parseInt(o[1],8)||void 0;s&&(s=new Date(1e3*s)),this._file_info={name:r,size:o[0]?parseInt(o[0],10):null,mtime:s||null,mode:o[2]&&parseInt(o[2],8)||null,serial:o[3]&&parseInt(o[3],10)||null,files_remaining:o[4]?parseInt(o[4],10):null,bytes_remaining:o[5]?parseInt(o[5],10):null};var a=new _(e.get_options(),this._file_info,this._accept.bind(this),this._skip.bind(this));this._current_transfer=a}},{key:"_consume_ZDATA_data",value:function(e){if(!this._accepted_offer)throw"PROTOCOL: Received data without accepting!";if(!this._offset_ok)return console.warn("offset not ok!"),void _send_ZRPOS();this._file_offset+=e.get_payload().length,this._on_data_in(e),e.ack_expected()&&!e.frame_end()&&this._send_header("ZACK",l.ENCODELIB.pack_u32_le(this._file_offset))}},{key:"_make_promise_for_between_files",value:function(){var e=this;return new Promise(function(t){var n={ZFILE:function(e){this._next_subpacket_handler=function(n){this._next_subpacket_handler=null,this._consume_ZFILE_data(e,n),this._Happen("offer",this._current_transfer),t(this._current_transfer)}},ZSINIT:function(t){e._next_subpacket_handler=function(t){e._next_subpacket_handler=null,e._consume_ZSINIT_data(t),e._send_header("ZACK"),e._next_header_handler=n}},ZFIN:function(){this._consume_ZFIN(),t()}};e._next_header_handler=n})}},{key:"_consume_ZSINIT_data",value:function(e){this._attn=e.get_payload()}},{key:"start",value:function(){if(this._started)throw"Already started!";this._started=!0;var e=this._make_promise_for_between_files();return this._send_ZRINIT(),e}},{key:"_accept",value:function(e){this._accepted_offer=!0,this._file_offset=e||0;var t=this,n=new Promise(function(e){t._next_header_handler={ZDATA:function(t){this._consume_ZDATA(t),this._next_subpacket_handler=this._consume_ZDATA_data,this._next_header_handler={ZEOF:function(t){this._next_subpacket_handler=null,this._consume_ZEOF(t);var n=this._make_promise_for_between_files();e(n)}}}}});return this._send_ZRPOS(),n}},{key:"_skip",value:function(){var e=this._make_promise_for_between_files();if(this._accepted_offer){var t=function(){this._accepted_offer=!1,this._next_subpacket_handler=null,this._make_promise_for_between_files()}.bind(this);Object.assign(this._next_header_handler,{ZEOF:t,ZDATA:function(){t(),this._next_header_handler.ZEOF=t}.bind(this)})}return this._file_info=null,this._send_header("ZSKIP"),e}},{key:"_send_ZRINIT",value:function(){this._send_header("ZRINIT",c)}},{key:"_consume_ZFIN",value:function(){this._got_ZFIN=!0,this._send_header("ZFIN")}},{key:"_consume_ZEOF",value:function(e){if(this._file_offset!==e.get_offset())throw"ZEOF offset mismatch; unimplemented (local: "+this._file_offset+"; ZEOF: "+e.get_offset()+")";this._send_ZRINIT(),this._on_file_end(),this._file_info=null,this._current_transfer=null}},{key:"_consume_ZDATA",value:function(e){if(this._file_offset!==e.get_offset())throw"Error correction is unimplemented.";this._offset_ok=!0}},{key:"_send_ZRPOS",value:function(){this._send_header("ZRPOS",this._file_offset)}},{key:"_on_file_end",value:function(){this._Happen("file_end"),this._current_transfer&&(this._current_transfer._Happen("complete"),this._current_transfer=null)}},{key:"_on_data_in",value:function(e){this._Happen("data_in",e),this._current_transfer&&this._current_transfer._Happen("input",e.get_payload())}}]),t}(),Object.assign(l.Session.Receive.prototype,{type:"receive"});var d={get_details:function(){return Object.assign({},this._file_info)},get_options:function(){return Object.assign({},this._zfile_opts)},get_offset:function(){return this._file_offset}},p=function(){function e(t,n,i,r){a(this,e),this._file_info=t,this._file_offset=n||0,this._send=i,this._end=r}return r(e,[{key:"send",value:function(e){this._send(e),this._file_offset+=e.length}},{key:"end",value:function(e){var t=this._end(e||[]);return e&&(this._file_offset+=e.length),t}}]),e}();Object.assign(p.prototype,d);var _=function(e){function t(e,n,i,r){a(this,t);var s=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return s._zfile_opts=e,s._file_info=n,s._accept_func=i,s._skip_func=r,s._Add_event("input"),s._Add_event("complete"),s.on("input",s._input_handler),s}return s(t,f),r(t,[{key:"_verify_not_skipped",value:function(){if(this._skipped)throw new l.Error("Already skipped!")}},{key:"skip",value:function(){return this._verify_not_skipped(),this._skipped=!0,this._skip_func.apply(this,arguments)}},{key:"accept",value:function(e){if(this._verify_not_skipped(),this._accepted)throw new l.Error("Already accepted!");switch(this._accepted=!0,e||(e={}),this._file_offset=e.offset||0,e.on_input){case null:case void 0:case"spool_array":case"spool_uint8array":this._spool=[];break;default:if("function"!=typeof e.on_input)throw"Invalid “on_input”: "+e.on_input}return this._input_handler_mode=e.on_input||"spool_uint8array",this._accept_func(this._file_offset).then(this._get_spool.bind(this))}},{key:"_input_handler",value:function(e){if(this._file_offset+=e.length,"function"==typeof this._input_handler_mode)this._input_handler_mode(e);else{if("spool_uint8array"===this._input_handler_mode)e=new Uint8Array(e);else if("spool_array"!==this._input_handler_mode)throw new l.Error("WTF?? _input_handler_mode = "+this._input_handler_mode);this._spool.push(e)}}},{key:"_get_spool",value:function(){return this._spool}}]),t}();Object.assign(_.prototype,d);var m={ZFILE:!0,ZDATA:!0};l.Session.Send=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(!e)throw"Need first header!";if("ZRINIT"!==e.NAME)throw"First header should be ZRINIT, not "+e.NAME;n._last_header_name="ZRINIT",n._subpacket_encode_func="encode16",n._zencoder=new l.ZDLE,n._consume_ZRINIT(e),n._file_offset=0;return n._start_keepalive_on_set_sender=!0,n}return s(t,l.Session),r(t,[{key:"set_sender",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set_sender",this).call(this,e),this._start_keepalive_on_set_sender&&(this._start_keepalive_on_set_sender=!1,this._start_keepalive()),this}},{key:"_get_header_formatter",value:function(e){return m[e]?"to_binary16":"to_hex"}},{key:"_start_keepalive",value:function(){if(!this._keepalive_promise){var e=this;this._keepalive_promise=new Promise(function(t){e._keepalive_timeout=setTimeout(t,5e3)}).then(function(){e._next_header_handler={ZACK:function(){e._got_ZSINIT_ZACK=!0}},e._send_ZSINIT(),e._keepalive_promise=null,e._start_keepalive()})}}},{key:"_stop_keepalive",value:function(){this._keepalive_promise&&(clearTimeout(this._keepalive_timeout),this._keep_alive_promise=null)}},{key:"_send_ZSINIT",value:function(){var e=[];this._zencoder.escapes_ctrl_chars()&&e.push("ESCCTL"),this._send_header_and_data(["ZSINIT",e],[0],"end_ack")}},{key:"_consume_ZRINIT",value:function(e){if(this._last_ZRINIT=e,e.get_buffer_size())throw"Buffer size ("+e.get_buffer_size()+") is unsupported!";if(!e.can_full_duplex())throw"Half-duplex I/O is unsupported!";if(!e.can_overlap_io())throw"Non-overlap I/O is unsupported!";if(e.escape_8th_bit())throw"8-bit escaping is unsupported!";this._zencoder.set_escape_ctrl_chars(!0),e.escape_ctrl_chars()||console.debug("Peer didn’t request escape of all control characters. Will send ZSINIT to force recognition of escaped control characters.")}},{key:"_ensure_receiver_escapes_ctrl_chars",value:function(){var e;if(!this._last_ZRINIT.escape_ctrl_chars()&&!this._got_ZSINIT_ZACK){var t=this;e=new Promise(function(e){t._next_header_handler={ZACK:function(t){e()}},t._send_ZSINIT()})}else e=Promise.resolve();return e}},{key:"_convert_params_to_offer_payload_array",value:function(e){var t=(e=l.Validation.offer_parameters(e)).name+"\0",n=[(e.size||0).toString(10),e.mtime?e.mtime.toString(8):"0",e.mode?(32768|e.mode).toString(8):"0","0"];return e.files_remaining&&(n.push(e.files_remaining),e.bytes_remaining&&n.push(e.bytes_remaining)),t+=n.join(" "),this._string_to_octets(t)}},{key:"send_offer",value:function(e){if(!e)throw"need file params!";if(this._sending_file)throw"Already sending file!";var t=this._convert_params_to_offer_payload_array(e);this._stop_keepalive();var n=this,i=function(){var i=new Promise(function(t){n._next_header_handler={ZSKIP:function(){n._start_keepalive(),t()},ZRPOS:function(i){n._sending_file=!0,t(new p(e,i.get_offset(),n._send_interim_file_piece.bind(n),n._end_file.bind(n)))}}});return n._send_header_and_data(["ZFILE"],t,"end_ack"),delete n._sent_ZDATA,i};return this._ensure_receiver_escapes_ctrl_chars().then(i)}},{key:"_send_header_and_data",value:function(e,t,n){var i=this._create_header_bytes(e),r=this._build_subpacket_bytes(t,n);i[0].push.apply(i[0],r),this._sender(i[0]),this._last_sent_header=i[1]}},{key:"_build_subpacket_bytes",value:function(e,t){return l.Subpacket.build(e,t)[this._subpacket_encode_func](this._zencoder)}},{key:"_build_and_send_subpacket",value:function(e,t){this._sender(this._build_subpacket_bytes(e,t))}},{key:"_string_to_octets",value:function(e){this._textencoder||(this._textencoder=new l.Text.Encoder);var t=this._textencoder.encode(e);return Array.prototype.slice.call(t)}},{key:"_send_interim_file_piece",value:function(e){return this._send_file_part(e,"no_end_no_ack"),Promise.resolve()}},{key:"_ensure_we_are_sending",value:function(){if(!this._sending_file)throw"Not sending a file currently!"}},{key:"_end_file",value:function(e){this._ensure_we_are_sending(),this._send_file_part(e,"end_no_ack");var t=this,n=new Promise(function(e){t._sending_file=!1,t._prepare_to_receive_ZRINIT(e)});return this._send_header("ZEOF",this._file_offset),this._file_offset=0,n}},{key:"_prepare_to_receive_ZRINIT",value:function(e){this._next_header_handler={ZRINIT:function(t){this._consume_ZRINIT(t),e&&e()}}}},{key:"close",value:function(){var e="ZRINIT"===this._last_header_name;if(e||(e="ZSKIP"===this._last_header_name),e||(e="ZSINIT"===this._last_sent_header.name&&"ZACK"===this._last_header_name),!e)throw"Can’t close; last received header was “"+this._last_header_name+"”";var t=this,n=new Promise(function(e,n){t._next_header_handler={ZFIN:function(){t._sender(u),t._sent_OO=!0,t._on_session_end(),e()}}});return this._send_header("ZFIN"),n}},{key:"_has_ended",value:function(){return this.aborted()||!!this._sent_OO}},{key:"_send_file_part",value:function(e,t){this._sent_ZDATA||(this._send_header("ZDATA",this._file_offset),this._sent_ZDATA=!0);for(var n=0,i=e.length;;){var r=Math.min(n+8192,i)-n,o=r+n>=i,s=e.slice(n,n+r);if(s instanceof Array||(s=Array.prototype.slice.call(s)),this._build_and_send_subpacket(s,o?t:"no_end_no_ack"),this._file_offset+=r,(n+=r)>=i)break}}},{key:"_consume_first",value:function(){if(!this._parse_and_consume_header()&&"67"===this._input_buffer.join())throw"Receiver has fallen back to YMODEM."}},{key:"_on_session_end",value:function(){this._stop_keepalive(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_on_session_end",this).call(this)}}]),t}(),Object.assign(l.Session.Send.prototype,{type:"send"})},function(e,t,n){"use strict";var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=e.exports;Object.assign(o,n(35),n(140));var s=[42,42,24,66,48],a=["to_terminal","on_detect","on_retract","sender"],l=function(){function e(t,n,i,o){r(this,e),this._confirmer=n,this._denier=i,this._is_valid=o,this._session_type=t}return i(e,[{key:"confirm",value:function(){return this._confirmer.apply(this,arguments)}},{key:"deny",value:function(){return this._denier.apply(this,arguments)}},{key:"is_valid",value:function(){return this._is_valid.apply(this,arguments)}},{key:"get_session_role",value:function(){return this._session_type}}]),e}();o.Sentry=function(){function e(t){if(r(this,e),!t)throw"Need options!";var n=this;a.forEach(function(e){if(!t[e])throw"Need “"+e+"”!";n["_"+e]=t[e]}),this._cache=[]}return i(e,[{key:"_after_session_end",value:function(){this._zsession=null}},{key:"consume",value:function(e){if(e instanceof Array||(e=Array.prototype.slice.call(new Uint8Array(e))),this._zsession){var t=this._zsession;if(t.consume(e),!t.has_ended())return;e="receive"===t.type?t.get_trailing_bytes():[]}var n=this._parse(e),i=e;if(n){!!this._parsed_session&&(this._parsed_session.type===n.type&&(i=[]),this._on_retract()),this._parsed_session=n;var r=this;this._on_detect(new l(n.type,function(){if(!this.is_valid())throw"Stale ZMODEM session!";return n.on("garbage",r._to_terminal),n.on("session_end",r._after_session_end.bind(r)),n.set_sender(r._sender),delete r._parsed_session,r._zsession=n},this._send_abort.bind(this),function(){return r._parsed_session===n}))}else{var o=this._parsed_session;this._parsed_session=null,o&&(1===i.length&&67===i[0]&&this._send_abort(),this._on_retract())}this._to_terminal(i)}},{key:"get_confirmed_session",value:function(){return this._zsession||null}},{key:"_send_abort",value:function(){this._sender(o.ZMLIB.ABORT_SEQUENCE)}},{key:"_parse",value:function(e){var t=this._cache;for(t.push.apply(t,e);;){var n=o.ZMLIB.find_subarray(t,s);if(-1===n)break;t.splice(0,n);var i=void 0;try{i=o.Session.parse(t)}catch(e){}if(!i)break;return 1===t.length&&t[0]===o.ZMLIB.XON&&t.shift(),t.length?null:i}return t.splice(21),null}}]),e}()},function(e,t,n){"use strict";Object.assign(e.exports,n(141))},function(e,t,n){"use strict";var i=e.exports;function r(e){if(e.aborted())throw new i.Error("aborted")}window.Zmodem=i,Object.assign(i,n(142)),i.Browser={send_files:function(e,t,n){n||(n={});for(var i=[],o=0,s=t.length-1;s>=0;s--){var a=t[s];o+=a.size,i[s]={obj:a,name:a.name,size:a.size,mtime:new Date(a.lastModified),files_remaining:t.length-s,bytes_remaining:o}}var l=0;return function t(){var o=i[l];return o?(l++,e.send_offer(o).then(function(i){return n.on_offer_response&&n.on_offer_response(o.obj,i),void 0===i?t():new Promise(function(s){var a,l=new FileReader;l.onerror=function(e){throw console.error("file read error",e),"File read error: "+e},l.onprogress=function(t){t.target.result&&(a=new Uint8Array(t.target.result,i.get_offset()),r(e),i.send(a),n.on_progress&&n.on_progress(o.obj,i,a))},l.onload=function(l){a=new Uint8Array(l.target.result,i,a),r(e),i.end(a).then(function(){n.on_progress&&a.length&&n.on_progress(o.obj,i,a),n.on_file_complete&&n.on_file_complete(o.obj,i),s(t())})},l.readAsArrayBuffer(o.obj)})})):Promise.resolve()}()},save_to_disk:function(e,t){var n=new Blob(e),i=URL.createObjectURL(n),r=document.createElement("a");r.style.display="none",r.href=i,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(e){!function(e){function t(e){if("utf-8"!==(e=void 0===e?"utf-8":e))throw new RangeError("Failed to construct 'TextEncoder': The encoding label provided ('"+e+"') is invalid.")}function n(e,t){if(e=void 0===e?"utf-8":e,t=void 0===t?{fatal:!1}:t,"utf-8"!==e)throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+e+"') is invalid.");if(t.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}if(e.TextEncoder&&e.TextDecoder)return!1;Object.defineProperty(t.prototype,"encoding",{value:"utf-8"}),t.prototype.encode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");t=0;for(var n=e.length,i=0,r=Math.max(32,n+(n>>1)+7),o=new Uint8Array(r>>3<<3);t<n;){var s=e.charCodeAt(t++);if(55296<=s&&56319>=s){if(t<n){var a=e.charCodeAt(t);56320==(64512&a)&&(++t,s=((1023&s)<<10)+(1023&a)+65536)}if(55296<=s&&56319>=s)continue}if(i+4>o.length&&(r+=8,r=(r*=1+t/e.length*2)>>3<<3,(a=new Uint8Array(r)).set(o),o=a),0==(4294967168&s))o[i++]=s;else{if(0==(4294965248&s))o[i++]=s>>6&31|192;else if(0==(4294901760&s))o[i++]=s>>12&15|224,o[i++]=s>>6&63|128;else{if(0!=(4292870144&s))continue;o[i++]=s>>18&7|240,o[i++]=s>>12&63|128,o[i++]=s>>6&63|128}o[i++]=63&s|128}}return o.slice(0,i)},Object.defineProperty(n.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(n.prototype,"fatal",{value:!1}),Object.defineProperty(n.prototype,"ignoreBOM",{value:!1}),n.prototype.decode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");t=0;for(var n=(e=new Uint8Array(e)).length,i=[];t<n;){var r=e[t++];if(0===r)break;if(0==(128&r))i.push(r);else if(192==(224&r)){var o=63&e[t++];i.push((31&r)<<6|o)}else if(224==(240&r)){o=63&e[t++];var s=63&e[t++];i.push((31&r)<<12|o<<6|s)}else if(240==(248&r)){65535<(r=(7&r)<<18|(o=63&e[t++])<<12|(s=63&e[t++])<<6|63&e[t++])&&(r-=65536,i.push(r>>>10&1023|55296),r=56320|1023&r),i.push(r)}}return String.fromCharCode.apply(null,i)},e.TextEncoder=t,e.TextDecoder=n}("undefined"!=typeof window?window:void 0!==e?e:this)}).call(this,n(144))},function(e,t,n){n(15)("Float64",8,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){n(15)("Float32",4,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){n(15)("Uint32",4,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){n(15)("Int32",4,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){n(15)("Uint16",2,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){n(15)("Int16",2,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){n(15)("Uint8",1,function(e){return function(t,n,i){return e(this,t,n,i)}},!0)},function(e,t,n){n(15)("Uint8",1,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){n(15)("Int8",1,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){var i=n(0);i(i.G+i.W+i.F*!n(46).ABV,{DataView:n(56).DataView})},function(e,t,n){"use strict";var i=n(0),r=n(46),o=n(56),s=n(11),a=n(28),l=n(5),c=n(2),u=n(1).ArrayBuffer,h=n(47),f=o.ArrayBuffer,d=o.DataView,p=r.ABV&&u.isView,_=f.prototype.slice,m=r.VIEW;i(i.G+i.W+i.F*(u!==f),{ArrayBuffer:f}),i(i.S+i.F*!r.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||c(e)&&m in e}}),i(i.P+i.U+i.F*n(7)(function(){return!new f(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==_&&void 0===t)return _.call(s(this),e);for(var n=s(this).byteLength,i=a(e,n),r=a(void 0===t?n:t,n),o=new(h(this,f))(l(r-i)),c=new d(this),u=new d(o),p=0;i<r;)u.setUint8(p++,c.getUint8(i++));return o}}),n(51)("ArrayBuffer")},function(e,t,n){n(156),n(155),n(154),n(153),n(152),n(151),n(150),n(149),n(148),n(147),n(146),n(60),e.exports=n(12)},function(e,t,n){"use strict";var i=n(0),r=n(58),o=n(88);i(i.S,"Promise",{try:function(e){var t=r.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){"use strict";var i=n(0),r=n(12),o=n(1),s=n(47),a=n(87);i(i.P+i.R,"Promise",{finally:function(e){var t=s(this,r.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return a(t,e()).then(function(){return n})}:e,n?function(n){return a(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){var i=n(1),r=n(89).set,o=i.MutationObserver||i.WebKitMutationObserver,s=i.process,a=i.Promise,l="process"==n(29)(s);e.exports=function(){var e,t,n,c=function(){var i,r;for(l&&(i=s.domain)&&i.exit();e;){r=e.fn,e=e.next;try{r()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()};if(l)n=function(){s.nextTick(c)};else if(!o||i.navigator&&i.navigator.standalone)if(a&&a.resolve){var u=a.resolve();n=function(){u.then(c)}}else n=function(){r.call(i,c)};else{var h=!0,f=document.createTextNode("");new o(c).observe(f,{characterData:!0}),n=function(){f.data=h=!h}}return function(i){var r={fn:i,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var i=n(17),r=n(98),o=n(67),s=n(11),a=n(5),l=n(65),c={},u={};(t=e.exports=function(e,t,n,h,f){var d,p,_,m,b=f?function(){return e}:l(e),g=i(n,h,t?2:1),v=0;if("function"!=typeof b)throw TypeError(e+" is not iterable!");if(o(b)){for(d=a(e.length);d>v;v++)if((m=t?g(s(p=e[v])[0],p[1]):g(e[v]))===c||m===u)return m}else for(_=b.call(e);!(p=_.next()).done;)if((m=r(_,g,p.value,t))===c||m===u)return m}).BREAK=c,t.RETURN=u},function(e,t,n){"use strict";var i,r,o,s,a=n(27),l=n(1),c=n(17),u=n(38),h=n(0),f=n(2),d=n(16),p=n(59),_=n(162),m=n(47),b=n(89).set,g=n(160)(),v=n(58),y=n(88),w=n(87),x=l.TypeError,k=l.process,C=l.Promise,S="process"==u(k),A=function(){},E=r=v.f,O=!!function(){try{var e=C.resolve(1),t=(e.constructor={})[n(3)("species")]=function(e){e(A,A)};return(S||"function"==typeof PromiseRejectionEvent)&&e.then(A)instanceof t}catch(e){}}(),L=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},R=function(e,t){if(!e._n){e._n=!0;var n=e._c;g(function(){for(var i=e._v,r=1==e._s,o=0,s=function(t){var n,o,s=r?t.ok:t.fail,a=t.resolve,l=t.reject,c=t.domain;try{s?(r||(2==e._h&&I(e),e._h=1),!0===s?n=i:(c&&c.enter(),n=s(i),c&&c.exit()),n===t.promise?l(x("Promise-chain cycle")):(o=L(n))?o.call(n,a,l):a(n)):l(i)}catch(e){l(e)}};n.length>o;)s(n[o++]);e._c=[],e._n=!1,t&&!e._h&&T(e)})}},T=function(e){b.call(l,function(){var t,n,i,r=e._v,o=M(e);if(o&&(t=y(function(){S?k.emit("unhandledRejection",r,e):(n=l.onunhandledrejection)?n({promise:e,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)}),e._h=S||M(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},I=function(e){b.call(l,function(){var t;S?k.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},P=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},D=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw x("Promise can't be resolved itself");(t=L(e))?g(function(){var i={_w:n,_d:!1};try{t.call(e,c(D,i,1),c(P,i,1))}catch(e){P.call(i,e)}}):(n._v=e,n._s=1,R(n,!1))}catch(e){P.call({_w:n,_d:!1},e)}}};O||(C=function(e){p(this,C,"Promise","_h"),d(e),i.call(this);try{e(c(D,this,1),c(P,this,1))}catch(e){P.call(this,e)}},(i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(57)(C.prototype,{then:function(e,t){var n=E(m(this,C));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=S?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new i;this.promise=e,this.resolve=c(D,e,1),this.reject=c(P,e,1)},v.f=E=function(e){return e===C||e===s?new o(e):r(e)}),h(h.G+h.W+h.F*!O,{Promise:C}),n(40)(C,"Promise"),n(51)("Promise"),s=n(12).Promise,h(h.S+h.F*!O,"Promise",{reject:function(e){var t=E(this);return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(a||!O),"Promise",{resolve:function(e){return w(a&&this===s?C:this,e)}}),h(h.S+h.F*!(O&&n(64)(function(e){C.all(e).catch(A)})),"Promise",{all:function(e){var t=this,n=E(t),i=n.resolve,r=n.reject,o=y(function(){var n=[],o=0,s=1;_(e,!1,function(e){var a=o++,l=!1;n.push(void 0),s++,t.resolve(e).then(function(e){l||(l=!0,n[a]=e,--s||i(n))},r)}),--s||i(n)});return o.e&&r(o.v),n.promise},race:function(e){var t=this,n=E(t),i=n.reject,r=y(function(){_(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},function(e,t,n){for(var i=n(61),r=n(25),o=n(31),s=n(1),a=n(14),l=n(30),c=n(3),u=c("iterator"),h=c("toStringTag"),f=l.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(d),_=0;_<p.length;_++){var m,b=p[_],g=d[b],v=s[b],y=v&&v.prototype;if(y&&(y[u]||a(y,u,f),y[h]||a(y,h,b),l[b]=f,g))for(m in i)y[m]||o(y,m,i[m],!0)}},function(e,t,n){n(60),n(103),n(164),n(163),n(159),n(158),e.exports=n(12).Promise},function(e,t,n){var i=n(0),r=n(90),o=n(42);i(i.S+i.F,"Object",{make:function(e,t){return r(o(e),t)}})},function(e,t,n){var i=n(0),r=n(90);i(i.S+i.F,"Object",{define:r})},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{classof:n(38)})},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{isObject:n(2)})},function(e,t,n){"use strict";var i=n(0),r=n(4),o=n(33),s=n(39),a=n(20).f;n(6)&&i(i.P+n(48),"Object",{__lookupSetter__:function(e){var t,n=r(this),i=o(e,!0);do{if(t=a(n,i))return t.set}while(n=s(n))}})},function(e,t,n){"use strict";var i=n(0),r=n(4),o=n(33),s=n(39),a=n(20).f;n(6)&&i(i.P+n(48),"Object",{__lookupGetter__:function(e){var t,n=r(this),i=o(e,!0);do{if(t=a(n,i))return t.get}while(n=s(n))}})},function(e,t,n){"use strict";var i=n(0),r=n(4),o=n(16),s=n(8);n(6)&&i(i.P+n(48),"Object",{__defineSetter__:function(e,t){s.f(r(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var i=n(0),r=n(4),o=n(16),s=n(8);n(6)&&i(i.P+n(48),"Object",{__defineGetter__:function(e,t){s.f(r(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var i=n(0),r=n(91)(!0);i(i.S,"Object",{entries:function(e){return r(e)}})},function(e,t,n){var i=n(0),r=n(91)(!1);i(i.S,"Object",{values:function(e){return r(e)}})},function(e,t,n){var i=n(0),r=n(92),o=n(9),s=n(20),a=n(66);i(i.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,i=o(e),l=s.f,c=r(i),u={},h=0;c.length>h;)void 0!==(n=l(i,t=c[h++]))&&a(u,t,n);return u}})},function(e,t,n){var i=n(2),r=n(11),o=function(e,t){if(r(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{(i=n(17)(Function.call,n(20).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){var i=n(0);i(i.S,"Object",{setPrototypeOf:n(177).set})},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var i=n(0);i(i.S,"Object",{is:n(179)})},function(e,t,n){"use strict";var i=n(25),r=n(49),o=n(37),s=n(4),a=n(41),l=Object.assign;e.exports=!l||n(7)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i})?function(e,t){for(var n=s(e),l=arguments.length,c=1,u=r.f,h=o.f;l>c;)for(var f,d=a(arguments[c++]),p=u?i(d).concat(u(d)):i(d),_=p.length,m=0;_>m;)h.call(d,f=p[m++])&&(n[f]=d[f]);return n}:l},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{assign:n(181)})},function(e,t,n){var i=n(2);n(13)("isExtensible",function(e){return function(t){return!!i(t)&&(!e||e(t))}})},function(e,t,n){var i=n(2);n(13)("isSealed",function(e){return function(t){return!i(t)||!!e&&e(t)}})},function(e,t,n){var i=n(2);n(13)("isFrozen",function(e){return function(t){return!i(t)||!!e&&e(t)}})},function(e,t,n){var i=n(2),r=n(50).onFreeze;n(13)("preventExtensions",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},function(e,t,n){var i=n(2),r=n(50).onFreeze;n(13)("seal",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},function(e,t,n){var i=n(2),r=n(50).onFreeze;n(13)("freeze",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},function(e,t,n){n(13)("getOwnPropertyNames",function(){return n(93).f})},function(e,t,n){var i=n(4),r=n(25);n(13)("keys",function(){return function(e){return r(i(e))}})},function(e,t,n){var i=n(4),r=n(39);n(13)("getPrototypeOf",function(){return function(e){return r(i(e))}})},function(e,t,n){var i=n(9),r=n(20).f;n(13)("getOwnPropertyDescriptor",function(){return function(e,t){return r(i(e),t)}})},function(e,t,n){var i=n(0);i(i.S+i.F*!n(6),"Object",{defineProperties:n(100)})},function(e,t,n){var i=n(0);i(i.S+i.F*!n(6),"Object",{defineProperty:n(8).f})},function(e,t,n){var i=n(0);i(i.S,"Object",{create:n(42)})},function(e,t,n){var i=n(25),r=n(49),o=n(37);e.exports=function(e){var t=i(e),n=r.f;if(n)for(var s,a=n(e),l=o.f,c=0;a.length>c;)l.call(e,s=a[c++])&&t.push(s);return t}},function(e,t,n){var i=n(1),r=n(12),o=n(27),s=n(94),a=n(8).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},function(e,t,n){"use strict";var i=n(1),r=n(18),o=n(6),s=n(0),a=n(31),l=n(50).KEY,c=n(7),u=n(70),h=n(40),f=n(26),d=n(3),p=n(94),_=n(197),m=n(196),b=n(52),g=n(11),v=n(2),y=n(9),w=n(33),x=n(32),k=n(42),C=n(93),S=n(20),A=n(8),E=n(25),O=S.f,L=A.f,R=C.f,T=i.Symbol,M=i.JSON,I=M&&M.stringify,P=d("_hidden"),D=d("toPrimitive"),N={}.propertyIsEnumerable,B=u("symbol-registry"),H=u("symbols"),j=u("op-symbols"),F=Object.prototype,z="function"==typeof T,W=i.QObject,Z=!W||!W.prototype||!W.prototype.findChild,U=o&&c(function(){return 7!=k(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=O(F,t);i&&delete F[t],L(e,t,n),i&&e!==F&&L(F,t,i)}:L,V=function(e){var t=H[e]=k(T.prototype);return t._k=e,t},K=z&&"symbol"==typeof T.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof T},X=function(e,t,n){return e===F&&X(j,t,n),g(e),t=w(t,!0),g(n),r(H,t)?(n.enumerable?(r(e,P)&&e[P][t]&&(e[P][t]=!1),n=k(n,{enumerable:x(0,!1)})):(r(e,P)||L(e,P,x(1,{})),e[P][t]=!0),U(e,t,n)):L(e,t,n)},G=function(e,t){g(e);for(var n,i=m(t=y(t)),r=0,o=i.length;o>r;)X(e,n=i[r++],t[n]);return e},q=function(e){var t=N.call(this,e=w(e,!0));return!(this===F&&r(H,e)&&!r(j,e))&&(!(t||!r(this,e)||!r(H,e)||r(this,P)&&this[P][e])||t)},Y=function(e,t){if(e=y(e),t=w(t,!0),e!==F||!r(H,t)||r(j,t)){var n=O(e,t);return!n||!r(H,t)||r(e,P)&&e[P][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=R(y(e)),i=[],o=0;n.length>o;)r(H,t=n[o++])||t==P||t==l||i.push(t);return i},J=function(e){for(var t,n=e===F,i=R(n?j:y(e)),o=[],s=0;i.length>s;)!r(H,t=i[s++])||n&&!r(F,t)||o.push(H[t]);return o};z||(a((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===F&&t.call(j,n),r(this,P)&&r(this[P],e)&&(this[P][e]=!1),U(this,e,x(1,n))};return o&&Z&&U(F,e,{configurable:!0,set:t}),V(e)}).prototype,"toString",function(){return this._k}),S.f=Y,A.f=X,n(36).f=C.f=Q,n(37).f=q,n(49).f=J,o&&!n(27)&&a(F,"propertyIsEnumerable",q,!0),p.f=function(e){return V(d(e))}),s(s.G+s.W+s.F*!z,{Symbol:T});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;$.length>ee;)d($[ee++]);for(var te=E(d.store),ne=0;te.length>ne;)_(te[ne++]);s(s.S+s.F*!z,"Symbol",{for:function(e){return r(B,e+="")?B[e]:B[e]=T(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){Z=!0},useSimple:function(){Z=!1}}),s(s.S+s.F*!z,"Object",{create:function(e,t){return void 0===t?k(e):G(k(e),t)},defineProperty:X,defineProperties:G,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Q,getOwnPropertySymbols:J}),M&&s(s.S+s.F*(!z||c(function(){var e=T();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=t=i[1],(v(t)||void 0!==e)&&!K(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),i[1]=t,I.apply(M,i)}}),T.prototype[D]||n(14)(T.prototype,D,T.prototype.valueOf),h(T,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},function(e,t,n){n(198),n(195),n(194),n(193),n(192),n(191),n(190),n(189),n(188),n(187),n(186),n(185),n(184),n(183),n(182),n(180),n(178),n(60),n(176),n(175),n(174),n(173),n(172),n(171),n(170),n(169),n(168),n(167),n(166),e.exports=n(12).Object},function(e,t,n){"use strict";var i=n(0),r=n(95),o=n(4),s=n(5),a=n(23),l=n(63);i(i.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),n=s(t.length),i=l(t,0);return r(i,t,t,n,0,void 0===e?1:a(e)),i}}),n(21)("flatten")},function(e,t,n){"use strict";var i=n(0),r=n(95),o=n(4),s=n(5),a=n(16),l=n(63);i(i.P,"Array",{flatMap:function(e){var t,n,i=o(this);return a(e),t=s(i.length),n=l(i,0),r(n,i,i,t,0,1,e,arguments[1]),n}}),n(21)("flatMap")},function(e,t,n){"use strict";var i=n(0),r=n(53)(!0);i(i.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(21)("includes")},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){n(51)("Array")},function(e,t,n){"use strict";var i=n(0),r=n(22)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),i(i.P+i.F*s,"Array",{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(21)(o)},function(e,t,n){"use strict";var i=n(0),r=n(22)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),i(i.P+i.F*o,"Array",{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(21)("find")},function(e,t,n){var i=n(0);i(i.P,"Array",{fill:n(62)}),n(21)("fill")},function(e,t,n){var i=n(0);i(i.P,"Array",{copyWithin:n(96)}),n(21)("copyWithin")},function(e,t,n){"use strict";var i=n(0),r=n(9),o=n(23),s=n(5),a=[].lastIndexOf,l=!!a&&1/[1].lastIndexOf(1,-0)<0;i(i.P+i.F*(l||!n(10)(a)),"Array",{lastIndexOf:function(e){if(l)return a.apply(this,arguments)||0;var t=r(this),n=s(t.length),i=n-1;for(arguments.length>1&&(i=Math.min(i,o(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}})},function(e,t,n){"use strict";var i=n(0),r=n(53)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(s||!n(10)(o)),"Array",{indexOf:function(e){return s?o.apply(this,arguments)||0:r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(0),r=n(97);i(i.P+i.F*!n(10)([].reduceRight,!0),"Array",{reduceRight:function(e){return r(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var i=n(0),r=n(97);i(i.P+i.F*!n(10)([].reduce,!0),"Array",{reduce:function(e){return r(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var i=n(0),r=n(22)(4);i(i.P+i.F*!n(10)([].every,!0),"Array",{every:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(0),r=n(22)(3);i(i.P+i.F*!n(10)([].some,!0),"Array",{some:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(0),r=n(22)(2);i(i.P+i.F*!n(10)([].filter,!0),"Array",{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(0),r=n(22)(1);i(i.P+i.F*!n(10)([].map,!0),"Array",{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var i=n(2),r=n(52),o=n(3)("species");e.exports=function(e){var t;return r(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!r(t.prototype)||(t=void 0),i(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var i=n(0),r=n(22)(0),o=n(10)([].forEach,!0);i(i.P+i.F*!o,"Array",{forEach:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(0),r=n(16),o=n(4),s=n(7),a=[].sort,l=[1,2,3];i(i.P+i.F*(s(function(){l.sort(void 0)})||!s(function(){l.sort(null)})||!n(10)(a)),"Array",{sort:function(e){return void 0===e?a.call(o(this)):a.call(o(this),r(e))}})},function(e,t,n){"use strict";var i=n(0),r=n(68),o=n(29),s=n(28),a=n(5),l=[].slice;i(i.P+i.F*n(7)(function(){r&&l.call(r)}),"Array",{slice:function(e,t){var n=a(this.length),i=o(this);if(t=void 0===t?n:t,"Array"==i)return l.call(this,e,t);for(var r=s(e,n),c=s(t,n),u=a(c-r),h=new Array(u),f=0;f<u;f++)h[f]="String"==i?this.charAt(r+f):this[r+f];return h}})},function(e,t,n){"use strict";var i=n(0),r=n(9),o=[].join;i(i.P+i.F*(n(41)!=Object||!n(10)(o)),"Array",{join:function(e){return o.call(r(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var i=n(0),r=n(66);i(i.S+i.F*n(7)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)r(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var i=n(17),r=n(0),o=n(4),s=n(98),a=n(67),l=n(5),c=n(66),u=n(65);r(r.S+r.F*!n(64)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,r,h,f=o(e),d="function"==typeof this?this:Array,p=arguments.length,_=p>1?arguments[1]:void 0,m=void 0!==_,b=0,g=u(f);if(m&&(_=i(_,p>2?arguments[2]:void 0,2)),void 0==g||d==Array&&a(g))for(n=new d(t=l(f.length));t>b;b++)c(n,b,m?_(f[b],b):f[b]);else for(h=g.call(f),n=new d;!(r=h.next()).done;b++)c(n,b,m?s(h,_,[r.value,b],!0):r.value);return n.length=b,n}})},function(e,t,n){var i=n(0);i(i.S,"Array",{isArray:n(52)})},function(e,t,n){"use strict";var i=n(42),r=n(32),o=n(40),s={};n(14)(s,n(3)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(s,{next:r(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var i=n(23),r=n(73);e.exports=function(e){return function(t,n){var o,s,a=String(r(t)),l=i(n),c=a.length;return l<0||l>=c?e?"":void 0:(o=a.charCodeAt(l))<55296||o>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):o:e?a.slice(l,l+2):s-56320+(o-55296<<10)+65536}}},function(e,t,n){n(103),n(224),n(223),n(222),n(221),n(220),n(219),n(218),n(216),n(215),n(214),n(213),n(212),n(211),n(210),n(209),n(208),n(207),n(206),n(205),n(204),n(61),n(202),n(201),n(200),e.exports=n(12).Array},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var r,o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)?e:(r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")})}},function(e,t,n){var i,r,o={},s=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=i.apply(this,arguments)),r}),a=function(e){var t={};return function(e){if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.call(this,e);if(n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),l=null,c=0,u=[],h=n(228);function f(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=o[i.id];if(r){r.refs++;for(var s=0;s<r.parts.length;s++)r.parts[s](i.parts[s]);for(;s<i.parts.length;s++)r.parts.push(g(i.parts[s],t))}else{var a=[];for(s=0;s<i.parts.length;s++)a.push(g(i.parts[s],t));o[i.id]={id:i.id,refs:1,parts:a}}}}function d(e,t){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],s=t.base?o[0]+t.base:o[0],a={css:o[1],media:o[2],sourceMap:o[3]};i[s]?i[s].parts.push(a):n.push(i[s]={id:s,parts:[a]})}return n}function p(e,t){var n=a(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=u[u.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),u.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=a(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,r)}}function _(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function m(e){var t=document.createElement("style");return e.attrs.type="text/css",b(t,e.attrs),p(e,t),t}function b(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function g(e,t){var n,i,r,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var s=c++;n=l||(l=m(t)),i=w.bind(null,n,s,!1),r=w.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",b(t,e.attrs),p(e,t),t}(t),i=function(e,t,n){var i=n.css,r=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||o)&&(i=h(i));r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var s=new Blob([i],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,n,t),r=function(){_(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(t),i=function(e,t){var n=t.css,i=t.media;i&&e.setAttribute("media",i);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),r=function(){_(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=d(e,t);return f(n,t),function(e){for(var i=[],r=0;r<n.length;r++){var s=n[r];(a=o[s.id]).refs--,i.push(a)}e&&f(d(e,t),t);for(r=0;r<i.length;r++){var a;if(0===(a=i[r]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete o[a.id]}}}};var v,y=(v=[],function(e,t){return v[e]=t,v.filter(Boolean).join("\n")});function w(e,t,n,i){var r=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=y(t,r);else{var o=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}},function(e,t,n){(e.exports=n(104)(!1)).push([e.i,'/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Originally forked from (with the author\'s permission):\n * Fabrice Bellard\'s javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */\n\n/**\n * Default styles for xterm.js\n */\n\n.xterm {\n font-family: courier-new, courier, monospace;\n font-feature-settings: "liga" 0;\n position: relative;\n user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n}\n\n.xterm.focus,\n.xterm:focus {\n outline: none;\n}\n\n.xterm .xterm-helpers {\n position: absolute;\n top: 0;\n /**\n * The z-index of the helpers must be higher than the canvases in order for\n * IMEs to appear on top.\n */\n z-index: 10;\n}\n\n.xterm .xterm-helper-textarea {\n /*\n * HACK: to fix IE\'s blinking cursor\n * Move textarea out of the screen to the far left, so that the cursor is not visible.\n */\n position: absolute;\n opacity: 0;\n left: -9999em;\n top: 0;\n width: 0;\n height: 0;\n z-index: -10;\n /** Prevent wrapping so the IME appears against the textarea at the correct position */\n white-space: nowrap;\n overflow: hidden;\n resize: none;\n}\n\n.xterm .composition-view {\n /* TODO: Composition position got messed up somewhere */\n background: #000;\n color: #FFF;\n display: none;\n position: absolute;\n white-space: nowrap;\n z-index: 1;\n}\n\n.xterm .composition-view.active {\n display: block;\n}\n\n.xterm .xterm-viewport {\n /* On OS X this is required in order for the scroll bar to appear fully opaque */\n background-color: #000;\n overflow-y: scroll;\n cursor: default;\n position: absolute;\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n}\n\n.xterm .xterm-screen {\n position: relative;\n}\n\n.xterm .xterm-screen canvas {\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.xterm .xterm-scroll-area {\n visibility: hidden;\n}\n\n.xterm-char-measure-element {\n display: inline-block;\n visibility: hidden;\n position: absolute;\n top: 0;\n left: -9999em;\n line-height: normal;\n}\n\n.xterm.enable-mouse-events {\n /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */\n cursor: default;\n}\n\n.xterm:not(.enable-mouse-events) {\n cursor: text;\n}\n\n.xterm .xterm-accessibility,\n.xterm .xterm-message {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 100;\n color: transparent;\n}\n\n.xterm .live-region {\n position: absolute;\n left: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n}\n\n.xterm-cursor-pointer {\n cursor: pointer;\n}\n',""])},function(e,t,n){(t=e.exports=n(104)(!1)).i(n(230),""),t.push([e.i,'@keyframes spinAround {\n from {\n transform: rotate(0deg); }\n to {\n transform: rotate(359deg); } }\n\n.is-clearfix:after {\n clear: both;\n content: " ";\n display: table; }\n\n.is-pulled-left {\n float: left !important; }\n\n.is-pulled-right {\n float: right !important; }\n\n.is-clipped {\n overflow: hidden !important; }\n\n.is-overlay {\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0; }\n\n.is-size-1 {\n font-size: 3rem !important; }\n\n.is-size-2 {\n font-size: 2.5rem !important; }\n\n.is-size-3 {\n font-size: 2rem !important; }\n\n.is-size-4 {\n font-size: 1.5rem !important; }\n\n.is-size-5 {\n font-size: 1.25rem !important; }\n\n.is-size-6 {\n font-size: 1rem !important; }\n\n.is-size-7 {\n font-size: 0.75rem !important; }\n\n@media screen and (max-width: 768px) {\n .is-size-1-mobile {\n font-size: 3rem !important; }\n .is-size-2-mobile {\n font-size: 2.5rem !important; }\n .is-size-3-mobile {\n font-size: 2rem !important; }\n .is-size-4-mobile {\n font-size: 1.5rem !important; }\n .is-size-5-mobile {\n font-size: 1.25rem !important; }\n .is-size-6-mobile {\n font-size: 1rem !important; }\n .is-size-7-mobile {\n font-size: 0.75rem !important; } }\n\n@media screen and (min-width: 769px), print {\n .is-size-1-tablet {\n font-size: 3rem !important; }\n .is-size-2-tablet {\n font-size: 2.5rem !important; }\n .is-size-3-tablet {\n font-size: 2rem !important; }\n .is-size-4-tablet {\n font-size: 1.5rem !important; }\n .is-size-5-tablet {\n font-size: 1.25rem !important; }\n .is-size-6-tablet {\n font-size: 1rem !important; }\n .is-size-7-tablet {\n font-size: 0.75rem !important; } }\n\n@media screen and (max-width: 1023px) {\n .is-size-1-touch {\n font-size: 3rem !important; }\n .is-size-2-touch {\n font-size: 2.5rem !important; }\n .is-size-3-touch {\n font-size: 2rem !important; }\n .is-size-4-touch {\n font-size: 1.5rem !important; }\n .is-size-5-touch {\n font-size: 1.25rem !important; }\n .is-size-6-touch {\n font-size: 1rem !important; }\n .is-size-7-touch {\n font-size: 0.75rem !important; } }\n\n@media screen and (min-width: 1024px) {\n .is-size-1-desktop {\n font-size: 3rem !important; }\n .is-size-2-desktop {\n font-size: 2.5rem !important; }\n .is-size-3-desktop {\n font-size: 2rem !important; }\n .is-size-4-desktop {\n font-size: 1.5rem !important; }\n .is-size-5-desktop {\n font-size: 1.25rem !important; }\n .is-size-6-desktop {\n font-size: 1rem !important; }\n .is-size-7-desktop {\n font-size: 0.75rem !important; } }\n\n@media screen and (min-width: 1216px) {\n .is-size-1-widescreen {\n font-size: 3rem !important; }\n .is-size-2-widescreen {\n font-size: 2.5rem !important; }\n .is-size-3-widescreen {\n font-size: 2rem !important; }\n .is-size-4-widescreen {\n font-size: 1.5rem !important; }\n .is-size-5-widescreen {\n font-size: 1.25rem !important; }\n .is-size-6-widescreen {\n font-size: 1rem !important; }\n .is-size-7-widescreen {\n font-size: 0.75rem !important; } }\n\n@media screen and (min-width: 1408px) {\n .is-size-1-fullhd {\n font-size: 3rem !important; }\n .is-size-2-fullhd {\n font-size: 2.5rem !important; }\n .is-size-3-fullhd {\n font-size: 2rem !important; }\n .is-size-4-fullhd {\n font-size: 1.5rem !important; }\n .is-size-5-fullhd {\n font-size: 1.25rem !important; }\n .is-size-6-fullhd {\n font-size: 1rem !important; }\n .is-size-7-fullhd {\n font-size: 0.75rem !important; } }\n\n.has-text-centered {\n text-align: center !important; }\n\n@media screen and (max-width: 768px) {\n .has-text-centered-mobile {\n text-align: center !important; } }\n\n@media screen and (min-width: 769px), print {\n .has-text-centered-tablet {\n text-align: center !important; } }\n\n@media screen and (min-width: 769px) and (max-width: 1023px) {\n .has-text-centered-tablet-only {\n text-align: center !important; } }\n\n@media screen and (max-width: 1023px) {\n .has-text-centered-touch {\n text-align: center !important; } }\n\n@media screen and (min-width: 1024px) {\n .has-text-centered-desktop {\n text-align: center !important; } }\n\n@media screen and (min-width: 1024px) and (max-width: 1215px) {\n .has-text-centered-desktop-only {\n text-align: center !important; } }\n\n@media screen and (min-width: 1216px) {\n .has-text-centered-widescreen {\n text-align: center !important; } }\n\n@media screen and (min-width: 1216px) and (max-width: 1407px) {\n .has-text-centered-widescreen-only {\n text-align: center !important; } }\n\n@media screen and (min-width: 1408px) {\n .has-text-centered-fullhd {\n text-align: center !important; } }\n\n.has-text-justified {\n text-align: justify !important; }\n\n@media screen and (max-width: 768px) {\n .has-text-justified-mobile {\n text-align: justify !important; } }\n\n@media screen and (min-width: 769px), print {\n .has-text-justified-tablet {\n text-align: justify !important; } }\n\n@media screen and (min-width: 769px) and (max-width: 1023px) {\n .has-text-justified-tablet-only {\n text-align: justify !important; } }\n\n@media screen and (max-width: 1023px) {\n .has-text-justified-touch {\n text-align: justify !important; } }\n\n@media screen and (min-width: 1024px) {\n .has-text-justified-desktop {\n text-align: justify !important; } }\n\n@media screen and (min-width: 1024px) and (max-width: 1215px) {\n .has-text-justified-desktop-only {\n text-align: justify !important; } }\n\n@media screen and (min-width: 1216px) {\n .has-text-justified-widescreen {\n text-align: justify !important; } }\n\n@media screen and (min-width: 1216px) and (max-width: 1407px) {\n .has-text-justified-widescreen-only {\n text-align: justify !important; } }\n\n@media screen and (min-width: 1408px) {\n .has-text-justified-fullhd {\n text-align: justify !important; } }\n\n.has-text-left {\n text-align: left !important; }\n\n@media screen and (max-width: 768px) {\n .has-text-left-mobile {\n text-align: left !important; } }\n\n@media screen and (min-width: 769px), print {\n .has-text-left-tablet {\n text-align: left !important; } }\n\n@media screen and (min-width: 769px) and (max-width: 1023px) {\n .has-text-left-tablet-only {\n text-align: left !important; } }\n\n@media screen and (max-width: 1023px) {\n .has-text-left-touch {\n text-align: left !important; } }\n\n@media screen and (min-width: 1024px) {\n .has-text-left-desktop {\n text-align: left !important; } }\n\n@media screen and (min-width: 1024px) and (max-width: 1215px) {\n .has-text-left-desktop-only {\n text-align: left !important; } }\n\n@media screen and (min-width: 1216px) {\n .has-text-left-widescreen {\n text-align: left !important; } }\n\n@media screen and (min-width: 1216px) and (max-width: 1407px) {\n .has-text-left-widescreen-only {\n text-align: left !important; } }\n\n@media screen and (min-width: 1408px) {\n .has-text-left-fullhd {\n text-align: left !important; } }\n\n.has-text-right {\n text-align: right !important; }\n\n@media screen and (max-width: 768px) {\n .has-text-right-mobile {\n text-align: right !important; } }\n\n@media screen and (min-width: 769px), print {\n .has-text-right-tablet {\n text-align: right !important; } }\n\n@media screen and (min-width: 769px) and (max-width: 1023px) {\n .has-text-right-tablet-only {\n text-align: right !important; } }\n\n@media screen and (max-width: 1023px) {\n .has-text-right-touch {\n text-align: right !important; } }\n\n@media screen and (min-width: 1024px) {\n .has-text-right-desktop {\n text-align: right !important; } }\n\n@media screen and (min-width: 1024px) and (max-width: 1215px) {\n .has-text-right-desktop-only {\n text-align: right !important; } }\n\n@media screen and (min-width: 1216px) {\n .has-text-right-widescreen {\n text-align: right !important; } }\n\n@media screen and (min-width: 1216px) and (max-width: 1407px) {\n .has-text-right-widescreen-only {\n text-align: right !important; } }\n\n@media screen and (min-width: 1408px) {\n .has-text-right-fullhd {\n text-align: right !important; } }\n\n.is-capitalized {\n text-transform: capitalize !important; }\n\n.is-lowercase {\n text-transform: lowercase !important; }\n\n.is-uppercase {\n text-transform: uppercase !important; }\n\n.is-italic {\n font-style: italic !important; }\n\n.has-text-white {\n color: white !important; }\n\na.has-text-white:hover, a.has-text-white:focus {\n color: #e6e6e6 !important; }\n\n.has-text-black {\n color: #0a0a0a !important; }\n\na.has-text-black:hover, a.has-text-black:focus {\n color: black !important; }\n\n.has-text-light {\n color: whitesmoke !important; }\n\na.has-text-light:hover, a.has-text-light:focus {\n color: #dbdbdb !important; }\n\n.has-text-dark {\n color: #363636 !important; }\n\na.has-text-dark:hover, a.has-text-dark:focus {\n color: #1c1c1c !important; }\n\n.has-text-primary {\n color: #00d1b2 !important; }\n\na.has-text-primary:hover, a.has-text-primary:focus {\n color: #009e86 !important; }\n\n.has-text-link {\n color: #3273dc !important; }\n\na.has-text-link:hover, a.has-text-link:focus {\n color: #205bbc !important; }\n\n.has-text-info {\n color: #209cee !important; }\n\na.has-text-info:hover, a.has-text-info:focus {\n color: #0f81cc !important; }\n\n.has-text-success {\n color: #23d160 !important; }\n\na.has-text-success:hover, a.has-text-success:focus {\n color: #1ca64c !important; }\n\n.has-text-warning {\n color: #ffdd57 !important; }\n\na.has-text-warning:hover, a.has-text-warning:focus {\n color: #ffd324 !important; }\n\n.has-text-danger {\n color: #ff3860 !important; }\n\na.has-text-danger:hover, a.has-text-danger:focus {\n color: #ff0537 !important; }\n\n.has-text-black-bis {\n color: #121212 !important; }\n\n.has-text-black-ter {\n color: #242424 !important; }\n\n.has-text-grey-darker {\n color: #363636 !important; }\n\n.has-text-grey-dark {\n color: #4a4a4a !important; }\n\n.has-text-grey {\n color: #7a7a7a !important; }\n\n.has-text-grey-light {\n color: #b5b5b5 !important; }\n\n.has-text-grey-lighter {\n color: #dbdbdb !important; }\n\n.has-text-white-ter {\n color: whitesmoke !important; }\n\n.has-text-white-bis {\n color: #fafafa !important; }\n\n.has-text-weight-light {\n font-weight: 300 !important; }\n\n.has-text-weight-normal {\n font-weight: 400 !important; }\n\n.has-text-weight-semibold {\n font-weight: 600 !important; }\n\n.has-text-weight-bold {\n font-weight: 700 !important; }\n\n.is-block {\n display: block !important; }\n\n@media screen and (max-width: 768px) {\n .is-block-mobile {\n display: block !important; } }\n\n@media screen and (min-width: 769px), print {\n .is-block-tablet {\n display: block !important; } }\n\n@media screen and (min-width: 769px) and (max-width: 1023px) {\n .is-block-tablet-only {\n display: block !important; } }\n\n@media screen and (max-width: 1023px) {\n .is-block-touch {\n display: block !important; } }\n\n@media screen and (min-width: 1024px) {\n .is-block-desktop {\n display: block !important; } }\n\n@media screen and (min-width: 1024px) and (max-width: 1215px) {\n .is-block-desktop-only {\n display: block !important; } }\n\n@media screen and (min-width: 1216px) {\n .is-block-widescreen {\n display: block !important; } }\n\n@media screen and (min-width: 1216px) and (max-width: 1407px) {\n .is-block-widescreen-only {\n display: block !important; } }\n\n@media screen and (min-width: 1408px) {\n .is-block-fullhd {\n display: block !important; } }\n\n.is-flex {\n display: flex !important; }\n\n@media screen and (max-width: 768px) {\n .is-flex-mobile {\n display: flex !important; } }\n\n@media screen and (min-width: 769px), print {\n .is-flex-tablet {\n display: flex !important; } }\n\n@media screen and (min-width: 769px) and (max-width: 1023px) {\n .is-flex-tablet-only {\n display: flex !important; } }\n\n@media screen and (max-width: 1023px) {\n .is-flex-touch {\n display: flex !important; } }\n\n@media screen and (min-width: 1024px) {\n .is-flex-desktop {\n display: flex !important; } }\n\n@media screen and (min-width: 1024px) and (max-width: 1215px) {\n .is-flex-desktop-only {\n display: flex !important; } }\n\n@media screen and (min-width: 1216px) {\n .is-flex-widescreen {\n display: flex !important; } }\n\n@media screen and (min-width: 1216px) and (max-width: 1407px) {\n .is-flex-widescreen-only {\n display: flex !important; } }\n\n@media screen and (min-width: 1408px) {\n .is-flex-fullhd {\n display: flex !important; } }\n\n.is-inline {\n display: inline !important; }\n\n@media screen and (max-width: 768px) {\n .is-inline-mobile {\n display: inline !important; } }\n\n@media screen and (min-width: 769px), print {\n .is-inline-tablet {\n display: inline !important; } }\n\n@media screen and (min-width: 769px) and (max-width: 1023px) {\n .is-inline-tablet-only {\n display: inline !important; } }\n\n@media screen and (max-width: 1023px) {\n .is-inline-touch {\n display: inline !important; } }\n\n@media screen and (min-width: 1024px) {\n .is-inline-desktop {\n display: inline !important; } }\n\n@media screen and (min-width: 1024px) and (max-width: 1215px) {\n .is-inline-desktop-only {\n display: inline !important; } }\n\n@media screen and (min-width: 1216px) {\n .is-inline-widescreen {\n display: inline !important; } }\n\n@media screen and (min-width: 1216px) and (max-width: 1407px) {\n .is-inline-widescreen-only {\n display: inline !important; } }\n\n@media screen and (min-width: 1408px) {\n .is-inline-fullhd {\n display: inline !important; } }\n\n.is-inline-block {\n display: inline-block !important; }\n\n@media screen and (max-width: 768px) {\n .is-inline-block-mobile {\n display: inline-block !important; } }\n\n@media screen and (min-width: 769px), print {\n .is-inline-block-tablet {\n display: inline-block !important; } }\n\n@media screen and (min-width: 769px) and (max-width: 1023px) {\n .is-inline-block-tablet-only {\n display: inline-block !important; } }\n\n@media screen and (max-width: 1023px) {\n .is-inline-block-touch {\n display: inline-block !important; } }\n\n@media screen and (min-width: 1024px) {\n .is-inline-block-desktop {\n display: inline-block !important; } }\n\n@media screen and (min-width: 1024px) and (max-width: 1215px) {\n .is-inline-block-desktop-only {\n display: inline-block !important; } }\n\n@media screen and (min-width: 1216px) {\n .is-inline-block-widescreen {\n display: inline-block !important; } }\n\n@media screen and (min-width: 1216px) and (max-width: 1407px) {\n .is-inline-block-widescreen-only {\n display: inline-block !important; } }\n\n@media screen and (min-width: 1408px) {\n .is-inline-block-fullhd {\n display: inline-block !important; } }\n\n.is-inline-flex {\n display: inline-flex !important; }\n\n@media screen and (max-width: 768px) {\n .is-inline-flex-mobile {\n display: inline-flex !important; } }\n\n@media screen and (min-width: 769px), print {\n .is-inline-flex-tablet {\n display: inline-flex !important; } }\n\n@media screen and (min-width: 769px) and (max-width: 1023px) {\n .is-inline-flex-tablet-only {\n display: inline-flex !important; } }\n\n@media screen and (max-width: 1023px) {\n .is-inline-flex-touch {\n display: inline-flex !important; } }\n\n@media screen and (min-width: 1024px) {\n .is-inline-flex-desktop {\n display: inline-flex !important; } }\n\n@media screen and (min-width: 1024px) and (max-width: 1215px) {\n .is-inline-flex-desktop-only {\n display: inline-flex !important; } }\n\n@media screen and (min-width: 1216px) {\n .is-inline-flex-widescreen {\n display: inline-flex !important; } }\n\n@media screen and (min-width: 1216px) and (max-width: 1407px) {\n .is-inline-flex-widescreen-only {\n display: inline-flex !important; } }\n\n@media screen and (min-width: 1408px) {\n .is-inline-flex-fullhd {\n display: inline-flex !important; } }\n\n.is-hidden {\n display: none !important; }\n\n@media screen and (max-width: 768px) {\n .is-hidden-mobile {\n display: none !important; } }\n\n@media screen and (min-width: 769px), print {\n .is-hidden-tablet {\n display: none !important; } }\n\n@media screen and (min-width: 769px) and (max-width: 1023px) {\n .is-hidden-tablet-only {\n display: none !important; } }\n\n@media screen and (max-width: 1023px) {\n .is-hidden-touch {\n display: none !important; } }\n\n@media screen and (min-width: 1024px) {\n .is-hidden-desktop {\n display: none !important; } }\n\n@media screen and (min-width: 1024px) and (max-width: 1215px) {\n .is-hidden-desktop-only {\n display: none !important; } }\n\n@media screen and (min-width: 1216px) {\n .is-hidden-widescreen {\n display: none !important; } }\n\n@media screen and (min-width: 1216px) and (max-width: 1407px) {\n .is-hidden-widescreen-only {\n display: none !important; } }\n\n@media screen and (min-width: 1408px) {\n .is-hidden-fullhd {\n display: none !important; } }\n\n.is-invisible {\n visibility: hidden !important; }\n\n@media screen and (max-width: 768px) {\n .is-invisible-mobile {\n visibility: hidden !important; } }\n\n@media screen and (min-width: 769px), print {\n .is-invisible-tablet {\n visibility: hidden !important; } }\n\n@media screen and (min-width: 769px) and (max-width: 1023px) {\n .is-invisible-tablet-only {\n visibility: hidden !important; } }\n\n@media screen and (max-width: 1023px) {\n .is-invisible-touch {\n visibility: hidden !important; } }\n\n@media screen and (min-width: 1024px) {\n .is-invisible-desktop {\n visibility: hidden !important; } }\n\n@media screen and (min-width: 1024px) and (max-width: 1215px) {\n .is-invisible-desktop-only {\n visibility: hidden !important; } }\n\n@media screen and (min-width: 1216px) {\n .is-invisible-widescreen {\n visibility: hidden !important; } }\n\n@media screen and (min-width: 1216px) and (max-width: 1407px) {\n .is-invisible-widescreen-only {\n visibility: hidden !important; } }\n\n@media screen and (min-width: 1408px) {\n .is-invisible-fullhd {\n visibility: hidden !important; } }\n\n.is-marginless {\n margin: 0 !important; }\n\n.is-paddingless {\n padding: 0 !important; }\n\n.is-radiusless {\n border-radius: 0 !important; }\n\n.is-shadowless {\n box-shadow: none !important; }\n\n.is-unselectable {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n\n.box {\n background-color: white;\n border-radius: 5px;\n box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);\n color: #4a4a4a;\n display: block;\n padding: 1.25rem; }\n .box:not(:last-child) {\n margin-bottom: 1.5rem; }\n\na.box:hover, a.box:focus {\n box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px #3273dc; }\n\na.box:active {\n box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.2), 0 0 0 1px #3273dc; }\n\n.button {\n -moz-appearance: none;\n -webkit-appearance: none;\n align-items: center;\n border: 1px solid transparent;\n border-radius: 3px;\n box-shadow: none;\n display: inline-flex;\n font-size: 1rem;\n height: 2.25em;\n justify-content: flex-start;\n line-height: 1.5;\n padding-bottom: calc(0.375em - 1px);\n padding-left: calc(0.625em - 1px);\n padding-right: calc(0.625em - 1px);\n padding-top: calc(0.375em - 1px);\n position: relative;\n vertical-align: top;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n background-color: white;\n border-color: #dbdbdb;\n color: #363636;\n cursor: pointer;\n justify-content: center;\n padding-left: 0.75em;\n padding-right: 0.75em;\n text-align: center;\n white-space: nowrap; }\n .button:focus, .button.is-focused, .button:active, .button.is-active {\n outline: none; }\n .button[disabled] {\n cursor: not-allowed; }\n .button strong {\n color: inherit; }\n .button .icon, .button .icon.is-small, .button .icon.is-medium, .button .icon.is-large {\n height: 1.5em;\n width: 1.5em; }\n .button .icon:first-child:not(:last-child) {\n margin-left: calc(-0.375em - 1px);\n margin-right: 0.1875em; }\n .button .icon:last-child:not(:first-child) {\n margin-left: 0.1875em;\n margin-right: calc(-0.375em - 1px); }\n .button .icon:first-child:last-child {\n margin-left: calc(-0.375em - 1px);\n margin-right: calc(-0.375em - 1px); }\n .button:hover, .button.is-hovered {\n border-color: #b5b5b5;\n color: #363636; }\n .button:focus, .button.is-focused {\n border-color: #3273dc;\n color: #363636; }\n .button:focus:not(:active), .button.is-focused:not(:active) {\n box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); }\n .button:active, .button.is-active {\n border-color: #4a4a4a;\n color: #363636; }\n .button.is-text {\n background-color: transparent;\n border-color: transparent;\n color: #4a4a4a;\n text-decoration: underline; }\n .button.is-text:hover, .button.is-text.is-hovered, .button.is-text:focus, .button.is-text.is-focused {\n background-color: whitesmoke;\n color: #363636; }\n .button.is-text:active, .button.is-text.is-active {\n background-color: #e8e8e8;\n color: #363636; }\n .button.is-text[disabled] {\n background-color: transparent;\n border-color: transparent;\n box-shadow: none; }\n .button.is-white {\n background-color: white;\n border-color: transparent;\n color: #0a0a0a; }\n .button.is-white:hover, .button.is-white.is-hovered {\n background-color: #f9f9f9;\n border-color: transparent;\n color: #0a0a0a; }\n .button.is-white:focus, .button.is-white.is-focused {\n border-color: transparent;\n color: #0a0a0a; }\n .button.is-white:focus:not(:active), .button.is-white.is-focused:not(:active) {\n box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); }\n .button.is-white:active, .button.is-white.is-active {\n background-color: #f2f2f2;\n border-color: transparent;\n color: #0a0a0a; }\n .button.is-white[disabled] {\n background-color: white;\n border-color: transparent;\n box-shadow: none; }\n .button.is-white.is-inverted {\n background-color: #0a0a0a;\n color: white; }\n .button.is-white.is-inverted:hover {\n background-color: black; }\n .button.is-white.is-inverted[disabled] {\n background-color: #0a0a0a;\n border-color: transparent;\n box-shadow: none;\n color: white; }\n .button.is-white.is-loading:after {\n border-color: transparent transparent #0a0a0a #0a0a0a !important; }\n .button.is-white.is-outlined {\n background-color: transparent;\n border-color: white;\n color: white; }\n .button.is-white.is-outlined:hover, .button.is-white.is-outlined:focus {\n background-color: white;\n border-color: white;\n color: #0a0a0a; }\n .button.is-white.is-outlined.is-loading:after {\n border-color: transparent transparent white white !important; }\n .button.is-white.is-outlined[disabled] {\n background-color: transparent;\n border-color: white;\n box-shadow: none;\n color: white; }\n .button.is-white.is-inverted.is-outlined {\n background-color: transparent;\n border-color: #0a0a0a;\n color: #0a0a0a; }\n .button.is-white.is-inverted.is-outlined:hover, .button.is-white.is-inverted.is-outlined:focus {\n background-color: #0a0a0a;\n color: white; }\n .button.is-white.is-inverted.is-outlined[disabled] {\n background-color: transparent;\n border-color: #0a0a0a;\n box-shadow: none;\n color: #0a0a0a; }\n .button.is-black {\n background-color: #0a0a0a;\n border-color: transparent;\n color: white; }\n .button.is-black:hover, .button.is-black.is-hovered {\n background-color: #040404;\n border-color: transparent;\n color: white; }\n .button.is-black:focus, .button.is-black.is-focused {\n border-color: transparent;\n color: white; }\n .button.is-black:focus:not(:active), .button.is-black.is-focused:not(:active) {\n box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); }\n .button.is-black:active, .button.is-black.is-active {\n background-color: black;\n border-color: transparent;\n color: white; }\n .button.is-black[disabled] {\n background-color: #0a0a0a;\n border-color: transparent;\n box-shadow: none; }\n .button.is-black.is-inverted {\n background-color: white;\n color: #0a0a0a; }\n .button.is-black.is-inverted:hover {\n background-color: #f2f2f2; }\n .button.is-black.is-inverted[disabled] {\n background-color: white;\n border-color: transparent;\n box-shadow: none;\n color: #0a0a0a; }\n .button.is-black.is-loading:after {\n border-color: transparent transparent white white !important; }\n .button.is-black.is-outlined {\n background-color: transparent;\n border-color: #0a0a0a;\n color: #0a0a0a; }\n .button.is-black.is-outlined:hover, .button.is-black.is-outlined:focus {\n background-color: #0a0a0a;\n border-color: #0a0a0a;\n color: white; }\n .button.is-black.is-outlined.is-loading:after {\n border-color: transparent transparent #0a0a0a #0a0a0a !important; }\n .button.is-black.is-outlined[disabled] {\n background-color: transparent;\n border-color: #0a0a0a;\n box-shadow: none;\n color: #0a0a0a; }\n .button.is-black.is-inverted.is-outlined {\n background-color: transparent;\n border-color: white;\n color: white; }\n .button.is-black.is-inverted.is-outlined:hover, .button.is-black.is-inverted.is-outlined:focus {\n background-color: white;\n color: #0a0a0a; }\n .button.is-black.is-inverted.is-outlined[disabled] {\n background-color: transparent;\n border-color: white;\n box-shadow: none;\n color: white; }\n .button.is-light {\n background-color: whitesmoke;\n border-color: transparent;\n color: #363636; }\n .button.is-light:hover, .button.is-light.is-hovered {\n background-color: #eeeeee;\n border-color: transparent;\n color: #363636; }\n .button.is-light:focus, .button.is-light.is-focused {\n border-color: transparent;\n color: #363636; }\n .button.is-light:focus:not(:active), .button.is-light.is-focused:not(:active) {\n box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); }\n .button.is-light:active, .button.is-light.is-active {\n background-color: #e8e8e8;\n border-color: transparent;\n color: #363636; }\n .button.is-light[disabled] {\n background-color: whitesmoke;\n border-color: transparent;\n box-shadow: none; }\n .button.is-light.is-inverted {\n background-color: #363636;\n color: whitesmoke; }\n .button.is-light.is-inverted:hover {\n background-color: #292929; }\n .button.is-light.is-inverted[disabled] {\n background-color: #363636;\n border-color: transparent;\n box-shadow: none;\n color: whitesmoke; }\n .button.is-light.is-loading:after {\n border-color: transparent transparent #363636 #363636 !important; }\n .button.is-light.is-outlined {\n background-color: transparent;\n border-color: whitesmoke;\n color: whitesmoke; }\n .button.is-light.is-outlined:hover, .button.is-light.is-outlined:focus {\n background-color: whitesmoke;\n border-color: whitesmoke;\n color: #363636; }\n .button.is-light.is-outlined.is-loading:after {\n border-color: transparent transparent whitesmoke whitesmoke !important; }\n .button.is-light.is-outlined[disabled] {\n background-color: transparent;\n border-color: whitesmoke;\n box-shadow: none;\n color: whitesmoke; }\n .button.is-light.is-inverted.is-outlined {\n background-color: transparent;\n border-color: #363636;\n color: #363636; }\n .button.is-light.is-inverted.is-outlined:hover, .button.is-light.is-inverted.is-outlined:focus {\n background-color: #363636;\n color: whitesmoke; }\n .button.is-light.is-inverted.is-outlined[disabled] {\n background-color: transparent;\n border-color: #363636;\n box-shadow: none;\n color: #363636; }\n .button.is-dark {\n background-color: #363636;\n border-color: transparent;\n color: whitesmoke; }\n .button.is-dark:hover, .button.is-dark.is-hovered {\n background-color: #2f2f2f;\n border-color: transparent;\n color: whitesmoke; }\n .button.is-dark:focus, .button.is-dark.is-focused {\n border-color: transparent;\n color: whitesmoke; }\n .button.is-dark:focus:not(:active), .button.is-dark.is-focused:not(:active) {\n box-shadow: 0 0 0 0.125em rgba(54, 54, 54, 0.25); }\n .button.is-dark:active, .button.is-dark.is-active {\n background-color: #292929;\n border-color: transparent;\n color: whitesmoke; }\n .button.is-dark[disabled] {\n background-color: #363636;\n border-color: transparent;\n box-shadow: none; }\n .button.is-dark.is-inverted {\n background-color: whitesmoke;\n color: #363636; }\n .button.is-dark.is-inverted:hover {\n background-color: #e8e8e8; }\n .button.is-dark.is-inverted[disabled] {\n background-color: whitesmoke;\n border-color: transparent;\n box-shadow: none;\n color: #363636; }\n .button.is-dark.is-loading:after {\n border-color: transparent transparent whitesmoke whitesmoke !important; }\n .button.is-dark.is-outlined {\n background-color: transparent;\n border-color: #363636;\n color: #363636; }\n .button.is-dark.is-outlined:hover, .button.is-dark.is-outlined:focus {\n background-color: #363636;\n border-color: #363636;\n color: whitesmoke; }\n .button.is-dark.is-outlined.is-loading:after {\n border-color: transparent transparent #363636 #363636 !important; }\n .button.is-dark.is-outlined[disabled] {\n background-color: transparent;\n border-color: #363636;\n box-shadow: none;\n color: #363636; }\n .button.is-dark.is-inverted.is-outlined {\n background-color: transparent;\n border-color: whitesmoke;\n color: whitesmoke; }\n .button.is-dark.is-inverted.is-outlined:hover, .button.is-dark.is-inverted.is-outlined:focus {\n background-color: whitesmoke;\n color: #363636; }\n .button.is-dark.is-inverted.is-outlined[disabled] {\n background-color: transparent;\n border-color: whitesmoke;\n box-shadow: none;\n color: whitesmoke; }\n .button.is-primary {\n background-color: #00d1b2;\n border-color: transparent;\n color: #fff; }\n .button.is-primary:hover, .button.is-primary.is-hovered {\n background-color: #00c4a7;\n border-color: transparent;\n color: #fff; }\n .button.is-primary:focus, .button.is-primary.is-focused {\n border-color: transparent;\n color: #fff; }\n .button.is-primary:focus:not(:active), .button.is-primary.is-focused:not(:active) {\n box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25); }\n .button.is-primary:active, .button.is-primary.is-active {\n background-color: #00b89c;\n border-color: transparent;\n color: #fff; }\n .button.is-primary[disabled] {\n background-color: #00d1b2;\n border-color: transparent;\n box-shadow: none; }\n .button.is-primary.is-inverted {\n background-color: #fff;\n color: #00d1b2; }\n .button.is-primary.is-inverted:hover {\n background-color: #f2f2f2; }\n .button.is-primary.is-inverted[disabled] {\n background-color: #fff;\n border-color: transparent;\n box-shadow: none;\n color: #00d1b2; }\n .button.is-primary.is-loading:after {\n border-color: transparent transparent #fff #fff !important; }\n .button.is-primary.is-outlined {\n background-color: transparent;\n border-color: #00d1b2;\n color: #00d1b2; }\n .button.is-primary.is-outlined:hover, .button.is-primary.is-outlined:focus {\n background-color: #00d1b2;\n border-color: #00d1b2;\n color: #fff; }\n .button.is-primary.is-outlined.is-loading:after {\n border-color: transparent transparent #00d1b2 #00d1b2 !important; }\n .button.is-primary.is-outlined[disabled] {\n background-color: transparent;\n border-color: #00d1b2;\n box-shadow: none;\n color: #00d1b2; }\n .button.is-primary.is-inverted.is-outlined {\n background-color: transparent;\n border-color: #fff;\n color: #fff; }\n .button.is-primary.is-inverted.is-outlined:hover, .button.is-primary.is-inverted.is-outlined:focus {\n background-color: #fff;\n color: #00d1b2; }\n .button.is-primary.is-inverted.is-outlined[disabled] {\n background-color: transparent;\n border-color: #fff;\n box-shadow: none;\n color: #fff; }\n .button.is-link {\n background-color: #3273dc;\n border-color: transparent;\n color: #fff; }\n .button.is-link:hover, .button.is-link.is-hovered {\n background-color: #276cda;\n border-color: transparent;\n color: #fff; }\n .button.is-link:focus, .button.is-link.is-focused {\n border-color: transparent;\n color: #fff; }\n .button.is-link:focus:not(:active), .button.is-link.is-focused:not(:active) {\n box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); }\n .button.is-link:active, .button.is-link.is-active {\n background-color: #2366d1;\n border-color: transparent;\n color: #fff; }\n .button.is-link[disabled] {\n background-color: #3273dc;\n border-color: transparent;\n box-shadow: none; }\n .button.is-link.is-inverted {\n background-color: #fff;\n color: #3273dc; }\n .button.is-link.is-inverted:hover {\n background-color: #f2f2f2; }\n .button.is-link.is-inverted[disabled] {\n background-color: #fff;\n border-color: transparent;\n box-shadow: none;\n color: #3273dc; }\n .button.is-link.is-loading:after {\n border-color: transparent transparent #fff #fff !important; }\n .button.is-link.is-outlined {\n background-color: transparent;\n border-color: #3273dc;\n color: #3273dc; }\n .button.is-link.is-outlined:hover, .button.is-link.is-outlined:focus {\n background-color: #3273dc;\n border-color: #3273dc;\n color: #fff; }\n .button.is-link.is-outlined.is-loading:after {\n border-color: transparent transparent #3273dc #3273dc !important; }\n .button.is-link.is-outlined[disabled] {\n background-color: transparent;\n border-color: #3273dc;\n box-shadow: none;\n color: #3273dc; }\n .button.is-link.is-inverted.is-outlined {\n background-color: transparent;\n border-color: #fff;\n color: #fff; }\n .button.is-link.is-inverted.is-outlined:hover, .button.is-link.is-inverted.is-outlined:focus {\n background-color: #fff;\n color: #3273dc; }\n .button.is-link.is-inverted.is-outlined[disabled] {\n background-color: transparent;\n border-color: #fff;\n box-shadow: none;\n color: #fff; }\n .button.is-info {\n background-color: #209cee;\n border-color: transparent;\n color: #fff; }\n .button.is-info:hover, .button.is-info.is-hovered {\n background-color: #1496ed;\n border-color: transparent;\n color: #fff; }\n .button.is-info:focus, .button.is-info.is-focused {\n border-color: transparent;\n color: #fff; }\n .button.is-info:focus:not(:active), .button.is-info.is-focused:not(:active) {\n box-shadow: 0 0 0 0.125em rgba(32, 156, 238, 0.25); }\n .button.is-info:active, .button.is-info.is-active {\n background-color: #118fe4;\n border-color: transparent;\n color: #fff; }\n .button.is-info[disabled] {\n background-color: #209cee;\n border-color: transparent;\n box-shadow: none; }\n .button.is-info.is-inverted {\n background-color: #fff;\n color: #209cee; }\n .button.is-info.is-inverted:hover {\n background-color: #f2f2f2; }\n .button.is-info.is-inverted[disabled] {\n background-color: #fff;\n border-color: transparent;\n box-shadow: none;\n color: #209cee; }\n .button.is-info.is-loading:after {\n border-color: transparent transparent #fff #fff !important; }\n .button.is-info.is-outlined {\n background-color: transparent;\n border-color: #209cee;\n color: #209cee; }\n .button.is-info.is-outlined:hover, .button.is-info.is-outlined:focus {\n background-color: #209cee;\n border-color: #209cee;\n color: #fff; }\n .button.is-info.is-outlined.is-loading:after {\n border-color: transparent transparent #209cee #209cee !important; }\n .button.is-info.is-outlined[disabled] {\n background-color: transparent;\n border-color: #209cee;\n box-shadow: none;\n color: #209cee; }\n .button.is-info.is-inverted.is-outlined {\n background-color: transparent;\n border-color: #fff;\n color: #fff; }\n .button.is-info.is-inverted.is-outlined:hover, .button.is-info.is-inverted.is-outlined:focus {\n background-color: #fff;\n color: #209cee; }\n .button.is-info.is-inverted.is-outlined[disabled] {\n background-color: transparent;\n border-color: #fff;\n box-shadow: none;\n color: #fff; }\n .button.is-success {\n background-color: #23d160;\n border-color: transparent;\n color: #fff; }\n .button.is-success:hover, .button.is-success.is-hovered {\n background-color: #22c65b;\n border-color: transparent;\n color: #fff; }\n .button.is-success:focus, .button.is-success.is-focused {\n border-color: transparent;\n color: #fff; }\n .button.is-success:focus:not(:active), .button.is-success.is-focused:not(:active) {\n box-shadow: 0 0 0 0.125em rgba(35, 209, 96, 0.25); }\n .button.is-success:active, .button.is-success.is-active {\n background-color: #20bc56;\n border-color: transparent;\n color: #fff; }\n .button.is-success[disabled] {\n background-color: #23d160;\n border-color: transparent;\n box-shadow: none; }\n .button.is-success.is-inverted {\n background-color: #fff;\n color: #23d160; }\n .button.is-success.is-inverted:hover {\n background-color: #f2f2f2; }\n .button.is-success.is-inverted[disabled] {\n background-color: #fff;\n border-color: transparent;\n box-shadow: none;\n color: #23d160; }\n .button.is-success.is-loading:after {\n border-color: transparent transparent #fff #fff !important; }\n .button.is-success.is-outlined {\n background-color: transparent;\n border-color: #23d160;\n color: #23d160; }\n .button.is-success.is-outlined:hover, .button.is-success.is-outlined:focus {\n background-color: #23d160;\n border-color: #23d160;\n color: #fff; }\n .button.is-success.is-outlined.is-loading:after {\n border-color: transparent transparent #23d160 #23d160 !important; }\n .button.is-success.is-outlined[disabled] {\n background-color: transparent;\n border-color: #23d160;\n box-shadow: none;\n color: #23d160; }\n .button.is-success.is-inverted.is-outlined {\n background-color: transparent;\n border-color: #fff;\n color: #fff; }\n .button.is-success.is-inverted.is-outlined:hover, .button.is-success.is-inverted.is-outlined:focus {\n background-color: #fff;\n color: #23d160; }\n .button.is-success.is-inverted.is-outlined[disabled] {\n background-color: transparent;\n border-color: #fff;\n box-shadow: none;\n color: #fff; }\n .button.is-warning {\n background-color: #ffdd57;\n border-color: transparent;\n color: rgba(0, 0, 0, 0.7); }\n .button.is-warning:hover, .button.is-warning.is-hovered {\n background-color: #ffdb4a;\n border-color: transparent;\n color: rgba(0, 0, 0, 0.7); }\n .button.is-warning:focus, .button.is-warning.is-focused {\n border-color: transparent;\n color: rgba(0, 0, 0, 0.7); }\n .button.is-warning:focus:not(:active), .button.is-warning.is-focused:not(:active) {\n box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); }\n .button.is-warning:active, .button.is-warning.is-active {\n background-color: #ffd83d;\n border-color: transparent;\n color: rgba(0, 0, 0, 0.7); }\n .button.is-warning[disabled] {\n background-color: #ffdd57;\n border-color: transparent;\n box-shadow: none; }\n .button.is-warning.is-inverted {\n background-color: rgba(0, 0, 0, 0.7);\n color: #ffdd57; }\n .button.is-warning.is-inverted:hover {\n background-color: rgba(0, 0, 0, 0.7); }\n .button.is-warning.is-inverted[disabled] {\n background-color: rgba(0, 0, 0, 0.7);\n border-color: transparent;\n box-shadow: none;\n color: #ffdd57; }\n .button.is-warning.is-loading:after {\n border-color: transparent transparent rgba(0, 0, 0, 0.7) rgba(0, 0, 0, 0.7) !important; }\n .button.is-warning.is-outlined {\n background-color: transparent;\n border-color: #ffdd57;\n color: #ffdd57; }\n .button.is-warning.is-outlined:hover, .button.is-warning.is-outlined:focus {\n background-color: #ffdd57;\n border-color: #ffdd57;\n color: rgba(0, 0, 0, 0.7); }\n .button.is-warning.is-outlined.is-loading:after {\n border-color: transparent transparent #ffdd57 #ffdd57 !important; }\n .button.is-warning.is-outlined[disabled] {\n background-color: transparent;\n border-color: #ffdd57;\n box-shadow: none;\n color: #ffdd57; }\n .button.is-warning.is-inverted.is-outlined {\n background-color: transparent;\n border-color: rgba(0, 0, 0, 0.7);\n color: rgba(0, 0, 0, 0.7); }\n .button.is-warning.is-inverted.is-outlined:hover, .button.is-warning.is-inverted.is-outlined:focus {\n background-color: rgba(0, 0, 0, 0.7);\n color: #ffdd57; }\n .button.is-warning.is-inverted.is-outlined[disabled] {\n background-color: transparent;\n border-color: rgba(0, 0, 0, 0.7);\n box-shadow: none;\n color: rgba(0, 0, 0, 0.7); }\n .button.is-danger {\n background-color: #ff3860;\n border-color: transparent;\n color: #fff; }\n .button.is-danger:hover, .button.is-danger.is-hovered {\n background-color: #ff2b56;\n border-color: transparent;\n color: #fff; }\n .button.is-danger:focus, .button.is-danger.is-focused {\n border-color: transparent;\n color: #fff; }\n .button.is-danger:focus:not(:active), .button.is-danger.is-focused:not(:active) {\n box-shadow: 0 0 0 0.125em rgba(255, 56, 96, 0.25); }\n .button.is-danger:active, .button.is-danger.is-active {\n background-color: #ff1f4b;\n border-color: transparent;\n color: #fff; }\n .button.is-danger[disabled] {\n background-color: #ff3860;\n border-color: transparent;\n box-shadow: none; }\n .button.is-danger.is-inverted {\n background-color: #fff;\n color: #ff3860; }\n .button.is-danger.is-inverted:hover {\n background-color: #f2f2f2; }\n .button.is-danger.is-inverted[disabled] {\n background-color: #fff;\n border-color: transparent;\n box-shadow: none;\n color: #ff3860; }\n .button.is-danger.is-loading:after {\n border-color: transparent transparent #fff #fff !important; }\n .button.is-danger.is-outlined {\n background-color: transparent;\n border-color: #ff3860;\n color: #ff3860; }\n .button.is-danger.is-outlined:hover, .button.is-danger.is-outlined:focus {\n background-color: #ff3860;\n border-color: #ff3860;\n color: #fff; }\n .button.is-danger.is-outlined.is-loading:after {\n border-color: transparent transparent #ff3860 #ff3860 !important; }\n .button.is-danger.is-outlined[disabled] {\n background-color: transparent;\n border-color: #ff3860;\n box-shadow: none;\n color: #ff3860; }\n .button.is-danger.is-inverted.is-outlined {\n background-color: transparent;\n border-color: #fff;\n color: #fff; }\n .button.is-danger.is-inverted.is-outlined:hover, .button.is-danger.is-inverted.is-outlined:focus {\n background-color: #fff;\n color: #ff3860; }\n .button.is-danger.is-inverted.is-outlined[disabled] {\n background-color: transparent;\n border-color: #fff;\n box-shadow: none;\n color: #fff; }\n .button.is-small {\n border-radius: 2px;\n font-size: 0.75rem; }\n .button.is-medium {\n font-size: 1.25rem; }\n .button.is-large {\n font-size: 1.5rem; }\n .button[disabled] {\n background-color: white;\n border-color: #dbdbdb;\n box-shadow: none;\n opacity: 0.5; }\n .button.is-fullwidth {\n display: flex;\n width: 100%; }\n .button.is-loading {\n color: transparent !important;\n pointer-events: none; }\n .button.is-loading:after {\n animation: spinAround 500ms infinite linear;\n border: 2px solid #dbdbdb;\n border-radius: 290486px;\n border-right-color: transparent;\n border-top-color: transparent;\n content: "";\n display: block;\n height: 1em;\n position: relative;\n width: 1em;\n position: absolute;\n left: calc(50% - (1em / 2));\n top: calc(50% - (1em / 2));\n position: absolute !important; }\n .button.is-static {\n background-color: whitesmoke;\n border-color: #dbdbdb;\n color: #7a7a7a;\n box-shadow: none;\n pointer-events: none; }\n .button.is-rounded {\n border-radius: 290486px;\n padding-left: 1em;\n padding-right: 1em; }\n\n.buttons {\n align-items: center;\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-start; }\n .buttons .button {\n margin-bottom: 0.5rem; }\n .buttons .button:not(:last-child) {\n margin-right: 0.5rem; }\n .buttons:last-child {\n margin-bottom: -0.5rem; }\n .buttons:not(:last-child) {\n margin-bottom: 1rem; }\n .buttons.has-addons .button:not(:first-child) {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0; }\n .buttons.has-addons .button:not(:last-child) {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n margin-right: -1px; }\n .buttons.has-addons .button:last-child {\n margin-right: 0; }\n .buttons.has-addons .button:hover, .buttons.has-addons .button.is-hovered {\n z-index: 2; }\n .buttons.has-addons .button:focus, .buttons.has-addons .button.is-focused, .buttons.has-addons .button:active, .buttons.has-addons .button.is-active, .buttons.has-addons .button.is-selected {\n z-index: 3; }\n .buttons.has-addons .button:focus:hover, .buttons.has-addons .button.is-focused:hover, .buttons.has-addons .button:active:hover, .buttons.has-addons .button.is-active:hover, .buttons.has-addons .button.is-selected:hover {\n z-index: 4; }\n .buttons.is-centered {\n justify-content: center; }\n .buttons.is-right {\n justify-content: flex-end; }\n\n.input,\n.textarea {\n -moz-appearance: none;\n -webkit-appearance: none;\n align-items: center;\n border: 1px solid transparent;\n border-radius: 3px;\n box-shadow: none;\n display: inline-flex;\n font-size: 1rem;\n height: 2.25em;\n justify-content: flex-start;\n line-height: 1.5;\n padding-bottom: calc(0.375em - 1px);\n padding-left: calc(0.625em - 1px);\n padding-right: calc(0.625em - 1px);\n padding-top: calc(0.375em - 1px);\n position: relative;\n vertical-align: top;\n background-color: white;\n border-color: #dbdbdb;\n color: #363636;\n box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);\n max-width: 100%;\n width: 100%; }\n .input:focus, .input.is-focused, .input:active, .input.is-active,\n .textarea:focus,\n .textarea.is-focused,\n .textarea:active,\n .textarea.is-active {\n outline: none; }\n .input[disabled],\n .textarea[disabled] {\n cursor: not-allowed; }\n .input::-moz-placeholder,\n .textarea::-moz-placeholder {\n color: rgba(54, 54, 54, 0.3); }\n .input::-webkit-input-placeholder,\n .textarea::-webkit-input-placeholder {\n color: rgba(54, 54, 54, 0.3); }\n .input:-moz-placeholder,\n .textarea:-moz-placeholder {\n color: rgba(54, 54, 54, 0.3); }\n .input:-ms-input-placeholder,\n .textarea:-ms-input-placeholder {\n color: rgba(54, 54, 54, 0.3); }\n .input:hover, .input.is-hovered,\n .textarea:hover,\n .textarea.is-hovered {\n border-color: #b5b5b5; }\n .input:focus, .input.is-focused, .input:active, .input.is-active,\n .textarea:focus,\n .textarea.is-focused,\n .textarea:active,\n .textarea.is-active {\n border-color: #3273dc;\n box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); }\n .input[disabled],\n .textarea[disabled] {\n background-color: whitesmoke;\n border-color: whitesmoke;\n box-shadow: none;\n color: #7a7a7a; }\n .input[disabled]::-moz-placeholder,\n .textarea[disabled]::-moz-placeholder {\n color: rgba(122, 122, 122, 0.3); }\n .input[disabled]::-webkit-input-placeholder,\n .textarea[disabled]::-webkit-input-placeholder {\n color: rgba(122, 122, 122, 0.3); }\n .input[disabled]:-moz-placeholder,\n .textarea[disabled]:-moz-placeholder {\n color: rgba(122, 122, 122, 0.3); }\n .input[disabled]:-ms-input-placeholder,\n .textarea[disabled]:-ms-input-placeholder {\n color: rgba(122, 122, 122, 0.3); }\n .input[readonly],\n .textarea[readonly] {\n box-shadow: none; }\n .input.is-white,\n .textarea.is-white {\n border-color: white; }\n .input.is-white:focus, .input.is-white.is-focused, .input.is-white:active, .input.is-white.is-active,\n .textarea.is-white:focus,\n .textarea.is-white.is-focused,\n .textarea.is-white:active,\n .textarea.is-white.is-active {\n box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); }\n .input.is-black,\n .textarea.is-black {\n border-color: #0a0a0a; }\n .input.is-black:focus, .input.is-black.is-focused, .input.is-black:active, .input.is-black.is-active,\n .textarea.is-black:focus,\n .textarea.is-black.is-focused,\n .textarea.is-black:active,\n .textarea.is-black.is-active {\n box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); }\n .input.is-light,\n .textarea.is-light {\n border-color: whitesmoke; }\n .input.is-light:focus, .input.is-light.is-focused, .input.is-light:active, .input.is-light.is-active,\n .textarea.is-light:focus,\n .textarea.is-light.is-focused,\n .textarea.is-light:active,\n .textarea.is-light.is-active {\n box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); }\n .input.is-dark,\n .textarea.is-dark {\n border-color: #363636; }\n .input.is-dark:focus, .input.is-dark.is-focused, .input.is-dark:active, .input.is-dark.is-active,\n .textarea.is-dark:focus,\n .textarea.is-dark.is-focused,\n .textarea.is-dark:active,\n .textarea.is-dark.is-active {\n box-shadow: 0 0 0 0.125em rgba(54, 54, 54, 0.25); }\n .input.is-primary,\n .textarea.is-primary {\n border-color: #00d1b2; }\n .input.is-primary:focus, .input.is-primary.is-focused, .input.is-primary:active, .input.is-primary.is-active,\n .textarea.is-primary:focus,\n .textarea.is-primary.is-focused,\n .textarea.is-primary:active,\n .textarea.is-primary.is-active {\n box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25); }\n .input.is-link,\n .textarea.is-link {\n border-color: #3273dc; }\n .input.is-link:focus, .input.is-link.is-focused, .input.is-link:active, .input.is-link.is-active,\n .textarea.is-link:focus,\n .textarea.is-link.is-focused,\n .textarea.is-link:active,\n .textarea.is-link.is-active {\n box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); }\n .input.is-info,\n .textarea.is-info {\n border-color: #209cee; }\n .input.is-info:focus, .input.is-info.is-focused, .input.is-info:active, .input.is-info.is-active,\n .textarea.is-info:focus,\n .textarea.is-info.is-focused,\n .textarea.is-info:active,\n .textarea.is-info.is-active {\n box-shadow: 0 0 0 0.125em rgba(32, 156, 238, 0.25); }\n .input.is-success,\n .textarea.is-success {\n border-color: #23d160; }\n .input.is-success:focus, .input.is-success.is-focused, .input.is-success:active, .input.is-success.is-active,\n .textarea.is-success:focus,\n .textarea.is-success.is-focused,\n .textarea.is-success:active,\n .textarea.is-success.is-active {\n box-shadow: 0 0 0 0.125em rgba(35, 209, 96, 0.25); }\n .input.is-warning,\n .textarea.is-warning {\n border-color: #ffdd57; }\n .input.is-warning:focus, .input.is-warning.is-focused, .input.is-warning:active, .input.is-warning.is-active,\n .textarea.is-warning:focus,\n .textarea.is-warning.is-focused,\n .textarea.is-warning:active,\n .textarea.is-warning.is-active {\n box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); }\n .input.is-danger,\n .textarea.is-danger {\n border-color: #ff3860; }\n .input.is-danger:focus, .input.is-danger.is-focused, .input.is-danger:active, .input.is-danger.is-active,\n .textarea.is-danger:focus,\n .textarea.is-danger.is-focused,\n .textarea.is-danger:active,\n .textarea.is-danger.is-active {\n box-shadow: 0 0 0 0.125em rgba(255, 56, 96, 0.25); }\n .input.is-small,\n .textarea.is-small {\n border-radius: 2px;\n font-size: 0.75rem; }\n .input.is-medium,\n .textarea.is-medium {\n font-size: 1.25rem; }\n .input.is-large,\n .textarea.is-large {\n font-size: 1.5rem; }\n .input.is-fullwidth,\n .textarea.is-fullwidth {\n display: block;\n width: 100%; }\n .input.is-inline,\n .textarea.is-inline {\n display: inline;\n width: auto; }\n\n.input.is-rounded {\n border-radius: 290486px;\n padding-left: 1em;\n padding-right: 1em; }\n\n.input.is-static {\n background-color: transparent;\n border-color: transparent;\n box-shadow: none;\n padding-left: 0;\n padding-right: 0; }\n\n.textarea {\n display: block;\n max-width: 100%;\n min-width: 100%;\n padding: 0.625em;\n resize: vertical; }\n .textarea:not([rows]) {\n max-height: 600px;\n min-height: 120px; }\n .textarea[rows] {\n height: unset; }\n .textarea.has-fixed-size {\n resize: none; }\n\n.checkbox,\n.radio {\n cursor: pointer;\n display: inline-block;\n line-height: 1.25;\n position: relative; }\n .checkbox input,\n .radio input {\n cursor: pointer; }\n .checkbox:hover,\n .radio:hover {\n color: #363636; }\n .checkbox[disabled],\n .radio[disabled] {\n color: #7a7a7a;\n cursor: not-allowed; }\n\n.radio + .radio {\n margin-left: 0.5em; }\n\n.select {\n display: inline-block;\n max-width: 100%;\n position: relative;\n vertical-align: top; }\n .select:not(.is-multiple) {\n height: 2.25em; }\n .select:not(.is-multiple)::after {\n border: 1px solid #3273dc;\n border-right: 0;\n border-top: 0;\n content: " ";\n display: block;\n height: 0.5em;\n pointer-events: none;\n position: absolute;\n transform: rotate(-45deg);\n transform-origin: center;\n width: 0.5em;\n margin-top: -0.375em;\n right: 1.125em;\n top: 50%;\n z-index: 4; }\n .select.is-rounded select {\n border-radius: 290486px;\n padding-left: 1em; }\n .select select {\n -moz-appearance: none;\n -webkit-appearance: none;\n align-items: center;\n border: 1px solid transparent;\n border-radius: 3px;\n box-shadow: none;\n display: inline-flex;\n font-size: 1rem;\n height: 2.25em;\n justify-content: flex-start;\n line-height: 1.5;\n padding-bottom: calc(0.375em - 1px);\n padding-left: calc(0.625em - 1px);\n padding-right: calc(0.625em - 1px);\n padding-top: calc(0.375em - 1px);\n position: relative;\n vertical-align: top;\n background-color: white;\n border-color: #dbdbdb;\n color: #363636;\n cursor: pointer;\n display: block;\n font-size: 1em;\n max-width: 100%;\n outline: none; }\n .select select:focus, .select select.is-focused, .select select:active, .select select.is-active {\n outline: none; }\n .select select[disabled] {\n cursor: not-allowed; }\n .select select::-moz-placeholder {\n color: rgba(54, 54, 54, 0.3); }\n .select select::-webkit-input-placeholder {\n color: rgba(54, 54, 54, 0.3); }\n .select select:-moz-placeholder {\n color: rgba(54, 54, 54, 0.3); }\n .select select:-ms-input-placeholder {\n color: rgba(54, 54, 54, 0.3); }\n .select select:hover, .select select.is-hovered {\n border-color: #b5b5b5; }\n .select select:focus, .select select.is-focused, .select select:active, .select select.is-active {\n border-color: #3273dc;\n box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); }\n .select select[disabled] {\n background-color: whitesmoke;\n border-color: whitesmoke;\n box-shadow: none;\n color: #7a7a7a; }\n .select select[disabled]::-moz-placeholder {\n color: rgba(122, 122, 122, 0.3); }\n .select select[disabled]::-webkit-input-placeholder {\n color: rgba(122, 122, 122, 0.3); }\n .select select[disabled]:-moz-placeholder {\n color: rgba(122, 122, 122, 0.3); }\n .select select[disabled]:-ms-input-placeholder {\n color: rgba(122, 122, 122, 0.3); }\n .select select::-ms-expand {\n display: none; }\n .select select[disabled]:hover {\n border-color: whitesmoke; }\n .select select:not([multiple]) {\n padding-right: 2.5em; }\n .select select[multiple] {\n height: unset;\n padding: 0; }\n .select select[multiple] option {\n padding: 0.5em 1em; }\n .select:hover::after {\n border-color: #363636; }\n .select.is-white select {\n border-color: white; }\n .select.is-white select:focus, .select.is-white select.is-focused, .select.is-white select:active, .select.is-white select.is-active {\n box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); }\n .select.is-black select {\n border-color: #0a0a0a; }\n .select.is-black select:focus, .select.is-black select.is-focused, .select.is-black select:active, .select.is-black select.is-active {\n box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); }\n .select.is-light select {\n border-color: whitesmoke; }\n .select.is-light select:focus, .select.is-light select.is-focused, .select.is-light select:active, .select.is-light select.is-active {\n box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); }\n .select.is-dark select {\n border-color: #363636; }\n .select.is-dark select:focus, .select.is-dark select.is-focused, .select.is-dark select:active, .select.is-dark select.is-active {\n box-shadow: 0 0 0 0.125em rgba(54, 54, 54, 0.25); }\n .select.is-primary select {\n border-color: #00d1b2; }\n .select.is-primary select:focus, .select.is-primary select.is-focused, .select.is-primary select:active, .select.is-primary select.is-active {\n box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25); }\n .select.is-link select {\n border-color: #3273dc; }\n .select.is-link select:focus, .select.is-link select.is-focused, .select.is-link select:active, .select.is-link select.is-active {\n box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); }\n .select.is-info select {\n border-color: #209cee; }\n .select.is-info select:focus, .select.is-info select.is-focused, .select.is-info select:active, .select.is-info select.is-active {\n box-shadow: 0 0 0 0.125em rgba(32, 156, 238, 0.25); }\n .select.is-success select {\n border-color: #23d160; }\n .select.is-success select:focus, .select.is-success select.is-focused, .select.is-success select:active, .select.is-success select.is-active {\n box-shadow: 0 0 0 0.125em rgba(35, 209, 96, 0.25); }\n .select.is-warning select {\n border-color: #ffdd57; }\n .select.is-warning select:focus, .select.is-warning select.is-focused, .select.is-warning select:active, .select.is-warning select.is-active {\n box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); }\n .select.is-danger select {\n border-color: #ff3860; }\n .select.is-danger select:focus, .select.is-danger select.is-focused, .select.is-danger select:active, .select.is-danger select.is-active {\n box-shadow: 0 0 0 0.125em rgba(255, 56, 96, 0.25); }\n .select.is-small {\n border-radius: 2px;\n font-size: 0.75rem; }\n .select.is-medium {\n font-size: 1.25rem; }\n .select.is-large {\n font-size: 1.5rem; }\n .select.is-disabled::after {\n border-color: #7a7a7a; }\n .select.is-fullwidth {\n width: 100%; }\n .select.is-fullwidth select {\n width: 100%; }\n .select.is-loading::after {\n animation: spinAround 500ms infinite linear;\n border: 2px solid #dbdbdb;\n border-radius: 290486px;\n border-right-color: transparent;\n border-top-color: transparent;\n content: "";\n display: block;\n height: 1em;\n position: relative;\n width: 1em;\n margin-top: 0;\n position: absolute;\n right: 0.625em;\n top: 0.625em;\n transform: none; }\n .select.is-loading.is-small:after {\n font-size: 0.75rem; }\n .select.is-loading.is-medium:after {\n font-size: 1.25rem; }\n .select.is-loading.is-large:after {\n font-size: 1.5rem; }\n\n.file {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n align-items: stretch;\n display: flex;\n justify-content: flex-start;\n position: relative; }\n .file.is-white .file-cta {\n background-color: white;\n border-color: transparent;\n color: #0a0a0a; }\n .file.is-white:hover .file-cta, .file.is-white.is-hovered .file-cta {\n background-color: #f9f9f9;\n border-color: transparent;\n color: #0a0a0a; }\n .file.is-white:focus .file-cta, .file.is-white.is-focused .file-cta {\n border-color: transparent;\n box-shadow: 0 0 0.5em rgba(255, 255, 255, 0.25);\n color: #0a0a0a; }\n .file.is-white:active .file-cta, .file.is-white.is-active .file-cta {\n background-color: #f2f2f2;\n border-color: transparent;\n color: #0a0a0a; }\n .file.is-black .file-cta {\n background-color: #0a0a0a;\n border-color: transparent;\n color: white; }\n .file.is-black:hover .file-cta, .file.is-black.is-hovered .file-cta {\n background-color: #040404;\n border-color: transparent;\n color: white; }\n .file.is-black:focus .file-cta, .file.is-black.is-focused .file-cta {\n border-color: transparent;\n box-shadow: 0 0 0.5em rgba(10, 10, 10, 0.25);\n color: white; }\n .file.is-black:active .file-cta, .file.is-black.is-active .file-cta {\n background-color: black;\n border-color: transparent;\n color: white; }\n .file.is-light .file-cta {\n background-color: whitesmoke;\n border-color: transparent;\n color: #363636; }\n .file.is-light:hover .file-cta, .file.is-light.is-hovered .file-cta {\n background-color: #eeeeee;\n border-color: transparent;\n color: #363636; }\n .file.is-light:focus .file-cta, .file.is-light.is-focused .file-cta {\n border-color: transparent;\n box-shadow: 0 0 0.5em rgba(245, 245, 245, 0.25);\n color: #363636; }\n .file.is-light:active .file-cta, .file.is-light.is-active .file-cta {\n background-color: #e8e8e8;\n border-color: transparent;\n color: #363636; }\n .file.is-dark .file-cta {\n background-color: #363636;\n border-color: transparent;\n color: whitesmoke; }\n .file.is-dark:hover .file-cta, .file.is-dark.is-hovered .file-cta {\n background-color: #2f2f2f;\n border-color: transparent;\n color: whitesmoke; }\n .file.is-dark:focus .file-cta, .file.is-dark.is-focused .file-cta {\n border-color: transparent;\n box-shadow: 0 0 0.5em rgba(54, 54, 54, 0.25);\n color: whitesmoke; }\n .file.is-dark:active .file-cta, .file.is-dark.is-active .file-cta {\n background-color: #292929;\n border-color: transparent;\n color: whitesmoke; }\n .file.is-primary .file-cta {\n background-color: #00d1b2;\n border-color: transparent;\n color: #fff; }\n .file.is-primary:hover .file-cta, .file.is-primary.is-hovered .file-cta {\n background-color: #00c4a7;\n border-color: transparent;\n color: #fff; }\n .file.is-primary:focus .file-cta, .file.is-primary.is-focused .file-cta {\n border-color: transparent;\n box-shadow: 0 0 0.5em rgba(0, 209, 178, 0.25);\n color: #fff; }\n .file.is-primary:active .file-cta, .file.is-primary.is-active .file-cta {\n background-color: #00b89c;\n border-color: transparent;\n color: #fff; }\n .file.is-link .file-cta {\n background-color: #3273dc;\n border-color: transparent;\n color: #fff; }\n .file.is-link:hover .file-cta, .file.is-link.is-hovered .file-cta {\n background-color: #276cda;\n border-color: transparent;\n color: #fff; }\n .file.is-link:focus .file-cta, .file.is-link.is-focused .file-cta {\n border-color: transparent;\n box-shadow: 0 0 0.5em rgba(50, 115, 220, 0.25);\n color: #fff; }\n .file.is-link:active .file-cta, .file.is-link.is-active .file-cta {\n background-color: #2366d1;\n border-color: transparent;\n color: #fff; }\n .file.is-info .file-cta {\n background-color: #209cee;\n border-color: transparent;\n color: #fff; }\n .file.is-info:hover .file-cta, .file.is-info.is-hovered .file-cta {\n background-color: #1496ed;\n border-color: transparent;\n color: #fff; }\n .file.is-info:focus .file-cta, .file.is-info.is-focused .file-cta {\n border-color: transparent;\n box-shadow: 0 0 0.5em rgba(32, 156, 238, 0.25);\n color: #fff; }\n .file.is-info:active .file-cta, .file.is-info.is-active .file-cta {\n background-color: #118fe4;\n border-color: transparent;\n color: #fff; }\n .file.is-success .file-cta {\n background-color: #23d160;\n border-color: transparent;\n color: #fff; }\n .file.is-success:hover .file-cta, .file.is-success.is-hovered .file-cta {\n background-color: #22c65b;\n border-color: transparent;\n color: #fff; }\n .file.is-success:focus .file-cta, .file.is-success.is-focused .file-cta {\n border-color: transparent;\n box-shadow: 0 0 0.5em rgba(35, 209, 96, 0.25);\n color: #fff; }\n .file.is-success:active .file-cta, .file.is-success.is-active .file-cta {\n background-color: #20bc56;\n border-color: transparent;\n color: #fff; }\n .file.is-warning .file-cta {\n background-color: #ffdd57;\n border-color: transparent;\n color: rgba(0, 0, 0, 0.7); }\n .file.is-warning:hover .file-cta, .file.is-warning.is-hovered .file-cta {\n background-color: #ffdb4a;\n border-color: transparent;\n color: rgba(0, 0, 0, 0.7); }\n .file.is-warning:focus .file-cta, .file.is-warning.is-focused .file-cta {\n border-color: transparent;\n box-shadow: 0 0 0.5em rgba(255, 221, 87, 0.25);\n color: rgba(0, 0, 0, 0.7); }\n .file.is-warning:active .file-cta, .file.is-warning.is-active .file-cta {\n background-color: #ffd83d;\n border-color: transparent;\n color: rgba(0, 0, 0, 0.7); }\n .file.is-danger .file-cta {\n background-color: #ff3860;\n border-color: transparent;\n color: #fff; }\n .file.is-danger:hover .file-cta, .file.is-danger.is-hovered .file-cta {\n background-color: #ff2b56;\n border-color: transparent;\n color: #fff; }\n .file.is-danger:focus .file-cta, .file.is-danger.is-focused .file-cta {\n border-color: transparent;\n box-shadow: 0 0 0.5em rgba(255, 56, 96, 0.25);\n color: #fff; }\n .file.is-danger:active .file-cta, .file.is-danger.is-active .file-cta {\n background-color: #ff1f4b;\n border-color: transparent;\n color: #fff; }\n .file.is-small {\n font-size: 0.75rem; }\n .file.is-medium {\n font-size: 1.25rem; }\n .file.is-medium .file-icon .fa {\n font-size: 21px; }\n .file.is-large {\n font-size: 1.5rem; }\n .file.is-large .file-icon .fa {\n font-size: 28px; }\n .file.has-name .file-cta {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0; }\n .file.has-name .file-name {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0; }\n .file.has-name.is-empty .file-cta {\n border-radius: 3px; }\n .file.has-name.is-empty .file-name {\n display: none; }\n .file.is-boxed .file-label {\n flex-direction: column; }\n .file.is-boxed .file-cta {\n flex-direction: column;\n height: auto;\n padding: 1em 3em; }\n .file.is-boxed .file-name {\n border-width: 0 1px 1px; }\n .file.is-boxed .file-icon {\n height: 1.5em;\n width: 1.5em; }\n .file.is-boxed .file-icon .fa {\n font-size: 21px; }\n .file.is-boxed.is-small .file-icon .fa {\n font-size: 14px; }\n .file.is-boxed.is-medium .file-icon .fa {\n font-size: 28px; }\n .file.is-boxed.is-large .file-icon .fa {\n font-size: 35px; }\n .file.is-boxed.has-name .file-cta {\n border-radius: 3px 3px 0 0; }\n .file.is-boxed.has-name .file-name {\n border-radius: 0 0 3px 3px;\n border-width: 0 1px 1px; }\n .file.is-centered {\n justify-content: center; }\n .file.is-fullwidth .file-label {\n width: 100%; }\n .file.is-fullwidth .file-name {\n flex-grow: 1;\n max-width: none; }\n .file.is-right {\n justify-content: flex-end; }\n .file.is-right .file-cta {\n border-radius: 0 3px 3px 0; }\n .file.is-right .file-name {\n border-radius: 3px 0 0 3px;\n border-width: 1px 0 1px 1px;\n order: -1; }\n\n.file-label {\n align-items: stretch;\n display: flex;\n cursor: pointer;\n justify-content: flex-start;\n overflow: hidden;\n position: relative; }\n .file-label:hover .file-cta {\n background-color: #eeeeee;\n color: #363636; }\n .file-label:hover .file-name {\n border-color: #d5d5d5; }\n .file-label:active .file-cta {\n background-color: #e8e8e8;\n color: #363636; }\n .file-label:active .file-name {\n border-color: #cfcfcf; }\n\n.file-input {\n height: 0.01em;\n left: 0;\n outline: none;\n position: absolute;\n top: 0;\n width: 0.01em; }\n\n.file-cta,\n.file-name {\n -moz-appearance: none;\n -webkit-appearance: none;\n align-items: center;\n border: 1px solid transparent;\n border-radius: 3px;\n box-shadow: none;\n display: inline-flex;\n font-size: 1rem;\n height: 2.25em;\n justify-content: flex-start;\n line-height: 1.5;\n padding-bottom: calc(0.375em - 1px);\n padding-left: calc(0.625em - 1px);\n padding-right: calc(0.625em - 1px);\n padding-top: calc(0.375em - 1px);\n position: relative;\n vertical-align: top;\n border-color: #dbdbdb;\n border-radius: 3px;\n font-size: 1em;\n padding-left: 1em;\n padding-right: 1em;\n white-space: nowrap; }\n .file-cta:focus, .file-cta.is-focused, .file-cta:active, .file-cta.is-active,\n .file-name:focus,\n .file-name.is-focused,\n .file-name:active,\n .file-name.is-active {\n outline: none; }\n .file-cta[disabled],\n .file-name[disabled] {\n cursor: not-allowed; }\n\n.file-cta {\n background-color: whitesmoke;\n color: #4a4a4a; }\n\n.file-name {\n border-color: #dbdbdb;\n border-style: solid;\n border-width: 1px 1px 1px 0;\n display: block;\n max-width: 16em;\n overflow: hidden;\n text-align: left;\n text-overflow: ellipsis; }\n\n.file-icon {\n align-items: center;\n display: flex;\n height: 1em;\n justify-content: center;\n margin-right: 0.5em;\n width: 1em; }\n .file-icon .fa {\n font-size: 14px; }\n\n.label {\n color: #363636;\n display: block;\n font-size: 1rem;\n font-weight: 700; }\n .label:not(:last-child) {\n margin-bottom: 0.5em; }\n .label.is-small {\n font-size: 0.75rem; }\n .label.is-medium {\n font-size: 1.25rem; }\n .label.is-large {\n font-size: 1.5rem; }\n\n.help {\n display: block;\n font-size: 0.75rem;\n margin-top: 0.25rem; }\n .help.is-white {\n color: white; }\n .help.is-black {\n color: #0a0a0a; }\n .help.is-light {\n color: whitesmoke; }\n .help.is-dark {\n color: #363636; }\n .help.is-primary {\n color: #00d1b2; }\n .help.is-link {\n color: #3273dc; }\n .help.is-info {\n color: #209cee; }\n .help.is-success {\n color: #23d160; }\n .help.is-warning {\n color: #ffdd57; }\n .help.is-danger {\n color: #ff3860; }\n\n.field:not(:last-child) {\n margin-bottom: 0.75rem; }\n\n.field.has-addons {\n display: flex;\n justify-content: flex-start; }\n .field.has-addons .control:not(:last-child) {\n margin-right: -1px; }\n .field.has-addons .control:not(:first-child):not(:last-child) .button,\n .field.has-addons .control:not(:first-child):not(:last-child) .input,\n .field.has-addons .control:not(:first-child):not(:last-child) .select select {\n border-radius: 0; }\n .field.has-addons .control:first-child .button,\n .field.has-addons .control:first-child .input,\n .field.has-addons .control:first-child .select select {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0; }\n .field.has-addons .control:last-child .button,\n .field.has-addons .control:last-child .input,\n .field.has-addons .control:last-child .select select {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0; }\n .field.has-addons .control .button:hover, .field.has-addons .control .button.is-hovered,\n .field.has-addons .control .input:hover,\n .field.has-addons .control .input.is-hovered,\n .field.has-addons .control .select select:hover,\n .field.has-addons .control .select select.is-hovered {\n z-index: 2; }\n .field.has-addons .control .button:focus, .field.has-addons .control .button.is-focused, .field.has-addons .control .button:active, .field.has-addons .control .button.is-active,\n .field.has-addons .control .input:focus,\n .field.has-addons .control .input.is-focused,\n .field.has-addons .control .input:active,\n .field.has-addons .control .input.is-active,\n .field.has-addons .control .select select:focus,\n .field.has-addons .control .select select.is-focused,\n .field.has-addons .control .select select:active,\n .field.has-addons .control .select select.is-active {\n z-index: 3; }\n .field.has-addons .control .button:focus:hover, .field.has-addons .control .button.is-focused:hover, .field.has-addons .control .button:active:hover, .field.has-addons .control .button.is-active:hover,\n .field.has-addons .control .input:focus:hover,\n .field.has-addons .control .input.is-focused:hover,\n .field.has-addons .control .input:active:hover,\n .field.has-addons .control .input.is-active:hover,\n .field.has-addons .control .select select:focus:hover,\n .field.has-addons .control .select select.is-focused:hover,\n .field.has-addons .control .select select:active:hover,\n .field.has-addons .control .select select.is-active:hover {\n z-index: 4; }\n .field.has-addons .control.is-expanded {\n flex-grow: 1; }\n .field.has-addons.has-addons-centered {\n justify-content: center; }\n .field.has-addons.has-addons-right {\n justify-content: flex-end; }\n .field.has-addons.has-addons-fullwidth .control {\n flex-grow: 1;\n flex-shrink: 0; }\n\n.field.is-grouped {\n display: flex;\n justify-content: flex-start; }\n .field.is-grouped > .control {\n flex-shrink: 0; }\n .field.is-grouped > .control:not(:last-child) {\n margin-bottom: 0;\n margin-right: 0.75rem; }\n .field.is-grouped > .control.is-expanded {\n flex-grow: 1;\n flex-shrink: 1; }\n .field.is-grouped.is-grouped-centered {\n justify-content: center; }\n .field.is-grouped.is-grouped-right {\n justify-content: flex-end; }\n .field.is-grouped.is-grouped-multiline {\n flex-wrap: wrap; }\n .field.is-grouped.is-grouped-multiline > .control:last-child, .field.is-grouped.is-grouped-multiline > .control:not(:last-child) {\n margin-bottom: 0.75rem; }\n .field.is-grouped.is-grouped-multiline:last-child {\n margin-bottom: -0.75rem; }\n .field.is-grouped.is-grouped-multiline:not(:last-child) {\n margin-bottom: 0; }\n\n@media screen and (min-width: 769px), print {\n .field.is-horizontal {\n display: flex; } }\n\n.field-label .label {\n font-size: inherit; }\n\n@media screen and (max-width: 768px) {\n .field-label {\n margin-bottom: 0.5rem; } }\n\n@media screen and (min-width: 769px), print {\n .field-label {\n flex-basis: 0;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 1.5rem;\n text-align: right; }\n .field-label.is-small {\n font-size: 0.75rem;\n padding-top: 0.375em; }\n .field-label.is-normal {\n padding-top: 0.375em; }\n .field-label.is-medium {\n font-size: 1.25rem;\n padding-top: 0.375em; }\n .field-label.is-large {\n font-size: 1.5rem;\n padding-top: 0.375em; } }\n\n.field-body .field .field {\n margin-bottom: 0; }\n\n@media screen and (min-width: 769px), print {\n .field-body {\n display: flex;\n flex-basis: 0;\n flex-grow: 5;\n flex-shrink: 1; }\n .field-body .field {\n margin-bottom: 0; }\n .field-body > .field {\n flex-shrink: 1; }\n .field-body > .field:not(.is-narrow) {\n flex-grow: 1; }\n .field-body > .field:not(:last-child) {\n margin-right: 0.75rem; } }\n\n.control {\n font-size: 1rem;\n position: relative;\n text-align: left; }\n .control.has-icon .icon {\n color: #dbdbdb;\n height: 2.25em;\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 2.25em;\n z-index: 4; }\n .control.has-icon .input:focus + .icon {\n color: #7a7a7a; }\n .control.has-icon .input.is-small + .icon {\n font-size: 0.75rem; }\n .control.has-icon .input.is-medium + .icon {\n font-size: 1.25rem; }\n .control.has-icon .input.is-large + .icon {\n font-size: 1.5rem; }\n .control.has-icon:not(.has-icon-right) .icon {\n left: 0; }\n .control.has-icon:not(.has-icon-right) .input {\n padding-left: 2.25em; }\n .control.has-icon.has-icon-right .icon {\n right: 0; }\n .control.has-icon.has-icon-right .input {\n padding-right: 2.25em; }\n .control.has-icons-left .input:focus ~ .icon,\n .control.has-icons-left .select:focus ~ .icon, .control.has-icons-right .input:focus ~ .icon,\n .control.has-icons-right .select:focus ~ .icon {\n color: #7a7a7a; }\n .control.has-icons-left .input.is-small ~ .icon,\n .control.has-icons-left .select.is-small ~ .icon, .control.has-icons-right .input.is-small ~ .icon,\n .control.has-icons-right .select.is-small ~ .icon {\n font-size: 0.75rem; }\n .control.has-icons-left .input.is-medium ~ .icon,\n .control.has-icons-left .select.is-medium ~ .icon, .control.has-icons-right .input.is-medium ~ .icon,\n .control.has-icons-right .select.is-medium ~ .icon {\n font-size: 1.25rem; }\n .control.has-icons-left .input.is-large ~ .icon,\n .control.has-icons-left .select.is-large ~ .icon, .control.has-icons-right .input.is-large ~ .icon,\n .control.has-icons-right .select.is-large ~ .icon {\n font-size: 1.5rem; }\n .control.has-icons-left .icon, .control.has-icons-right .icon {\n color: #dbdbdb;\n height: 2.25em;\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 2.25em;\n z-index: 4; }\n .control.has-icons-left .input,\n .control.has-icons-left .select select {\n padding-left: 2.25em; }\n .control.has-icons-left .icon.is-left {\n left: 0; }\n .control.has-icons-right .input,\n .control.has-icons-right .select select {\n padding-right: 2.25em; }\n .control.has-icons-right .icon.is-right {\n right: 0; }\n .control.is-loading::after {\n animation: spinAround 500ms infinite linear;\n border: 2px solid #dbdbdb;\n border-radius: 290486px;\n border-right-color: transparent;\n border-top-color: transparent;\n content: "";\n display: block;\n height: 1em;\n position: relative;\n width: 1em;\n position: absolute !important;\n right: 0.625em;\n top: 0.625em;\n z-index: 4; }\n .control.is-loading.is-small:after {\n font-size: 0.75rem; }\n .control.is-loading.is-medium:after {\n font-size: 1.25rem; }\n .control.is-loading.is-large:after {\n font-size: 1.5rem; }\n\n.progress {\n -moz-appearance: none;\n -webkit-appearance: none;\n border: none;\n border-radius: 290486px;\n display: block;\n height: 1rem;\n overflow: hidden;\n padding: 0;\n width: 100%; }\n .progress:not(:last-child) {\n margin-bottom: 1.5rem; }\n .progress::-webkit-progress-bar {\n background-color: #dbdbdb; }\n .progress::-webkit-progress-value {\n background-color: #4a4a4a; }\n .progress::-moz-progress-bar {\n background-color: #4a4a4a; }\n .progress::-ms-fill {\n background-color: #4a4a4a;\n border: none; }\n .progress.is-white::-webkit-progress-value {\n background-color: white; }\n .progress.is-white::-moz-progress-bar {\n background-color: white; }\n .progress.is-white::-ms-fill {\n background-color: white; }\n .progress.is-black::-webkit-progress-value {\n background-color: #0a0a0a; }\n .progress.is-black::-moz-progress-bar {\n background-color: #0a0a0a; }\n .progress.is-black::-ms-fill {\n background-color: #0a0a0a; }\n .progress.is-light::-webkit-progress-value {\n background-color: whitesmoke; }\n .progress.is-light::-moz-progress-bar {\n background-color: whitesmoke; }\n .progress.is-light::-ms-fill {\n background-color: whitesmoke; }\n .progress.is-dark::-webkit-progress-value {\n background-color: #363636; }\n .progress.is-dark::-moz-progress-bar {\n background-color: #363636; }\n .progress.is-dark::-ms-fill {\n background-color: #363636; }\n .progress.is-primary::-webkit-progress-value {\n background-color: #00d1b2; }\n .progress.is-primary::-moz-progress-bar {\n background-color: #00d1b2; }\n .progress.is-primary::-ms-fill {\n background-color: #00d1b2; }\n .progress.is-link::-webkit-progress-value {\n background-color: #3273dc; }\n .progress.is-link::-moz-progress-bar {\n background-color: #3273dc; }\n .progress.is-link::-ms-fill {\n background-color: #3273dc; }\n .progress.is-info::-webkit-progress-value {\n background-color: #209cee; }\n .progress.is-info::-moz-progress-bar {\n background-color: #209cee; }\n .progress.is-info::-ms-fill {\n background-color: #209cee; }\n .progress.is-success::-webkit-progress-value {\n background-color: #23d160; }\n .progress.is-success::-moz-progress-bar {\n background-color: #23d160; }\n .progress.is-success::-ms-fill {\n background-color: #23d160; }\n .progress.is-warning::-webkit-progress-value {\n background-color: #ffdd57; }\n .progress.is-warning::-moz-progress-bar {\n background-color: #ffdd57; }\n .progress.is-warning::-ms-fill {\n background-color: #ffdd57; }\n .progress.is-danger::-webkit-progress-value {\n background-color: #ff3860; }\n .progress.is-danger::-moz-progress-bar {\n background-color: #ff3860; }\n .progress.is-danger::-ms-fill {\n background-color: #ff3860; }\n .progress.is-small {\n height: 0.75rem; }\n .progress.is-medium {\n height: 1.25rem; }\n .progress.is-large {\n height: 1.5rem; }\n\n.modal {\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n align-items: center;\n display: none;\n justify-content: center;\n overflow: hidden;\n position: fixed;\n z-index: 40; }\n .modal.is-active {\n display: flex; }\n\n.modal-background {\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n background-color: rgba(10, 10, 10, 0.86); }\n\n.modal-content,\n.modal-card {\n margin: 0 20px;\n max-height: calc(100vh - 160px);\n overflow: auto;\n position: relative;\n width: 100%; }\n @media screen and (min-width: 769px), print {\n .modal-content,\n .modal-card {\n margin: 0 auto;\n max-height: calc(100vh - 40px);\n width: 640px; } }\n\n.modal-close {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -moz-appearance: none;\n -webkit-appearance: none;\n background-color: rgba(10, 10, 10, 0.2);\n border: none;\n border-radius: 290486px;\n cursor: pointer;\n display: inline-block;\n flex-grow: 0;\n flex-shrink: 0;\n font-size: 0;\n height: 20px;\n max-height: 20px;\n max-width: 20px;\n min-height: 20px;\n min-width: 20px;\n outline: none;\n position: relative;\n vertical-align: top;\n width: 20px;\n background: none;\n height: 40px;\n position: fixed;\n right: 20px;\n top: 20px;\n width: 40px; }\n .modal-close:before, .modal-close:after {\n background-color: white;\n content: "";\n display: block;\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translateX(-50%) translateY(-50%) rotate(45deg);\n transform-origin: center center; }\n .modal-close:before {\n height: 2px;\n width: 50%; }\n .modal-close:after {\n height: 50%;\n width: 2px; }\n .modal-close:hover, .modal-close:focus {\n background-color: rgba(10, 10, 10, 0.3); }\n .modal-close:active {\n background-color: rgba(10, 10, 10, 0.4); }\n .modal-close.is-small {\n height: 16px;\n max-height: 16px;\n max-width: 16px;\n min-height: 16px;\n min-width: 16px;\n width: 16px; }\n .modal-close.is-medium {\n height: 24px;\n max-height: 24px;\n max-width: 24px;\n min-height: 24px;\n min-width: 24px;\n width: 24px; }\n .modal-close.is-large {\n height: 32px;\n max-height: 32px;\n max-width: 32px;\n min-height: 32px;\n min-width: 32px;\n width: 32px; }\n\n.modal-card {\n display: flex;\n flex-direction: column;\n max-height: calc(100vh - 40px);\n overflow: hidden; }\n\n.modal-card-head,\n.modal-card-foot {\n align-items: center;\n background-color: whitesmoke;\n display: flex;\n flex-shrink: 0;\n justify-content: flex-start;\n padding: 20px;\n position: relative; }\n\n.modal-card-head {\n border-bottom: 1px solid #dbdbdb;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px; }\n\n.modal-card-title {\n color: #363636;\n flex-grow: 1;\n flex-shrink: 0;\n font-size: 1.5rem;\n line-height: 1; }\n\n.modal-card-foot {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n border-top: 1px solid #dbdbdb; }\n .modal-card-foot .button:not(:last-child) {\n margin-right: 10px; }\n\n.modal-card-body {\n -webkit-overflow-scrolling: touch;\n background-color: white;\n flex-grow: 1;\n flex-shrink: 1;\n overflow: auto;\n padding: 20px; }\n\nhtml, body {\n height: 100%;\n min-height: 100%;\n margin: 0;\n overflow: hidden; }\n\n#terminal-container {\n width: auto;\n height: 100%;\n margin: 0 auto;\n padding: 0;\n background-color: #2b2b2b; }\n\n#terminal-container .terminal {\n padding: 5px; }\n\n#modal strong {\n color: #268bd2; }\n\n#modal span {\n color: #2aa198; }\n\n#modal header {\n font-weight: bold;\n text-align: center;\n padding-bottom: 10px;\n margin-bottom: 10px;\n border-bottom: 1px solid #ddd; }\n\n#status {\n margin-top: 10px;\n text-align: center; }\n\n#choose {\n padding-top: 10px; }\n\n#choose .file-name {\n border-color: transparent; }\n\n#progress {\n padding-top: 10px; }\n\n#file-name {\n background-color: #fafffd;\n text-align: center; }\n\n#progress progress {\n margin: 10px 0; }\n\n#progress {\n color: #93a1a1; }\n\n#progress span {\n font-weight: bold; }\n',""])},function(e,t,n){var i=n(231);"string"==typeof i&&(i=[[e.i,i,""]]);var r={hmr:!0,transform:void 0};n(229)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){"use strict";n(232),n(227),n(199),n(165),n(157),n(145);var i=n(143),r=n(134).Terminal;r.applyAddon(n(107)),r.applyAddon(n(106)),r.applyAddon(n(105));var o={self:document.getElementById("modal"),header:document.getElementById("header"),status:{self:document.getElementById("status"),filesRemaining:document.getElementById("files-remaining"),bytesRemaining:document.getElementById("bytes-remaining")},choose:{self:document.getElementById("choose"),files:document.getElementById("files"),filesNames:document.getElementById("file-names")},progress:{self:document.getElementById("progress"),fileName:document.getElementById("file-name"),progressBar:document.getElementById("progress-bar"),bytesReceived:document.getElementById("bytes-received"),bytesFile:document.getElementById("bytes-file"),percentReceived:document.getElementById("percent-received"),skip:document.getElementById("skip")}};function s(e){o.status.self.style.display="",o.choose.self.style.display="none",o.progress.self.style.display="",o.status.filesRemaining.textContent=e.files_remaining,o.status.bytesRemaining.textContent=u(e.bytes_remaining,2),o.progress.fileName.textContent=e.name}function a(){o.self.classList.remove("is-active")}function l(e){o.header.textContent=e,o.status.self.style.display="none",o.choose.self.style.display="none",o.progress.self.style.display="none",o.progress.bytesReceived.textContent="-",o.progress.percentReceived.textContent="-%",o.progress.progressBar.textContent="0%",o.progress.progressBar.value=0,o.progress.skip.style.display="none"}function c(e){var t=e.get_details().size,n=e.get_offset();o.progress.bytesReceived.textContent=u(n,2),o.progress.bytesFile.textContent=u(t,2);var i=(100*n/t).toFixed(2);o.progress.percentReceived.textContent=i+"%",o.progress.progressBar.textContent=i+"%",o.progress.progressBar.setAttribute("value",i)}function u(e,t){if(isNaN(parseFloat(e))||!isFinite(e))return"-";if(0===e)return 0;void 0===t&&(t=1);var n=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,Math.floor(n))).toFixed(t)+" "+["bytes","KB","MB","GB","TB","PB"][n]}function h(e){return new Promise(function(t){var n;n=function(n){i.Browser.send_files(e,n,{on_progress:function(e,t){s(t.get_details()),c(t)},on_file_complete:function(e){}}).then(e.close.bind(e),console.error.bind(console)).then(function(){t()})},l("Sending files"),o.choose.self.style.display="",o.choose.files.disabled=!1,o.choose.files.value="",o.choose.filesNames.textContent="",o.choose.files.onchange=function(){this.disabled=!0;for(var e=this.files,t="",i=0;i<e.length;i++)0===i?t=e[i].name:t+=", "+e[i].name;o.choose.filesNames.textContent=t,n(e)},o.self.classList.add("is-active")})}function f(e){e.on("offer",function(e){!function(e){l("Receiving files"),s(e.get_details()),o.progress.skip.disabled=!1,o.progress.skip.onclick=function(){this.disabled=!0,e.skip()},o.progress.skip.style.display="",o.self.classList.add("is-active")}(e);var t=[];e.on("input",function(n){c(e),t.push(new Uint8Array(n))}),e.accept().then(function(){i.Browser.save_to_disk(t,e.get_details().name)},console.error.bind(console))});var t=new Promise(function(t){e.on("session_end",function(){t()})});return e.start(),t}var d,p,_,m,b=document.getElementById("terminal-container"),g=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname+"ws",v=new TextDecoder,y=new TextEncoder,w="undefined"!=typeof tty_auth_token?tty_auth_token:null,x=-1,k=function e(){var t=new WebSocket(g,["tty"]),n=function(e){t.readyState===WebSocket.OPEN&&t.send(y.encode(e))},o=function(e){n("0"+e)},s=function(e){var t="Close terminal? this will also terminate the command.";return(e||window.event).returnValue=t,t},l=new i.Sentry({to_terminal:function(e){var t=new Uint8Array(e).buffer;p.write(v.decode(t))},sender:function(e){for(;e.length;){var n=e.splice(0,4095),i=new Uint8Array(n.length+1);i[0]="0".charCodeAt(0),i.set(n,1),t.send(i)}},on_retract:function(){},on_detect:function(e){p.setOption("disableStdin",!0);var t=e.confirm();("send"===t.type?h(t):f(t)).catch(console.error.bind(console)).then(function(){a(),p.setOption("disableStdin",!1)})}});t.binaryType="arraybuffer",t.onopen=function(e){for(console.log("Websocket connection opened"),m=!1,n(JSON.stringify({AuthToken:w})),void 0!==p&&p.destroy(),(p=new r({fontSize:13,fontFamily:'"Menlo for Powerline", Menlo, Consolas, "Liberation Mono", Courier, monospace',theme:{foreground:"#d2d2d2",background:"#2b2b2b",cursor:"#adadad",black:"#000000",red:"#d81e00",green:"#5ea702",yellow:"#cfae00",blue:"#427ab3",magenta:"#89658e",cyan:"#00a7aa",white:"#dbded8",brightBlack:"#686a66",brightRed:"#f54235",brightGreen:"#99e343",brightYellow:"#fdeb61",brightBlue:"#84b0d8",brightMagenta:"#bc94b7",brightCyan:"#37e6e8",brightWhite:"#f1f1f0"}})).on("resize",function(e){t.readyState===WebSocket.OPEN&&n("1"+JSON.stringify({columns:e.cols,rows:e.rows})),setTimeout(function(){p.showOverlay(e.cols+"x"+e.rows)},500)}),p.on("title",function(e){e&&""!==e&&(document.title=e+" | "+_)}),p.on("data",o);b.firstChild;)b.removeChild(b.firstChild);window.addEventListener("resize",function(){clearTimeout(window.resizedFinished),window.resizedFinished=setTimeout(function(){p.fit()},250)}),window.addEventListener("beforeunload",s),p.open(b,!0),p.winptyCompatInit(),p.fit(),p.focus()},t.onmessage=function(n){var i=new Uint8Array(n.data),r=String.fromCharCode(i[0]),o=i.slice(1).buffer;switch(r){case"0":try{l.consume(o)}catch(n){console.error(n),a(),clearTimeout(d),t.readyState!==WebSocket.CLOSED&&t.close(),e()}break;case"1":_=v.decode(o),document.title=_;break;case"2":var s=JSON.parse(v.decode(o));Object.keys(s).forEach(function(e){console.log("Setting "+e+": "+s[e]),p.setOption(e,s[e])});break;case"3":x=JSON.parse(v.decode(o)),console.log("Enabling reconnect: "+x+" seconds");break;default:console.log("Unknown command: "+r)}},t.onclose=function(t){console.log("Websocket connection closed with code: "+t.code),p&&(p.off("data"),p.off("resize"),m||p.showOverlay("Connection Closed",null)),window.removeEventListener("beforeunload",s),1e3!==t.code&&x>0&&(d=setTimeout(e,1e3*x))}};"complete"===document.readyState||"loading"!==document.readyState?k():document.addEventListener("DOMContentLoaded",k)}]);</script></body>
</html>