]> prime8.dev >> repos - ttyd.git/commitdiff
xterm.js: downgrade to 3.3.0
authorShuanglei Tao <tsl0922@gmail.com>
Sun, 9 Sep 2018 16:30:12 +0000 (00:30 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Sun, 9 Sep 2018 16:51:21 +0000 (00:51 +0800)
https://github.com/tsl0922/ttyd/issues/126

html/js/app.js
html/package.json
html/yarn.lock
src/index.html

index 4b499a814352052469b5ad4d312fc2703402732b..8ade9910e57871d9883b049c0216c4c071ae7227 100644 (file)
@@ -244,7 +244,7 @@ var openWs = function() {
         sendMessage(JSON.stringify({AuthToken: authToken}));
 
         if (typeof term !== 'undefined') {
-            term.dispose();
+            term.destroy();
         }
 
         term = new Terminal({
index c88a156900ae8902f77c704b327fa83b511c1c74..bb73ac4a77d3701fb3f2868ed10c097d7b7f9056 100644 (file)
@@ -17,7 +17,7 @@
         "bulma": "^0.6.1",
         "core-js": "^2.5.3",
         "fast-text-encoding": "^1.0.0",
-        "xterm": "^3.7.0",
+        "xterm": "3.3.0",
         "zmodem.js": "^0.1.7"
     },
     "devDependencies": {
index ff3dff7ae83536cb13f5f16d57f6e1be443eb4aa..3832f43680b8e41c00d666dd3353cf8e229e58c8 100644 (file)
@@ -7733,9 +7733,9 @@ xdg-basedir@^3.0.0:
   version "4.0.1"
   resolved "http://registry.npm.taobao.org/xtend/download/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
 
-xterm@^3.7.0:
-  version "3.7.0"
-  resolved "http://registry.npm.taobao.org/xterm/download/xterm-3.7.0.tgz#b3eb1335dc04b92abe361711731d3b661e13db17"
+xterm@3.3.0:
+  version "3.3.0"
+  resolved "http://registry.npm.taobao.org/xterm/download/xterm-3.3.0.tgz#b09a19fc2cd5decd21112e5c9dab0b61991f6cf3"
 
 y18n@^3.2.1:
   version "3.2.1"
index 008e54fe5582d672a13b446e43c30dc11943fe6e..566a11c14aecab208b05596067075d0e270c2df1 100644 (file)
@@ -1 +1 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>ttyd - Terminal</title><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==" /><style type="text/css">.xterm{font-family:courier-new,courier,monospace;font-feature-settings:"liga" 0;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:10}.xterm .xterm-helper-textarea{position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-10;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm{cursor:text}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.xterm-cursor-crosshair{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:100;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.is-clearfix:after{clear:both;content:" ";display:table}.is-pulled-left{float:left!important}.is-pulled-right{float:right!important}.is-clipped{overflow:hidden!important}.is-overlay{bottom:0;left:0;position:absolute;right:0;top:0}.is-size-1{font-size:3rem!important}.is-size-2{font-size:2.5rem!important}.is-size-3{font-size:2rem!important}.is-size-4{font-size:1.5rem!important}.is-size-5{font-size:1.25rem!important}.is-size-6{font-size:1rem!important}.is-size-7{font-size:.75rem!important}@media screen and (max-width:768px){.is-size-1-mobile{font-size:3rem!important}.is-size-2-mobile{font-size:2.5rem!important}.is-size-3-mobile{font-size:2rem!important}.is-size-4-mobile{font-size:1.5rem!important}.is-size-5-mobile{font-size:1.25rem!important}.is-size-6-mobile{font-size:1rem!important}.is-size-7-mobile{font-size:.75rem!important}}@media print,screen and (min-width:769px){.is-size-1-tablet{font-size:3rem!important}.is-size-2-tablet{font-size:2.5rem!important}.is-size-3-tablet{font-size:2rem!important}.is-size-4-tablet{font-size:1.5rem!important}.is-size-5-tablet{font-size:1.25rem!important}.is-size-6-tablet{font-size:1rem!important}.is-size-7-tablet{font-size:.75rem!important}}@media screen and (max-width:1023px){.is-size-1-touch{font-size:3rem!important}.is-size-2-touch{font-size:2.5rem!important}.is-size-3-touch{font-size:2rem!important}.is-size-4-touch{font-size:1.5rem!important}.is-size-5-touch{font-size:1.25rem!important}.is-size-6-touch{font-size:1rem!important}.is-size-7-touch{font-size:.75rem!important}}@media screen and (min-width:1024px){.is-size-1-desktop{font-size:3rem!important}.is-size-2-desktop{font-size:2.5rem!important}.is-size-3-desktop{font-size:2rem!important}.is-size-4-desktop{font-size:1.5rem!important}.is-size-5-desktop{font-size:1.25rem!important}.is-size-6-desktop{font-size:1rem!important}.is-size-7-desktop{font-size:.75rem!important}}@media screen and (min-width:1216px){.is-size-1-widescreen{font-size:3rem!important}.is-size-2-widescreen{font-size:2.5rem!important}.is-size-3-widescreen{font-size:2rem!important}.is-size-4-widescreen{font-size:1.5rem!important}.is-size-5-widescreen{font-size:1.25rem!important}.is-size-6-widescreen{font-size:1rem!important}.is-size-7-widescreen{font-size:.75rem!important}}@media screen and (min-width:1408px){.is-size-1-fullhd{font-size:3rem!important}.is-size-2-fullhd{font-size:2.5rem!important}.is-size-3-fullhd{font-size:2rem!important}.is-size-4-fullhd{font-size:1.5rem!important}.is-size-5-fullhd{font-size:1.25rem!important}.is-size-6-fullhd{font-size:1rem!important}.is-size-7-fullhd{font-size:.75rem!important}}.has-text-centered{text-align:center!important}@media screen and (max-width:768px){.has-text-centered-mobile{text-align:center!important}}@media print,screen and (min-width:769px){.has-text-centered-tablet{text-align:center!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-centered-tablet-only{text-align:center!important}}@media screen and (max-width:1023px){.has-text-centered-touch{text-align:center!important}}@media screen and (min-width:1024px){.has-text-centered-desktop{text-align:center!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-centered-desktop-only{text-align:center!important}}@media screen and (min-width:1216px){.has-text-centered-widescreen{text-align:center!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-centered-widescreen-only{text-align:center!important}}@media screen and (min-width:1408px){.has-text-centered-fullhd{text-align:center!important}}.has-text-justified{text-align:justify!important}@media screen and (max-width:768px){.has-text-justified-mobile{text-align:justify!important}}@media print,screen and (min-width:769px){.has-text-justified-tablet{text-align:justify!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-justified-tablet-only{text-align:justify!important}}@media screen and (max-width:1023px){.has-text-justified-touch{text-align:justify!important}}@media screen and (min-width:1024px){.has-text-justified-desktop{text-align:justify!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-justified-desktop-only{text-align:justify!important}}@media screen and (min-width:1216px){.has-text-justified-widescreen{text-align:justify!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-justified-widescreen-only{text-align:justify!important}}@media screen and (min-width:1408px){.has-text-justified-fullhd{text-align:justify!important}}.has-text-left{text-align:left!important}@media screen and (max-width:768px){.has-text-left-mobile{text-align:left!important}}@media print,screen and (min-width:769px){.has-text-left-tablet{text-align:left!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-left-tablet-only{text-align:left!important}}@media screen and (max-width:1023px){.has-text-left-touch{text-align:left!important}}@media screen and (min-width:1024px){.has-text-left-desktop{text-align:left!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-left-desktop-only{text-align:left!important}}@media screen and (min-width:1216px){.has-text-left-widescreen{text-align:left!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-left-widescreen-only{text-align:left!important}}@media screen and (min-width:1408px){.has-text-left-fullhd{text-align:left!important}}.has-text-right{text-align:right!important}@media screen and (max-width:768px){.has-text-right-mobile{text-align:right!important}}@media print,screen and (min-width:769px){.has-text-right-tablet{text-align:right!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-right-tablet-only{text-align:right!important}}@media screen and (max-width:1023px){.has-text-right-touch{text-align:right!important}}@media screen and (min-width:1024px){.has-text-right-desktop{text-align:right!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-right-desktop-only{text-align:right!important}}@media screen and (min-width:1216px){.has-text-right-widescreen{text-align:right!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-right-widescreen-only{text-align:right!important}}@media screen and (min-width:1408px){.has-text-right-fullhd{text-align:right!important}}.is-capitalized{text-transform:capitalize!important}.is-lowercase{text-transform:lowercase!important}.is-uppercase{text-transform:uppercase!important}.is-italic{font-style:italic!important}.has-text-white{color:#fff!important}a.has-text-white:focus,a.has-text-white:hover{color:#e6e6e6!important}.has-text-black{color:#0a0a0a!important}a.has-text-black:focus,a.has-text-black:hover{color:#000!important}.has-text-light{color:#f5f5f5!important}a.has-text-light:focus,a.has-text-light:hover{color:#dbdbdb!important}.has-text-dark{color:#363636!important}a.has-text-dark:focus,a.has-text-dark:hover{color:#1c1c1c!important}.has-text-primary{color:#00d1b2!important}a.has-text-primary:focus,a.has-text-primary:hover{color:#009e86!important}.has-text-link{color:#3273dc!important}a.has-text-link:focus,a.has-text-link:hover{color:#205bbc!important}.has-text-info{color:#209cee!important}a.has-text-info:focus,a.has-text-info:hover{color:#0f81cc!important}.has-text-success{color:#23d160!important}a.has-text-success:focus,a.has-text-success:hover{color:#1ca64c!important}.has-text-warning{color:#ffdd57!important}a.has-text-warning:focus,a.has-text-warning:hover{color:#ffd324!important}.has-text-danger{color:#ff3860!important}a.has-text-danger:focus,a.has-text-danger:hover{color:#ff0537!important}.has-text-black-bis{color:#121212!important}.has-text-black-ter{color:#242424!important}.has-text-grey-darker{color:#363636!important}.has-text-grey-dark{color:#4a4a4a!important}.has-text-grey{color:#7a7a7a!important}.has-text-grey-light{color:#b5b5b5!important}.has-text-grey-lighter{color:#dbdbdb!important}.has-text-white-ter{color:#f5f5f5!important}.has-text-white-bis{color:#fafafa!important}.has-text-weight-light{font-weight:300!important}.has-text-weight-normal{font-weight:400!important}.has-text-weight-semibold{font-weight:600!important}.has-text-weight-bold{font-weight:700!important}.is-block{display:block!important}@media screen and (max-width:768px){.is-block-mobile{display:block!important}}@media print,screen and (min-width:769px){.is-block-tablet{display:block!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-block-tablet-only{display:block!important}}@media screen and (max-width:1023px){.is-block-touch{display:block!important}}@media screen and (min-width:1024px){.is-block-desktop{display:block!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-block-desktop-only{display:block!important}}@media screen and (min-width:1216px){.is-block-widescreen{display:block!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-block-widescreen-only{display:block!important}}@media screen and (min-width:1408px){.is-block-fullhd{display:block!important}}.is-flex{display:flex!important}@media screen and (max-width:768px){.is-flex-mobile{display:flex!important}}@media print,screen and (min-width:769px){.is-flex-tablet{display:flex!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-flex-tablet-only{display:flex!important}}@media screen and (max-width:1023px){.is-flex-touch{display:flex!important}}@media screen and (min-width:1024px){.is-flex-desktop{display:flex!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-flex-desktop-only{display:flex!important}}@media screen and (min-width:1216px){.is-flex-widescreen{display:flex!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-flex-widescreen-only{display:flex!important}}@media screen and (min-width:1408px){.is-flex-fullhd{display:flex!important}}.is-inline{display:inline!important}@media screen and (max-width:768px){.is-inline-mobile{display:inline!important}}@media print,screen and (min-width:769px){.is-inline-tablet{display:inline!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-inline-tablet-only{display:inline!important}}@media screen and (max-width:1023px){.is-inline-touch{display:inline!important}}@media screen and (min-width:1024px){.is-inline-desktop{display:inline!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-inline-desktop-only{display:inline!important}}@media screen and (min-width:1216px){.is-inline-widescreen{display:inline!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-inline-widescreen-only{display:inline!important}}@media screen and (min-width:1408px){.is-inline-fullhd{display:inline!important}}.is-inline-block{display:inline-block!important}@media screen and (max-width:768px){.is-inline-block-mobile{display:inline-block!important}}@media print,screen and (min-width:769px){.is-inline-block-tablet{display:inline-block!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-inline-block-tablet-only{display:inline-block!important}}@media screen and (max-width:1023px){.is-inline-block-touch{display:inline-block!important}}@media screen and (min-width:1024px){.is-inline-block-desktop{display:inline-block!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-inline-block-desktop-only{display:inline-block!important}}@media screen and (min-width:1216px){.is-inline-block-widescreen{display:inline-block!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-inline-block-widescreen-only{display:inline-block!important}}@media screen and (min-width:1408px){.is-inline-block-fullhd{display:inline-block!important}}.is-inline-flex{display:inline-flex!important}@media screen and (max-width:768px){.is-inline-flex-mobile{display:inline-flex!important}}@media print,screen and (min-width:769px){.is-inline-flex-tablet{display:inline-flex!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-inline-flex-tablet-only{display:inline-flex!important}}@media screen and (max-width:1023px){.is-inline-flex-touch{display:inline-flex!important}}@media screen and (min-width:1024px){.is-inline-flex-desktop{display:inline-flex!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-inline-flex-desktop-only{display:inline-flex!important}}@media screen and (min-width:1216px){.is-inline-flex-widescreen{display:inline-flex!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-inline-flex-widescreen-only{display:inline-flex!important}}@media screen and (min-width:1408px){.is-inline-flex-fullhd{display:inline-flex!important}}.is-hidden{display:none!important}@media screen and (max-width:768px){.is-hidden-mobile{display:none!important}}@media print,screen and (min-width:769px){.is-hidden-tablet{display:none!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-hidden-tablet-only{display:none!important}}@media screen and (max-width:1023px){.is-hidden-touch{display:none!important}}@media screen and (min-width:1024px){.is-hidden-desktop{display:none!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-hidden-desktop-only{display:none!important}}@media screen and (min-width:1216px){.is-hidden-widescreen{display:none!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-hidden-widescreen-only{display:none!important}}@media screen and (min-width:1408px){.is-hidden-fullhd{display:none!important}}.is-invisible{visibility:hidden!important}@media screen and (max-width:768px){.is-invisible-mobile{visibility:hidden!important}}@media print,screen and (min-width:769px){.is-invisible-tablet{visibility:hidden!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-invisible-tablet-only{visibility:hidden!important}}@media screen and (max-width:1023px){.is-invisible-touch{visibility:hidden!important}}@media screen and (min-width:1024px){.is-invisible-desktop{visibility:hidden!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-invisible-desktop-only{visibility:hidden!important}}@media screen and (min-width:1216px){.is-invisible-widescreen{visibility:hidden!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-invisible-widescreen-only{visibility:hidden!important}}@media screen and (min-width:1408px){.is-invisible-fullhd{visibility:hidden!important}}.is-marginless{margin:0!important}.is-paddingless{padding:0!important}.is-radiusless{border-radius:0!important}.is-shadowless{box-shadow:none!important}.is-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box{background-color:#fff;border-radius:5px;box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);color:#4a4a4a;display:block;padding:1.25rem}.box:not(:last-child){margin-bottom:1.5rem}a.box:focus,a.box:hover{box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px #3273dc}a.box:active{box-shadow:inset 0 1px 2px hsla(0,0%,4%,.2),0 0 0 1px #3273dc}.button{-moz-appearance:none;-webkit-appearance:none;align-items:center;border:1px solid transparent;border-radius:3px;box-shadow:none;display:inline-flex;font-size:1rem;height:2.25em;justify-content:flex-start;line-height:1.5;padding-left:calc(.625em - 1px);padding-right:calc(.625em - 1px);position:relative;vertical-align:top;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff;border-color:#dbdbdb;color:#363636;cursor:pointer;justify-content:center;padding:calc(.375em - 1px) .75em;text-align:center;white-space:nowrap}.button.is-active,.button.is-focused,.button:active,.button:focus{outline:none}.button[disabled]{cursor:not-allowed}.button strong{color:inherit}.button .icon,.button .icon.is-large,.button .icon.is-medium,.button .icon.is-small{height:1.5em;width:1.5em}.button .icon:first-child:not(:last-child){margin-left:calc(-.375em - 1px);margin-right:.1875em}.button .icon:last-child:not(:first-child){margin-left:.1875em;margin-right:calc(-.375em - 1px)}.button .icon:first-child:last-child{margin-left:calc(-.375em - 1px);margin-right:calc(-.375em - 1px)}.button.is-hovered,.button:hover{border-color:#b5b5b5;color:#363636}.button.is-focused,.button:focus{border-color:#3273dc;color:#363636}.button.is-focused:not(:active),.button:focus:not(:active){box-shadow:0 0 0 .125em rgba(50,115,220,.25)}.button.is-active,.button:active{border-color:#4a4a4a;color:#363636}.button.is-text{background-color:transparent;border-color:transparent;color:#4a4a4a;text-decoration:underline}.button.is-text.is-focused,.button.is-text.is-hovered,.button.is-text:focus,.button.is-text:hover{background-color:#f5f5f5;color:#363636}.button.is-text.is-active,.button.is-text:active{background-color:#e8e8e8;color:#363636}.button.is-text[disabled]{background-color:transparent;border-color:transparent;box-shadow:none}.button.is-white{background-color:#fff;border-color:transparent;color:#0a0a0a}.button.is-white.is-hovered,.button.is-white:hover{background-color:#f9f9f9;border-color:transparent;color:#0a0a0a}.button.is-white.is-focused,.button.is-white:focus{border-color:transparent;color:#0a0a0a}.button.is-white.is-focused:not(:active),.button.is-white:focus:not(:active){box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.button.is-white.is-active,.button.is-white:active{background-color:#f2f2f2;border-color:transparent;color:#0a0a0a}.button.is-white[disabled]{background-color:#fff;border-color:transparent;box-shadow:none}.button.is-white.is-inverted{background-color:#0a0a0a;color:#fff}.button.is-white.is-inverted:hover{background-color:#000}.button.is-white.is-inverted[disabled]{background-color:#0a0a0a;border-color:transparent;box-shadow:none;color:#fff}.button.is-white.is-loading:after{border-color:transparent transparent #0a0a0a #0a0a0a!important}.button.is-white.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-white.is-outlined:focus,.button.is-white.is-outlined:hover{background-color:#fff;border-color:#fff;color:#0a0a0a}.button.is-white.is-outlined.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-white.is-outlined[disabled]{background-color:transparent;border-color:#fff;box-shadow:none;color:#fff}.button.is-white.is-inverted.is-outlined{background-color:transparent;border-color:#0a0a0a;color:#0a0a0a}.button.is-white.is-inverted.is-outlined:focus,.button.is-white.is-inverted.is-outlined:hover{background-color:#0a0a0a;color:#fff}.button.is-white.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#0a0a0a;box-shadow:none;color:#0a0a0a}.button.is-black{background-color:#0a0a0a;border-color:transparent;color:#fff}.button.is-black.is-hovered,.button.is-black:hover{background-color:#040404;border-color:transparent;color:#fff}.button.is-black.is-focused,.button.is-black:focus{border-color:transparent;color:#fff}.button.is-black.is-focused:not(:active),.button.is-black:focus:not(:active){box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.button.is-black.is-active,.button.is-black:active{background-color:#000;border-color:transparent;color:#fff}.button.is-black[disabled]{background-color:#0a0a0a;border-color:transparent;box-shadow:none}.button.is-black.is-inverted{background-color:#fff;color:#0a0a0a}.button.is-black.is-inverted:hover{background-color:#f2f2f2}.button.is-black.is-inverted[disabled]{background-color:#fff;border-color:transparent;box-shadow:none;color:#0a0a0a}.button.is-black.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-black.is-outlined{background-color:transparent;border-color:#0a0a0a;color:#0a0a0a}.button.is-black.is-outlined:focus,.button.is-black.is-outlined:hover{background-color:#0a0a0a;border-color:#0a0a0a;color:#fff}.button.is-black.is-outlined.is-loading:after{border-color:transparent transparent #0a0a0a #0a0a0a!important}.button.is-black.is-outlined[disabled]{background-color:transparent;border-color:#0a0a0a;box-shadow:none;color:#0a0a0a}.button.is-black.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-black.is-inverted.is-outlined:focus,.button.is-black.is-inverted.is-outlined:hover{background-color:#fff;color:#0a0a0a}.button.is-black.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#fff;box-shadow:none;color:#fff}.button.is-light{background-color:#f5f5f5;border-color:transparent;color:#363636}.button.is-light.is-hovered,.button.is-light:hover{background-color:#eee;border-color:transparent;color:#363636}.button.is-light.is-focused,.button.is-light:focus{border-color:transparent;color:#363636}.button.is-light.is-focused:not(:active),.button.is-light:focus:not(:active){box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.button.is-light.is-active,.button.is-light:active{background-color:#e8e8e8;border-color:transparent;color:#363636}.button.is-light[disabled]{background-color:#f5f5f5;border-color:transparent;box-shadow:none}.button.is-light.is-inverted{background-color:#363636;color:#f5f5f5}.button.is-light.is-inverted:hover{background-color:#292929}.button.is-light.is-inverted[disabled]{background-color:#363636;border-color:transparent;box-shadow:none;color:#f5f5f5}.button.is-light.is-loading:after{border-color:transparent transparent #363636 #363636!important}.button.is-light.is-outlined{background-color:transparent;border-color:#f5f5f5;color:#f5f5f5}.button.is-light.is-outlined:focus,.button.is-light.is-outlined:hover{background-color:#f5f5f5;border-color:#f5f5f5;color:#363636}.button.is-light.is-outlined.is-loading:after{border-color:transparent transparent #f5f5f5 #f5f5f5!important}.button.is-light.is-outlined[disabled]{background-color:transparent;border-color:#f5f5f5;box-shadow:none;color:#f5f5f5}.button.is-light.is-inverted.is-outlined{background-color:transparent;border-color:#363636;color:#363636}.button.is-light.is-inverted.is-outlined:focus,.button.is-light.is-inverted.is-outlined:hover{background-color:#363636;color:#f5f5f5}.button.is-light.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#363636;box-shadow:none;color:#363636}.button.is-dark{background-color:#363636;border-color:transparent;color:#f5f5f5}.button.is-dark.is-hovered,.button.is-dark:hover{background-color:#2f2f2f;border-color:transparent;color:#f5f5f5}.button.is-dark.is-focused,.button.is-dark:focus{border-color:transparent;color:#f5f5f5}.button.is-dark.is-focused:not(:active),.button.is-dark:focus:not(:active){box-shadow:0 0 0 .125em rgba(54,54,54,.25)}.button.is-dark.is-active,.button.is-dark:active{background-color:#292929;border-color:transparent;color:#f5f5f5}.button.is-dark[disabled]{background-color:#363636;border-color:transparent;box-shadow:none}.button.is-dark.is-inverted{background-color:#f5f5f5;color:#363636}.button.is-dark.is-inverted:hover{background-color:#e8e8e8}.button.is-dark.is-inverted[disabled]{background-color:#f5f5f5;border-color:transparent;box-shadow:none;color:#363636}.button.is-dark.is-loading:after{border-color:transparent transparent #f5f5f5 #f5f5f5!important}.button.is-dark.is-outlined{background-color:transparent;border-color:#363636;color:#363636}.button.is-dark.is-outlined:focus,.button.is-dark.is-outlined:hover{background-color:#363636;border-color:#363636;color:#f5f5f5}.button.is-dark.is-outlined.is-loading:after{border-color:transparent transparent #363636 #363636!important}.button.is-dark.is-outlined[disabled]{background-color:transparent;border-color:#363636;box-shadow:none;color:#363636}.button.is-dark.is-inverted.is-outlined{background-color:transparent;border-color:#f5f5f5;color:#f5f5f5}.button.is-dark.is-inverted.is-outlined:focus,.button.is-dark.is-inverted.is-outlined:hover{background-color:#f5f5f5;color:#363636}.button.is-dark.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#f5f5f5;box-shadow:none;color:#f5f5f5}.button.is-primary{background-color:#00d1b2;border-color:transparent;color:#fff}.button.is-primary.is-hovered,.button.is-primary:hover{background-color:#00c4a7;border-color:transparent;color:#fff}.button.is-primary.is-focused,.button.is-primary:focus{border-color:transparent;color:#fff}.button.is-primary.is-focused:not(:active),.button.is-primary:focus:not(:active){box-shadow:0 0 0 .125em rgba(0,209,178,.25)}.button.is-primary.is-active,.button.is-primary:active{background-color:#00b89c;border-color:transparent;color:#fff}.button.is-primary[disabled]{background-color:#00d1b2;border-color:transparent;box-shadow:none}.button.is-primary.is-inverted{background-color:#fff;color:#00d1b2}.button.is-primary.is-inverted:hover{background-color:#f2f2f2}.button.is-primary.is-inverted[disabled]{background-color:#fff;border-color:transparent;box-shadow:none;color:#00d1b2}.button.is-primary.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-primary.is-outlined{background-color:transparent;border-color:#00d1b2;color:#00d1b2}.button.is-primary.is-outlined:focus,.button.is-primary.is-outlined:hover{background-color:#00d1b2;border-color:#00d1b2;color:#fff}.button.is-primary.is-outlined.is-loading:after{border-color:transparent transparent #00d1b2 #00d1b2!important}.button.is-primary.is-outlined[disabled]{background-color:transparent;border-color:#00d1b2;box-shadow:none;color:#00d1b2}.button.is-primary.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-primary.is-inverted.is-outlined:focus,.button.is-primary.is-inverted.is-outlined:hover{background-color:#fff;color:#00d1b2}.button.is-primary.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#fff;box-shadow:none;color:#fff}.button.is-link{background-color:#3273dc;border-color:transparent;color:#fff}.button.is-link.is-hovered,.button.is-link:hover{background-color:#276cda;border-color:transparent;color:#fff}.button.is-link.is-focused,.button.is-link:focus{border-color:transparent;color:#fff}.button.is-link.is-focused:not(:active),.button.is-link:focus:not(:active){box-shadow:0 0 0 .125em rgba(50,115,220,.25)}.button.is-link.is-active,.button.is-link:active{background-color:#2366d1;border-color:transparent;color:#fff}.button.is-link[disabled]{background-color:#3273dc;border-color:transparent;box-shadow:none}.button.is-link.is-inverted{background-color:#fff;color:#3273dc}.button.is-link.is-inverted:hover{background-color:#f2f2f2}.button.is-link.is-inverted[disabled]{background-color:#fff;border-color:transparent;box-shadow:none;color:#3273dc}.button.is-link.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-link.is-outlined{background-color:transparent;border-color:#3273dc;color:#3273dc}.button.is-link.is-outlined:focus,.button.is-link.is-outlined:hover{background-color:#3273dc;border-color:#3273dc;color:#fff}.button.is-link.is-outlined.is-loading:after{border-color:transparent transparent #3273dc #3273dc!important}.button.is-link.is-outlined[disabled]{background-color:transparent;border-color:#3273dc;box-shadow:none;color:#3273dc}.button.is-link.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-link.is-inverted.is-outlined:focus,.button.is-link.is-inverted.is-outlined:hover{background-color:#fff;color:#3273dc}.button.is-link.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#fff;box-shadow:none;color:#fff}.button.is-info{background-color:#209cee;border-color:transparent;color:#fff}.button.is-info.is-hovered,.button.is-info:hover{background-color:#1496ed;border-color:transparent;color:#fff}.button.is-info.is-focused,.button.is-info:focus{border-color:transparent;color:#fff}.button.is-info.is-focused:not(:active),.button.is-info:focus:not(:active){box-shadow:0 0 0 .125em rgba(32,156,238,.25)}.button.is-info.is-active,.button.is-info:active{background-color:#118fe4;border-color:transparent;color:#fff}.button.is-info[disabled]{background-color:#209cee;border-color:transparent;box-shadow:none}.button.is-info.is-inverted{background-color:#fff;color:#209cee}.button.is-info.is-inverted:hover{background-color:#f2f2f2}.button.is-info.is-inverted[disabled]{background-color:#fff;border-color:transparent;box-shadow:none;color:#209cee}.button.is-info.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-info.is-outlined{background-color:transparent;border-color:#209cee;color:#209cee}.button.is-info.is-outlined:focus,.button.is-info.is-outlined:hover{background-color:#209cee;border-color:#209cee;color:#fff}.button.is-info.is-outlined.is-loading:after{border-color:transparent transparent #209cee #209cee!important}.button.is-info.is-outlined[disabled]{background-color:transparent;border-color:#209cee;box-shadow:none;color:#209cee}.button.is-info.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-info.is-inverted.is-outlined:focus,.button.is-info.is-inverted.is-outlined:hover{background-color:#fff;color:#209cee}.button.is-info.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#fff;box-shadow:none;color:#fff}.button.is-success{background-color:#23d160;border-color:transparent;color:#fff}.button.is-success.is-hovered,.button.is-success:hover{background-color:#22c65b;border-color:transparent;color:#fff}.button.is-success.is-focused,.button.is-success:focus{border-color:transparent;color:#fff}.button.is-success.is-focused:not(:active),.button.is-success:focus:not(:active){box-shadow:0 0 0 .125em rgba(35,209,96,.25)}.button.is-success.is-active,.button.is-success:active{background-color:#20bc56;border-color:transparent;color:#fff}.button.is-success[disabled]{background-color:#23d160;border-color:transparent;box-shadow:none}.button.is-success.is-inverted{background-color:#fff;color:#23d160}.button.is-success.is-inverted:hover{background-color:#f2f2f2}.button.is-success.is-inverted[disabled]{background-color:#fff;border-color:transparent;box-shadow:none;color:#23d160}.button.is-success.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-success.is-outlined{background-color:transparent;border-color:#23d160;color:#23d160}.button.is-success.is-outlined:focus,.button.is-success.is-outlined:hover{background-color:#23d160;border-color:#23d160;color:#fff}.button.is-success.is-outlined.is-loading:after{border-color:transparent transparent #23d160 #23d160!important}.button.is-success.is-outlined[disabled]{background-color:transparent;border-color:#23d160;box-shadow:none;color:#23d160}.button.is-success.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-success.is-inverted.is-outlined:focus,.button.is-success.is-inverted.is-outlined:hover{background-color:#fff;color:#23d160}.button.is-success.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#fff;box-shadow:none;color:#fff}.button.is-warning{background-color:#ffdd57;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-hovered,.button.is-warning:hover{background-color:#ffdb4a;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-focused,.button.is-warning:focus{border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-focused:not(:active),.button.is-warning:focus:not(:active){box-shadow:0 0 0 .125em rgba(255,221,87,.25)}.button.is-warning.is-active,.button.is-warning:active{background-color:#ffd83d;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning[disabled]{background-color:#ffdd57;border-color:transparent;box-shadow:none}.button.is-warning.is-inverted{color:#ffdd57}.button.is-warning.is-inverted,.button.is-warning.is-inverted:hover{background-color:rgba(0,0,0,.7)}.button.is-warning.is-inverted[disabled]{background-color:rgba(0,0,0,.7);border-color:transparent;box-shadow:none;color:#ffdd57}.button.is-warning.is-loading:after{border-color:transparent transparent rgba(0,0,0,.7) rgba(0,0,0,.7)!important}.button.is-warning.is-outlined{background-color:transparent;border-color:#ffdd57;color:#ffdd57}.button.is-warning.is-outlined:focus,.button.is-warning.is-outlined:hover{background-color:#ffdd57;border-color:#ffdd57;color:rgba(0,0,0,.7)}.button.is-warning.is-outlined.is-loading:after{border-color:transparent transparent #ffdd57 #ffdd57!important}.button.is-warning.is-outlined[disabled]{background-color:transparent;border-color:#ffdd57;box-shadow:none;color:#ffdd57}.button.is-warning.is-inverted.is-outlined{background-color:transparent;border-color:rgba(0,0,0,.7);color:rgba(0,0,0,.7)}.button.is-warning.is-inverted.is-outlined:focus,.button.is-warning.is-inverted.is-outlined:hover{background-color:rgba(0,0,0,.7);color:#ffdd57}.button.is-warning.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:rgba(0,0,0,.7);box-shadow:none;color:rgba(0,0,0,.7)}.button.is-danger{background-color:#ff3860;border-color:transparent;color:#fff}.button.is-danger.is-hovered,.button.is-danger:hover{background-color:#ff2b56;border-color:transparent;color:#fff}.button.is-danger.is-focused,.button.is-danger:focus{border-color:transparent;color:#fff}.button.is-danger.is-focused:not(:active),.button.is-danger:focus:not(:active){box-shadow:0 0 0 .125em rgba(255,56,96,.25)}.button.is-danger.is-active,.button.is-danger:active{background-color:#ff1f4b;border-color:transparent;color:#fff}.button.is-danger[disabled]{background-color:#ff3860;border-color:transparent;box-shadow:none}.button.is-danger.is-inverted{background-color:#fff;color:#ff3860}.button.is-danger.is-inverted:hover{background-color:#f2f2f2}.button.is-danger.is-inverted[disabled]{background-color:#fff;border-color:transparent;box-shadow:none;color:#ff3860}.button.is-danger.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-danger.is-outlined{background-color:transparent;border-color:#ff3860;color:#ff3860}.button.is-danger.is-outlined:focus,.button.is-danger.is-outlined:hover{background-color:#ff3860;border-color:#ff3860;color:#fff}.button.is-danger.is-outlined.is-loading:after{border-color:transparent transparent #ff3860 #ff3860!important}.button.is-danger.is-outlined[disabled]{background-color:transparent;border-color:#ff3860;box-shadow:none;color:#ff3860}.button.is-danger.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-danger.is-inverted.is-outlined:focus,.button.is-danger.is-inverted.is-outlined:hover{background-color:#fff;color:#ff3860}.button.is-danger.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#fff;box-shadow:none;color:#fff}.button.is-small{border-radius:2px;font-size:.75rem}.button.is-medium{font-size:1.25rem}.button.is-large{font-size:1.5rem}.button[disabled]{background-color:#fff;border-color:#dbdbdb;box-shadow:none;opacity:.5}.button.is-fullwidth{display:flex;width:100%}.button.is-loading{color:transparent!important;pointer-events:none}.button.is-loading:after{animation:a .5s infinite linear;border:2px solid #dbdbdb;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:1em;position:relative;width:1em;position:absolute;left:calc(50% - 0.5em);top:calc(50% - 0.5em);position:absolute!important}.button.is-static{background-color:#f5f5f5;border-color:#dbdbdb;color:#7a7a7a;box-shadow:none;pointer-events:none}.button.is-rounded{border-radius:290486px;padding-left:1em;padding-right:1em}.buttons{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-start}.buttons .button{margin-bottom:.5rem}.buttons .button:not(:last-child){margin-right:.5rem}.buttons:last-child{margin-bottom:-.5rem}.buttons:not(:last-child){margin-bottom:1rem}.buttons.has-addons .button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.buttons.has-addons .button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.buttons.has-addons .button:last-child{margin-right:0}.buttons.has-addons .button.is-hovered,.buttons.has-addons .button:hover{z-index:2}.buttons.has-addons .button.is-active,.buttons.has-addons .button.is-focused,.buttons.has-addons .button.is-selected,.buttons.has-addons .button:active,.buttons.has-addons .button:focus{z-index:3}.buttons.has-addons .button.is-active:hover,.buttons.has-addons .button.is-focused:hover,.buttons.has-addons .button.is-selected:hover,.buttons.has-addons .button:active:hover,.buttons.has-addons .button:focus:hover{z-index:4}.buttons.is-centered{justify-content:center}.buttons.is-right{justify-content:flex-end}.input,.textarea{-moz-appearance:none;-webkit-appearance:none;align-items:center;border:1px solid transparent;border-radius:3px;box-shadow:none;display:inline-flex;font-size:1rem;height:2.25em;justify-content:flex-start;line-height:1.5;padding:calc(.375em - 1px) calc(.625em - 1px);position:relative;vertical-align:top;background-color:#fff;border-color:#dbdbdb;color:#363636;box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1);max-width:100%;width:100%}.input.is-active,.input.is-focused,.input:active,.input:focus,.textarea.is-active,.textarea.is-focused,.textarea:active,.textarea:focus{outline:none}.input[disabled],.textarea[disabled]{cursor:not-allowed}.input::-moz-placeholder,.textarea::-moz-placeholder{color:rgba(54,54,54,.3)}.input::-webkit-input-placeholder,.textarea::-webkit-input-placeholder{color:rgba(54,54,54,.3)}.input:-moz-placeholder,.textarea:-moz-placeholder{color:rgba(54,54,54,.3)}.input:-ms-input-placeholder,.textarea:-ms-input-placeholder{color:rgba(54,54,54,.3)}.input.is-hovered,.input:hover,.textarea.is-hovered,.textarea:hover{border-color:#b5b5b5}.input.is-active,.input.is-focused,.input:active,.input:focus,.textarea.is-active,.textarea.is-focused,.textarea:active,.textarea:focus{border-color:#3273dc;box-shadow:0 0 0 .125em rgba(50,115,220,.25)}.input[disabled],.textarea[disabled]{background-color:#f5f5f5;border-color:#f5f5f5;box-shadow:none;color:#7a7a7a}.input[disabled]::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:hsla(0,0%,48%,.3)}.input[disabled]::-webkit-input-placeholder,.textarea[disabled]::-webkit-input-placeholder{color:hsla(0,0%,48%,.3)}.input[disabled]:-moz-placeholder,.textarea[disabled]:-moz-placeholder{color:hsla(0,0%,48%,.3)}.input[disabled]:-ms-input-placeholder,.textarea[disabled]:-ms-input-placeholder{color:hsla(0,0%,48%,.3)}.input[readonly],.textarea[readonly]{box-shadow:none}.input.is-white,.textarea.is-white{border-color:#fff}.input.is-white.is-active,.input.is-white.is-focused,.input.is-white:active,.input.is-white:focus,.textarea.is-white.is-active,.textarea.is-white.is-focused,.textarea.is-white:active,.textarea.is-white:focus{box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.input.is-black,.textarea.is-black{border-color:#0a0a0a}.input.is-black.is-active,.input.is-black.is-focused,.input.is-black:active,.input.is-black:focus,.textarea.is-black.is-active,.textarea.is-black.is-focused,.textarea.is-black:active,.textarea.is-black:focus{box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.input.is-light,.textarea.is-light{border-color:#f5f5f5}.input.is-light.is-active,.input.is-light.is-focused,.input.is-light:active,.input.is-light:focus,.textarea.is-light.is-active,.textarea.is-light.is-focused,.textarea.is-light:active,.textarea.is-light:focus{box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.input.is-dark,.textarea.is-dark{border-color:#363636}.input.is-dark.is-active,.input.is-dark.is-focused,.input.is-dark:active,.input.is-dark:focus,.textarea.is-dark.is-active,.textarea.is-dark.is-focused,.textarea.is-dark:active,.textarea.is-dark:focus{box-shadow:0 0 0 .125em rgba(54,54,54,.25)}.input.is-primary,.textarea.is-primary{border-color:#00d1b2}.input.is-primary.is-active,.input.is-primary.is-focused,.input.is-primary:active,.input.is-primary:focus,.textarea.is-primary.is-active,.textarea.is-primary.is-focused,.textarea.is-primary:active,.textarea.is-primary:focus{box-shadow:0 0 0 .125em rgba(0,209,178,.25)}.input.is-link,.textarea.is-link{border-color:#3273dc}.input.is-link.is-active,.input.is-link.is-focused,.input.is-link:active,.input.is-link:focus,.textarea.is-link.is-active,.textarea.is-link.is-focused,.textarea.is-link:active,.textarea.is-link:focus{box-shadow:0 0 0 .125em rgba(50,115,220,.25)}.input.is-info,.textarea.is-info{border-color:#209cee}.input.is-info.is-active,.input.is-info.is-focused,.input.is-info:active,.input.is-info:focus,.textarea.is-info.is-active,.textarea.is-info.is-focused,.textarea.is-info:active,.textarea.is-info:focus{box-shadow:0 0 0 .125em rgba(32,156,238,.25)}.input.is-success,.textarea.is-success{border-color:#23d160}.input.is-success.is-active,.input.is-success.is-focused,.input.is-success:active,.input.is-success:focus,.textarea.is-success.is-active,.textarea.is-success.is-focused,.textarea.is-success:active,.textarea.is-success:focus{box-shadow:0 0 0 .125em rgba(35,209,96,.25)}.input.is-warning,.textarea.is-warning{border-color:#ffdd57}.input.is-warning.is-active,.input.is-warning.is-focused,.input.is-warning:active,.input.is-warning:focus,.textarea.is-warning.is-active,.textarea.is-warning.is-focused,.textarea.is-warning:active,.textarea.is-warning:focus{box-shadow:0 0 0 .125em rgba(255,221,87,.25)}.input.is-danger,.textarea.is-danger{border-color:#ff3860}.input.is-danger.is-active,.input.is-danger.is-focused,.input.is-danger:active,.input.is-danger:focus,.textarea.is-danger.is-active,.textarea.is-danger.is-focused,.textarea.is-danger:active,.textarea.is-danger:focus{box-shadow:0 0 0 .125em rgba(255,56,96,.25)}.input.is-small,.textarea.is-small{border-radius:2px;font-size:.75rem}.input.is-medium,.textarea.is-medium{font-size:1.25rem}.input.is-large,.textarea.is-large{font-size:1.5rem}.input.is-fullwidth,.textarea.is-fullwidth{display:block;width:100%}.input.is-inline,.textarea.is-inline{display:inline;width:auto}.input.is-rounded{border-radius:290486px;padding-left:1em;padding-right:1em}.input.is-static{background-color:transparent;border-color:transparent;box-shadow:none;padding-left:0;padding-right:0}.textarea{display:block;max-width:100%;min-width:100%;padding:.625em;resize:vertical}.textarea:not([rows]){max-height:600px;min-height:120px}.textarea[rows]{height:unset}.textarea.has-fixed-size{resize:none}.checkbox,.radio{cursor:pointer;display:inline-block;line-height:1.25;position:relative}.checkbox input,.radio input{cursor:pointer}.checkbox:hover,.radio:hover{color:#363636}.checkbox[disabled],.radio[disabled]{color:#7a7a7a;cursor:not-allowed}.radio+.radio{margin-left:.5em}.select{display:inline-block;max-width:100%;position:relative;vertical-align:top}.select:not(.is-multiple){height:2.25em}.select:not(.is-multiple):after{border:1px solid #3273dc;border-right:0;border-top:0;content:" ";display:block;height:.5em;pointer-events:none;position:absolute;transform:rotate(-45deg);transform-origin:center;width:.5em;margin-top:-.375em;right:1.125em;top:50%;z-index:4}.select.is-rounded select{border-radius:290486px;padding-left:1em}.select select{-moz-appearance:none;-webkit-appearance:none;align-items:center;border:1px solid transparent;border-radius:3px;box-shadow:none;display:inline-flex;font-size:1rem;height:2.25em;justify-content:flex-start;line-height:1.5;padding:calc(.375em - 1px) calc(.625em - 1px);position:relative;vertical-align:top;background-color:#fff;border-color:#dbdbdb;color:#363636;cursor:pointer;display:block;font-size:1em;max-width:100%;outline:none}.select select.is-active,.select select.is-focused,.select select:active,.select select:focus{outline:none}.select select[disabled]{cursor:not-allowed}.select select::-moz-placeholder{color:rgba(54,54,54,.3)}.select select::-webkit-input-placeholder{color:rgba(54,54,54,.3)}.select select:-moz-placeholder{color:rgba(54,54,54,.3)}.select select:-ms-input-placeholder{color:rgba(54,54,54,.3)}.select select.is-hovered,.select select:hover{border-color:#b5b5b5}.select select.is-active,.select select.is-focused,.select select:active,.select select:focus{border-color:#3273dc;box-shadow:0 0 0 .125em rgba(50,115,220,.25)}.select select[disabled]{background-color:#f5f5f5;border-color:#f5f5f5;box-shadow:none;color:#7a7a7a}.select select[disabled]::-moz-placeholder{color:hsla(0,0%,48%,.3)}.select select[disabled]::-webkit-input-placeholder{color:hsla(0,0%,48%,.3)}.select select[disabled]:-moz-placeholder{color:hsla(0,0%,48%,.3)}.select select[disabled]:-ms-input-placeholder{color:hsla(0,0%,48%,.3)}.select select::-ms-expand{display:none}.select select[disabled]:hover{border-color:#f5f5f5}.select select:not([multiple]){padding-right:2.5em}.select select[multiple]{height:unset;padding:0}.select select[multiple] option{padding:.5em 1em}.select:hover:after{border-color:#363636}.select.is-white select{border-color:#fff}.select.is-white select.is-active,.select.is-white select.is-focused,.select.is-white select:active,.select.is-white select:focus{box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.select.is-black select{border-color:#0a0a0a}.select.is-black select.is-active,.select.is-black select.is-focused,.select.is-black select:active,.select.is-black select:focus{box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.select.is-light select{border-color:#f5f5f5}.select.is-light select.is-active,.select.is-light select.is-focused,.select.is-light select:active,.select.is-light select:focus{box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.select.is-dark select{border-color:#363636}.select.is-dark select.is-active,.select.is-dark select.is-focused,.select.is-dark select:active,.select.is-dark select:focus{box-shadow:0 0 0 .125em rgba(54,54,54,.25)}.select.is-primary select{border-color:#00d1b2}.select.is-primary select.is-active,.select.is-primary select.is-focused,.select.is-primary select:active,.select.is-primary select:focus{box-shadow:0 0 0 .125em rgba(0,209,178,.25)}.select.is-link select{border-color:#3273dc}.select.is-link select.is-active,.select.is-link select.is-focused,.select.is-link select:active,.select.is-link select:focus{box-shadow:0 0 0 .125em rgba(50,115,220,.25)}.select.is-info select{border-color:#209cee}.select.is-info select.is-active,.select.is-info select.is-focused,.select.is-info select:active,.select.is-info select:focus{box-shadow:0 0 0 .125em rgba(32,156,238,.25)}.select.is-success select{border-color:#23d160}.select.is-success select.is-active,.select.is-success select.is-focused,.select.is-success select:active,.select.is-success select:focus{box-shadow:0 0 0 .125em rgba(35,209,96,.25)}.select.is-warning select{border-color:#ffdd57}.select.is-warning select.is-active,.select.is-warning select.is-focused,.select.is-warning select:active,.select.is-warning select:focus{box-shadow:0 0 0 .125em rgba(255,221,87,.25)}.select.is-danger select{border-color:#ff3860}.select.is-danger select.is-active,.select.is-danger select.is-focused,.select.is-danger select:active,.select.is-danger select:focus{box-shadow:0 0 0 .125em rgba(255,56,96,.25)}.select.is-small{border-radius:2px;font-size:.75rem}.select.is-medium{font-size:1.25rem}.select.is-large{font-size:1.5rem}.select.is-disabled:after{border-color:#7a7a7a}.select.is-fullwidth,.select.is-fullwidth select{width:100%}.select.is-loading:after{animation:a .5s infinite linear;border:2px solid #dbdbdb;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:1em;position:relative;width:1em;margin-top:0;position:absolute;right:.625em;top:.625em;transform:none}.select.is-loading.is-small:after{font-size:.75rem}.select.is-loading.is-medium:after{font-size:1.25rem}.select.is-loading.is-large:after{font-size:1.5rem}.file{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:stretch;display:flex;justify-content:flex-start;position:relative}.file.is-white .file-cta{background-color:#fff;border-color:transparent;color:#0a0a0a}.file.is-white.is-hovered .file-cta,.file.is-white:hover .file-cta{background-color:#f9f9f9;border-color:transparent;color:#0a0a0a}.file.is-white.is-focused .file-cta,.file.is-white:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em hsla(0,0%,100%,.25);color:#0a0a0a}.file.is-white.is-active .file-cta,.file.is-white:active .file-cta{background-color:#f2f2f2;border-color:transparent;color:#0a0a0a}.file.is-black .file-cta{background-color:#0a0a0a;border-color:transparent;color:#fff}.file.is-black.is-hovered .file-cta,.file.is-black:hover .file-cta{background-color:#040404;border-color:transparent;color:#fff}.file.is-black.is-focused .file-cta,.file.is-black:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em hsla(0,0%,4%,.25);color:#fff}.file.is-black.is-active .file-cta,.file.is-black:active .file-cta{background-color:#000;border-color:transparent;color:#fff}.file.is-light .file-cta{background-color:#f5f5f5;border-color:transparent;color:#363636}.file.is-light.is-hovered .file-cta,.file.is-light:hover .file-cta{background-color:#eee;border-color:transparent;color:#363636}.file.is-light.is-focused .file-cta,.file.is-light:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em hsla(0,0%,96%,.25);color:#363636}.file.is-light.is-active .file-cta,.file.is-light:active .file-cta{background-color:#e8e8e8;border-color:transparent;color:#363636}.file.is-dark .file-cta{background-color:#363636;border-color:transparent;color:#f5f5f5}.file.is-dark.is-hovered .file-cta,.file.is-dark:hover .file-cta{background-color:#2f2f2f;border-color:transparent;color:#f5f5f5}.file.is-dark.is-focused .file-cta,.file.is-dark:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em rgba(54,54,54,.25);color:#f5f5f5}.file.is-dark.is-active .file-cta,.file.is-dark:active .file-cta{background-color:#292929;border-color:transparent;color:#f5f5f5}.file.is-primary .file-cta{background-color:#00d1b2;border-color:transparent;color:#fff}.file.is-primary.is-hovered .file-cta,.file.is-primary:hover .file-cta{background-color:#00c4a7;border-color:transparent;color:#fff}.file.is-primary.is-focused .file-cta,.file.is-primary:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em rgba(0,209,178,.25);color:#fff}.file.is-primary.is-active .file-cta,.file.is-primary:active .file-cta{background-color:#00b89c;border-color:transparent;color:#fff}.file.is-link .file-cta{background-color:#3273dc;border-color:transparent;color:#fff}.file.is-link.is-hovered .file-cta,.file.is-link:hover .file-cta{background-color:#276cda;border-color:transparent;color:#fff}.file.is-link.is-focused .file-cta,.file.is-link:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em rgba(50,115,220,.25);color:#fff}.file.is-link.is-active .file-cta,.file.is-link:active .file-cta{background-color:#2366d1;border-color:transparent;color:#fff}.file.is-info .file-cta{background-color:#209cee;border-color:transparent;color:#fff}.file.is-info.is-hovered .file-cta,.file.is-info:hover .file-cta{background-color:#1496ed;border-color:transparent;color:#fff}.file.is-info.is-focused .file-cta,.file.is-info:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em rgba(32,156,238,.25);color:#fff}.file.is-info.is-active .file-cta,.file.is-info:active .file-cta{background-color:#118fe4;border-color:transparent;color:#fff}.file.is-success .file-cta{background-color:#23d160;border-color:transparent;color:#fff}.file.is-success.is-hovered .file-cta,.file.is-success:hover .file-cta{background-color:#22c65b;border-color:transparent;color:#fff}.file.is-success.is-focused .file-cta,.file.is-success:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em rgba(35,209,96,.25);color:#fff}.file.is-success.is-active .file-cta,.file.is-success:active .file-cta{background-color:#20bc56;border-color:transparent;color:#fff}.file.is-warning .file-cta{background-color:#ffdd57;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-warning.is-hovered .file-cta,.file.is-warning:hover .file-cta{background-color:#ffdb4a;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-warning.is-focused .file-cta,.file.is-warning:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em rgba(255,221,87,.25);color:rgba(0,0,0,.7)}.file.is-warning.is-active .file-cta,.file.is-warning:active .file-cta{background-color:#ffd83d;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-danger .file-cta{background-color:#ff3860;border-color:transparent;color:#fff}.file.is-danger.is-hovered .file-cta,.file.is-danger:hover .file-cta{background-color:#ff2b56;border-color:transparent;color:#fff}.file.is-danger.is-focused .file-cta,.file.is-danger:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em rgba(255,56,96,.25);color:#fff}.file.is-danger.is-active .file-cta,.file.is-danger:active .file-cta{background-color:#ff1f4b;border-color:transparent;color:#fff}.file.is-small{font-size:.75rem}.file.is-medium{font-size:1.25rem}.file.is-medium .file-icon .fa{font-size:21px}.file.is-large{font-size:1.5rem}.file.is-large .file-icon .fa{font-size:28px}.file.has-name .file-cta{border-bottom-right-radius:0;border-top-right-radius:0}.file.has-name .file-name{border-bottom-left-radius:0;border-top-left-radius:0}.file.has-name.is-empty .file-cta{border-radius:3px}.file.has-name.is-empty .file-name{display:none}.file.is-boxed .file-label{flex-direction:column}.file.is-boxed .file-cta{flex-direction:column;height:auto;padding:1em 3em}.file.is-boxed .file-name{border-width:0 1px 1px}.file.is-boxed .file-icon{height:1.5em;width:1.5em}.file.is-boxed .file-icon .fa{font-size:21px}.file.is-boxed.is-small .file-icon .fa{font-size:14px}.file.is-boxed.is-medium .file-icon .fa{font-size:28px}.file.is-boxed.is-large .file-icon .fa{font-size:35px}.file.is-boxed.has-name .file-cta{border-radius:3px 3px 0 0}.file.is-boxed.has-name .file-name{border-radius:0 0 3px 3px;border-width:0 1px 1px}.file.is-centered{justify-content:center}.file.is-fullwidth .file-label{width:100%}.file.is-fullwidth .file-name{flex-grow:1;max-width:none}.file.is-right{justify-content:flex-end}.file.is-right .file-cta{border-radius:0 3px 3px 0}.file.is-right .file-name{border-radius:3px 0 0 3px;border-width:1px 0 1px 1px;order:-1}.file-label{align-items:stretch;display:flex;cursor:pointer;justify-content:flex-start;overflow:hidden;position:relative}.file-label:hover .file-cta{background-color:#eee;color:#363636}.file-label:hover .file-name{border-color:#d5d5d5}.file-label:active .file-cta{background-color:#e8e8e8;color:#363636}.file-label:active .file-name{border-color:#cfcfcf}.file-input{height:.01em;left:0;outline:none;position:absolute;top:0;width:.01em}.file-cta,.file-name{-moz-appearance:none;-webkit-appearance:none;align-items:center;border:1px solid transparent;box-shadow:none;display:inline-flex;font-size:1rem;height:2.25em;justify-content:flex-start;line-height:1.5;padding-left:calc(.625em - 1px);padding-right:calc(.625em - 1px);position:relative;vertical-align:top;border-color:#dbdbdb;border-radius:3px;font-size:1em;padding:calc(.375em - 1px) 1em;white-space:nowrap}.file-cta.is-active,.file-cta.is-focused,.file-cta:active,.file-cta:focus,.file-name.is-active,.file-name.is-focused,.file-name:active,.file-name:focus{outline:none}.file-cta[disabled],.file-name[disabled]{cursor:not-allowed}.file-cta{background-color:#f5f5f5;color:#4a4a4a}.file-name{border-color:#dbdbdb;border-style:solid;border-width:1px 1px 1px 0;display:block;max-width:16em;overflow:hidden;text-align:left;text-overflow:ellipsis}.file-icon{align-items:center;display:flex;height:1em;justify-content:center;margin-right:.5em;width:1em}.file-icon .fa{font-size:14px}.label{color:#363636;display:block;font-size:1rem;font-weight:700}.label:not(:last-child){margin-bottom:.5em}.label.is-small{font-size:.75rem}.label.is-medium{font-size:1.25rem}.label.is-large{font-size:1.5rem}.help{display:block;font-size:.75rem;margin-top:.25rem}.help.is-white{color:#fff}.help.is-black{color:#0a0a0a}.help.is-light{color:#f5f5f5}.help.is-dark{color:#363636}.help.is-primary{color:#00d1b2}.help.is-link{color:#3273dc}.help.is-info{color:#209cee}.help.is-success{color:#23d160}.help.is-warning{color:#ffdd57}.help.is-danger{color:#ff3860}.field:not(:last-child){margin-bottom:.75rem}.field.has-addons{display:flex;justify-content:flex-start}.field.has-addons .control:not(:last-child){margin-right:-1px}.field.has-addons .control:not(:first-child):not(:last-child) .button,.field.has-addons .control:not(:first-child):not(:last-child) .input,.field.has-addons .control:not(:first-child):not(:last-child) .select select{border-radius:0}.field.has-addons .control:first-child .button,.field.has-addons .control:first-child .input,.field.has-addons .control:first-child .select select{border-bottom-right-radius:0;border-top-right-radius:0}.field.has-addons .control:last-child .button,.field.has-addons .control:last-child .input,.field.has-addons .control:last-child .select select{border-bottom-left-radius:0;border-top-left-radius:0}.field.has-addons .control .button.is-hovered,.field.has-addons .control .button:hover,.field.has-addons .control .input.is-hovered,.field.has-addons .control .input:hover,.field.has-addons .control .select select.is-hovered,.field.has-addons .control .select select:hover{z-index:2}.field.has-addons .control .button.is-active,.field.has-addons .control .button.is-focused,.field.has-addons .control .button:active,.field.has-addons .control .button:focus,.field.has-addons .control .input.is-active,.field.has-addons .control .input.is-focused,.field.has-addons .control .input:active,.field.has-addons .control .input:focus,.field.has-addons .control .select select.is-active,.field.has-addons .control .select select.is-focused,.field.has-addons .control .select select:active,.field.has-addons .control .select select:focus{z-index:3}.field.has-addons .control .button.is-active:hover,.field.has-addons .control .button.is-focused:hover,.field.has-addons .control .button:active:hover,.field.has-addons .control .button:focus:hover,.field.has-addons .control .input.is-active:hover,.field.has-addons .control .input.is-focused:hover,.field.has-addons .control .input:active:hover,.field.has-addons .control .input:focus:hover,.field.has-addons .control .select select.is-active:hover,.field.has-addons .control .select select.is-focused:hover,.field.has-addons .control .select select:active:hover,.field.has-addons .control .select select:focus:hover{z-index:4}.field.has-addons .control.is-expanded{flex-grow:1}.field.has-addons.has-addons-centered{justify-content:center}.field.has-addons.has-addons-right{justify-content:flex-end}.field.has-addons.has-addons-fullwidth .control{flex-grow:1;flex-shrink:0}.field.is-grouped{display:flex;justify-content:flex-start}.field.is-grouped>.control{flex-shrink:0}.field.is-grouped>.control:not(:last-child){margin-bottom:0;margin-right:.75rem}.field.is-grouped>.control.is-expanded{flex-grow:1;flex-shrink:1}.field.is-grouped.is-grouped-centered{justify-content:center}.field.is-grouped.is-grouped-right{justify-content:flex-end}.field.is-grouped.is-grouped-multiline{flex-wrap:wrap}.field.is-grouped.is-grouped-multiline>.control:last-child,.field.is-grouped.is-grouped-multiline>.control:not(:last-child){margin-bottom:.75rem}.field.is-grouped.is-grouped-multiline:last-child{margin-bottom:-.75rem}.field.is-grouped.is-grouped-multiline:not(:last-child){margin-bottom:0}@media print,screen and (min-width:769px){.field.is-horizontal{display:flex}}.field-label .label{font-size:inherit}@media screen and (max-width:768px){.field-label{margin-bottom:.5rem}}@media print,screen and (min-width:769px){.field-label{flex-basis:0;flex-grow:1;flex-shrink:0;margin-right:1.5rem;text-align:right}.field-label.is-small{font-size:.75rem;padding-top:.375em}.field-label.is-normal{padding-top:.375em}.field-label.is-medium{font-size:1.25rem;padding-top:.375em}.field-label.is-large{font-size:1.5rem;padding-top:.375em}}.field-body .field .field{margin-bottom:0}@media print,screen and (min-width:769px){.field-body{display:flex;flex-basis:0;flex-grow:5;flex-shrink:1}.field-body .field{margin-bottom:0}.field-body>.field{flex-shrink:1}.field-body>.field:not(.is-narrow){flex-grow:1}.field-body>.field:not(:last-child){margin-right:.75rem}}.control{font-size:1rem;position:relative;text-align:left}.control.has-icon .icon{color:#dbdbdb;height:2.25em;pointer-events:none;position:absolute;top:0;width:2.25em;z-index:4}.control.has-icon .input:focus+.icon{color:#7a7a7a}.control.has-icon .input.is-small+.icon{font-size:.75rem}.control.has-icon .input.is-medium+.icon{font-size:1.25rem}.control.has-icon .input.is-large+.icon{font-size:1.5rem}.control.has-icon:not(.has-icon-right) .icon{left:0}.control.has-icon:not(.has-icon-right) .input{padding-left:2.25em}.control.has-icon.has-icon-right .icon{right:0}.control.has-icon.has-icon-right .input{padding-right:2.25em}.control.has-icons-left .input:focus~.icon,.control.has-icons-left .select:focus~.icon,.control.has-icons-right .input:focus~.icon,.control.has-icons-right .select:focus~.icon{color:#7a7a7a}.control.has-icons-left .input.is-small~.icon,.control.has-icons-left .select.is-small~.icon,.control.has-icons-right .input.is-small~.icon,.control.has-icons-right .select.is-small~.icon{font-size:.75rem}.control.has-icons-left .input.is-medium~.icon,.control.has-icons-left .select.is-medium~.icon,.control.has-icons-right .input.is-medium~.icon,.control.has-icons-right .select.is-medium~.icon{font-size:1.25rem}.control.has-icons-left .input.is-large~.icon,.control.has-icons-left .select.is-large~.icon,.control.has-icons-right .input.is-large~.icon,.control.has-icons-right .select.is-large~.icon{font-size:1.5rem}.control.has-icons-left .icon,.control.has-icons-right .icon{color:#dbdbdb;height:2.25em;pointer-events:none;position:absolute;top:0;width:2.25em;z-index:4}.control.has-icons-left .input,.control.has-icons-left .select select{padding-left:2.25em}.control.has-icons-left .icon.is-left{left:0}.control.has-icons-right .input,.control.has-icons-right .select select{padding-right:2.25em}.control.has-icons-right .icon.is-right{right:0}.control.is-loading:after{animation:a .5s infinite linear;border:2px solid #dbdbdb;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:1em;position:relative;width:1em;position:absolute!important;right:.625em;top:.625em;z-index:4}.control.is-loading.is-small:after{font-size:.75rem}.control.is-loading.is-medium:after{font-size:1.25rem}.control.is-loading.is-large:after{font-size:1.5rem}.progress{-moz-appearance:none;-webkit-appearance:none;border:none;border-radius:290486px;display:block;height:1rem;overflow:hidden;padding:0;width:100%}.progress:not(:last-child){margin-bottom:1.5rem}.progress::-webkit-progress-bar{background-color:#dbdbdb}.progress::-webkit-progress-value{background-color:#4a4a4a}.progress::-moz-progress-bar{background-color:#4a4a4a}.progress::-ms-fill{background-color:#4a4a4a;border:none}.progress.is-white::-webkit-progress-value{background-color:#fff}.progress.is-white::-moz-progress-bar{background-color:#fff}.progress.is-white::-ms-fill{background-color:#fff}.progress.is-black::-webkit-progress-value{background-color:#0a0a0a}.progress.is-black::-moz-progress-bar{background-color:#0a0a0a}.progress.is-black::-ms-fill{background-color:#0a0a0a}.progress.is-light::-webkit-progress-value{background-color:#f5f5f5}.progress.is-light::-moz-progress-bar{background-color:#f5f5f5}.progress.is-light::-ms-fill{background-color:#f5f5f5}.progress.is-dark::-webkit-progress-value{background-color:#363636}.progress.is-dark::-moz-progress-bar{background-color:#363636}.progress.is-dark::-ms-fill{background-color:#363636}.progress.is-primary::-webkit-progress-value{background-color:#00d1b2}.progress.is-primary::-moz-progress-bar{background-color:#00d1b2}.progress.is-primary::-ms-fill{background-color:#00d1b2}.progress.is-link::-webkit-progress-value{background-color:#3273dc}.progress.is-link::-moz-progress-bar{background-color:#3273dc}.progress.is-link::-ms-fill{background-color:#3273dc}.progress.is-info::-webkit-progress-value{background-color:#209cee}.progress.is-info::-moz-progress-bar{background-color:#209cee}.progress.is-info::-ms-fill{background-color:#209cee}.progress.is-success::-webkit-progress-value{background-color:#23d160}.progress.is-success::-moz-progress-bar{background-color:#23d160}.progress.is-success::-ms-fill{background-color:#23d160}.progress.is-warning::-webkit-progress-value{background-color:#ffdd57}.progress.is-warning::-moz-progress-bar{background-color:#ffdd57}.progress.is-warning::-ms-fill{background-color:#ffdd57}.progress.is-danger::-webkit-progress-value{background-color:#ff3860}.progress.is-danger::-moz-progress-bar{background-color:#ff3860}.progress.is-danger::-ms-fill{background-color:#ff3860}.progress.is-small{height:.75rem}.progress.is-medium{height:1.25rem}.progress.is-large{height:1.5rem}.modal{bottom:0;left:0;position:absolute;right:0;top:0;align-items:center;display:none;justify-content:center;overflow:hidden;position:fixed;z-index:40}.modal.is-active{display:flex}.modal-background{bottom:0;left:0;position:absolute;right:0;top:0;background-color:hsla(0,0%,4%,.86)}.modal-card,.modal-content{margin:0 20px;max-height:calc(100vh - 160px);overflow:auto;position:relative;width:100%}@media print,screen and (min-width:769px){.modal-card,.modal-content{margin:0 auto;max-height:calc(100vh - 40px);width:640px}}.modal-close{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-moz-appearance:none;-webkit-appearance:none;background-color:hsla(0,0%,4%,.2);border:none;border-radius:290486px;cursor:pointer;display:inline-block;flex-grow:0;flex-shrink:0;font-size:0;height:20px;max-height:20px;max-width:20px;min-height:20px;min-width:20px;outline:none;position:relative;vertical-align:top;width:20px;background:none;height:40px;position:fixed;right:20px;top:20px;width:40px}.modal-close:after,.modal-close:before{background-color:#fff;content:"";display:block;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) rotate(45deg);transform-origin:center center}.modal-close:before{height:2px;width:50%}.modal-close:after{height:50%;width:2px}.modal-close:focus,.modal-close:hover{background-color:hsla(0,0%,4%,.3)}.modal-close:active{background-color:hsla(0,0%,4%,.4)}.modal-close.is-small{height:16px;max-height:16px;max-width:16px;min-height:16px;min-width:16px;width:16px}.modal-close.is-medium{height:24px;max-height:24px;max-width:24px;min-height:24px;min-width:24px;width:24px}.modal-close.is-large{height:32px;max-height:32px;max-width:32px;min-height:32px;min-width:32px;width:32px}.modal-card{display:flex;flex-direction:column;max-height:calc(100vh - 40px);overflow:hidden}.modal-card-foot,.modal-card-head{align-items:center;background-color:#f5f5f5;display:flex;flex-shrink:0;justify-content:flex-start;padding:20px;position:relative}.modal-card-head{border-bottom:1px solid #dbdbdb;border-top-left-radius:5px;border-top-right-radius:5px}.modal-card-title{color:#363636;flex-grow:1;flex-shrink:0;font-size:1.5rem;line-height:1}.modal-card-foot{border-bottom-left-radius:5px;border-bottom-right-radius:5px;border-top:1px solid #dbdbdb}.modal-card-foot .button:not(:last-child){margin-right:10px}.modal-card-body{-webkit-overflow-scrolling:touch;background-color:#fff;flex-grow:1;flex-shrink:1;overflow:auto;padding:20px}body,html{height:100%;min-height:100%;margin:0;overflow:hidden}#terminal-container{width:auto;height:100%;margin:0 auto;padding:0;background-color:#2b2b2b}#terminal-container .terminal{padding:5px}#modal strong{color:#268bd2}#modal span{color:#2aa198}#modal header{font-weight:700;text-align:center;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #ddd}#status{margin-top:10px;text-align:center}#choose{padding-top:10px}#choose .file-name{border-color:transparent}#progress{padding-top:10px}#file-name{background-color:#fafffd;text-align:center}#progress progress{margin:10px 0}#progress{color:#93a1a1}#progress span{font-weight:700}</style></head><body><div id="terminal-container"></div><div class="modal" id="modal"><div class="modal-background"></div><div class="modal-content"><div class="box"><header id="header"></header><div id="status"><strong>Files remaining: </strong><span id="files-remaining"></span>, <strong>Bytes remaining: </strong><span id="bytes-remaining"></span></div><div id="choose" class="file has-name is-fullwidth"><label class="file-label"><input id="files" class="file-input" type="file" multiple="multiple"> <span class="file-cta"><strong class="file-label">Choose file(s)… </strong></span><span id="file-names" class="file-name"></span></label></div><div id="progress"><p id="file-name"></p><progress id="progress-bar" class="progress is-link" max="100"></progress><p id="progress-info"><span id="bytes-received">-</span>/<span id="bytes-file">-</span> (<span id="percent-received"></span>) transferred <a id="skip" class="button is-link is-small is-pulled-right">Skip</a></p></div></div></div></div><script src="auth_token.js"></script><script type="text/javascript">!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=245)}([function(e,t,r){var n=r(3),i=r(10),o=r(15),s=r(32),a=r(19),l=function(e,t,r){var c,h,u,f,_=e&l.F,d=e&l.G,p=e&l.S,y=e&l.P,m=e&l.B,v=d?n:p?n[t]||(n[t]={}):(n[t]||{}).prototype,g=d?i:i[t]||(i[t]={}),b=g.prototype||(g.prototype={});for(c in d&&(r=t),r)u=((h=!_&&v&&void 0!==v[c])?v:r)[c],f=m&&h?a(u,n):y&&"function"==typeof u?a(Function.call,u):u,v&&s(v,c,u,e&l.U),g[c]!=u&&o(g,c,f),y&&b[c]!=u&&(b[c]=u)};n.core=i,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,r){var n=r(79)("wks"),i=r(28),o=r(3).Symbol,s="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=s&&o[e]||(s?o:i)("Symbol."+e))}).store=n},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){var n=r(58);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(24),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){e.exports=!r(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,r){var n=r(13),i=r(104),o=r(34),s=Object.defineProperty;t.f=r(6)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(43),i=r(58);e.exports=function(e){return n(i(e))}},function(e,t){var r=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=r)},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(140),s=r(16),a=r(62);t.DEFAULT_ATTR=131840,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,t.NULL_CELL_CHAR=" ",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=32;var l=function(){function e(e,t){this._terminal=e,this._hasScrollback=t,this.markers=[],this.clear()}return 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 r=e+this._terminal.options.scrollback;return r>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:r},e.prototype.fillViewportRows=function(){if(0===this.lines.length)for(var e=this._terminal.rows;e--;)this.lines.push(a.BufferLine.blankLine(this._terminal.cols,t.DEFAULT_ATTR))},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,r){var n=this._getCorrectBufferLength(r);if(n>this.lines.maxLength&&(this.lines.maxLength=n),this.lines.length>0){if(this._terminal.cols<e)for(var i=[t.DEFAULT_ATTR,t.NULL_CELL_CHAR,t.NULL_CELL_WIDTH,t.NULL_CELL_CODE],o=0;o<this.lines.length;o++)for(;this.lines.get(o).length<e;)this.lines.get(o).push(i);var s=0;if(this._terminal.rows<r)for(var l=this._terminal.rows;l<r;l++)this.lines.length<r+this.ybase&&(this.ybase>0&&this.lines.length<=this.ybase+this.y+s+1?(this.ybase--,s++,this.ydisp>0&&this.ydisp--):this.lines.push(a.BufferLine.blankLine(e,t.DEFAULT_ATTR)));else for(l=this._terminal.rows;l>r;l--)this.lines.length>r+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(n<this.lines.maxLength){var c=this.lines.length-n;c>0&&(this.lines.trimStart(c),this.ybase=Math.max(this.ybase-c,0),this.ydisp=Math.max(this.ydisp-c,0)),this.lines.maxLength=n}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,r-1),s&&(this.y+=s),this.savedY=Math.min(this.savedY,r-1),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}this.scrollBottom=r-1},e.prototype.translateBufferLineToString=function(e,r,n,i){void 0===n&&(n=0),void 0===i&&(i=null);var o="",s=this.lines.get(e);if(!s)return"";var a=n;null===i&&(i=s.length);for(var l=i,c=0;c<s.length;c++){var h=s.get(c);o+=h[t.CHAR_DATA_CHAR_INDEX],0===h[t.CHAR_DATA_WIDTH_INDEX]?(n>=c&&a--,i>c&&l--):h[t.CHAR_DATA_CHAR_INDEX].length>1&&(n>c&&(a+=h[t.CHAR_DATA_CHAR_INDEX].length-1),i>c&&(l+=h[t.CHAR_DATA_CHAR_INDEX].length-1))}if(r){var u=o.search(/\s+$/);if(-1!==u&&(l=Math.min(l,u)),l<=a)return""}return o.substring(a,l)},e.prototype.getWrappedRangeForLine=function(e){for(var t=e,r=e;t>0&&this.lines.get(t).isWrapped;)t--;for(;r+1<this.lines.length&&this.lines.get(r+1).isWrapped;)r++;return{first:t,last:r}},e.prototype.setupTabStops=function(e){for(null!==e&&void 0!==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&&void 0!==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&&void 0!==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,r=new c(e);return this.markers.push(r),r.register(this.lines.addDisposableListener("trim",function(e){r.line-=e,r.line<0&&r.dispose()})),r.register(r.addDisposableListener("dispose",function(){return t._removeMarker(r)})),r},e.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},e}();t.Buffer=l;var c=function(e){function t(r){var n=e.call(this)||this;return n.line=r,n._id=t._nextId++,n.isDisposed=!1,n}return i(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.emit("dispose"),e.prototype.dispose.call(this))},t._nextId=1,t}(s.EventEmitter);t.Marker=c},function(e,t,r){"use strict";var n=r(7);e.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,r){var n=r(2);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){var n=r(0),i=r(10),o=r(7);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],s={};s[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",s)}},function(e,t,r){var n=r(8),i=r(33);e.exports=r(6)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){var t=e.call(this)||this;return t._events=t._events||{},t}return i(t,e),t.prototype.on=function(e,t){this._events[e]=this._events[e]||[],this._events[e].push(t)},t.prototype.addDisposableListener=function(e,t){var r=this;return this.on(e,t),{dispose:function(){t&&(r.off(e,t),t=null)}}},t.prototype.off=function(e,t){if(this._events[e])for(var r=this._events[e],n=r.length;n--;)if(r[n]===t)return void r.splice(n,1)},t.prototype.removeAllListeners=function(e){this._events[e]&&delete this._events[e]},t.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(this._events[e])for(var n=this._events[e],i=0;i<n.length;i++)n[i].apply(this,t)},t.prototype.listeners=function(e){return this._events[e]||[]},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._events={}},t}(r(25).Disposable);t.EventEmitter=o},function(e,t,r){"use strict";if(r(6)){var n=r(29),i=r(3),o=r(7),s=r(0),a=r(50),l=r(65),c=r(19),h=r(68),u=r(33),f=r(15),_=r(66),d=r(24),p=r(5),y=r(89),m=r(30),v=r(34),g=r(20),b=r(40),C=r(2),w=r(4),E=r(76),S=r(44),A=r(41),x=r(38).f,L=r(74),k=r(28),T=r(1),O=r(23),M=r(57),R=r(51),D=r(70),H=r(31),I=r(73),P=r(55),F=r(71),B=r(99),N=r(8),j=r(21),W=N.f,U=j.f,Z=i.RangeError,z=i.TypeError,K=i.Uint8Array,X=Array.prototype,V=l.ArrayBuffer,q=l.DataView,J=O(0),G=O(2),Y=O(3),Q=O(4),$=O(5),ee=O(6),te=M(!0),re=M(!1),ne=D.values,ie=D.keys,oe=D.entries,se=X.lastIndexOf,ae=X.reduce,le=X.reduceRight,ce=X.join,he=X.sort,ue=X.slice,fe=X.toString,_e=X.toLocaleString,de=T("iterator"),pe=T("toStringTag"),ye=k("typed_constructor"),me=k("def_constructor"),ve=a.CONSTR,ge=a.TYPED,be=a.VIEW,Ce=O(1,function(e,t){return xe(R(e,e[me]),t)}),we=o(function(){return 1===new K(new Uint16Array([1]).buffer)[0]}),Ee=!!K&&!!K.prototype.set&&o(function(){new K(1).set({})}),Se=function(e,t){var r=d(e);if(r<0||r%t)throw Z("Wrong offset!");return r},Ae=function(e){if(C(e)&&ge in e)return e;throw z(e+" is not a typed array!")},xe=function(e,t){if(!(C(e)&&ye in e))throw z("It is not a typed array constructor!");return new e(t)},Le=function(e,t){return ke(R(e,e[me]),t)},ke=function(e,t){for(var r=0,n=t.length,i=xe(e,n);n>r;)i[r]=t[r++];return i},Te=function(e,t,r){W(e,t,{get:function(){return this._d[r]}})},Oe=function(e){var t,r,n,i,o,s,a=w(e),l=arguments.length,h=l>1?arguments[1]:void 0,u=void 0!==h,f=L(a);if(void 0!=f&&!E(f)){for(s=f.call(a),n=[],t=0;!(o=s.next()).done;t++)n.push(o.value);a=n}for(u&&l>2&&(h=c(h,arguments[2],2)),t=0,r=p(a.length),i=xe(this,r);r>t;t++)i[t]=u?h(a[t],t):a[t];return i},Me=function(){for(var e=0,t=arguments.length,r=xe(this,t);t>e;)r[e]=arguments[e++];return r},Re=!!K&&o(function(){_e.call(new K(1))}),De=function(){return _e.apply(Re?ue.call(Ae(this)):Ae(this),arguments)},He={copyWithin:function(e,t){return B.call(Ae(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Q(Ae(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return F.apply(Ae(this),arguments)},filter:function(e){return Le(this,G(Ae(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return $(Ae(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Ae(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){J(Ae(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(Ae(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Ae(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ce.apply(Ae(this),arguments)},lastIndexOf:function(e){return se.apply(Ae(this),arguments)},map:function(e){return Ce(Ae(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ae.apply(Ae(this),arguments)},reduceRight:function(e){return le.apply(Ae(this),arguments)},reverse:function(){for(var e,t=Ae(this).length,r=Math.floor(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this},some:function(e){return Y(Ae(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return he.call(Ae(this),e)},subarray:function(e,t){var r=Ae(this),n=r.length,i=m(e,n);return new(R(r,r[me]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,p((void 0===t?n:m(t,n))-i))}},Ie=function(e,t){return Le(this,ue.call(Ae(this),e,t))},Pe=function(e){Ae(this);var t=Se(arguments[1],1),r=this.length,n=w(e),i=p(n.length),o=0;if(i+t>r)throw Z("Wrong length!");for(;o<i;)this[t+o]=n[o++]},Fe={entries:function(){return oe.call(Ae(this))},keys:function(){return ie.call(Ae(this))},values:function(){return ne.call(Ae(this))}},Be=function(e,t){return C(e)&&e[ge]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Ne=function(e,t){return Be(e,t=v(t,!0))?u(2,e[t]):U(e,t)},je=function(e,t,r){return!(Be(e,t=v(t,!0))&&C(r)&&g(r,"value"))||g(r,"get")||g(r,"set")||r.configurable||g(r,"writable")&&!r.writable||g(r,"enumerable")&&!r.enumerable?W(e,t,r):(e[t]=r.value,e)};ve||(j.f=Ne,N.f=je),s(s.S+s.F*!ve,"Object",{getOwnPropertyDescriptor:Ne,defineProperty:je}),o(function(){fe.call({})})&&(fe=_e=function(){return ce.call(this)});var We=_({},He);_(We,Fe),f(We,de,Fe.values),_(We,{slice:Ie,set:Pe,constructor:function(){},toString:fe,toLocaleString:De}),Te(We,"buffer","b"),Te(We,"byteOffset","o"),Te(We,"byteLength","l"),Te(We,"length","e"),W(We,pe,{get:function(){return this[ge]}}),e.exports=function(e,t,r,l){var c=e+((l=!!l)?"Clamped":"")+"Array",u="get"+e,_="set"+e,d=i[c],m=d||{},v=d&&A(d),g=!d||!a.ABV,w={},E=d&&d.prototype,L=function(e,r){W(e,r,{get:function(){return function(e,r){var n=e._d;return n.v[u](r*t+n.o,we)}(this,r)},set:function(e){return function(e,r,n){var i=e._d;l&&(n=(n=Math.round(n))<0?0:n>255?255:255&n),i.v[_](r*t+i.o,n,we)}(this,r,e)},enumerable:!0})};g?(d=r(function(e,r,n,i){h(e,d,c,"_d");var o,s,a,l,u=0,_=0;if(C(r)){if(!(r instanceof V||"ArrayBuffer"==(l=b(r))||"SharedArrayBuffer"==l))return ge in r?ke(d,r):Oe.call(d,r);o=r,_=Se(n,t);var m=r.byteLength;if(void 0===i){if(m%t)throw Z("Wrong length!");if((s=m-_)<0)throw Z("Wrong length!")}else if((s=p(i)*t)+_>m)throw Z("Wrong length!");a=s/t}else a=y(r),o=new V(s=a*t);for(f(e,"_d",{b:o,o:_,l:s,e:a,v:new q(o)});u<a;)L(e,u++)}),E=d.prototype=S(We),f(E,"constructor",d)):o(function(){d(1)})&&o(function(){new d(-1)})&&I(function(e){new d,new d(null),new d(1.5),new d(e)},!0)||(d=r(function(e,r,n,i){var o;return h(e,d,c),C(r)?r instanceof V||"ArrayBuffer"==(o=b(r))||"SharedArrayBuffer"==o?void 0!==i?new m(r,Se(n,t),i):void 0!==n?new m(r,Se(n,t)):new m(r):ge in r?ke(d,r):Oe.call(d,r):new m(y(r))}),J(v!==Function.prototype?x(m).concat(x(v)):x(m),function(e){e in d||f(d,e,m[e])}),d.prototype=E,n||(E.constructor=d));var k=E[de],T=!!k&&("values"==k.name||void 0==k.name),O=Fe.values;f(d,ye,!0),f(E,ge,c),f(E,be,!0),f(E,me,d),(l?new d(1)[pe]==c:pe in E)||W(E,pe,{get:function(){return c}}),w[c]=d,s(s.G+s.W+s.F*(d!=m),w),s(s.S,c,{BYTES_PER_ELEMENT:t}),s(s.S+s.F*o(function(){m.of.call(d,1)}),c,{from:Oe,of:Me}),"BYTES_PER_ELEMENT"in E||f(E,"BYTES_PER_ELEMENT",t),s(s.P,c,He),P(c),s(s.P+s.F*Ee,c,{set:Pe}),s(s.P+s.F*!T,c,Fe),n||E.toString==fe||(E.toString=fe),s(s.P+s.F*o(function(){new d(1).slice()}),c,{slice:Ie}),s(s.P+s.F*(o(function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()})||!o(function(){E.toLocaleString.call([1,2])})),c,{toLocaleString:De}),H[c]=T?k:O,n||T||f(E,de,O)}}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,r){var n=r(18);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(39),i=r(33),o=r(9),s=r(34),a=r(20),l=r(104),c=Object.getOwnPropertyDescriptor;t.f=r(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 i(!n.f.call(e,t),e[t])}},function(e,t,r){var n=r(1)("unscopables"),i=Array.prototype;void 0==i[n]&&r(15)(i,n,{}),e.exports=function(e){i[n][e]=!0}},function(e,t,r){var n=r(19),i=r(43),o=r(4),s=r(5),a=r(72);e.exports=function(e,t){var r=1==e,l=2==e,c=3==e,h=4==e,u=6==e,f=5==e||u,_=t||a;return function(t,a,d){for(var p,y,m=o(t),v=i(m),g=n(a,d,3),b=s(v.length),C=0,w=r?_(t,b):l?_(t,0):void 0;b>C;C++)if((f||C in v)&&(y=g(p=v[C],C,m),e))if(r)w[C]=y;else if(y)switch(e){case 3:return!0;case 5:return p;case 6:return C;case 2:w.push(p)}else if(h)return!1;return u?-1:c||h?h:w}}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this._disposables=[],this._isDisposed=!1}return e.prototype.dispose=function(){this._isDisposed=!0,this._disposables.forEach(function(e){return e.dispose()}),this._disposables.length=0},e.prototype.register=function(e){this._disposables.push(e)},e.prototype.unregister=function(e){var t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)},e}();t.Disposable=n},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(102),i=r(78);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t){e.exports=!1},function(e,t,r){var n=r(24),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},function(e,t){e.exports={}},function(e,t,r){var n=r(3),i=r(15),o=r(20),s=r(28)("src"),a=Function.toString,l=(""+a).split("toString");r(10).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,r,a){var c="function"==typeof r;c&&(o(r,"name")||i(r,"name",t)),e[t]!==r&&(c&&(o(r,s)||i(r,s,e[t]?""+e[t]:l.join(String(t)))),e===n?e[t]=r:a?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(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,r){var n=r(2);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INVERTED_DEFAULT_COLOR=-1,t.DIM_OPACITY=.5},function(e,t,r){"use strict";var n="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 i={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 r=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=i[e];switch(void 0===t?"undefined":n(t)){case"string":return t;case"function":var r=[].slice.call(arguments).slice(1);return t.apply(this,r)}return null}.apply(r,arguments);return o?(r.type=e,r.message=o):r.message=e,r}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,r){"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 r,n=0;Date.now();e:for(;-1!==n&&-1!==(n=e.indexOf(t[0],n));){for(r=1;r<t.length;r++)if(e[n+r]!==t[r]){n++;continue e}return n}return-1}}},function(e,t,r){var n=r(102),i=r(78).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var n=r(26),i=r(1)("toStringTag"),o="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?n(t):"Object"==(s=n(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,r){var n=r(20),i=r(4),o=r(80)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,r){var n=r(8).f,i=r(20),o=r(1)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t,r){var n=r(26);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,r){var n=r(13),i=r(103),o=r(78),s=r(80)("IE_PROTO"),a=function(){},l=function(){var e,t=r(81)("iframe"),n=o.length;for(t.style.display="none",r(77).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;n--;)delete l.prototype[o[n]];return l()};e.exports=Object.create||function(e,t){var r;return null!==e?(a.prototype=n(e),r=new a,a.prototype=null,r[s]=e):r=l(),void 0===t?r:i(r,t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"==typeof navigator,i=n?"node":navigator.userAgent,o=n?"node":navigator.platform;function s(e,t){return e.indexOf(t)>=0}t.isFirefox=!!~i.indexOf("Firefox"),t.isSafari=/^((?!chrome|android).)*safari/i.test(i),t.isMSIE=!!~i.indexOf("MSIE")||!!~i.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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l("#ffffff"),i=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],r=0;r<216;r++){var n=t[r/36%6|0],i=t[r/6%6|0],o=t[r%6];e.push({css:"#"+c(n)+c(i)+c(o),rgba:(n<<24|i<<16|o<<8|255)>>>0})}for(r=0;r<24;r++){var s=8+10*r,a=c(s);e.push({css:"#"+a+a+a,rgba:(s<<24|s<<16|s<<8|255)>>>0})}return e}();var h=function(){function e(e,r){this.allowTransparency=r;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:n,background:i,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,n),this.colors.background=this._parseColor(e.background,i),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,r){if(void 0===r&&(r=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 n=this._ctx.getImageData(0,0,1,1).data;return r||255===n[3]?{css:e,rgba:(n[0]<<24|n[1]<<16|n[2]<<8|n[3])>>>0}:(console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+t.css+"."),t)},e}();t.ColorManager=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(35),i=r(87),o=r(11),s=function(){function e(e,t,r,n,i){this._container=e,this._alpha=n,this._colors=i,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=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype.dispose=function(){this._container.removeChild(this._canvas)},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,r){},e.prototype.onSelectionChanged=function(e,t,r,n){void 0===n&&(n=!1)},e.prototype.onThemeChanged=function(e,t){this._refreshCharAtlas(e,t)},e.prototype.setTransparency=function(e,t){if(t!==this._alpha){var r=this._canvas;this._alpha=t,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,r),this._refreshCharAtlas(e,this._colors),this.onGridChanged(e,0,e.rows-1)}},e.prototype._refreshCharAtlas=function(e,t){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=i.acquireCharAtlas(e,t,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},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,r,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight)},e.prototype.fillBottomLineAtCells=function(e,t,r){void 0===r&&(r=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,r*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,r,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,r*this._scaledCellWidth-window.devicePixelRatio,n*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,r,n){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight))},e.prototype.fillCharTrueColor=function(e,t,r,n){this._ctx.font=this._getFont(e,!1,!1),this._ctx.textBaseline="top",this._clipRow(e,n),this._ctx.fillText(t[o.CHAR_DATA_CHAR_INDEX],r*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop)},e.prototype.drawChars=function(e,t,r,i,o,s,a,l,c,h,u){a+=e.options.drawBoldTextInBrightColors&&c&&a<8&&a!==n.INVERTED_DEFAULT_COLOR?8:0,this._charAtlas&&this._charAtlas.draw(this._ctx,{chars:t,code:r,bg:l,fg:a,bold:c&&e.options.enableBold,dim:h,italic:u},o*this._scaledCellWidth+this._scaledCharLeft,s*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,t,i,a,o,s,c&&e.options.enableBold,h,u)},e.prototype._drawUncachedChars=function(e,t,r,i,o,s,a,l,c){this._ctx.save(),this._ctx.font=this._getFont(e,a,c),this._ctx.textBaseline="top",i===n.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:this._ctx.fillStyle=i<256?this._colors.ansi[i].css:this._colors.foreground.css,this._clipRow(e,s),l&&(this._ctx.globalAlpha=n.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,r){var n=t?e.options.fontWeightBold:e.options.fontWeight;return(r?"italic":"")+" "+n+" "+e.options.fontSize*window.devicePixelRatio+"px "+e.options.fontFamily},e}();t.BaseRenderLayer=s},function(e,t,r){"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){e.PAD="\80",e.HOP="\81",e.BPH="\82",e.NBH="\83",e.IND="\84",e.NEL="\85",e.SSA="\86",e.ESA="\87",e.HTS="\88",e.HTJ="\89",e.VTS="\8a",e.PLD="\8b",e.PLU="\8c",e.RI="\8d",e.SS2="\8e",e.SS3="\8f",e.DCS="\90",e.PU1="\91",e.PU2="\92",e.STS="\93",e.CCH="\94",e.MW="\95",e.SPA="\96",e.EPA="\97",e.SOS="\98",e.SGCI="\99",e.SCI="\9a",e.CSI="\9b",e.ST="\9c",e.OSC="\9d",e.PM="\9e",e.APC="\9f"}(t.C1||(t.C1={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=function(e,t,r,n){return e.addEventListener(t,r,n),{dispose:function(){r&&(e.removeEventListener(t,r,n),e=null,r=null)}}}},function(e,t,r){for(var n,i=r(3),o=r(15),s=r(28),a=s("typed_array"),l=s("view"),c=!(!i.ArrayBuffer||!i.DataView),h=c,u=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");u<9;)(n=i[f[u++]])?(o(n.prototype,a,!0),o(n.prototype,l,!0)):h=!1;e.exports={ABV:c,CONSTR:h,TYPED:a,VIEW:l}},function(e,t,r){var n=r(13),i=r(18),o=r(1)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||void 0==(r=n(s)[o])?t:i(r)}},function(e,t,r){"use strict";e.exports=r(29)||!r(7)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete r(3)[e]})},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(28)("meta"),i=r(2),o=r(20),s=r(8).f,a=0,l=Object.isExtensible||function(){return!0},c=!r(7)(function(){return l(Object.preventExtensions({}))}),h=function(e){s(e,n,{value:{i:"O"+ ++a,w:{}}})},u=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!l(e))return"F";if(!t)return"E";h(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!l(e))return!0;if(!t)return!1;h(e)}return e[n].w},onFreeze:function(e){return c&&u.NEED&&l(e)&&!o(e,n)&&h(e),e}}},function(e,t,r){"use strict";var n=r(3),i=r(8),o=r(6),s=r(1)("species");e.exports=function(e){var t=n[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(26);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(9),i=r(5),o=r(30);e.exports=function(e){return function(t,r,s){var a,l=n(t),c=i(l.length),h=o(s,c);if(e&&r!=r){for(;c>h;)if((a=l[h++])!=a)return!0}else for(;c>h;h++)if((e||h in l)&&l[h]===r)return e||h||0;return!e&&-1}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,r){"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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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 r=this;e=null!==e&&void 0!==e?e:0,t=null!==t&&void 0!==t?t:this._terminal.rows-1;var n=void 0!==this._rowStart&&null!==this._rowStart,i=void 0!==this._rowEnd&&null!==this._rowEnd;this._rowStart=n?Math.min(this._rowStart,e):e,this._rowEnd=i?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return r._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=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this._didWarmUp=!1}return e.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},e.prototype._doWarmUp=function(){},e.prototype.beginFrame=function(){},e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(11),i=function(){function e(e,t,r){if(this.isWrapped=!1,this._data=[],this.length=this._data.length,e){t||(t=[0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]);for(var i=0;i<e;i++)this.push(t)}r&&(this.isWrapped=!0)}return e.blankLine=function(t,r,i){return new e(t,[r,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE],i)},e.prototype.get=function(e){return this._data[e]},e.prototype.set=function(e,t){this._data[e]=t},e.prototype.pop=function(){var e=this._data.pop();return this.length=this._data.length,e},e.prototype.push=function(e){this._data.push(e),this.length=this._data.length},e.prototype.splice=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i,o=(i=this._data).splice.apply(i,[e,t].concat(r));return this.length=this._data.length,o},e.prototype.insertCells=function(e,t,r){for(;t--;)this.splice(e,0,r),this.pop()},e.prototype.deleteCells=function(e,t,r){for(;t--;)this.splice(e,1),this.push(r)},e.prototype.replaceCells=function(e,t,r){for(;e<t&&e<this.length;)this.set(e++,r)},e}();t.BufferLine=i},function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var i,o,s=e.exports;Object.assign(s,r(37));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 n(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,r=this._lastcode,n=new ArrayBuffer(2*e.length),s=new Uint8Array(n),l=this._config.escape_ctrl_chars,c=0;for(i=0;i<e.length;i++){if(!(o=t[e[i]]))throw console.trace(),console.error("bad encode() call:",JSON.stringify(e)),this._lastcode=r,"Invalid octet: "+e[i];r=e[i],1===o||(l||2===o||64==(127&r))&&(s[c]=a,c++,r^=64),s[c]=r,c++}return this._lastcode=r,e.splice(0),e.push.apply(e,new Uint8Array(n,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,r,n){var i=0;r||(r=0);for(var o=r;o<t.length&&i<n;o++)i++,t[o]===a&&o++;if(i===n){if(t.length===o-1)return;return t.splice(0,r),e.decode(t.splice(0,o-r))}}}]),e}()},function(e,t,r){"use strict";for(var n=e.exports,i=[48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102],o={},s=0;s<i.length;s++)o[i[s]]=s;n.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=[],r=0;r<e.length;r++)t.push(i[e[r]>>4],i[15&e[r]]);return t},parse_hex_octets:function(e){for(var t=new Array(e.length/2),r=0;r<t.length;r++)t[r]=(o[e[2*r]]<<4)+o[e[1+2*r]];return t}}},function(e,t,r){"use strict";var n=r(3),i=r(6),o=r(29),s=r(50),a=r(15),l=r(66),c=r(7),h=r(68),u=r(24),f=r(5),_=r(89),d=r(38).f,p=r(8).f,y=r(71),m=r(42),v="prototype",g="Wrong index!",b=n.ArrayBuffer,C=n.DataView,w=n.Math,E=n.RangeError,S=n.Infinity,A=b,x=w.abs,L=w.pow,k=w.floor,T=w.log,O=w.LN2,M=i?"_b":"buffer",R=i?"_l":"byteLength",D=i?"_o":"byteOffset";function H(e,t,r){var n,i,o,s=new Array(r),a=8*r-t-1,l=(1<<a)-1,c=l>>1,h=23===t?L(2,-24)-L(2,-77):0,u=0,f=e<0||0===e&&1/e<0?1:0;for((e=x(e))!=e||e===S?(i=e!=e?1:0,n=l):(n=k(T(e)/O),e*(o=L(2,-n))<1&&(n--,o*=2),(e+=n+c>=1?h/o:h*L(2,1-c))*o>=2&&(n++,o/=2),n+c>=l?(i=0,n=l):n+c>=1?(i=(e*o-1)*L(2,t),n+=c):(i=e*L(2,c-1)*L(2,t),n=0));t>=8;s[u++]=255&i,i/=256,t-=8);for(n=n<<t|i,a+=t;a>0;s[u++]=255&n,n/=256,a-=8);return s[--u]|=128*f,s}function I(e,t,r){var n,i=8*r-t-1,o=(1<<i)-1,s=o>>1,a=i-7,l=r-1,c=e[l--],h=127&c;for(c>>=7;a>0;h=256*h+e[l],l--,a-=8);for(n=h&(1<<-a)-1,h>>=-a,a+=t;a>0;n=256*n+e[l],l--,a-=8);if(0===h)h=1-s;else{if(h===o)return n?NaN:c?-S:S;n+=L(2,t),h-=s}return(c?-1:1)*n*L(2,h-t)}function P(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function F(e){return[255&e]}function B(e){return[255&e,e>>8&255]}function N(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function j(e){return H(e,52,8)}function W(e){return H(e,23,4)}function U(e,t,r){p(e[v],t,{get:function(){return this[r]}})}function Z(e,t,r,n){var i=_(+r);if(i+t>e[R])throw E(g);var o=e[M]._b,s=i+e[D],a=o.slice(s,s+t);return n?a:a.reverse()}function z(e,t,r,n,i,o){var s=_(+r);if(s+t>e[R])throw E(g);for(var a=e[M]._b,l=s+e[D],c=n(+i),h=0;h<t;h++)a[l+h]=c[o?h:t-h-1]}if(s.ABV){if(!c(function(){b(1)})||!c(function(){new b(-1)})||c(function(){return new b,new b(1.5),new b(NaN),"ArrayBuffer"!=b.name})){for(var K,X=(b=function(e){return h(this,b),new A(_(e))})[v]=A[v],V=d(A),q=0;V.length>q;)(K=V[q++])in b||a(b,K,A[K]);o||(X.constructor=b)}var J=new C(new b(2)),G=C[v].setInt8;J.setInt8(0,2147483648),J.setInt8(1,2147483649),!J.getInt8(0)&&J.getInt8(1)||l(C[v],{setInt8:function(e,t){G.call(this,e,t<<24>>24)},setUint8:function(e,t){G.call(this,e,t<<24>>24)}},!0)}else b=function(e){h(this,b,"ArrayBuffer");var t=_(e);this._b=y.call(new Array(t),0),this[R]=t},C=function(e,t,r){h(this,C,"DataView"),h(e,b,"DataView");var n=e[R],i=u(t);if(i<0||i>n)throw E("Wrong offset!");if(i+(r=void 0===r?n-i:f(r))>n)throw E("Wrong length!");this[M]=e,this[D]=i,this[R]=r},i&&(U(b,"byteLength","_l"),U(C,"buffer","_b"),U(C,"byteLength","_l"),U(C,"byteOffset","_o")),l(C[v],{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 P(Z(this,4,e,arguments[1]))},getUint32:function(e){return P(Z(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return I(Z(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return I(Z(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){z(this,1,e,F,t)},setUint8:function(e,t){z(this,1,e,F,t)},setInt16:function(e,t){z(this,2,e,B,t,arguments[2])},setUint16:function(e,t){z(this,2,e,B,t,arguments[2])},setInt32:function(e,t){z(this,4,e,N,t,arguments[2])},setUint32:function(e,t){z(this,4,e,N,t,arguments[2])},setFloat32:function(e,t){z(this,4,e,W,t,arguments[2])},setFloat64:function(e,t){z(this,8,e,j,t,arguments[2])}});m(b,"ArrayBuffer"),m(C,"DataView"),a(C[v],s.VIEW,!0),t.ArrayBuffer=b,t.DataView=C},function(e,t,r){var n=r(32);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){"use strict";var n=r(18);e.exports.f=function(e){return new function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}(e)}},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){"use strict";var n=r(40),i={};i[r(1)("toStringTag")]="z",i+""!="[object z]"&&r(32)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(e,t,r){"use strict";var n=r(22),i=r(217),o=r(31),s=r(9);e.exports=r(105)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(e,t,r){"use strict";var n=r(4),i=r(30),o=r(5);e.exports=function(e){for(var t=n(this),r=o(t.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,r),l=s>2?arguments[2]:void 0,c=void 0===l?r:i(l,r);c>a;)t[a++]=e;return t}},function(e,t,r){var n=r(231);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,r){var n=r(1)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],s=o[n]();s.next=function(){return{done:r=!0}},o[n]=function(){return s},e(o)}catch(e){}return r}},function(e,t,r){var n=r(40),i=r(1)("iterator"),o=r(31);e.exports=r(10).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){"use strict";var n=r(8),i=r(33);e.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},function(e,t,r){var n=r(31),i=r(1)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},function(e,t,r){var n=r(3).document;e.exports=n&&n.documentElement},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(3),i=n["__core-js_shared__"]||(n["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,r){var n=r(79)("keys"),i=r(28);e.exports=function(e){return n[e]||(n[e]=i(e))}},function(e,t,r){var n=r(2),i=r(3).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this._renderer=e}return e.getCoordsRelativeToElement=function(e,t){if(null===e.pageX||void 0===e.pageX)return null;for(var r=t,n=e.pageX,i=e.pageY;t;)n-=t.offsetLeft,i-=t.offsetTop,t=t.offsetParent;for(t=r;t&&t!==t.ownerDocument.body;)n+=t.scrollLeft,i+=t.scrollTop,t=t.parentElement;return[n,i]},e.prototype.getCoords=function(t,r,n,i,o,s,a){if(!n.width||!n.height)return null;var l=e.getCoordsRelativeToElement(t,r);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,r,n,i,o){var s=this.getCoords(e,t,r,n,i,o),a=s[0],l=s[1];return{x:a+=32,y:l+=32}},e}();t.MouseHelper=n},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(25),s=r(49),a=function(e){function t(t){var r=e.call(this)||this;return r._terminal=t,r._zones=[],r._areZonesActive=!1,r._tooltipTimeout=null,r._currentZone=null,r._lastHoverCoords=[null,null],r.register(s.addDisposableDomListener(r._terminal.element,"mousedown",function(e){return r._onMouseDown(e)})),r._mouseMoveListener=function(e){return r._onMouseMove(e)},r._clickListener=function(e){return r._onClick(e)},r}return i(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},t.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},t.prototype.clearAll=function(e,t){if(0!==this._zones.length){t||(e=0,t=this._terminal.rows-1);for(var r=0;r<this._zones.length;r++){var n=this._zones[r];(n.y1>e&&n.y1<=t+1||n.y2>e&&n.y2<=t+1||n.y1<e&&n.y2>t+1)&&(this._currentZone&&this._currentZone===n&&(this._currentZone.leaveCallback(),this._currentZone=null),this._zones.splice(r--,1))}0===this._zones.length&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._terminal.element.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._terminal.element.removeEventListener("mousemove",this._mouseMoveListener),this._terminal.element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},t.prototype._onHover=function(e){var t=this,r=this._findZoneEventAt(e);r!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=null,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),r&&(this._currentZone=r,r.hoverCallback&&r.hoverCallback(e),this._tooltipTimeout=setTimeout(function(){return t._onTooltip(e)},500)))},t.prototype._onTooltip=function(e){this._tooltipTimeout=null;var t=this._findZoneEventAt(e);t&&t.tooltipCallback&&t.tooltipCallback(e)},t.prototype._onMouseDown=function(e){if(this._areZonesActive){var t=this._findZoneEventAt(e);t&&t.willLinkActivate(e)&&(e.preventDefault(),e.stopImmediatePropagation())}},t.prototype._onClick=function(e){var t=this._findZoneEventAt(e);t&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},t.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 r=t[0],n=t[1],i=0;i<this._zones.length;i++){var o=this._zones[i];if(o.y1===o.y2){if(n===o.y1&&r>=o.x1&&r<o.x2)return o}else if(n===o.y1&&r>=o.x1||n===o.y2&&r<o.x2||n>o.y1&&n<o.y2)return o}return null},t}(o.Disposable);t.MouseZoneManager=a;var l=function(){return function(e,t,r,n,i,o,s,a,l){this.x1=e,this.y1=t,this.x2=r,this.y2=n,this.clickCallback=i,this.hoverCallback=o,this.tooltipCallback=s,this.leaveCallback=a,this.willLinkActivate=l}}();t.MouseZone=l},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.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()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearListener()},t.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)},t.prototype.clearListener=function(){this._listener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._listener=null,this._outerListener=null)},t}(r(25).Disposable);t.ScreenDprMonitor=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR_ATLAS_CELL_SPACING=1},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(85),i=r(45);function o(e,t){for(var r=!0,n=t.rgba>>>24,i=t.rgba>>>16&255,o=t.rgba>>>8&255,s=0;s<e.data.length;s+=4)e.data[s]===n&&e.data[s+1]===i&&e.data[s+2]===o?e.data[s+3]=0:r=!1;return r}function s(e,t){return e+" "+t.fontSize*t.devicePixelRatio+"px "+t.fontFamily}t.generateStaticCharAtlasTexture=function(e,t,r){var a=r.scaledCharWidth+n.CHAR_ATLAS_CELL_SPACING,l=r.scaledCharHeight+n.CHAR_ATLAS_CELL_SPACING,c=t(255*a,34*l),h=c.getContext("2d",{alpha:r.allowTransparency});h.fillStyle=r.colors.background.css,h.fillRect(0,0,c.width,c.height),h.save(),h.fillStyle=r.colors.foreground.css,h.font=s(r.fontWeight,r),h.textBaseline="top";for(var u=0;u<256;u++)h.save(),h.beginPath(),h.rect(u*a,0,a,l),h.clip(),h.fillText(String.fromCharCode(u),u*a,0),h.restore();for(h.save(),h.font=s(r.fontWeightBold,r),u=0;u<256;u++)h.save(),h.beginPath(),h.rect(u*a,l,a,l),h.clip(),h.fillText(String.fromCharCode(u),u*a,l),h.restore();h.restore(),h.font=s(r.fontWeight,r);for(var f=0;f<16;f++){var _=(f+2)*l;for(u=0;u<256;u++)h.save(),h.beginPath(),h.rect(u*a,_,a,l),h.clip(),h.fillStyle=r.colors.ansi[f].css,h.fillText(String.fromCharCode(u),u*a,_),h.restore()}for(h.font=s(r.fontWeightBold,r),f=0;f<16;f++)for(_=(f+2+16)*l,u=0;u<256;u++)h.save(),h.beginPath(),h.rect(u*a,_,a,l),h.clip(),h.fillStyle=r.colors.ansi[f].css,h.fillText(String.fromCharCode(u),u*a,_),h.restore();if(h.restore(),!("createImageBitmap"in e)||i.isFirefox||i.isSafari)return c instanceof HTMLCanvasElement?c:new Promise(function(e){return e(c.transferToImageBitmap())});var d=h.getImageData(0,0,c.width,c.height);return o(d,r.colors.background),e.createImageBitmap(d)},t.clearColor=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(129),i=r(128),o=r(126),s=r(125),a={none:o.default,static:s.default,dynamic:i.default},l=[];t.acquireCharAtlas=function(e,t,r,i){for(var o=n.generateConfig(r,i,e,t),s=0;s<l.length;s++){var c=(h=l[s]).ownedBy.indexOf(e);if(c>=0){if(n.configEquals(h.config,o))return h.atlas;1===h.ownedBy.length?l.splice(s,1):h.ownedBy.splice(c,1);break}}for(s=0;s<l.length;s++){var h=l[s];if(n.configEquals(h.config,o))return h.ownedBy.push(e),h.atlas}var u={atlas:new a[e.options.experimentalCharAtlas](document,o),config:o,ownedBy:[e]};return l.push(u),u.atlas},t.removeTerminalFromCache=function(e){for(var t=0;t<l.length;t++){var r=l[t].ownedBy.indexOf(e);if(-1!==r){1===l[t].ownedBy.length?l.splice(t,1):l[t].ownedBy.splice(r,1);break}}}},function(e,t,r){"use strict";var n,i=r(146),o=e.exports;Object.assign(o,r(36),r(64));var s=16,a=4129,l=65535,c=1<<s-1;function h(e,t){return n||function(){n=new Array(256);for(var e=s-8,t=0;t<256;t++){for(var r=t<<e&l,i=0;i<8;i++)0!=(r&c)?(r<<=1,r^=a):r<<=1;n[t]=r&l}}(),n[t>>8&255]^(255&t)<<8^e}function u(e,t){if(e.join()!==t.join())throw new o.Error("crc",t,e)}o.CRC={crc16:function(e){for(var t=e[0],r=1;r<e.length;r++)t=h(e[r],t);return t=h(0,h(0,t)),o.ENCODELIB.pack_u16_be(t)},crc32:function(e){return o.ENCODELIB.pack_u32_le(i.buf(e)>>>0)},verify16:function(e,t){return u(this.crc16(e),t)},verify32:function(e,t){try{u(this.crc32(e),t)}catch(t){throw t.input=e.slice(0),t}}}},function(e,t,r){var n=r(24),i=r(5);e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw RangeError("Wrong length!");return r}},function(e,t,r){var n=r(13),i=r(2),o=r(67);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n,i,o,s=r(19),a=r(175),l=r(77),c=r(81),h=r(3),u=h.process,f=h.setImmediate,_=h.clearImmediate,d=h.MessageChannel,p=h.Dispatch,y=0,m={},v=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},g=function(e){v.call(e.data)};f&&_||(f=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return m[++y]=function(){a("function"==typeof e?e:Function(e),t)},n(y),y},_=function(e){delete m[e]},"process"==r(26)(u)?n=function(e){u.nextTick(s(v,e,1))}:p&&p.now?n=function(e){p.now(s(v,e,1))}:d?(o=(i=new d).port2,i.port1.onmessage=g,n=s(o.postMessage,o,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(n=function(e){h.postMessage(e+"","*")},h.addEventListener("message",g,!1)):n="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),v.call(e)}}:function(e){setTimeout(s(v,e,1),0)}),e.exports={set:f,clear:_}},function(e,t,r){var n=r(8),i=r(21),o=r(95),s=r(9);e.exports=function(e,t){for(var r,a=o(s(t)),l=a.length,c=0;l>c;)n.f(e,r=a[c++],i.f(t,r));return e}},function(e,t,r){var n=r(27),i=r(9),o=r(39).f;e.exports=function(e){return function(t){for(var r,s=i(t),a=n(s),l=a.length,c=0,h=[];l>c;)o.call(s,r=a[c++])&&h.push(e?[r,s[r]]:s[r]);return h}}},function(e,t,r){var n=r(38),i=r(53),o=r(13),s=r(3).Reflect;e.exports=s&&s.ownKeys||function(e){var t=n.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},function(e,t,r){var n=r(9),i=r(38).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 i(e)}catch(e){return s.slice()}}(e):i(n(e))}},function(e,t,r){t.f=r(1)},function(e,t,r){"use strict";var n=r(56),i=r(2),o=r(5),s=r(19),a=r(1)("isConcatSpreadable");e.exports=function e(t,r,l,c,h,u,f,_){for(var d,p,y=h,m=0,v=!!f&&s(f,_,3);m<c;){if(m in l){if(d=v?v(l[m],m,r):l[m],p=!1,i(d)&&(p=void 0!==(p=d[a])?!!p:n(d)),p&&u>0)y=e(t,r,d,o(d.length),y,u-1)-1;else{if(y>=9007199254740991)throw TypeError();t[y]=d}y++}m++}return y}},function(e,t,r){"use strict";var n=r(4),i=r(30),o=r(5);e.exports=[].copyWithin||function(e,t){var r=n(this),s=o(r.length),a=i(e,s),l=i(t,s),c=arguments.length>2?arguments[2]:void 0,h=Math.min((void 0===c?s:i(c,s))-l,s-a),u=1;for(l<a&&a<l+h&&(u=-1,l+=h-1,a+=h-1);h-- >0;)l in r?r[a]=r[l]:delete r[a],a+=u,l+=u;return r}},function(e,t,r){var n=r(18),i=r(4),o=r(43),s=r(5);e.exports=function(e,t,r,a,l){n(t);var c=i(e),h=o(c),u=s(c.length),f=l?u-1:0,_=l?-1:1;if(r<2)for(;;){if(f in h){a=h[f],f+=_;break}if(f+=_,l?f<0:u<=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?f>=0:u>f;f+=_)f in h&&(a=t(a,h[f],f,c));return a}},function(e,t,r){var n=r(13);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},function(e,t,r){var n=r(20),i=r(9),o=r(57)(!1),s=r(80)("IE_PROTO");e.exports=function(e,t){var r,a=i(e),l=0,c=[];for(r in a)r!=s&&n(a,r)&&c.push(r);for(;t.length>l;)n(a,r=t[l++])&&(~o(c,r)||c.push(r));return c}},function(e,t,r){var n=r(8),i=r(13),o=r(27);e.exports=r(6)?Object.defineProperties:function(e,t){i(e);for(var r,s=o(t),a=s.length,l=0;a>l;)n.f(e,r=s[l++],t[r]);return e}},function(e,t,r){e.exports=!r(6)&&!r(7)(function(){return 7!=Object.defineProperty(r(81)("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){"use strict";var n=r(29),i=r(0),o=r(32),s=r(15),a=r(20),l=r(31),c=r(239),h=r(42),u=r(41),f=r(1)("iterator"),_=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,r,p,y,m,v){c(r,t,p);var g,b,C,w=function(e){if(!_&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},E=t+" Iterator",S="values"==y,A=!1,x=e.prototype,L=x[f]||x["@@iterator"]||y&&x[y],k=!_&&L||w(y),T=y?S?w("entries"):k:void 0,O="Array"==t&&x.entries||L;if(O&&(C=u(O.call(new e)))!==Object.prototype&&C.next&&(h(C,E,!0),n||a(C,f)||s(C,f,d)),S&&L&&"values"!==L.name&&(A=!0,k=function(){return L.call(this)}),n&&!v||!_&&!A&&x[f]||s(x,f,k),l[t]=k,l[E]=d,y)if(g={values:S?k:w("values"),keys:m?k:w("keys"),entries:T},v)for(b in g)b in x||o(x,b,g[b]);else i(i.P+i.F*(_||A),t,g);return g}},function(e,t,r){"use strict";var n=r(240)(!0);r(105)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";function n(e,t,r){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 n=e.element.getBoundingClientRect(),i=e.overlayNode_.getBoundingClientRect();e.overlayNode_.style.top=(n.height-i.height)/2+"px",e.overlayNode_.style.left=(n.width-i.width)/2+"px",e.overlayTimeout_&&clearTimeout(e.overlayTimeout_),null!==r&&(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)},r||1500))}Object.defineProperty(t,"__esModule",{value:!0}),t.showOverlay=n,t.apply=function(e){e.prototype.showOverlay=function(e,t){return n(this,e,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=3,i=32;function o(e){var t=e;["Windows","Win16","Win32","WinCE"].indexOf(navigator.platform)>=0&&t.on("linefeed",function(){t._core.buffer.lines.get(t._core.buffer.ybase+t._core.buffer.y-1).get(t.cols-1)[n]!==i&&(t._core.buffer.lines.get(t._core.buffer.ybase+t._core.buffer.y).isWrapped=!0)})}t.winptyCompatInit=o,t.apply=function(e){e.prototype.winptyCompatInit=function(){o(this)}}},function(e,t,r){"use strict";function n(e){if(!e.element.parentElement)return null;var t=window.getComputedStyle(e.element.parentElement),r=parseInt(t.getPropertyValue("height")),n=Math.max(0,parseInt(t.getPropertyValue("width"))),i=window.getComputedStyle(e.element),o=r-(parseInt(i.getPropertyValue("padding-top"))+parseInt(i.getPropertyValue("padding-bottom"))),s=n-(parseInt(i.getPropertyValue("padding-right"))+parseInt(i.getPropertyValue("padding-left")))-e._core.viewport.scrollBarWidth;return{cols:Math.floor(s/e._core.renderer.dimensions.actualCellWidth),rows:Math.floor(o/e._core.renderer.dimensions.actualCellHeight)}}function i(e){var t=n(e);t&&(e.rows===t.rows&&e.cols===t.cols||(e._core.renderer.clear(),e.resize(t.cols,t.rows)))}Object.defineProperty(t,"__esModule",{value:!0}),t.proposeGeometry=n,t.fit=i,t.apply=function(e){e.prototype.proposeGeometry=function(){return n(this)},e.prototype.fit=function(){i(this)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(48),i={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:["'",'"']};t.evaluateKeyboardEvent=function(e,t,r,o){var s={type:0,cancel:!1,key:void 0},a=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?s.key=t?n.C0.ESC+"OA":n.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?s.key=t?n.C0.ESC+"OD":n.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?s.key=t?n.C0.ESC+"OC":n.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(s.key=t?n.C0.ESC+"OB":n.C0.ESC+"[B");break;case 8:if(e.shiftKey){s.key=n.C0.BS;break}if(e.altKey){s.key=n.C0.ESC+n.C0.DEL;break}s.key=n.C0.DEL;break;case 9:if(e.shiftKey){s.key=n.C0.ESC+"[Z";break}s.key=n.C0.HT,s.cancel=!0;break;case 13:s.key=n.C0.CR,s.cancel=!0;break;case 27:s.key=n.C0.ESC,s.cancel=!0;break;case 37:a?(s.key=n.C0.ESC+"[1;"+(a+1)+"D",s.key===n.C0.ESC+"[1;3D"&&(s.key=r?n.C0.ESC+"b":n.C0.ESC+"[1;5D")):s.key=t?n.C0.ESC+"OD":n.C0.ESC+"[D";break;case 39:a?(s.key=n.C0.ESC+"[1;"+(a+1)+"C",s.key===n.C0.ESC+"[1;3C"&&(s.key=r?n.C0.ESC+"f":n.C0.ESC+"[1;5C")):s.key=t?n.C0.ESC+"OC":n.C0.ESC+"[C";break;case 38:a?(s.key=n.C0.ESC+"[1;"+(a+1)+"A",s.key===n.C0.ESC+"[1;3A"&&(s.key=n.C0.ESC+"[1;5A")):s.key=t?n.C0.ESC+"OA":n.C0.ESC+"[A";break;case 40:a?(s.key=n.C0.ESC+"[1;"+(a+1)+"B",s.key===n.C0.ESC+"[1;3B"&&(s.key=n.C0.ESC+"[1;5B")):s.key=t?n.C0.ESC+"OB":n.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(s.key=n.C0.ESC+"[2~");break;case 46:s.key=a?n.C0.ESC+"[3;"+(a+1)+"~":n.C0.ESC+"[3~";break;case 36:s.key=a?n.C0.ESC+"[1;"+(a+1)+"H":t?n.C0.ESC+"OH":n.C0.ESC+"[H";break;case 35:s.key=a?n.C0.ESC+"[1;"+(a+1)+"F":t?n.C0.ESC+"OF":n.C0.ESC+"[F";break;case 33:e.shiftKey?s.type=2:s.key=n.C0.ESC+"[5~";break;case 34:e.shiftKey?s.type=3:s.key=n.C0.ESC+"[6~";break;case 112:s.key=a?n.C0.ESC+"[1;"+(a+1)+"P":n.C0.ESC+"OP";break;case 113:s.key=a?n.C0.ESC+"[1;"+(a+1)+"Q":n.C0.ESC+"OQ";break;case 114:s.key=a?n.C0.ESC+"[1;"+(a+1)+"R":n.C0.ESC+"OR";break;case 115:s.key=a?n.C0.ESC+"[1;"+(a+1)+"S":n.C0.ESC+"OS";break;case 116:s.key=a?n.C0.ESC+"[15;"+(a+1)+"~":n.C0.ESC+"[15~";break;case 117:s.key=a?n.C0.ESC+"[17;"+(a+1)+"~":n.C0.ESC+"[17~";break;case 118:s.key=a?n.C0.ESC+"[18;"+(a+1)+"~":n.C0.ESC+"[18~";break;case 119:s.key=a?n.C0.ESC+"[19;"+(a+1)+"~":n.C0.ESC+"[19~";break;case 120:s.key=a?n.C0.ESC+"[20;"+(a+1)+"~":n.C0.ESC+"[20~";break;case 121:s.key=a?n.C0.ESC+"[21;"+(a+1)+"~":n.C0.ESC+"[21~";break;case 122:s.key=a?n.C0.ESC+"[23;"+(a+1)+"~":n.C0.ESC+"[23~";break;case 123:s.key=a?n.C0.ESC+"[24;"+(a+1)+"~":n.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(r&&!o||!e.altKey||e.metaKey)r&&!e.altKey&&!e.ctrlKey&&e.metaKey&&65===e.keyCode&&(s.type=1);else{var l=i[e.keyCode],c=l&&l[e.shiftKey?1:0];if(c)s.key=n.C0.ESC+c;else if(e.keyCode>=65&&e.keyCode<=90){var h=e.ctrlKey?e.keyCode-64:e.keyCode+32;s.key=n.C0.ESC+String.fromCharCode(h)}}else e.keyCode>=65&&e.keyCode<=90?s.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?s.key=String.fromCharCode(0):e.keyCode>=51&&e.keyCode<=55?s.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?s.key=String.fromCharCode(127):219===e.keyCode?s.key=String.fromCharCode(27):220===e.keyCode?s.key=String.fromCharCode(28):221===e.keyCode&&(s.key=String.fromCharCode(29))}return s}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(11);t.BOLD_CLASS="xterm-bold",t.ITALIC_CLASS="xterm-italic",t.CURSOR_CLASS="xterm-cursor";var i=function(){function e(e){this._document=e}return e.prototype.createRow=function(e,r,i,o,s){for(var a=this._document.createDocumentFragment(),l=0,c=0;c<e.length;c++)if(!(l>=s)){var h=e.get(c),u=h[n.CHAR_DATA_CHAR_INDEX],f=h[n.CHAR_DATA_ATTR_INDEX],_=h[n.CHAR_DATA_WIDTH_INDEX];if(0!==_){var d=this._document.createElement("span");_>1&&(d.style.width=o*_+"px");var p=f>>18,y=511&f,m=f>>9&511;if(r&&c===i&&d.classList.add(t.CURSOR_CLASS),8&p){var v=y;y=m,256===(m=v)&&(m=0),257===y&&(y=15)}1&p&&(m<8&&(m+=8),d.classList.add(t.BOLD_CLASS)),64&p&&d.classList.add(t.ITALIC_CLASS),d.textContent=u,257!==m&&d.classList.add("xterm-fg-"+m),256!==y&&d.classList.add("xterm-bg-"+y),a.appendChild(d),l+=_}}return a},e}();t.DomRendererRowFactory=i},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(16),s=r(46),a=r(60),l=r(111),c="xterm-dom-renderer-owner-",h="xterm-rows",u="xterm-selection",f=1,_=function(e){function t(t,r){var n=e.call(this)||this;n._terminal=t,n._terminalClass=f++,n._rowElements=[];var i=n._terminal.options.allowTransparency;return n.colorManager=new s.ColorManager(document,i),n.setTheme(r),n._rowContainer=document.createElement("div"),n._rowContainer.classList.add(h),n._rowContainer.style.lineHeight="normal",n._rowContainer.setAttribute("aria-hidden","true"),n._refreshRowElements(n._terminal.cols,n._terminal.rows),n._selectionContainer=document.createElement("div"),n._selectionContainer.classList.add(u),n._selectionContainer.setAttribute("aria-hidden","true"),n.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},n._updateDimensions(),n._renderDebouncer=new a.RenderDebouncer(n._terminal,n._renderRows.bind(n)),n._rowFactory=new l.DomRendererRowFactory(document),n._terminal.element.classList.add(c+n._terminalClass),n._terminal.screenElement.appendChild(n._rowContainer),n._terminal.screenElement.appendChild(n._selectionContainer),n}return i(t,e),t.prototype.dispose=function(){this._terminal.element.classList.remove(c+this._terminalClass),this._terminal.screenElement.removeChild(this._rowContainer),this._terminal.screenElement.removeChild(this._selectionContainer),this._terminal.screenElement.removeChild(this._themeStyleElement),this._terminal.screenElement.removeChild(this._dimensionsStyleElement),e.prototype.dispose.call(this)},t.prototype._updateDimensions=function(){var e=this;this.dimensions.scaledCharWidth=this._terminal.charMeasure.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=this._terminal.charMeasure.height*window.devicePixelRatio,this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth,this.dimensions.scaledCellHeight=this.dimensions.scaledCharHeight,this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._terminal.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._terminal.rows,this.dimensions.canvasWidth=this._terminal.charMeasure.width*this._terminal.cols,this.dimensions.canvasHeight=this._terminal.charMeasure.height*this._terminal.rows,this.dimensions.actualCellWidth=this._terminal.charMeasure.width,this.dimensions.actualCellHeight=this._terminal.charMeasure.height,this._rowElements.forEach(function(t){t.style.width=e.dimensions.canvasWidth+"px",t.style.height=e._terminal.charMeasure.height+"px"}),this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._terminal.screenElement.appendChild(this._dimensionsStyleElement));var t=this._terminalSelector+" ."+h+" span { display: inline-block; height: 100%; vertical-align: top; width: "+this._terminal.charMeasure.width+"px}";this._dimensionsStyleElement.innerHTML=t,this._selectionContainer.style.height=this._terminal._viewportElement.style.height,this._rowContainer.style.width=this.dimensions.canvasWidth+"px",this._rowContainer.style.height=this.dimensions.canvasHeight+"px"},t.prototype.setTheme=function(e){var t=this;e&&this.colorManager.setTheme(e),this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._terminal.screenElement.appendChild(this._themeStyleElement));var r=this._terminalSelector+" ."+h+" { color: "+this.colorManager.colors.foreground.css+"; background-color: "+this.colorManager.colors.background.css+"; font-family: "+this._terminal.getOption("fontFamily")+"; font-size: "+this._terminal.getOption("fontSize")+"px;}";return r+=this._terminalSelector+" span:not(."+l.BOLD_CLASS+") { font-weight: "+this._terminal.options.fontWeight+";}"+this._terminalSelector+" span."+l.BOLD_CLASS+" { font-weight: "+this._terminal.options.fontWeightBold+";}"+this._terminalSelector+" span."+l.ITALIC_CLASS+" { font-style: italic;}",r+=this._terminalSelector+" ."+h+".xterm-focus ."+l.CURSOR_CLASS+" { background-color: "+this.colorManager.colors.cursor.css+"; color: "+this.colorManager.colors.cursorAccent.css+";}"+this._terminalSelector+" ."+h+":not(.xterm-focus) ."+l.CURSOR_CLASS+" { outline: 1px solid #fff; outline-offset: -1px;}",r+=this._terminalSelector+" ."+u+" { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" ."+u+" div { position: absolute; background-color: "+this.colorManager.colors.selection.css+";}",this.colorManager.colors.ansi.forEach(function(e,n){r+=t._terminalSelector+" .xterm-fg-"+n+" { color: "+e.css+"; }"+t._terminalSelector+" .xterm-bg-"+n+" { background-color: "+e.css+"; }"}),this._themeStyleElement.innerHTML=r,this.colorManager.colors},t.prototype.onWindowResize=function(e){this._updateDimensions()},t.prototype._refreshRowElements=function(e,t){for(var r=this._rowElements.length;r<=t;r++){var n=document.createElement("div");this._rowContainer.appendChild(n),this._rowElements.push(n)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())},t.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},t.prototype.onCharSizeChanged=function(){this._updateDimensions()},t.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},t.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},t.prototype.onSelectionChanged=function(e,t,r){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(e&&t){var n=e[1]-this._terminal.buffer.ydisp,i=t[1]-this._terminal.buffer.ydisp,o=Math.max(n,0),s=Math.min(i,this._terminal.rows-1);if(!(o>=this._terminal.rows||s<0)){var a=document.createDocumentFragment();if(r)a.appendChild(this._createSelectionElement(o,e[0],t[0],s-o+1));else{var l=n===o?e[0]:0,c=o===s?t[0]:this._terminal.cols;a.appendChild(this._createSelectionElement(o,l,c));var h=s-o-1;if(a.appendChild(this._createSelectionElement(o+1,0,this._terminal.cols,h)),o!==s){var u=i===s?t[0]:this._terminal.cols;a.appendChild(this._createSelectionElement(s,0,u))}}this._selectionContainer.appendChild(a)}}},t.prototype._createSelectionElement=function(e,t,r,n){void 0===n&&(n=1);var i=document.createElement("div");return i.style.height=n*this._terminal.charMeasure.height+"px",i.style.top=e*this._terminal.charMeasure.height+"px",i.style.left=t*this._terminal.charMeasure.width+"px",i.style.width=this._terminal.charMeasure.width*(r-t)+"px",i},t.prototype.onCursorMove=function(){},t.prototype.onOptionsChanged=function(){this._updateDimensions(),this.setTheme(void 0),this._terminal.refresh(0,this._terminal.rows-1)},t.prototype.clear=function(){this._rowElements.forEach(function(e){return e.innerHTML=""})},t.prototype.refreshRows=function(e,t){this._renderDebouncer.refresh(e,t)},t.prototype._renderRows=function(e,t){for(var r=this._terminal,n=r.buffer.ybase+r.buffer.y,i=this._terminal.buffer.x,o=e;o<=t;o++){var s=this._rowElements[o];s.innerHTML="";var a=o+r.buffer.ydisp,l=r.buffer.lines.get(a);s.appendChild(this._rowFactory.createRow(l,a===n,i,r.charMeasure.width,r.cols))}this._terminal.emit("refresh",{start:e,end:t})},Object.defineProperty(t.prototype,"_terminalSelector",{get:function(){return"."+c+this._terminalClass},enumerable:!0,configurable:!0}),t.prototype.registerCharacterJoiner=function(e){return-1},t.prototype.deregisterCharacterJoiner=function(e){return!1},t}(o.EventEmitter);t.DomRenderer=_},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(59),s=r(45),a=r(60),l=r(49),c=function(e){function t(t){var r=e.call(this)||this;r._terminal=t,r._liveRegionLineCount=0,r._charsToConsume=[],r._accessibilityTreeRoot=document.createElement("div"),r._accessibilityTreeRoot.classList.add("xterm-accessibility"),r._rowContainer=document.createElement("div"),r._rowContainer.classList.add("xterm-accessibility-tree"),r._rowElements=[];for(var n=0;n<r._terminal.rows;n++)r._rowElements[n]=r._createAccessibilityTreeNode(),r._rowContainer.appendChild(r._rowElements[n]);return r._topBoundaryFocusListener=function(e){return r._onBoundaryFocus(e,0)},r._bottomBoundaryFocusListener=function(e){return r._onBoundaryFocus(e,1)},r._rowElements[0].addEventListener("focus",r._topBoundaryFocusListener),r._rowElements[r._rowElements.length-1].addEventListener("focus",r._bottomBoundaryFocusListener),r._refreshRowsDimensions(),r._accessibilityTreeRoot.appendChild(r._rowContainer),r._renderRowsDebouncer=new a.RenderDebouncer(r._terminal,r._renderRows.bind(r)),r._refreshRows(),r._liveRegion=document.createElement("div"),r._liveRegion.classList.add("live-region"),r._liveRegion.setAttribute("aria-live","assertive"),r._accessibilityTreeRoot.appendChild(r._liveRegion),r._terminal.element.insertAdjacentElement("afterbegin",r._accessibilityTreeRoot),r.register(r._renderRowsDebouncer),r.register(r._terminal.addDisposableListener("resize",function(e){return r._onResize(e.rows)})),r.register(r._terminal.addDisposableListener("refresh",function(e){return r._refreshRows(e.start,e.end)})),r.register(r._terminal.addDisposableListener("scroll",function(e){return r._refreshRows()})),r.register(r._terminal.addDisposableListener("a11y.char",function(e){return r._onChar(e)})),r.register(r._terminal.addDisposableListener("linefeed",function(){return r._onChar("\n")})),r.register(r._terminal.addDisposableListener("a11y.tab",function(e){return r._onTab(e)})),r.register(r._terminal.addDisposableListener("key",function(e){return r._onKey(e)})),r.register(r._terminal.addDisposableListener("blur",function(){return r._clearLiveRegion()})),r.register(r._terminal.addDisposableListener("dprchange",function(){return r._refreshRowsDimensions()})),r.register(r._terminal.renderer.addDisposableListener("resize",function(){return r._refreshRowsDimensions()})),r.register(l.addDisposableDomListener(window,"resize",function(){return r._refreshRowsDimensions()})),r}return i(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._terminal.element.removeChild(this._accessibilityTreeRoot),this._rowElements.length=0},t.prototype._onBoundaryFocus=function(e,t){var r=e.target,n=this._rowElements[0===t?1:this._rowElements.length-2];if(r.getAttribute("aria-posinset")!==(0===t?"1":""+this._terminal.buffer.lines.length)&&e.relatedTarget===n){var i,o;if(0===t?(i=r,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(i=this._rowElements.shift(),o=r,this._rowContainer.removeChild(i)),i.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){var s=this._createAccessibilityTreeNode();this._rowElements.unshift(s),this._rowContainer.insertAdjacentElement("afterbegin",s)}else{s=this._createAccessibilityTreeNode();this._rowElements.push(s),this._rowContainer.appendChild(s)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}},t.prototype._onResize=function(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},t.prototype._onTab=function(e){for(var t=0;t<e;t++)this._onChar(" ")},t.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+=o.tooMuchOutput)),s.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)},0)}},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,s.isMac&&this._liveRegion.parentNode&&this._accessibilityTreeRoot.removeChild(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t)},t.prototype._renderRows=function(e,t){for(var r=this._terminal.buffer,n=r.lines.length.toString(),i=e;i<=t;i++){var s=r.translateBufferLineToString(r.ydisp+i,!0),a=(r.ydisp+i+1).toString(),l=this._rowElements[i];l.textContent=0===s.length?o.blankLine:s,l.setAttribute("aria-posinset",a),l.setAttribute("aria-setsize",n)}},t.prototype._refreshRowsDimensions=function(){if(this._terminal.renderer.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}},t.prototype._refreshRowDimensions=function(e){e.style.height=this._terminal.renderer.dimensions.actualCellHeight+"px"},t.prototype._announceCharacter=function(e){" "===e?this._liveRegion.innerHTML+="&nbsp;":this._liveRegion.textContent+=e},t}(r(25).Disposable);t.AccessibilityManager=c},function(e,t,r){"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 n=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(),r=this._audioContext;this._audioContext.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._terminal.options.bellSound)),function(e){t.buffer=e,t.connect(r.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),r=t.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer},e.prototype._removeMimeType=function(e){return e.split(",")[1]},e}();t.SoundManager=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=function(e,r){if(void 0===r&&(r=5),"object"!=typeof e)return e;if(null===e)return null;var n=Array.isArray(e)?[]:{};for(var i in e)n[i]=r<=1?e[i]:t.clone(e[i],r-1);return n}},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t,r){var n=e.call(this)||this;return n._document=t,n._parentElement=r,n._measureElement=n._document.createElement("span"),n._measureElement.classList.add("xterm-char-measure-element"),n._measureElement.textContent="W",n._measureElement.setAttribute("aria-hidden","true"),n._parentElement.appendChild(n._measureElement),n}return i(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}(r(16).EventEmitter);t.CharMeasure=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(48),i=function(){function e(e,t){this._mouseEvent=e,this._terminal=t,this._lines=this._terminal.buffer.lines,this._startCol=this._terminal.buffer.x,this._startRow=this._terminal.buffer.y;var r,n=this._terminal.mouseHelper.getCoords(this._mouseEvent,this._terminal.element,this._terminal.charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows,!1);n&&(r=n.map(function(e){return e-1}),this._endCol=r[0],this._endRow=r[1])}return e.prototype.move=function(){this._mouseEvent.altKey&&void 0!==this._endCol&&void 0!==this._endRow&&this._terminal.handler(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?"":o(this._bufferLine(this._startCol,this._startRow,this._startCol,this._startRow-this._wrappedRowsForRow(this._startRow),!1).length,this._sequence("D"))},e.prototype._moveToRequestedRow=function(){var e=this._startRow-this._wrappedRowsForRow(this._startRow),t=this._endRow-this._wrappedRowsForRow(this._endRow);return o(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,r=this._horizontalDirection();return o(this._bufferLine(this._startCol,e,this._endCol,t,"C"===r).length,this._sequence(r))},e.prototype._moveHorizontallyOnly=function(){var e=this._horizontalDirection();return o(Math.abs(this._startCol-this._endCol),this._sequence(e))},e.prototype._wrappedRowsCount=function(){for(var e=0,t=this._startRow-this._wrappedRowsForRow(this._startRow),r=this._endRow-this._wrappedRowsForRow(this._endRow),n=0;n<Math.abs(t-r);n++){var i="A"===this._verticalDirection()?-1:1;this._lines.get(t+i*n).isWrapped&&e++}return e},e.prototype._wrappedRowsForRow=function(e){for(var t=0,r=this._lines.get(e).isWrapped;r&&e>=0&&e<this._terminal.rows;)t++,e--,r=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?"C":"D"},e.prototype._verticalDirection=function(){return this._startRow>this._endRow?"A":"B"},e.prototype._bufferLine=function(e,t,r,n,i){for(var o=e,s=t,a="";o!==r||s!==n;)o+=i?1:-1,i&&o>this._terminal.cols-1?(a+=this._terminal.buffer.translateBufferLineToString(s,!1,e,o),o=0,e=0,s++):!i&&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 n.C0.ESC+t+e},e}();function o(e,t){e=Math.floor(e);for(var r="",n=0;n<e;n++)r+=t;return r}t.AltClickHandler=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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(){if(this.isSelectAllActive)return[this._terminal.cols,this._terminal.buffer.ybase+this._terminal.rows-1];if(!this.selectionStart)return null;if(!this.selectionEnd||this.areSelectionValuesReversed()){var e=this.selectionStart[0]+this.selectionStartLength;return e>this._terminal.cols?[e%this._terminal.cols,this.selectionStart[1]+Math.floor(e/this._terminal.cols)]:[e,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd},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=n},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(82),s=r(45),a=r(16),l=r(118),c=r(11),h=r(117),u=String.fromCharCode(160),f=new RegExp(u,"g"),_=function(e){function t(t,r){var n=e.call(this)||this;return n._terminal=t,n._charMeasure=r,n._enabled=!0,n._initListeners(),n.enable(),n._model=new l.SelectionModel(t),n._activeSelectionMode=0,n}return i(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._removeMouseDownListeners()},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 r=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var n=e[1];n<=t[1];n++){var i=this._buffer.translateBufferLineToString(n,!0,e[0],t[0]);r.push(i)}}else{var o=e[1]===t[1]?t[0]:null;r.push(this._buffer.translateBufferLineToString(e[1],!0,e[0],o));for(n=e[1]+1;n<=t[1]-1;n++){var a=this._buffer.lines.get(n);i=this._buffer.translateBufferLineToString(n,!0);a.isWrapped?r[r.length-1]+=i:r.push(i)}if(e[1]!==t[1]){a=this._buffer.lines.get(t[1]),i=this._buffer.translateBufferLineToString(t[1],!0,0,t[0]);a.isWrapped?r[r.length-1]+=i:r.push(i)}}return r.map(function(e){return e.replace(f," ")}).join(s.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()})),s.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,columnSelectMode:3===this._activeSelectionMode})},t.prototype.isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),r=this._model.finalSelectionStart,n=this._model.finalSelectionEnd;return!(!r||!n)&&(t[1]>r[1]&&t[1]<n[1]||r[1]===n[1]&&t[1]===r[1]&&t[0]>r[0]&&t[0]<n[0]||r[1]<n[1]&&t[1]===n[1]&&t[0]<n[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=o.MouseHelper.getCoordsRelativeToElement(e,this._terminal.screenElement)[1],r=this._terminal.rows*Math.ceil(this._charMeasure.height*this._terminal.options.lineHeight);return t>=0&&t<=r?0:(t>r&&(t-=r),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},t.prototype.shouldForceSelection=function(e){return s.isMac?e.altKey&&this._terminal.options.macOptionClickForcesSelection: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&&(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=this.shouldColumnSelect(e)?3:0,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.get(this._model.selectionStart[0])[c.CHAR_DATA_WIDTH_INDEX]&&this._model.selectionStart[0]++}},t.prototype._onDoubleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=1,this._selectWordAt(t,!0))},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))},t.prototype.shouldColumnSelect=function(e){return e.altKey&&!(s.isMac&&this._terminal.options.macOptionClickForcesSelection)},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(2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._terminal.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),3!==this._activeSelectionMode&&(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 r=this._buffer.lines.get(this._model.selectionEnd[1]).get(this._model.selectionEnd[0]);r&&0===r[c.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?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._terminal.cols),this._model.selectionEnd[1]=Math.min(this._terminal.buffer.ydisp+this._terminal.rows,this._terminal.buffer.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=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 r=t[0],n=0;t[0]>=n;n++){var i=e.get(n);0===i[c.CHAR_DATA_WIDTH_INDEX]?r--:i[c.CHAR_DATA_CHAR_INDEX].length>1&&t[0]!==n&&(r+=i[c.CHAR_DATA_CHAR_INDEX].length-1)}return r},t.prototype.setSelection=function(e,t,r){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=r,this.refresh()},t.prototype._getWordAt=function(e,t,r,n){if(void 0===r&&(r=!0),void 0===n&&(n=!0),e[0]>=this._terminal.cols)return null;var i=this._buffer.lines.get(e[1]);if(!i)return null;var o=this._buffer.translateBufferLineToString(e[1],!1),s=this._convertViewportColToCharacterIndex(i,e),a=s,l=e[0]-s,h=0,u=0,f=0,_=0;if(" "===o.charAt(s)){for(;s>0&&" "===o.charAt(s-1);)s--;for(;a<o.length&&" "===o.charAt(a+1);)a++}else{var d=e[0],p=e[0];for(0===i.get(d)[c.CHAR_DATA_WIDTH_INDEX]&&(h++,d--),2===i.get(p)[c.CHAR_DATA_WIDTH_INDEX]&&(u++,p++),i.get(p)[c.CHAR_DATA_CHAR_INDEX].length>1&&(_+=i.get(p)[c.CHAR_DATA_CHAR_INDEX].length-1,a+=i.get(p)[c.CHAR_DATA_CHAR_INDEX].length-1);d>0&&s>0&&!this._isCharWordSeparator(i.get(d-1));){0===(y=i.get(d-1))[c.CHAR_DATA_WIDTH_INDEX]?(h++,d--):y[c.CHAR_DATA_CHAR_INDEX].length>1&&(f+=y[c.CHAR_DATA_CHAR_INDEX].length-1,s-=y[c.CHAR_DATA_CHAR_INDEX].length-1),s--,d--}for(;p<i.length&&a+1<o.length&&!this._isCharWordSeparator(i.get(p+1));){var y;2===(y=i.get(p+1))[c.CHAR_DATA_WIDTH_INDEX]?(u++,p++):y[c.CHAR_DATA_CHAR_INDEX].length>1&&(_+=y[c.CHAR_DATA_CHAR_INDEX].length-1,a+=y[c.CHAR_DATA_CHAR_INDEX].length-1),a++,p++}}a++;var m=s+l-h+f,v=Math.min(this._terminal.cols,a-s+h+u-f-_);if(!t&&""===o.slice(s,a).trim())return null;if(r&&0===m&&32!==i.get(0)[c.CHAR_DATA_CODE_INDEX]){var g=this._buffer.lines.get(e[1]-1);if(g&&i.isWrapped&&32!==g.get(this._terminal.cols-1)[c.CHAR_DATA_CODE_INDEX]){var b=this._getWordAt([this._terminal.cols-1,e[1]-1],!1,!0,!1);if(b){var C=this._terminal.cols-b.start;m-=C,v+=C}}}if(n&&m+v===this._terminal.cols&&32!==i.get(this._terminal.cols-1)[c.CHAR_DATA_CODE_INDEX]){var w=this._buffer.lines.get(e[1]+1);if(w&&w.isWrapped&&32!==w.get(0)[c.CHAR_DATA_CODE_INDEX]){var E=this._getWordAt([0,e[1]+1],!1,!1,!0);E&&(v+=E.length)}}return{start:m,length:v}},t.prototype._selectWordAt=function(e,t){var r=this._getWordAt(e,t);if(r){for(;r.start<0;)r.start+=this._terminal.cols,e[1]--;this._model.selectionStart=[r.start,e[1]],this._model.selectionStartLength=r.length}},t.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var r=e[1];t.start<0;)t.start+=this._terminal.cols,r--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._terminal.cols;)t.length-=this._terminal.cols,r++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,r]}},t.prototype._isCharWordSeparator=function(e){return 0!==e[c.CHAR_DATA_WIDTH_INDEX]&&" ()[]{}'\"".indexOf(e[c.CHAR_DATA_CHAR_INDEX])>=0},t.prototype._selectLineAt=function(e){var t=this._buffer.getWrappedRangeForLine(e);this._model.selectionStart=[0,t.first],this._model.selectionEnd=[this._terminal.cols,t.last],this._model.selectionStartLength=0},t}(a.EventEmitter);t.SelectionManager=_},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(83),s=r(16),a=r(11),l=function(e){function t(t){var r=e.call(this)||this;return r._terminal=t,r._linkMatchers=[],r._nextLinkMatcherId=0,r._rowsToLinkify={start:null,end:null},r}return i(t,e),t.prototype.attachToDom=function(e){this._mouseZoneManager=e},t.prototype.linkifyRows=function(e,r){var n=this;this._mouseZoneManager&&(null===this._rowsToLinkify.start?(this._rowsToLinkify.start=e,this._rowsToLinkify.end=r):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,e),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,r)),this._mouseZoneManager.clearAll(e,r),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return n._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,r){if(void 0===r&&(r={}),!t)throw new Error("handler must be defined");var n={id:this._nextLinkMatcherId++,regex:e,handler:t,matchIndex:r.matchIndex,validationCallback:r.validationCallback,hoverTooltipCallback:r.tooltipCallback,hoverLeaveCallback:r.leaveCallback,willLinkActivate:r.willLinkActivate,priority:r.priority||0};return this._addLinkMatcherToList(n),n.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;var r=void 0;do{if(e--,t--,!(r=this._terminal.buffer.lines.get(t)))break}while(r.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 o=0;o<this._linkMatchers.length;o++)this._doLinkifyRow(e,n,this._linkMatchers[o])}},t.prototype._doLinkifyRow=function(e,t,r,n){var i=this;void 0===n&&(n=0);var o=t.match(r.regex);if(o&&0!==o.length){var s=o["number"!=typeof r.matchIndex?0:r.matchIndex],l=t.indexOf(s),c=this._terminal.buffer.lines.get(this._terminal.buffer.ydisp+e).get(l)[a.CHAR_DATA_ATTR_INDEX]>>9&511;r.validationCallback?r.validationCallback(s,function(t){i._rowsTimeoutId||t&&i._addLink(n+l,e,s,r,c)}):this._addLink(n+l,e,s,r,c);var h=l+s.length,u=t.substr(h);u.length>0&&this._doLinkifyRow(e,u,r,n+h)}},t.prototype._addLink=function(e,t,r,n,i){var s=this,a=e%this._terminal.cols,l=t+Math.floor(e/this._terminal.cols),c=(a+r.length)%this._terminal.cols,h=l+Math.floor((a+r.length)/this._terminal.cols);0===c&&(c=this._terminal.cols,h--),this._mouseZoneManager.add(new o.MouseZone(a+1,l+1,c+1,h+1,function(e){if(n.handler)return n.handler(e,r);window.open(r,"_blank")},function(e){s.emit("linkhover",s._createLinkHoverEvent(a,l,c,h,i)),s._terminal.element.classList.add("xterm-cursor-pointer")},function(e){s.emit("linktooltip",s._createLinkHoverEvent(a,l,c,h,i)),n.hoverTooltipCallback&&n.hoverTooltipCallback(e,r)},function(){s.emit("linkleave",s._createLinkHoverEvent(a,l,c,h,i)),s._terminal.element.classList.remove("xterm-cursor-pointer"),n.hoverLeaveCallback&&n.hoverLeaveCallback()},function(e){return!n.willLinkActivate||n.willLinkActivate(e,r)}))},t.prototype._createLinkHoverEvent=function(e,t,r,n,i){return{x1:e,y1:t,x2:r,y2:n,cols:this._terminal.cols,fg:i}},t.TIME_BEFORE_LINKIFY=200,t}(s.EventEmitter);t.Linkifier=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(11),i=function(){function e(e){this._terminal=e,this._characterJoiners=[],this._nextCharacterJoinerId=0}return e.prototype.registerCharacterJoiner=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},e.prototype.deregisterCharacterJoiner=function(e){for(var t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1},e.prototype.getJoinedCharacters=function(e){if(0===this._characterJoiners.length)return[];var t=this._terminal.buffer.lines.get(e);if(0===t.length)return[];for(var r=[],i=this._terminal.buffer.translateBufferLineToString(e,!0),o=0,s=0,a=0,l=t.get(0)[n.CHAR_DATA_ATTR_INDEX]>>9,c=0;c<this._terminal.cols;c++){var h=t.get(c),u=h[n.CHAR_DATA_CHAR_INDEX],f=h[n.CHAR_DATA_WIDTH_INDEX],_=h[n.CHAR_DATA_ATTR_INDEX]>>9;if(0!==f){if(_!==l){if(c-o>1)for(var d=this._getJoinedRanges(i,a,s,t,o),p=0;p<d.length;p++)r.push(d[p]);o=c,a=s,l=_}s+=u.length}}if(this._terminal.cols-o>1)for(d=this._getJoinedRanges(i,a,s,t,o),p=0;p<d.length;p++)r.push(d[p]);return r},e.prototype._getJoinedRanges=function(t,r,n,i,o){for(var s=t.substring(r,n),a=this._characterJoiners[0].handler(s),l=1;l<this._characterJoiners.length;l++)for(var c=this._characterJoiners[l].handler(s),h=0;h<c.length;h++)e._mergeRanges(a,c[h]);return this._stringRangesToCellRanges(a,i,o),a},e.prototype._stringRangesToCellRanges=function(e,t,r){var i=0,o=!1,s=0,a=e[i];if(a){for(var l=r;l<this._terminal.cols;l++){var c=t.get(l),h=c[n.CHAR_DATA_WIDTH_INDEX],u=c[n.CHAR_DATA_CHAR_INDEX].length;if(0!==h){if(!o&&a[0]<=s&&(a[0]=l,o=!0),a[1]<=s){if(a[1]=l,!(a=e[++i]))break;a[0]<=s?(a[0]=l,o=!0):o=!1}s+=u}}a&&(a[1]=this._terminal.cols)}},e._mergeRanges=function(e,t){for(var r=!1,n=0;n<e.length;n++){var i=e[n];if(r){if(t[1]<=i[0])return e[n-1][1]=t[1],e;if(t[1]<=i[1])return e[n-1][1]=Math.max(t[1],i[1]),e.splice(n,1),r=!1,e;e.splice(n,1),n--}else{if(t[1]<=i[0])return e.splice(n,0,t),e;if(t[1]<=i[1])return i[0]=Math.min(t[0],i[0]),e;t[0]<i[1]&&(i[0]=Math.min(t[0],i[0]),r=!0)}}return r?e[e.length-1][1]=t[1]:e.push(t),e},e}();t.CharacterJoinerRegistry=i},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(47),s=r(35),a=function(e){function t(t,r,n,i){var o=e.call(this,t,"link",r,!0,n)||this;return o._state=null,i.linkifier.on("linkhover",function(e){return o._onLinkHover(e)}),i.linkifier.on("linkleave",function(e){return o._onLinkLeave(e)}),o}return i(t,e),t.prototype.resize=function(t,r){e.prototype.resize.call(this,t,r),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(e.fg===s.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg<256?this._ctx.fillStyle=this._colors.ansi[e.fg].css: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}(o.BaseRenderLayer);t.LinkRenderLayer=a},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(11),s=function(e){function t(t,r,n){var i=e.call(this,t,"cursor",r,!0,n)||this;return i._state={x:null,y:null,isFocused:null,style:null,width:null},i._cursorRenderers={bar:i._renderBarCursor.bind(i),block:i._renderBlockCursor.bind(i),underline:i._renderUnderlineCursor.bind(i)},i}return i(t,e),t.prototype.resize=function(t,r){e.prototype.resize.call(this,t,r),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,r){!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 r=e.buffer.ybase+e.buffer.y,n=r-e.buffer.ydisp;if(n<0||n>=e.rows)this._clearCursor();else{var i=e.buffer.lines.get(r).get(e.buffer.x);if(i){if(!e.isFocused)return this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._renderBlurCursor(e,e.buffer.x,n,i),this._ctx.restore(),this._state.x=e.buffer.x,this._state.y=n,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,void(this._state.width=i[o.CHAR_DATA_WIDTH_INDEX]);if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===e.buffer.x&&this._state.y===n&&this._state.isFocused===e.isFocused&&this._state.style===e.options.cursorStyle&&this._state.width===i[o.CHAR_DATA_WIDTH_INDEX])return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[e.options.cursorStyle||"block"](e,e.buffer.x,n,i),this._ctx.restore(),this._state.x=e.buffer.x,this._state.y=n,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,this._state.width=i[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,r,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillLeftLineAtCell(t,r),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,r,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillCells(t,r,n[o.CHAR_DATA_WIDTH_INDEX],1),this._ctx.fillStyle=this._colors.cursorAccent.css,this.fillCharTrueColor(e,n,t,r),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,r,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillBottomLineAtCells(t,r),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,r,n){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this.strokeRectAtCell(t,r,n[o.CHAR_DATA_WIDTH_INDEX],1),this._ctx.restore()},t}(r(47).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,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t,r,n){var i=e.call(this,t,"selection",r,!0,n)||this;return i._clearState(),i}return i(t,e),t.prototype._clearState=function(){this._state={start:null,end:null,columnSelectMode:null,ydisp:null}},t.prototype.resize=function(t,r){e.prototype.resize.call(this,t,r),this._clearState()},t.prototype.reset=function(e){this._state.start&&this._state.end&&(this._clearState(),this.clearAll())},t.prototype.onSelectionChanged=function(e,t,r,n){if(this._didStateChange(t,r,n,e.buffer.ydisp)&&(this.clearAll(),t&&r)){var i=t[1]-e.buffer.ydisp,o=r[1]-e.buffer.ydisp,s=Math.max(i,0),a=Math.min(o,e.rows-1);if(!(s>=e.rows||a<0)){if(this._ctx.fillStyle=this._colors.selection.css,n){var l=t[0],c=r[0]-l,h=a-s+1;this.fillCells(l,s,c,h)}else{l=i===s?t[0]:0;var u=s===a?r[0]:e.cols;this.fillCells(l,s,u-l,1);var f=Math.max(a-s-1,0);if(this.fillCells(0,s+1,e.cols,f),s!==a){var _=o===a?r[0]:e.cols;this.fillCells(0,a,_,1)}}this._state.start=[t[0],t[1]],this._state.end=[r[0],r[1]],this._state.columnSelectMode=n,this._state.ydisp=e.buffer.ydisp}}},t.prototype._didStateChange=function(e,t,r,n){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||r!==this._state.columnSelectMode||n!==this._state.ydisp},t.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&(e[0]===t[0]&&e[1]===t[1])},t}(r(47).BaseRenderLayer);t.SelectionRenderLayer=o},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(35),s=r(85),a=r(86),l=function(e){function t(t,r){var n=e.call(this)||this;return n._document=t,n._config=r,n._canvasFactory=function(e,t){var r=n._document.createElement("canvas");return r.width=e,r.height=t,r},n}return i(t,e),t.prototype._doWarmUp=function(){var e=this,t=a.generateStaticCharAtlasTexture(window,this._canvasFactory,this._config);t instanceof HTMLCanvasElement?this._texture=t:t.then(function(t){e._texture=t})},t.prototype._isCached=function(e,t){var r=e.code<256,n=e.fg<16,i=e.fg>=256,o=e.bg>=256;return r&&(n||i)&&o&&!e.italic},t.prototype.draw=function(e,t,r,n){if(null===this._texture||void 0===this._texture)return!1;var i=0;if(t.fg<256?i=2+t.fg+(t.bold?16:0):t.bold&&(i=1),!this._isCached(t,i))return!1;e.save();var a=this._config.scaledCharWidth+s.CHAR_ATLAS_CELL_SPACING,l=this._config.scaledCharHeight+s.CHAR_ATLAS_CELL_SPACING;return t.dim&&(e.globalAlpha=o.DIM_OPACITY),e.drawImage(this._texture,t.code*a,i*l,a,this._config.scaledCharHeight,r,n,a,this._config.scaledCharHeight),e.restore(),!0},t}(r(61).default);t.default=l},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t,r){return e.call(this)||this}return i(t,e),t.prototype.draw=function(e,t,r,n){return!1},t}(r(61).default);t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.capacity=e,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return e.prototype._unlinkNode=function(e){var t=e.prev,r=e.next;e===this._head&&(this._head=r),e===this._tail&&(this._tail=t),null!==t&&(t.next=r),null!==r&&(r.prev=t)},e.prototype._appendNode=function(e){var t=this._tail;null!==t&&(t.next=e),e.prev=t,e.next=null,this._tail=e,null===this._head&&(this._head=e)},e.prototype.prealloc=function(e){for(var t=this._nodePool,r=0;r<e;r++)t.push({prev:null,next:null,key:null,value:null})},e.prototype.get=function(e){var t=this._map[e];return void 0!==t?(this._unlinkNode(t),this._appendNode(t),t.value):null},e.prototype.peek=function(){var e=this._head;return null===e?null:e.value},e.prototype.set=function(e,t){var r=this._map[e];if(void 0!==r)r=this._map[e],this._unlinkNode(r),r.value=t;else if(this.size>=this.capacity)r=this._head,this._unlinkNode(r),delete this._map[r.key],r.key=e,r.value=t,this._map[e]=r;else{var n=this._nodePool;n.length>0?((r=n.pop()).key=e,r.value=t):r={prev:null,next:null,key:e,value:t},this._map[e]=r,this.size++}this._appendNode(r)},e}();t.default=n},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(35),s=r(61),a=r(46),l=r(86),c=r(127),h=1024,u=1024,f={css:"rgba(0, 0, 0, 0)",rgba:0};var _=function(e){function t(t,r){var n=e.call(this)||this;n._config=r,n._drawToCacheCount=0,n._cacheCanvas=t.createElement("canvas"),n._cacheCanvas.width=h,n._cacheCanvas.height=u,n._cacheCtx=n._cacheCanvas.getContext("2d",{alpha:!0});var i=t.createElement("canvas");i.width=n._config.scaledCharWidth,i.height=n._config.scaledCharHeight,n._tmpCtx=i.getContext("2d",{alpha:n._config.allowTransparency}),n._width=Math.floor(h/n._config.scaledCharWidth),n._height=Math.floor(u/n._config.scaledCharHeight);var o=n._width*n._height;return n._cacheMap=new c.default(o),n._cacheMap.prealloc(o),n}return i(t,e),t.prototype.beginFrame=function(){this._drawToCacheCount=0},t.prototype.draw=function(e,t,r,n){var i=function(e){var t=(e.bold?0:4)+(e.dim?0:2)+(e.italic?0:1);return e.bg+"_"+e.fg+"_"+t+e.chars}(t),o=this._cacheMap.get(i);if(null!==o&&void 0!==o)return this._drawFromCache(e,o,r,n),!0;if(this._canCache(t)&&this._drawToCacheCount<100){var s=void 0;s=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var a=this._drawToCache(t,s);return this._cacheMap.set(i,a),this._drawFromCache(e,a,r,n),!0}return!1},t.prototype._canCache=function(e){return e.code<256},t.prototype._toCoordinates=function(e){return[e%this._width*this._config.scaledCharWidth,Math.floor(e/this._width)*this._config.scaledCharHeight]},t.prototype._drawFromCache=function(e,t,r,n){if(!t.isEmpty){var i=this._toCoordinates(t.index),o=i[0],s=i[1];e.drawImage(this._cacheCanvas,o,s,this._config.scaledCharWidth,this._config.scaledCharHeight,r,n,this._config.scaledCharWidth,this._config.scaledCharHeight)}},t.prototype._getColorFromAnsiIndex=function(e){return e<this._config.colors.ansi.length?this._config.colors.ansi[e]:a.DEFAULT_ANSI_COLORS[e]},t.prototype._getBackgroundColor=function(e){return this._config.allowTransparency?f:e.bg===o.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:e.bg<256?this._getColorFromAnsiIndex(e.bg):this._config.colors.background},t.prototype._getForegroundColor=function(e){return e.fg===o.INVERTED_DEFAULT_COLOR?this._config.colors.background:e.fg<256?this._getColorFromAnsiIndex(e.fg):this._config.colors.foreground},t.prototype._drawToCache=function(e,t){this._drawToCacheCount++,this._tmpCtx.save();var r=this._getBackgroundColor(e);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=r.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var n=e.bold?this._config.fontWeightBold:this._config.fontWeight,i=e.italic?"italic":"";this._tmpCtx.font=i+" "+n+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="top",this._tmpCtx.fillStyle=this._getForegroundColor(e).css,e.dim&&(this._tmpCtx.globalAlpha=o.DIM_OPACITY),this._tmpCtx.fillText(e.chars,0,0),this._tmpCtx.restore();var s=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),a=!1;this._config.allowTransparency||(a=l.clearColor(s,r));var c=this._toCoordinates(t),h=c[0],u=c[1];return this._cacheCtx.putImageData(s,h,u),{index:t,isEmpty:a}},t}(s.default);t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateConfig=function(e,t,r,n){var i={foreground:n.foreground,background:n.background,cursor:null,cursorAccent:null,selection:null,ansi:n.ansi.slice(0,16)};return{type:r.options.experimentalCharAtlas,devicePixelRatio:window.devicePixelRatio,scaledCharWidth:e,scaledCharHeight:t,fontFamily:r.options.fontFamily,fontSize:r.options.fontSize,fontWeight:r.options.fontWeight,fontWeightBold:r.options.fontWeightBold,allowTransparency:r.options.allowTransparency,colors:i}},t.configEquals=function(e,t){for(var r=0;r<e.colors.ansi.length;r++)if(e.colors.ansi[r].rgba!==t.colors.ansi[r].rgba)return!1;return e.type===t.type&&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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var r=0;r<e;r++){this.cache.length<=r&&this.cache.push([]);for(var n=this.cache[r].length;n<t;n++)this.cache[r].push(null);this.cache[r].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=n},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(11),s=r(35),a=r(130),l=function(e){function t(t,r,n,i,o){var s=e.call(this,t,"text",r,o,n)||this;return s._characterOverlapCache={},s._state=new a.GridCache,s._characterJoinerRegistry=i,s}return i(t,e),t.prototype.resize=function(t,r){e.prototype.resize.call(this,t,r);var n=this._getFont(t,!1,!1);this._characterWidth===r.scaledCharWidth&&this._characterFont===n||(this._characterWidth=r.scaledCharWidth,this._characterFont=n,this._characterOverlapCache={}),this._state.clear(),this._state.resize(t.cols,t.rows)},t.prototype.reset=function(e){this._state.clear(),this.clearAll()},t.prototype._forEachCell=function(e,t,r,n,i){for(var a=t;a<=r;a++)for(var l=a+e.buffer.ydisp,c=e.buffer.lines.get(l),h=n?n.getJoinedCharacters(l):[],u=0;u<e.cols;u++){var f=c.get(u),_=f[o.CHAR_DATA_CODE_INDEX],d=f[o.CHAR_DATA_CHAR_INDEX],p=f[o.CHAR_DATA_ATTR_INDEX],y=f[o.CHAR_DATA_WIDTH_INDEX],m=!1,v=u;if(0!==y){if(h.length>0&&u===h[0][0]){m=!0;var g=h.shift();d=e.buffer.translateBufferLineToString(l,!0,g[0],g[1]),y=g[1]-g[0],_=1/0,v=g[1]-1}!m&&this._isOverlapping(f)&&v<c.length-1&&c.get(v+1)[o.CHAR_DATA_CODE_INDEX]===o.NULL_CELL_CODE&&(y=2);var b=p>>18,C=511&p,w=p>>9&511;if(8&b){var E=C;C=w,256===(w=E)&&(w=s.INVERTED_DEFAULT_COLOR),257===C&&(C=s.INVERTED_DEFAULT_COLOR)}i(_,d,y,u,a,w,C,b),u=v}}},t.prototype._drawBackground=function(e,t,r){var n=this,i=this._ctx,o=e.cols,a=0,l=0,c=null;i.save(),this._forEachCell(e,t,r,null,function(e,t,r,h,u,f,_,d){var p=null;_===s.INVERTED_DEFAULT_COLOR?p=n._colors.foreground.css:_<256&&(p=n._colors.ansi[_].css),null===c&&(a=h,l=u),u!==l?(i.fillStyle=c,n.fillCells(a,l,o-a,1),a=h,l=u):c!==p&&(i.fillStyle=c,n.fillCells(a,l,h-a,1),a=h,l=u),c=p}),null!==c&&(i.fillStyle=c,this.fillCells(a,l,o-a,1)),i.restore()},t.prototype._drawForeground=function(e,t,r){var n=this;this._forEachCell(e,t,r,this._characterJoinerRegistry,function(t,r,i,o,a,l,c,h){16&h||(2&h&&(n._ctx.save(),l===s.INVERTED_DEFAULT_COLOR?n._ctx.fillStyle=n._colors.background.css:n._ctx.fillStyle=l<256?n._colors.ansi[l].css:n._colors.foreground.css,n.fillBottomLineAtCells(o,a,i),n._ctx.restore()),n.drawChars(e,r,t,i,o,a,l,c,!!(1&h),!!(32&h),!!(64&h)))})},t.prototype.onGridChanged=function(e,t,r){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this.clearCells(0,t,e.cols,r-t+1),this._drawBackground(e,t,r),this._drawForeground(e,t,r))},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 r=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=r,r},t}(r(47).BaseRenderLayer);t.TextRenderLayer=l},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(131),s=r(124),a=r(123),l=r(46),c=r(122),h=r(16),u=r(60),f=r(84),_=r(121),d=function(e){function t(t,r){var n=e.call(this)||this;n._terminal=t,n._isPaused=!1,n._needsFullRefresh=!1;var i=n._terminal.options.allowTransparency;if(n.colorManager=new l.ColorManager(document,i),n._characterJoinerRegistry=new _.CharacterJoinerRegistry(t),r&&n.colorManager.setTheme(r),n._renderLayers=[new o.TextRenderLayer(n._terminal.screenElement,0,n.colorManager.colors,n._characterJoinerRegistry,i),new s.SelectionRenderLayer(n._terminal.screenElement,1,n.colorManager.colors),new c.LinkRenderLayer(n._terminal.screenElement,2,n.colorManager.colors,n._terminal),new a.CursorRenderLayer(n._terminal.screenElement,3,n.colorManager.colors)],n.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},n._devicePixelRatio=window.devicePixelRatio,n._updateDimensions(),n.onOptionsChanged(),n._renderDebouncer=new u.RenderDebouncer(n._terminal,n._renderRows.bind(n)),n._screenDprMonitor=new f.ScreenDprMonitor,n._screenDprMonitor.setListener(function(){return n.onWindowResize(window.devicePixelRatio)}),n.register(n._screenDprMonitor),"IntersectionObserver"in window){var h=new IntersectionObserver(function(e){return n.onIntersectionChange(e[0])},{threshold:0});h.observe(n._terminal.element),n.register({dispose:function(){return h.disconnect()}})}return n}return i(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._renderLayers.forEach(function(e){return e.dispose()})},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 r=this;this._updateDimensions(),this._renderLayers.forEach(function(e){return e.resize(r._terminal,r.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,r){var n=this;void 0===r&&(r=!1),this._runOperation(function(i){return i.onSelectionChanged(n._terminal,e,t,r)})},t.prototype.onCursorMove=function(){var e=this;this._runOperation(function(t){return t.onCursorMove(e._terminal)})},t.prototype.onOptionsChanged=function(){var e=this;this.colorManager.allowTransparency=this._terminal.options.allowTransparency,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 r=this;this._renderLayers.forEach(function(n){return n.onGridChanged(r._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.prototype.registerCharacterJoiner=function(e){return this._characterJoinerRegistry.registerCharacterJoiner(e)},t.prototype.deregisterCharacterJoiner=function(e){return this._characterJoinerRegistry.deregisterCharacterJoiner(e)},t}(h.EventEmitter);t.Renderer=d},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(25);function s(e,t){for(var r=t-e,n=new Array(r);r--;)n[r]=--t;return n}var a=function(){function e(e){this.table="undefined"==typeof Uint8Array?new Array(e):new Uint8Array(e)}return e.prototype.add=function(e,t,r,n){this.table[t<<8|e]=(0|r)<<4|(void 0===n?t:n)},e.prototype.addMany=function(e,t,r,n){for(var i=0;i<e.length;i++)this.add(e[i],t,r,n)},e}();t.TransitionTable=a;var l=s(32,127),c=s(0,24);c.push(25),c.concat(s(28,32));t.VT500_TRANSITION_TABLE=function(){var e,t=new a(4095),r=s(0,14);for(e in r)for(var n=0;n<160;++n)t.add(n,e,1,0);for(e in t.addMany(l,0,2,0),r)t.addMany([24,26,153,154],e,3,0),t.addMany(s(128,144),e,3,0),t.addMany(s(144,152),e,3,0),t.add(156,e,0,0),t.add(27,e,11,1),t.add(157,e,4,8),t.addMany([152,158,159],e,0,7),t.add(155,e,11,3),t.add(144,e,11,9);return t.addMany(c,0,3,0),t.addMany(c,1,3,1),t.add(127,1,0,1),t.addMany(c,8,0,8),t.addMany(c,3,3,3),t.add(127,3,0,3),t.addMany(c,4,3,4),t.add(127,4,0,4),t.addMany(c,6,3,6),t.addMany(c,5,3,5),t.add(127,5,0,5),t.addMany(c,2,3,2),t.add(127,2,0,2),t.add(93,1,4,8),t.addMany(l,8,5,8),t.add(127,8,5,8),t.addMany([156,27,24,26,7],8,6,0),t.addMany(s(28,32),8,0,8),t.addMany([88,94,95],1,0,7),t.addMany(l,7,0,7),t.addMany(c,7,0,7),t.add(156,7,0,0),t.add(91,1,11,3),t.addMany(s(64,127),3,7,0),t.addMany(s(48,58),3,8,4),t.add(59,3,8,4),t.addMany([60,61,62,63],3,9,4),t.addMany(s(48,58),4,8,4),t.add(59,4,8,4),t.addMany(s(64,127),4,7,0),t.addMany([58,60,61,62,63],4,0,6),t.addMany(s(32,64),6,0,6),t.add(127,6,0,6),t.addMany(s(64,127),6,0,0),t.add(58,3,0,6),t.addMany(s(32,48),3,9,5),t.addMany(s(32,48),5,9,5),t.addMany(s(48,64),5,0,6),t.addMany(s(64,127),5,7,0),t.addMany(s(32,48),4,9,5),t.addMany(s(32,48),1,9,2),t.addMany(s(32,48),2,9,2),t.addMany(s(48,127),2,10,0),t.addMany(s(48,80),1,10,0),t.addMany(s(81,88),1,10,0),t.addMany([89,90,92],1,10,0),t.addMany(s(96,127),1,10,0),t.add(80,1,11,9),t.addMany(c,9,0,9),t.add(127,9,0,9),t.addMany(s(28,32),9,0,9),t.addMany(s(32,48),9,9,12),t.add(58,9,0,11),t.addMany(s(48,58),9,8,10),t.add(59,9,8,10),t.addMany([60,61,62,63],9,9,10),t.addMany(c,11,0,11),t.addMany(s(32,128),11,0,11),t.addMany(s(28,32),11,0,11),t.addMany(c,10,0,10),t.add(127,10,0,10),t.addMany(s(28,32),10,0,10),t.addMany(s(48,58),10,8,10),t.add(59,10,8,10),t.addMany([58,60,61,62,63],10,0,11),t.addMany(s(32,48),10,9,12),t.addMany(c,12,0,12),t.add(127,12,0,12),t.addMany(s(28,32),12,0,12),t.addMany(s(32,48),12,9,12),t.addMany(s(48,64),12,0,11),t.addMany(s(64,127),12,12,13),t.addMany(s(64,127),10,12,13),t.addMany(s(64,127),9,12,13),t.addMany(c,13,13,13),t.addMany(l,13,13,13),t.add(127,13,0,13),t.addMany([27,156],13,14,0),t}();var h=function(){function e(){}return e.prototype.hook=function(e,t,r){},e.prototype.put=function(e,t,r){},e.prototype.unhook=function(){},e}(),u=function(e){function r(r){void 0===r&&(r=t.VT500_TRANSITION_TABLE);var n=e.call(this)||this;return n.TRANSITIONS=r,n.initialState=0,n.currentState=n.initialState,n._osc="",n._params=[0],n._collect="",n._printHandlerFb=function(e,t,r){},n._executeHandlerFb=function(e){},n._csiHandlerFb=function(e,t,r){},n._escHandlerFb=function(e,t){},n._oscHandlerFb=function(e,t){},n._dcsHandlerFb=new h,n._errorHandlerFb=function(e){return e},n._printHandler=n._printHandlerFb,n._executeHandlers=Object.create(null),n._csiHandlers=Object.create(null),n._escHandlers=Object.create(null),n._oscHandlers=Object.create(null),n._dcsHandlers=Object.create(null),n._activeDcsHandler=null,n._errorHandler=n._errorHandlerFb,n}return i(r,e),r.prototype.dispose=function(){this._printHandlerFb=null,this._executeHandlerFb=null,this._csiHandlerFb=null,this._escHandlerFb=null,this._oscHandlerFb=null,this._dcsHandlerFb=null,this._errorHandlerFb=null,this._printHandler=null,this._executeHandlers=null,this._csiHandlers=null,this._escHandlers=null,this._oscHandlers=null,this._dcsHandlers=null,this._activeDcsHandler=null,this._errorHandler=null},r.prototype.setPrintHandler=function(e){this._printHandler=e},r.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},r.prototype.setExecuteHandler=function(e,t){this._executeHandlers[e.charCodeAt(0)]=t},r.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},r.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},r.prototype.setCsiHandler=function(e,t){this._csiHandlers[e.charCodeAt(0)]=t},r.prototype.clearCsiHandler=function(e){this._csiHandlers[e.charCodeAt(0)]&&delete this._csiHandlers[e.charCodeAt(0)]},r.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},r.prototype.setEscHandler=function(e,t){this._escHandlers[e]=t},r.prototype.clearEscHandler=function(e){this._escHandlers[e]&&delete this._escHandlers[e]},r.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},r.prototype.setOscHandler=function(e,t){this._oscHandlers[e]=t},r.prototype.clearOscHandler=function(e){this._oscHandlers[e]&&delete this._oscHandlers[e]},r.prototype.setOscHandlerFallback=function(e){this._oscHandlerFb=e},r.prototype.setDcsHandler=function(e,t){this._dcsHandlers[e]=t},r.prototype.clearDcsHandler=function(e){this._dcsHandlers[e]&&delete this._dcsHandlers[e]},r.prototype.setDcsHandlerFallback=function(e){this._dcsHandlerFb=e},r.prototype.setErrorHandler=function(e){this._errorHandler=e},r.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},r.prototype.reset=function(){this.currentState=this.initialState,this._osc="",this._params=[0],this._collect="",this._activeDcsHandler=null},r.prototype.parse=function(e){for(var t=0,r=0,n=!1,i=this.currentState,o=-1,s=-1,a=this._osc,l=this._collect,c=this._params,h=this.TRANSITIONS.table,u=this._activeDcsHandler,f=null,_=e.length,d=0;d<_;++d)if(t=e.charCodeAt(d),0===i&&t>31&&t<128){o=~o?o:d;do{d++}while(d<_&&e.charCodeAt(d)>31&&e.charCodeAt(d)<128);d--}else if(4===i&&t>47&&t<57)c[c.length-1]=10*c[c.length-1]+t-48;else{switch((r=t<160?h[i<<8|t]:16)>>4){case 2:o=~o?o:d;break;case 3:~o&&(this._printHandler(e,o,d),o=-1),(f=this._executeHandlers[t])?f():this._executeHandlerFb(t);break;case 0:~o?(this._printHandler(e,o,d),o=-1):~s&&(u.put(e,s,d),s=-1);break;case 1:if(t>159)switch(i){case 0:o=~o?o:d;break;case 8:a+=String.fromCharCode(t),r|=8;break;case 6:r|=6;break;case 11:r|=11;break;case 13:s=~s?s:d,r|=13;break;default:n=!0}else n=!0;if(n){if(this._errorHandler({position:d,code:t,currentState:i,print:o,dcs:s,osc:a,collect:l,params:c,abort:!1}).abort)return;n=!1}break;case 7:(f=this._csiHandlers[t])?f(c,l):this._csiHandlerFb(l,c,t);break;case 8:59===t?c.push(0):c[c.length-1]=10*c[c.length-1]+t-48;break;case 9:l+=String.fromCharCode(t);break;case 10:(f=this._escHandlers[l+String.fromCharCode(t)])?f(l,t):this._escHandlerFb(l,t);break;case 11:~o&&(this._printHandler(e,o,d),o=-1),a="",c=[0],l="",s=-1;break;case 12:(u=this._dcsHandlers[l+String.fromCharCode(t)])||(u=this._dcsHandlerFb),u.hook(l,c,t);break;case 13:s=~s?s:d;break;case 14:u&&(~s&&u.put(e,s,d),u.unhook(),u=null),27===t&&(r|=1),a="",c=[0],l="",s=-1;break;case 4:~o&&(this._printHandler(e,o,d),o=-1),a="";break;case 5:a+=e.charAt(d);break;case 6:if(a&&24!==t&&26!==t){var p=a.indexOf(";");if(-1===p)this._oscHandlerFb(-1,a);else{var y=parseInt(a.substring(0,p)),m=a.substring(p+1);(f=this._oscHandlers[y])?f(m):this._oscHandlerFb(y,m)}}27===t&&(r|=1),a="",c=[0],l="",s=-1}i=15&r}0===i&&~o?this._printHandler(e,o,e.length):13===i&&~s&&u&&u.put(e,s,e.length),this._osc=a,this._collect=l,this._params=c,this._activeDcsHandler=u,this.currentState=i},r}(o.Disposable);t.EscapeSequenceParser=u},function(e,t,r){"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]],r=[[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 n(e,t){var r,n=0,i=t.length-1;if(e<t[0][0]||e>t[i][1])return!1;for(;i>=n;)if(e>t[r=n+i>>1][1])n=r+1;else{if(!(e<t[r][0]))return!0;i=r-1}return!1}var i=0|e.control,o=null;return function(s){if((s|=0)<32)return 0|i;if(s<127)return 1;var a,l=o||function(){var r;o="undefined"==typeof Uint32Array?new Array(4096):new Uint32Array(4096);for(var i=0;i<4096;++i){for(var s=0,a=16;a--;)s=s<<2|(0===(r=16*i+a)?e.nul:r<32||r>=127&&r<160?e.control:n(r,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)}(r)?2:1);o[i]=s}return o}();return s<65536?l[s>>4]>>((15&s)<<1)&3:n(a=s,r)?0:a>=131072&&a<=196605||a>=196608&&a<=262141?2:1}}({nul:0,control:0})},function(e,t,r){"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,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(48),s=r(135),a=r(11),l=r(134),c=r(133),h=r(25),u=r(62),f={"(":0,")":1,"*":2,"+":3,"-":1,".":2},_=function(){function e(e){this._terminal=e}return e.prototype.hook=function(e,t,r){this._data=""},e.prototype.put=function(e,t,r){this._data+=e.substring(t,r)},e.prototype.unhook=function(){this._terminal.handler(o.C0.ESC+"P0+r"+this._data+o.C0.ESC+"\\")},e}(),d=function(){function e(e){this._terminal=e}return e.prototype.hook=function(e,t,r){this._data=""},e.prototype.put=function(e,t,r){this._data+=e.substring(t,r)},e.prototype.unhook=function(){switch(this._data){case'"q':return this._terminal.handler(o.C0.ESC+'P1$r0"q'+o.C0.ESC+"\\");case'"p':return this._terminal.handler(o.C0.ESC+'P1$r61"p'+o.C0.ESC+"\\");case"r":var e=this._terminal.buffer.scrollTop+1+";"+(this._terminal.buffer.scrollBottom+1)+"r";return this._terminal.handler(o.C0.ESC+"P1$r"+e+o.C0.ESC+"\\");case"m":return this._terminal.handler(o.C0.ESC+"P1$r0m"+o.C0.ESC+"\\");case" q":var t={block:2,underline:4,bar:6}[this._terminal.getOption("cursorStyle")];return t-=this._terminal.getOption("cursorBlink"),this._terminal.handler(o.C0.ESC+"P1$r"+t+" q"+o.C0.ESC+"\\");default:this._terminal.error("Unknown DCS $q %s",this._data),this._terminal.handler(o.C0.ESC+"P0$r"+this._data+o.C0.ESC+"\\")}},e}(),p=function(e){function t(t,r){void 0===r&&(r=new c.EscapeSequenceParser);var n=e.call(this)||this;n._terminal=t,n._parser=r,n.register(n._parser),n._surrogateHigh="",n._parser.setCsiHandlerFallback(function(e,t,r){n._terminal.error("Unknown CSI code: ",{collect:e,params:t,flag:String.fromCharCode(r)})}),n._parser.setEscHandlerFallback(function(e,t){n._terminal.error("Unknown ESC code: ",{collect:e,flag:String.fromCharCode(t)})}),n._parser.setExecuteHandlerFallback(function(e){n._terminal.error("Unknown EXECUTE code: ",{code:e})}),n._parser.setOscHandlerFallback(function(e,t){n._terminal.error("Unknown OSC code: ",{identifier:e,data:t})}),n._parser.setPrintHandler(function(e,t,r){return n.print(e,t,r)}),n._parser.setCsiHandler("@",function(e,t){return n.insertChars(e)}),n._parser.setCsiHandler("A",function(e,t){return n.cursorUp(e)}),n._parser.setCsiHandler("B",function(e,t){return n.cursorDown(e)}),n._parser.setCsiHandler("C",function(e,t){return n.cursorForward(e)}),n._parser.setCsiHandler("D",function(e,t){return n.cursorBackward(e)}),n._parser.setCsiHandler("E",function(e,t){return n.cursorNextLine(e)}),n._parser.setCsiHandler("F",function(e,t){return n.cursorPrecedingLine(e)}),n._parser.setCsiHandler("G",function(e,t){return n.cursorCharAbsolute(e)}),n._parser.setCsiHandler("H",function(e,t){return n.cursorPosition(e)}),n._parser.setCsiHandler("I",function(e,t){return n.cursorForwardTab(e)}),n._parser.setCsiHandler("J",function(e,t){return n.eraseInDisplay(e)}),n._parser.setCsiHandler("K",function(e,t){return n.eraseInLine(e)}),n._parser.setCsiHandler("L",function(e,t){return n.insertLines(e)}),n._parser.setCsiHandler("M",function(e,t){return n.deleteLines(e)}),n._parser.setCsiHandler("P",function(e,t){return n.deleteChars(e)}),n._parser.setCsiHandler("S",function(e,t){return n.scrollUp(e)}),n._parser.setCsiHandler("T",function(e,t){return n.scrollDown(e,t)}),n._parser.setCsiHandler("X",function(e,t){return n.eraseChars(e)}),n._parser.setCsiHandler("Z",function(e,t){return n.cursorBackwardTab(e)}),n._parser.setCsiHandler("`",function(e,t){return n.charPosAbsolute(e)}),n._parser.setCsiHandler("a",function(e,t){return n.hPositionRelative(e)}),n._parser.setCsiHandler("b",function(e,t){return n.repeatPrecedingCharacter(e)}),n._parser.setCsiHandler("c",function(e,t){return n.sendDeviceAttributes(e,t)}),n._parser.setCsiHandler("d",function(e,t){return n.linePosAbsolute(e)}),n._parser.setCsiHandler("e",function(e,t){return n.vPositionRelative(e)}),n._parser.setCsiHandler("f",function(e,t){return n.hVPosition(e)}),n._parser.setCsiHandler("g",function(e,t){return n.tabClear(e)}),n._parser.setCsiHandler("h",function(e,t){return n.setMode(e,t)}),n._parser.setCsiHandler("l",function(e,t){return n.resetMode(e,t)}),n._parser.setCsiHandler("m",function(e,t){return n.charAttributes(e)}),n._parser.setCsiHandler("n",function(e,t){return n.deviceStatus(e,t)}),n._parser.setCsiHandler("p",function(e,t){return n.softReset(e,t)}),n._parser.setCsiHandler("q",function(e,t){return n.setCursorStyle(e,t)}),n._parser.setCsiHandler("r",function(e,t){return n.setScrollRegion(e,t)}),n._parser.setCsiHandler("s",function(e,t){return n.saveCursor(e)}),n._parser.setCsiHandler("u",function(e,t){return n.restoreCursor(e)}),n._parser.setExecuteHandler(o.C0.BEL,function(){return n.bell()}),n._parser.setExecuteHandler(o.C0.LF,function(){return n.lineFeed()}),n._parser.setExecuteHandler(o.C0.VT,function(){return n.lineFeed()}),n._parser.setExecuteHandler(o.C0.FF,function(){return n.lineFeed()}),n._parser.setExecuteHandler(o.C0.CR,function(){return n.carriageReturn()}),n._parser.setExecuteHandler(o.C0.BS,function(){return n.backspace()}),n._parser.setExecuteHandler(o.C0.HT,function(){return n.tab()}),n._parser.setExecuteHandler(o.C0.SO,function(){return n.shiftOut()}),n._parser.setExecuteHandler(o.C0.SI,function(){return n.shiftIn()}),n._parser.setExecuteHandler(o.C1.IND,function(){return n.index()}),n._parser.setExecuteHandler(o.C1.NEL,function(){return n.nextLine()}),n._parser.setExecuteHandler(o.C1.HTS,function(){return n.tabSet()}),n._parser.setOscHandler(0,function(e){return n.setTitle(e)}),n._parser.setOscHandler(2,function(e){return n.setTitle(e)}),n._parser.setEscHandler("7",function(){return n.saveCursor([])}),n._parser.setEscHandler("8",function(){return n.restoreCursor([])}),n._parser.setEscHandler("D",function(){return n.index()}),n._parser.setEscHandler("E",function(){return n.nextLine()}),n._parser.setEscHandler("H",function(){return n.tabSet()}),n._parser.setEscHandler("M",function(){return n.reverseIndex()}),n._parser.setEscHandler("=",function(){return n.keypadApplicationMode()}),n._parser.setEscHandler(">",function(){return n.keypadNumericMode()}),n._parser.setEscHandler("c",function(){return n.reset()}),n._parser.setEscHandler("n",function(){return n.setgLevel(2)}),n._parser.setEscHandler("o",function(){return n.setgLevel(3)}),n._parser.setEscHandler("|",function(){return n.setgLevel(3)}),n._parser.setEscHandler("}",function(){return n.setgLevel(2)}),n._parser.setEscHandler("~",function(){return n.setgLevel(1)}),n._parser.setEscHandler("%@",function(){return n.selectDefaultCharset()}),n._parser.setEscHandler("%G",function(){return n.selectDefaultCharset()});var i=function(e){a._parser.setEscHandler("("+e,function(){return n.selectCharset("("+e)}),a._parser.setEscHandler(")"+e,function(){return n.selectCharset(")"+e)}),a._parser.setEscHandler("*"+e,function(){return n.selectCharset("*"+e)}),a._parser.setEscHandler("+"+e,function(){return n.selectCharset("+"+e)}),a._parser.setEscHandler("-"+e,function(){return n.selectCharset("-"+e)}),a._parser.setEscHandler("."+e,function(){return n.selectCharset("."+e)}),a._parser.setEscHandler("/"+e,function(){return n.selectCharset("/"+e)})},a=this;for(var l in s.CHARSETS)i(l);return n._parser.setErrorHandler(function(e){return n._terminal.error("Parsing error: ",e),e}),n._parser.setDcsHandler("$q",new d(n._terminal)),n._parser.setDcsHandler("+q",new _(n._terminal)),n}return i(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._terminal=null},t.prototype.parse=function(e){if(this._terminal){var t=this._terminal.buffer,r=t.x,n=t.y;this._terminal.debug&&this._terminal.log("data: "+e),this._surrogateHigh&&(e=this._surrogateHigh+e,this._surrogateHigh=""),this._parser.parse(e),(t=this._terminal.buffer).x===r&&t.y===n||this._terminal.emit("cursormove")}},t.prototype.print=function(e,t,r){var n,i,o,s,c=this._terminal.buffer,h=this._terminal.charset,u=this._terminal.options.screenReaderMode,f=this._terminal.cols,_=this._terminal.wraparoundMode,d=this._terminal.insertMode,p=this._terminal.curAttr,y=c.lines.get(c.y+c.ybase);this._terminal.updateRange(c.y);for(var m=t;m<r;++m){if(n=e.charAt(m),55296<=(i=e.charCodeAt(m))&&i<=56319){if(o=e.charCodeAt(m+1),isNaN(o)){this._surrogateHigh=n;continue}i=1024*(i-55296)+(o-56320)+65536,n+=e.charAt(m+1)}if(!(56320<=i&&i<=57343))if(s=l.wcwidth(i),h&&(i=(n=h[n]||n).charCodeAt(0)),u&&this._terminal.emit("a11y.char",n),s||!c.x){if(c.x+s-1>=f)if(_)c.x=0,c.y++,c.y>c.scrollBottom?(c.y--,this._terminal.scroll(!0)):c.lines.get(c.y).isWrapped=!0,y=c.lines.get(c.y+c.ybase);else if(2===s)continue;if(d)for(var v=0;v<s;++v){var g=y.pop();b=y.get(c.x-2);0===g[a.CHAR_DATA_WIDTH_INDEX]&&b&&2===b[a.CHAR_DATA_WIDTH_INDEX]&&y.set(this._terminal.cols-2,[p,a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),y.splice(c.x,0,[p,a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE])}y.set(c.x++,[p,n,s,i]),2===s&&y.set(c.x++,[p,"",0,void 0])}else{var b,C=y.get(c.x-1);C&&(C[a.CHAR_DATA_WIDTH_INDEX]?(C[a.CHAR_DATA_CHAR_INDEX]+=n,C[a.CHAR_DATA_CODE_INDEX]=i):(b=y.get(c.x-2))&&(b[a.CHAR_DATA_CHAR_INDEX]+=n,b[a.CHAR_DATA_CODE_INDEX]=i))}}this._terminal.updateRange(c.y)},t.prototype.bell=function(){this._terminal.bell()},t.prototype.lineFeed=function(){var e=this._terminal.buffer;this._terminal.options.convertEol&&(e.x=0),e.y++,e.y>e.scrollBottom&&(e.y--,this._terminal.scroll()),e.x>=this._terminal.cols&&e.x--,this._terminal.emit("linefeed")},t.prototype.carriageReturn=function(){this._terminal.buffer.x=0},t.prototype.backspace=function(){this._terminal.buffer.x>0&&this._terminal.buffer.x--},t.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)},t.prototype.shiftOut=function(){this._terminal.setgLevel(1)},t.prototype.shiftIn=function(){this._terminal.setgLevel(0)},t.prototype.insertChars=function(e){this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).insertCells(this._terminal.buffer.x,e[0]||1,[this._terminal.eraseAttr(),a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),this._terminal.updateRange(this._terminal.buffer.y)},t.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)},t.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--},t.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)},t.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)},t.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},t.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},t.prototype.cursorCharAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x=t-1},t.prototype.cursorPosition=function(e){var t,r=e[0]-1;t=e.length>=2?e[1]-1:0,r<0?r=0:r>=this._terminal.rows&&(r=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=r},t.prototype.cursorForwardTab=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.x=this._terminal.buffer.nextStop()},t.prototype._eraseInBufferLine=function(e,t,r){this._terminal.buffer.lines.get(this._terminal.buffer.ybase+e).replaceCells(t,r,[this._terminal.eraseAttr(),a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE])},t.prototype.eraseInDisplay=function(e){var t;switch(e[0]){case 0:for(t=this._terminal.buffer.y,this._terminal.updateRange(t),this._eraseInBufferLine(t++,this._terminal.buffer.x,this._terminal.cols);t<this._terminal.rows;t++)this._eraseInBufferLine(t,0,this._terminal.cols);this._terminal.updateRange(t);break;case 1:for(t=this._terminal.buffer.y,this._terminal.updateRange(t),this._eraseInBufferLine(t,0,this._terminal.buffer.x+1);t--;)this._eraseInBufferLine(t,0,this._terminal.cols);this._terminal.updateRange(0);break;case 2:for(t=this._terminal.rows,this._terminal.updateRange(t-1);t--;)this._eraseInBufferLine(t,0,this._terminal.cols);this._terminal.updateRange(0);break;case 3:var r=this._terminal.buffer.lines.length-this._terminal.rows;r>0&&(this._terminal.buffer.lines.trimStart(r),this._terminal.buffer.ybase=Math.max(this._terminal.buffer.ybase-r,0),this._terminal.buffer.ydisp=Math.max(this._terminal.buffer.ydisp-r,0),this._terminal.emit("scroll",0))}},t.prototype.eraseInLine=function(e){switch(e[0]){case 0:this._eraseInBufferLine(this._terminal.buffer.y,this._terminal.buffer.x,this._terminal.cols);break;case 1:this._eraseInBufferLine(this._terminal.buffer.y,0,this._terminal.buffer.x+1);break;case 2:this._eraseInBufferLine(this._terminal.buffer.y,0,this._terminal.cols)}this._terminal.updateRange(this._terminal.buffer.y)},t.prototype.insertLines=function(e){var t=e[0];t<1&&(t=1);for(var r=this._terminal.buffer,n=r.y+r.ybase,i=this._terminal.rows-1-r.scrollBottom,o=this._terminal.rows-1+r.ybase-i+1;t--;)r.lines.splice(o-1,1),r.lines.splice(n,0,u.BufferLine.blankLine(this._terminal.cols,this._terminal.eraseAttr()));this._terminal.updateRange(r.y),this._terminal.updateRange(r.scrollBottom)},t.prototype.deleteLines=function(e){var t=e[0];t<1&&(t=1);var r,n=this._terminal.buffer,i=n.y+n.ybase;for(r=this._terminal.rows-1-n.scrollBottom,r=this._terminal.rows-1+n.ybase-r;t--;)n.lines.splice(i,1),n.lines.splice(r,0,u.BufferLine.blankLine(this._terminal.cols,this._terminal.eraseAttr()));this._terminal.updateRange(n.y),this._terminal.updateRange(n.scrollBottom)},t.prototype.deleteChars=function(e){this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).deleteCells(this._terminal.buffer.x,e[0]||1,[this._terminal.eraseAttr(),a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),this._terminal.updateRange(this._terminal.buffer.y)},t.prototype.scrollUp=function(e){for(var t=e[0]||1,r=this._terminal.buffer;t--;)r.lines.splice(r.ybase+r.scrollTop,1),r.lines.splice(r.ybase+r.scrollBottom,0,u.BufferLine.blankLine(this._terminal.cols,a.DEFAULT_ATTR));this._terminal.updateRange(r.scrollTop),this._terminal.updateRange(r.scrollBottom)},t.prototype.scrollDown=function(e,t){if(e.length<2&&!t){for(var r=e[0]||1,n=this._terminal.buffer;r--;)n.lines.splice(n.ybase+n.scrollBottom,1),n.lines.splice(n.ybase+n.scrollBottom,0,u.BufferLine.blankLine(this._terminal.cols,a.DEFAULT_ATTR));this._terminal.updateRange(n.scrollTop),this._terminal.updateRange(n.scrollBottom)}},t.prototype.eraseChars=function(e){this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).replaceCells(this._terminal.buffer.x,this._terminal.buffer.x+(e[0]||1),[this._terminal.eraseAttr(),a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE])},t.prototype.cursorBackwardTab=function(e){for(var t=e[0]||1,r=this._terminal.buffer;t--;)r.x=r.prevStop()},t.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)},t.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)},t.prototype.repeatPrecedingCharacter=function(e){var t=this._terminal.buffer,r=t.lines.get(t.ybase+t.y);r.replaceCells(t.x,t.x+(e[0]||1),r.get(t.x-1)||[a.DEFAULT_ATTR,a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE])},t.prototype.sendDeviceAttributes=function(e,t){e[0]>0||(t?">"===t&&(this._terminal.is("xterm")?this._terminal.handler(o.C0.ESC+"[>0;276;0c"):this._terminal.is("rxvt-unicode")?this._terminal.handler(o.C0.ESC+"[>85;95;0c"):this._terminal.is("linux")?this._terminal.handler(e[0]+"c"):this._terminal.is("screen")&&this._terminal.handler(o.C0.ESC+"[>83;40003;0c")):this._terminal.is("xterm")||this._terminal.is("rxvt-unicode")||this._terminal.is("screen")?this._terminal.handler(o.C0.ESC+"[?1;2c"):this._terminal.is("linux")&&this._terminal.handler(o.C0.ESC+"[?6c"))},t.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)},t.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--},t.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)},t.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={})},t.prototype.setMode=function(e,t){if(e.length>1)for(var r=0;r<e.length;r++)this.setMode([e[r]]);else if(t){if("?"===t)switch(e[0]){case 1:this._terminal.applicationCursor=!0;break;case 2:this._terminal.setgCharset(0,s.DEFAULT_CHARSET),this._terminal.setgCharset(1,s.DEFAULT_CHARSET),this._terminal.setgCharset(2,s.DEFAULT_CHARSET),this._terminal.setgCharset(3,s.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}},t.prototype.resetMode=function(e,t){if(e.length>1)for(var r=0;r<e.length;r++)this.resetMode([e[r]]);else if(t){if("?"===t)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}},t.prototype.charAttributes=function(e){if(1!==e.length||0!==e[0]){for(var t,r=e.length,n=this._terminal.curAttr>>18,i=this._terminal.curAttr>>9&511,o=511&this._terminal.curAttr,s=0;s<r;s++)(t=e[s])>=30&&t<=37?i=t-30:t>=40&&t<=47?o=t-40:t>=90&&t<=97?i=(t+=8)-90:t>=100&&t<=107?o=(t+=8)-100:0===t?(n=a.DEFAULT_ATTR>>18,i=a.DEFAULT_ATTR>>9&511,o=511&a.DEFAULT_ATTR):1===t?n|=1:3===t?n|=64:4===t?n|=2:5===t?n|=4:7===t?n|=8:8===t?n|=16:2===t?n|=32:22===t?(n&=-2,n&=-33):23===t?n&=-65:24===t?n&=-3:25===t?n&=-5:27===t?n&=-9:28===t?n&=-17:39===t?i=a.DEFAULT_ATTR>>9&511:49===t?o=511&a.DEFAULT_ATTR:38===t?2===e[s+1]?(s+=2,-1===(i=this._terminal.matchColor(255&e[s],255&e[s+1],255&e[s+2]))&&(i=511),s+=2):5===e[s+1]&&(i=t=255&e[s+=2]):48===t?2===e[s+1]?(s+=2,-1===(o=this._terminal.matchColor(255&e[s],255&e[s+1],255&e[s+2]))&&(o=511),s+=2):5===e[s+1]&&(o=t=255&e[s+=2]):100===t?(i=a.DEFAULT_ATTR>>9&511,o=511&a.DEFAULT_ATTR):this._terminal.error("Unknown SGR attribute: %d.",t);this._terminal.curAttr=n<<18|i<<9|o}else this._terminal.curAttr=a.DEFAULT_ATTR},t.prototype.deviceStatus=function(e,t){if(t){if("?"===t)switch(e[0]){case 6:r=this._terminal.buffer.y+1,n=this._terminal.buffer.x+1;this._terminal.emit("data",o.C0.ESC+"[?"+r+";"+n+"R")}}else switch(e[0]){case 5:this._terminal.emit("data",o.C0.ESC+"[0n");break;case 6:var r=this._terminal.buffer.y+1,n=this._terminal.buffer.x+1;this._terminal.emit("data",o.C0.ESC+"["+r+";"+n+"R")}},t.prototype.softReset=function(e,t){"!"===t&&(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=a.DEFAULT_ATTR,this._terminal.buffer.x=this._terminal.buffer.y=0,this._terminal.charset=null,this._terminal.glevel=0,this._terminal.charsets=[null])},t.prototype.setCursorStyle=function(e,t){if(" "===t){var r=e[0]<1?1:e[0];switch(r){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=r%2==1;this._terminal.setOption("cursorBlink",n)}},t.prototype.setScrollRegion=function(e,t){t||(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)},t.prototype.saveCursor=function(e){this._terminal.buffer.savedX=this._terminal.buffer.x,this._terminal.buffer.savedY=this._terminal.buffer.y,this._terminal.savedCurAttr=this._terminal.curAttr},t.prototype.restoreCursor=function(e){this._terminal.buffer.x=this._terminal.buffer.savedX||0,this._terminal.buffer.y=this._terminal.buffer.savedY||0,this._terminal.curAttr=this._terminal.savedCurAttr||a.DEFAULT_ATTR},t.prototype.setTitle=function(e){this._terminal.handleTitle(e)},t.prototype.nextLine=function(){this._terminal.buffer.x=0,this.index()},t.prototype.keypadApplicationMode=function(){this._terminal.log("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport&&this._terminal.viewport.syncScrollArea()},t.prototype.keypadNumericMode=function(){this._terminal.log("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport&&this._terminal.viewport.syncScrollArea()},t.prototype.selectDefaultCharset=function(){this._terminal.setgLevel(0),this._terminal.setgCharset(0,s.DEFAULT_CHARSET)},t.prototype.selectCharset=function(e){if(2!==e.length)return this.selectDefaultCharset();"/"!==e[0]&&this._terminal.setgCharset(f[e[0]],s.CHARSETS[e[1]]||s.DEFAULT_CHARSET)},t.prototype.index=function(){this._terminal.index()},t.prototype.tabSet=function(){this._terminal.tabSet()},t.prototype.reverseIndex=function(){this._terminal.reverseIndex()},t.prototype.reset=function(){this._parser.reset(),this._terminal.reset()},t.prototype.setgLevel=function(e){this._terminal.setgLevel(e)},t}(h.Disposable);t.InputHandler=p},function(e,t,r){"use strict";function n(e){return e.replace(/\r?\n/g,"\r")}function i(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=n,t.bracketTextForPaste=i,t.copyHandler=function(e,t,r){t.browser.isMSIE?window.clipboardData.setData("Text",r.selectionText):e.clipboardData.setData("text/plain",r.selectionText),e.preventDefault()},t.pasteHandler=function(e,t){e.stopPropagation();var r=function(r){r=i(r=n(r),t.bracketedPasteMode),t.handler(r),t.textarea.value="",t.emit("paste",r),t.cancel(e)};t.browser.isMSIE?window.clipboardData&&r(window.clipboardData.getData("Text")):e.clipboardData&&r(e.clipboardData.getData("text/plain"))},t.moveTextAreaUnderMouseCursor=o,t.rightClickHandler=function(e,t,r,n){o(e,t),n&&!r.isClickInSelection(e)&&r.selectWordAtCursor(e),t.value=r.selectionText,t.select()}},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(25),s=r(49),a=15,l=function(e){function t(t,r,n,i){var o=e.call(this)||this;return o._terminal=t,o._viewportElement=r,o._scrollArea=n,o._charMeasure=i,o.scrollBarWidth=0,o._currentRowHeight=0,o._lastRecordedBufferLength=0,o._lastRecordedViewportHeight=0,o._lastRecordedBufferHeight=0,o._wheelPartialScroll=0,o._refreshAnimationFrame=null,o._ignoreNextScrollEvent=!1,o.scrollBarWidth=o._viewportElement.offsetWidth-o._scrollArea.offsetWidth||a,o.register(s.addDisposableDomListener(o._viewportElement,"scroll",o._onScroll.bind(o))),setTimeout(function(){return o.syncScrollArea()},0),o}return i(t,e),t.prototype.onThemeChanged=function(e){this._viewportElement.style.backgroundColor=e.background.css},t.prototype._refresh=function(){var e=this;null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return e._innerRefresh()}))},t.prototype._innerRefresh=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")}var t=this._terminal.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},t.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()},t.prototype._onScroll=function(e){if(this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var t=Math.round(this._viewportElement.scrollTop/this._currentRowHeight)-this._terminal.buffer.ydisp;this._terminal.scrollLines(t,!0)}},t.prototype.onWheel=function(e){var t=this._getPixelsScrolled(e);0!==t&&(this._viewportElement.scrollTop+=t,e.preventDefault())},t.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},t.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},t.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},t.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())},t}(o.Disposable);t.Viewport=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,r){this._textarea=e,this._compositionView=t,this._terminal=r,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 r={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(r.start,r.end):t._textarea.value.substring(r.start),t._terminal.handler(e)}},0)}else{this._isSendingComposition=!1;var n=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._terminal.handler(n)}},e.prototype._handleAnyTextareaChanges=function(){var e=this,t=this._textarea.value;setTimeout(function(){if(!e._isComposing){var r=e._textarea.value.replace(t,"");r.length>0&&e._terminal.handler(r)}},0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this._isComposing){if(this._terminal.buffer.isCursorInViewport){var r=Math.ceil(this._terminal.charMeasure.height*this._terminal.options.lineHeight),n=this._terminal.buffer.y*r,i=this._terminal.buffer.x*this._terminal.charMeasure.width;this._compositionView.style.left=i+"px",this._compositionView.style.top=n+"px",this._compositionView.style.height=r+"px",this._compositionView.style.lineHeight=r+"px";var o=this._compositionView.getBoundingClientRect();this._textarea.style.left=i+"px",this._textarea.style.top=n+"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=n},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var r=e.call(this)||this;return r._maxLength=t,r._array=new Array(r._maxLength),r._startIndex=0,r._length=0,r}return i(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),r=0;r<Math.min(e,this.length);r++)t[r]=this._array[this._getCyclicIndex(r)];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 r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t){for(var i=e;i<this._length-t;i++)this._array[this._getCyclicIndex(i)]=this._array[this._getCyclicIndex(i+t)];this._length-=t}if(r&&r.length){for(i=this._length-1;i>=e;i--)this._array[this._getCyclicIndex(i+r.length)]=this._array[this._getCyclicIndex(i)];for(i=0;i<r.length;i++)this._array[this._getCyclicIndex(e+i)]=r[i];if(this._length+r.length>this.maxLength){var o=this._length+r.length-this.maxLength;this._startIndex+=o,this._length=this.maxLength,this.emit("trim",o)}else this._length+=r.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,r){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+r<0)throw new Error("Cannot shift elements in list beyond index 0");if(r>0){for(var n=t-1;n>=0;n--)this.set(e+n+r,this.get(e+n));var i=e+t+r-this._length;if(i>0)for(this._length+=i;this._length>this.maxLength;)this._length--,this._startIndex++,this.emit("trim",1)}else for(n=0;n<t;n++)this.set(e+n+r,this.get(e+n))}},t.prototype._getCyclicIndex=function(e){return(this._startIndex+e)%this.maxLength},t}(r(16).EventEmitter);t.CircularList=o},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(11),s=function(e){function t(t){var r=e.call(this)||this;return r._terminal=t,r._normal=new o.Buffer(r._terminal,!0),r._normal.fillViewportRows(),r._alt=new o.Buffer(r._terminal,!1),r._activeBuffer=r._normal,r.setupTabStops(),r}return i(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}(r(16).EventEmitter);t.BufferSet=s},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(141),s=r(11),a=r(139),l=r(16),c=r(138),h=r(137),u=r(48),f=r(136),_=r(132),d=r(120),p=r(119),y=r(116),m=r(45),v=r(49),g=r(59),b=r(82),C=r(115),w=r(114),E=r(46),S=r(83),A=r(113),x=r(84),L=r(87),k=r(112),T=r(110),O=r(62),M="undefined"!=typeof window?window.document:null,R=["cols","rows"],D={cols:80,rows:24,convertEol:!1,termName:"xterm",cursorBlink:!1,cursorStyle:"block",bellSound:w.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,enableBold:!0,experimentalCharAtlas:"static",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,macOptionClickForcesSelection:!1,cancelEvents:!1,disableStdin:!1,useFlowControl:!1,allowTransparency:!1,tabStopWidth:8,theme:null,rightClickSelectsWord:m.isMac,rendererType:"canvas"},H=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.browser=m,r.options=C.clone(t),r._setup(),r}return i(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._customKeyEventHandler=null,L.removeTerminalFromCache(this),this.handler=function(){},this.write=function(){},this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},t.prototype.destroy=function(){this.dispose()},t.prototype._setup=function(){var e=this;Object.keys(D).forEach(function(t){null!==e.options[t]&&void 0!==e.options[t]||(e.options[t]=D[t])}),this._parent=M?M.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._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.curAttr=s.DEFAULT_ATTR,this.params=[],this.currentParam=0,this.writeBuffer=[],this._writeInProgress=!1,this._xoffSentToCatchUp=!1,this._userScrolling=!1,this._inputHandler=new f.InputHandler(this),this.register(this._inputHandler),this.renderer=this.renderer||null,this.selectionManager=this.selectionManager||null,this.linkifier=this.linkifier||new d.Linkifier(this),this._mouseZoneManager=this._mouseZoneManager||null,this.soundManager=this.soundManager||new w.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}),t.prototype.eraseAttr=function(){return-512&s.DEFAULT_ATTR|511&this.curAttr},t.prototype.focus=function(){this.textarea&&this.textarea.focus()},Object.defineProperty(t.prototype,"isFocused",{get:function(){return M.activeElement===this.textarea},enumerable:!0,configurable:!0}),t.prototype.getOption=function(e){if(!(e in D))throw new Error('No option with key "'+e+'"');return this.options[e]},t.prototype.setOption=function(e,t){if(!(e in D))throw new Error('No option with key "'+e+'"');if(-1!==R.indexOf(e)&&console.error('Option "'+e+'" can only be set in the constructor'),this.options[e]!==t){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"rendererType":t||(t="canvas");break;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 r=this.rows+t;if(this.buffer.lines.length>r){var n=this.buffer.lines.length-r,i=this.buffer.ydisp-n<0;this.buffer.lines.trimStart(n),this.buffer.ybase=Math.max(this.buffer.ybase-n,0),this.buffer.ydisp=Math.max(this.buffer.ydisp-n,0),i&&this.refresh(0,this.rows-1)}}}switch(this.options[e]=t,e){case"fontFamily":case"fontSize":this.renderer&&(this.renderer.clear(),this.charMeasure.measure(this.options));break;case"drawBoldTextInBrightColors":case"experimentalCharAtlas":case"enableBold":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":this.renderer&&(this.renderer.clear(),this.renderer.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));case"rendererType":this.renderer&&(this.unregister(this.renderer),this.renderer.dispose(),this.renderer=null),this._setupRenderer(),this.renderer.onCharSizeChanged(),this._theme&&this.renderer.setTheme(this._theme);break;case"scrollback":this.buffers.resize(this.cols,this.rows),this.viewport&&this.viewport.syncScrollArea();break;case"screenReaderMode":t?this._accessibilityManager||(this._accessibilityManager=new A.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(e){this.sendFocus&&this.handler(u.C0.ESC+"[I"),this.updateCursorStyle(e),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.handler(u.C0.ESC+"[O"),this.element.classList.remove("focus"),this.emit("blur")},t.prototype._initGlobal=function(){var e=this;this._bindKeys(),this.register(v.addDisposableDomListener(this.element,"copy",function(t){e.hasSelection()&&h.copyHandler(t,e,e.selectionManager)}));var t=function(t){return h.pasteHandler(t,e)};this.register(v.addDisposableDomListener(this.textarea,"paste",t)),this.register(v.addDisposableDomListener(this.element,"paste",t)),m.isFirefox?this.register(v.addDisposableDomListener(this.element,"mousedown",function(t){2===t.button&&h.rightClickHandler(t,e.textarea,e.selectionManager,e.options.rightClickSelectsWord)})):this.register(v.addDisposableDomListener(this.element,"contextmenu",function(t){h.rightClickHandler(t,e.textarea,e.selectionManager,e.options.rightClickSelectsWord)})),m.isLinux&&this.register(v.addDisposableDomListener(this.element,"auxclick",function(t){1===t.button&&h.moveTextAreaUnderMouseCursor(t,e.textarea)}))},t.prototype._bindKeys=function(){var e=this,t=this;this.register(v.addDisposableDomListener(this.element,"keydown",function(e){M.activeElement===this&&t._keyDown(e)},!0)),this.register(v.addDisposableDomListener(this.element,"keypress",function(e){M.activeElement===this&&t._keyPress(e)},!0)),this.register(v.addDisposableDomListener(this.element,"keyup",function(r){(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode})(r)||e.focus(),t._keyUp(r)},!0)),this.register(v.addDisposableDomListener(this.textarea,"keydown",function(t){return e._keyDown(t)},!0)),this.register(v.addDisposableDomListener(this.textarea,"keypress",function(t){return e._keyPress(t)},!0)),this.register(v.addDisposableDomListener(this.textarea,"compositionstart",function(){return e._compositionHelper.compositionstart()})),this.register(v.addDisposableDomListener(this.textarea,"compositionupdate",function(t){return e._compositionHelper.compositionupdate(t)})),this.register(v.addDisposableDomListener(this.textarea,"compositionend",function(){return e._compositionHelper.compositionend()})),this.register(this.addDisposableListener("refresh",function(){return e._compositionHelper.updateCompositionElements()})),this.register(this.addDisposableListener("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 x.ScreenDprMonitor,this._screenDprMonitor.setListener(function(){return t.emit("dprchange",window.devicePixelRatio)}),this.register(this._screenDprMonitor),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 r=M.createDocumentFragment();this._viewportElement=M.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),r.appendChild(this._viewportElement),this._viewportScrollArea=M.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=M.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=M.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),r.appendChild(this.screenElement),this._mouseZoneManager=new S.MouseZoneManager(this),this.register(this._mouseZoneManager),this.register(this.addDisposableListener("scroll",function(){return t._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this._mouseZoneManager),this.textarea=M.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",g.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.register(v.addDisposableDomListener(this.textarea,"focus",function(e){return t._onTextAreaFocus(e)})),this.register(v.addDisposableDomListener(this.textarea,"blur",function(){return t._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea),this._compositionView=M.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 y.CharMeasure(M,this._helperContainer),this.element.appendChild(r),this._setupRenderer(),this._theme=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.register(this.viewport),this.register(this.addDisposableListener("cursormove",function(){return t.renderer.onCursorMove()})),this.register(this.addDisposableListener("resize",function(){return t.renderer.onResize(t.cols,t.rows)})),this.register(this.addDisposableListener("blur",function(){return t.renderer.onBlur()})),this.register(this.addDisposableListener("focus",function(){return t.renderer.onFocus()})),this.register(this.addDisposableListener("dprchange",function(){return t.renderer.onWindowResize(window.devicePixelRatio)})),this.register(v.addDisposableDomListener(window,"resize",function(){return t.renderer.onWindowResize(window.devicePixelRatio)})),this.register(this.charMeasure.addDisposableListener("charsizechanged",function(){return t.renderer.onCharSizeChanged()})),this.register(this.renderer.addDisposableListener("resize",function(e){return t.viewport.syncScrollArea()})),this.selectionManager=new p.SelectionManager(this,this.charMeasure),this.register(v.addDisposableDomListener(this.element,"mousedown",function(e){return t.selectionManager.onMouseDown(e)})),this.register(this.selectionManager.addDisposableListener("refresh",function(e){return t.renderer.onSelectionChanged(e.start,e.end,e.columnSelectMode)})),this.register(this.selectionManager.addDisposableListener("newselection",function(e){t.textarea.value=e,t.textarea.focus(),t.textarea.select()})),this.register(this.addDisposableListener("scroll",function(){t.viewport.syncScrollArea(),t.selectionManager.refresh()})),this.register(v.addDisposableDomListener(this._viewportElement,"scroll",function(){return t.selectionManager.refresh()})),this.mouseHelper=new b.MouseHelper(this.renderer),this.options.screenReaderMode&&(this._accessibilityManager=new A.AccessibilityManager(this)),this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},t.prototype._setupRenderer=function(){switch(this.options.rendererType){case"canvas":this.renderer=new _.Renderer(this,this.options.theme);break;case"dom":this.renderer=new k.DomRenderer(this,this.options.theme);break;default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}this.register(this.renderer)},t.prototype._setTheme=function(e){this._theme=e;var t=this.renderer.setTheme(e);this.viewport&&this.viewport.onThemeChanged(t)},t.prototype.bindMouse=function(){var e=this,t=this.element,r=this,n=32;function i(e){var t,i;if(t=function(e){var t,n,i,o,s;switch(e.overrideType||e.type){case"mousedown":t=null!==e.button&&void 0!==e.button?+e.button:null!==e.which&&void 0!==e.which?e.which-1:null,m.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}n=e.shiftKey?4:0,i=e.metaKey?8:0,o=e.ctrlKey?16:0,s=n|i|o,r.vt200Mouse?s&=o:r.normalMouse||(s=0);return t=32+(s<<2)+t}(e),i=r.mouseHelper.getRawByteCoords(e,r.screenElement,r.charMeasure,r.options.lineHeight,r.cols,r.rows))switch(s(t,i),e.overrideType||e.type){case"mousedown":n=t;break;case"mouseup":n=32}}function o(e,t){if(r.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 s(e,t){if(r._vt300Mouse){e&=3,t.x-=32,t.y-=32;var n=u.C0.ESC+"[24";if(0===e)n+="1";else if(1===e)n+="3";else if(2===e)n+="5";else{if(3===e)return;n+="0"}return n+="~["+t.x+","+t.y+"]\r",void r.handler(n)}if(r._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 r.handler(u.C0.ESC+"["+e+";"+(3===e?4:0)+";"+t.y+";"+t.x+";"+t.page||"0&w");if(r.urxvtMouse)return t.x-=32,t.y-=32,t.x++,t.y++,void r.handler(u.C0.ESC+"["+e+";"+t.x+";"+t.y+"M");if(r.sgrMouse)return t.x-=32,t.y-=32,void r.handler(u.C0.ESC+"[<"+((3==(3&e)?-4&e:e)-32)+";"+t.x+";"+t.y+(3==(3&e)?"m":"M"));var i=[];o(i,e),o(i,t.x),o(i,t.y),r.handler(u.C0.ESC+"[M"+String.fromCharCode.apply(String,i))}this.register(v.addDisposableDomListener(t,"mousedown",function(t){if(t.preventDefault(),e.focus(),e.mouseEvents&&!e.selectionManager.shouldForceSelection(t)){if(i(t),e.vt200Mouse)return t.overrideType="mouseup",i(t),e.cancel(t);var o;e.normalMouse&&(o=function(t){var i,o,a;e.normalMouse&&(i=t,o=n,(a=r.mouseHelper.getRawByteCoords(i,r.screenElement,r.charMeasure,r.options.lineHeight,r.cols,r.rows))&&s(o+=32,a))},e._document.addEventListener("mousemove",o));var a=function(t){return e.normalMouse&&!e.x10Mouse&&i(t),o&&(e._document.removeEventListener("mousemove",o),o=null),e._document.removeEventListener("mouseup",a),e.cancel(t)};return e._document.addEventListener("mouseup",a),e.cancel(t)}})),this.register(v.addDisposableDomListener(t,"wheel",function(t){if(e.mouseEvents)e.x10Mouse||e._vt300Mouse||e._decLocator||(i(t),t.preventDefault());else if(!e.buffer.hasScrollback){var r=e.viewport.getLinesScrolled(t);if(0===r)return;for(var n=u.C0.ESC+(e.applicationCursor?"O":"[")+(t.deltaY<0?"A":"B"),o="",s=0;s<Math.abs(r);s++)o+=n;e.handler(o)}})),this.register(v.addDisposableDomListener(t,"wheel",function(t){if(!e.mouseEvents)return e.viewport.onWheel(t),e.cancel(t)})),this.register(v.addDisposableDomListener(t,"touchstart",function(t){if(!e.mouseEvents)return e.viewport.onTouchStart(t),e.cancel(t)})),this.register(v.addDisposableDomListener(t,"touchmove",function(t){if(!e.mouseEvents)return e.viewport.onTouchMove(t),e.cancel(t)}))},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.updateCursorStyle=function(e){this.selectionManager&&this.selectionManager.shouldColumnSelect(e)?this.element.classList.add("xterm-cursor-crosshair"):this.element.classList.remove("xterm-cursor-crosshair")},t.prototype.showCursor=function(){this.cursorState||(this.cursorState=1,this.refresh(this.buffer.y,this.buffer.y))},t.prototype.scroll=function(e){var t=O.BufferLine.blankLine(this.cols,s.DEFAULT_ATTR,e),r=this.buffer.ybase+this.buffer.scrollTop,n=this.buffer.ybase+this.buffer.scrollBottom;if(0===this.buffer.scrollTop){var i=this.buffer.lines.length===this.buffer.lines.maxLength;n===this.buffer.lines.length-1?this.buffer.lines.push(t):this.buffer.lines.splice(n+1,0,t),i?this._userScrolling&&(this.buffer.ydisp=Math.max(this.buffer.ydisp-1,0)):(this.buffer.ybase++,this._userScrolling||this.buffer.ydisp++)}else{var o=n-r+1;this.buffer.lines.shiftElements(r+1,o-1,-1),this.buffer.lines.set(n,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 r=this.buffer.ydisp;this.buffer.ydisp=Math.max(Math.min(this.buffer.ydisp+e,this.buffer.ybase),0),r!==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;this._isDisposed||e&&(this.writeBuffer.push(e),this.options.useFlowControl&&!this._xoffSentToCatchUp&&this.writeBuffer.length>=5&&(this.handler(u.C0.DC3),this._xoffSentToCatchUp=!0),!this._writeInProgress&&this.writeBuffer.length>0&&(this._writeInProgress=!0,setTimeout(function(){t._innerWrite()})))},t.prototype._innerWrite=function(){var e=this;this._isDisposed&&(this.writeBuffer=[]);for(var t=this.writeBuffer.splice(0,300);t.length>0;){var r=t.shift();this._xoffSentToCatchUp&&0===t.length&&0===this.writeBuffer.length&&(this.handler(u.C0.DC1),this._xoffSentToCatchUp=!1),this._refreshStart=this.buffer.y,this._refreshEnd=this.buffer.y,this._inputHandler.parse(r),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,r){var n=this.linkifier.registerLinkMatcher(e,t,r);return this.refresh(0,this.rows-1),n},t.prototype.deregisterLinkMatcher=function(e){this.linkifier.deregisterLinkMatcher(e)&&this.refresh(0,this.rows-1)},t.prototype.registerCharacterJoiner=function(e){var t=this.renderer.registerCharacterJoiner(e);return this.refresh(0,this.rows-1),t},t.prototype.deregisterCharacterJoiner=function(e){this.renderer.deregisterCharacterJoiner(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=T.evaluateKeyboardEvent(e,this.applicationCursor,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===t.type||2===t.type){var r=this.rows-1;return this.scrollLines(2===t.type?-r:r),this.cancel(e,!0)}return 1===t.type&&this.selectAll(),!!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 r=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isMSWindows&&t.altKey&&t.ctrlKey&&!t.metaKey;return"keypress"===t.type?r:r&&(!t.keyCode||t.keyCode>47)},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._keyUp=function(e){this.updateCursorStyle(e)},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||void 0===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.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||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.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(O.BufferLine.blankLine(this.cols,s.DEFAULT_ATTR));this.refresh(0,this.rows-1),this.emit("scroll",this.buffer.ydisp)}},t.prototype.ch=function(e){return e?[this.eraseAttr(),s.NULL_CELL_CHAR,s.NULL_CELL_WIDTH,s.NULL_CELL_CODE]:[s.DEFAULT_ATTR,s.NULL_CELL_CHAR,s.NULL_CELL_WIDTH,s.NULL_CELL_CODE]},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,O.BufferLine.blankLine(this.cols,this.eraseAttr())),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,r=this.cursorState;this._setup(),this._customKeyEventHandler=e,this._inputHandler=t,this.cursorState=r,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,r){var n=e<<16|t<<8|r;if(null!==I[n]&&void 0!==I[n])return I[n];for(var i,o,s=1/0,a=-1,l=0;l<E.DEFAULT_ANSI_COLORS.length;l++){if(0===(o=P(e,t,r,(i=E.DEFAULT_ANSI_COLORS[l].rgba)>>>24,i>>>16&255,i>>>8&255))){a=l;break}o<s&&(s=o,a=l)}return I[n]=a},t.prototype._visualBell=function(){return!1},t.prototype._soundBell=function(){return"sound"===this.options.bellStyle},t}(l.EventEmitter);t.Terminal=H;var I={};function P(e,t,r,n,i,o){return Math.pow(30*(e-n),2)+Math.pow(59*(t-i),2)+Math.pow(11*(r-o),2)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(142),i=r(59),o=function(){function e(e){this._core=new n.Terminal(e)}return Object.defineProperty(e.prototype,"element",{get:function(){return this._core.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._core.rows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._core.cols},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markers",{get:function(){return this._core.markers},enumerable:!0,configurable:!0}),e.prototype.blur=function(){this._core.blur()},e.prototype.focus=function(){this._core.focus()},e.prototype.on=function(e,t){this._core.on(e,t)},e.prototype.off=function(e,t){this._core.off(e,t)},e.prototype.emit=function(e,t){this._core.emit(e,t)},e.prototype.addDisposableListener=function(e,t){return this._core.addDisposableListener(e,t)},e.prototype.resize=function(e,t){this._core.resize(e,t)},e.prototype.writeln=function(e){this._core.writeln(e)},e.prototype.open=function(e){this._core.open(e)},e.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},e.prototype.registerLinkMatcher=function(e,t,r){return this._core.registerLinkMatcher(e,t,r)},e.prototype.deregisterLinkMatcher=function(e){this._core.deregisterLinkMatcher(e)},e.prototype.registerCharacterJoiner=function(e){return this._core.registerCharacterJoiner(e)},e.prototype.deregisterCharacterJoiner=function(e){this._core.deregisterCharacterJoiner(e)},e.prototype.addMarker=function(e){return this._core.addMarker(e)},e.prototype.hasSelection=function(){return this._core.hasSelection()},e.prototype.getSelection=function(){return this._core.getSelection()},e.prototype.clearSelection=function(){this._core.clearSelection()},e.prototype.selectAll=function(){this._core.selectAll()},e.prototype.selectLines=function(e,t){this._core.selectLines(e,t)},e.prototype.dispose=function(){this._core.dispose()},e.prototype.destroy=function(){this._core.destroy()},e.prototype.scrollLines=function(e){this._core.scrollLines(e)},e.prototype.scrollPages=function(e){this._core.scrollPages(e)},e.prototype.scrollToTop=function(){this._core.scrollToTop()},e.prototype.scrollToBottom=function(){this._core.scrollToBottom()},e.prototype.scrollToLine=function(e){this._core.scrollToLine(e)},e.prototype.clear=function(){this._core.clear()},e.prototype.write=function(e){this._core.write(e)},e.prototype.getOption=function(e){return this._core.getOption(e)},e.prototype.setOption=function(e,t){this._core.setOption(e,t)},e.prototype.refresh=function(e,t){this._core.refresh(e,t)},e.prototype.reset=function(){this._core.reset()},e.applyAddon=function(t){t.apply(e)},Object.defineProperty(e,"strings",{get:function(){return i},enumerable:!0,configurable:!0}),e}();t.Terminal=o},function(e,t,r){"use strict";var n="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},i=e.exports;Object.assign(i,r(36));var o=/\*\x18[AC]|\*\*\x18B/;function s(e,t){if(t<0)throw new i.Error("validation","“"+e+"” ("+t+") must be nonnegative.");if(t!==Math.floor(t))throw new i.Error("validation","“"+e+"” ("+t+") must be an integer.")}i.Validation={offer_parameters:function(e){if(!e.name)throw new i.Error("validation","Need “name”!");if("string"!=typeof e.name)throw new i.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 i.Error("validation","“serial” is meaningless.");if(e.serial=null,["size","mode","files_remaining","bytes_remaining"].forEach(function(t){var r;switch(n(e[t])){case"object":r=null===e[t];break;case"undefined":e[t]=null,r=!0;break;case"number":s(t,e[t]),r=!0}if(!r)throw new i.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 i.Error("validation","“files_remaining”, if given, must be positive.");var t;switch(n(e.mtime)){case"object":if(t=!0,e.mtime instanceof Date){var r=e.mtime;if(e.mtime=Math.floor(r.getTime()/1e3),e.mtime<0)throw new i.Error("validation","“mtime” ("+r+") 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 i.Error("validation","“mtime” ("+e.mtime+") must be null, undefined, a Date, or a number.");return e}}},function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(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,r(88),r(63),r(37),r(36));var l;a.Subpacket=function(){function e(t){s(this,e),this._payload=t}return n(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 r=l[t];if(!r)throw"No subpacket type “"+t+"” is defined! Try one of: "+Object.keys(l).join(", ");return new r(e)}},{key:"parse16",value:function(t){return e._parse(t,2)}},{key:"parse32",value:function(t){return e._parse(t,4)}}]),n(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 r,n,i={104:u,105:_,106:d,107:f},o=0;o<e.length;){if(-1===(o=e.indexOf(a.ZMLIB.ZDLE,o)))return;if(n=i[e[o+1]]){r=o+1;break}o++}if(n){var s=e[r];if(e[r-1]!==a.ZMLIB.ZDLE)throw"Byte before frame end should be ZDLE, not "+e[r-1];var l=e.splice(0,r-1),c=a.ZDLE.splice(e,2,t);if(c){var h=a.ZDLE.decode(l);return a.CRC[2===t?"verify16":"verify32"](h.concat([s]),c),new n(h,c)}e.unshift.apply(e,l)}}}]),e}();var c=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Subpacket),n(t,[{key:"frame_end",value:function(){return!0}}]),t}(),h=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Subpacket),n(t,[{key:"frame_end",value:function(){return!1}}]),t}(),u=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,c),n(t,[{key:"ack_expected",value:function(){return!1}}]),t}();u.prototype._frameend_num=104;var f=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,c),n(t,[{key:"ack_expected",value:function(){return!0}}]),t}();f.prototype._frameend_num=107;var _=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,h),n(t,[{key:"ack_expected",value:function(){return!1}}]),t}();_.prototype._frameend_num=105;var d=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,h),n(t,[{key:"ack_expected",value:function(){return!0}}]),t}();d.prototype._frameend_num=106,l={end_no_ack:u,end_ack:f,no_end_no_ack:_,no_end_ack:d}},function(e,t,r){var n;n=function(e){e.version="1.1.1";var t=function(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-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[r]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}();e.table=t,e.bstr=function(e,r){for(var n=-1^r,i=e.length-1,o=0;o<i;)n=(n=n>>>8^t[255&(n^e.charCodeAt(o++))])>>>8^t[255&(n^e.charCodeAt(o++))];return o===i&&(n=n>>>8^t[255&(n^e.charCodeAt(o))]),-1^n},e.buf=function(e,r){if(e.length>1e4)return function(e,r){for(var n=-1^r,i=e.length-7,o=0;o<i;)n=(n=(n=(n=(n=(n=(n=(n=n>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])];for(;o<i+7;)n=n>>>8^t[255&(n^e[o++])];return-1^n}(e,r);for(var n=-1^r,i=e.length-3,o=0;o<i;)n=(n=(n=(n=n>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])];for(;o<i+3;)n=n>>>8^t[255&(n^e[o++])];return-1^n},e.str=function(e,r){for(var n,i,o=-1^r,s=0,a=e.length;s<a;)(n=e.charCodeAt(s++))<128?o=o>>>8^t[255&(o^n)]:n<2048?o=(o=o>>>8^t[255&(o^(192|n>>6&31))])>>>8^t[255&(o^(128|63&n))]:n>=55296&&n<57344?(n=64+(1023&n),i=1023&e.charCodeAt(s++),o=(o=(o=(o=o>>>8^t[255&(o^(240|n>>8&7))])>>>8^t[255&(o^(128|n>>2&63))])>>>8^t[255&(o^(128|i>>6&15|(3&n)<<4))])>>>8^t[255&(o^(128|63&i))]):o=(o=(o=o>>>8^t[255&(o^(224|n>>12&15))])>>>8^t[255&(o^(128|n>>6&63))])>>>8^t[255&(o^(128|63&n))];return-1^o}},"undefined"==typeof DO_NOT_EXPORT_CRC?n(t):n({})},function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(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,r(64),r(63),r(37),r(88),r(36));var l="*".charCodeAt(0),c="A".charCodeAt(0),h="B".charCodeAt(0),u="C".charCodeAt(0),f=[13,10],_=f.slice(0).concat([a.ZMLIB.XON]),d=[l,l,a.ZMLIB.ZDLE,h],p=[l,a.ZMLIB.ZDLE,c],y=[l,a.ZMLIB.ZDLE,u];a.Header=function(){function e(){s(this,e),this._bytes4||(this._bytes4=[0,0,0,0])}return n(e,[{key:"to_hex",value:function(){var e=this._crc_bytes();return d.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,p,a.CRC.crc16)}},{key:"to_binary32",value:function(e){return this._to_binary(e,y,a.CRC.crc32)}}],[{key:"trim_leading_garbage",value:function(e){var t,r,n=[];e:for(;e.length&&!r;){var i=e.indexOf(l);if(-1===i){t=!0;break e}if(n.push.apply(n,e.splice(0,i)),e.length<2)break e;if(e[1]===l)if(e.length<d.length){if(e.join()===d.slice(0,e.length).join())break e}else e[2]===d[2]&&e[3]===d[3]&&(r=U);else if(e[1]===a.ZMLIB.ZDLE){if(e.length<p.length)break e;e[2]===p[2]?r=N:e[2]===y[2]&&(r=W)}r||n.push(e.shift())}return t&&n.push.apply(n,e.splice(0)),n}},{key:"parse",value:function(e){var t;if(e[1]===l)return(t=U(e))&&[t,16];if(e[2]===c)return(t=N(e))&&[t,16];if(e[2]===u)return(t=W(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),r=I[e];if(!r)throw"No frame class “"+e+"” is defined!";return t.shift(),new(r.bind.apply(r,[null].concat(t)))}}]),n(e,[{key:"_to_binary",value:function(e,t,r){var n=this._crc_bytes();return t.concat(e.encode(n.concat(r(n))))}},{key:"_crc_bytes",value:function(){return[this.TYPENUM].concat(this._bytes4)}}]),e}(),a.Header.prototype._hex_header_ending=_;var m=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Header),t}(),v={CANFDX:1,CANOVIO:2,CANBRK:4,CANCRY:8,CANLZW:16,CANFC32:32,ESCCTL:64,ESC8:128};var g=function(e){function t(e,r){s(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),o=0;return r||(r=0),e.forEach(function(e){o|=function(e){if(!v[e])throw new a.Error("Invalid ZRINIT flag: "+e);return v[e]}(e)}),n._bytes4=[255&r,r>>8,0,o],n}return o(t,a.Header),n(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]&v.CANFDX)}},{key:"can_overlap_io",value:function(){return!!(this._bytes4[3]&v.CANOVIO)}},{key:"can_break",value:function(){return!!(this._bytes4[3]&v.CANBRK)}},{key:"can_fcs_32",value:function(){return!!(this._bytes4[3]&v.CANFC32)}},{key:"escape_ctrl_chars",value:function(){return!!(this._bytes4[3]&v.ESCCTL)}},{key:"escape_8th_bit",value:function(){return!!(this._bytes4[3]&v.ESC8)}}]),t}(),b={ESCCTL:64,ESC8:128};var C=function(e){function t(e,r){s(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),o=0;if(e.forEach(function(e){o|=function(e){if(!b[e])throw"Invalid ZSINIT flag: "+e;return b[e]}(e)}),n._bytes4=[0,0,0,o],r){if(r.length>31)throw"Attn sequence must be <= 31 bytes";if(r.some(function(e){return e>255}))throw"Attn sequence ("+r+") must be <256";n._data=r.concat([0])}return n}return o(t,a.Header),n(t,[{key:"escape_ctrl_chars",value:function(){return!!(this._bytes4[3]&b.ESCCTL)}},{key:"escape_8th_bit",value:function(){return!!(this._bytes4[3]&b.ESC8)}}]),t}(),w=function(e){function t(e){s(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e&&(r._bytes4=e.slice()),r}return o(t,a.Header),t}();w.prototype._hex_header_ending=f;var E={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"]},S=["extended","transport","management","conversion"],A=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Header),n(t,[{key:"get_options",value:function(){var e={sparse:!!(64&this._bytes4[0])},t=this._bytes4.slice(0);return S.forEach(function(r,n){if(E[r]instanceof Array)"management"===r&&(e.skip_if_absent=!!(128&t[n]),t[n]&=31),e[r]=E[r][t[n]];else for(var i in E[r])e[i]=!!(t[n]&E[r][i]),e[i]&&(t[n]^=E[r][i]);!e[r]&&t[n]&&(e[r]="unknown:"+t[n])}),e}}]),t}(),x=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Header),t}(),L=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Header),t}(),k=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Header),t}(),T=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,a.Header),t}();k.prototype._hex_header_ending=f;for(var O=function(e){function t(e){s(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r._bytes4=a.ENCODELIB.pack_u32_le(e),r}return o(t,a.Header),n(t,[{key:"get_offset",value:function(){return a.ENCODELIB.unpack_u32_le(this._bytes4)}}]),t}(),M=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,O),t}(),R=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,O),t}(),D=function(e){function t(){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,O),t}(),H=[[m,"ZRQINIT"],[g,"ZRINIT"],[C,"ZSINIT"],[w,"ZACK"],[A,"ZFILE"],[x,"ZSKIP"],void 0,[L,"ZABORT"],[k,"ZFIN"],[M,"ZRPOS"],[R,"ZDATA"],[D,"ZEOF"],[T,"ZFERR"],void 0,void 0,void 0,void 0,void 0,void 0,void 0],I={},P=0;P<H.length;P++)H[P]&&(I[H[P][1]]=H[P][0],Object.assign(H[P][0].prototype,{TYPENUM:P,NAME:H[P][1]}));var F=[m,g,C,w,A,x,"ZNAK",L,k,M,R,D,T,"ZCRC","ZCHALLENGE","ZCOMPL","ZCAN","ZFREECNT","ZCOMMAND","ZSTDERR"];function B(e){var t=F[e];if("string"==typeof t)throw"Received unsupported header: "+t;return function(e){if(e.prototype instanceof O)return new e(0);return new e([])}(t)}function N(e){var t=a.ZDLE.splice(e,p.length,7);return t&&j(t)}function j(e){a.CRC.verify16(e.slice(0,5),e.slice(5));var t=B(e[0]);return t._bytes4=e.slice(1,5),t}function W(e){var t=a.ZDLE.splice(e,y.length,9);if(t){a.CRC.verify32(t.slice(0,5),t.slice(5));var r=B(t[0]);return r._bytes4=t.slice(1,5),r}}function U(e){var t,r,n=e.indexOf(138);if(-1===n&&(n=e.indexOf(10)),-1!==n){if(r=e.splice(0,n),e.shift(),19===r.length){var i=r.pop();13!==i&&141!==i&&(t="Invalid hex header: (CR/)LF doesn’t have CR!")}else 18!==r.length&&(t="Invalid hex header: invalid number of bytes before LF!");if(t)throw t+=" ("+r.length+" bytes: "+r.join()+")";return r.splice(0,4),j(a.ENCODELIB.parse_hex_octets(r))}e.length>11&&(t="Invalid hex header - no LF detected within 12 bytes!")}a.Header.parse_hex=U},function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){i(this,e)}return n(e,[{key:"encode",value:function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return new Uint8Array(t)}}]),e}(),s=function(){function e(){i(this,e)}return n(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,r){"use strict";var n=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(n):void 0},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),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,r(64),r(148),r(63),r(37),r(147),r(145),r(144),r(36));var c=["CANFDX","CANOVIO","CANFC32"],h=[79,79],u=l.ZMLIB.ABORT_SEQUENCE,f=function(){function e(){a(this,e),this._on_evt={},this._evt_once_index={}}return i(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 r=this._get_evt_queue(e);if(t){var n=r.indexOf(t);if(-1===n)throw"“"+t+"” is not in the “"+e+"” queue.";r.splice(n,1)}else r.pop();return this}},{key:"_Happen",value:function(e){var t=this._get_evt_queue(e),r=Array.apply(null,arguments);r.shift();var n=this;return t.forEach(function(e){e.apply(n,r)}),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),i(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)}}}]),i(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,u);if(-1!==e)throw this._input_buffer.splice(0,e+u.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),r=this._create_header_bytes(t);this._sender(r[0]),this._last_sent_header=r[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(u.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),i(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,h))return this._bytes_after_OO=(e=this._bytes_being_consumed.slice(0),0===l.ZMLIB.find_subarray(e,h)?e.splice(0,h.length):e[0]===h[h.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 r=t.get_payload(),n=r.indexOf(0),i=this._octets_to_string(r.slice(0,n)),o=this._octets_to_string(r.slice(1+n)).split(" "),s=o[1]&&parseInt(o[1],8)||void 0;s&&(s=new Date(1e3*s)),this._file_info={name:i,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 p(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 r={ZFILE:function(e){this._next_subpacket_handler=function(r){this._next_subpacket_handler=null,this._consume_ZFILE_data(e,r),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=r}},ZFIN:function(){this._consume_ZFIN(),t()}};e._next_header_handler=r})}},{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,r=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 r=this._make_promise_for_between_files();e(r)}}}}});return this._send_ZRPOS(),r}},{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 _={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}},d=function(){function e(t,r,n,i){a(this,e),this._file_info=t,this._file_offset=r||0,this._send=n,this._end=i}return i(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(d.prototype,_);var p=function(e){function t(e,r,n,i){a(this,t);var s=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return s._zfile_opts=e,s._file_info=r,s._accept_func=n,s._skip_func=i,s._Add_event("input"),s._Add_event("complete"),s.on("input",s._input_handler),s}return s(t,f),i(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(p.prototype,_);var y={ZFILE:!0,ZDATA:!0};l.Session.Send=function(e){function t(e){a(this,t);var r=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;r._last_header_name="ZRINIT",r._subpacket_encode_func="encode16",r._zencoder=new l.ZDLE,r._consume_ZRINIT(e),r._file_offset=0;return r._start_keepalive_on_set_sender=!0,r}return s(t,l.Session),i(t,[{key:"set_sender",value:function(e){return n(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 y[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",r=[(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&&(r.push(e.files_remaining),e.bytes_remaining&&r.push(e.bytes_remaining)),t+=r.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 r=this,n=function(){var n=new Promise(function(t){r._next_header_handler={ZSKIP:function(){r._start_keepalive(),t()},ZRPOS:function(n){r._sending_file=!0,t(new d(e,n.get_offset(),r._send_interim_file_piece.bind(r),r._end_file.bind(r)))}}});return r._send_header_and_data(["ZFILE"],t,"end_ack"),delete r._sent_ZDATA,n};return this._ensure_receiver_escapes_ctrl_chars().then(n)}},{key:"_send_header_and_data",value:function(e,t,r){var n=this._create_header_bytes(e),i=this._build_subpacket_bytes(t,r);n[0].push.apply(n[0],i),this._sender(n[0]),this._last_sent_header=n[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,r=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,r}},{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,r=new Promise(function(e,r){t._next_header_handler={ZFIN:function(){t._sender(h),t._sent_OO=!0,t._on_session_end(),e()}}});return this._send_header("ZFIN"),r}},{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 r=0,n=e.length;;){var i=Math.min(r+8192,n)-r,o=i+r>=n,s=e.slice(r,r+i);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+=i,(r+=i)>=n)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(),n(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,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=e.exports;Object.assign(o,r(37),r(149));var s=[42,42,24,66,48],a=["to_terminal","on_detect","on_retract","sender"],l=function(){function e(t,r,n,o){i(this,e),this._confirmer=r,this._denier=n,this._is_valid=o,this._session_type=t}return n(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(i(this,e),!t)throw"Need options!";var r=this;a.forEach(function(e){if(!t[e])throw"Need “"+e+"”!";r["_"+e]=t[e]}),this._cache=[]}return n(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 r=this._parse(e),n=e;if(r){!!this._parsed_session&&(this._parsed_session.type===r.type&&(n=[]),this._on_retract()),this._parsed_session=r;var i=this;this._on_detect(new l(r.type,function(){if(!this.is_valid())throw"Stale ZMODEM session!";return r.on("garbage",i._to_terminal),r.on("session_end",i._after_session_end.bind(i)),r.set_sender(i._sender),delete i._parsed_session,i._zsession=r},this._send_abort.bind(this),function(){return i._parsed_session===r}))}else{var o=this._parsed_session;this._parsed_session=null,o&&(1===n.length&&67===n[0]&&this._send_abort(),this._on_retract())}this._to_terminal(n)}},{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 r=o.ZMLIB.find_subarray(t,s);if(-1===r)break;t.splice(0,r);var n=void 0;try{n=o.Session.parse(t)}catch(e){}if(!n)break;return 1===t.length&&t[0]===o.ZMLIB.XON&&t.shift(),t.length?null:n}return t.splice(21),null}}]),e}()},function(e,t,r){"use strict";Object.assign(e.exports,r(150))},function(e,t,r){"use strict";var n=e.exports;function i(e){if(e.aborted())throw new n.Error("aborted")}window.Zmodem=n,Object.assign(n,r(151)),n.Browser={send_files:function(e,t,r){r||(r={});for(var n=[],o=0,s=t.length-1;s>=0;s--){var a=t[s];o+=a.size,n[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=n[l];return o?(l++,e.send_offer(o).then(function(n){return r.on_offer_response&&r.on_offer_response(o.obj,n),void 0===n?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,n.get_offset()),i(e),n.send(a),r.on_progress&&r.on_progress(o.obj,n,a))},l.onload=function(l){a=new Uint8Array(l.target.result,n,a),i(e),n.end(a).then(function(){r.on_progress&&a.length&&r.on_progress(o.obj,n,a),r.on_file_complete&&r.on_file_complete(o.obj,n),s(t())})},l.readAsArrayBuffer(o.obj)})})):Promise.resolve()}()},save_to_disk:function(e,t){var r=new Blob(e),n=URL.createObjectURL(r),i=document.createElement("a");i.style.display="none",i.href=n,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){(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 r(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 r=e.length,n=0,i=Math.max(32,r+(r>>1)+7),o=new Uint8Array(i>>3<<3);t<r;){var s=e.charCodeAt(t++);if(55296<=s&&56319>=s){if(t<r){var a=e.charCodeAt(t);56320==(64512&a)&&(++t,s=((1023&s)<<10)+(1023&a)+65536)}if(55296<=s&&56319>=s)continue}if(n+4>o.length&&(i+=8,i=(i*=1+t/e.length*2)>>3<<3,(a=new Uint8Array(i)).set(o),o=a),0==(4294967168&s))o[n++]=s;else{if(0==(4294965248&s))o[n++]=s>>6&31|192;else if(0==(4294901760&s))o[n++]=s>>12&15|224,o[n++]=s>>6&63|128;else{if(0!=(4292870144&s))continue;o[n++]=s>>18&7|240,o[n++]=s>>12&63|128,o[n++]=s>>6&63|128}o[n++]=63&s|128}}return o.slice(0,n)},Object.defineProperty(r.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(r.prototype,"fatal",{value:!1}),Object.defineProperty(r.prototype,"ignoreBOM",{value:!1}),r.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 r=(e=new Uint8Array(e)).length,n=[];t<r;){var i=e[t++];if(0===i)break;if(0==(128&i))n.push(i);else if(192==(224&i)){var o=63&e[t++];n.push((31&i)<<6|o)}else if(224==(240&i)){o=63&e[t++];var s=63&e[t++];n.push((31&i)<<12|o<<6|s)}else if(240==(248&i)){65535<(i=(7&i)<<18|(o=63&e[t++])<<12|(s=63&e[t++])<<6|63&e[t++])&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i)}}return String.fromCharCode.apply(null,n)},e.TextEncoder=t,e.TextDecoder=r}("undefined"!=typeof window?window:void 0!==e?e:this)}).call(this,r(153))},function(e,t,r){var n=r(1)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,r){var n=r(2),i=r(26),o=r(1)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,r){var n=r(156),i=r(58);e.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},function(e,t,r){"use strict";var n=r(0),i=r(5),o=r(157),s="".endsWith;n(n.P+n.F*r(155)("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),r=arguments.length>1?arguments[1]:void 0,n=i(t.length),a=void 0===r?n:Math.min(i(r),n),l=String(e);return s?s.call(t,l,a):t.slice(a-l.length,a)===l}})},function(e,t,r){r(158),e.exports=r(10).String.endsWith},function(e,t,r){r(17)("Float64",8,function(e){return function(t,r,n){return e(this,t,r,n)}})},function(e,t,r){r(17)("Float32",4,function(e){return function(t,r,n){return e(this,t,r,n)}})},function(e,t,r){r(17)("Uint32",4,function(e){return function(t,r,n){return e(this,t,r,n)}})},function(e,t,r){r(17)("Int32",4,function(e){return function(t,r,n){return e(this,t,r,n)}})},function(e,t,r){r(17)("Uint16",2,function(e){return function(t,r,n){return e(this,t,r,n)}})},function(e,t,r){r(17)("Int16",2,function(e){return function(t,r,n){return e(this,t,r,n)}})},function(e,t,r){r(17)("Uint8",1,function(e){return function(t,r,n){return e(this,t,r,n)}},!0)},function(e,t,r){r(17)("Uint8",1,function(e){return function(t,r,n){return e(this,t,r,n)}})},function(e,t,r){r(17)("Int8",1,function(e){return function(t,r,n){return e(this,t,r,n)}})},function(e,t,r){var n=r(0);n(n.G+n.W+n.F*!r(50).ABV,{DataView:r(65).DataView})},function(e,t,r){"use strict";var n=r(0),i=r(50),o=r(65),s=r(13),a=r(30),l=r(5),c=r(2),h=r(3).ArrayBuffer,u=r(51),f=o.ArrayBuffer,_=o.DataView,d=i.ABV&&h.isView,p=f.prototype.slice,y=i.VIEW;n(n.G+n.W+n.F*(h!==f),{ArrayBuffer:f}),n(n.S+n.F*!i.CONSTR,"ArrayBuffer",{isView:function(e){return d&&d(e)||c(e)&&y in e}}),n(n.P+n.U+n.F*r(7)(function(){return!new f(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==p&&void 0===t)return p.call(s(this),e);for(var r=s(this).byteLength,n=a(e,r),i=a(void 0===t?r:t,r),o=new(u(this,f))(l(i-n)),c=new _(this),h=new _(o),d=0;n<i;)h.setUint8(d++,c.getUint8(n++));return o}}),r(55)("ArrayBuffer")},function(e,t,r){r(170),r(169),r(168),r(167),r(166),r(165),r(164),r(163),r(162),r(161),r(160),r(69),e.exports=r(10)},function(e,t,r){"use strict";var n=r(0),i=r(67),o=r(91);n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){"use strict";var n=r(0),i=r(10),o=r(3),s=r(51),a=r(90);n(n.P+n.R,"Promise",{finally:function(e){var t=s(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return a(t,e()).then(function(){return r})}:e,r?function(r){return a(t,e()).then(function(){throw r})}:e)}})},function(e,t,r){var n=r(3),i=r(92).set,o=n.MutationObserver||n.WebKitMutationObserver,s=n.process,a=n.Promise,l="process"==r(26)(s);e.exports=function(){var e,t,r,c=function(){var n,i;for(l&&(n=s.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(l)r=function(){s.nextTick(c)};else if(!o||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var h=a.resolve();r=function(){h.then(c)}}else r=function(){i.call(n,c)};else{var u=!0,f=document.createTextNode("");new o(c).observe(f,{characterData:!0}),r=function(){f.data=u=!u}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},function(e,t){e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){var n=r(19),i=r(101),o=r(76),s=r(13),a=r(5),l=r(74),c={},h={};(t=e.exports=function(e,t,r,u,f){var _,d,p,y,m=f?function(){return e}:l(e),v=n(r,u,t?2:1),g=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(_=a(e.length);_>g;g++)if((y=t?v(s(d=e[g])[0],d[1]):v(e[g]))===c||y===h)return y}else for(p=m.call(e);!(d=p.next()).done;)if((y=i(p,v,d.value,t))===c||y===h)return y}).BREAK=c,t.RETURN=h},function(e,t,r){"use strict";var n,i,o,s,a=r(29),l=r(3),c=r(19),h=r(40),u=r(0),f=r(2),_=r(18),d=r(68),p=r(176),y=r(51),m=r(92).set,v=r(174)(),g=r(67),b=r(91),C=r(90),w=l.TypeError,E=l.process,S=l.Promise,A="process"==h(E),x=function(){},L=i=g.f,k=!!function(){try{var e=S.resolve(1),t=(e.constructor={})[r(1)("species")]=function(e){e(x,x)};return(A||"function"==typeof PromiseRejectionEvent)&&e.then(x)instanceof t}catch(e){}}(),T=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},O=function(e,t){if(!e._n){e._n=!0;var r=e._c;v(function(){for(var n=e._v,i=1==e._s,o=0,s=function(t){var r,o,s=i?t.ok:t.fail,a=t.resolve,l=t.reject,c=t.domain;try{s?(i||(2==e._h&&D(e),e._h=1),!0===s?r=n:(c&&c.enter(),r=s(n),c&&c.exit()),r===t.promise?l(w("Promise-chain cycle")):(o=T(r))?o.call(r,a,l):a(r)):l(n)}catch(e){l(e)}};r.length>o;)s(r[o++]);e._c=[],e._n=!1,t&&!e._h&&M(e)})}},M=function(e){m.call(l,function(){var t,r,n,i=e._v,o=R(e);if(o&&(t=b(function(){A?E.emit("unhandledRejection",i,e):(r=l.onunhandledrejection)?r({promise:e,reason:i}):(n=l.console)&&n.error&&n.error("Unhandled promise rejection",i)}),e._h=A||R(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},R=function(e){return 1!==e._h&&0===(e._a||e._c).length},D=function(e){m.call(l,function(){var t;A?E.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},H=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()),O(t,!0))},I=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw w("Promise can't be resolved itself");(t=T(e))?v(function(){var n={_w:r,_d:!1};try{t.call(e,c(I,n,1),c(H,n,1))}catch(e){H.call(n,e)}}):(r._v=e,r._s=1,O(r,!1))}catch(e){H.call({_w:r,_d:!1},e)}}};k||(S=function(e){d(this,S,"Promise","_h"),_(e),n.call(this);try{e(c(I,this,1),c(H,this,1))}catch(e){H.call(this,e)}},(n=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=r(66)(S.prototype,{then:function(e,t){var r=L(y(this,S));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=A?E.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&O(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=c(I,e,1),this.reject=c(H,e,1)},g.f=L=function(e){return e===S||e===s?new o(e):i(e)}),u(u.G+u.W+u.F*!k,{Promise:S}),r(42)(S,"Promise"),r(55)("Promise"),s=r(10).Promise,u(u.S+u.F*!k,"Promise",{reject:function(e){var t=L(this);return(0,t.reject)(e),t.promise}}),u(u.S+u.F*(a||!k),"Promise",{resolve:function(e){return C(a&&this===s?S:this,e)}}),u(u.S+u.F*!(k&&r(73)(function(e){S.all(e).catch(x)})),"Promise",{all:function(e){var t=this,r=L(t),n=r.resolve,i=r.reject,o=b(function(){var r=[],o=0,s=1;p(e,!1,function(e){var a=o++,l=!1;r.push(void 0),s++,t.resolve(e).then(function(e){l||(l=!0,r[a]=e,--s||n(r))},i)}),--s||n(r)});return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=L(t),n=r.reject,i=b(function(){p(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},function(e,t,r){for(var n=r(70),i=r(27),o=r(32),s=r(3),a=r(15),l=r(31),c=r(1),h=c("iterator"),u=c("toStringTag"),f=l.Array,_={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},d=i(_),p=0;p<d.length;p++){var y,m=d[p],v=_[m],g=s[m],b=g&&g.prototype;if(b&&(b[h]||a(b,h,f),b[u]||a(b,u,m),l[m]=f,v))for(y in n)b[y]||o(b,y,n[y],!0)}},function(e,t,r){r(69),r(106),r(178),r(177),r(173),r(172),e.exports=r(10).Promise},function(e,t,r){var n=r(0),i=r(93),o=r(44);n(n.S+n.F,"Object",{make:function(e,t){return i(o(e),t)}})},function(e,t,r){var n=r(0),i=r(93);n(n.S+n.F,"Object",{define:i})},function(e,t,r){var n=r(0);n(n.S+n.F,"Object",{classof:r(40)})},function(e,t,r){var n=r(0);n(n.S+n.F,"Object",{isObject:r(2)})},function(e,t,r){"use strict";var n=r(0),i=r(4),o=r(34),s=r(41),a=r(21).f;r(6)&&n(n.P+r(52),"Object",{__lookupSetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=a(r,n))return t.set}while(r=s(r))}})},function(e,t,r){"use strict";var n=r(0),i=r(4),o=r(34),s=r(41),a=r(21).f;r(6)&&n(n.P+r(52),"Object",{__lookupGetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=a(r,n))return t.get}while(r=s(r))}})},function(e,t,r){"use strict";var n=r(0),i=r(4),o=r(18),s=r(8);r(6)&&n(n.P+r(52),"Object",{__defineSetter__:function(e,t){s.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,r){"use strict";var n=r(0),i=r(4),o=r(18),s=r(8);r(6)&&n(n.P+r(52),"Object",{__defineGetter__:function(e,t){s.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,r){var n=r(0),i=r(94)(!0);n(n.S,"Object",{entries:function(e){return i(e)}})},function(e,t,r){var n=r(0),i=r(94)(!1);n(n.S,"Object",{values:function(e){return i(e)}})},function(e,t,r){var n=r(0),i=r(95),o=r(9),s=r(21),a=r(75);n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=o(e),l=s.f,c=i(n),h={},u=0;c.length>u;)void 0!==(r=l(n,t=c[u++]))&&a(h,t,r);return h}})},function(e,t,r){var n=r(2),i=r(13),o=function(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=r(19)(Function.call,r(21).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return o(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:o}},function(e,t,r){var n=r(0);n(n.S,"Object",{setPrototypeOf:r(191).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,r){var n=r(0);n(n.S,"Object",{is:r(193)})},function(e,t,r){"use strict";var n=r(27),i=r(53),o=r(39),s=r(4),a=r(43),l=Object.assign;e.exports=!l||r(7)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=l({},e)[r]||Object.keys(l({},t)).join("")!=n})?function(e,t){for(var r=s(e),l=arguments.length,c=1,h=i.f,u=o.f;l>c;)for(var f,_=a(arguments[c++]),d=h?n(_).concat(h(_)):n(_),p=d.length,y=0;p>y;)u.call(_,f=d[y++])&&(r[f]=_[f]);return r}:l},function(e,t,r){var n=r(0);n(n.S+n.F,"Object",{assign:r(195)})},function(e,t,r){var n=r(2);r(14)("isExtensible",function(e){return function(t){return!!n(t)&&(!e||e(t))}})},function(e,t,r){var n=r(2);r(14)("isSealed",function(e){return function(t){return!n(t)||!!e&&e(t)}})},function(e,t,r){var n=r(2);r(14)("isFrozen",function(e){return function(t){return!n(t)||!!e&&e(t)}})},function(e,t,r){var n=r(2),i=r(54).onFreeze;r(14)("preventExtensions",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(2),i=r(54).onFreeze;r(14)("seal",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){var n=r(2),i=r(54).onFreeze;r(14)("freeze",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){r(14)("getOwnPropertyNames",function(){return r(96).f})},function(e,t,r){var n=r(4),i=r(27);r(14)("keys",function(){return function(e){return i(n(e))}})},function(e,t,r){var n=r(4),i=r(41);r(14)("getPrototypeOf",function(){return function(e){return i(n(e))}})},function(e,t,r){var n=r(9),i=r(21).f;r(14)("getOwnPropertyDescriptor",function(){return function(e,t){return i(n(e),t)}})},function(e,t,r){var n=r(0);n(n.S+n.F*!r(6),"Object",{defineProperties:r(103)})},function(e,t,r){var n=r(0);n(n.S+n.F*!r(6),"Object",{defineProperty:r(8).f})},function(e,t,r){var n=r(0);n(n.S,"Object",{create:r(44)})},function(e,t,r){var n=r(27),i=r(53),o=r(39);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var s,a=r(e),l=o.f,c=0;a.length>c;)l.call(e,s=a[c++])&&t.push(s);return t}},function(e,t,r){var n=r(3),i=r(10),o=r(29),s=r(97),a=r(8).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},function(e,t,r){"use strict";var n=r(3),i=r(20),o=r(6),s=r(0),a=r(32),l=r(54).KEY,c=r(7),h=r(79),u=r(42),f=r(28),_=r(1),d=r(97),p=r(211),y=r(210),m=r(56),v=r(13),g=r(2),b=r(9),C=r(34),w=r(33),E=r(44),S=r(96),A=r(21),x=r(8),L=r(27),k=A.f,T=x.f,O=S.f,M=n.Symbol,R=n.JSON,D=R&&R.stringify,H=_("_hidden"),I=_("toPrimitive"),P={}.propertyIsEnumerable,F=h("symbol-registry"),B=h("symbols"),N=h("op-symbols"),j=Object.prototype,W="function"==typeof M,U=n.QObject,Z=!U||!U.prototype||!U.prototype.findChild,z=o&&c(function(){return 7!=E(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=k(j,t);n&&delete j[t],T(e,t,r),n&&e!==j&&T(j,t,n)}:T,K=function(e){var t=B[e]=E(M.prototype);return t._k=e,t},X=W&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},V=function(e,t,r){return e===j&&V(N,t,r),v(e),t=C(t,!0),v(r),i(B,t)?(r.enumerable?(i(e,H)&&e[H][t]&&(e[H][t]=!1),r=E(r,{enumerable:w(0,!1)})):(i(e,H)||T(e,H,w(1,{})),e[H][t]=!0),z(e,t,r)):T(e,t,r)},q=function(e,t){v(e);for(var r,n=y(t=b(t)),i=0,o=n.length;o>i;)V(e,r=n[i++],t[r]);return e},J=function(e){var t=P.call(this,e=C(e,!0));return!(this===j&&i(B,e)&&!i(N,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,H)&&this[H][e])||t)},G=function(e,t){if(e=b(e),t=C(t,!0),e!==j||!i(B,t)||i(N,t)){var r=k(e,t);return!r||!i(B,t)||i(e,H)&&e[H][t]||(r.enumerable=!0),r}},Y=function(e){for(var t,r=O(b(e)),n=[],o=0;r.length>o;)i(B,t=r[o++])||t==H||t==l||n.push(t);return n},Q=function(e){for(var t,r=e===j,n=O(r?N:b(e)),o=[],s=0;n.length>s;)!i(B,t=n[s++])||r&&!i(j,t)||o.push(B[t]);return o};W||(a((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(r){this===j&&t.call(N,r),i(this,H)&&i(this[H],e)&&(this[H][e]=!1),z(this,e,w(1,r))};return o&&Z&&z(j,e,{configurable:!0,set:t}),K(e)}).prototype,"toString",function(){return this._k}),A.f=G,x.f=V,r(38).f=S.f=Y,r(39).f=J,r(53).f=Q,o&&!r(29)&&a(j,"propertyIsEnumerable",J,!0),d.f=function(e){return K(_(e))}),s(s.G+s.W+s.F*!W,{Symbol:M});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;$.length>ee;)_($[ee++]);for(var te=L(_.store),re=0;te.length>re;)p(te[re++]);s(s.S+s.F*!W,"Symbol",{for:function(e){return i(F,e+="")?F[e]:F[e]=M(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){Z=!0},useSimple:function(){Z=!1}}),s(s.S+s.F*!W,"Object",{create:function(e,t){return void 0===t?E(e):q(E(e),t)},defineProperty:V,defineProperties:q,getOwnPropertyDescriptor:G,getOwnPropertyNames:Y,getOwnPropertySymbols:Q}),R&&s(s.S+s.F*(!W||c(function(){var e=M();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(g(t)||void 0!==e)&&!X(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!X(t))return t}),n[1]=t,D.apply(R,n)}}),M.prototype[I]||r(15)(M.prototype,I,M.prototype.valueOf),u(M,"Symbol"),u(Math,"Math",!0),u(n.JSON,"JSON",!0)},function(e,t,r){r(212),r(209),r(208),r(207),r(206),r(205),r(204),r(203),r(202),r(201),r(200),r(199),r(198),r(197),r(196),r(194),r(192),r(69),r(190),r(189),r(188),r(187),r(186),r(185),r(184),r(183),r(182),r(181),r(180),e.exports=r(10).Object},function(e,t,r){"use strict";var n=r(0),i=r(98),o=r(4),s=r(5),a=r(24),l=r(72);n(n.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),r=s(t.length),n=l(t,0);return i(n,t,t,r,0,void 0===e?1:a(e)),n}}),r(22)("flatten")},function(e,t,r){"use strict";var n=r(0),i=r(98),o=r(4),s=r(5),a=r(18),l=r(72);n(n.P,"Array",{flatMap:function(e){var t,r,n=o(this);return a(e),t=s(n.length),r=l(n,0),i(r,n,n,t,0,1,e,arguments[1]),r}}),r(22)("flatMap")},function(e,t,r){"use strict";var n=r(0),i=r(57)(!0);n(n.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(22)("includes")},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){r(55)("Array")},function(e,t,r){"use strict";var n=r(0),i=r(23)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),n(n.P+n.F*s,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(22)(o)},function(e,t,r){"use strict";var n=r(0),i=r(23)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(22)("find")},function(e,t,r){var n=r(0);n(n.P,"Array",{fill:r(71)}),r(22)("fill")},function(e,t,r){var n=r(0);n(n.P,"Array",{copyWithin:r(99)}),r(22)("copyWithin")},function(e,t,r){"use strict";var n=r(0),i=r(9),o=r(24),s=r(5),a=[].lastIndexOf,l=!!a&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(l||!r(12)(a)),"Array",{lastIndexOf:function(e){if(l)return a.apply(this,arguments)||0;var t=i(this),r=s(t.length),n=r-1;for(arguments.length>1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}})},function(e,t,r){"use strict";var n=r(0),i=r(57)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(s||!r(12)(o)),"Array",{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},function(e,t,r){"use strict";var n=r(0),i=r(100);n(n.P+n.F*!r(12)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},function(e,t,r){"use strict";var n=r(0),i=r(100);n(n.P+n.F*!r(12)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},function(e,t,r){"use strict";var n=r(0),i=r(23)(4);n(n.P+n.F*!r(12)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},function(e,t,r){"use strict";var n=r(0),i=r(23)(3);n(n.P+n.F*!r(12)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},function(e,t,r){"use strict";var n=r(0),i=r(23)(2);n(n.P+n.F*!r(12)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},function(e,t,r){"use strict";var n=r(0),i=r(23)(1);n(n.P+n.F*!r(12)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},function(e,t,r){var n=r(2),i=r(56),o=r(1)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),n(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,r){"use strict";var n=r(0),i=r(23)(0),o=r(12)([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},function(e,t,r){"use strict";var n=r(0),i=r(18),o=r(4),s=r(7),a=[].sort,l=[1,2,3];n(n.P+n.F*(s(function(){l.sort(void 0)})||!s(function(){l.sort(null)})||!r(12)(a)),"Array",{sort:function(e){return void 0===e?a.call(o(this)):a.call(o(this),i(e))}})},function(e,t,r){"use strict";var n=r(0),i=r(77),o=r(26),s=r(30),a=r(5),l=[].slice;n(n.P+n.F*r(7)(function(){i&&l.call(i)}),"Array",{slice:function(e,t){var r=a(this.length),n=o(this);if(t=void 0===t?r:t,"Array"==n)return l.call(this,e,t);for(var i=s(e,r),c=s(t,r),h=a(c-i),u=new Array(h),f=0;f<h;f++)u[f]="String"==n?this.charAt(i+f):this[i+f];return u}})},function(e,t,r){"use strict";var n=r(0),i=r(9),o=[].join;n(n.P+n.F*(r(43)!=Object||!r(12)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,r){"use strict";var n=r(0),i=r(75);n(n.S+n.F*r(7)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);t>e;)i(r,e,arguments[e++]);return r.length=t,r}})},function(e,t,r){"use strict";var n=r(19),i=r(0),o=r(4),s=r(101),a=r(76),l=r(5),c=r(75),h=r(74);i(i.S+i.F*!r(73)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,i,u,f=o(e),_="function"==typeof this?this:Array,d=arguments.length,p=d>1?arguments[1]:void 0,y=void 0!==p,m=0,v=h(f);if(y&&(p=n(p,d>2?arguments[2]:void 0,2)),void 0==v||_==Array&&a(v))for(r=new _(t=l(f.length));t>m;m++)c(r,m,y?p(f[m],m):f[m]);else for(u=v.call(f),r=new _;!(i=u.next()).done;m++)c(r,m,y?s(u,p,[i.value,m],!0):i.value);return r.length=m,r}})},function(e,t,r){var n=r(0);n(n.S,"Array",{isArray:r(56)})},function(e,t,r){"use strict";var n=r(44),i=r(33),o=r(42),s={};r(15)(s,r(1)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(s,{next:i(1,r)}),o(e,t+" Iterator")}},function(e,t,r){var n=r(24),i=r(58);e.exports=function(e){return function(t,r){var o,s,a=String(i(t)),l=n(r),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,r){r(106),r(238),r(237),r(236),r(235),r(234),r(233),r(232),r(230),r(229),r(228),r(227),r(226),r(225),r(224),r(223),r(222),r(221),r(220),r(219),r(218),r(70),r(216),r(215),r(214),e.exports=r(10).Array},,,function(e,t,r){},function(e,t,r){"use strict";r(244),r(241),r(213),r(179),r(171),r(159),r(154);var n=r(152),i=r(143).Terminal;i.applyAddon(r(109)),i.applyAddon(r(108)),i.applyAddon(r(107));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=h(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,r=e.get_offset();o.progress.bytesReceived.textContent=h(r,2),o.progress.bytesFile.textContent=h(t,2);var n=(100*r/t).toFixed(2);o.progress.percentReceived.textContent=n+"%",o.progress.progressBar.textContent=n+"%",o.progress.progressBar.setAttribute("value",n)}function h(e,t){if(isNaN(parseFloat(e))||!isFinite(e))return"-";if(0===e)return 0;void 0===t&&(t=1);var r=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,Math.floor(r))).toFixed(t)+" "+["bytes","KB","MB","GB","TB","PB"][r]}function u(e){return new Promise(function(t){var r;r=function(r){n.Browser.send_files(e,r,{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="",n=0;n<e.length;n++)0===n?t=e[n].name:t+=", "+e[n].name;o.choose.filesNames.textContent=t,r(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(r){c(e),t.push(new Uint8Array(r))}),e.accept().then(function(){n.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,y,m=document.getElementById("terminal-container"),v=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname+(window.location.pathname.endsWith("/")?"":"/")+"ws",g=new TextDecoder,b=new TextEncoder,C="undefined"!=typeof tty_auth_token?tty_auth_token:null,w=-1,E=function e(){var t=new WebSocket(v,["tty"]),r=function(e){t.readyState===WebSocket.OPEN&&t.send(b.encode(e))},o=function(e){r("0"+e)},s=function(e){var t="Close terminal? this will also terminate the command.";return(e||window.event).returnValue=t,t},l=new n.Sentry({to_terminal:function(e){var t=new Uint8Array(e).buffer;d.write(g.decode(t))},sender:function(e){for(;e.length;){var r=e.splice(0,4095),n=new Uint8Array(r.length+1);n[0]="0".charCodeAt(0),n.set(r,1),t.send(n)}},on_retract:function(){},on_detect:function(e){d.setOption("disableStdin",!0);var t=e.confirm();("send"===t.type?u(t):f(t)).catch(console.error.bind(console)).then(function(){a(),d.setOption("disableStdin",!1)})}});t.binaryType="arraybuffer",t.onopen=function(e){for(console.log("Websocket connection opened"),y=!1,r(JSON.stringify({AuthToken:C})),void 0!==d&&d.dispose(),(d=new i({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&&r("1"+JSON.stringify({columns:e.cols,rows:e.rows})),setTimeout(function(){d.showOverlay(e.cols+"x"+e.rows)},500)}),d.on("title",function(e){e&&""!==e&&(document.title=e+" | "+p)}),d.on("data",o);m.firstChild;)m.removeChild(m.firstChild);window.addEventListener("resize",function(){clearTimeout(window.resizedFinished),window.resizedFinished=setTimeout(function(){d.fit()},250)}),window.addEventListener("beforeunload",s),d.open(m,!0),d.winptyCompatInit(),d.fit(),d.focus()},t.onmessage=function(r){var n=new Uint8Array(r.data),i=String.fromCharCode(n[0]),o=n.slice(1).buffer;switch(i){case"0":try{l.consume(o)}catch(r){console.error(r),a(),clearTimeout(_),t.readyState!==WebSocket.CLOSED&&t.close(),e()}break;case"1":p=g.decode(o),document.title=p;break;case"2":var s=JSON.parse(g.decode(o));Object.keys(s).forEach(function(e){console.log("Setting "+e+": "+s[e]),d.setOption(e,s[e])});break;case"3":w=JSON.parse(g.decode(o)),console.log("Enabling reconnect: "+w+" seconds");break;default:console.log("Unknown command: "+i)}},t.onclose=function(t){console.log("Websocket connection closed with code: "+t.code),d&&(d.off("data"),d.off("resize"),y||d.showOverlay("Connection Closed",null)),window.removeEventListener("beforeunload",s),1e3!==t.code&&w>0&&(_=setTimeout(e,1e3*w))}};"complete"===document.readyState||"loading"!==document.readyState?E():document.addEventListener("DOMContentLoaded",E)}]);</script></body></html>
\ No newline at end of file
+<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>ttyd - Terminal</title><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==" /><style type="text/css">.xterm{font-family:courier-new,courier,monospace;font-feature-settings:"liga" 0;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:10}.xterm .xterm-helper-textarea{position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-10;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm:not(.enable-mouse-events){cursor:text}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:100;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-cursor-pointer{cursor:pointer}@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.is-clearfix:after{clear:both;content:" ";display:table}.is-pulled-left{float:left!important}.is-pulled-right{float:right!important}.is-clipped{overflow:hidden!important}.is-overlay{bottom:0;left:0;position:absolute;right:0;top:0}.is-size-1{font-size:3rem!important}.is-size-2{font-size:2.5rem!important}.is-size-3{font-size:2rem!important}.is-size-4{font-size:1.5rem!important}.is-size-5{font-size:1.25rem!important}.is-size-6{font-size:1rem!important}.is-size-7{font-size:.75rem!important}@media screen and (max-width:768px){.is-size-1-mobile{font-size:3rem!important}.is-size-2-mobile{font-size:2.5rem!important}.is-size-3-mobile{font-size:2rem!important}.is-size-4-mobile{font-size:1.5rem!important}.is-size-5-mobile{font-size:1.25rem!important}.is-size-6-mobile{font-size:1rem!important}.is-size-7-mobile{font-size:.75rem!important}}@media print,screen and (min-width:769px){.is-size-1-tablet{font-size:3rem!important}.is-size-2-tablet{font-size:2.5rem!important}.is-size-3-tablet{font-size:2rem!important}.is-size-4-tablet{font-size:1.5rem!important}.is-size-5-tablet{font-size:1.25rem!important}.is-size-6-tablet{font-size:1rem!important}.is-size-7-tablet{font-size:.75rem!important}}@media screen and (max-width:1023px){.is-size-1-touch{font-size:3rem!important}.is-size-2-touch{font-size:2.5rem!important}.is-size-3-touch{font-size:2rem!important}.is-size-4-touch{font-size:1.5rem!important}.is-size-5-touch{font-size:1.25rem!important}.is-size-6-touch{font-size:1rem!important}.is-size-7-touch{font-size:.75rem!important}}@media screen and (min-width:1024px){.is-size-1-desktop{font-size:3rem!important}.is-size-2-desktop{font-size:2.5rem!important}.is-size-3-desktop{font-size:2rem!important}.is-size-4-desktop{font-size:1.5rem!important}.is-size-5-desktop{font-size:1.25rem!important}.is-size-6-desktop{font-size:1rem!important}.is-size-7-desktop{font-size:.75rem!important}}@media screen and (min-width:1216px){.is-size-1-widescreen{font-size:3rem!important}.is-size-2-widescreen{font-size:2.5rem!important}.is-size-3-widescreen{font-size:2rem!important}.is-size-4-widescreen{font-size:1.5rem!important}.is-size-5-widescreen{font-size:1.25rem!important}.is-size-6-widescreen{font-size:1rem!important}.is-size-7-widescreen{font-size:.75rem!important}}@media screen and (min-width:1408px){.is-size-1-fullhd{font-size:3rem!important}.is-size-2-fullhd{font-size:2.5rem!important}.is-size-3-fullhd{font-size:2rem!important}.is-size-4-fullhd{font-size:1.5rem!important}.is-size-5-fullhd{font-size:1.25rem!important}.is-size-6-fullhd{font-size:1rem!important}.is-size-7-fullhd{font-size:.75rem!important}}.has-text-centered{text-align:center!important}@media screen and (max-width:768px){.has-text-centered-mobile{text-align:center!important}}@media print,screen and (min-width:769px){.has-text-centered-tablet{text-align:center!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-centered-tablet-only{text-align:center!important}}@media screen and (max-width:1023px){.has-text-centered-touch{text-align:center!important}}@media screen and (min-width:1024px){.has-text-centered-desktop{text-align:center!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-centered-desktop-only{text-align:center!important}}@media screen and (min-width:1216px){.has-text-centered-widescreen{text-align:center!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-centered-widescreen-only{text-align:center!important}}@media screen and (min-width:1408px){.has-text-centered-fullhd{text-align:center!important}}.has-text-justified{text-align:justify!important}@media screen and (max-width:768px){.has-text-justified-mobile{text-align:justify!important}}@media print,screen and (min-width:769px){.has-text-justified-tablet{text-align:justify!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-justified-tablet-only{text-align:justify!important}}@media screen and (max-width:1023px){.has-text-justified-touch{text-align:justify!important}}@media screen and (min-width:1024px){.has-text-justified-desktop{text-align:justify!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-justified-desktop-only{text-align:justify!important}}@media screen and (min-width:1216px){.has-text-justified-widescreen{text-align:justify!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-justified-widescreen-only{text-align:justify!important}}@media screen and (min-width:1408px){.has-text-justified-fullhd{text-align:justify!important}}.has-text-left{text-align:left!important}@media screen and (max-width:768px){.has-text-left-mobile{text-align:left!important}}@media print,screen and (min-width:769px){.has-text-left-tablet{text-align:left!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-left-tablet-only{text-align:left!important}}@media screen and (max-width:1023px){.has-text-left-touch{text-align:left!important}}@media screen and (min-width:1024px){.has-text-left-desktop{text-align:left!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-left-desktop-only{text-align:left!important}}@media screen and (min-width:1216px){.has-text-left-widescreen{text-align:left!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-left-widescreen-only{text-align:left!important}}@media screen and (min-width:1408px){.has-text-left-fullhd{text-align:left!important}}.has-text-right{text-align:right!important}@media screen and (max-width:768px){.has-text-right-mobile{text-align:right!important}}@media print,screen and (min-width:769px){.has-text-right-tablet{text-align:right!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-right-tablet-only{text-align:right!important}}@media screen and (max-width:1023px){.has-text-right-touch{text-align:right!important}}@media screen and (min-width:1024px){.has-text-right-desktop{text-align:right!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-right-desktop-only{text-align:right!important}}@media screen and (min-width:1216px){.has-text-right-widescreen{text-align:right!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-right-widescreen-only{text-align:right!important}}@media screen and (min-width:1408px){.has-text-right-fullhd{text-align:right!important}}.is-capitalized{text-transform:capitalize!important}.is-lowercase{text-transform:lowercase!important}.is-uppercase{text-transform:uppercase!important}.is-italic{font-style:italic!important}.has-text-white{color:#fff!important}a.has-text-white:focus,a.has-text-white:hover{color:#e6e6e6!important}.has-text-black{color:#0a0a0a!important}a.has-text-black:focus,a.has-text-black:hover{color:#000!important}.has-text-light{color:#f5f5f5!important}a.has-text-light:focus,a.has-text-light:hover{color:#dbdbdb!important}.has-text-dark{color:#363636!important}a.has-text-dark:focus,a.has-text-dark:hover{color:#1c1c1c!important}.has-text-primary{color:#00d1b2!important}a.has-text-primary:focus,a.has-text-primary:hover{color:#009e86!important}.has-text-link{color:#3273dc!important}a.has-text-link:focus,a.has-text-link:hover{color:#205bbc!important}.has-text-info{color:#209cee!important}a.has-text-info:focus,a.has-text-info:hover{color:#0f81cc!important}.has-text-success{color:#23d160!important}a.has-text-success:focus,a.has-text-success:hover{color:#1ca64c!important}.has-text-warning{color:#ffdd57!important}a.has-text-warning:focus,a.has-text-warning:hover{color:#ffd324!important}.has-text-danger{color:#ff3860!important}a.has-text-danger:focus,a.has-text-danger:hover{color:#ff0537!important}.has-text-black-bis{color:#121212!important}.has-text-black-ter{color:#242424!important}.has-text-grey-darker{color:#363636!important}.has-text-grey-dark{color:#4a4a4a!important}.has-text-grey{color:#7a7a7a!important}.has-text-grey-light{color:#b5b5b5!important}.has-text-grey-lighter{color:#dbdbdb!important}.has-text-white-ter{color:#f5f5f5!important}.has-text-white-bis{color:#fafafa!important}.has-text-weight-light{font-weight:300!important}.has-text-weight-normal{font-weight:400!important}.has-text-weight-semibold{font-weight:600!important}.has-text-weight-bold{font-weight:700!important}.is-block{display:block!important}@media screen and (max-width:768px){.is-block-mobile{display:block!important}}@media print,screen and (min-width:769px){.is-block-tablet{display:block!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-block-tablet-only{display:block!important}}@media screen and (max-width:1023px){.is-block-touch{display:block!important}}@media screen and (min-width:1024px){.is-block-desktop{display:block!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-block-desktop-only{display:block!important}}@media screen and (min-width:1216px){.is-block-widescreen{display:block!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-block-widescreen-only{display:block!important}}@media screen and (min-width:1408px){.is-block-fullhd{display:block!important}}.is-flex{display:flex!important}@media screen and (max-width:768px){.is-flex-mobile{display:flex!important}}@media print,screen and (min-width:769px){.is-flex-tablet{display:flex!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-flex-tablet-only{display:flex!important}}@media screen and (max-width:1023px){.is-flex-touch{display:flex!important}}@media screen and (min-width:1024px){.is-flex-desktop{display:flex!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-flex-desktop-only{display:flex!important}}@media screen and (min-width:1216px){.is-flex-widescreen{display:flex!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-flex-widescreen-only{display:flex!important}}@media screen and (min-width:1408px){.is-flex-fullhd{display:flex!important}}.is-inline{display:inline!important}@media screen and (max-width:768px){.is-inline-mobile{display:inline!important}}@media print,screen and (min-width:769px){.is-inline-tablet{display:inline!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-inline-tablet-only{display:inline!important}}@media screen and (max-width:1023px){.is-inline-touch{display:inline!important}}@media screen and (min-width:1024px){.is-inline-desktop{display:inline!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-inline-desktop-only{display:inline!important}}@media screen and (min-width:1216px){.is-inline-widescreen{display:inline!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-inline-widescreen-only{display:inline!important}}@media screen and (min-width:1408px){.is-inline-fullhd{display:inline!important}}.is-inline-block{display:inline-block!important}@media screen and (max-width:768px){.is-inline-block-mobile{display:inline-block!important}}@media print,screen and (min-width:769px){.is-inline-block-tablet{display:inline-block!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-inline-block-tablet-only{display:inline-block!important}}@media screen and (max-width:1023px){.is-inline-block-touch{display:inline-block!important}}@media screen and (min-width:1024px){.is-inline-block-desktop{display:inline-block!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-inline-block-desktop-only{display:inline-block!important}}@media screen and (min-width:1216px){.is-inline-block-widescreen{display:inline-block!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-inline-block-widescreen-only{display:inline-block!important}}@media screen and (min-width:1408px){.is-inline-block-fullhd{display:inline-block!important}}.is-inline-flex{display:inline-flex!important}@media screen and (max-width:768px){.is-inline-flex-mobile{display:inline-flex!important}}@media print,screen and (min-width:769px){.is-inline-flex-tablet{display:inline-flex!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-inline-flex-tablet-only{display:inline-flex!important}}@media screen and (max-width:1023px){.is-inline-flex-touch{display:inline-flex!important}}@media screen and (min-width:1024px){.is-inline-flex-desktop{display:inline-flex!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-inline-flex-desktop-only{display:inline-flex!important}}@media screen and (min-width:1216px){.is-inline-flex-widescreen{display:inline-flex!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-inline-flex-widescreen-only{display:inline-flex!important}}@media screen and (min-width:1408px){.is-inline-flex-fullhd{display:inline-flex!important}}.is-hidden{display:none!important}@media screen and (max-width:768px){.is-hidden-mobile{display:none!important}}@media print,screen and (min-width:769px){.is-hidden-tablet{display:none!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-hidden-tablet-only{display:none!important}}@media screen and (max-width:1023px){.is-hidden-touch{display:none!important}}@media screen and (min-width:1024px){.is-hidden-desktop{display:none!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-hidden-desktop-only{display:none!important}}@media screen and (min-width:1216px){.is-hidden-widescreen{display:none!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-hidden-widescreen-only{display:none!important}}@media screen and (min-width:1408px){.is-hidden-fullhd{display:none!important}}.is-invisible{visibility:hidden!important}@media screen and (max-width:768px){.is-invisible-mobile{visibility:hidden!important}}@media print,screen and (min-width:769px){.is-invisible-tablet{visibility:hidden!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-invisible-tablet-only{visibility:hidden!important}}@media screen and (max-width:1023px){.is-invisible-touch{visibility:hidden!important}}@media screen and (min-width:1024px){.is-invisible-desktop{visibility:hidden!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-invisible-desktop-only{visibility:hidden!important}}@media screen and (min-width:1216px){.is-invisible-widescreen{visibility:hidden!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-invisible-widescreen-only{visibility:hidden!important}}@media screen and (min-width:1408px){.is-invisible-fullhd{visibility:hidden!important}}.is-marginless{margin:0!important}.is-paddingless{padding:0!important}.is-radiusless{border-radius:0!important}.is-shadowless{box-shadow:none!important}.is-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box{background-color:#fff;border-radius:5px;box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);color:#4a4a4a;display:block;padding:1.25rem}.box:not(:last-child){margin-bottom:1.5rem}a.box:focus,a.box:hover{box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px #3273dc}a.box:active{box-shadow:inset 0 1px 2px hsla(0,0%,4%,.2),0 0 0 1px #3273dc}.button{-moz-appearance:none;-webkit-appearance:none;align-items:center;border:1px solid transparent;border-radius:3px;box-shadow:none;display:inline-flex;font-size:1rem;height:2.25em;justify-content:flex-start;line-height:1.5;padding-left:calc(.625em - 1px);padding-right:calc(.625em - 1px);position:relative;vertical-align:top;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff;border-color:#dbdbdb;color:#363636;cursor:pointer;justify-content:center;padding:calc(.375em - 1px) .75em;text-align:center;white-space:nowrap}.button.is-active,.button.is-focused,.button:active,.button:focus{outline:none}.button[disabled]{cursor:not-allowed}.button strong{color:inherit}.button .icon,.button .icon.is-large,.button .icon.is-medium,.button .icon.is-small{height:1.5em;width:1.5em}.button .icon:first-child:not(:last-child){margin-left:calc(-.375em - 1px);margin-right:.1875em}.button .icon:last-child:not(:first-child){margin-left:.1875em;margin-right:calc(-.375em - 1px)}.button .icon:first-child:last-child{margin-left:calc(-.375em - 1px);margin-right:calc(-.375em - 1px)}.button.is-hovered,.button:hover{border-color:#b5b5b5;color:#363636}.button.is-focused,.button:focus{border-color:#3273dc;color:#363636}.button.is-focused:not(:active),.button:focus:not(:active){box-shadow:0 0 0 .125em rgba(50,115,220,.25)}.button.is-active,.button:active{border-color:#4a4a4a;color:#363636}.button.is-text{background-color:transparent;border-color:transparent;color:#4a4a4a;text-decoration:underline}.button.is-text.is-focused,.button.is-text.is-hovered,.button.is-text:focus,.button.is-text:hover{background-color:#f5f5f5;color:#363636}.button.is-text.is-active,.button.is-text:active{background-color:#e8e8e8;color:#363636}.button.is-text[disabled]{background-color:transparent;border-color:transparent;box-shadow:none}.button.is-white{background-color:#fff;border-color:transparent;color:#0a0a0a}.button.is-white.is-hovered,.button.is-white:hover{background-color:#f9f9f9;border-color:transparent;color:#0a0a0a}.button.is-white.is-focused,.button.is-white:focus{border-color:transparent;color:#0a0a0a}.button.is-white.is-focused:not(:active),.button.is-white:focus:not(:active){box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.button.is-white.is-active,.button.is-white:active{background-color:#f2f2f2;border-color:transparent;color:#0a0a0a}.button.is-white[disabled]{background-color:#fff;border-color:transparent;box-shadow:none}.button.is-white.is-inverted{background-color:#0a0a0a;color:#fff}.button.is-white.is-inverted:hover{background-color:#000}.button.is-white.is-inverted[disabled]{background-color:#0a0a0a;border-color:transparent;box-shadow:none;color:#fff}.button.is-white.is-loading:after{border-color:transparent transparent #0a0a0a #0a0a0a!important}.button.is-white.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-white.is-outlined:focus,.button.is-white.is-outlined:hover{background-color:#fff;border-color:#fff;color:#0a0a0a}.button.is-white.is-outlined.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-white.is-outlined[disabled]{background-color:transparent;border-color:#fff;box-shadow:none;color:#fff}.button.is-white.is-inverted.is-outlined{background-color:transparent;border-color:#0a0a0a;color:#0a0a0a}.button.is-white.is-inverted.is-outlined:focus,.button.is-white.is-inverted.is-outlined:hover{background-color:#0a0a0a;color:#fff}.button.is-white.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#0a0a0a;box-shadow:none;color:#0a0a0a}.button.is-black{background-color:#0a0a0a;border-color:transparent;color:#fff}.button.is-black.is-hovered,.button.is-black:hover{background-color:#040404;border-color:transparent;color:#fff}.button.is-black.is-focused,.button.is-black:focus{border-color:transparent;color:#fff}.button.is-black.is-focused:not(:active),.button.is-black:focus:not(:active){box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.button.is-black.is-active,.button.is-black:active{background-color:#000;border-color:transparent;color:#fff}.button.is-black[disabled]{background-color:#0a0a0a;border-color:transparent;box-shadow:none}.button.is-black.is-inverted{background-color:#fff;color:#0a0a0a}.button.is-black.is-inverted:hover{background-color:#f2f2f2}.button.is-black.is-inverted[disabled]{background-color:#fff;border-color:transparent;box-shadow:none;color:#0a0a0a}.button.is-black.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-black.is-outlined{background-color:transparent;border-color:#0a0a0a;color:#0a0a0a}.button.is-black.is-outlined:focus,.button.is-black.is-outlined:hover{background-color:#0a0a0a;border-color:#0a0a0a;color:#fff}.button.is-black.is-outlined.is-loading:after{border-color:transparent transparent #0a0a0a #0a0a0a!important}.button.is-black.is-outlined[disabled]{background-color:transparent;border-color:#0a0a0a;box-shadow:none;color:#0a0a0a}.button.is-black.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-black.is-inverted.is-outlined:focus,.button.is-black.is-inverted.is-outlined:hover{background-color:#fff;color:#0a0a0a}.button.is-black.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#fff;box-shadow:none;color:#fff}.button.is-light{background-color:#f5f5f5;border-color:transparent;color:#363636}.button.is-light.is-hovered,.button.is-light:hover{background-color:#eee;border-color:transparent;color:#363636}.button.is-light.is-focused,.button.is-light:focus{border-color:transparent;color:#363636}.button.is-light.is-focused:not(:active),.button.is-light:focus:not(:active){box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.button.is-light.is-active,.button.is-light:active{background-color:#e8e8e8;border-color:transparent;color:#363636}.button.is-light[disabled]{background-color:#f5f5f5;border-color:transparent;box-shadow:none}.button.is-light.is-inverted{background-color:#363636;color:#f5f5f5}.button.is-light.is-inverted:hover{background-color:#292929}.button.is-light.is-inverted[disabled]{background-color:#363636;border-color:transparent;box-shadow:none;color:#f5f5f5}.button.is-light.is-loading:after{border-color:transparent transparent #363636 #363636!important}.button.is-light.is-outlined{background-color:transparent;border-color:#f5f5f5;color:#f5f5f5}.button.is-light.is-outlined:focus,.button.is-light.is-outlined:hover{background-color:#f5f5f5;border-color:#f5f5f5;color:#363636}.button.is-light.is-outlined.is-loading:after{border-color:transparent transparent #f5f5f5 #f5f5f5!important}.button.is-light.is-outlined[disabled]{background-color:transparent;border-color:#f5f5f5;box-shadow:none;color:#f5f5f5}.button.is-light.is-inverted.is-outlined{background-color:transparent;border-color:#363636;color:#363636}.button.is-light.is-inverted.is-outlined:focus,.button.is-light.is-inverted.is-outlined:hover{background-color:#363636;color:#f5f5f5}.button.is-light.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#363636;box-shadow:none;color:#363636}.button.is-dark{background-color:#363636;border-color:transparent;color:#f5f5f5}.button.is-dark.is-hovered,.button.is-dark:hover{background-color:#2f2f2f;border-color:transparent;color:#f5f5f5}.button.is-dark.is-focused,.button.is-dark:focus{border-color:transparent;color:#f5f5f5}.button.is-dark.is-focused:not(:active),.button.is-dark:focus:not(:active){box-shadow:0 0 0 .125em rgba(54,54,54,.25)}.button.is-dark.is-active,.button.is-dark:active{background-color:#292929;border-color:transparent;color:#f5f5f5}.button.is-dark[disabled]{background-color:#363636;border-color:transparent;box-shadow:none}.button.is-dark.is-inverted{background-color:#f5f5f5;color:#363636}.button.is-dark.is-inverted:hover{background-color:#e8e8e8}.button.is-dark.is-inverted[disabled]{background-color:#f5f5f5;border-color:transparent;box-shadow:none;color:#363636}.button.is-dark.is-loading:after{border-color:transparent transparent #f5f5f5 #f5f5f5!important}.button.is-dark.is-outlined{background-color:transparent;border-color:#363636;color:#363636}.button.is-dark.is-outlined:focus,.button.is-dark.is-outlined:hover{background-color:#363636;border-color:#363636;color:#f5f5f5}.button.is-dark.is-outlined.is-loading:after{border-color:transparent transparent #363636 #363636!important}.button.is-dark.is-outlined[disabled]{background-color:transparent;border-color:#363636;box-shadow:none;color:#363636}.button.is-dark.is-inverted.is-outlined{background-color:transparent;border-color:#f5f5f5;color:#f5f5f5}.button.is-dark.is-inverted.is-outlined:focus,.button.is-dark.is-inverted.is-outlined:hover{background-color:#f5f5f5;color:#363636}.button.is-dark.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#f5f5f5;box-shadow:none;color:#f5f5f5}.button.is-primary{background-color:#00d1b2;border-color:transparent;color:#fff}.button.is-primary.is-hovered,.button.is-primary:hover{background-color:#00c4a7;border-color:transparent;color:#fff}.button.is-primary.is-focused,.button.is-primary:focus{border-color:transparent;color:#fff}.button.is-primary.is-focused:not(:active),.button.is-primary:focus:not(:active){box-shadow:0 0 0 .125em rgba(0,209,178,.25)}.button.is-primary.is-active,.button.is-primary:active{background-color:#00b89c;border-color:transparent;color:#fff}.button.is-primary[disabled]{background-color:#00d1b2;border-color:transparent;box-shadow:none}.button.is-primary.is-inverted{background-color:#fff;color:#00d1b2}.button.is-primary.is-inverted:hover{background-color:#f2f2f2}.button.is-primary.is-inverted[disabled]{background-color:#fff;border-color:transparent;box-shadow:none;color:#00d1b2}.button.is-primary.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-primary.is-outlined{background-color:transparent;border-color:#00d1b2;color:#00d1b2}.button.is-primary.is-outlined:focus,.button.is-primary.is-outlined:hover{background-color:#00d1b2;border-color:#00d1b2;color:#fff}.button.is-primary.is-outlined.is-loading:after{border-color:transparent transparent #00d1b2 #00d1b2!important}.button.is-primary.is-outlined[disabled]{background-color:transparent;border-color:#00d1b2;box-shadow:none;color:#00d1b2}.button.is-primary.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-primary.is-inverted.is-outlined:focus,.button.is-primary.is-inverted.is-outlined:hover{background-color:#fff;color:#00d1b2}.button.is-primary.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#fff;box-shadow:none;color:#fff}.button.is-link{background-color:#3273dc;border-color:transparent;color:#fff}.button.is-link.is-hovered,.button.is-link:hover{background-color:#276cda;border-color:transparent;color:#fff}.button.is-link.is-focused,.button.is-link:focus{border-color:transparent;color:#fff}.button.is-link.is-focused:not(:active),.button.is-link:focus:not(:active){box-shadow:0 0 0 .125em rgba(50,115,220,.25)}.button.is-link.is-active,.button.is-link:active{background-color:#2366d1;border-color:transparent;color:#fff}.button.is-link[disabled]{background-color:#3273dc;border-color:transparent;box-shadow:none}.button.is-link.is-inverted{background-color:#fff;color:#3273dc}.button.is-link.is-inverted:hover{background-color:#f2f2f2}.button.is-link.is-inverted[disabled]{background-color:#fff;border-color:transparent;box-shadow:none;color:#3273dc}.button.is-link.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-link.is-outlined{background-color:transparent;border-color:#3273dc;color:#3273dc}.button.is-link.is-outlined:focus,.button.is-link.is-outlined:hover{background-color:#3273dc;border-color:#3273dc;color:#fff}.button.is-link.is-outlined.is-loading:after{border-color:transparent transparent #3273dc #3273dc!important}.button.is-link.is-outlined[disabled]{background-color:transparent;border-color:#3273dc;box-shadow:none;color:#3273dc}.button.is-link.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-link.is-inverted.is-outlined:focus,.button.is-link.is-inverted.is-outlined:hover{background-color:#fff;color:#3273dc}.button.is-link.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#fff;box-shadow:none;color:#fff}.button.is-info{background-color:#209cee;border-color:transparent;color:#fff}.button.is-info.is-hovered,.button.is-info:hover{background-color:#1496ed;border-color:transparent;color:#fff}.button.is-info.is-focused,.button.is-info:focus{border-color:transparent;color:#fff}.button.is-info.is-focused:not(:active),.button.is-info:focus:not(:active){box-shadow:0 0 0 .125em rgba(32,156,238,.25)}.button.is-info.is-active,.button.is-info:active{background-color:#118fe4;border-color:transparent;color:#fff}.button.is-info[disabled]{background-color:#209cee;border-color:transparent;box-shadow:none}.button.is-info.is-inverted{background-color:#fff;color:#209cee}.button.is-info.is-inverted:hover{background-color:#f2f2f2}.button.is-info.is-inverted[disabled]{background-color:#fff;border-color:transparent;box-shadow:none;color:#209cee}.button.is-info.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-info.is-outlined{background-color:transparent;border-color:#209cee;color:#209cee}.button.is-info.is-outlined:focus,.button.is-info.is-outlined:hover{background-color:#209cee;border-color:#209cee;color:#fff}.button.is-info.is-outlined.is-loading:after{border-color:transparent transparent #209cee #209cee!important}.button.is-info.is-outlined[disabled]{background-color:transparent;border-color:#209cee;box-shadow:none;color:#209cee}.button.is-info.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-info.is-inverted.is-outlined:focus,.button.is-info.is-inverted.is-outlined:hover{background-color:#fff;color:#209cee}.button.is-info.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#fff;box-shadow:none;color:#fff}.button.is-success{background-color:#23d160;border-color:transparent;color:#fff}.button.is-success.is-hovered,.button.is-success:hover{background-color:#22c65b;border-color:transparent;color:#fff}.button.is-success.is-focused,.button.is-success:focus{border-color:transparent;color:#fff}.button.is-success.is-focused:not(:active),.button.is-success:focus:not(:active){box-shadow:0 0 0 .125em rgba(35,209,96,.25)}.button.is-success.is-active,.button.is-success:active{background-color:#20bc56;border-color:transparent;color:#fff}.button.is-success[disabled]{background-color:#23d160;border-color:transparent;box-shadow:none}.button.is-success.is-inverted{background-color:#fff;color:#23d160}.button.is-success.is-inverted:hover{background-color:#f2f2f2}.button.is-success.is-inverted[disabled]{background-color:#fff;border-color:transparent;box-shadow:none;color:#23d160}.button.is-success.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-success.is-outlined{background-color:transparent;border-color:#23d160;color:#23d160}.button.is-success.is-outlined:focus,.button.is-success.is-outlined:hover{background-color:#23d160;border-color:#23d160;color:#fff}.button.is-success.is-outlined.is-loading:after{border-color:transparent transparent #23d160 #23d160!important}.button.is-success.is-outlined[disabled]{background-color:transparent;border-color:#23d160;box-shadow:none;color:#23d160}.button.is-success.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-success.is-inverted.is-outlined:focus,.button.is-success.is-inverted.is-outlined:hover{background-color:#fff;color:#23d160}.button.is-success.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#fff;box-shadow:none;color:#fff}.button.is-warning{background-color:#ffdd57;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-hovered,.button.is-warning:hover{background-color:#ffdb4a;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-focused,.button.is-warning:focus{border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-focused:not(:active),.button.is-warning:focus:not(:active){box-shadow:0 0 0 .125em rgba(255,221,87,.25)}.button.is-warning.is-active,.button.is-warning:active{background-color:#ffd83d;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning[disabled]{background-color:#ffdd57;border-color:transparent;box-shadow:none}.button.is-warning.is-inverted{color:#ffdd57}.button.is-warning.is-inverted,.button.is-warning.is-inverted:hover{background-color:rgba(0,0,0,.7)}.button.is-warning.is-inverted[disabled]{background-color:rgba(0,0,0,.7);border-color:transparent;box-shadow:none;color:#ffdd57}.button.is-warning.is-loading:after{border-color:transparent transparent rgba(0,0,0,.7) rgba(0,0,0,.7)!important}.button.is-warning.is-outlined{background-color:transparent;border-color:#ffdd57;color:#ffdd57}.button.is-warning.is-outlined:focus,.button.is-warning.is-outlined:hover{background-color:#ffdd57;border-color:#ffdd57;color:rgba(0,0,0,.7)}.button.is-warning.is-outlined.is-loading:after{border-color:transparent transparent #ffdd57 #ffdd57!important}.button.is-warning.is-outlined[disabled]{background-color:transparent;border-color:#ffdd57;box-shadow:none;color:#ffdd57}.button.is-warning.is-inverted.is-outlined{background-color:transparent;border-color:rgba(0,0,0,.7);color:rgba(0,0,0,.7)}.button.is-warning.is-inverted.is-outlined:focus,.button.is-warning.is-inverted.is-outlined:hover{background-color:rgba(0,0,0,.7);color:#ffdd57}.button.is-warning.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:rgba(0,0,0,.7);box-shadow:none;color:rgba(0,0,0,.7)}.button.is-danger{background-color:#ff3860;border-color:transparent;color:#fff}.button.is-danger.is-hovered,.button.is-danger:hover{background-color:#ff2b56;border-color:transparent;color:#fff}.button.is-danger.is-focused,.button.is-danger:focus{border-color:transparent;color:#fff}.button.is-danger.is-focused:not(:active),.button.is-danger:focus:not(:active){box-shadow:0 0 0 .125em rgba(255,56,96,.25)}.button.is-danger.is-active,.button.is-danger:active{background-color:#ff1f4b;border-color:transparent;color:#fff}.button.is-danger[disabled]{background-color:#ff3860;border-color:transparent;box-shadow:none}.button.is-danger.is-inverted{background-color:#fff;color:#ff3860}.button.is-danger.is-inverted:hover{background-color:#f2f2f2}.button.is-danger.is-inverted[disabled]{background-color:#fff;border-color:transparent;box-shadow:none;color:#ff3860}.button.is-danger.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-danger.is-outlined{background-color:transparent;border-color:#ff3860;color:#ff3860}.button.is-danger.is-outlined:focus,.button.is-danger.is-outlined:hover{background-color:#ff3860;border-color:#ff3860;color:#fff}.button.is-danger.is-outlined.is-loading:after{border-color:transparent transparent #ff3860 #ff3860!important}.button.is-danger.is-outlined[disabled]{background-color:transparent;border-color:#ff3860;box-shadow:none;color:#ff3860}.button.is-danger.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-danger.is-inverted.is-outlined:focus,.button.is-danger.is-inverted.is-outlined:hover{background-color:#fff;color:#ff3860}.button.is-danger.is-inverted.is-outlined[disabled]{background-color:transparent;border-color:#fff;box-shadow:none;color:#fff}.button.is-small{border-radius:2px;font-size:.75rem}.button.is-medium{font-size:1.25rem}.button.is-large{font-size:1.5rem}.button[disabled]{background-color:#fff;border-color:#dbdbdb;box-shadow:none;opacity:.5}.button.is-fullwidth{display:flex;width:100%}.button.is-loading{color:transparent!important;pointer-events:none}.button.is-loading:after{animation:a .5s infinite linear;border:2px solid #dbdbdb;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:1em;position:relative;width:1em;position:absolute;left:calc(50% - 0.5em);top:calc(50% - 0.5em);position:absolute!important}.button.is-static{background-color:#f5f5f5;border-color:#dbdbdb;color:#7a7a7a;box-shadow:none;pointer-events:none}.button.is-rounded{border-radius:290486px;padding-left:1em;padding-right:1em}.buttons{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-start}.buttons .button{margin-bottom:.5rem}.buttons .button:not(:last-child){margin-right:.5rem}.buttons:last-child{margin-bottom:-.5rem}.buttons:not(:last-child){margin-bottom:1rem}.buttons.has-addons .button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.buttons.has-addons .button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.buttons.has-addons .button:last-child{margin-right:0}.buttons.has-addons .button.is-hovered,.buttons.has-addons .button:hover{z-index:2}.buttons.has-addons .button.is-active,.buttons.has-addons .button.is-focused,.buttons.has-addons .button.is-selected,.buttons.has-addons .button:active,.buttons.has-addons .button:focus{z-index:3}.buttons.has-addons .button.is-active:hover,.buttons.has-addons .button.is-focused:hover,.buttons.has-addons .button.is-selected:hover,.buttons.has-addons .button:active:hover,.buttons.has-addons .button:focus:hover{z-index:4}.buttons.is-centered{justify-content:center}.buttons.is-right{justify-content:flex-end}.input,.textarea{-moz-appearance:none;-webkit-appearance:none;align-items:center;border:1px solid transparent;border-radius:3px;box-shadow:none;display:inline-flex;font-size:1rem;height:2.25em;justify-content:flex-start;line-height:1.5;padding:calc(.375em - 1px) calc(.625em - 1px);position:relative;vertical-align:top;background-color:#fff;border-color:#dbdbdb;color:#363636;box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1);max-width:100%;width:100%}.input.is-active,.input.is-focused,.input:active,.input:focus,.textarea.is-active,.textarea.is-focused,.textarea:active,.textarea:focus{outline:none}.input[disabled],.textarea[disabled]{cursor:not-allowed}.input::-moz-placeholder,.textarea::-moz-placeholder{color:rgba(54,54,54,.3)}.input::-webkit-input-placeholder,.textarea::-webkit-input-placeholder{color:rgba(54,54,54,.3)}.input:-moz-placeholder,.textarea:-moz-placeholder{color:rgba(54,54,54,.3)}.input:-ms-input-placeholder,.textarea:-ms-input-placeholder{color:rgba(54,54,54,.3)}.input.is-hovered,.input:hover,.textarea.is-hovered,.textarea:hover{border-color:#b5b5b5}.input.is-active,.input.is-focused,.input:active,.input:focus,.textarea.is-active,.textarea.is-focused,.textarea:active,.textarea:focus{border-color:#3273dc;box-shadow:0 0 0 .125em rgba(50,115,220,.25)}.input[disabled],.textarea[disabled]{background-color:#f5f5f5;border-color:#f5f5f5;box-shadow:none;color:#7a7a7a}.input[disabled]::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:hsla(0,0%,48%,.3)}.input[disabled]::-webkit-input-placeholder,.textarea[disabled]::-webkit-input-placeholder{color:hsla(0,0%,48%,.3)}.input[disabled]:-moz-placeholder,.textarea[disabled]:-moz-placeholder{color:hsla(0,0%,48%,.3)}.input[disabled]:-ms-input-placeholder,.textarea[disabled]:-ms-input-placeholder{color:hsla(0,0%,48%,.3)}.input[readonly],.textarea[readonly]{box-shadow:none}.input.is-white,.textarea.is-white{border-color:#fff}.input.is-white.is-active,.input.is-white.is-focused,.input.is-white:active,.input.is-white:focus,.textarea.is-white.is-active,.textarea.is-white.is-focused,.textarea.is-white:active,.textarea.is-white:focus{box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.input.is-black,.textarea.is-black{border-color:#0a0a0a}.input.is-black.is-active,.input.is-black.is-focused,.input.is-black:active,.input.is-black:focus,.textarea.is-black.is-active,.textarea.is-black.is-focused,.textarea.is-black:active,.textarea.is-black:focus{box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.input.is-light,.textarea.is-light{border-color:#f5f5f5}.input.is-light.is-active,.input.is-light.is-focused,.input.is-light:active,.input.is-light:focus,.textarea.is-light.is-active,.textarea.is-light.is-focused,.textarea.is-light:active,.textarea.is-light:focus{box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.input.is-dark,.textarea.is-dark{border-color:#363636}.input.is-dark.is-active,.input.is-dark.is-focused,.input.is-dark:active,.input.is-dark:focus,.textarea.is-dark.is-active,.textarea.is-dark.is-focused,.textarea.is-dark:active,.textarea.is-dark:focus{box-shadow:0 0 0 .125em rgba(54,54,54,.25)}.input.is-primary,.textarea.is-primary{border-color:#00d1b2}.input.is-primary.is-active,.input.is-primary.is-focused,.input.is-primary:active,.input.is-primary:focus,.textarea.is-primary.is-active,.textarea.is-primary.is-focused,.textarea.is-primary:active,.textarea.is-primary:focus{box-shadow:0 0 0 .125em rgba(0,209,178,.25)}.input.is-link,.textarea.is-link{border-color:#3273dc}.input.is-link.is-active,.input.is-link.is-focused,.input.is-link:active,.input.is-link:focus,.textarea.is-link.is-active,.textarea.is-link.is-focused,.textarea.is-link:active,.textarea.is-link:focus{box-shadow:0 0 0 .125em rgba(50,115,220,.25)}.input.is-info,.textarea.is-info{border-color:#209cee}.input.is-info.is-active,.input.is-info.is-focused,.input.is-info:active,.input.is-info:focus,.textarea.is-info.is-active,.textarea.is-info.is-focused,.textarea.is-info:active,.textarea.is-info:focus{box-shadow:0 0 0 .125em rgba(32,156,238,.25)}.input.is-success,.textarea.is-success{border-color:#23d160}.input.is-success.is-active,.input.is-success.is-focused,.input.is-success:active,.input.is-success:focus,.textarea.is-success.is-active,.textarea.is-success.is-focused,.textarea.is-success:active,.textarea.is-success:focus{box-shadow:0 0 0 .125em rgba(35,209,96,.25)}.input.is-warning,.textarea.is-warning{border-color:#ffdd57}.input.is-warning.is-active,.input.is-warning.is-focused,.input.is-warning:active,.input.is-warning:focus,.textarea.is-warning.is-active,.textarea.is-warning.is-focused,.textarea.is-warning:active,.textarea.is-warning:focus{box-shadow:0 0 0 .125em rgba(255,221,87,.25)}.input.is-danger,.textarea.is-danger{border-color:#ff3860}.input.is-danger.is-active,.input.is-danger.is-focused,.input.is-danger:active,.input.is-danger:focus,.textarea.is-danger.is-active,.textarea.is-danger.is-focused,.textarea.is-danger:active,.textarea.is-danger:focus{box-shadow:0 0 0 .125em rgba(255,56,96,.25)}.input.is-small,.textarea.is-small{border-radius:2px;font-size:.75rem}.input.is-medium,.textarea.is-medium{font-size:1.25rem}.input.is-large,.textarea.is-large{font-size:1.5rem}.input.is-fullwidth,.textarea.is-fullwidth{display:block;width:100%}.input.is-inline,.textarea.is-inline{display:inline;width:auto}.input.is-rounded{border-radius:290486px;padding-left:1em;padding-right:1em}.input.is-static{background-color:transparent;border-color:transparent;box-shadow:none;padding-left:0;padding-right:0}.textarea{display:block;max-width:100%;min-width:100%;padding:.625em;resize:vertical}.textarea:not([rows]){max-height:600px;min-height:120px}.textarea[rows]{height:unset}.textarea.has-fixed-size{resize:none}.checkbox,.radio{cursor:pointer;display:inline-block;line-height:1.25;position:relative}.checkbox input,.radio input{cursor:pointer}.checkbox:hover,.radio:hover{color:#363636}.checkbox[disabled],.radio[disabled]{color:#7a7a7a;cursor:not-allowed}.radio+.radio{margin-left:.5em}.select{display:inline-block;max-width:100%;position:relative;vertical-align:top}.select:not(.is-multiple){height:2.25em}.select:not(.is-multiple):after{border:1px solid #3273dc;border-right:0;border-top:0;content:" ";display:block;height:.5em;pointer-events:none;position:absolute;transform:rotate(-45deg);transform-origin:center;width:.5em;margin-top:-.375em;right:1.125em;top:50%;z-index:4}.select.is-rounded select{border-radius:290486px;padding-left:1em}.select select{-moz-appearance:none;-webkit-appearance:none;align-items:center;border:1px solid transparent;border-radius:3px;box-shadow:none;display:inline-flex;font-size:1rem;height:2.25em;justify-content:flex-start;line-height:1.5;padding:calc(.375em - 1px) calc(.625em - 1px);position:relative;vertical-align:top;background-color:#fff;border-color:#dbdbdb;color:#363636;cursor:pointer;display:block;font-size:1em;max-width:100%;outline:none}.select select.is-active,.select select.is-focused,.select select:active,.select select:focus{outline:none}.select select[disabled]{cursor:not-allowed}.select select::-moz-placeholder{color:rgba(54,54,54,.3)}.select select::-webkit-input-placeholder{color:rgba(54,54,54,.3)}.select select:-moz-placeholder{color:rgba(54,54,54,.3)}.select select:-ms-input-placeholder{color:rgba(54,54,54,.3)}.select select.is-hovered,.select select:hover{border-color:#b5b5b5}.select select.is-active,.select select.is-focused,.select select:active,.select select:focus{border-color:#3273dc;box-shadow:0 0 0 .125em rgba(50,115,220,.25)}.select select[disabled]{background-color:#f5f5f5;border-color:#f5f5f5;box-shadow:none;color:#7a7a7a}.select select[disabled]::-moz-placeholder{color:hsla(0,0%,48%,.3)}.select select[disabled]::-webkit-input-placeholder{color:hsla(0,0%,48%,.3)}.select select[disabled]:-moz-placeholder{color:hsla(0,0%,48%,.3)}.select select[disabled]:-ms-input-placeholder{color:hsla(0,0%,48%,.3)}.select select::-ms-expand{display:none}.select select[disabled]:hover{border-color:#f5f5f5}.select select:not([multiple]){padding-right:2.5em}.select select[multiple]{height:unset;padding:0}.select select[multiple] option{padding:.5em 1em}.select:hover:after{border-color:#363636}.select.is-white select{border-color:#fff}.select.is-white select.is-active,.select.is-white select.is-focused,.select.is-white select:active,.select.is-white select:focus{box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.select.is-black select{border-color:#0a0a0a}.select.is-black select.is-active,.select.is-black select.is-focused,.select.is-black select:active,.select.is-black select:focus{box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.select.is-light select{border-color:#f5f5f5}.select.is-light select.is-active,.select.is-light select.is-focused,.select.is-light select:active,.select.is-light select:focus{box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.select.is-dark select{border-color:#363636}.select.is-dark select.is-active,.select.is-dark select.is-focused,.select.is-dark select:active,.select.is-dark select:focus{box-shadow:0 0 0 .125em rgba(54,54,54,.25)}.select.is-primary select{border-color:#00d1b2}.select.is-primary select.is-active,.select.is-primary select.is-focused,.select.is-primary select:active,.select.is-primary select:focus{box-shadow:0 0 0 .125em rgba(0,209,178,.25)}.select.is-link select{border-color:#3273dc}.select.is-link select.is-active,.select.is-link select.is-focused,.select.is-link select:active,.select.is-link select:focus{box-shadow:0 0 0 .125em rgba(50,115,220,.25)}.select.is-info select{border-color:#209cee}.select.is-info select.is-active,.select.is-info select.is-focused,.select.is-info select:active,.select.is-info select:focus{box-shadow:0 0 0 .125em rgba(32,156,238,.25)}.select.is-success select{border-color:#23d160}.select.is-success select.is-active,.select.is-success select.is-focused,.select.is-success select:active,.select.is-success select:focus{box-shadow:0 0 0 .125em rgba(35,209,96,.25)}.select.is-warning select{border-color:#ffdd57}.select.is-warning select.is-active,.select.is-warning select.is-focused,.select.is-warning select:active,.select.is-warning select:focus{box-shadow:0 0 0 .125em rgba(255,221,87,.25)}.select.is-danger select{border-color:#ff3860}.select.is-danger select.is-active,.select.is-danger select.is-focused,.select.is-danger select:active,.select.is-danger select:focus{box-shadow:0 0 0 .125em rgba(255,56,96,.25)}.select.is-small{border-radius:2px;font-size:.75rem}.select.is-medium{font-size:1.25rem}.select.is-large{font-size:1.5rem}.select.is-disabled:after{border-color:#7a7a7a}.select.is-fullwidth,.select.is-fullwidth select{width:100%}.select.is-loading:after{animation:a .5s infinite linear;border:2px solid #dbdbdb;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:1em;position:relative;width:1em;margin-top:0;position:absolute;right:.625em;top:.625em;transform:none}.select.is-loading.is-small:after{font-size:.75rem}.select.is-loading.is-medium:after{font-size:1.25rem}.select.is-loading.is-large:after{font-size:1.5rem}.file{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:stretch;display:flex;justify-content:flex-start;position:relative}.file.is-white .file-cta{background-color:#fff;border-color:transparent;color:#0a0a0a}.file.is-white.is-hovered .file-cta,.file.is-white:hover .file-cta{background-color:#f9f9f9;border-color:transparent;color:#0a0a0a}.file.is-white.is-focused .file-cta,.file.is-white:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em hsla(0,0%,100%,.25);color:#0a0a0a}.file.is-white.is-active .file-cta,.file.is-white:active .file-cta{background-color:#f2f2f2;border-color:transparent;color:#0a0a0a}.file.is-black .file-cta{background-color:#0a0a0a;border-color:transparent;color:#fff}.file.is-black.is-hovered .file-cta,.file.is-black:hover .file-cta{background-color:#040404;border-color:transparent;color:#fff}.file.is-black.is-focused .file-cta,.file.is-black:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em hsla(0,0%,4%,.25);color:#fff}.file.is-black.is-active .file-cta,.file.is-black:active .file-cta{background-color:#000;border-color:transparent;color:#fff}.file.is-light .file-cta{background-color:#f5f5f5;border-color:transparent;color:#363636}.file.is-light.is-hovered .file-cta,.file.is-light:hover .file-cta{background-color:#eee;border-color:transparent;color:#363636}.file.is-light.is-focused .file-cta,.file.is-light:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em hsla(0,0%,96%,.25);color:#363636}.file.is-light.is-active .file-cta,.file.is-light:active .file-cta{background-color:#e8e8e8;border-color:transparent;color:#363636}.file.is-dark .file-cta{background-color:#363636;border-color:transparent;color:#f5f5f5}.file.is-dark.is-hovered .file-cta,.file.is-dark:hover .file-cta{background-color:#2f2f2f;border-color:transparent;color:#f5f5f5}.file.is-dark.is-focused .file-cta,.file.is-dark:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em rgba(54,54,54,.25);color:#f5f5f5}.file.is-dark.is-active .file-cta,.file.is-dark:active .file-cta{background-color:#292929;border-color:transparent;color:#f5f5f5}.file.is-primary .file-cta{background-color:#00d1b2;border-color:transparent;color:#fff}.file.is-primary.is-hovered .file-cta,.file.is-primary:hover .file-cta{background-color:#00c4a7;border-color:transparent;color:#fff}.file.is-primary.is-focused .file-cta,.file.is-primary:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em rgba(0,209,178,.25);color:#fff}.file.is-primary.is-active .file-cta,.file.is-primary:active .file-cta{background-color:#00b89c;border-color:transparent;color:#fff}.file.is-link .file-cta{background-color:#3273dc;border-color:transparent;color:#fff}.file.is-link.is-hovered .file-cta,.file.is-link:hover .file-cta{background-color:#276cda;border-color:transparent;color:#fff}.file.is-link.is-focused .file-cta,.file.is-link:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em rgba(50,115,220,.25);color:#fff}.file.is-link.is-active .file-cta,.file.is-link:active .file-cta{background-color:#2366d1;border-color:transparent;color:#fff}.file.is-info .file-cta{background-color:#209cee;border-color:transparent;color:#fff}.file.is-info.is-hovered .file-cta,.file.is-info:hover .file-cta{background-color:#1496ed;border-color:transparent;color:#fff}.file.is-info.is-focused .file-cta,.file.is-info:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em rgba(32,156,238,.25);color:#fff}.file.is-info.is-active .file-cta,.file.is-info:active .file-cta{background-color:#118fe4;border-color:transparent;color:#fff}.file.is-success .file-cta{background-color:#23d160;border-color:transparent;color:#fff}.file.is-success.is-hovered .file-cta,.file.is-success:hover .file-cta{background-color:#22c65b;border-color:transparent;color:#fff}.file.is-success.is-focused .file-cta,.file.is-success:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em rgba(35,209,96,.25);color:#fff}.file.is-success.is-active .file-cta,.file.is-success:active .file-cta{background-color:#20bc56;border-color:transparent;color:#fff}.file.is-warning .file-cta{background-color:#ffdd57;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-warning.is-hovered .file-cta,.file.is-warning:hover .file-cta{background-color:#ffdb4a;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-warning.is-focused .file-cta,.file.is-warning:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em rgba(255,221,87,.25);color:rgba(0,0,0,.7)}.file.is-warning.is-active .file-cta,.file.is-warning:active .file-cta{background-color:#ffd83d;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-danger .file-cta{background-color:#ff3860;border-color:transparent;color:#fff}.file.is-danger.is-hovered .file-cta,.file.is-danger:hover .file-cta{background-color:#ff2b56;border-color:transparent;color:#fff}.file.is-danger.is-focused .file-cta,.file.is-danger:focus .file-cta{border-color:transparent;box-shadow:0 0 .5em rgba(255,56,96,.25);color:#fff}.file.is-danger.is-active .file-cta,.file.is-danger:active .file-cta{background-color:#ff1f4b;border-color:transparent;color:#fff}.file.is-small{font-size:.75rem}.file.is-medium{font-size:1.25rem}.file.is-medium .file-icon .fa{font-size:21px}.file.is-large{font-size:1.5rem}.file.is-large .file-icon .fa{font-size:28px}.file.has-name .file-cta{border-bottom-right-radius:0;border-top-right-radius:0}.file.has-name .file-name{border-bottom-left-radius:0;border-top-left-radius:0}.file.has-name.is-empty .file-cta{border-radius:3px}.file.has-name.is-empty .file-name{display:none}.file.is-boxed .file-label{flex-direction:column}.file.is-boxed .file-cta{flex-direction:column;height:auto;padding:1em 3em}.file.is-boxed .file-name{border-width:0 1px 1px}.file.is-boxed .file-icon{height:1.5em;width:1.5em}.file.is-boxed .file-icon .fa{font-size:21px}.file.is-boxed.is-small .file-icon .fa{font-size:14px}.file.is-boxed.is-medium .file-icon .fa{font-size:28px}.file.is-boxed.is-large .file-icon .fa{font-size:35px}.file.is-boxed.has-name .file-cta{border-radius:3px 3px 0 0}.file.is-boxed.has-name .file-name{border-radius:0 0 3px 3px;border-width:0 1px 1px}.file.is-centered{justify-content:center}.file.is-fullwidth .file-label{width:100%}.file.is-fullwidth .file-name{flex-grow:1;max-width:none}.file.is-right{justify-content:flex-end}.file.is-right .file-cta{border-radius:0 3px 3px 0}.file.is-right .file-name{border-radius:3px 0 0 3px;border-width:1px 0 1px 1px;order:-1}.file-label{align-items:stretch;display:flex;cursor:pointer;justify-content:flex-start;overflow:hidden;position:relative}.file-label:hover .file-cta{background-color:#eee;color:#363636}.file-label:hover .file-name{border-color:#d5d5d5}.file-label:active .file-cta{background-color:#e8e8e8;color:#363636}.file-label:active .file-name{border-color:#cfcfcf}.file-input{height:.01em;left:0;outline:none;position:absolute;top:0;width:.01em}.file-cta,.file-name{-moz-appearance:none;-webkit-appearance:none;align-items:center;border:1px solid transparent;box-shadow:none;display:inline-flex;font-size:1rem;height:2.25em;justify-content:flex-start;line-height:1.5;padding-left:calc(.625em - 1px);padding-right:calc(.625em - 1px);position:relative;vertical-align:top;border-color:#dbdbdb;border-radius:3px;font-size:1em;padding:calc(.375em - 1px) 1em;white-space:nowrap}.file-cta.is-active,.file-cta.is-focused,.file-cta:active,.file-cta:focus,.file-name.is-active,.file-name.is-focused,.file-name:active,.file-name:focus{outline:none}.file-cta[disabled],.file-name[disabled]{cursor:not-allowed}.file-cta{background-color:#f5f5f5;color:#4a4a4a}.file-name{border-color:#dbdbdb;border-style:solid;border-width:1px 1px 1px 0;display:block;max-width:16em;overflow:hidden;text-align:left;text-overflow:ellipsis}.file-icon{align-items:center;display:flex;height:1em;justify-content:center;margin-right:.5em;width:1em}.file-icon .fa{font-size:14px}.label{color:#363636;display:block;font-size:1rem;font-weight:700}.label:not(:last-child){margin-bottom:.5em}.label.is-small{font-size:.75rem}.label.is-medium{font-size:1.25rem}.label.is-large{font-size:1.5rem}.help{display:block;font-size:.75rem;margin-top:.25rem}.help.is-white{color:#fff}.help.is-black{color:#0a0a0a}.help.is-light{color:#f5f5f5}.help.is-dark{color:#363636}.help.is-primary{color:#00d1b2}.help.is-link{color:#3273dc}.help.is-info{color:#209cee}.help.is-success{color:#23d160}.help.is-warning{color:#ffdd57}.help.is-danger{color:#ff3860}.field:not(:last-child){margin-bottom:.75rem}.field.has-addons{display:flex;justify-content:flex-start}.field.has-addons .control:not(:last-child){margin-right:-1px}.field.has-addons .control:not(:first-child):not(:last-child) .button,.field.has-addons .control:not(:first-child):not(:last-child) .input,.field.has-addons .control:not(:first-child):not(:last-child) .select select{border-radius:0}.field.has-addons .control:first-child .button,.field.has-addons .control:first-child .input,.field.has-addons .control:first-child .select select{border-bottom-right-radius:0;border-top-right-radius:0}.field.has-addons .control:last-child .button,.field.has-addons .control:last-child .input,.field.has-addons .control:last-child .select select{border-bottom-left-radius:0;border-top-left-radius:0}.field.has-addons .control .button.is-hovered,.field.has-addons .control .button:hover,.field.has-addons .control .input.is-hovered,.field.has-addons .control .input:hover,.field.has-addons .control .select select.is-hovered,.field.has-addons .control .select select:hover{z-index:2}.field.has-addons .control .button.is-active,.field.has-addons .control .button.is-focused,.field.has-addons .control .button:active,.field.has-addons .control .button:focus,.field.has-addons .control .input.is-active,.field.has-addons .control .input.is-focused,.field.has-addons .control .input:active,.field.has-addons .control .input:focus,.field.has-addons .control .select select.is-active,.field.has-addons .control .select select.is-focused,.field.has-addons .control .select select:active,.field.has-addons .control .select select:focus{z-index:3}.field.has-addons .control .button.is-active:hover,.field.has-addons .control .button.is-focused:hover,.field.has-addons .control .button:active:hover,.field.has-addons .control .button:focus:hover,.field.has-addons .control .input.is-active:hover,.field.has-addons .control .input.is-focused:hover,.field.has-addons .control .input:active:hover,.field.has-addons .control .input:focus:hover,.field.has-addons .control .select select.is-active:hover,.field.has-addons .control .select select.is-focused:hover,.field.has-addons .control .select select:active:hover,.field.has-addons .control .select select:focus:hover{z-index:4}.field.has-addons .control.is-expanded{flex-grow:1}.field.has-addons.has-addons-centered{justify-content:center}.field.has-addons.has-addons-right{justify-content:flex-end}.field.has-addons.has-addons-fullwidth .control{flex-grow:1;flex-shrink:0}.field.is-grouped{display:flex;justify-content:flex-start}.field.is-grouped>.control{flex-shrink:0}.field.is-grouped>.control:not(:last-child){margin-bottom:0;margin-right:.75rem}.field.is-grouped>.control.is-expanded{flex-grow:1;flex-shrink:1}.field.is-grouped.is-grouped-centered{justify-content:center}.field.is-grouped.is-grouped-right{justify-content:flex-end}.field.is-grouped.is-grouped-multiline{flex-wrap:wrap}.field.is-grouped.is-grouped-multiline>.control:last-child,.field.is-grouped.is-grouped-multiline>.control:not(:last-child){margin-bottom:.75rem}.field.is-grouped.is-grouped-multiline:last-child{margin-bottom:-.75rem}.field.is-grouped.is-grouped-multiline:not(:last-child){margin-bottom:0}@media print,screen and (min-width:769px){.field.is-horizontal{display:flex}}.field-label .label{font-size:inherit}@media screen and (max-width:768px){.field-label{margin-bottom:.5rem}}@media print,screen and (min-width:769px){.field-label{flex-basis:0;flex-grow:1;flex-shrink:0;margin-right:1.5rem;text-align:right}.field-label.is-small{font-size:.75rem;padding-top:.375em}.field-label.is-normal{padding-top:.375em}.field-label.is-medium{font-size:1.25rem;padding-top:.375em}.field-label.is-large{font-size:1.5rem;padding-top:.375em}}.field-body .field .field{margin-bottom:0}@media print,screen and (min-width:769px){.field-body{display:flex;flex-basis:0;flex-grow:5;flex-shrink:1}.field-body .field{margin-bottom:0}.field-body>.field{flex-shrink:1}.field-body>.field:not(.is-narrow){flex-grow:1}.field-body>.field:not(:last-child){margin-right:.75rem}}.control{font-size:1rem;position:relative;text-align:left}.control.has-icon .icon{color:#dbdbdb;height:2.25em;pointer-events:none;position:absolute;top:0;width:2.25em;z-index:4}.control.has-icon .input:focus+.icon{color:#7a7a7a}.control.has-icon .input.is-small+.icon{font-size:.75rem}.control.has-icon .input.is-medium+.icon{font-size:1.25rem}.control.has-icon .input.is-large+.icon{font-size:1.5rem}.control.has-icon:not(.has-icon-right) .icon{left:0}.control.has-icon:not(.has-icon-right) .input{padding-left:2.25em}.control.has-icon.has-icon-right .icon{right:0}.control.has-icon.has-icon-right .input{padding-right:2.25em}.control.has-icons-left .input:focus~.icon,.control.has-icons-left .select:focus~.icon,.control.has-icons-right .input:focus~.icon,.control.has-icons-right .select:focus~.icon{color:#7a7a7a}.control.has-icons-left .input.is-small~.icon,.control.has-icons-left .select.is-small~.icon,.control.has-icons-right .input.is-small~.icon,.control.has-icons-right .select.is-small~.icon{font-size:.75rem}.control.has-icons-left .input.is-medium~.icon,.control.has-icons-left .select.is-medium~.icon,.control.has-icons-right .input.is-medium~.icon,.control.has-icons-right .select.is-medium~.icon{font-size:1.25rem}.control.has-icons-left .input.is-large~.icon,.control.has-icons-left .select.is-large~.icon,.control.has-icons-right .input.is-large~.icon,.control.has-icons-right .select.is-large~.icon{font-size:1.5rem}.control.has-icons-left .icon,.control.has-icons-right .icon{color:#dbdbdb;height:2.25em;pointer-events:none;position:absolute;top:0;width:2.25em;z-index:4}.control.has-icons-left .input,.control.has-icons-left .select select{padding-left:2.25em}.control.has-icons-left .icon.is-left{left:0}.control.has-icons-right .input,.control.has-icons-right .select select{padding-right:2.25em}.control.has-icons-right .icon.is-right{right:0}.control.is-loading:after{animation:a .5s infinite linear;border:2px solid #dbdbdb;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:1em;position:relative;width:1em;position:absolute!important;right:.625em;top:.625em;z-index:4}.control.is-loading.is-small:after{font-size:.75rem}.control.is-loading.is-medium:after{font-size:1.25rem}.control.is-loading.is-large:after{font-size:1.5rem}.progress{-moz-appearance:none;-webkit-appearance:none;border:none;border-radius:290486px;display:block;height:1rem;overflow:hidden;padding:0;width:100%}.progress:not(:last-child){margin-bottom:1.5rem}.progress::-webkit-progress-bar{background-color:#dbdbdb}.progress::-webkit-progress-value{background-color:#4a4a4a}.progress::-moz-progress-bar{background-color:#4a4a4a}.progress::-ms-fill{background-color:#4a4a4a;border:none}.progress.is-white::-webkit-progress-value{background-color:#fff}.progress.is-white::-moz-progress-bar{background-color:#fff}.progress.is-white::-ms-fill{background-color:#fff}.progress.is-black::-webkit-progress-value{background-color:#0a0a0a}.progress.is-black::-moz-progress-bar{background-color:#0a0a0a}.progress.is-black::-ms-fill{background-color:#0a0a0a}.progress.is-light::-webkit-progress-value{background-color:#f5f5f5}.progress.is-light::-moz-progress-bar{background-color:#f5f5f5}.progress.is-light::-ms-fill{background-color:#f5f5f5}.progress.is-dark::-webkit-progress-value{background-color:#363636}.progress.is-dark::-moz-progress-bar{background-color:#363636}.progress.is-dark::-ms-fill{background-color:#363636}.progress.is-primary::-webkit-progress-value{background-color:#00d1b2}.progress.is-primary::-moz-progress-bar{background-color:#00d1b2}.progress.is-primary::-ms-fill{background-color:#00d1b2}.progress.is-link::-webkit-progress-value{background-color:#3273dc}.progress.is-link::-moz-progress-bar{background-color:#3273dc}.progress.is-link::-ms-fill{background-color:#3273dc}.progress.is-info::-webkit-progress-value{background-color:#209cee}.progress.is-info::-moz-progress-bar{background-color:#209cee}.progress.is-info::-ms-fill{background-color:#209cee}.progress.is-success::-webkit-progress-value{background-color:#23d160}.progress.is-success::-moz-progress-bar{background-color:#23d160}.progress.is-success::-ms-fill{background-color:#23d160}.progress.is-warning::-webkit-progress-value{background-color:#ffdd57}.progress.is-warning::-moz-progress-bar{background-color:#ffdd57}.progress.is-warning::-ms-fill{background-color:#ffdd57}.progress.is-danger::-webkit-progress-value{background-color:#ff3860}.progress.is-danger::-moz-progress-bar{background-color:#ff3860}.progress.is-danger::-ms-fill{background-color:#ff3860}.progress.is-small{height:.75rem}.progress.is-medium{height:1.25rem}.progress.is-large{height:1.5rem}.modal{bottom:0;left:0;position:absolute;right:0;top:0;align-items:center;display:none;justify-content:center;overflow:hidden;position:fixed;z-index:40}.modal.is-active{display:flex}.modal-background{bottom:0;left:0;position:absolute;right:0;top:0;background-color:hsla(0,0%,4%,.86)}.modal-card,.modal-content{margin:0 20px;max-height:calc(100vh - 160px);overflow:auto;position:relative;width:100%}@media print,screen and (min-width:769px){.modal-card,.modal-content{margin:0 auto;max-height:calc(100vh - 40px);width:640px}}.modal-close{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-moz-appearance:none;-webkit-appearance:none;background-color:hsla(0,0%,4%,.2);border:none;border-radius:290486px;cursor:pointer;display:inline-block;flex-grow:0;flex-shrink:0;font-size:0;height:20px;max-height:20px;max-width:20px;min-height:20px;min-width:20px;outline:none;position:relative;vertical-align:top;width:20px;background:none;height:40px;position:fixed;right:20px;top:20px;width:40px}.modal-close:after,.modal-close:before{background-color:#fff;content:"";display:block;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) rotate(45deg);transform-origin:center center}.modal-close:before{height:2px;width:50%}.modal-close:after{height:50%;width:2px}.modal-close:focus,.modal-close:hover{background-color:hsla(0,0%,4%,.3)}.modal-close:active{background-color:hsla(0,0%,4%,.4)}.modal-close.is-small{height:16px;max-height:16px;max-width:16px;min-height:16px;min-width:16px;width:16px}.modal-close.is-medium{height:24px;max-height:24px;max-width:24px;min-height:24px;min-width:24px;width:24px}.modal-close.is-large{height:32px;max-height:32px;max-width:32px;min-height:32px;min-width:32px;width:32px}.modal-card{display:flex;flex-direction:column;max-height:calc(100vh - 40px);overflow:hidden}.modal-card-foot,.modal-card-head{align-items:center;background-color:#f5f5f5;display:flex;flex-shrink:0;justify-content:flex-start;padding:20px;position:relative}.modal-card-head{border-bottom:1px solid #dbdbdb;border-top-left-radius:5px;border-top-right-radius:5px}.modal-card-title{color:#363636;flex-grow:1;flex-shrink:0;font-size:1.5rem;line-height:1}.modal-card-foot{border-bottom-left-radius:5px;border-bottom-right-radius:5px;border-top:1px solid #dbdbdb}.modal-card-foot .button:not(:last-child){margin-right:10px}.modal-card-body{-webkit-overflow-scrolling:touch;background-color:#fff;flex-grow:1;flex-shrink:1;overflow:auto;padding:20px}body,html{height:100%;min-height:100%;margin:0;overflow:hidden}#terminal-container{width:auto;height:100%;margin:0 auto;padding:0;background-color:#2b2b2b}#terminal-container .terminal{padding:5px}#modal strong{color:#268bd2}#modal span{color:#2aa198}#modal header{font-weight:700;text-align:center;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #ddd}#status{margin-top:10px;text-align:center}#choose{padding-top:10px}#choose .file-name{border-color:transparent}#progress{padding-top:10px}#file-name{background-color:#fafffd;text-align:center}#progress progress{margin:10px 0}#progress{color:#93a1a1}#progress span{font-weight:700}</style></head><body><div id="terminal-container"></div><div class="modal" id="modal"><div class="modal-background"></div><div class="modal-content"><div class="box"><header id="header"></header><div id="status"><strong>Files remaining: </strong><span id="files-remaining"></span>, <strong>Bytes remaining: </strong><span id="bytes-remaining"></span></div><div id="choose" class="file has-name is-fullwidth"><label class="file-label"><input id="files" class="file-input" type="file" multiple="multiple"> <span class="file-cta"><strong class="file-label">Choose file(s)… </strong></span><span id="file-names" class="file-name"></span></label></div><div id="progress"><p id="file-name"></p><progress id="progress-bar" class="progress is-link" max="100"></progress><p id="progress-info"><span id="bytes-received">-</span>/<span id="bytes-file">-</span> (<span id="percent-received"></span>) transferred <a id="skip" class="button is-link is-small is-pulled-right">Skip</a></p></div></div></div></div><script src="auth_token.js"></script><script type="text/javascript">!function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=235)}([function(t,e,i){var n=i(3),r=i(10),s=i(14),o=i(31),a=i(17),l=function(t,e,i){var c,u,h,f,_=t&l.F,p=t&l.G,d=t&l.S,m=t&l.P,y=t&l.B,v=p?n:d?n[e]||(n[e]={}):(n[e]||{}).prototype,b=p?r:r[e]||(r[e]={}),g=b.prototype||(b.prototype={});for(c in p&&(i=e),i)h=((u=!_&&v&&void 0!==v[c])?v:i)[c],f=y&&u?a(h,n):m&&"function"==typeof h?a(Function.call,h):h,v&&o(v,c,h,t&l.U),b[c]!=h&&s(b,c,f),m&&g[c]!=h&&(g[c]=h)};n.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,t.exports=l},function(t,e,i){var n=i(71)("wks"),r=i(27),s=i(3).Symbol,o="function"==typeof s;(t.exports=function(t){return n[t]||(n[t]=o&&s[t]||(o?s:r)("Symbol."+t))}).store=n},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e,i){var n=i(54);t.exports=function(t){return Object(n(t))}},function(t,e,i){var n=i(23),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},function(t,e,i){t.exports=!i(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){var n=i(12),r=i(101),s=i(33),o=Object.defineProperty;e.f=i(6)?Object.defineProperty:function(t,e,i){if(n(t),e=s(e,!0),n(i),r)try{return o(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){var n=i(41),r=i(54);t.exports=function(t){return n(r(t))}},function(t,e){var i=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=i)},function(t,e,i){"use strict";var n=i(7);t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,i){var n=i(2);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){var n=i(0),r=i(10),s=i(7);t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],o={};o[t]=e(i),n(n.S+n.F*s(function(){i(1)}),"Object",o)}},function(t,e,i){var n=i(8),r=i(32);t.exports=i(6)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){"use strict";if(i(6)){var n=i(28),r=i(3),s=i(7),o=i(0),a=i(46),l=i(57),c=i(17),u=i(60),h=i(32),f=i(14),_=i(58),p=i(23),d=i(5),m=i(86),y=i(29),v=i(33),b=i(18),g=i(38),C=i(2),w=i(4),S=i(68),A=i(42),E=i(39),k=i(36).f,x=i(66),L=i(27),O=i(1),R=i(22),T=i(53),M=i(47),I=i(62),P=i(30),D=i(65),B=i(51),N=i(63),H=i(96),F=i(8),j=i(20),W=F.f,Z=j.f,U=r.RangeError,z=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),tt=R(6),et=T(!0),it=T(!1),nt=I.values,rt=I.keys,st=I.entries,ot=K.lastIndexOf,at=K.reduce,lt=K.reduceRight,ct=K.join,ut=K.sort,ht=K.slice,ft=K.toString,_t=K.toLocaleString,pt=O("iterator"),dt=O("toStringTag"),mt=L("typed_constructor"),yt=L("def_constructor"),vt=a.CONSTR,bt=a.TYPED,gt=a.VIEW,Ct=R(1,function(t,e){return kt(M(t,t[yt]),e)}),wt=s(function(){return 1===new V(new Uint16Array([1]).buffer)[0]}),St=!!V&&!!V.prototype.set&&s(function(){new V(1).set({})}),At=function(t,e){var i=p(t);if(i<0||i%e)throw U("Wrong offset!");return i},Et=function(t){if(C(t)&&bt in t)return t;throw z(t+" is not a typed array!")},kt=function(t,e){if(!(C(t)&&mt in t))throw z("It is not a typed array constructor!");return new t(e)},xt=function(t,e){return Lt(M(t,t[yt]),e)},Lt=function(t,e){for(var i=0,n=e.length,r=kt(t,n);n>i;)r[i]=e[i++];return r},Ot=function(t,e,i){W(t,e,{get:function(){return this._d[i]}})},Rt=function(t){var e,i,n,r,s,o,a=w(t),l=arguments.length,u=l>1?arguments[1]:void 0,h=void 0!==u,f=x(a);if(void 0!=f&&!S(f)){for(o=f.call(a),n=[],e=0;!(s=o.next()).done;e++)n.push(s.value);a=n}for(h&&l>2&&(u=c(u,arguments[2],2)),e=0,i=d(a.length),r=kt(this,i);i>e;e++)r[e]=h?u(a[e],e):a[e];return r},Tt=function(){for(var t=0,e=arguments.length,i=kt(this,e);e>t;)i[t]=arguments[t++];return i},Mt=!!V&&s(function(){_t.call(new V(1))}),It=function(){return _t.apply(Mt?ht.call(Et(this)):Et(this),arguments)},Pt={copyWithin:function(t,e){return H.call(Et(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return J(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return N.apply(Et(this),arguments)},filter:function(t){return xt(this,Y(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return $(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){q(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return it(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(Et(this),arguments)},lastIndexOf:function(t){return ot.apply(Et(this),arguments)},map:function(t){return Ct(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return at.apply(Et(this),arguments)},reduceRight:function(t){return lt.apply(Et(this),arguments)},reverse:function(){for(var t,e=Et(this).length,i=Math.floor(e/2),n=0;n<i;)t=this[n],this[n++]=this[--e],this[e]=t;return this},some:function(t){return Q(Et(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ut.call(Et(this),t)},subarray:function(t,e){var i=Et(this),n=i.length,r=y(t,n);return new(M(i,i[yt]))(i.buffer,i.byteOffset+r*i.BYTES_PER_ELEMENT,d((void 0===e?n:y(e,n))-r))}},Dt=function(t,e){return xt(this,ht.call(Et(this),t,e))},Bt=function(t){Et(this);var e=At(arguments[1],1),i=this.length,n=w(t),r=d(n.length),s=0;if(r+e>i)throw U("Wrong length!");for(;s<r;)this[e+s]=n[s++]},Nt={entries:function(){return st.call(Et(this))},keys:function(){return rt.call(Et(this))},values:function(){return nt.call(Et(this))}},Ht=function(t,e){return C(t)&&t[bt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Ft=function(t,e){return Ht(t,e=v(e,!0))?h(2,t[e]):Z(t,e)},jt=function(t,e,i){return!(Ht(t,e=v(e,!0))&&C(i)&&b(i,"value"))||b(i,"get")||b(i,"set")||i.configurable||b(i,"writable")&&!i.writable||b(i,"enumerable")&&!i.enumerable?W(t,e,i):(t[e]=i.value,t)};vt||(j.f=Ft,F.f=jt),o(o.S+o.F*!vt,"Object",{getOwnPropertyDescriptor:Ft,defineProperty:jt}),s(function(){ft.call({})})&&(ft=_t=function(){return ct.call(this)});var Wt=_({},Pt);_(Wt,Nt),f(Wt,pt,Nt.values),_(Wt,{slice:Dt,set:Bt,constructor:function(){},toString:ft,toLocaleString:It}),Ot(Wt,"buffer","b"),Ot(Wt,"byteOffset","o"),Ot(Wt,"byteLength","l"),Ot(Wt,"length","e"),W(Wt,dt,{get:function(){return this[bt]}}),t.exports=function(t,e,i,l){var c=t+((l=!!l)?"Clamped":"")+"Array",h="get"+t,_="set"+t,p=r[c],y=p||{},v=p&&E(p),b=!p||!a.ABV,w={},S=p&&p.prototype,x=function(t,i){W(t,i,{get:function(){return function(t,i){var n=t._d;return n.v[h](i*e+n.o,wt)}(this,i)},set:function(t){return function(t,i,n){var r=t._d;l&&(n=(n=Math.round(n))<0?0:n>255?255:255&n),r.v[_](i*e+r.o,n,wt)}(this,i,t)},enumerable:!0})};b?(p=i(function(t,i,n,r){u(t,p,c,"_d");var s,o,a,l,h=0,_=0;if(C(i)){if(!(i instanceof X||"ArrayBuffer"==(l=g(i))||"SharedArrayBuffer"==l))return bt in i?Lt(p,i):Rt.call(p,i);s=i,_=At(n,e);var y=i.byteLength;if(void 0===r){if(y%e)throw U("Wrong length!");if((o=y-_)<0)throw U("Wrong length!")}else if((o=d(r)*e)+_>y)throw U("Wrong length!");a=o/e}else a=m(i),s=new X(o=a*e);for(f(t,"_d",{b:s,o:_,l:o,e:a,v:new G(s)});h<a;)x(t,h++)}),S=p.prototype=A(Wt),f(S,"constructor",p)):s(function(){p(1)})&&s(function(){new p(-1)})&&D(function(t){new p,new p(null),new p(1.5),new p(t)},!0)||(p=i(function(t,i,n,r){var s;return u(t,p,c),C(i)?i instanceof X||"ArrayBuffer"==(s=g(i))||"SharedArrayBuffer"==s?void 0!==r?new y(i,At(n,e),r):void 0!==n?new y(i,At(n,e)):new y(i):bt in i?Lt(p,i):Rt.call(p,i):new y(m(i))}),q(v!==Function.prototype?k(y).concat(k(v)):k(y),function(t){t in p||f(p,t,y[t])}),p.prototype=S,n||(S.constructor=p));var L=S[pt],O=!!L&&("values"==L.name||void 0==L.name),R=Nt.values;f(p,mt,!0),f(S,bt,c),f(S,gt,!0),f(S,yt,p),(l?new p(1)[dt]==c:dt in S)||W(S,dt,{get:function(){return c}}),w[c]=p,o(o.G+o.W+o.F*(p!=y),w),o(o.S,c,{BYTES_PER_ELEMENT:e}),o(o.S+o.F*s(function(){y.of.call(p,1)}),c,{from:Rt,of:Tt}),"BYTES_PER_ELEMENT"in S||f(S,"BYTES_PER_ELEMENT",e),o(o.P,c,Pt),B(c),o(o.P+o.F*St,c,{set:Bt}),o(o.P+o.F*!O,c,Nt),n||S.toString==ft||(S.toString=ft),o(o.P+o.F*s(function(){new p(1).slice()}),c,{slice:Dt}),o(o.P+o.F*(s(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!s(function(){S.toLocaleString.call([1,2])})),c,{toLocaleString:It}),P[c]=O?L:R,n||O||f(S,pt,R)}}else t.exports=function(){}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){var n=i(16);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this._events=this._events||{}}return t.prototype.on=function(t,e){this._events[t]=this._events[t]||[],this._events[t].push(e)},t.prototype.addDisposableListener=function(t,e){var i=this;return this.on(t,e),{dispose:function(){e&&(i.off(t,e),e=null)}}},t.prototype.off=function(t,e){if(this._events[t])for(var i=this._events[t],n=i.length;n--;)if(i[n]===e)return void i.splice(n,1)},t.prototype.removeAllListeners=function(t){this._events[t]&&delete this._events[t]},t.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(this._events[t])for(var n=this._events[t],r=0;r<n.length;r++)n[r].apply(this,e)},t.prototype.listeners=function(t){return this._events[t]||[]},t.prototype.destroy=function(){this._events={}},t}();e.EventEmitter=n},function(t,e,i){var n=i(37),r=i(32),s=i(9),o=i(33),a=i(18),l=i(101),c=Object.getOwnPropertyDescriptor;e.f=i(6)?c:function(t,e){if(t=s(t),e=o(e,!0),l)try{return c(t,e)}catch(t){}if(a(t,e))return r(!n.f.call(t,e),t[e])}},function(t,e,i){var n=i(1)("unscopables"),r=Array.prototype;void 0==r[n]&&i(14)(r,n,{}),t.exports=function(t){r[n][t]=!0}},function(t,e,i){var n=i(17),r=i(41),s=i(4),o=i(5),a=i(64);t.exports=function(t,e){var i=1==t,l=2==t,c=3==t,u=4==t,h=6==t,f=5==t||h,_=e||a;return function(e,a,p){for(var d,m,y=s(e),v=r(y),b=n(a,p,3),g=o(v.length),C=0,w=i?_(e,g):l?_(e,0):void 0;g>C;C++)if((f||C in v)&&(m=b(d=v[C],C,y),t))if(i)w[C]=m;else if(m)switch(t){case 3:return!0;case 5:return d;case 6:return C;case 2:w.push(d)}else if(u)return!1;return h?-1:c||u?u:w}}},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var s=i(131),o=i(19);e.CHAR_DATA_ATTR_INDEX=0,e.CHAR_DATA_CHAR_INDEX=1,e.CHAR_DATA_WIDTH_INDEX=2,e.CHAR_DATA_CODE_INDEX=3,e.MAX_BUFFER_SIZE=4294967295;var a=function(){function t(t,e){this._terminal=t,this._hasScrollback=e,this.markers=[],this.clear()}return Object.defineProperty(t.prototype,"lines",{get:function(){return this._lines},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._terminal.rows},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCursorInViewport",{get:function(){var t=this.ybase+this.y-this.ydisp;return t>=0&&t<this._terminal.rows},enumerable:!0,configurable:!0}),t.prototype._getCorrectBufferLength=function(t){if(!this._hasScrollback)return t;var i=t+this._terminal.options.scrollback;return i>e.MAX_BUFFER_SIZE?e.MAX_BUFFER_SIZE:i},t.prototype.fillViewportRows=function(){if(0===this._lines.length)for(var t=this._terminal.rows;t--;)this.lines.push(this._terminal.blankLine())},t.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this._lines=new s.CircularList(this._getCorrectBufferLength(this._terminal.rows)),this.scrollTop=0,this.scrollBottom=this._terminal.rows-1,this.setupTabStops()},t.prototype.resize=function(t,e){var i=this._getCorrectBufferLength(e);if(i>this._lines.maxLength&&(this._lines.maxLength=i),this._lines.length>0){if(this._terminal.cols<t)for(var n=[this._terminal.defAttr," ",1,32],r=0;r<this._lines.length;r++)for(;this._lines.get(r).length<t;)this._lines.get(r).push(n);var s=0;if(this._terminal.rows<e)for(var o=this._terminal.rows;o<e;o++)this._lines.length<e+this.ybase&&(this.ybase>0&&this._lines.length<=this.ybase+this.y+s+1?(this.ybase--,s++,this.ydisp>0&&this.ydisp--):this._lines.push(this._terminal.blankLine(void 0,void 0,t)));else for(o=this._terminal.rows;o>e;o--)this._lines.length>e+this.ybase&&(this._lines.length>this.ybase+this.y+1?this._lines.pop():(this.ybase++,this.ydisp++));if(i<this._lines.maxLength){var a=this._lines.length-i;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=i}this.x=Math.min(this.x,t-1),this.y=Math.min(this.y,e-1),s&&(this.y+=s),this.savedY=Math.min(this.savedY,e-1),this.savedX=Math.min(this.savedX,t-1),this.scrollTop=0}this.scrollBottom=e-1},t.prototype.translateBufferLineToString=function(t,i,n,r){void 0===n&&(n=0),void 0===r&&(r=null);var s="",o=this.lines.get(t);if(!o)return"";var a=n;null===r&&(r=o.length);for(var l=r,c=0;c<o.length;c++){var u=o[c];s+=u[e.CHAR_DATA_CHAR_INDEX],0===u[e.CHAR_DATA_WIDTH_INDEX]?(n>=c&&a--,r>=c&&l--):u[e.CHAR_DATA_CHAR_INDEX].length>1&&(n>c&&(a+=u[e.CHAR_DATA_CHAR_INDEX].length-1),r>c&&(l+=u[e.CHAR_DATA_CHAR_INDEX].length-1))}if(i){var h=s.search(/\s+$/);if(-1!==h&&(l=Math.min(l,h)),l<=a)return""}return s.substring(a,l)},t.prototype.setupTabStops=function(t){for(null!=t?this.tabs[t]||(t=this.prevStop(t)):(this.tabs={},t=0);t<this._terminal.cols;t+=this._terminal.options.tabStopWidth)this.tabs[t]=!0},t.prototype.prevStop=function(t){for(null==t&&(t=this.x);!this.tabs[--t]&&t>0;);return t>=this._terminal.cols?this._terminal.cols-1:t<0?0:t},t.prototype.nextStop=function(t){for(null==t&&(t=this.x);!this.tabs[++t]&&t<this._terminal.cols;);return t>=this._terminal.cols?this._terminal.cols-1:t<0?0:t},t.prototype.addMarker=function(t){var e=this,i=new l(t);return this.markers.push(i),i.disposables.push(this._lines.addDisposableListener("trim",function(t){i.line-=t,i.line<0&&i.dispose()})),i.on("dispose",function(){return e._removeMarker(i)}),i},t.prototype._removeMarker=function(t){this.markers.splice(this.markers.indexOf(t),1)},t}();e.Buffer=a;var l=function(t){function e(i){var n=t.call(this)||this;return n.line=i,n._id=e.NEXT_ID++,n.isDisposed=!1,n.disposables=[],n}return r(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.disposables.forEach(function(t){return t.dispose()}),this.disposables.length=0,this.emit("dispose"))},e.NEXT_ID=1,e}(o.EventEmitter);e.Marker=l},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e,i){var n=i(99),r=i(70);t.exports=Object.keys||function(t){return n(t,r)}},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,e){t.exports=!1},function(t,e,i){var n=i(23),r=Math.max,s=Math.min;t.exports=function(t,e){return(t=n(t))<0?r(t+e,0):s(t,e)}},function(t,e){t.exports={}},function(t,e,i){var n=i(3),r=i(14),s=i(18),o=i(27)("src"),a=Function.toString,l=(""+a).split("toString");i(10).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,i,a){var c="function"==typeof i;c&&(s(i,"name")||r(i,"name",e)),t[e]!==i&&(c&&(s(i,o)||r(i,o,t[e]?""+t[e]:l.join(String(e)))),t===n?t[e]=i:a?t[e]?t[e]=i:r(t,e,i):(delete t[e],r(t,e,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||a.call(this)})},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var n=i(2);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var r={aborted:"Session aborted",peer_aborted:"Peer aborted session",already_aborted:"Session already aborted",crc:function(t,e){return this.got=t.slice(0),this.expected=e.slice(0),"CRC check failed! (got: "+t.join()+"; expected: "+e.join()+")"},validation:function(t){return t}};t.exports.Error=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),s=function(t){var e=r[t];switch(void 0===e?"undefined":n(e)){case"string":return e;case"function":var i=[].slice.call(arguments).slice(1);return e.apply(this,i)}return null}.apply(i,arguments);return s?(i.type=t,i.message=s):i.message=t,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,Error),e}()},function(t,e,i){"use strict";t.exports.ZMLIB={ZDLE:24,XON:17,XOFF:19,ABORT_SEQUENCE:[24,24,24,24,24],strip_ignored_bytes:function(t){for(var e=t.length-1;e>=0;e--)switch(t[e]){case 17:case 145:case 19:case 147:t.splice(e,1);continue}return t},find_subarray:function(t,e){var i,n=0;Date.now();t:for(;-1!==n&&-1!==(n=t.indexOf(e[0],n));){for(i=1;i<e.length;i++)if(t[n+i]!==e[i]){n++;continue t}return n}return-1}}},function(t,e,i){var n=i(99),r=i(70).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){var n=i(25),r=i(1)("toStringTag"),s="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,i,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?i:s?n(e):"Object"==(o=n(e))&&"function"==typeof e.callee?"Arguments":o}},function(t,e,i){var n=i(18),r=i(4),s=i(72)("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},function(t,e,i){var n=i(8).f,r=i(18),s=i(1)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,s)&&n(t,s,{configurable:!0,value:e})}},function(t,e,i){var n=i(25);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,i){var n=i(12),r=i(100),s=i(70),o=i(72)("IE_PROTO"),a=function(){},l=function(){var t,e=i(73)("iframe"),n=s.length;for(e.style.display="none",i(69).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[s[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(a.prototype=n(t),i=new a,a.prototype=null,i[o]=t):i=l(),void 0===e?i:r(i,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="undefined"==typeof navigator,r=n?"node":navigator.userAgent,s=n?"node":navigator.platform;function o(t,e){return t.indexOf(e)>=0}e.isFirefox=!!~r.indexOf("Firefox"),e.isMSIE=!!~r.indexOf("MSIE")||!!~r.indexOf("Trident"),e.isMac=o(["Macintosh","MacIntel","MacPPC","Mac68K"],s),e.isIpad="iPad"===s,e.isIphone="iPhone"===s,e.isMSWindows=o(["Windows","Win16","Win32","WinCE"],s),e.isLinux=s.indexOf("Linux")>=0},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(82),r=i(81),s=i(121),o=i(24),a=function(){function t(t,e,i,n,r){this._container=t,this._alpha=n,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-"+e+"-layer"),this._canvas.style.zIndex=i.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return t.prototype._initCanvas=function(){this._ctx=this._canvas.getContext("2d",{alpha:this._alpha}),this._alpha||this.clearAll()},t.prototype.onOptionsChanged=function(t){},t.prototype.onBlur=function(t){},t.prototype.onFocus=function(t){},t.prototype.onCursorMove=function(t){},t.prototype.onGridChanged=function(t,e,i){},t.prototype.onSelectionChanged=function(t,e,i){},t.prototype.onThemeChanged=function(t,e){this._refreshCharAtlas(t,e)},t.prototype.setTransparency=function(t,e){if(e!==this._alpha){var i=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,i),this._refreshCharAtlas(t,this._colors),this.onGridChanged(t,0,t.rows-1)}},t.prototype._refreshCharAtlas=function(t,e){var i=this;if(!(this._scaledCharWidth<=0&&this._scaledCharHeight<=0)){this._charAtlas=null;var n=s.acquireCharAtlas(t,e,this._scaledCharWidth,this._scaledCharHeight);n instanceof HTMLCanvasElement?this._charAtlas=n:n.then(function(t){return i._charAtlas=t})}},t.prototype.resize=function(t,e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this.clearAll(),this._refreshCharAtlas(t,this._colors)},t.prototype.fillCells=function(t,e,i,n){this._ctx.fillRect(t*this._scaledCellWidth,e*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight)},t.prototype.fillBottomLineAtCells=function(t,e,i){void 0===i&&(i=1),this._ctx.fillRect(t*this._scaledCellWidth,(e+1)*this._scaledCellHeight-window.devicePixelRatio-1,i*this._scaledCellWidth,window.devicePixelRatio)},t.prototype.fillLeftLineAtCell=function(t,e){this._ctx.fillRect(t*this._scaledCellWidth,e*this._scaledCellHeight,window.devicePixelRatio,this._scaledCellHeight)},t.prototype.strokeRectAtCell=function(t,e,i,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(t*this._scaledCellWidth+window.devicePixelRatio/2,e*this._scaledCellHeight+window.devicePixelRatio/2,i*this._scaledCellWidth-window.devicePixelRatio,n*this._scaledCellHeight-window.devicePixelRatio)},t.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))},t.prototype.clearCells=function(t,e,i,n){this._alpha?this._ctx.clearRect(t*this._scaledCellWidth,e*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(t*this._scaledCellWidth,e*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight))},t.prototype.fillCharTrueColor=function(t,e,i,n){this._ctx.font=this._getFont(t,!1),this._ctx.textBaseline="top",this._clipRow(t,n),this._ctx.fillText(e[o.CHAR_DATA_CHAR_INDEX],i*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop)},t.prototype.drawChar=function(t,e,i,s,o,a,l,c,u,h){var f=0;l<256?f=l+2:u&&t.options.enableBold&&(f=1);var _=i<256,p=f>1&&l<16&&(l<8||u),d=l>=256,m=c>=256;if(this._charAtlas&&_&&(p||d)&&m){var y=this._scaledCharWidth+r.CHAR_ATLAS_CELL_SPACING,v=this._scaledCharHeight+r.CHAR_ATLAS_CELL_SPACING;h&&(this._ctx.globalAlpha=n.DIM_OPACITY),u&&!t.options.enableBold&&f>1&&(f-=8),this._ctx.drawImage(this._charAtlas,i*y,f*v,y,this._scaledCharHeight,o*this._scaledCellWidth+this._scaledCharLeft,a*this._scaledCellHeight+this._scaledCharTop,y,this._scaledCharHeight)}else this._drawUncachedChar(t,e,s,l,o,a,u&&t.options.enableBold,h)},t.prototype._drawUncachedChar=function(t,e,i,r,s,o,a,l){this._ctx.save(),this._ctx.font=this._getFont(t,a),this._ctx.textBaseline="top",r===n.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(t,o),l&&(this._ctx.globalAlpha=n.DIM_OPACITY),this._ctx.fillText(e,s*this._scaledCellWidth+this._scaledCharLeft,o*this._scaledCellHeight+this._scaledCharTop),this._ctx.restore()},t.prototype._clipRow=function(t,e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,t.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},t.prototype._getFont=function(t,e){return(e?t.options.fontWeightBold:t.options.fontWeight)+" "+t.options.fontSize*window.devicePixelRatio+"px "+t.options.fontFamily},t}();e.BaseRenderLayer=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.NUL="\0",t.SOH="\ 1",t.STX="\ 2",t.ETX="\ 3",t.EOT="\ 4",t.ENQ="\ 5",t.ACK="\ 6",t.BEL="\a",t.BS="\b",t.HT="\t",t.LF="\n",t.VT="\v",t.FF="\f",t.CR="\r",t.SO="\ e",t.SI="\ f",t.DLE="\10",t.DC1="\11",t.DC2="\12",t.DC3="\13",t.DC4="\14",t.NAK="\15",t.SYN="\16",t.ETB="\17",t.CAN="\18",t.EM="\19",t.SUB="\1a",t.ESC="\e",t.FS="\1c",t.GS="\1d",t.RS="\1e",t.US="\1f",t.SP=" ",t.DEL="\7f"}(e.C0||(e.C0={}))},function(t,e,i){for(var n,r=i(3),s=i(14),o=i(27),a=o("typed_array"),l=o("view"),c=!(!r.ArrayBuffer||!r.DataView),u=c,h=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(n=r[f[h++]])?(s(n.prototype,a,!0),s(n.prototype,l,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:a,VIEW:l}},function(t,e,i){var n=i(12),r=i(16),s=i(1)("species");t.exports=function(t,e){var i,o=n(t).constructor;return void 0===o||void 0==(i=n(o)[s])?e:r(i)}},function(t,e,i){"use strict";t.exports=i(28)||!i(7)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete i(3)[t]})},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var n=i(27)("meta"),r=i(2),s=i(18),o=i(8).f,a=0,l=Object.isExtensible||function(){return!0},c=!i(7)(function(){return l(Object.preventExtensions({}))}),u=function(t){o(t,n,{value:{i:"O"+ ++a,w:{}}})},h=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,n)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[n].i},getWeak:function(t,e){if(!s(t,n)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[n].w},onFreeze:function(t){return c&&h.NEED&&l(t)&&!s(t,n)&&u(t),t}}},function(t,e,i){"use strict";var n=i(3),r=i(8),s=i(6),o=i(1)("species");t.exports=function(t){var e=n[t];s&&e&&!e[o]&&r.f(e,o,{configurable:!0,get:function(){return this}})}},function(t,e,i){var n=i(25);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,i){var n=i(9),r=i(5),s=i(29);t.exports=function(t){return function(e,i,o){var a,l=n(e),c=r(l.length),u=s(o,c);if(t&&i!=i){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===i)return t||u||0;return!t&&-1}}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r,s,o=t.exports;Object.assign(o,i(35));var a=o.ZMLIB.ZDLE;o.ZDLE=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._config={},e&&this.set_escape_ctrl_chars(!!e.escape_ctrl_chars)}return n(t,[{key:"set_escape_ctrl_chars",value:function(t){if("boolean"!=typeof t)throw"need boolean!";t!==this._config.escape_ctrl_chars&&(this._config.escape_ctrl_chars=t,this._setup_zdle_table())}},{key:"escapes_ctrl_chars",value:function(){return!!this._config.escape_ctrl_chars}},{key:"encode",value:function(t){if(!this._zdle_table)throw"No ZDLE encode table configured!";var e=this._zdle_table,i=this._lastcode,n=new ArrayBuffer(2*t.length),o=new Uint8Array(n),l=this._config.escape_ctrl_chars,c=0;for(r=0;r<t.length;r++){if(!(s=e[t[r]]))throw console.trace(),console.error("bad encode() call:",JSON.stringify(t)),this._lastcode=i,"Invalid octet: "+t[r];i=t[r],1===s||(l||2===s||64==(127&i))&&(o[c]=a,c++,i^=64),o[c]=i,c++}return this._lastcode=i,t.splice(0),t.push.apply(t,new Uint8Array(n,0,c)),t}},{key:"_setup_zdle_table",value:function(){for(var t=new Array(256),e=0;e<t.length;e++)if(96&e)t[e]=1;else switch(e){case a:case o.ZMLIB.XOFF:case o.ZMLIB.XON:case 128|o.ZMLIB.XOFF:case 128|o.ZMLIB.XON:t[e]=2;break;case 16:case 144:t[e]=this._config.turbo_escape?1:2;break;case 13:case 141:t[e]=this._config.escape_ctrl_chars?2:this._config.turbo_escape?1:3;break;default:t[e]=this._config.escape_ctrl_chars?2:1}this._zdle_table=t}}],[{key:"decode",value:function(t){for(var e=t.length-1;e>=0;e--)t[e]===a&&t.splice(e,2,t[e+1]-64);return t}},{key:"splice",value:function(e,i,n){var r=0;i||(i=0);for(var s=i;s<e.length&&r<n;s++)r++,e[s]===a&&s++;if(r===n){if(e.length===s-1)return;return e.splice(0,i),t.decode(e.splice(0,s-i))}}}]),t}()},function(t,e,i){"use strict";for(var n=t.exports,r=[48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102],s={},o=0;o<r.length;o++)s[r[o]]=o;n.ENCODELIB={pack_u16_be:function(t){if(t>65535)throw"Number cannot exceed 16 bits: "+t;return[t>>8,255&t]},pack_u32_le:function(t){var e=t/65536;return[255&t,(65535&t)>>8,255&e,e>>8]},unpack_u16_be:function(t){return(t[0]<<8)+t[1]},unpack_u32_le:function(t){return t[0]+(t[1]<<8)+(t[2]<<16)+16777216*t[3]},octets_to_hex:function(t){for(var e=[],i=0;i<t.length;i++)e.push(r[t[i]>>4],r[15&t[i]]);return e},parse_hex_octets:function(t){for(var e=new Array(t.length/2),i=0;i<e.length;i++)e[i]=(s[t[2*i]]<<4)+s[t[1+2*i]];return e}}},function(t,e,i){"use strict";var n=i(3),r=i(6),s=i(28),o=i(46),a=i(14),l=i(58),c=i(7),u=i(60),h=i(23),f=i(5),_=i(86),p=i(36).f,d=i(8).f,m=i(63),y=i(40),v="prototype",b="Wrong index!",g=n.ArrayBuffer,C=n.DataView,w=n.Math,S=n.RangeError,A=n.Infinity,E=g,k=w.abs,x=w.pow,L=w.floor,O=w.log,R=w.LN2,T=r?"_b":"buffer",M=r?"_l":"byteLength",I=r?"_o":"byteOffset";function P(t,e,i){var n,r,s,o=new Array(i),a=8*i-e-1,l=(1<<a)-1,c=l>>1,u=23===e?x(2,-24)-x(2,-77):0,h=0,f=t<0||0===t&&1/t<0?1:0;for((t=k(t))!=t||t===A?(r=t!=t?1:0,n=l):(n=L(O(t)/R),t*(s=x(2,-n))<1&&(n--,s*=2),(t+=n+c>=1?u/s:u*x(2,1-c))*s>=2&&(n++,s/=2),n+c>=l?(r=0,n=l):n+c>=1?(r=(t*s-1)*x(2,e),n+=c):(r=t*x(2,c-1)*x(2,e),n=0));e>=8;o[h++]=255&r,r/=256,e-=8);for(n=n<<e|r,a+=e;a>0;o[h++]=255&n,n/=256,a-=8);return o[--h]|=128*f,o}function D(t,e,i){var n,r=8*i-e-1,s=(1<<r)-1,o=s>>1,a=r-7,l=i-1,c=t[l--],u=127&c;for(c>>=7;a>0;u=256*u+t[l],l--,a-=8);for(n=u&(1<<-a)-1,u>>=-a,a+=e;a>0;n=256*n+t[l],l--,a-=8);if(0===u)u=1-o;else{if(u===s)return n?NaN:c?-A:A;n+=x(2,e),u-=o}return(c?-1:1)*n*x(2,u-e)}function B(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function N(t){return[255&t]}function H(t){return[255&t,t>>8&255]}function F(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function j(t){return P(t,52,8)}function W(t){return P(t,23,4)}function Z(t,e,i){d(t[v],e,{get:function(){return this[i]}})}function U(t,e,i,n){var r=_(+i);if(r+e>t[M])throw S(b);var s=t[T]._b,o=r+t[I],a=s.slice(o,o+e);return n?a:a.reverse()}function z(t,e,i,n,r,s){var o=_(+i);if(o+e>t[M])throw S(b);for(var a=t[T]._b,l=o+t[I],c=n(+r),u=0;u<e;u++)a[l+u]=c[s?u:e-u-1]}if(o.ABV){if(!c(function(){g(1)})||!c(function(){new g(-1)})||c(function(){return new g,new g(1.5),new g(NaN),"ArrayBuffer"!=g.name})){for(var V,K=(g=function(t){return u(this,g),new E(_(t))})[v]=E[v],X=p(E),G=0;X.length>G;)(V=X[G++])in g||a(g,V,E[V]);s||(K.constructor=g)}var q=new C(new g(2)),Y=C[v].setInt8;q.setInt8(0,2147483648),q.setInt8(1,2147483649),!q.getInt8(0)&&q.getInt8(1)||l(C[v],{setInt8:function(t,e){Y.call(this,t,e<<24>>24)},setUint8:function(t,e){Y.call(this,t,e<<24>>24)}},!0)}else g=function(t){u(this,g,"ArrayBuffer");var e=_(t);this._b=m.call(new Array(e),0),this[M]=e},C=function(t,e,i){u(this,C,"DataView"),u(t,g,"DataView");var n=t[M],r=h(e);if(r<0||r>n)throw S("Wrong offset!");if(r+(i=void 0===i?n-r:f(i))>n)throw S("Wrong length!");this[T]=t,this[I]=r,this[M]=i},r&&(Z(g,"byteLength","_l"),Z(C,"buffer","_b"),Z(C,"byteLength","_l"),Z(C,"byteOffset","_o")),l(C[v],{getInt8:function(t){return U(this,1,t)[0]<<24>>24},getUint8:function(t){return U(this,1,t)[0]},getInt16:function(t){var e=U(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=U(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return B(U(this,4,t,arguments[1]))},getUint32:function(t){return B(U(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return D(U(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return D(U(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){z(this,1,t,N,e)},setUint8:function(t,e){z(this,1,t,N,e)},setInt16:function(t,e){z(this,2,t,H,e,arguments[2])},setUint16:function(t,e){z(this,2,t,H,e,arguments[2])},setInt32:function(t,e){z(this,4,t,F,e,arguments[2])},setUint32:function(t,e){z(this,4,t,F,e,arguments[2])},setFloat32:function(t,e){z(this,4,t,W,e,arguments[2])},setFloat64:function(t,e){z(this,8,t,j,e,arguments[2])}});y(g,"ArrayBuffer"),y(C,"DataView"),a(C[v],o.VIEW,!0),e.ArrayBuffer=g,e.DataView=C},function(t,e,i){var n=i(31);t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},function(t,e,i){"use strict";var n=i(16);t.exports.f=function(t){return new function(t){var e,i;this.promise=new t(function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n}),this.resolve=n(e),this.reject=n(i)}(t)}},function(t,e){t.exports=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t}},function(t,e,i){"use strict";var n=i(38),r={};r[i(1)("toStringTag")]="z",r+""!="[object z]"&&i(31)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(t,e,i){"use strict";var n=i(21),r=i(207),s=i(30),o=i(9);t.exports=i(102)(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])},"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},function(t,e,i){"use strict";var n=i(4),r=i(29),s=i(5);t.exports=function(t){for(var e=n(this),i=s(e.length),o=arguments.length,a=r(o>1?arguments[1]:void 0,i),l=o>2?arguments[2]:void 0,c=void 0===l?i:r(l,i);c>a;)e[a++]=t;return e}},function(t,e,i){var n=i(221);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,i){var n=i(1)("iterator"),r=!1;try{var s=[7][n]();s.return=function(){r=!0},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var s=[7],o=s[n]();o.next=function(){return{done:i=!0}},s[n]=function(){return o},t(s)}catch(t){}return i}},function(t,e,i){var n=i(38),r=i(1)("iterator"),s=i(30);t.exports=i(10).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||s[n(t)]}},function(t,e,i){"use strict";var n=i(8),r=i(32);t.exports=function(t,e,i){e in t?n.f(t,e,r(0,i)):t[e]=i}},function(t,e,i){var n=i(30),r=i(1)("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||s[r]===t)}},function(t,e,i){var n=i(3).document;t.exports=n&&n.documentElement},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,i){var n=i(3),r=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(t){return r[t]||(r[t]={})}},function(t,e,i){var n=i(71)("keys"),r=i(27);t.exports=function(t){return n[t]||(n[t]=r(t))}},function(t,e,i){var n=i(2),r=i(3).document,s=n(r)&&n(r.createElement);t.exports=function(t){return s?r.createElement(t):{}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.blankLine="Blank line",e.promptLabel="Terminal input",e.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this._renderer=t}return t.getCoordsRelativeToElement=function(t,e){if(null==t.pageX)return null;for(var i=e,n=t.pageX,r=t.pageY;e;)n-=e.offsetLeft,r-=e.offsetTop,e=e.offsetParent;for(e=i;e&&e!==e.ownerDocument.body;)n+=e.scrollLeft,r+=e.scrollTop,e=e.parentElement;return[n,r]},t.prototype.getCoords=function(e,i,n,r,s,o,a){if(!n.width||!n.height)return null;var l=t.getCoordsRelativeToElement(e,i);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),s+(a?1:0)),l[1]=Math.min(Math.max(l[1],1),o),l):null},t.prototype.getRawByteCoords=function(t,e,i,n,r,s){var o=this.getCoords(t,e,i,n,r,s),a=o[0],l=o[1];return{x:a+=32,y:l+=32}},t}();e.MouseHelper=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){var e=this;this._terminal=t,this._zones=[],this._areZonesActive=!1,this._tooltipTimeout=null,this._currentZone=null,this._lastHoverCoords=[null,null],this._terminal.element.addEventListener("mousedown",function(t){return e._onMouseDown(t)}),this._mouseMoveListener=function(t){return e._onMouseMove(t)},this._clickListener=function(t){return e._onClick(t)}}return t.prototype.add=function(t){this._zones.push(t),1===this._zones.length&&this._activate()},t.prototype.clearAll=function(t,e){if(0!==this._zones.length){e||(t=0,e=this._terminal.rows-1);for(var i=0;i<this._zones.length;i++){var n=this._zones[i];(n.y1>t&&n.y1<=e+1||n.y2>t&&n.y2<=e+1||n.y1<t&&n.y2>e+1)&&(this._currentZone&&this._currentZone===n&&(this._currentZone.leaveCallback(),this._currentZone=null),this._zones.splice(i--,1))}0===this._zones.length&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._terminal.element.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._terminal.element.removeEventListener("mousemove",this._mouseMoveListener),this._terminal.element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(t){this._lastHoverCoords[0]===t.pageX&&this._lastHoverCoords[1]===t.pageY||(this._onHover(t),this._lastHoverCoords=[t.pageX,t.pageY])},t.prototype._onHover=function(t){var e=this,i=this._findZoneEventAt(t);i!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=null,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),i&&(this._currentZone=i,i.hoverCallback&&i.hoverCallback(t),this._tooltipTimeout=setTimeout(function(){return e._onTooltip(t)},500)))},t.prototype._onTooltip=function(t){this._tooltipTimeout=null;var e=this._findZoneEventAt(t);e&&e.tooltipCallback&&e.tooltipCallback(t)},t.prototype._onMouseDown=function(t){if(this._areZonesActive){var e=this._findZoneEventAt(t);e&&e.willLinkActivate(t)&&(t.preventDefault(),t.stopImmediatePropagation())}},t.prototype._onClick=function(t){var e=this._findZoneEventAt(t);e&&(e.clickCallback(t),t.preventDefault(),t.stopImmediatePropagation())},t.prototype._findZoneEventAt=function(t){var e=this._terminal.mouseHelper.getCoords(t,this._terminal.screenElement,this._terminal.charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows);if(!e)return null;for(var i=e[0],n=e[1],r=0;r<this._zones.length;r++){var s=this._zones[r];if(s.y1===s.y2){if(n===s.y1&&i>=s.x1&&i<s.x2)return s}else if(n===s.y1&&i>=s.x1||n===s.y2&&i<s.x2||n>s.y1&&n<s.y2)return s}return null},t}();e.MouseZoneManager=n;var r=function(){return function(t,e,i,n,r,s,o,a,l){this.x1=t,this.y1=e,this.x2=i,this.y2=n,this.clickCallback=r,this.hoverCallback=s,this.tooltipCallback=o,this.leaveCallback=a,this.willLinkActivate=l}}();e.MouseZone=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.setListener=function(t){var e=this;this._listener&&this.clearListener(),this._listener=t,this._outerListener=function(){e._listener(window.devicePixelRatio,e._currentDevicePixelRatio),e._updateDpr()},this._updateDpr()},t.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)},t.prototype.clearListener=function(){this._listener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._listener=null,this._outerListener=null)},t}();e.ScreenDprMonitor=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this._terminal=t,this._callback=e,this._animationFrame=null}return t.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},t.prototype.refresh=function(t,e){var i=this;t=t||0,e=e||this._terminal.rows-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,t):t,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,e):e,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return i._innerRefresh()}))},t.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},t}();e.RenderDebouncer=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.HOVER="linkhover",t.TOOLTIP="linktooltip",t.LEAVE="linkleave"}(e.LinkHoverEventTypes||(e.LinkHoverEventTypes={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=l("#ffffff"),r=l("#000000"),s=l("#ffffff"),o=l("#000000"),a={css:"rgba(255, 255, 255, 0.3)",rgba:4294967159};function l(t){return{css:t,rgba:parseInt(t.slice(1),16)<<8|255}}function c(t){var e=t.toString(16);return e.length<2?"0"+e:e}e.DEFAULT_ANSI_COLORS=function(){for(var t=[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")],e=[0,95,135,175,215,255],i=0;i<216;i++){var n=e[i/36%6|0],r=e[i/6%6|0],s=e[i%6];t.push({css:"#"+c(n)+c(r)+c(s),rgba:(n<<24|r<<16|s<<8|255)>>>0})}for(i=0;i<24;i++){var o=8+10*i,a=c(o);t.push({css:"#"+a+a+a,rgba:(o<<24|o<<16|o<<8|255)>>>0})}return t}();var u=function(){function t(t,i){this.allowTransparency=i;var l=t.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:n,background:r,cursor:s,cursorAccent:o,selection:a,ansi:e.DEFAULT_ANSI_COLORS.slice()}}return t.prototype.setTheme=function(t){this.colors.foreground=this._parseColor(t.foreground,n),this.colors.background=this._parseColor(t.background,r),this.colors.cursor=this._parseColor(t.cursor,s,!0),this.colors.cursorAccent=this._parseColor(t.cursorAccent,o,!0),this.colors.selection=this._parseColor(t.selection,a,!0),this.colors.ansi[0]=this._parseColor(t.black,e.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(t.red,e.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(t.green,e.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(t.yellow,e.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(t.blue,e.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(t.magenta,e.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(t.cyan,e.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(t.white,e.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(t.brightBlack,e.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(t.brightRed,e.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(t.brightGreen,e.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(t.brightYellow,e.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(t.brightBlue,e.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(t.brightMagenta,e.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(t.brightCyan,e.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(t.brightWhite,e.DEFAULT_ANSI_COLORS[15])},t.prototype._parseColor=function(t,e,i){if(void 0===i&&(i=this.allowTransparency),!t)return e;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=t,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+t+" is invalid using fallback "+e.css),e;this._ctx.fillRect(0,0,1,1);var n=this._ctx.getImageData(0,0,1,1).data;return i||255===n[3]?{css:t,rgba:(n[0]<<24|n[1]<<16|n[2]<<8|n[3])>>>0}:(console.warn("Color: "+t+" is using transparency, but allowTransparency is false. Using fallback "+e.css+"."),e)},t}();e.ColorManager=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CHAR_ATLAS_CELL_SPACING=1},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INVERTED_DEFAULT_COLOR=-1,e.DIM_OPACITY=.5},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.BOLD=1]="BOLD",t[t.UNDERLINE=2]="UNDERLINE",t[t.BLINK=4]="BLINK",t[t.INVERSE=8]="INVERSE",t[t.INVISIBLE=16]="INVISIBLE",t[t.DIM=32]="DIM"}(e.FLAGS||(e.FLAGS={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CHARSETS={},e.DEFAULT_CHARSET=e.CHARSETS.B,e.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:"≥","{":"π","|":"≠","}":"£","~":"·"},e.CHARSETS.A={"#":"£"},e.CHARSETS.B=null,e.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},e.CHARSETS.C=e.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},e.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},e.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},e.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},e.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},e.CHARSETS.E=e.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},e.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},e.CHARSETS.H=e.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},e.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},function(t,e,i){"use strict";var n,r=i(136),s=t.exports;Object.assign(s,i(34),i(56));var o=16,a=4129,l=65535,c=1<<o-1;function u(t,e){return n||function(){n=new Array(256);for(var t=o-8,e=0;e<256;e++){for(var i=e<<t&l,r=0;r<8;r++)0!=(i&c)?(i<<=1,i^=a):i<<=1;n[e]=i&l}}(),n[e>>8&255]^(255&e)<<8^t}function h(t,e){if(t.join()!==e.join())throw new s.Error("crc",e,t)}s.CRC={crc16:function(t){for(var e=t[0],i=1;i<t.length;i++)e=u(t[i],e);return e=u(0,u(0,e)),s.ENCODELIB.pack_u16_be(e)},crc32:function(t){return s.ENCODELIB.pack_u32_le(r.buf(t)>>>0)},verify16:function(t,e){return h(this.crc16(t),e)},verify32:function(t,e){try{h(this.crc32(t),e)}catch(e){throw e.input=t.slice(0),e}}}},function(t,e,i){var n=i(23),r=i(5);t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=r(e);if(e!==i)throw RangeError("Wrong length!");return i}},function(t,e,i){var n=i(12),r=i(2),s=i(59);t.exports=function(t,e){if(n(t),r(e)&&e.constructor===t)return e;var i=s.f(t);return(0,i.resolve)(e),i.promise}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,i){var n,r,s,o=i(17),a=i(165),l=i(69),c=i(73),u=i(3),h=u.process,f=u.setImmediate,_=u.clearImmediate,p=u.MessageChannel,d=u.Dispatch,m=0,y={},v=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},b=function(t){v.call(t.data)};f&&_||(f=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return y[++m]=function(){a("function"==typeof t?t:Function(t),e)},n(m),m},_=function(t){delete y[t]},"process"==i(25)(h)?n=function(t){h.nextTick(o(v,t,1))}:d&&d.now?n=function(t){d.now(o(v,t,1))}:p?(s=(r=new p).port2,r.port1.onmessage=b,n=o(s.postMessage,s,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(n=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):n="onreadystatechange"in c("script")?function(t){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),v.call(t)}}:function(t){setTimeout(o(v,t,1),0)}),t.exports={set:f,clear:_}},function(t,e,i){var n=i(8),r=i(20),s=i(92),o=i(9);t.exports=function(t,e){for(var i,a=s(o(e)),l=a.length,c=0;l>c;)n.f(t,i=a[c++],r.f(e,i));return t}},function(t,e,i){var n=i(26),r=i(9),s=i(37).f;t.exports=function(t){return function(e){for(var i,o=r(e),a=n(o),l=a.length,c=0,u=[];l>c;)s.call(o,i=a[c++])&&u.push(t?[i,o[i]]:o[i]);return u}}},function(t,e,i){var n=i(36),r=i(49),s=i(12),o=i(3).Reflect;t.exports=o&&o.ownKeys||function(t){var e=n.f(s(t)),i=r.f;return i?e.concat(i(t)):e}},function(t,e,i){var n=i(9),r=i(36).f,s={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return o&&"[object Window]"==s.call(t)?function(t){try{return r(t)}catch(t){return o.slice()}}(t):r(n(t))}},function(t,e,i){e.f=i(1)},function(t,e,i){"use strict";var n=i(52),r=i(2),s=i(5),o=i(17),a=i(1)("isConcatSpreadable");t.exports=function t(e,i,l,c,u,h,f,_){for(var p,d,m=u,y=0,v=!!f&&o(f,_,3);y<c;){if(y in l){if(p=v?v(l[y],y,i):l[y],d=!1,r(p)&&(d=void 0!==(d=p[a])?!!d:n(p)),d&&h>0)m=t(e,i,p,s(p.length),m,h-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=p}m++}y++}return m}},function(t,e,i){"use strict";var n=i(4),r=i(29),s=i(5);t.exports=[].copyWithin||function(t,e){var i=n(this),o=s(i.length),a=r(t,o),l=r(e,o),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?o:r(c,o))-l,o-a),h=1;for(l<a&&a<l+u&&(h=-1,l+=u-1,a+=u-1);u-- >0;)l in i?i[a]=i[l]:delete i[a],a+=h,l+=h;return i}},function(t,e,i){var n=i(16),r=i(4),s=i(41),o=i(5);t.exports=function(t,e,i,a,l){n(e);var c=r(t),u=s(c),h=o(c.length),f=l?h-1:0,_=l?-1:1;if(i<2)for(;;){if(f in u){a=u[f],f+=_;break}if(f+=_,l?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?f>=0:h>f;f+=_)f in u&&(a=e(a,u[f],f,c));return a}},function(t,e,i){var n=i(12);t.exports=function(t,e,i,r){try{return r?e(n(i)[0],i[1]):e(i)}catch(e){var s=t.return;throw void 0!==s&&n(s.call(t)),e}}},function(t,e,i){var n=i(18),r=i(9),s=i(53)(!1),o=i(72)("IE_PROTO");t.exports=function(t,e){var i,a=r(t),l=0,c=[];for(i in a)i!=o&&n(a,i)&&c.push(i);for(;e.length>l;)n(a,i=e[l++])&&(~s(c,i)||c.push(i));return c}},function(t,e,i){var n=i(8),r=i(12),s=i(26);t.exports=i(6)?Object.defineProperties:function(t,e){r(t);for(var i,o=s(e),a=o.length,l=0;a>l;)n.f(t,i=o[l++],e[i]);return t}},function(t,e,i){t.exports=!i(6)&&!i(7)(function(){return 7!=Object.defineProperty(i(73)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){"use strict";var n=i(28),r=i(0),s=i(31),o=i(14),a=i(18),l=i(30),c=i(229),u=i(40),h=i(39),f=i(1)("iterator"),_=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,i,d,m,y,v){c(i,e,d);var b,g,C,w=function(t){if(!_&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},S=e+" Iterator",A="values"==m,E=!1,k=t.prototype,x=k[f]||k["@@iterator"]||m&&k[m],L=!_&&x||w(m),O=m?A?w("entries"):L:void 0,R="Array"==e&&k.entries||x;if(R&&(C=h(R.call(new t)))!==Object.prototype&&C.next&&(u(C,S,!0),n||a(C,f)||o(C,f,p)),A&&x&&"values"!==x.name&&(E=!0,L=function(){return x.call(this)}),n&&!v||!_&&!E&&k[f]||o(k,f,L),l[e]=L,l[S]=p,m)if(b={values:A?L:w("values"),keys:y?L:w("keys"),entries:O},v)for(g in b)g in k||s(k,g,b[g]);else r(r.P+r.F*(_||E),e,b);return b}},function(t,e,i){"use strict";var n=i(230)(!0);i(102)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){"use strict";function n(t,e,i){if(!t.overlayNode_){if(!t.element)return;t.overlayNode_=document.createElement("div"),t.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;",t.overlayNode_.addEventListener("mousedown",function(t){t.preventDefault(),t.stopPropagation()},!0)}t.overlayNode_.style.color="#101010",t.overlayNode_.style.backgroundColor="#f0f0f0",t.overlayNode_.textContent=e,t.overlayNode_.style.opacity="0.75",t.overlayNode_.parentNode||t.element.appendChild(t.overlayNode_);var n=t.element.getBoundingClientRect(),r=t.overlayNode_.getBoundingClientRect();t.overlayNode_.style.top=(n.height-r.height)/2+"px",t.overlayNode_.style.left=(n.width-r.width)/2+"px",t.overlayTimeout_&&clearTimeout(t.overlayTimeout_),null!==i&&(t.overlayTimeout_=setTimeout(function(){t.overlayNode_.style.opacity="0",t.overlayTimeout_=setTimeout(function(){t.overlayNode_.parentNode&&t.overlayNode_.parentNode.removeChild(t.overlayNode_),t.overlayTimeout_=null,t.overlayNode_.style.opacity="0.75"},200)},i||1500))}Object.defineProperty(e,"__esModule",{value:!0}),e.showOverlay=n,e.apply=function(t){t.prototype.showOverlay=function(t,e){return n(this,t,e)}}},function(t,e,i){"use strict";function n(t){var e=t;["Windows","Win16","Win32","WinCE"].indexOf(navigator.platform)>=0&&e.on("linefeed",function(){32!==e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1)[e.cols-1][3]&&(e.buffer.lines.get(e.buffer.ybase+e.buffer.y).isWrapped=!0)})}Object.defineProperty(e,"__esModule",{value:!0}),e.winptyCompatInit=n,e.apply=function(t){t.prototype.winptyCompatInit=function(){n(this)}}},function(t,e,i){"use strict";function n(t){if(!t.element.parentElement)return null;var e=window.getComputedStyle(t.element.parentElement),i=parseInt(e.getPropertyValue("height")),n=Math.max(0,parseInt(e.getPropertyValue("width"))),r=window.getComputedStyle(t.element),s=i-(parseInt(r.getPropertyValue("padding-top"))+parseInt(r.getPropertyValue("padding-bottom"))),o=n-(parseInt(r.getPropertyValue("padding-right"))+parseInt(r.getPropertyValue("padding-left")))-t.viewport.scrollBarWidth;return{cols:Math.floor(o/t.renderer.dimensions.actualCellWidth),rows:Math.floor(s/t.renderer.dimensions.actualCellHeight)}}function r(t){var e=n(t);e&&(t.rows===e.rows&&t.cols===e.cols||(t.renderer.clear(),t.resize(e.cols,e.rows)))}Object.defineProperty(e,"__esModule",{value:!0}),e.proposeGeometry=n,e.fit=r,e.apply=function(t){t.prototype.proposeGeometry=function(){return n(this)},t.prototype.fit=function(){r(this)}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addDisposableListener=function(t,e,i,n){return t.addEventListener(e,i,n),{dispose:function(){i&&(t.removeEventListener(e,i,n),t=null,i=null)}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=i(74),s=i(43),o=i(78),a=i(107);!function(t){t[t.Top=0]="Top",t[t.Bottom=1]="Bottom"}(n||(n={}));var l=function(){function t(t){var e=this;this._terminal=t,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 i=0;i<this._terminal.rows;i++)this._rowElements[i]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[i]);this._topBoundaryFocusListener=function(t){return e._onBoundaryFocus(t,n.Top)},this._bottomBoundaryFocusListener=function(t){return e._onBoundaryFocus(t,n.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 o.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(t){return e._onResize(t.cols,t.rows)})),this._disposables.push(this._terminal.addDisposableListener("refresh",function(t){return e._refreshRows(t.start,t.end)})),this._disposables.push(this._terminal.addDisposableListener("scroll",function(t){return e._refreshRows()})),this._disposables.push(this._terminal.addDisposableListener("a11y.char",function(t){return e._onChar(t)})),this._disposables.push(this._terminal.addDisposableListener("linefeed",function(){return e._onChar("\n")})),this._disposables.push(this._terminal.addDisposableListener("a11y.tab",function(t){return e._onTab(t)})),this._disposables.push(this._terminal.addDisposableListener("key",function(t){return e._onKey(t)})),this._disposables.push(this._terminal.addDisposableListener("blur",function(){return e._clearLiveRegion()})),this._disposables.push(this._terminal.addDisposableListener("dprchange",function(){return e._refreshRowsDimensions()})),this._disposables.push(this._terminal.renderer.addDisposableListener("resize",function(){return e._refreshRowsDimensions()})),this._disposables.push(a.addDisposableListener(window,"resize",function(){return e._refreshRowsDimensions()}))}return t.prototype.dispose=function(){this._disposables.forEach(function(t){return t.dispose()}),this._disposables.length=0,this._terminal.element.removeChild(this._accessibilityTreeRoot),this._rowElements.length=0},t.prototype._onBoundaryFocus=function(t,e){var i=t.target,r=this._rowElements[e===n.Top?1:this._rowElements.length-2];if(i.getAttribute("aria-posinset")!==(e===n.Top?"1":""+this._terminal.buffer.lines.length)&&t.relatedTarget===r){var s,o;if(e===n.Top?(s=i,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(s=this._rowElements.shift(),o=i,this._rowContainer.removeChild(s)),s.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),e===n.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(e===n.Top?-1:1),this._rowElements[e===n.Top?1:this._rowElements.length-2].focus(),t.preventDefault(),t.stopImmediatePropagation()}},t.prototype._onResize=function(t,e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var i=this._rowContainer.children.length;i<this._terminal.rows;i++)this._rowElements[i]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[i]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var t=document.createElement("div");return t.setAttribute("role","listitem"),t.tabIndex=-1,this._refreshRowDimensions(t),t},t.prototype._onTab=function(t){for(var e=0;e<t;e++)this._onChar(" ")},t.prototype._onChar=function(t){var e=this;if(this._liveRegionLineCount<21){if(this._charsToConsume.length>0)this._charsToConsume.shift()!==t&&this._announceCharacter(t);else this._announceCharacter(t);"\n"===t&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=r.tooMuchOutput)),s.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){e._accessibilityTreeRoot.appendChild(e._liveRegion)},0)}},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,s.isMac&&this._liveRegion.parentNode&&this._accessibilityTreeRoot.removeChild(this._liveRegion)},t.prototype._onKey=function(t){this._clearLiveRegion(),this._charsToConsume.push(t)},t.prototype._refreshRows=function(t,e){this._renderRowsDebouncer.refresh(t,e)},t.prototype._renderRows=function(t,e){for(var i=this._terminal.buffer,n=i.lines.length.toString(),s=t;s<=e;s++){var o=i.translateBufferLineToString(i.ydisp+s,!0),a=(i.ydisp+s+1).toString(),l=this._rowElements[s];l.textContent=0===o.length?r.blankLine:o,l.setAttribute("aria-posinset",a),l.setAttribute("aria-setsize",n)}},t.prototype._refreshRowsDimensions=function(){if(this._terminal.renderer.dimensions.actualCellHeight)for(var t=0;t<this._terminal.rows;t++)this._refreshRowDimensions(this._rowElements[t])},t.prototype._refreshRowDimensions=function(t){t.style.height=this._terminal.renderer.dimensions.actualCellHeight+"px"},t.prototype._announceCharacter=function(t){" "===t?this._liveRegion.innerHTML+="&nbsp;":this._liveRegion.textContent+=t},t}();e.AccessibilityManager=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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 n=function(){function t(t){this._terminal=t}return t.prototype.playBellSound=function(){var t=window.AudioContext||window.webkitAudioContext;if(!this._audioContext&&t&&(this._audioContext=new t),this._audioContext){var e=this._audioContext.createBufferSource(),i=this._audioContext;this._audioContext.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._terminal.options.bellSound)),function(t){e.buffer=t,e.connect(i.destination),e.start(0)})}else console.warn("Sorry, but the Web Audio API is not supported by your browser. Please, consider upgrading to the latest version")},t.prototype._base64ToArrayBuffer=function(t){for(var e=window.atob(t),i=e.length,n=new Uint8Array(i),r=0;r<i;r++)n[r]=e.charCodeAt(r);return n.buffer},t.prototype._removeMimeType=function(t){return t.split(",")[1]},t}();e.SoundManager=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clone=function(t,i){if(void 0===i&&(i=5),"object"!=typeof t)return t;if(null===t)return null;var n=Array.isArray(t)?[]:{};for(var r in t)n[r]=i<=1?t[r]:e.clone(t[r],i-1);return n}},function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(e,i){var n=t.call(this)||this;return n._document=e,n._parentElement=i,n._measureElement=n._document.createElement("span"),n._measureElement.classList.add("xterm-char-measure-element"),n._measureElement.textContent="W",n._measureElement.setAttribute("aria-hidden","true"),n._parentElement.appendChild(n._measureElement),n}return r(e,t),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),e.prototype.measure=function(t){this._measureElement.style.fontFamily=t.fontFamily,this._measureElement.style.fontSize=t.fontSize+"px";var e=this._measureElement.getBoundingClientRect();0!==e.width&&0!==e.height&&(this._width===e.width&&this._height===e.height||(this._width=e.width,this._height=Math.ceil(e.height),this.emit("charsizechanged")))},e}(i(19).EventEmitter);e.CharMeasure=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=i(45);!function(t){t.Up="A",t.Down="B",t.Right="C",t.Left="D"}(n||(n={}));var s=function(){function t(t,e){var i;this._mouseEvent=t,this._terminal=e,this._lines=this._terminal.buffer.lines,this._startCol=this._terminal.buffer.x,this._startRow=this._terminal.buffer.y,i=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(t){return t-1}),this._endCol=i[0],this._endRow=i[1]}return t.prototype.move=function(){this._mouseEvent.altKey&&this._terminal.send(this._arrowSequences())},t.prototype._arrowSequences=function(){return this._terminal.buffer.hasScrollback?this._moveHorizontallyOnly():this._resetStartingRow()+this._moveToRequestedRow()+this._moveToRequestedCol()},t.prototype._resetStartingRow=function(){return 0===this._moveToRequestedRow().length?"":o(this._bufferLine(this._startCol,this._startRow,this._startCol,this._startRow-this._wrappedRowsForRow(this._startRow),!1).length,this._sequence(n.Left))},t.prototype._moveToRequestedRow=function(){var t=this._startRow-this._wrappedRowsForRow(this._startRow),e=this._endRow-this._wrappedRowsForRow(this._endRow);return o(Math.abs(t-e)-this._wrappedRowsCount(),this._sequence(this._verticalDirection()))},t.prototype._moveToRequestedCol=function(){var t;t=this._moveToRequestedRow().length>0?this._endRow-this._wrappedRowsForRow(this._endRow):this._startRow;var e=this._endRow,i=this._horizontalDirection();return o(this._bufferLine(this._startCol,t,this._endCol,e,i===n.Right).length,this._sequence(i))},t.prototype._moveHorizontallyOnly=function(){var t=this._horizontalDirection();return o(Math.abs(this._startCol-this._endCol),this._sequence(t))},t.prototype._wrappedRowsCount=function(){for(var t=0,e=this._startRow-this._wrappedRowsForRow(this._startRow),i=this._endRow-this._wrappedRowsForRow(this._endRow),r=0;r<Math.abs(e-i);r++){var s=this._verticalDirection()===n.Up?-1:1;this._lines.get(e+s*r).isWrapped&&t++}return t},t.prototype._wrappedRowsForRow=function(t){for(var e=0,i=this._lines.get(t).isWrapped;i&&t>=0&&t<this._terminal.rows;)e++,t--,i=this._lines.get(t).isWrapped;return e},t.prototype._horizontalDirection=function(){var t;return t=this._moveToRequestedRow().length>0?this._endRow-this._wrappedRowsForRow(this._endRow):this._startRow,this._startCol<this._endCol&&t<=this._endRow||this._startCol>=this._endCol&&t<this._endRow?n.Right:n.Left},t.prototype._verticalDirection=function(){return this._startRow>this._endRow?n.Up:n.Down},t.prototype._bufferLine=function(t,e,i,n,r){for(var s=t,o=e,a="";s!==i||o!==n;)s+=r?1:-1,r&&s>this._terminal.cols-1?(a+=this._terminal.buffer.translateBufferLineToString(o,!1,t,s),s=0,t=0,o++):!r&&s<0&&(a+=this._terminal.buffer.translateBufferLineToString(o,!1,0,t+1),t=s=this._terminal.cols-1,o--);return a+this._terminal.buffer.translateBufferLineToString(o,!1,t,s)},t.prototype._sequence=function(t){var e=this._terminal.applicationCursor?"O":"[";return r.C0.ESC+e+t},t}();function o(t,e){t=Math.floor(t);for(var i="",n=0;n<t;n++)i+=e;return i}e.AltClickHandler=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this._terminal=t,this.clearSelection()}return t.prototype.clearSelection=function(){this.selectionStart=null,this.selectionEnd=null,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(t.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(t.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}),t.prototype.areSelectionValuesReversed=function(){var t=this.selectionStart,e=this.selectionEnd;return!(!t||!e)&&(t[1]>e[1]||t[1]===e[1]&&t[0]>e[0])},t.prototype.onTrim=function(t){return this.selectionStart&&(this.selectionStart[1]-=t),this.selectionEnd&&(this.selectionEnd[1]-=t),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},t}();e.SelectionModel=n},function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var s,o=i(75),a=i(43),l=i(19),c=i(113),u=i(24),h=i(112),f=String.fromCharCode(160),_=new RegExp(f,"g");!function(t){t[t.NORMAL=0]="NORMAL",t[t.WORD=1]="WORD",t[t.LINE=2]="LINE"}(s||(s={}));var p=function(t){function e(e,i){var n=t.call(this)||this;return n._terminal=e,n._charMeasure=i,n._enabled=!0,n._initListeners(),n.enable(),n._model=new c.SelectionModel(e),n._activeSelectionMode=s.NORMAL,n}return r(e,t),Object.defineProperty(e.prototype,"_buffer",{get:function(){return this._terminal.buffers.active},enumerable:!0,configurable:!0}),e.prototype._initListeners=function(){var t=this;this._mouseMoveListener=function(e){return t._onMouseMove(e)},this._mouseUpListener=function(e){return t._onMouseUp(e)},this._trimListener=function(e){return t._onTrim(e)},this.initBuffersListeners()},e.prototype.initBuffersListeners=function(){var t=this;this._terminal.buffer.lines.on("trim",this._trimListener),this._terminal.buffers.on("activate",function(e){return t._onBufferActivate(e)})},e.prototype.disable=function(){this.clearSelection(),this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},Object.defineProperty(e.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasSelection",{get:function(){var t=this._model.finalSelectionStart,e=this._model.finalSelectionEnd;return!(!t||!e)&&(t[0]!==e[0]||t[1]!==e[1])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionText",{get:function(){var t=this._model.finalSelectionStart,e=this._model.finalSelectionEnd;if(!t||!e)return"";var i=t[1]===e[1]?e[0]:null,n=[];n.push(this._buffer.translateBufferLineToString(t[1],!0,t[0],i));for(var r=t[1]+1;r<=e[1]-1;r++){var s=this._buffer.lines.get(r),o=this._buffer.translateBufferLineToString(r,!0);s.isWrapped?n[n.length-1]+=o:n.push(o)}if(t[1]!==e[1]){s=this._buffer.lines.get(e[1]),o=this._buffer.translateBufferLineToString(e[1],!0,0,e[0]);s.isWrapped?n[n.length-1]+=o:n.push(o)}return n.map(function(t){return t.replace(_," ")}).join(a.isMSWindows?"\r\n":"\n")},enumerable:!0,configurable:!0}),e.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh()},e.prototype.refresh=function(t){var e=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return e._refresh()})),a.isLinux&&t)&&(this.selectionText.length&&this.emit("newselection",this.selectionText))},e.prototype._refresh=function(){this._refreshAnimationFrame=null,this.emit("refresh",{start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd})},e.prototype.isClickInSelection=function(t){var e=this._getMouseBufferCoords(t),i=this._model.finalSelectionStart,n=this._model.finalSelectionEnd;return!(!i||!n)&&(e[1]>i[1]&&e[1]<n[1]||i[1]===n[1]&&e[1]===i[1]&&e[0]>i[0]&&e[0]<n[0]||i[1]<n[1]&&e[1]===n[1]&&e[0]<n[0])},e.prototype.selectWordAtCursor=function(t){var e=this._getMouseBufferCoords(t);e&&(this._selectWordAt(e,!1),this._model.selectionEnd=null,this.refresh(!0))},e.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._terminal.emit("selection")},e.prototype.selectLines=function(t,e){this._model.clearSelection(),t=Math.max(t,0),e=Math.min(e,this._terminal.buffer.lines.length-1),this._model.selectionStart=[0,t],this._model.selectionEnd=[this._terminal.cols,e],this.refresh(),this._terminal.emit("selection")},e.prototype._onTrim=function(t){this._model.onTrim(t)&&this.refresh()},e.prototype._getMouseBufferCoords=function(t){var e=this._terminal.mouseHelper.getCoords(t,this._terminal.screenElement,this._charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows,!0);return e?(e[0]--,e[1]--,e[1]+=this._terminal.buffer.ydisp,e):null},e.prototype._getMouseEventScrollAmount=function(t){var e=o.MouseHelper.getCoordsRelativeToElement(t,this._terminal.screenElement)[1],i=this._terminal.rows*Math.ceil(this._charMeasure.height*this._terminal.options.lineHeight);return e>=0&&e<=i?0:(e>i&&(e-=i),e=Math.min(Math.max(e,-50),50),(e/=50)/Math.abs(e)+Math.round(14*e))},e.prototype.shouldForceSelection=function(t){return a.isMac?t.altKey:t.shiftKey},e.prototype.onMouseDown=function(t){if(this._mouseDownTimeStamp=t.timeStamp,(2!==t.button||!this.hasSelection)&&0===t.button){if(!this._enabled){if(!this.shouldForceSelection(t))return;t.stopPropagation()}t.preventDefault(),this._dragScrollAmount=0,this._enabled&&t.shiftKey?this._onIncrementalClick(t):1===t.detail?this._onSingleClick(t):2===t.detail?this._onDoubleClick(t):3===t.detail&&this._onTripleClick(t),this._addMouseDownListeners(),this.refresh(!0)}},e.prototype._addMouseDownListeners=function(){var t=this;this._terminal.element.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.ownerDocument.addEventListener("mouseup",this._mouseUpListener),this._dragScrollIntervalTimer=setInterval(function(){return t._dragScroll()},50)},e.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},e.prototype._onIncrementalClick=function(t){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(t))},e.prototype._onSingleClick=function(t){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=s.NORMAL,this._model.selectionStart=this._getMouseBufferCoords(t),this._model.selectionStart){this._model.selectionEnd=null;var e=this._buffer.lines.get(this._model.selectionStart[1]);if(e)if(!(e.length>=this._model.selectionStart[0]))0===e[this._model.selectionStart[0]][u.CHAR_DATA_WIDTH_INDEX]&&this._model.selectionStart[0]++}},e.prototype._onDoubleClick=function(t){var e=this._getMouseBufferCoords(t);e&&(this._activeSelectionMode=s.WORD,this._selectWordAt(e,!0))},e.prototype._onTripleClick=function(t){var e=this._getMouseBufferCoords(t);e&&(this._activeSelectionMode=s.LINE,this._selectLineAt(e[1]))},e.prototype._onMouseMove=function(t){t.stopImmediatePropagation();var e=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(t),this._model.selectionEnd){if(this._activeSelectionMode===s.LINE?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._terminal.cols:this._activeSelectionMode===s.WORD&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(t),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 i=this._buffer.lines.get(this._model.selectionEnd[1])[this._model.selectionEnd[0]];i&&0===i[u.CHAR_DATA_WIDTH_INDEX]&&this._model.selectionEnd[0]++}e&&e[0]===this._model.selectionEnd[0]&&e[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)},e.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())},e.prototype._onMouseUp=function(t){var e=t.timeStamp-this._mouseDownTimeStamp;this._removeMouseDownListeners(),this.selectionText.length<=1&&e<500?new h.AltClickHandler(t,this._terminal).move():this.hasSelection&&this._terminal.emit("selection")},e.prototype._onBufferActivate=function(t){this.clearSelection(),t.inactiveBuffer.lines.off("trim",this._trimListener),t.activeBuffer.lines.on("trim",this._trimListener)},e.prototype._convertViewportColToCharacterIndex=function(t,e){for(var i=e[0],n=0;e[0]>=n;n++){var r=t[n];0===r[u.CHAR_DATA_WIDTH_INDEX]?i--:r[u.CHAR_DATA_CHAR_INDEX].length>1&&e[0]!==n&&(i+=r[u.CHAR_DATA_CHAR_INDEX].length-1)}return i},e.prototype.setSelection=function(t,e,i){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[t,e],this._model.selectionStartLength=i,this.refresh()},e.prototype._getWordAt=function(t,e){if(t[0]>=this._terminal.cols)return null;var i=this._buffer.lines.get(t[1]);if(!i)return null;var n=this._buffer.translateBufferLineToString(t[1],!1),r=this._convertViewportColToCharacterIndex(i,t),s=r,o=t[0]-r,a=0,l=0,c=0,h=0;if(" "===n.charAt(r)){for(;r>0&&" "===n.charAt(r-1);)r--;for(;s<n.length&&" "===n.charAt(s+1);)s++}else{var f=t[0],_=t[0];for(0===i[f][u.CHAR_DATA_WIDTH_INDEX]&&(a++,f--),2===i[_][u.CHAR_DATA_WIDTH_INDEX]&&(l++,_++),i[_][u.CHAR_DATA_CHAR_INDEX].length>1&&(h+=i[_][u.CHAR_DATA_CHAR_INDEX].length-1,s+=i[_][u.CHAR_DATA_CHAR_INDEX].length-1);f>0&&r>0&&!this._isCharWordSeparator(i[f-1]);){0===(p=i[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(;_<i.length&&s+1<n.length&&!this._isCharWordSeparator(i[_+1]);){var p;2===(p=i[_+1])[u.CHAR_DATA_WIDTH_INDEX]?(l++,_++):p[u.CHAR_DATA_CHAR_INDEX].length>1&&(h+=p[u.CHAR_DATA_CHAR_INDEX].length-1,s+=p[u.CHAR_DATA_CHAR_INDEX].length-1),s++,_++}}s++;var d=r+o-a+c,m=Math.min(this._terminal.cols,s-r+a+l-c-h);return e||""!==n.slice(r,s).trim()?{start:d,length:m}:null},e.prototype._selectWordAt=function(t,e){var i=this._getWordAt(t,e);i&&(this._model.selectionStart=[i.start,t[1]],this._model.selectionStartLength=i.length)},e.prototype._selectToWordAt=function(t){var e=this._getWordAt(t,!0);e&&(this._model.selectionEnd=[this._model.areSelectionValuesReversed()?e.start:e.start+e.length,t[1]])},e.prototype._isCharWordSeparator=function(t){return 0!==t[u.CHAR_DATA_WIDTH_INDEX]&&" ()[]{}'\"".indexOf(t[u.CHAR_DATA_CHAR_INDEX])>=0},e.prototype._selectLineAt=function(t){this._model.selectionStart=[0,t],this._model.selectionStartLength=this._terminal.cols},e}(l.EventEmitter);e.SelectionManager=p},function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var s=i(79),o=i(76),a=function(t){function e(e){var i=t.call(this)||this;return i._terminal=e,i._linkMatchers=[],i._nextLinkMatcherId=0,i._rowsToLinkify={start:null,end:null},i}return r(e,t),e.prototype.attachToDom=function(t){this._mouseZoneManager=t},e.prototype.linkifyRows=function(t,i){var n=this;this._mouseZoneManager&&(null===this._rowsToLinkify.start?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=i):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,i)),this._mouseZoneManager.clearAll(t,i),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return n._linkifyRows()},e.TIME_BEFORE_LINKIFY))},e.prototype._linkifyRows=function(){this._rowsTimeoutId=null;for(var t=this._rowsToLinkify.start;t<=this._rowsToLinkify.end;t++)this._linkifyRow(t);this._rowsToLinkify.start=null,this._rowsToLinkify.end=null},e.prototype.registerLinkMatcher=function(t,e,i){if(void 0===i&&(i={}),!e)throw new Error("handler must be defined");var n={id:this._nextLinkMatcherId++,regex:t,handler:e,matchIndex:i.matchIndex,validationCallback:i.validationCallback,hoverTooltipCallback:i.tooltipCallback,hoverLeaveCallback:i.leaveCallback,willLinkActivate:i.willLinkActivate,priority:i.priority||0};return this._addLinkMatcherToList(n),n.id},e.prototype._addLinkMatcherToList=function(t){if(0!==this._linkMatchers.length){for(var e=this._linkMatchers.length-1;e>=0;e--)if(t.priority<=this._linkMatchers[e].priority)return void this._linkMatchers.splice(e+1,0,t);this._linkMatchers.splice(0,0,t)}else this._linkMatchers.push(t)},e.prototype.deregisterLinkMatcher=function(t){for(var e=0;e<this._linkMatchers.length;e++)if(this._linkMatchers[e].id===t)return this._linkMatchers.splice(e,1),!0;return!1},e.prototype._linkifyRow=function(t){var e=this._terminal.buffer.ydisp+t;if(!(e>=this._terminal.buffer.lines.length)){if(this._terminal.buffer.lines.get(e).isWrapped){if(0!==t)return;do{t--,e--}while(this._terminal.buffer.lines.get(e).isWrapped)}for(var i=this._terminal.buffer.translateBufferLineToString(e,!1),n=e+1;n<this._terminal.buffer.lines.length&&this._terminal.buffer.lines.get(n).isWrapped;)i+=this._terminal.buffer.translateBufferLineToString(n++,!1);for(var r=0;r<this._linkMatchers.length;r++)this._doLinkifyRow(t,i,this._linkMatchers[r])}},e.prototype._doLinkifyRow=function(t,e,i,n){var r=this;void 0===n&&(n=0);var s=e.match(i.regex);if(s&&0!==s.length){var o=s["number"!=typeof i.matchIndex?0:i.matchIndex],a=e.indexOf(o);i.validationCallback?i.validationCallback(o,function(e){r._rowsTimeoutId||e&&r._addLink(n+a,t,o,i)}):this._addLink(n+a,t,o,i);var l=a+o.length,c=e.substr(l);c.length>0&&this._doLinkifyRow(t,c,i,n+l)}},e.prototype._addLink=function(t,e,i,n){var r=this,a=t%this._terminal.cols,l=e+Math.floor(t/this._terminal.cols),c=(a+i.length)%this._terminal.cols,u=l+Math.floor((a+i.length)/this._terminal.cols);0===c&&(c=this._terminal.cols,u--),this._mouseZoneManager.add(new o.MouseZone(a+1,l+1,c+1,u+1,function(t){if(n.handler)return n.handler(t,i);window.open(i,"_blank")},function(t){r.emit(s.LinkHoverEventTypes.HOVER,r._createLinkHoverEvent(a,l,c,u)),r._terminal.element.classList.add("xterm-cursor-pointer")},function(t){r.emit(s.LinkHoverEventTypes.TOOLTIP,r._createLinkHoverEvent(a,l,c,u)),n.hoverTooltipCallback&&n.hoverTooltipCallback(t,i)},function(){r.emit(s.LinkHoverEventTypes.LEAVE,r._createLinkHoverEvent(a,l,c,u)),r._terminal.element.classList.remove("xterm-cursor-pointer"),n.hoverLeaveCallback&&n.hoverLeaveCallback()},function(t){return!n.willLinkActivate||n.willLinkActivate(t,i)}))},e.prototype._createLinkHoverEvent=function(t,e,i,n){return{x1:t,y1:e,x2:i,y2:n,cols:this._terminal.cols}},e.TIME_BEFORE_LINKIFY=200,e}(i(19).EventEmitter);e.Linkifier=a},function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var s=i(79),o=function(t){function e(e,i,n,r){var o=t.call(this,e,"link",i,!0,n)||this;return o._state=null,r.linkifier.on(s.LinkHoverEventTypes.HOVER,function(t){return o._onLinkHover(t)}),r.linkifier.on(s.LinkHoverEventTypes.LEAVE,function(t){return o._onLinkLeave(t)}),o}return r(e,t),e.prototype.resize=function(e,i){t.prototype.resize.call(this,e,i),this._state=null},e.prototype.reset=function(t){this._clearCurrentLink()},e.prototype._clearCurrentLink=function(){if(this._state){this.clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var t=this._state.y2-this._state.y1-1;t>0&&this.clearCells(0,this._state.y1+1,this._state.cols,t),this.clearCells(0,this._state.y2,this._state.x2,1),this._state=null}},e.prototype._onLinkHover=function(t){if(this._ctx.fillStyle=this._colors.foreground.css,t.y1===t.y2)this.fillBottomLineAtCells(t.x1,t.y1,t.x2-t.x1);else{this.fillBottomLineAtCells(t.x1,t.y1,t.cols-t.x1);for(var e=t.y1+1;e<t.y2;e++)this.fillBottomLineAtCells(0,e,t.cols);this.fillBottomLineAtCells(0,t.y2,t.x2)}this._state=t},e.prototype._onLinkLeave=function(t){this._clearCurrentLink()},e}(i(44).BaseRenderLayer);e.LinkRenderLayer=o},function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var s=i(24),o=function(t){function e(e,i,n){var r=t.call(this,e,"cursor",i,!0,n)||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(e,t),e.prototype.resize=function(e,i){t.prototype.resize.call(this,e,i),this._state={x:null,y:null,isFocused:null,style:null,width:null}},e.prototype.reset=function(t){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=null,this.onOptionsChanged(t))},e.prototype.onBlur=function(t){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),t.refresh(t.buffer.y,t.buffer.y)},e.prototype.onFocus=function(t){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume(t):t.refresh(t.buffer.y,t.buffer.y)},e.prototype.onOptionsChanged=function(t){var e=this;t.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new a(t,function(){e._render(t,!0)})):(this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=null),t.refresh(t.buffer.y,t.buffer.y))},e.prototype.onCursorMove=function(t){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation(t)},e.prototype.onGridChanged=function(t,e,i){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(t,!1):this._cursorBlinkStateManager.restartBlinkAnimation(t)},e.prototype._render=function(t,e){if(t.cursorState&&!t.cursorHidden){var i=t.buffer.ybase+t.buffer.y,n=i-t.buffer.ydisp;if(n<0||n>=t.rows)this._clearCursor();else{var r=t.buffer.lines.get(i)[t.buffer.x];if(r){if(!t.isFocused)return this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._renderBlurCursor(t,t.buffer.x,n,r),this._ctx.restore(),this._state.x=t.buffer.x,this._state.y=n,this._state.isFocused=!1,this._state.style=t.options.cursorStyle,void(this._state.width=r[s.CHAR_DATA_WIDTH_INDEX]);if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===t.buffer.x&&this._state.y===n&&this._state.isFocused===t.isFocused&&this._state.style===t.options.cursorStyle&&this._state.width===r[s.CHAR_DATA_WIDTH_INDEX])return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[t.options.cursorStyle||"block"](t,t.buffer.x,n,r),this._ctx.restore(),this._state.x=t.buffer.x,this._state.y=n,this._state.isFocused=!1,this._state.style=t.options.cursorStyle,this._state.width=r[s.CHAR_DATA_WIDTH_INDEX]}else this._clearCursor()}}}else this._clearCursor()},e.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})},e.prototype._renderBarCursor=function(t,e,i,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillLeftLineAtCell(e,i),this._ctx.restore()},e.prototype._renderBlockCursor=function(t,e,i,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillCells(e,i,n[s.CHAR_DATA_WIDTH_INDEX],1),this._ctx.fillStyle=this._colors.cursorAccent.css,this.fillCharTrueColor(t,n,e,i),this._ctx.restore()},e.prototype._renderUnderlineCursor=function(t,e,i,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillBottomLineAtCells(e,i),this._ctx.restore()},e.prototype._renderBlurCursor=function(t,e,i,n){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this.strokeRectAtCell(e,i,n[s.CHAR_DATA_WIDTH_INDEX],1),this._ctx.restore()},e}(i(44).BaseRenderLayer);e.CursorRenderLayer=o;var a=function(){function t(t,e){this._renderCallback=e,this.isCursorVisible=!0,t.isFocused&&this._restartInterval()}return Object.defineProperty(t.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!0,configurable:!0}),t.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)},t.prototype.restartBlinkAnimation=function(t){var e=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){e._renderCallback(),e._animationFrame=null})))},t.prototype._restartInterval=function(t){var e=this;void 0===t&&(t=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=setTimeout(function(){if(e._animationTimeRestarted){var t=600-(Date.now()-e._animationTimeRestarted);if(e._animationTimeRestarted=null,t>0)return void e._restartInterval(t)}e.isCursorVisible=!1,e._animationFrame=window.requestAnimationFrame(function(){e._renderCallback(),e._animationFrame=null}),e._blinkInterval=setInterval(function(){if(e._animationTimeRestarted){var t=600-(Date.now()-e._animationTimeRestarted);return e._animationTimeRestarted=null,void e._restartInterval(t)}e.isCursorVisible=!e.isCursorVisible,e._animationFrame=window.requestAnimationFrame(function(){e._renderCallback(),e._animationFrame=null})},600)},t)},t.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)},t.prototype.resume=function(t){this._animationTimeRestarted=null,this._restartInterval(),this.restartBlinkAnimation(t)},t}()},function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(e,i,n){var r=t.call(this,e,"selection",i,!0,n)||this;return r._state={start:null,end:null},r}return r(e,t),e.prototype.resize=function(e,i){t.prototype.resize.call(this,e,i),this._state={start:null,end:null}},e.prototype.reset=function(t){this._state.start&&this._state.end&&(this._state={start:null,end:null},this.clearAll())},e.prototype.onSelectionChanged=function(t,e,i){if(this._state.start!==e&&this._state.end!==i&&(this.clearAll(),e&&i)){var n=e[1]-t.buffer.ydisp,r=i[1]-t.buffer.ydisp,s=Math.max(n,0),o=Math.min(r,t.rows-1);if(!(s>=t.rows||o<0)){var a=n===s?e[0]:0,l=s===o?i[0]:t.cols;this._ctx.fillStyle=this._colors.selection.css,this.fillCells(a,s,l-a,1);var c=Math.max(o-s-1,0);if(this.fillCells(0,s+1,t.cols,c),s!==o){var u=r===o?i[0]:t.cols;this.fillCells(0,o,u,1)}this._state.start=[e[0],e[1]],this._state.end=[i[0],i[1]]}}},e}(i(44).BaseRenderLayer);e.SelectionRenderLayer=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateConfig=function(t,e,i,n){var r={foreground:n.foreground,background:n.background,cursor:null,cursorAccent:null,selection:null,ansi:n.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:t,scaledCharHeight:e,fontFamily:i.options.fontFamily,fontSize:i.options.fontSize,fontWeight:i.options.fontWeight,fontWeightBold:i.options.fontWeightBold,allowTransparency:i.options.allowTransparency,colors:r}},e.configEquals=function(t,e){for(var i=0;i<t.colors.ansi.length;i++)if(t.colors.ansi[i].rgba!==e.colors.ansi[i].rgba)return!1;return t.devicePixelRatio===e.devicePixelRatio&&t.fontFamily===e.fontFamily&&t.fontSize===e.fontSize&&t.fontWeight===e.fontWeight&&t.fontWeightBold===e.fontWeightBold&&t.allowTransparency===e.allowTransparency&&t.scaledCharWidth===e.scaledCharWidth&&t.scaledCharHeight===e.scaledCharHeight&&t.colors.foreground===e.colors.foreground&&t.colors.background===e.colors.background}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(81),r=i(43);function s(t,e){return t+" "+e.fontSize*e.devicePixelRatio+"px "+e.fontFamily}e.generateCharAtlas=function(t,e,i){var o=i.scaledCharWidth+n.CHAR_ATLAS_CELL_SPACING,a=i.scaledCharHeight+n.CHAR_ATLAS_CELL_SPACING,l=e(255*o,18*a),c=l.getContext("2d",{alpha:i.allowTransparency});c.fillStyle=i.colors.background.css,c.fillRect(0,0,l.width,l.height),c.save(),c.fillStyle=i.colors.foreground.css,c.font=s(i.fontWeight,i),c.textBaseline="top";for(var u=0;u<256;u++)c.save(),c.beginPath(),c.rect(u*o,0,o,a),c.clip(),c.fillText(String.fromCharCode(u),u*o,0),c.restore();for(c.save(),c.font=s(i.fontWeightBold,i),u=0;u<256;u++)c.save(),c.beginPath(),c.rect(u*o,a,o,a),c.clip(),c.fillText(String.fromCharCode(u),u*o,a),c.restore();c.restore(),c.font=s(i.fontWeight,i);for(var h=0;h<16;h++){8===h&&(c.font=s(i.fontWeightBold,i));var f=(h+2)*a;for(u=0;u<256;u++)c.save(),c.beginPath(),c.rect(u*o,f,o,a),c.clip(),c.fillStyle=i.colors.ansi[h].css,c.fillText(String.fromCharCode(u),u*o,f),c.restore()}if(c.restore(),!("createImageBitmap"in t)||r.isFirefox)return l instanceof HTMLCanvasElement?l:new Promise(function(t){return t(l.transferToImageBitmap())});var _=c.getImageData(0,0,l.width,l.height);return function(t,e,i,n){for(var r=0;r<t.data.length;r+=4)t.data[r]===e&&t.data[r+1]===i&&t.data[r+2]===n&&(t.data[r+3]=0)}(_,i.colors.background.rgba>>>24,i.colors.background.rgba>>>16&255,i.colors.background.rgba>>>8&255),t.createImageBitmap(_)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(120),r=i(119),s=[];e.acquireCharAtlas=function(t,e,i,o){for(var a=r.generateConfig(i,o,t,e),l=0;l<s.length;l++){var c=(u=s[l]).ownedBy.indexOf(t);if(c>=0){if(r.configEquals(u.config,a))return u.bitmap;1===u.ownedBy.length?s.splice(l,1):u.ownedBy.splice(c,1);break}}for(l=0;l<s.length;l++){var u=s[l];if(r.configEquals(u.config,a))return u.ownedBy.push(t),u.bitmap}var h={bitmap:n.generateCharAtlas(window,function(t,e){var i=document.createElement("canvas");return i.width=t,i.height=e,i},a),config:a,ownedBy:[t]};return s.push(h),h.bitmap}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.cache=[]}return t.prototype.resize=function(t,e){for(var i=0;i<t;i++){this.cache.length<=i&&this.cache.push([]);for(var n=this.cache[i].length;n<e;n++)this.cache[i].push(null);this.cache[i].length=e}this.cache.length=t},t.prototype.clear=function(){for(var t=0;t<this.cache.length;t++)for(var e=0;e<this.cache[t].length;e++)this.cache[t][e]=null},t}();e.GridCache=n},function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var s=i(24),o=i(83),a=i(82),l=i(122),c=function(t){function e(e,i,n,r){var s=t.call(this,e,"text",i,r,n)||this;return s._characterOverlapCache={},s._state=new l.GridCache,s}return r(e,t),e.prototype.resize=function(e,i){t.prototype.resize.call(this,e,i);var n=this._getFont(e,!1);this._characterWidth===i.scaledCharWidth&&this._characterFont===n||(this._characterWidth=i.scaledCharWidth,this._characterFont=n,this._characterOverlapCache={}),this._state.clear(),this._state.resize(e.cols,e.rows)},e.prototype.reset=function(t){this._state.clear(),this.clearAll()},e.prototype.onGridChanged=function(t,e,i){if(0!==this._state.cache.length)for(var n=e;n<=i;n++){var r=n+t.buffer.ydisp,l=t.buffer.lines.get(r);this.clearCells(0,n,t.cols,1);for(var c=0;c<t.cols;c++){var u=l[c],h=u[s.CHAR_DATA_CODE_INDEX],f=u[s.CHAR_DATA_CHAR_INDEX],_=u[s.CHAR_DATA_ATTR_INDEX],p=u[s.CHAR_DATA_WIDTH_INDEX];if(0!==p){if(32===h&&c>0){var d=l[c-1];if(this._isOverlapping(d))continue}var m=_>>18,y=511&_,v=y>=256,b=m&o.FLAGS.INVISIBLE,g=m&o.FLAGS.INVERSE;if(h&&(32!==h||!v||g)&&!b){0!==p&&this._isOverlapping(u)&&c<l.length-1&&32===l[c+1][s.CHAR_DATA_CODE_INDEX]&&(p=2);var C=_>>9&511;if(g){var w=y;y=C,256===(C=w)&&(C=a.INVERTED_DEFAULT_COLOR),257===y&&(y=a.INVERTED_DEFAULT_COLOR)}y<256&&(this._ctx.save(),this._ctx.fillStyle=y===a.INVERTED_DEFAULT_COLOR?this._colors.foreground.css:this._colors.ansi[y].css,this.fillCells(c,n,p,1),this._ctx.restore()),this._ctx.save(),m&o.FLAGS.BOLD&&(this._ctx.font=this._getFont(t,!0),C<8&&(C+=8)),m&o.FLAGS.UNDERLINE&&(C===a.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:this._ctx.fillStyle=C<256?this._colors.ansi[C].css:this._colors.foreground.css,this.fillBottomLineAtCells(c,n)),this.drawChar(t,f,h,p,c,n,C,y,!!(m&o.FLAGS.BOLD),!!(m&o.FLAGS.DIM)),this._ctx.restore()}}}}},e.prototype.onOptionsChanged=function(t){this.setTransparency(t,t.options.allowTransparency)},e.prototype._isOverlapping=function(t){if(1!==t[s.CHAR_DATA_WIDTH_INDEX])return!1;if(t[s.CHAR_DATA_CODE_INDEX]<256)return!1;var e=t[s.CHAR_DATA_CHAR_INDEX];if(this._characterOverlapCache.hasOwnProperty(e))return this._characterOverlapCache[e];this._ctx.save(),this._ctx.font=this._characterFont;var i=Math.floor(this._ctx.measureText(e).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[e]=i,i},e}(i(44).BaseRenderLayer);e.TextRenderLayer=c},function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var s=i(123),o=i(118),a=i(117),l=i(80),c=i(116),u=i(19),h=i(78),f=i(77),_=function(t){function e(e,i){var n=t.call(this)||this;n._terminal=e,n._isPaused=!1,n._needsFullRefresh=!1;var r=n._terminal.options.allowTransparency;(n.colorManager=new l.ColorManager(document,r),i&&n.colorManager.setTheme(i),n._renderLayers=[new s.TextRenderLayer(n._terminal.screenElement,0,n.colorManager.colors,r),new o.SelectionRenderLayer(n._terminal.screenElement,1,n.colorManager.colors),new c.LinkRenderLayer(n._terminal.screenElement,2,n.colorManager.colors,n._terminal),new a.CursorRenderLayer(n._terminal.screenElement,3,n.colorManager.colors)],n.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},n._devicePixelRatio=window.devicePixelRatio,n._updateDimensions(),n.onOptionsChanged(),n._renderDebouncer=new h.RenderDebouncer(n._terminal,n._renderRows.bind(n)),n._screenDprMonitor=new f.ScreenDprMonitor,n._screenDprMonitor.setListener(function(){return n.onWindowResize(window.devicePixelRatio)}),"IntersectionObserver"in window)&&new IntersectionObserver(function(t){return n.onIntersectionChange(t[0])},{threshold:0}).observe(n._terminal.element);return n}return r(e,t),e.prototype.onIntersectionChange=function(t){this._isPaused=0===t.intersectionRatio,!this._isPaused&&this._needsFullRefresh&&this._terminal.refresh(0,this._terminal.rows-1)},e.prototype.onWindowResize=function(t){this._devicePixelRatio!==t&&(this._devicePixelRatio=t,this.onResize(this._terminal.cols,this._terminal.rows))},e.prototype.setTheme=function(t){var e=this;return this.colorManager.setTheme(t),this._renderLayers.forEach(function(t){t.onThemeChanged(e._terminal,e.colorManager.colors),t.reset(e._terminal)}),this._isPaused?this._needsFullRefresh=!0:this._terminal.refresh(0,this._terminal.rows-1),this.colorManager.colors},e.prototype.onResize=function(t,e){var i=this;this._updateDimensions(),this._renderLayers.forEach(function(t){return t.resize(i._terminal,i.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})},e.prototype.onCharSizeChanged=function(){this.onResize(this._terminal.cols,this._terminal.rows)},e.prototype.onBlur=function(){var t=this;this._runOperation(function(e){return e.onBlur(t._terminal)})},e.prototype.onFocus=function(){var t=this;this._runOperation(function(e){return e.onFocus(t._terminal)})},e.prototype.onSelectionChanged=function(t,e){var i=this;this._runOperation(function(n){return n.onSelectionChanged(i._terminal,t,e)})},e.prototype.onCursorMove=function(){var t=this;this._runOperation(function(e){return e.onCursorMove(t._terminal)})},e.prototype.onOptionsChanged=function(){var t=this;this._runOperation(function(e){return e.onOptionsChanged(t._terminal)})},e.prototype.clear=function(){var t=this;this._runOperation(function(e){return e.reset(t._terminal)})},e.prototype._runOperation=function(t){this._isPaused?this._needsFullRefresh=!0:this._renderLayers.forEach(function(e){return t(e)})},e.prototype.refreshRows=function(t,e){this._isPaused?this._needsFullRefresh=!0:this._renderDebouncer.refresh(t,e)},e.prototype._renderRows=function(t,e){var i=this;this._renderLayers.forEach(function(n){return n.onGridChanged(i._terminal,t,e)}),this._terminal.emit("refresh",{start:t,end:e})},e.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)},e}(u.EventEmitter);e.Renderer=_},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(45),r=i(84),s={};s[n.C0.BEL]=function(t,e){return e.bell()},s[n.C0.LF]=function(t,e){return e.lineFeed()},s[n.C0.VT]=s[n.C0.LF],s[n.C0.FF]=s[n.C0.LF],s[n.C0.CR]=function(t,e){return e.carriageReturn()},s[n.C0.BS]=function(t,e){return e.backspace()},s[n.C0.HT]=function(t,e){return e.tab()},s[n.C0.SO]=function(t,e){return e.shiftOut()},s[n.C0.SI]=function(t,e){return e.shiftIn()},s[n.C0.ESC]=function(t,e){return t.setState(l.ESCAPED)};var o={"[":function(t,e){e.params=[],e.currentParam=0,t.setState(l.CSI_PARAM)},"]":function(t,e){e.params=[],e.currentParam=0,t.setState(l.OSC)},P:function(t,e){e.params=[],e.currentParam=0,t.setState(l.DCS)},_:function(t,e){t.setState(l.IGNORE)},"^":function(t,e){t.setState(l.IGNORE)},c:function(t,e){e.reset()},E:function(t,e){e.buffer.x=0,e.index(),t.setState(l.NORMAL)},D:function(t,e){e.index(),t.setState(l.NORMAL)},M:function(t,e){e.reverseIndex(),t.setState(l.NORMAL)},"%":function(t,e){e.setgLevel(0),e.setgCharset(0,r.DEFAULT_CHARSET),t.setState(l.NORMAL),t.skipNextChar()}};o[n.C0.CAN]=function(t){return t.setState(l.NORMAL)};var a={"?":function(t){return t.setPrefix("?")},">":function(t){return t.setPrefix(">")},"!":function(t){return t.setPrefix("!")},0:function(t){return t.setParam(10*t.getParam())},1:function(t){return t.setParam(10*t.getParam()+1)},2:function(t){return t.setParam(10*t.getParam()+2)},3:function(t){return t.setParam(10*t.getParam()+3)},4:function(t){return t.setParam(10*t.getParam()+4)},5:function(t){return t.setParam(10*t.getParam()+5)},6:function(t){return t.setParam(10*t.getParam()+6)},7:function(t){return t.setParam(10*t.getParam()+7)},8:function(t){return t.setParam(10*t.getParam()+8)},9:function(t){return t.setParam(10*t.getParam()+9)},$:function(t){return t.setPostfix("$")},'"':function(t){return t.setPostfix('"')}," ":function(t){return t.setPostfix(" ")},"'":function(t){return t.setPostfix("'")},";":function(t){return t.finalizeParam()}};a[n.C0.CAN]=function(t){return t.setState(l.NORMAL)};var l,c={};c["@"]=function(t,e,i){return t.insertChars(e)},c.A=function(t,e,i){return t.cursorUp(e)},c.B=function(t,e,i){return t.cursorDown(e)},c.C=function(t,e,i){return t.cursorForward(e)},c.D=function(t,e,i){return t.cursorBackward(e)},c.E=function(t,e,i){return t.cursorNextLine(e)},c.F=function(t,e,i){return t.cursorPrecedingLine(e)},c.G=function(t,e,i){return t.cursorCharAbsolute(e)},c.H=function(t,e,i){return t.cursorPosition(e)},c.I=function(t,e,i){return t.cursorForwardTab(e)},c.J=function(t,e,i){return t.eraseInDisplay(e)},c.K=function(t,e,i){return t.eraseInLine(e)},c.L=function(t,e,i){return t.insertLines(e)},c.M=function(t,e,i){return t.deleteLines(e)},c.P=function(t,e,i){return t.deleteChars(e)},c.S=function(t,e,i){return t.scrollUp(e)},c.T=function(t,e,i){e.length<2&&!i&&t.scrollDown(e)},c.X=function(t,e,i){return t.eraseChars(e)},c.Z=function(t,e,i){return t.cursorBackwardTab(e)},c["`"]=function(t,e,i){return t.charPosAbsolute(e)},c.a=function(t,e,i){return t.HPositionRelative(e)},c.b=function(t,e,i){return t.repeatPrecedingCharacter(e)},c.c=function(t,e,i){return t.sendDeviceAttributes(e)},c.d=function(t,e,i){return t.linePosAbsolute(e)},c.e=function(t,e,i){return t.VPositionRelative(e)},c.f=function(t,e,i){return t.HVPosition(e)},c.g=function(t,e,i){return t.tabClear(e)},c.h=function(t,e,i){return t.setMode(e)},c.l=function(t,e,i){return t.resetMode(e)},c.m=function(t,e,i){return t.charAttributes(e)},c.n=function(t,e,i){return t.deviceStatus(e)},c.p=function(t,e,i){switch(i){case"!":t.softReset(e)}},c.q=function(t,e,i,n){" "===n&&t.setCursorStyle(e)},c.r=function(t,e){return t.setScrollRegion(e)},c.s=function(t,e){return t.saveCursor(e)},c.u=function(t,e){return t.restoreCursor(e)},c[n.C0.CAN]=function(t,e,i,n,r){return r.setState(l.NORMAL)},function(t){t[t.NORMAL=0]="NORMAL",t[t.ESCAPED=1]="ESCAPED",t[t.CSI_PARAM=2]="CSI_PARAM",t[t.CSI=3]="CSI",t[t.OSC=4]="OSC",t[t.CHARSET=5]="CHARSET",t[t.DCS=6]="DCS",t[t.IGNORE=7]="IGNORE"}(l=e.ParserState||(e.ParserState={}));var u=function(){function t(t,e){this._inputHandler=t,this._terminal=e,this._state=l.NORMAL}return t.prototype.parse=function(t){var e,i,u,h,f=t.length,_=this._terminal.buffer.x,p=this._terminal.buffer.y;for(this._terminal.debug&&this._terminal.log("data: "+t),this._position=0,this._terminal.surrogate_high&&(t=this._terminal.surrogate_high+t,this._terminal.surrogate_high="");this._position<f;this._position++){if(i=t[this._position],55296<=(u=t.charCodeAt(this._position))&&u<=56319){if(h=t.charCodeAt(this._position+1),isNaN(h)){this._terminal.surrogate_high=i;continue}u=1024*(u-55296)+(h-56320)+65536,i+=t.charAt(this._position+1)}if(!(56320<=u&&u<=57343))switch(this._state){case l.NORMAL:i in s?s[i](this,this._inputHandler):this._inputHandler.addChar(i,u);break;case l.ESCAPED:if(i in o){o[i](this,this._terminal);break}switch(i){case"(":case")":case"*":case"+":case"-":case".":switch(i){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.",i)}break;case l.CHARSET:i in r.CHARSETS?(e=r.CHARSETS[i],"/"===i&&this.skipNextChar()):e=r.DEFAULT_CHARSET,this._terminal.setgCharset(this._terminal.gcharset,e),this._terminal.gcharset=null,this._state=l.NORMAL;break;case l.OSC:if(i===n.C0.ESC||i===n.C0.BEL){switch(i===n.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+=i:i>="0"&&i<="9"?this._terminal.currentParam=10*this._terminal.currentParam+i.charCodeAt(0)-48:";"===i&&(this._terminal.params.push(this._terminal.currentParam),this._terminal.currentParam="");break;case l.CSI_PARAM:if(i in a){a[i](this);break}this.finalizeParam(),this._state=l.CSI;case l.CSI:i 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:"")+" "+i),c[i](this._inputHandler,this._terminal.params,this._terminal.prefix,this._terminal.postfix,this)):this._terminal.error("Unknown CSI code: %s.",i),this._state=l.NORMAL,this._terminal.prefix="",this._terminal.postfix="";break;case l.DCS:if(i===n.C0.ESC||i===n.C0.BEL){i===n.C0.ESC&&this._position++;var d=void 0,m=void 0;switch(this._terminal.prefix){case"":break;case"$q":switch(m=!1,d=this._terminal.currentParam){case'"q':d='0"q';break;case'"p':d='61"p';break;case"r":d=this._terminal.buffer.scrollTop+1+";"+(this._terminal.buffer.scrollBottom+1)+"r";break;case"m":d="0m";break;default:this._terminal.error("Unknown DCS Pt: %s.",d),d=""}this._terminal.send(n.C0.ESC+"P"+ +m+"$r"+d+n.C0.ESC+"\\");break;case"+p":break;case"+q":d=this._terminal.currentParam,m=!1,this._terminal.send(n.C0.ESC+"P"+ +m+"+r"+d+n.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+=i:this._terminal.prefix||"$"===i||"+"===i?2===this._terminal.prefix.length?this._terminal.currentParam=i:this._terminal.prefix+=i:this._terminal.currentParam=i;break;case l.IGNORE:i!==n.C0.ESC&&i!==n.C0.BEL||(i===n.C0.ESC&&this._position++,this._state=l.NORMAL)}}return this._terminal.buffer.x===_&&this._terminal.buffer.y===p||this._terminal.emit("cursormove"),this._state},t.prototype.setState=function(t){this._state=t},t.prototype.setPrefix=function(t){this._terminal.prefix=t},t.prototype.setPostfix=function(t){this._terminal.postfix=t},t.prototype.setParam=function(t){this._terminal.currentParam=t},t.prototype.getParam=function(){return this._terminal.currentParam},t.prototype.finalizeParam=function(){this._terminal.params.push(this._terminal.currentParam),this._terminal.currentParam=0},t.prototype.skipNextChar=function(){this._position++},t}();e.Parser=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wcwidth=function(t){var e=[[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]],i=[[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 n(t,e){var i,n=0,r=e.length-1;if(t<e[0][0]||t>e[r][1])return!1;for(;r>=n;)if(t>e[i=n+r>>1][1])n=i+1;else{if(!(t<e[i][0]))return!0;r=i-1}return!1}var r=0|t.control,s=null;return function(o){if((o|=0)<32)return 0|r;if(o<127)return 1;var a,l=s||function(){var i;s="undefined"==typeof Uint32Array?new Array(4096):new Uint32Array(4096);for(var r=0;r<4096;++r){for(var o=0,a=16;a--;)o=o<<2|(0===(i=16*r+a)?t.nul:i<32||i>=127&&i<160?t.control:n(i,e)?0:function(t){return t>=4352&&(t<=4447||9001===t||9002===t||t>=11904&&t<=42191&&12351!==t||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510)}(i)?2:1);s[r]=o}return s}();return o<65536?l[o>>4]>>((15&o)<<1)&3:n(a=o,i)?0:a>=131072&&a<=196605||a>=196608&&a<=262141?2:1}}({nul:0,control:0})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(45),r=i(84),s=i(24),o=i(83),a=i(126),l=function(){function t(t){this._terminal=t}return t.prototype.addChar=function(t,e){if(t>=" "){var i=a.wcwidth(e);this._terminal.charset&&this._terminal.charset[t]&&(t=this._terminal.charset[t]),this._terminal.options.screenReaderMode&&this._terminal.emit("a11y.char",t);var n=this._terminal.buffer.y+this._terminal.buffer.ybase;if(!i&&this._terminal.buffer.x)return void(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-1]&&(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-1][s.CHAR_DATA_WIDTH_INDEX]?(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-1][s.CHAR_DATA_CHAR_INDEX]+=t,this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-1][3]=t.charCodeAt(0)):this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-2]&&(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-2][s.CHAR_DATA_CHAR_INDEX]+=t,this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-2][3]=t.charCodeAt(0)),this._terminal.updateRange(this._terminal.buffer.y)));if(this._terminal.buffer.x+i-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===i)return;if(n=this._terminal.buffer.y+this._terminal.buffer.ybase,this._terminal.insertMode)for(var r=0;r<i;++r){0===this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).pop()[s.CHAR_DATA_WIDTH_INDEX]&&this._terminal.buffer.lines.get(n)[this._terminal.cols-2]&&2===this._terminal.buffer.lines.get(n)[this._terminal.cols-2][s.CHAR_DATA_WIDTH_INDEX]&&(this._terminal.buffer.lines.get(n)[this._terminal.cols-2]=[this._terminal.curAttr," ",1," ".charCodeAt(0)]),this._terminal.buffer.lines.get(n).splice(this._terminal.buffer.x,0,[this._terminal.curAttr," ",1," ".charCodeAt(0)])}this._terminal.buffer.lines.get(n)[this._terminal.buffer.x]=[this._terminal.curAttr,t,i,t.charCodeAt(0)],this._terminal.buffer.x++,this._terminal.updateRange(this._terminal.buffer.y),2===i&&(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x]=[this._terminal.curAttr,"",0,void 0],this._terminal.buffer.x++)}},t.prototype.bell=function(){this._terminal.bell()},t.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")},t.prototype.carriageReturn=function(){this._terminal.buffer.x=0},t.prototype.backspace=function(){this._terminal.buffer.x>0&&this._terminal.buffer.x--},t.prototype.tab=function(){var t=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-t)},t.prototype.shiftOut=function(){this._terminal.setgLevel(1)},t.prototype.shiftIn=function(){this._terminal.setgLevel(0)},t.prototype.insertChars=function(t){var e=t[0];e<1&&(e=1);for(var i=this._terminal.buffer.y+this._terminal.buffer.ybase,n=this._terminal.buffer.x,r=[this._terminal.eraseAttr()," ",1,32];e--&&n<this._terminal.cols;)this._terminal.buffer.lines.get(i).splice(n++,0,r),this._terminal.buffer.lines.get(i).pop()},t.prototype.cursorUp=function(t){var e=t[0];e<1&&(e=1),this._terminal.buffer.y-=e,this._terminal.buffer.y<0&&(this._terminal.buffer.y=0)},t.prototype.cursorDown=function(t){var e=t[0];e<1&&(e=1),this._terminal.buffer.y+=e,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--},t.prototype.cursorForward=function(t){var e=t[0];e<1&&(e=1),this._terminal.buffer.x+=e,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},t.prototype.cursorBackward=function(t){var e=t[0];e<1&&(e=1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--,this._terminal.buffer.x-=e,this._terminal.buffer.x<0&&(this._terminal.buffer.x=0)},t.prototype.cursorNextLine=function(t){var e=t[0];e<1&&(e=1),this._terminal.buffer.y+=e,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x=0},t.prototype.cursorPrecedingLine=function(t){var e=t[0];e<1&&(e=1),this._terminal.buffer.y-=e,this._terminal.buffer.y<0&&(this._terminal.buffer.y=0),this._terminal.buffer.x=0},t.prototype.cursorCharAbsolute=function(t){var e=t[0];e<1&&(e=1),this._terminal.buffer.x=e-1},t.prototype.cursorPosition=function(t){var e,i=t[0]-1;e=t.length>=2?t[1]-1:0,i<0?i=0:i>=this._terminal.rows&&(i=this._terminal.rows-1),e<0?e=0:e>=this._terminal.cols&&(e=this._terminal.cols-1),this._terminal.buffer.x=e,this._terminal.buffer.y=i},t.prototype.cursorForwardTab=function(t){for(var e=t[0]||1;e--;)this._terminal.buffer.x=this._terminal.buffer.nextStop()},t.prototype.eraseInDisplay=function(t){var e;switch(t[0]){case 0:for(this._terminal.eraseRight(this._terminal.buffer.x,this._terminal.buffer.y),e=this._terminal.buffer.y+1;e<this._terminal.rows;e++)this._terminal.eraseLine(e);break;case 1:for(this._terminal.eraseLeft(this._terminal.buffer.x,this._terminal.buffer.y),e=this._terminal.buffer.y;e--;)this._terminal.eraseLine(e);break;case 2:for(e=this._terminal.rows;e--;)this._terminal.eraseLine(e);break;case 3:var i=this._terminal.buffer.lines.length-this._terminal.rows;i>0&&(this._terminal.buffer.lines.trimStart(i),this._terminal.buffer.ybase=Math.max(this._terminal.buffer.ybase-i,0),this._terminal.buffer.ydisp=Math.max(this._terminal.buffer.ydisp-i,0),this._terminal.emit("scroll",0))}},t.prototype.eraseInLine=function(t){switch(t[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)}},t.prototype.insertLines=function(t){var e=t[0];e<1&&(e=1);for(var i=this._terminal.buffer.y+this._terminal.buffer.ybase,n=this._terminal.rows-1-this._terminal.buffer.scrollBottom,r=this._terminal.rows-1+this._terminal.buffer.ybase-n+1;e--;)this._terminal.buffer.lines.splice(r-1,1),this._terminal.buffer.lines.splice(i,0,this._terminal.blankLine(!0));this._terminal.updateRange(this._terminal.buffer.y),this._terminal.updateRange(this._terminal.buffer.scrollBottom)},t.prototype.deleteLines=function(t){var e=t[0];e<1&&(e=1);var i,n=this._terminal.buffer.y+this._terminal.buffer.ybase;for(i=this._terminal.rows-1-this._terminal.buffer.scrollBottom,i=this._terminal.rows-1+this._terminal.buffer.ybase-i;e--;)this._terminal.buffer.lines.splice(n,1),this._terminal.buffer.lines.splice(i,0,this._terminal.blankLine(!0));this._terminal.updateRange(this._terminal.buffer.y),this._terminal.updateRange(this._terminal.buffer.scrollBottom)},t.prototype.deleteChars=function(t){var e=t[0];e<1&&(e=1);for(var i=this._terminal.buffer.y+this._terminal.buffer.ybase,n=[this._terminal.eraseAttr()," ",1,32];e--;)this._terminal.buffer.lines.get(i).splice(this._terminal.buffer.x,1),this._terminal.buffer.lines.get(i).push(n);this._terminal.updateRange(this._terminal.buffer.y)},t.prototype.scrollUp=function(t){for(var e=t[0]||1;e--;)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)},t.prototype.scrollDown=function(t){for(var e=t[0]||1;e--;)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)},t.prototype.eraseChars=function(t){var e=t[0];e<1&&(e=1);for(var i=this._terminal.buffer.y+this._terminal.buffer.ybase,n=this._terminal.buffer.x,r=[this._terminal.eraseAttr()," ",1,32];e--&&n<this._terminal.cols;)this._terminal.buffer.lines.get(i)[n++]=r},t.prototype.cursorBackwardTab=function(t){for(var e=t[0]||1;e--;)this._terminal.buffer.x=this._terminal.buffer.prevStop()},t.prototype.charPosAbsolute=function(t){var e=t[0];e<1&&(e=1),this._terminal.buffer.x=e-1,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},t.prototype.HPositionRelative=function(t){var e=t[0];e<1&&(e=1),this._terminal.buffer.x+=e,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},t.prototype.repeatPrecedingCharacter=function(t){for(var e=t[0]||1,i=this._terminal.buffer.lines.get(this._terminal.buffer.ybase+this._terminal.buffer.y),n=i[this._terminal.buffer.x-1]||[this._terminal.defAttr," ",1,32];e--;)i[this._terminal.buffer.x++]=n},t.prototype.sendDeviceAttributes=function(t){t[0]>0||(this._terminal.prefix?">"===this._terminal.prefix&&(this._terminal.is("xterm")?this._terminal.send(n.C0.ESC+"[>0;276;0c"):this._terminal.is("rxvt-unicode")?this._terminal.send(n.C0.ESC+"[>85;95;0c"):this._terminal.is("linux")?this._terminal.send(t[0]+"c"):this._terminal.is("screen")&&this._terminal.send(n.C0.ESC+"[>83;40003;0c")):this._terminal.is("xterm")||this._terminal.is("rxvt-unicode")||this._terminal.is("screen")?this._terminal.send(n.C0.ESC+"[?1;2c"):this._terminal.is("linux")&&this._terminal.send(n.C0.ESC+"[?6c"))},t.prototype.linePosAbsolute=function(t){var e=t[0];e<1&&(e=1),this._terminal.buffer.y=e-1,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1)},t.prototype.VPositionRelative=function(t){var e=t[0];e<1&&(e=1),this._terminal.buffer.y+=e,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--},t.prototype.HVPosition=function(t){t[0]<1&&(t[0]=1),t[1]<1&&(t[1]=1),this._terminal.buffer.y=t[0]-1,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x=t[1]-1,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},t.prototype.tabClear=function(t){var e=t[0];e<=0?delete this._terminal.buffer.tabs[this._terminal.buffer.x]:3===e&&(this._terminal.buffer.tabs={})},t.prototype.setMode=function(t){if(t.length>1)for(var e=0;e<t.length;e++)this.setMode([t[e]]);else if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(t[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===t[0],this._terminal.vt200Mouse=1e3===t[0],this._terminal.normalMouse=t[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(t[0]){case 4:this._terminal.insertMode=!0}},t.prototype.resetMode=function(t){if(t.length>1)for(var e=0;e<t.length;e++)this.resetMode([t[e]]);else if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(t[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(t[0]){case 4:this._terminal.insertMode=!1}},t.prototype.charAttributes=function(t){if(1!==t.length||0!==t[0]){for(var e,i=t.length,n=this._terminal.curAttr>>18,r=this._terminal.curAttr>>9&511,s=511&this._terminal.curAttr,a=0;a<i;a++)(e=t[a])>=30&&e<=37?r=e-30:e>=40&&e<=47?s=e-40:e>=90&&e<=97?r=(e+=8)-90:e>=100&&e<=107?s=(e+=8)-100:0===e?(n=this._terminal.defAttr>>18,r=this._terminal.defAttr>>9&511,s=511&this._terminal.defAttr):1===e?n|=o.FLAGS.BOLD:4===e?n|=o.FLAGS.UNDERLINE:5===e?n|=o.FLAGS.BLINK:7===e?n|=o.FLAGS.INVERSE:8===e?n|=o.FLAGS.INVISIBLE:2===e?n|=o.FLAGS.DIM:22===e?(n&=~o.FLAGS.BOLD,n&=~o.FLAGS.DIM):24===e?n&=~o.FLAGS.UNDERLINE:25===e?n&=~o.FLAGS.BLINK:27===e?n&=~o.FLAGS.INVERSE:28===e?n&=~o.FLAGS.INVISIBLE:39===e?r=this._terminal.defAttr>>9&511:49===e?s=511&this._terminal.defAttr:38===e?2===t[a+1]?(a+=2,-1===(r=this._terminal.matchColor(255&t[a],255&t[a+1],255&t[a+2]))&&(r=511),a+=2):5===t[a+1]&&(r=e=255&t[a+=2]):48===e?2===t[a+1]?(a+=2,-1===(s=this._terminal.matchColor(255&t[a],255&t[a+1],255&t[a+2]))&&(s=511),a+=2):5===t[a+1]&&(s=e=255&t[a+=2]):100===e?(r=this._terminal.defAttr>>9&511,s=511&this._terminal.defAttr):this._terminal.error("Unknown SGR attribute: %d.",e);this._terminal.curAttr=n<<18|r<<9|s}else this._terminal.curAttr=this._terminal.defAttr},t.prototype.deviceStatus=function(t){if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(t[0]){case 6:this._terminal.send(n.C0.ESC+"[?"+(this._terminal.buffer.y+1)+";"+(this._terminal.buffer.x+1)+"R")}}else switch(t[0]){case 5:this._terminal.send(n.C0.ESC+"[0n");break;case 6:this._terminal.send(n.C0.ESC+"["+(this._terminal.buffer.y+1)+";"+(this._terminal.buffer.x+1)+"R")}},t.prototype.softReset=function(t){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]},t.prototype.setCursorStyle=function(t){var e=t[0]<1?1:t[0];switch(e){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 i=e%2==1;this._terminal.setOption("cursorBlink",i)},t.prototype.setScrollRegion=function(t){this._terminal.prefix||(this._terminal.buffer.scrollTop=(t[0]||1)-1,this._terminal.buffer.scrollBottom=(t[1]&&t[1]<=this._terminal.rows?t[1]:this._terminal.rows)-1,this._terminal.buffer.x=0,this._terminal.buffer.y=0)},t.prototype.saveCursor=function(t){this._terminal.buffer.savedX=this._terminal.buffer.x,this._terminal.buffer.savedY=this._terminal.buffer.y},t.prototype.restoreCursor=function(t){this._terminal.buffer.x=this._terminal.buffer.savedX||0,this._terminal.buffer.y=this._terminal.buffer.savedY||0},t}();e.InputHandler=l},function(t,e,i){"use strict";function n(t){return t.replace(/\r?\n/g,"\r")}function r(t,e){return e?"\e[200~"+t+"\e[201~":t}function s(t,e){e.style.position="fixed",e.style.width="20px",e.style.height="20px",e.style.left=t.clientX-10+"px",e.style.top=t.clientY-10+"px",e.style.zIndex="1000",e.focus(),setTimeout(function(){e.style.position=null,e.style.width=null,e.style.height=null,e.style.left=null,e.style.top=null,e.style.zIndex=null},200)}Object.defineProperty(e,"__esModule",{value:!0}),e.prepareTextForTerminal=n,e.bracketTextForPaste=r,e.copyHandler=function(t,e,i){e.browser.isMSIE?window.clipboardData.setData("Text",i.selectionText):t.clipboardData.setData("text/plain",i.selectionText),t.preventDefault()},e.pasteHandler=function(t,e){t.stopPropagation();var i=function(i){i=r(i=n(i),e.bracketedPasteMode),e.handler(i),e.textarea.value="",e.emit("paste",i),e.cancel(t)};e.browser.isMSIE?window.clipboardData&&i(window.clipboardData.getData("Text")):t.clipboardData&&i(t.clipboardData.getData("text/plain"))},e.moveTextAreaUnderMouseCursor=s,e.rightClickHandler=function(t,e,i,n){s(t,e),n&&!i.isClickInSelection(t)&&i.selectWordAtCursor(t),e.value=i.selectionText,e.select()}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=15,r=function(){function t(t,e,i,r){var s=this;this._terminal=t,this._viewportElement=e,this._scrollArea=i,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||n,this._viewportElement.addEventListener("scroll",this._onScroll.bind(this)),setTimeout(function(){return s.syncScrollArea()},0)}return t.prototype.onThemeChanged=function(t){this._viewportElement.style.backgroundColor=t.background.css},t.prototype._refresh=function(){if(this._charMeasure.height>0){this._currentRowHeight=this._terminal.renderer.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._terminal.renderer.dimensions.canvasHeight);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}},t.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 t=this._terminal.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._viewportElement.scrollTop=t)},t.prototype._onScroll=function(t){if(this._viewportElement.offsetParent){var e=Math.round(this._viewportElement.scrollTop/this._currentRowHeight)-this._terminal.buffer.ydisp;this._terminal.scrollLines(e,!0)}},t.prototype.onWheel=function(t){var e=this._getPixelsScrolled(t);0!==e&&(this._viewportElement.scrollTop+=e,t.preventDefault())},t.prototype._getPixelsScrolled=function(t){if(0===t.deltaY)return 0;var e=t.deltaY;return t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._currentRowHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._currentRowHeight*this._terminal.rows),e},t.prototype.getLinesScrolled=function(t){if(0===t.deltaY)return 0;var e=t.deltaY;return t.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(e/=this._currentRowHeight+0,this._wheelPartialScroll+=e,e=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._terminal.rows),e},t.prototype.onTouchStart=function(t){this._lastTouchY=t.touches[0].pageY},t.prototype.onTouchMove=function(t){var e=this._lastTouchY-t.touches[0].pageY;this._lastTouchY=t.touches[0].pageY,0!==e&&(this._viewportElement.scrollTop+=e,t.preventDefault())},t}();e.Viewport=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,i){this._textarea=t,this._compositionView=e,this._terminal=i,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:null,end:null}}return t.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},t.prototype.compositionupdate=function(t){var e=this;this._compositionView.textContent=t.data,this.updateCompositionElements(),setTimeout(function(){e._compositionPosition.end=e._textarea.value.length},0)},t.prototype.compositionend=function(){this._finalizeComposition(!0)},t.prototype.keydown=function(t){if(this._isComposing||this._isSendingComposition){if(229===t.keyCode)return!1;if(16===t.keyCode||17===t.keyCode||18===t.keyCode)return!1;this._finalizeComposition(!1)}return 229!==t.keyCode||(this._handleAnyTextareaChanges(),!1)},t.prototype._finalizeComposition=function(t){var e=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,this._clearTextareaPosition(),t){var i={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(e._isSendingComposition){e._isSendingComposition=!1;var t=void 0;t=e._isComposing?e._textarea.value.substring(i.start,i.end):e._textarea.value.substring(i.start),e._terminal.handler(t)}},0)}else{this._isSendingComposition=!1;var n=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._terminal.handler(n)}},t.prototype._handleAnyTextareaChanges=function(){var t=this,e=this._textarea.value;setTimeout(function(){if(!t._isComposing){var i=t._textarea.value.replace(e,"");i.length>0&&t._terminal.handler(i)}},0)},t.prototype.updateCompositionElements=function(t){var e=this;if(this._isComposing){if(this._terminal.buffer.isCursorInViewport){var i=Math.ceil(this._terminal.charMeasure.height*this._terminal.options.lineHeight),n=this._terminal.buffer.y*i,r=this._terminal.buffer.x*this._terminal.charMeasure.width;this._compositionView.style.left=r+"px",this._compositionView.style.top=n+"px",this._compositionView.style.height=i+"px",this._compositionView.style.lineHeight=i+"px";var s=this._compositionView.getBoundingClientRect();this._textarea.style.left=r+"px",this._textarea.style.top=n+"px",this._textarea.style.width=s.width+"px",this._textarea.style.height=s.height+"px",this._textarea.style.lineHeight=s.height+"px"}t||setTimeout(function(){return e.updateCompositionElements(!0)},0)}},t.prototype._clearTextareaPosition=function(){this._textarea.style.left="",this._textarea.style.top=""},t}();e.CompositionHelper=n},function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(e){var i=t.call(this)||this;return i._maxLength=e,i._array=new Array(i._maxLength),i._startIndex=0,i._length=0,i}return r(e,t),Object.defineProperty(e.prototype,"maxLength",{get:function(){return this._maxLength},set:function(t){if(this._maxLength!==t){for(var e=new Array(t),i=0;i<Math.min(t,this.length);i++)e[i]=this._array[this._getCyclicIndex(i)];this._array=e,this._maxLength=t,this._startIndex=0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(t){if(t>this._length)for(var e=this._length;e<t;e++)this._array[e]=void 0;this._length=t},enumerable:!0,configurable:!0}),e.prototype.get=function(t){return this._array[this._getCyclicIndex(t)]},e.prototype.set=function(t,e){this._array[this._getCyclicIndex(t)]=e},e.prototype.push=function(t){this._array[this._getCyclicIndex(this._length)]=t,this._length===this._maxLength?(this._startIndex++,this._startIndex===this._maxLength&&(this._startIndex=0),this.emit("trim",1)):this._length++},e.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},e.prototype.splice=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];if(e){for(var r=t;r<this._length-e;r++)this._array[this._getCyclicIndex(r)]=this._array[this._getCyclicIndex(r+e)];this._length-=e}if(i&&i.length){for(r=this._length-1;r>=t;r--)this._array[this._getCyclicIndex(r+i.length)]=this._array[this._getCyclicIndex(r)];for(r=0;r<i.length;r++)this._array[this._getCyclicIndex(t+r)]=i[r];if(this._length+i.length>this.maxLength){var s=this._length+i.length-this.maxLength;this._startIndex+=s,this._length=this.maxLength,this.emit("trim",s)}else this._length+=i.length}},e.prototype.trimStart=function(t){t>this._length&&(t=this._length),this._startIndex+=t,this._length-=t,this.emit("trim",t)},e.prototype.shiftElements=function(t,e,i){if(!(e<=0)){if(t<0||t>=this._length)throw new Error("start argument out of range");if(t+i<0)throw new Error("Cannot shift elements in list beyond index 0");if(i>0){for(var n=e-1;n>=0;n--)this.set(t+n+i,this.get(t+n));var r=t+e+i-this._length;if(r>0)for(this._length+=r;this._length>this.maxLength;)this._length--,this._startIndex++,this.emit("trim",1)}else for(n=0;n<e;n++)this.set(t+n+i,this.get(t+n))}},e.prototype._getCyclicIndex=function(t){return(this._startIndex+t)%this.maxLength},e}(i(19).EventEmitter);e.CircularList=s},function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var s=i(24),o=function(t){function e(e){var i=t.call(this)||this;return i._terminal=e,i._normal=new s.Buffer(i._terminal,!0),i._normal.fillViewportRows(),i._alt=new s.Buffer(i._terminal,!1),i._activeBuffer=i._normal,i.setupTabStops(),i}return r(e,t),Object.defineProperty(e.prototype,"alt",{get:function(){return this._alt},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"normal",{get:function(){return this._normal},enumerable:!0,configurable:!0}),e.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._alt.clear(),this._activeBuffer=this._normal,this.emit("activate",{activeBuffer:this._normal,inactiveBuffer:this._alt}))},e.prototype.activateAltBuffer=function(){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(),this._activeBuffer=this._alt,this.emit("activate",{activeBuffer:this._alt,inactiveBuffer:this._normal}))},e.prototype.resize=function(t,e){this._normal.resize(t,e),this._alt.resize(t,e)},e.prototype.setupTabStops=function(t){this._normal.setupTabStops(t),this._alt.setupTabStops(t)},e}(i(19).EventEmitter);e.BufferSet=o},function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var s=i(132),o=i(24),a=i(130),l=i(19),c=i(129),u=i(128),h=i(45),f=i(127),_=i(125),p=i(124),d=i(115),m=i(114),y=i(111),v=i(43),b=i(74),g=i(75),C=i(110),w=i(109),S=i(80),A=i(76),E=i(108),k=i(77),x={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:["'",'"']},L="undefined"!=typeof window?window.document:null,O={cols:80,rows:24,convertEol:!1,termName:"xterm",cursorBlink:!1,cursorStyle:"block",bellSound:w.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:v.isMac},R=function(t){function e(e){void 0===e&&(e={});var i=t.call(this)||this;return i.browser=v,i.options=C.clone(e),i._setup(),i}return r(e,t),e.prototype._setup=function(){var t=this;Object.keys(O).forEach(function(e){null==t.options[e]&&(t.options[e]=O[e]),t[e]=t.options[e]}),this._parent=L?L.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 _.Parser(this._inputHandler,this),this.renderer=this.renderer||null,this.selectionManager=this.selectionManager||null,this.linkifier=this.linkifier||new d.Linkifier(this),this._mouseZoneManager=this._mouseZoneManager||null,this.soundManager=this.soundManager||new w.SoundManager(this),this.buffers=new s.BufferSet(this),this.selectionManager&&(this.selectionManager.clearSelection(),this.selectionManager.initBuffersListeners())},Object.defineProperty(e.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return b},enumerable:!0,configurable:!0}),e.prototype.eraseAttr=function(){return-512&this.defAttr|511&this.curAttr},e.prototype.focus=function(){this.textarea&&this.textarea.focus()},Object.defineProperty(e.prototype,"isFocused",{get:function(){return L.activeElement===this.textarea},enumerable:!0,configurable:!0}),e.prototype.getOption=function(t){if(!(t in O))throw new Error('No option with key "'+t+'"');return void 0!==this.options[t]?this.options[t]:this[t]},e.prototype.setOption=function(t,e){if(!(t in O))throw new Error('No option with key "'+t+'"');switch(t){case"bellStyle":e||(e="none");break;case"cursorStyle":e||(e="block");break;case"fontWeight":e||(e="normal");break;case"fontWeightBold":e||(e="bold");break;case"lineHeight":if(e<1)return void console.warn(t+" cannot be less than 1, value: "+e);case"tabStopWidth":if(e<1)return void console.warn(t+" cannot be less than 1, value: "+e);break;case"theme":if(this.renderer)return void this._setTheme(e);break;case"scrollback":if((e=Math.min(e,o.MAX_BUFFER_SIZE))<0)return void console.warn(t+" cannot be less than 0, value: "+e);if(this.options[t]!==e){var i=this.rows+e;if(this.buffer.lines.length>i){var n=this.buffer.lines.length-i,r=this.buffer.ydisp-n<0;this.buffer.lines.trimStart(n),this.buffer.ybase=Math.max(this.buffer.ybase-n,0),this.buffer.ydisp=Math.max(this.buffer.ydisp-n,0),r&&this.refresh(0,this.rows-1)}}}switch(this[t]=e,this.options[t]=e,t){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":e?this._accessibilityManager||(this._accessibilityManager=new E.AccessibilityManager(this)):this._accessibilityManager&&(this._accessibilityManager.dispose(),this._accessibilityManager=null);break;case"tabStopWidth":this.buffers.setupTabStops()}this.renderer&&this.renderer.onOptionsChanged()},e.prototype._onTextAreaFocus=function(){this.sendFocus&&this.send(h.C0.ESC+"[I"),this.element.classList.add("focus"),this.showCursor(),this.emit("focus")},e.prototype.blur=function(){return this.textarea.blur()},e.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")},e.prototype._initGlobal=function(){var t=this;this._bindKeys(),T(this.element,"copy",function(e){t.hasSelection()&&u.copyHandler(e,t,t.selectionManager)});var e=function(e){return u.pasteHandler(e,t)};T(this.textarea,"paste",e),T(this.element,"paste",e),v.isFirefox?T(this.element,"mousedown",function(e){2===e.button&&u.rightClickHandler(e,t.textarea,t.selectionManager,t.options.rightClickSelectsWord)}):T(this.element,"contextmenu",function(e){u.rightClickHandler(e,t.textarea,t.selectionManager,t.options.rightClickSelectsWord)}),v.isLinux&&T(this.element,"auxclick",function(e){1===e.button&&u.moveTextAreaUnderMouseCursor(e,t.textarea)})},e.prototype._bindKeys=function(){var t=this,e=this;T(this.element,"keydown",function(t){L.activeElement===this&&e._keyDown(t)},!0),T(this.element,"keypress",function(t){L.activeElement===this&&e._keyPress(t)},!0),T(this.element,"keyup",function(e){(function(t){return 16===t.keyCode||17===t.keyCode||18===t.keyCode})(e)||t.focus()},!0),T(this.textarea,"keydown",function(e){return t._keyDown(e)},!0),T(this.textarea,"keypress",function(e){return t._keyPress(e)},!0),T(this.textarea,"compositionstart",function(){return t._compositionHelper.compositionstart()}),T(this.textarea,"compositionupdate",function(e){return t._compositionHelper.compositionupdate(e)}),T(this.textarea,"compositionend",function(){return t._compositionHelper.compositionend()}),this.on("refresh",function(){return t._compositionHelper.updateCompositionElements()}),this.on("refresh",function(e){return t._queueLinkification(e.start,e.end)})},e.prototype.open=function(t){var e=this;if(this._parent=t||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 k.ScreenDprMonitor,this._screenDprMonitor.setListener(function(){return e.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 i=L.createDocumentFragment();this._viewportElement=L.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),i.appendChild(this._viewportElement),this._viewportScrollArea=L.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=L.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=L.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),i.appendChild(this.screenElement),this._mouseZoneManager=new A.MouseZoneManager(this),this.on("scroll",function(){return e._mouseZoneManager.clearAll()}),this.linkifier.attachToDom(this._mouseZoneManager),this.textarea=L.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",b.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 e._onTextAreaFocus()}),this.textarea.addEventListener("blur",function(){return e._onTextAreaBlur()}),this._helperContainer.appendChild(this.textarea),this._compositionView=L.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 y.CharMeasure(L,this._helperContainer),this.element.appendChild(i),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 e.renderer.onCursorMove()}),this.on("resize",function(){return e.renderer.onResize(e.cols,e.rows)}),this.on("blur",function(){return e.renderer.onBlur()}),this.on("focus",function(){return e.renderer.onFocus()}),this.on("dprchange",function(){return e.renderer.onWindowResize(window.devicePixelRatio)}),window.addEventListener("resize",function(){return e.renderer.onWindowResize(window.devicePixelRatio)}),this.charMeasure.on("charsizechanged",function(){return e.renderer.onResize(e.cols,e.rows)}),this.renderer.on("resize",function(t){return e.viewport.syncScrollArea()}),this.selectionManager=new m.SelectionManager(this,this.charMeasure),this.element.addEventListener("mousedown",function(t){return e.selectionManager.onMouseDown(t)}),this.selectionManager.on("refresh",function(t){return e.renderer.onSelectionChanged(t.start,t.end)}),this.selectionManager.on("newselection",function(t){e.textarea.value=t,e.textarea.focus(),e.textarea.select()}),this.on("scroll",function(){e.viewport.syncScrollArea(),e.selectionManager.refresh()}),this._viewportElement.addEventListener("scroll",function(){return e.selectionManager.refresh()}),this.mouseHelper=new g.MouseHelper(this.renderer),this.options.screenReaderMode&&(this._accessibilityManager=new E.AccessibilityManager(this)),this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},e.prototype._setTheme=function(t){var e=this.renderer.setTheme(t);this.viewport&&this.viewport.onThemeChanged(e)},e.applyAddon=function(t){t.apply(e)},e.prototype.bindMouse=function(){var t=this,e=this.element,i=this,n=32;function r(t){var e,r;if(e=function(t){var e,n,r,s,o;switch(t.overrideType||t.type){case"mousedown":e=null!=t.button?+t.button:null!=t.which?t.which-1:null,v.isMSIE&&(e=1===e?0:4===e?1:e);break;case"mouseup":e=3;break;case"DOMMouseScroll":e=t.detail<0?64:65;break;case"wheel":e=t.wheelDeltaY>0?64:65}n=t.shiftKey?4:0,r=t.metaKey?8:0,s=t.ctrlKey?16:0,o=n|r|s,i.vt200Mouse?o&=s:i.normalMouse||(o=0);return e=32+(o<<2)+e}(t),r=i.mouseHelper.getRawByteCoords(t,i.screenElement,i.charMeasure,i.options.lineHeight,i.cols,i.rows))switch(a(e,r),t.overrideType||t.type){case"mousedown":n=e;break;case"mouseup":n=32}}function s(t){var e=n,r=i.mouseHelper.getRawByteCoords(t,i.screenElement,i.charMeasure,i.options.lineHeight,i.cols,i.rows);r&&a(e+=32,r)}function o(t,e){if(i.utfMouse){if(2047===e)return void t.push(0);e<127?t.push(e):(e>2047&&(e=2047),t.push(192|e>>6),t.push(128|63&e))}else{if(255===e)return void t.push(0);e>127&&(e=127),t.push(e)}}function a(t,e){if(i._vt300Mouse){t&=3,e.x-=32,e.y-=32;var n=h.C0.ESC+"[24";if(0===t)n+="1";else if(1===t)n+="3";else if(2===t)n+="5";else{if(3===t)return;n+="0"}return n+="~["+e.x+","+e.y+"]\r",void i.send(n)}if(i._decLocator)return t&=3,e.x-=32,e.y-=32,0===t?t=2:1===t?t=4:2===t?t=6:3===t&&(t=3),void i.send(h.C0.ESC+"["+t+";"+(3===t?4:0)+";"+e.y+";"+e.x+";"+e.page||"0&w");if(i.urxvtMouse)return e.x-=32,e.y-=32,e.x++,e.y++,void i.send(h.C0.ESC+"["+t+";"+e.x+";"+e.y+"M");if(i.sgrMouse)return e.x-=32,e.y-=32,void i.send(h.C0.ESC+"[<"+((3==(3&t)?-4&t:t)-32)+";"+e.x+";"+e.y+(3==(3&t)?"m":"M"));var r=[];o(r,t),o(r,e.x),o(r,e.y),i.send(h.C0.ESC+"[M"+String.fromCharCode.apply(String,r))}T(e,"mousedown",function(e){if(e.preventDefault(),t.focus(),t.mouseEvents&&!t.selectionManager.shouldForceSelection(e)){if(r(e),t.vt200Mouse)return e.overrideType="mouseup",r(e),t.cancel(e);if(t.normalMouse&&T(t._document,"mousemove",s),!t.x10Mouse){var i=function(e){return r(e),t.normalMouse&&M(t._document,"mousemove",s),M(t._document,"mouseup",i),t.cancel(e)};T(t._document,"mouseup",i)}return t.cancel(e)}}),T(e,"wheel",function(e){if(t.mouseEvents)t.x10Mouse||t._vt300Mouse||t._decLocator||(r(e),e.preventDefault());else if(!t.buffer.hasScrollback){var i=t.viewport.getLinesScrolled(e);if(0===i)return;for(var n=h.C0.ESC+(t.applicationCursor?"O":"[")+(e.deltaY<0?"A":"B"),s="",o=0;o<Math.abs(i);o++)s+=n;t.send(s)}}),T(e,"wheel",function(e){if(!t.mouseEvents)return t.viewport.onWheel(e),t.cancel(e)}),T(e,"touchstart",function(e){if(!t.mouseEvents)return t.viewport.onTouchStart(e),t.cancel(e)}),T(e,"touchmove",function(e){if(!t.mouseEvents)return t.viewport.onTouchMove(e),t.cancel(e)})},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.handler=function(){},this.write=function(){},this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},e.prototype.refresh=function(t,e){this.renderer&&this.renderer.refreshRows(t,e)},e.prototype._queueLinkification=function(t,e){this.linkifier&&this.linkifier.linkifyRows(t,e)},e.prototype.showCursor=function(){this.cursorState||(this.cursorState=1,this.refresh(this.buffer.y,this.buffer.y))},e.prototype.scroll=function(t){var e=this.blankLine(void 0,t),i=this.buffer.ybase+this.buffer.scrollTop,n=this.buffer.ybase+this.buffer.scrollBottom;if(0===this.buffer.scrollTop){var r=this.buffer.lines.length===this.buffer.lines.maxLength;n===this.buffer.lines.length-1?this.buffer.lines.push(e):this.buffer.lines.splice(n+1,0,e),r?this._userScrolling&&(this.buffer.ydisp=Math.max(this.buffer.ydisp-1,0)):(this.buffer.ybase++,this._userScrolling||this.buffer.ydisp++)}else{var s=n-i+1;this.buffer.lines.shiftElements(i+1,s-1,-1),this.buffer.lines.set(n,e)}this._userScrolling||(this.buffer.ydisp=this.buffer.ybase),this.updateRange(this.buffer.scrollTop),this.updateRange(this.buffer.scrollBottom),this.emit("scroll",this.buffer.ydisp)},e.prototype.scrollLines=function(t,e){if(t<0){if(0===this.buffer.ydisp)return;this._userScrolling=!0}else t+this.buffer.ydisp>=this.buffer.ybase&&(this._userScrolling=!1);var i=this.buffer.ydisp;this.buffer.ydisp=Math.max(Math.min(this.buffer.ydisp+t,this.buffer.ybase),0),i!==this.buffer.ydisp&&(e||this.emit("scroll",this.buffer.ydisp),this.refresh(0,this.rows-1))},e.prototype.scrollPages=function(t){this.scrollLines(t*(this.rows-1))},e.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},e.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},e.prototype.scrollToLine=function(t){var e=t-this.buffer.ydisp;0!==e&&this.scrollLines(e)},e.prototype.write=function(t){var e=this;t&&(this.writeBuffer.push(t),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(){e._innerWrite()})))},e.prototype._innerWrite=function(){for(var t=this,e=this.writeBuffer.splice(0,300);e.length>0;){var i=e.shift();this._xoffSentToCatchUp&&0===e.length&&0===this.writeBuffer.length&&(this.send(h.C0.DC1),this._xoffSentToCatchUp=!1),this._refreshStart=this.buffer.y,this._refreshEnd=this.buffer.y;var n=this._parser.parse(i);this._parser.setState(n),this.updateRange(this.buffer.y),this.refresh(this._refreshStart,this._refreshEnd)}this.writeBuffer.length>0?setTimeout(function(){return t._innerWrite()},0):this._writeInProgress=!1},e.prototype.writeln=function(t){this.write(t+"\r\n")},e.prototype.attachCustomKeyEventHandler=function(t){this._customKeyEventHandler=t},e.prototype.registerLinkMatcher=function(t,e,i){var n=this.linkifier.registerLinkMatcher(t,e,i);return this.refresh(0,this.rows-1),n},e.prototype.deregisterLinkMatcher=function(t){this.linkifier.deregisterLinkMatcher(t)&&this.refresh(0,this.rows-1)},Object.defineProperty(e.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!0,configurable:!0}),e.prototype.addMarker=function(t){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+t)},e.prototype.hasSelection=function(){return!!this.selectionManager&&this.selectionManager.hasSelection},e.prototype.getSelection=function(){return this.selectionManager?this.selectionManager.selectionText:""},e.prototype.clearSelection=function(){this.selectionManager&&this.selectionManager.clearSelection()},e.prototype.selectAll=function(){this.selectionManager&&this.selectionManager.selectAll()},e.prototype.selectLines=function(t,e){this.selectionManager&&this.selectionManager.selectLines(t,e)},e.prototype._keyDown=function(t){if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(t))return!1;if(!this._compositionHelper.keydown(t))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var e=this._evaluateKeyEscapeSequence(t);return e.scrollLines?(this.scrollLines(e.scrollLines),this.cancel(t,!0)):!!this._isThirdLevelShift(this.browser,t)||(e.cancel&&this.cancel(t,!0),!e.key||(this.emit("keydown",t),this.emit("key",e.key,t),this.showCursor(),this.handler(e.key),this.cancel(t,!0)))},e.prototype._isThirdLevelShift=function(t,e){var i=t.isMac&&!this.options.macOptionIsMeta&&e.altKey&&!e.ctrlKey&&!e.metaKey||t.isMSWindows&&e.altKey&&e.ctrlKey&&!e.metaKey;return"keypress"===e.type?i:i&&(!e.keyCode||e.keyCode>47)},e.prototype._evaluateKeyEscapeSequence=function(t){var e={cancel:!1,key:void 0,scrollLines:void 0},i=(t.shiftKey?1:0)|(t.altKey?2:0)|(t.ctrlKey?4:0)|(t.metaKey?8:0);switch(t.keyCode){case 0:"UIKeyInputUpArrow"===t.key?this.applicationCursor?e.key=h.C0.ESC+"OA":e.key=h.C0.ESC+"[A":"UIKeyInputLeftArrow"===t.key?this.applicationCursor?e.key=h.C0.ESC+"OD":e.key=h.C0.ESC+"[D":"UIKeyInputRightArrow"===t.key?this.applicationCursor?e.key=h.C0.ESC+"OC":e.key=h.C0.ESC+"[C":"UIKeyInputDownArrow"===t.key&&(this.applicationCursor?e.key=h.C0.ESC+"OB":e.key=h.C0.ESC+"[B");break;case 8:if(t.shiftKey){e.key=h.C0.BS;break}if(t.altKey){e.key=h.C0.ESC+h.C0.DEL;break}e.key=h.C0.DEL;break;case 9:if(t.shiftKey){e.key=h.C0.ESC+"[Z";break}e.key=h.C0.HT,e.cancel=!0;break;case 13:e.key=h.C0.CR,e.cancel=!0;break;case 27:e.key=h.C0.ESC,e.cancel=!0;break;case 37:i?(e.key=h.C0.ESC+"[1;"+(i+1)+"D",e.key===h.C0.ESC+"[1;3D"&&(e.key=this.browser.isMac?h.C0.ESC+"b":h.C0.ESC+"[1;5D")):this.applicationCursor?e.key=h.C0.ESC+"OD":e.key=h.C0.ESC+"[D";break;case 39:i?(e.key=h.C0.ESC+"[1;"+(i+1)+"C",e.key===h.C0.ESC+"[1;3C"&&(e.key=this.browser.isMac?h.C0.ESC+"f":h.C0.ESC+"[1;5C")):this.applicationCursor?e.key=h.C0.ESC+"OC":e.key=h.C0.ESC+"[C";break;case 38:i?(e.key=h.C0.ESC+"[1;"+(i+1)+"A",e.key===h.C0.ESC+"[1;3A"&&(e.key=h.C0.ESC+"[1;5A")):this.applicationCursor?e.key=h.C0.ESC+"OA":e.key=h.C0.ESC+"[A";break;case 40:i?(e.key=h.C0.ESC+"[1;"+(i+1)+"B",e.key===h.C0.ESC+"[1;3B"&&(e.key=h.C0.ESC+"[1;5B")):this.applicationCursor?e.key=h.C0.ESC+"OB":e.key=h.C0.ESC+"[B";break;case 45:t.shiftKey||t.ctrlKey||(e.key=h.C0.ESC+"[2~");break;case 46:e.key=i?h.C0.ESC+"[3;"+(i+1)+"~":h.C0.ESC+"[3~";break;case 36:i?e.key=h.C0.ESC+"[1;"+(i+1)+"H":this.applicationCursor?e.key=h.C0.ESC+"OH":e.key=h.C0.ESC+"[H";break;case 35:i?e.key=h.C0.ESC+"[1;"+(i+1)+"F":this.applicationCursor?e.key=h.C0.ESC+"OF":e.key=h.C0.ESC+"[F";break;case 33:t.shiftKey?e.scrollLines=-(this.rows-1):e.key=h.C0.ESC+"[5~";break;case 34:t.shiftKey?e.scrollLines=this.rows-1:e.key=h.C0.ESC+"[6~";break;case 112:e.key=i?h.C0.ESC+"[1;"+(i+1)+"P":h.C0.ESC+"OP";break;case 113:e.key=i?h.C0.ESC+"[1;"+(i+1)+"Q":h.C0.ESC+"OQ";break;case 114:e.key=i?h.C0.ESC+"[1;"+(i+1)+"R":h.C0.ESC+"OR";break;case 115:e.key=i?h.C0.ESC+"[1;"+(i+1)+"S":h.C0.ESC+"OS";break;case 116:e.key=i?h.C0.ESC+"[15;"+(i+1)+"~":h.C0.ESC+"[15~";break;case 117:e.key=i?h.C0.ESC+"[17;"+(i+1)+"~":h.C0.ESC+"[17~";break;case 118:e.key=i?h.C0.ESC+"[18;"+(i+1)+"~":h.C0.ESC+"[18~";break;case 119:e.key=i?h.C0.ESC+"[19;"+(i+1)+"~":h.C0.ESC+"[19~";break;case 120:e.key=i?h.C0.ESC+"[20;"+(i+1)+"~":h.C0.ESC+"[20~";break;case 121:e.key=i?h.C0.ESC+"[21;"+(i+1)+"~":h.C0.ESC+"[21~";break;case 122:e.key=i?h.C0.ESC+"[23;"+(i+1)+"~":h.C0.ESC+"[23~";break;case 123:e.key=i?h.C0.ESC+"[24;"+(i+1)+"~":h.C0.ESC+"[24~";break;default:if(!t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)if(this.browser.isMac&&!this.options.macOptionIsMeta||!t.altKey||t.metaKey)this.browser.isMac&&!t.altKey&&!t.ctrlKey&&t.metaKey&&65===t.keyCode&&this.selectAll();else{var n=x[t.keyCode],r=n&&n[t.shiftKey?1:0];if(r)e.key=h.C0.ESC+r;else if(t.keyCode>=65&&t.keyCode<=90){var s=t.ctrlKey?t.keyCode-64:t.keyCode+32;e.key=h.C0.ESC+String.fromCharCode(s)}}else t.keyCode>=65&&t.keyCode<=90?e.key=String.fromCharCode(t.keyCode-64):32===t.keyCode?e.key=String.fromCharCode(0):t.keyCode>=51&&t.keyCode<=55?e.key=String.fromCharCode(t.keyCode-51+27):56===t.keyCode?e.key=String.fromCharCode(127):219===t.keyCode?e.key=String.fromCharCode(27):220===t.keyCode?e.key=String.fromCharCode(28):221===t.keyCode&&(e.key=String.fromCharCode(29))}return e},e.prototype.setgLevel=function(t){this.glevel=t,this.charset=this.charsets[t]},e.prototype.setgCharset=function(t,e){this.charsets[t]=e,this.glevel===t&&(this.charset=e)},e.prototype._keyPress=function(t){var e;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(t))return!1;if(this.cancel(t),t.charCode)e=t.charCode;else if(null==t.which)e=t.keyCode;else{if(0===t.which||0===t.charCode)return!1;e=t.which}return!(!e||(t.altKey||t.ctrlKey||t.metaKey)&&!this._isThirdLevelShift(this.browser,t))&&(e=String.fromCharCode(e),this.emit("keypress",e,t),this.emit("key",e,t),this.showCursor(),this.handler(e),!0)},e.prototype.send=function(t){var e=this;this._sendDataQueue||setTimeout(function(){e.handler(e._sendDataQueue),e._sendDataQueue=""},1),this._sendDataQueue+=t},e.prototype.bell=function(){var t=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(){t.element.classList.remove("visual-bell-active")},200))},e.prototype.log=function(t,e){this.options.debug&&this._context.console&&this._context.console.log&&this._context.console.log(t,e)},e.prototype.error=function(t,e){this.options.debug&&this._context.console&&this._context.console.error&&this._context.console.error(t,e)},e.prototype.resize=function(t,e){isNaN(t)||isNaN(e)||(t!==this.cols||e!==this.rows?(t<1&&(t=1),e<1&&(e=1),this.buffers.resize(t,e),this.cols=t,this.rows=e,this.buffers.setupTabStops(this.cols),this.charMeasure&&this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this.emit("resize",{cols:t,rows:e})):this.charMeasure.width&&this.charMeasure.height||this.charMeasure.measure(this.options))},e.prototype.updateRange=function(t){t<this._refreshStart&&(this._refreshStart=t),t>this._refreshEnd&&(this._refreshEnd=t)},e.prototype.maxRange=function(){this._refreshStart=0,this._refreshEnd=this.rows-1},e.prototype.eraseRight=function(t,e){var i=this.buffer.lines.get(this.buffer.ybase+e);if(i){for(var n=[this.eraseAttr()," ",1,32];t<this.cols;t++)i[t]=n;this.updateRange(e)}},e.prototype.eraseLeft=function(t,e){var i=this.buffer.lines.get(this.buffer.ybase+e);if(i){var n=[this.eraseAttr()," ",1,32];for(t++;t--;)i[t]=n;this.updateRange(e)}},e.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 t=1;t<this.rows;t++)this.buffer.lines.push(this.blankLine());this.refresh(0,this.rows-1),this.emit("scroll",this.buffer.ydisp)}},e.prototype.eraseLine=function(t){this.eraseRight(0,t)},e.prototype.blankLine=function(t,e,i){var n=[t?this.eraseAttr():this.defAttr," ",1,32],r=[];e&&(r.isWrapped=e),i=i||this.cols;for(var s=0;s<i;s++)r[s]=n;return r},e.prototype.ch=function(t){return t?[this.eraseAttr()," ",1,32]:[this.defAttr," ",1,32]},e.prototype.is=function(t){return 0===(this.options.termName+"").indexOf(t)},e.prototype.handler=function(t){this.options.disableStdin||(this.selectionManager&&this.selectionManager.hasSelection&&this.selectionManager.clearSelection(),this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),this.emit("data",t))},e.prototype.handleTitle=function(t){this.emit("title",t)},e.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--},e.prototype.reverseIndex=function(){if(this.buffer.y===this.buffer.scrollTop){var t=this.buffer.scrollBottom-this.buffer.scrollTop;this.buffer.lines.shiftElements(this.buffer.y+this.buffer.ybase,t,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--},e.prototype.reset=function(){this.options.rows=this.rows,this.options.cols=this.cols;var t=this._customKeyEventHandler,e=this._inputHandler;this._setup(),this._customKeyEventHandler=t,this._inputHandler=e,this.refresh(0,this.rows-1),this.viewport&&this.viewport.syncScrollArea()},e.prototype.tabSet=function(){this.buffer.tabs[this.buffer.x]=!0},e.prototype.cancel=function(t,e){if(this.options.cancelEvents||e)return t.preventDefault(),t.stopPropagation(),!1},e.prototype.matchColor=function(t,e,i){return function(t,e,i){var n=t<<16|e<<8|i;if(null!=I[n])return I[n];for(var r,s,o=1/0,a=-1,l=0;l<S.DEFAULT_ANSI_COLORS.length;l++){if(r=S.DEFAULT_ANSI_COLORS[l].rgba,0===(s=P(t,e,i,r>>>24,r>>>16&255,r>>>8&255))){a=l;break}s<o&&(o=s,a=l)}return I[n]=a}(t,e,i)},e.prototype._visualBell=function(){return!1},e.prototype._soundBell=function(){return"sound"===this.options.bellStyle},e}(l.EventEmitter);e.Terminal=R;var T=function(t,e,i,n){Array.isArray(t)||(t=[t]),t.forEach(function(t){t.addEventListener(e,i,n||!1)})};function M(t,e,i,n){void 0===n&&(n=!1),t.removeEventListener(e,i,n)}var I={};function P(t,e,i,n,r,s){return Math.pow(30*(t-n),2)+Math.pow(59*(e-r),2)+Math.pow(11*(i-s),2)}},function(t,e,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=t.exports;Object.assign(r,i(34));var s=/\*\x18[AC]|\*\*\x18B/;function o(t,e){if(e<0)throw new r.Error("validation","“"+t+"” ("+e+") must be nonnegative.");if(e!==Math.floor(e))throw new r.Error("validation","“"+t+"” ("+e+") must be an integer.")}r.Validation={offer_parameters:function(t){if(!t.name)throw new r.Error("validation","Need “name”!");if("string"!=typeof t.name)throw new r.Error("validation","“name” ("+t.name+") must be a string!");if(t=Object.assign({},t),s.test(t.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!==t.serial&&void 0!==t.serial)throw new r.Error("validation","“serial” is meaningless.");if(t.serial=null,["size","mode","files_remaining","bytes_remaining"].forEach(function(e){var i;switch(n(t[e])){case"object":i=null===t[e];break;case"undefined":t[e]=null,i=!0;break;case"number":o(e,t[e]),i=!0}if(!i)throw new r.Error("validation","“"+e+"” ("+t[e]+") must be null, undefined, or a number.")}),"number"==typeof t.mode&&(t.mode|=32768),0===t.files_remaining)throw new r.Error("validation","“files_remaining”, if given, must be positive.");var e;switch(n(t.mtime)){case"object":if(e=!0,t.mtime instanceof Date){var i=t.mtime;if(t.mtime=Math.floor(i.getTime()/1e3),t.mtime<0)throw new r.Error("validation","“mtime” ("+i+") must not be earlier than 1970.")}else null!==t.mtime&&(e=!1);break;case"undefined":t.mtime=null,e=!0;break;case"number":o("mtime",t.mtime),e=!0}if(!e)throw new r.Error("validation","“mtime” ("+t.mtime+") must be null, undefined, a Date, or a number.");return t}}},function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=t.exports;Object.assign(a,i(85),i(55),i(35),i(34));var l;a.Subpacket=function(){function t(e){o(this,t),this._payload=e}return n(t,[{key:"encode16",value:function(t){return this._encode(t,a.CRC.crc16)}},{key:"encode32",value:function(t){return this._encode(t,a.CRC.crc32)}},{key:"get_payload",value:function(){return this._payload}}],[{key:"build",value:function(t,e){var i=l[e];if(!i)throw"No subpacket type “"+e+"” is defined! Try one of: "+Object.keys(l).join(", ");return new i(t)}},{key:"parse16",value:function(e){return t._parse(e,2)}},{key:"parse32",value:function(e){return t._parse(e,4)}}]),n(t,[{key:"_encode",value:function(t,e){return t.encode(this._payload.slice(0)).concat([a.ZMLIB.ZDLE,this._frameend_num],t.encode(e(this._payload.concat(this._frameend_num))))}}],[{key:"_parse",value:function(t,e){for(var i,n,r={104:h,105:_,106:p,107:f},s=0;s<t.length;){if(-1===(s=t.indexOf(a.ZMLIB.ZDLE,s)))return;if(n=r[t[s+1]]){i=s+1;break}s++}if(n){var o=t[i];if(t[i-1]!==a.ZMLIB.ZDLE)throw"Byte before frame end should be ZDLE, not "+t[i-1];var l=t.splice(0,i-1),c=a.ZDLE.splice(t,2,e);if(c){var u=a.ZDLE.decode(l);return a.CRC[2===e?"verify16":"verify32"](u.concat([o]),c),new n(u,c)}t.unshift.apply(t,l)}}}]),t}();var c=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,a.Subpacket),n(e,[{key:"frame_end",value:function(){return!0}}]),e}(),u=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,a.Subpacket),n(e,[{key:"frame_end",value:function(){return!1}}]),e}(),h=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,c),n(e,[{key:"ack_expected",value:function(){return!1}}]),e}();h.prototype._frameend_num=104;var f=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,c),n(e,[{key:"ack_expected",value:function(){return!0}}]),e}();f.prototype._frameend_num=107;var _=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,u),n(e,[{key:"ack_expected",value:function(){return!1}}]),e}();_.prototype._frameend_num=105;var p=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,u),n(e,[{key:"ack_expected",value:function(){return!0}}]),e}();p.prototype._frameend_num=106,l={end_no_ack:h,end_ack:f,no_end_no_ack:_,no_end_ack:p}},function(t,e,i){var n;n=function(t){t.version="1.1.1";var e=function(){for(var t=0,e=new Array(256),i=0;256!=i;++i)t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=i)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1,e[i]=t;return"undefined"!=typeof Int32Array?new Int32Array(e):e}();t.table=e,t.bstr=function(t,i){for(var n=-1^i,r=t.length-1,s=0;s<r;)n=(n=n>>>8^e[255&(n^t.charCodeAt(s++))])>>>8^e[255&(n^t.charCodeAt(s++))];return s===r&&(n=n>>>8^e[255&(n^t.charCodeAt(s))]),-1^n},t.buf=function(t,i){if(t.length>1e4)return function(t,i){for(var n=-1^i,r=t.length-7,s=0;s<r;)n=(n=(n=(n=(n=(n=(n=(n=n>>>8^e[255&(n^t[s++])])>>>8^e[255&(n^t[s++])])>>>8^e[255&(n^t[s++])])>>>8^e[255&(n^t[s++])])>>>8^e[255&(n^t[s++])])>>>8^e[255&(n^t[s++])])>>>8^e[255&(n^t[s++])])>>>8^e[255&(n^t[s++])];for(;s<r+7;)n=n>>>8^e[255&(n^t[s++])];return-1^n}(t,i);for(var n=-1^i,r=t.length-3,s=0;s<r;)n=(n=(n=(n=n>>>8^e[255&(n^t[s++])])>>>8^e[255&(n^t[s++])])>>>8^e[255&(n^t[s++])])>>>8^e[255&(n^t[s++])];for(;s<r+3;)n=n>>>8^e[255&(n^t[s++])];return-1^n},t.str=function(t,i){for(var n,r,s=-1^i,o=0,a=t.length;o<a;)(n=t.charCodeAt(o++))<128?s=s>>>8^e[255&(s^n)]:n<2048?s=(s=s>>>8^e[255&(s^(192|n>>6&31))])>>>8^e[255&(s^(128|63&n))]:n>=55296&&n<57344?(n=64+(1023&n),r=1023&t.charCodeAt(o++),s=(s=(s=(s=s>>>8^e[255&(s^(240|n>>8&7))])>>>8^e[255&(s^(128|n>>2&63))])>>>8^e[255&(s^(128|r>>6&15|(3&n)<<4))])>>>8^e[255&(s^(128|63&r))]):s=(s=(s=s>>>8^e[255&(s^(224|n>>12&15))])>>>8^e[255&(s^(128|n>>6&63))])>>>8^e[255&(s^(128|63&n))];return-1^s}},"undefined"==typeof DO_NOT_EXPORT_CRC?n(e):n({})},function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=t.exports;Object.assign(a,i(56),i(55),i(35),i(85),i(34));var l="*".charCodeAt(0),c="A".charCodeAt(0),u="B".charCodeAt(0),h="C".charCodeAt(0),f=[13,10],_=f.slice(0).concat([a.ZMLIB.XON]),p=[l,l,a.ZMLIB.ZDLE,u],d=[l,a.ZMLIB.ZDLE,c],m=[l,a.ZMLIB.ZDLE,h];a.Header=function(){function t(){o(this,t),this._bytes4||(this._bytes4=[0,0,0,0])}return n(t,[{key:"to_hex",value:function(){var t=this._crc_bytes();return p.concat(a.ENCODELIB.octets_to_hex(t.concat(a.CRC.crc16(t))),this._hex_header_ending)}},{key:"to_binary16",value:function(t){return this._to_binary(t,d,a.CRC.crc16)}},{key:"to_binary32",value:function(t){return this._to_binary(t,m,a.CRC.crc32)}}],[{key:"trim_leading_garbage",value:function(t){var e,i,n=[];t:for(;t.length&&!i;){var r=t.indexOf(l);if(-1===r){e=!0;break t}if(n.push.apply(n,t.splice(0,r)),t.length<2)break t;if(t[1]===l)if(t.length<p.length){if(t.join()===p.slice(0,t.length).join())break t}else t[2]===p[2]&&t[3]===p[3]&&(i=Z);else if(t[1]===a.ZMLIB.ZDLE){if(t.length<d.length)break t;t[2]===d[2]?i=F:t[2]===m[2]&&(i=W)}i||n.push(t.shift())}return e&&n.push.apply(n,t.splice(0)),n}},{key:"parse",value:function(t){var e;if(t[1]===l)return(e=Z(t))&&[e,16];if(t[2]===c)return(e=F(t))&&[e,16];if(t[2]===h)return(e=W(t))&&[e,32];if(!(t.length<3))throw"Unrecognized/unsupported octets: "+t.join()}},{key:"build",value:function(t){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments),i=D[t];if(!i)throw"No frame class “"+t+"” is defined!";return e.shift(),new(i.bind.apply(i,[null].concat(e)))}}]),n(t,[{key:"_to_binary",value:function(t,e,i){var n=this._crc_bytes();return e.concat(t.encode(n.concat(i(n))))}},{key:"_crc_bytes",value:function(){return[this.TYPENUM].concat(this._bytes4)}}]),t}(),a.Header.prototype._hex_header_ending=_;var y=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,a.Header),e}(),v={CANFDX:1,CANOVIO:2,CANBRK:4,CANCRY:8,CANLZW:16,CANFC32:32,ESCCTL:64,ESC8:128};var b=function(t){function e(t,i){o(this,e);var n=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),s=0;return i||(i=0),t.forEach(function(t){s|=function(t){if(!v[t])throw new a.Error("Invalid ZRINIT flag: "+t);return v[t]}(t)}),n._bytes4=[255&i,i>>8,0,s],n}return s(e,a.Header),n(e,[{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]&v.CANFDX)}},{key:"can_overlap_io",value:function(){return!!(this._bytes4[3]&v.CANOVIO)}},{key:"can_break",value:function(){return!!(this._bytes4[3]&v.CANBRK)}},{key:"can_fcs_32",value:function(){return!!(this._bytes4[3]&v.CANFC32)}},{key:"escape_ctrl_chars",value:function(){return!!(this._bytes4[3]&v.ESCCTL)}},{key:"escape_8th_bit",value:function(){return!!(this._bytes4[3]&v.ESC8)}}]),e}(),g={ESCCTL:64,ESC8:128};var C=function(t){function e(t,i){o(this,e);var n=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),s=0;if(t.forEach(function(t){s|=function(t){if(!g[t])throw"Invalid ZSINIT flag: "+t;return g[t]}(t)}),n._bytes4=[0,0,0,s],i){if(i.length>31)throw"Attn sequence must be <= 31 bytes";if(i.some(function(t){return t>255}))throw"Attn sequence ("+i+") must be <256";n._data=i.concat([0])}return n}return s(e,a.Header),n(e,[{key:"escape_ctrl_chars",value:function(){return!!(this._bytes4[3]&g.ESCCTL)}},{key:"escape_8th_bit",value:function(){return!!(this._bytes4[3]&g.ESC8)}}]),e}(),w=function(t){function e(t){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t&&(i._bytes4=t.slice()),i}return s(e,a.Header),e}();w.prototype._hex_header_ending=f;var S={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"]},A=["extended","transport","management","conversion"],E=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,a.Header),n(e,[{key:"get_options",value:function(){var t={sparse:!!(64&this._bytes4[0])},e=this._bytes4.slice(0);return A.forEach(function(i,n){if(S[i]instanceof Array)"management"===i&&(t.skip_if_absent=!!(128&e[n]),e[n]&=31),t[i]=S[i][e[n]];else for(var r in S[i])t[r]=!!(e[n]&S[i][r]),t[r]&&(e[n]^=S[i][r]);!t[i]&&e[n]&&(t[i]="unknown:"+e[n])}),t}}]),e}(),k=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,a.Header),e}(),x=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,a.Header),e}(),L=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,a.Header),e}(),O=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,a.Header),e}();L.prototype._hex_header_ending=f;for(var R=function(t){function e(t){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i._bytes4=a.ENCODELIB.pack_u32_le(t),i}return s(e,a.Header),n(e,[{key:"get_offset",value:function(){return a.ENCODELIB.unpack_u32_le(this._bytes4)}}]),e}(),T=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,R),e}(),M=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,R),e}(),I=function(t){function e(){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,R),e}(),P=[[y,"ZRQINIT"],[b,"ZRINIT"],[C,"ZSINIT"],[w,"ZACK"],[E,"ZFILE"],[k,"ZSKIP"],void 0,[x,"ZABORT"],[L,"ZFIN"],[T,"ZRPOS"],[M,"ZDATA"],[I,"ZEOF"],[O,"ZFERR"],void 0,void 0,void 0,void 0,void 0,void 0,void 0],D={},B=0;B<P.length;B++)P[B]&&(D[P[B][1]]=P[B][0],Object.assign(P[B][0].prototype,{TYPENUM:B,NAME:P[B][1]}));var N=[y,b,C,w,E,k,"ZNAK",x,L,T,M,I,O,"ZCRC","ZCHALLENGE","ZCOMPL","ZCAN","ZFREECNT","ZCOMMAND","ZSTDERR"];function H(t){var e=N[t];if("string"==typeof e)throw"Received unsupported header: "+e;return function(t){if(t.prototype instanceof R)return new t(0);return new t([])}(e)}function F(t){var e=a.ZDLE.splice(t,d.length,7);return e&&j(e)}function j(t){a.CRC.verify16(t.slice(0,5),t.slice(5));var e=H(t[0]);return e._bytes4=t.slice(1,5),e}function W(t){var e=a.ZDLE.splice(t,m.length,9);if(e){a.CRC.verify32(e.slice(0,5),e.slice(5));var i=H(e[0]);return i._bytes4=e.slice(1,5),i}}function Z(t){var e,i,n=t.indexOf(138);if(-1===n&&(n=t.indexOf(10)),-1!==n){if(i=t.splice(0,n),t.shift(),19===i.length){var r=i.pop();13!==r&&141!==r&&(e="Invalid hex header: (CR/)LF doesn’t have CR!")}else 18!==i.length&&(e="Invalid hex header: invalid number of bytes before LF!");if(e)throw e+=" ("+i.length+" bytes: "+i.join()+")";return i.splice(0,4),j(a.ENCODELIB.parse_hex_octets(i))}t.length>11&&(e="Invalid hex header - no LF detected within 12 bytes!")}a.Header.parse_hex=Z},function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=function(){function t(){r(this,t)}return n(t,[{key:"encode",value:function(t){t=unescape(encodeURIComponent(t));for(var e=new Array(t.length),i=0;i<t.length;i++)e[i]=t.charCodeAt(i);return new Uint8Array(e)}}]),t}(),o=function(){function t(){r(this,t)}return n(t,[{key:"decode",value:function(t){return decodeURIComponent(escape(String.fromCharCode.apply(String,t)))}}]),t}();t.exports.Text={Encoder:"undefined"!=typeof TextEncoder?TextEncoder:s,Decoder:"undefined"!=typeof TextDecoder?TextDecoder:o}},function(t,e,i){"use strict";var n=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var l=t.exports;Object.assign(l,i(56),i(138),i(55),i(35),i(137),i(135),i(134),i(34));var c=["CANFDX","CANOVIO","CANFC32"],u=[79,79],h=l.ZMLIB.ABORT_SEQUENCE,f=function(){function t(){a(this,t),this._on_evt={},this._evt_once_index={}}return r(t,[{key:"_Add_event",value:function(t){this._on_evt[t]=[],this._evt_once_index[t]=[]}},{key:"_get_evt_queue",value:function(t){if(!this._on_evt[t])throw"Bad event: "+t;return this._on_evt[t]}},{key:"on",value:function(t,e){return this._get_evt_queue(t).push(e),this}},{key:"off",value:function(t,e){var i=this._get_evt_queue(t);if(e){var n=i.indexOf(e);if(-1===n)throw"“"+e+"” is not in the “"+t+"” queue.";i.splice(n,1)}else i.pop();return this}},{key:"_Happen",value:function(t){var e=this._get_evt_queue(t),i=Array.apply(null,arguments);i.shift();var n=this;return e.forEach(function(t){t.apply(n,i)}),e.length}}]),t}();l.Session=function(t){function e(){a(this,e);var t=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._config={},t._input_buffer=[],t._Add_event("receive"),t._Add_event("garbage"),t._Add_event("session_end"),t}return o(e,f),r(e,[{key:"set_sender",value:function(t){return this._sender=t,this}},{key:"has_ended",value:function(){return this._has_ended()}},{key:"consume",value:function(t){if(this._before_consume(t),this._aborted)throw new l.Error("already_aborted");t.length&&(this._strip_and_enqueue_input(t),this._check_for_abort_sequence(t)||this._consume_first())}},{key:"aborted",value:function(){return!!this._aborted}}],[{key:"parse",value:function(t){var e;try{e=l.Header.parse_hex(t)}catch(t){return}if(e)switch(e.NAME){case"ZRQINIT":return new l.Session.Receive;case"ZRINIT":return new l.Session.Send(e)}}}]),r(e,[{key:"get_role",value:function(){return this.type}},{key:"_trim_leading_garbage_until_header",value:function(){var t=l.Header.trim_leading_garbage(this._input_buffer);t.length&&0===this._Happen("garbage",t)&&console.debug("Garbage: ",String.fromCharCode.apply(String,t),t)}},{key:"_parse_and_consume_header",value:function(){this._trim_leading_garbage_until_header();var t=l.Header.parse(this._input_buffer);if(t)return this._consume_header(t[0]),this._last_header_name=t[0].NAME,this._last_header_crc=t[1],t[0]}},{key:"_consume_header",value:function(t){this._on_receive(t);var e=this._next_header_handler[t.NAME];if(!e)throw console.error("Unhandled header!",t,this._next_header_handler),new l.Error("Unhandled header: "+t.NAME);this._next_header_handler=null,e.call(this,t)}},{key:"_check_for_abort_sequence",value:function(){var t=l.ZMLIB.find_subarray(this._input_buffer,h);if(-1!==t)throw this._input_buffer.splice(0,t+h.length),this._aborted=!0,this._on_session_end(),new l.Error("peer_aborted")}},{key:"_send_header",value:function(t){if(!this._sender)throw"Need sender!";var e=Array.apply(null,arguments),i=this._create_header_bytes(e);this._sender(i[0]),this._last_sent_header=i[1]}},{key:"_create_header_bytes",value:function(t){var e=l.Header.build.apply(l.Header,t);return[e[this._get_header_formatter(t[0])](this._zencoder),e]}},{key:"_strip_and_enqueue_input",value:function(t){l.ZMLIB.strip_ignored_bytes(t),this._input_buffer.push.apply(this._input_buffer,t)}},{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(t){this._Happen("receive",t)}},{key:"_before_consume",value:function(){}}]),e}(),l.Session.Receive=function(t){function e(){a(this,e);var t=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._Add_event("offer"),t._Add_event("data_in"),t._Add_event("file_end"),t}return o(e,l.Session),r(e,[{key:"_before_consume",value:function(t){if(this._bytes_after_OO)throw"PROTOCOL: Session is completed!";this._bytes_being_consumed=t}},{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 t;t=16===this._last_header_crc?"parse16":"parse32";var e=l.Subpacket[t](this._input_buffer);return e&&(this._consume_data(e),e.frame_end()&&(this._next_subpacket_handler=null)),e}},{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=(t=this._bytes_being_consumed.slice(0),0===l.ZMLIB.find_subarray(t,u)?t.splice(0,u.length):t[0]===u[u.length-1]&&t.splice(0,1),t),void this._on_session_end();throw"PROTOCOL: Only thing after ZFIN should be “OO” (79,79), not: "+array_buf.join()}var t,e;do{e=this._next_subpacket_handler?this._parse_and_consume_subpacket():this._parse_and_consume_header()}while(e&&this._input_buffer.length)}},{key:"_consume_data",value:function(t){if(this._on_receive(t),!this._next_subpacket_handler)throw"PROTOCOL: Received unexpected data packet after "+this._last_header_name+" header: "+t.get_payload().join();this._next_subpacket_handler.call(this,t)}},{key:"_octets_to_string",value:function(t){return this._textdecoder||(this._textdecoder=new l.Text.Decoder),this._textdecoder.decode(new Uint8Array(t))}},{key:"_consume_ZFILE_data",value:function(t,e){if(this._file_info)throw"PROTOCOL: second ZFILE data subpacket received";var i=e.get_payload(),n=i.indexOf(0),r=this._octets_to_string(i.slice(0,n)),s=this._octets_to_string(i.slice(1+n)).split(" "),o=s[1]&&parseInt(s[1],8)||void 0;o&&(o=new Date(1e3*o)),this._file_info={name:r,size:s[0]?parseInt(s[0],10):null,mtime:o||null,mode:s[2]&&parseInt(s[2],8)||null,serial:s[3]&&parseInt(s[3],10)||null,files_remaining:s[4]?parseInt(s[4],10):null,bytes_remaining:s[5]?parseInt(s[5],10):null};var a=new d(t.get_options(),this._file_info,this._accept.bind(this),this._skip.bind(this));this._current_transfer=a}},{key:"_consume_ZDATA_data",value:function(t){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+=t.get_payload().length,this._on_data_in(t),t.ack_expected()&&!t.frame_end()&&this._send_header("ZACK",l.ENCODELIB.pack_u32_le(this._file_offset))}},{key:"_make_promise_for_between_files",value:function(){var t=this;return new Promise(function(e){var i={ZFILE:function(t){this._next_subpacket_handler=function(i){this._next_subpacket_handler=null,this._consume_ZFILE_data(t,i),this._Happen("offer",this._current_transfer),e(this._current_transfer)}},ZSINIT:function(e){t._next_subpacket_handler=function(e){t._next_subpacket_handler=null,t._consume_ZSINIT_data(e),t._send_header("ZACK"),t._next_header_handler=i}},ZFIN:function(){this._consume_ZFIN(),e()}};t._next_header_handler=i})}},{key:"_consume_ZSINIT_data",value:function(t){this._attn=t.get_payload()}},{key:"start",value:function(){if(this._started)throw"Already started!";this._started=!0;var t=this._make_promise_for_between_files();return this._send_ZRINIT(),t}},{key:"_accept",value:function(t){this._accepted_offer=!0,this._file_offset=t||0;var e=this,i=new Promise(function(t){e._next_header_handler={ZDATA:function(e){this._consume_ZDATA(e),this._next_subpacket_handler=this._consume_ZDATA_data,this._next_header_handler={ZEOF:function(e){this._next_subpacket_handler=null,this._consume_ZEOF(e);var i=this._make_promise_for_between_files();t(i)}}}}});return this._send_ZRPOS(),i}},{key:"_skip",value:function(){var t=this._make_promise_for_between_files();if(this._accepted_offer){var e=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:e,ZDATA:function(){e(),this._next_header_handler.ZEOF=e}.bind(this)})}return this._file_info=null,this._send_header("ZSKIP"),t}},{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(t){if(this._file_offset!==t.get_offset())throw"ZEOF offset mismatch; unimplemented (local: "+this._file_offset+"; ZEOF: "+t.get_offset()+")";this._send_ZRINIT(),this._on_file_end(),this._file_info=null,this._current_transfer=null}},{key:"_consume_ZDATA",value:function(t){if(this._file_offset!==t.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(t){this._Happen("data_in",t),this._current_transfer&&this._current_transfer._Happen("input",t.get_payload())}}]),e}(),Object.assign(l.Session.Receive.prototype,{type:"receive"});var _={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 t(e,i,n,r){a(this,t),this._file_info=e,this._file_offset=i||0,this._send=n,this._end=r}return r(t,[{key:"send",value:function(t){this._send(t),this._file_offset+=t.length}},{key:"end",value:function(t){var e=this._end(t||[]);return t&&(this._file_offset+=t.length),e}}]),t}();Object.assign(p.prototype,_);var d=function(t){function e(t,i,n,r){a(this,e);var o=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o._zfile_opts=t,o._file_info=i,o._accept_func=n,o._skip_func=r,o._Add_event("input"),o._Add_event("complete"),o.on("input",o._input_handler),o}return o(e,f),r(e,[{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(t){if(this._verify_not_skipped(),this._accepted)throw new l.Error("Already accepted!");switch(this._accepted=!0,t||(t={}),this._file_offset=t.offset||0,t.on_input){case null:case void 0:case"spool_array":case"spool_uint8array":this._spool=[];break;default:if("function"!=typeof t.on_input)throw"Invalid “on_input”: "+t.on_input}return this._input_handler_mode=t.on_input||"spool_uint8array",this._accept_func(this._file_offset).then(this._get_spool.bind(this))}},{key:"_input_handler",value:function(t){if(this._file_offset+=t.length,"function"==typeof this._input_handler_mode)this._input_handler_mode(t);else{if("spool_uint8array"===this._input_handler_mode)t=new Uint8Array(t);else if("spool_array"!==this._input_handler_mode)throw new l.Error("WTF?? _input_handler_mode = "+this._input_handler_mode);this._spool.push(t)}}},{key:"_get_spool",value:function(){return this._spool}}]),e}();Object.assign(d.prototype,_);var m={ZFILE:!0,ZDATA:!0};l.Session.Send=function(t){function e(t){a(this,e);var i=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(!t)throw"Need first header!";if("ZRINIT"!==t.NAME)throw"First header should be ZRINIT, not "+t.NAME;i._last_header_name="ZRINIT",i._subpacket_encode_func="encode16",i._zencoder=new l.ZDLE,i._consume_ZRINIT(t),i._file_offset=0;return i._start_keepalive_on_set_sender=!0,i}return o(e,l.Session),r(e,[{key:"set_sender",value:function(t){return n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"set_sender",this).call(this,t),this._start_keepalive_on_set_sender&&(this._start_keepalive_on_set_sender=!1,this._start_keepalive()),this}},{key:"_get_header_formatter",value:function(t){return m[t]?"to_binary16":"to_hex"}},{key:"_start_keepalive",value:function(){if(!this._keepalive_promise){var t=this;this._keepalive_promise=new Promise(function(e){t._keepalive_timeout=setTimeout(e,5e3)}).then(function(){t._next_header_handler={ZACK:function(){t._got_ZSINIT_ZACK=!0}},t._send_ZSINIT(),t._keepalive_promise=null,t._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 t=[];this._zencoder.escapes_ctrl_chars()&&t.push("ESCCTL"),this._send_header_and_data(["ZSINIT",t],[0],"end_ack")}},{key:"_consume_ZRINIT",value:function(t){if(this._last_ZRINIT=t,t.get_buffer_size())throw"Buffer size ("+t.get_buffer_size()+") is unsupported!";if(!t.can_full_duplex())throw"Half-duplex I/O is unsupported!";if(!t.can_overlap_io())throw"Non-overlap I/O is unsupported!";if(t.escape_8th_bit())throw"8-bit escaping is unsupported!";this._zencoder.set_escape_ctrl_chars(!0),t.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 t;if(!this._last_ZRINIT.escape_ctrl_chars()&&!this._got_ZSINIT_ZACK){var e=this;t=new Promise(function(t){e._next_header_handler={ZACK:function(e){t()}},e._send_ZSINIT()})}else t=Promise.resolve();return t}},{key:"_convert_params_to_offer_payload_array",value:function(t){var e=(t=l.Validation.offer_parameters(t)).name+"\0",i=[(t.size||0).toString(10),t.mtime?t.mtime.toString(8):"0",t.mode?(32768|t.mode).toString(8):"0","0"];return t.files_remaining&&(i.push(t.files_remaining),t.bytes_remaining&&i.push(t.bytes_remaining)),e+=i.join(" "),this._string_to_octets(e)}},{key:"send_offer",value:function(t){if(!t)throw"need file params!";if(this._sending_file)throw"Already sending file!";var e=this._convert_params_to_offer_payload_array(t);this._stop_keepalive();var i=this,n=function(){var n=new Promise(function(e){i._next_header_handler={ZSKIP:function(){i._start_keepalive(),e()},ZRPOS:function(n){i._sending_file=!0,e(new p(t,n.get_offset(),i._send_interim_file_piece.bind(i),i._end_file.bind(i)))}}});return i._send_header_and_data(["ZFILE"],e,"end_ack"),delete i._sent_ZDATA,n};return this._ensure_receiver_escapes_ctrl_chars().then(n)}},{key:"_send_header_and_data",value:function(t,e,i){var n=this._create_header_bytes(t),r=this._build_subpacket_bytes(e,i);n[0].push.apply(n[0],r),this._sender(n[0]),this._last_sent_header=n[1]}},{key:"_build_subpacket_bytes",value:function(t,e){return l.Subpacket.build(t,e)[this._subpacket_encode_func](this._zencoder)}},{key:"_build_and_send_subpacket",value:function(t,e){this._sender(this._build_subpacket_bytes(t,e))}},{key:"_string_to_octets",value:function(t){this._textencoder||(this._textencoder=new l.Text.Encoder);var e=this._textencoder.encode(t);return Array.prototype.slice.call(e)}},{key:"_send_interim_file_piece",value:function(t){return this._send_file_part(t,"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(t){this._ensure_we_are_sending(),this._send_file_part(t,"end_no_ack");var e=this,i=new Promise(function(t){e._sending_file=!1,e._prepare_to_receive_ZRINIT(t)});return this._send_header("ZEOF",this._file_offset),this._file_offset=0,i}},{key:"_prepare_to_receive_ZRINIT",value:function(t){this._next_header_handler={ZRINIT:function(e){this._consume_ZRINIT(e),t&&t()}}}},{key:"close",value:function(){var t="ZRINIT"===this._last_header_name;if(t||(t="ZSKIP"===this._last_header_name),t||(t="ZSINIT"===this._last_sent_header.name&&"ZACK"===this._last_header_name),!t)throw"Can’t close; last received header was “"+this._last_header_name+"”";var e=this,i=new Promise(function(t,i){e._next_header_handler={ZFIN:function(){e._sender(u),e._sent_OO=!0,e._on_session_end(),t()}}});return this._send_header("ZFIN"),i}},{key:"_has_ended",value:function(){return this.aborted()||!!this._sent_OO}},{key:"_send_file_part",value:function(t,e){this._sent_ZDATA||(this._send_header("ZDATA",this._file_offset),this._sent_ZDATA=!0);for(var i=0,n=t.length;;){var r=Math.min(i+8192,n)-i,s=r+i>=n,o=t.slice(i,i+r);if(o instanceof Array||(o=Array.prototype.slice.call(o)),this._build_and_send_subpacket(o,s?e:"no_end_no_ack"),this._file_offset+=r,(i+=r)>=n)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(),n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_on_session_end",this).call(this)}}]),e}(),Object.assign(l.Session.Send.prototype,{type:"send"})},function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=t.exports;Object.assign(s,i(35),i(139));var o=[42,42,24,66,48],a=["to_terminal","on_detect","on_retract","sender"],l=function(){function t(e,i,n,s){r(this,t),this._confirmer=i,this._denier=n,this._is_valid=s,this._session_type=e}return n(t,[{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}}]),t}();s.Sentry=function(){function t(e){if(r(this,t),!e)throw"Need options!";var i=this;a.forEach(function(t){if(!e[t])throw"Need “"+t+"”!";i["_"+t]=e[t]}),this._cache=[]}return n(t,[{key:"_after_session_end",value:function(){this._zsession=null}},{key:"consume",value:function(t){if(t instanceof Array||(t=Array.prototype.slice.call(new Uint8Array(t))),this._zsession){var e=this._zsession;if(e.consume(t),!e.has_ended())return;t="receive"===e.type?e.get_trailing_bytes():[]}var i=this._parse(t),n=t;if(i){!!this._parsed_session&&(this._parsed_session.type===i.type&&(n=[]),this._on_retract()),this._parsed_session=i;var r=this;this._on_detect(new l(i.type,function(){if(!this.is_valid())throw"Stale ZMODEM session!";return i.on("garbage",r._to_terminal),i.on("session_end",r._after_session_end.bind(r)),i.set_sender(r._sender),delete r._parsed_session,r._zsession=i},this._send_abort.bind(this),function(){return r._parsed_session===i}))}else{var s=this._parsed_session;this._parsed_session=null,s&&(1===n.length&&67===n[0]&&this._send_abort(),this._on_retract())}this._to_terminal(n)}},{key:"get_confirmed_session",value:function(){return this._zsession||null}},{key:"_send_abort",value:function(){this._sender(s.ZMLIB.ABORT_SEQUENCE)}},{key:"_parse",value:function(t){var e=this._cache;for(e.push.apply(e,t);;){var i=s.ZMLIB.find_subarray(e,o);if(-1===i)break;e.splice(0,i);var n=void 0;try{n=s.Session.parse(e)}catch(t){}if(!n)break;return 1===e.length&&e[0]===s.ZMLIB.XON&&e.shift(),e.length?null:n}return e.splice(21),null}}]),t}()},function(t,e,i){"use strict";Object.assign(t.exports,i(140))},function(t,e,i){"use strict";var n=t.exports;function r(t){if(t.aborted())throw new n.Error("aborted")}window.Zmodem=n,Object.assign(n,i(141)),n.Browser={send_files:function(t,e,i){i||(i={});for(var n=[],s=0,o=e.length-1;o>=0;o--){var a=e[o];s+=a.size,n[o]={obj:a,name:a.name,size:a.size,mtime:new Date(a.lastModified),files_remaining:e.length-o,bytes_remaining:s}}var l=0;return function e(){var s=n[l];return s?(l++,t.send_offer(s).then(function(n){return i.on_offer_response&&i.on_offer_response(s.obj,n),void 0===n?e():new Promise(function(o){var a,l=new FileReader;l.onerror=function(t){throw console.error("file read error",t),"File read error: "+t},l.onprogress=function(e){e.target.result&&(a=new Uint8Array(e.target.result,n.get_offset()),r(t),n.send(a),i.on_progress&&i.on_progress(s.obj,n,a))},l.onload=function(l){a=new Uint8Array(l.target.result,n,a),r(t),n.end(a).then(function(){i.on_progress&&a.length&&i.on_progress(s.obj,n,a),i.on_file_complete&&i.on_file_complete(s.obj,n),o(e())})},l.readAsArrayBuffer(s.obj)})})):Promise.resolve()}()},save_to_disk:function(t,e){var i=new Blob(t),n=URL.createObjectURL(i),r=document.createElement("a");r.style.display="none",r.href=n,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}}},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){(function(t){!function(t){function e(t){if("utf-8"!==(t=void 0===t?"utf-8":t))throw new RangeError("Failed to construct 'TextEncoder': The encoding label provided ('"+t+"') is invalid.")}function i(t,e){if(t=void 0===t?"utf-8":t,e=void 0===e?{fatal:!1}:e,"utf-8"!==t)throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+t+"') is invalid.");if(e.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}if(t.TextEncoder&&t.TextDecoder)return!1;Object.defineProperty(e.prototype,"encoding",{value:"utf-8"}),e.prototype.encode=function(t,e){if((e=void 0===e?{stream:!1}:e).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");e=0;for(var i=t.length,n=0,r=Math.max(32,i+(i>>1)+7),s=new Uint8Array(r>>3<<3);e<i;){var o=t.charCodeAt(e++);if(55296<=o&&56319>=o){if(e<i){var a=t.charCodeAt(e);56320==(64512&a)&&(++e,o=((1023&o)<<10)+(1023&a)+65536)}if(55296<=o&&56319>=o)continue}if(n+4>s.length&&(r+=8,r=(r*=1+e/t.length*2)>>3<<3,(a=new Uint8Array(r)).set(s),s=a),0==(4294967168&o))s[n++]=o;else{if(0==(4294965248&o))s[n++]=o>>6&31|192;else if(0==(4294901760&o))s[n++]=o>>12&15|224,s[n++]=o>>6&63|128;else{if(0!=(4292870144&o))continue;s[n++]=o>>18&7|240,s[n++]=o>>12&63|128,s[n++]=o>>6&63|128}s[n++]=63&o|128}}return s.slice(0,n)},Object.defineProperty(i.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(i.prototype,"fatal",{value:!1}),Object.defineProperty(i.prototype,"ignoreBOM",{value:!1}),i.prototype.decode=function(t,e){if((e=void 0===e?{stream:!1}:e).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");e=0;for(var i=(t=new Uint8Array(t)).length,n=[];e<i;){var r=t[e++];if(0===r)break;if(0==(128&r))n.push(r);else if(192==(224&r)){var s=63&t[e++];n.push((31&r)<<6|s)}else if(224==(240&r)){s=63&t[e++];var o=63&t[e++];n.push((31&r)<<12|s<<6|o)}else if(240==(248&r)){65535<(r=(7&r)<<18|(s=63&t[e++])<<12|(o=63&t[e++])<<6|63&t[e++])&&(r-=65536,n.push(r>>>10&1023|55296),r=56320|1023&r),n.push(r)}}return String.fromCharCode.apply(null,n)},t.TextEncoder=e,t.TextDecoder=i}("undefined"!=typeof window?window:void 0!==t?t:this)}).call(this,i(143))},function(t,e,i){var n=i(1)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,i){var n=i(2),r=i(25),s=i(1)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==r(t))}},function(t,e,i){var n=i(146),r=i(54);t.exports=function(t,e,i){if(n(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(r(t))}},function(t,e,i){"use strict";var n=i(0),r=i(5),s=i(147),o="".endsWith;n(n.P+n.F*i(145)("endsWith"),"String",{endsWith:function(t){var e=s(this,t,"endsWith"),i=arguments.length>1?arguments[1]:void 0,n=r(e.length),a=void 0===i?n:Math.min(r(i),n),l=String(t);return o?o.call(e,l,a):e.slice(a-l.length,a)===l}})},function(t,e,i){i(148),t.exports=i(10).String.endsWith},function(t,e,i){i(15)("Float64",8,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(15)("Float32",4,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(15)("Uint32",4,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(15)("Int32",4,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(15)("Uint16",2,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(15)("Int16",2,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(15)("Uint8",1,function(t){return function(e,i,n){return t(this,e,i,n)}},!0)},function(t,e,i){i(15)("Uint8",1,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(15)("Int8",1,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){var n=i(0);n(n.G+n.W+n.F*!i(46).ABV,{DataView:i(57).DataView})},function(t,e,i){"use strict";var n=i(0),r=i(46),s=i(57),o=i(12),a=i(29),l=i(5),c=i(2),u=i(3).ArrayBuffer,h=i(47),f=s.ArrayBuffer,_=s.DataView,p=r.ABV&&u.isView,d=f.prototype.slice,m=r.VIEW;n(n.G+n.W+n.F*(u!==f),{ArrayBuffer:f}),n(n.S+n.F*!r.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||c(t)&&m in t}}),n(n.P+n.U+n.F*i(7)(function(){return!new f(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==d&&void 0===e)return d.call(o(this),t);for(var i=o(this).byteLength,n=a(t,i),r=a(void 0===e?i:e,i),s=new(h(this,f))(l(r-n)),c=new _(this),u=new _(s),p=0;n<r;)u.setUint8(p++,c.getUint8(n++));return s}}),i(51)("ArrayBuffer")},function(t,e,i){i(160),i(159),i(158),i(157),i(156),i(155),i(154),i(153),i(152),i(151),i(150),i(61),t.exports=i(10)},function(t,e,i){"use strict";var n=i(0),r=i(59),s=i(88);n(n.S,"Promise",{try:function(t){var e=r.f(this),i=s(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}})},function(t,e,i){"use strict";var n=i(0),r=i(10),s=i(3),o=i(47),a=i(87);n(n.P+n.R,"Promise",{finally:function(t){var e=o(this,r.Promise||s.Promise),i="function"==typeof t;return this.then(i?function(i){return a(e,t()).then(function(){return i})}:t,i?function(i){return a(e,t()).then(function(){throw i})}:t)}})},function(t,e,i){var n=i(3),r=i(89).set,s=n.MutationObserver||n.WebKitMutationObserver,o=n.process,a=n.Promise,l="process"==i(25)(o);t.exports=function(){var t,e,i,c=function(){var n,r;for(l&&(n=o.domain)&&n.exit();t;){r=t.fn,t=t.next;try{r()}catch(n){throw t?i():e=void 0,n}}e=void 0,n&&n.enter()};if(l)i=function(){o.nextTick(c)};else if(!s||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var u=a.resolve();i=function(){u.then(c)}}else i=function(){r.call(n,c)};else{var h=!0,f=document.createTextNode("");new s(c).observe(f,{characterData:!0}),i=function(){f.data=h=!h}}return function(n){var r={fn:n,next:void 0};e&&(e.next=r),t||(t=r,i()),e=r}}},function(t,e){t.exports=function(t,e,i){var n=void 0===i;switch(e.length){case 0:return n?t():t.call(i);case 1:return n?t(e[0]):t.call(i,e[0]);case 2:return n?t(e[0],e[1]):t.call(i,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(i,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(i,e[0],e[1],e[2],e[3])}return t.apply(i,e)}},function(t,e,i){var n=i(17),r=i(98),s=i(68),o=i(12),a=i(5),l=i(66),c={},u={};(e=t.exports=function(t,e,i,h,f){var _,p,d,m,y=f?function(){return t}:l(t),v=n(i,h,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(s(y)){for(_=a(t.length);_>b;b++)if((m=e?v(o(p=t[b])[0],p[1]):v(t[b]))===c||m===u)return m}else for(d=y.call(t);!(p=d.next()).done;)if((m=r(d,v,p.value,e))===c||m===u)return m}).BREAK=c,e.RETURN=u},function(t,e,i){"use strict";var n,r,s,o,a=i(28),l=i(3),c=i(17),u=i(38),h=i(0),f=i(2),_=i(16),p=i(60),d=i(166),m=i(47),y=i(89).set,v=i(164)(),b=i(59),g=i(88),C=i(87),w=l.TypeError,S=l.process,A=l.Promise,E="process"==u(S),k=function(){},x=r=b.f,L=!!function(){try{var t=A.resolve(1),e=(t.constructor={})[i(1)("species")]=function(t){t(k,k)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(k)instanceof e}catch(t){}}(),O=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var i=t._c;v(function(){for(var n=t._v,r=1==t._s,s=0,o=function(e){var i,s,o=r?e.ok:e.fail,a=e.resolve,l=e.reject,c=e.domain;try{o?(r||(2==t._h&&I(t),t._h=1),!0===o?i=n:(c&&c.enter(),i=o(n),c&&c.exit()),i===e.promise?l(w("Promise-chain cycle")):(s=O(i))?s.call(i,a,l):a(i)):l(n)}catch(t){l(t)}};i.length>s;)o(i[s++]);t._c=[],t._n=!1,e&&!t._h&&T(t)})}},T=function(t){y.call(l,function(){var e,i,n,r=t._v,s=M(t);if(s&&(e=g(function(){E?S.emit("unhandledRejection",r,t):(i=l.onunhandledrejection)?i({promise:t,reason:r}):(n=l.console)&&n.error&&n.error("Unhandled promise rejection",r)}),t._h=E||M(t)?2:1),t._a=void 0,s&&e.e)throw e.v})},M=function(t){return 1!==t._h&&0===(t._a||t._c).length},I=function(t){y.call(l,function(){var e;E?S.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},P=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},D=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw w("Promise can't be resolved itself");(e=O(t))?v(function(){var n={_w:i,_d:!1};try{e.call(t,c(D,n,1),c(P,n,1))}catch(t){P.call(n,t)}}):(i._v=t,i._s=1,R(i,!1))}catch(t){P.call({_w:i,_d:!1},t)}}};L||(A=function(t){p(this,A,"Promise","_h"),_(t),n.call(this);try{t(c(D,this,1),c(P,this,1))}catch(t){P.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=i(58)(A.prototype,{then:function(t,e){var i=x(m(this,A));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=E?S.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&R(this,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),s=function(){var t=new n;this.promise=t,this.resolve=c(D,t,1),this.reject=c(P,t,1)},b.f=x=function(t){return t===A||t===o?new s(t):r(t)}),h(h.G+h.W+h.F*!L,{Promise:A}),i(40)(A,"Promise"),i(51)("Promise"),o=i(10).Promise,h(h.S+h.F*!L,"Promise",{reject:function(t){var e=x(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(a||!L),"Promise",{resolve:function(t){return C(a&&this===o?A:this,t)}}),h(h.S+h.F*!(L&&i(65)(function(t){A.all(t).catch(k)})),"Promise",{all:function(t){var e=this,i=x(e),n=i.resolve,r=i.reject,s=g(function(){var i=[],s=0,o=1;d(t,!1,function(t){var a=s++,l=!1;i.push(void 0),o++,e.resolve(t).then(function(t){l||(l=!0,i[a]=t,--o||n(i))},r)}),--o||n(i)});return s.e&&r(s.v),i.promise},race:function(t){var e=this,i=x(e),n=i.reject,r=g(function(){d(t,!1,function(t){e.resolve(t).then(i.resolve,n)})});return r.e&&n(r.v),i.promise}})},function(t,e,i){for(var n=i(62),r=i(26),s=i(31),o=i(3),a=i(14),l=i(30),c=i(1),u=c("iterator"),h=c("toStringTag"),f=l.Array,_={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;d<p.length;d++){var m,y=p[d],v=_[y],b=o[y],g=b&&b.prototype;if(g&&(g[u]||a(g,u,f),g[h]||a(g,h,y),l[y]=f,v))for(m in n)g[m]||s(g,m,n[m],!0)}},function(t,e,i){i(61),i(103),i(168),i(167),i(163),i(162),t.exports=i(10).Promise},function(t,e,i){var n=i(0),r=i(90),s=i(42);n(n.S+n.F,"Object",{make:function(t,e){return r(s(t),e)}})},function(t,e,i){var n=i(0),r=i(90);n(n.S+n.F,"Object",{define:r})},function(t,e,i){var n=i(0);n(n.S+n.F,"Object",{classof:i(38)})},function(t,e,i){var n=i(0);n(n.S+n.F,"Object",{isObject:i(2)})},function(t,e,i){"use strict";var n=i(0),r=i(4),s=i(33),o=i(39),a=i(20).f;i(6)&&n(n.P+i(48),"Object",{__lookupSetter__:function(t){var e,i=r(this),n=s(t,!0);do{if(e=a(i,n))return e.set}while(i=o(i))}})},function(t,e,i){"use strict";var n=i(0),r=i(4),s=i(33),o=i(39),a=i(20).f;i(6)&&n(n.P+i(48),"Object",{__lookupGetter__:function(t){var e,i=r(this),n=s(t,!0);do{if(e=a(i,n))return e.get}while(i=o(i))}})},function(t,e,i){"use strict";var n=i(0),r=i(4),s=i(16),o=i(8);i(6)&&n(n.P+i(48),"Object",{__defineSetter__:function(t,e){o.f(r(this),t,{set:s(e),enumerable:!0,configurable:!0})}})},function(t,e,i){"use strict";var n=i(0),r=i(4),s=i(16),o=i(8);i(6)&&n(n.P+i(48),"Object",{__defineGetter__:function(t,e){o.f(r(this),t,{get:s(e),enumerable:!0,configurable:!0})}})},function(t,e,i){var n=i(0),r=i(91)(!0);n(n.S,"Object",{entries:function(t){return r(t)}})},function(t,e,i){var n=i(0),r=i(91)(!1);n(n.S,"Object",{values:function(t){return r(t)}})},function(t,e,i){var n=i(0),r=i(92),s=i(9),o=i(20),a=i(67);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,i,n=s(t),l=o.f,c=r(n),u={},h=0;c.length>h;)void 0!==(i=l(n,e=c[h++]))&&a(u,e,i);return u}})},function(t,e,i){var n=i(2),r=i(12),s=function(t,e){if(r(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=i(17)(Function.call,i(20).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,i){return s(t,i),e?t.__proto__=i:n(t,i),t}}({},!1):void 0),check:s}},function(t,e,i){var n=i(0);n(n.S,"Object",{setPrototypeOf:i(181).set})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,i){var n=i(0);n(n.S,"Object",{is:i(183)})},function(t,e,i){"use strict";var n=i(26),r=i(49),s=i(37),o=i(4),a=i(41),l=Object.assign;t.exports=!l||i(7)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=l({},t)[i]||Object.keys(l({},e)).join("")!=n})?function(t,e){for(var i=o(t),l=arguments.length,c=1,u=r.f,h=s.f;l>c;)for(var f,_=a(arguments[c++]),p=u?n(_).concat(u(_)):n(_),d=p.length,m=0;d>m;)h.call(_,f=p[m++])&&(i[f]=_[f]);return i}:l},function(t,e,i){var n=i(0);n(n.S+n.F,"Object",{assign:i(185)})},function(t,e,i){var n=i(2);i(13)("isExtensible",function(t){return function(e){return!!n(e)&&(!t||t(e))}})},function(t,e,i){var n=i(2);i(13)("isSealed",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(2);i(13)("isFrozen",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(2),r=i(50).onFreeze;i(13)("preventExtensions",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,i){var n=i(2),r=i(50).onFreeze;i(13)("seal",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,i){var n=i(2),r=i(50).onFreeze;i(13)("freeze",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,i){i(13)("getOwnPropertyNames",function(){return i(93).f})},function(t,e,i){var n=i(4),r=i(26);i(13)("keys",function(){return function(t){return r(n(t))}})},function(t,e,i){var n=i(4),r=i(39);i(13)("getPrototypeOf",function(){return function(t){return r(n(t))}})},function(t,e,i){var n=i(9),r=i(20).f;i(13)("getOwnPropertyDescriptor",function(){return function(t,e){return r(n(t),e)}})},function(t,e,i){var n=i(0);n(n.S+n.F*!i(6),"Object",{defineProperties:i(100)})},function(t,e,i){var n=i(0);n(n.S+n.F*!i(6),"Object",{defineProperty:i(8).f})},function(t,e,i){var n=i(0);n(n.S,"Object",{create:i(42)})},function(t,e,i){var n=i(26),r=i(49),s=i(37);t.exports=function(t){var e=n(t),i=r.f;if(i)for(var o,a=i(t),l=s.f,c=0;a.length>c;)l.call(t,o=a[c++])&&e.push(o);return e}},function(t,e,i){var n=i(3),r=i(10),s=i(28),o=i(94),a=i(8).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=s?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:o.f(t)})}},function(t,e,i){"use strict";var n=i(3),r=i(18),s=i(6),o=i(0),a=i(31),l=i(50).KEY,c=i(7),u=i(71),h=i(40),f=i(27),_=i(1),p=i(94),d=i(201),m=i(200),y=i(52),v=i(12),b=i(2),g=i(9),C=i(33),w=i(32),S=i(42),A=i(93),E=i(20),k=i(8),x=i(26),L=E.f,O=k.f,R=A.f,T=n.Symbol,M=n.JSON,I=M&&M.stringify,P=_("_hidden"),D=_("toPrimitive"),B={}.propertyIsEnumerable,N=u("symbol-registry"),H=u("symbols"),F=u("op-symbols"),j=Object.prototype,W="function"==typeof T,Z=n.QObject,U=!Z||!Z.prototype||!Z.prototype.findChild,z=s&&c(function(){return 7!=S(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=L(j,e);n&&delete j[e],O(t,e,i),n&&t!==j&&O(j,e,n)}:O,V=function(t){var e=H[t]=S(T.prototype);return e._k=t,e},K=W&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},X=function(t,e,i){return t===j&&X(F,e,i),v(t),e=C(e,!0),v(i),r(H,e)?(i.enumerable?(r(t,P)&&t[P][e]&&(t[P][e]=!1),i=S(i,{enumerable:w(0,!1)})):(r(t,P)||O(t,P,w(1,{})),t[P][e]=!0),z(t,e,i)):O(t,e,i)},G=function(t,e){v(t);for(var i,n=m(e=g(e)),r=0,s=n.length;s>r;)X(t,i=n[r++],e[i]);return t},q=function(t){var e=B.call(this,t=C(t,!0));return!(this===j&&r(H,t)&&!r(F,t))&&(!(e||!r(this,t)||!r(H,t)||r(this,P)&&this[P][t])||e)},Y=function(t,e){if(t=g(t),e=C(e,!0),t!==j||!r(H,e)||r(F,e)){var i=L(t,e);return!i||!r(H,e)||r(t,P)&&t[P][e]||(i.enumerable=!0),i}},Q=function(t){for(var e,i=R(g(t)),n=[],s=0;i.length>s;)r(H,e=i[s++])||e==P||e==l||n.push(e);return n},J=function(t){for(var e,i=t===j,n=R(i?F:g(t)),s=[],o=0;n.length>o;)!r(H,e=n[o++])||i&&!r(j,e)||s.push(H[e]);return s};W||(a((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(i){this===j&&e.call(F,i),r(this,P)&&r(this[P],t)&&(this[P][t]=!1),z(this,t,w(1,i))};return s&&U&&z(j,t,{configurable:!0,set:e}),V(t)}).prototype,"toString",function(){return this._k}),E.f=Y,k.f=X,i(36).f=A.f=Q,i(37).f=q,i(49).f=J,s&&!i(28)&&a(j,"propertyIsEnumerable",q,!0),p.f=function(t){return V(_(t))}),o(o.G+o.W+o.F*!W,{Symbol:T});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)_($[tt++]);for(var et=x(_.store),it=0;et.length>it;)d(et[it++]);o(o.S+o.F*!W,"Symbol",{for:function(t){return r(N,t+="")?N[t]:N[t]=T(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),o(o.S+o.F*!W,"Object",{create:function(t,e){return void 0===e?S(t):G(S(t),e)},defineProperty:X,defineProperties:G,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Q,getOwnPropertySymbols:J}),M&&o(o.S+o.F*(!W||c(function(){var t=T();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(i=e=n[1],(b(e)||void 0!==t)&&!K(t))return y(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!K(e))return e}),n[1]=e,I.apply(M,n)}}),T.prototype[D]||i(14)(T.prototype,D,T.prototype.valueOf),h(T,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(t,e,i){i(202),i(199),i(198),i(197),i(196),i(195),i(194),i(193),i(192),i(191),i(190),i(189),i(188),i(187),i(186),i(184),i(182),i(61),i(180),i(179),i(178),i(177),i(176),i(175),i(174),i(173),i(172),i(171),i(170),t.exports=i(10).Object},function(t,e,i){"use strict";var n=i(0),r=i(95),s=i(4),o=i(5),a=i(23),l=i(64);n(n.P,"Array",{flatten:function(){var t=arguments[0],e=s(this),i=o(e.length),n=l(e,0);return r(n,e,e,i,0,void 0===t?1:a(t)),n}}),i(21)("flatten")},function(t,e,i){"use strict";var n=i(0),r=i(95),s=i(4),o=i(5),a=i(16),l=i(64);n(n.P,"Array",{flatMap:function(t){var e,i,n=s(this);return a(t),e=o(n.length),i=l(n,0),r(i,n,n,e,0,1,t,arguments[1]),i}}),i(21)("flatMap")},function(t,e,i){"use strict";var n=i(0),r=i(53)(!0);n(n.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i(21)("includes")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){i(51)("Array")},function(t,e,i){"use strict";var n=i(0),r=i(22)(6),s="findIndex",o=!0;s in[]&&Array(1)[s](function(){o=!1}),n(n.P+n.F*o,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i(21)(s)},function(t,e,i){"use strict";var n=i(0),r=i(22)(5),s=!0;"find"in[]&&Array(1).find(function(){s=!1}),n(n.P+n.F*s,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i(21)("find")},function(t,e,i){var n=i(0);n(n.P,"Array",{fill:i(63)}),i(21)("fill")},function(t,e,i){var n=i(0);n(n.P,"Array",{copyWithin:i(96)}),i(21)("copyWithin")},function(t,e,i){"use strict";var n=i(0),r=i(9),s=i(23),o=i(5),a=[].lastIndexOf,l=!!a&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(l||!i(11)(a)),"Array",{lastIndexOf:function(t){if(l)return a.apply(this,arguments)||0;var e=r(this),i=o(e.length),n=i-1;for(arguments.length>1&&(n=Math.min(n,s(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},function(t,e,i){"use strict";var n=i(0),r=i(53)(!1),s=[].indexOf,o=!!s&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(o||!i(11)(s)),"Array",{indexOf:function(t){return o?s.apply(this,arguments)||0:r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(0),r=i(97);n(n.P+n.F*!i(11)([].reduceRight,!0),"Array",{reduceRight:function(t){return r(this,t,arguments.length,arguments[1],!0)}})},function(t,e,i){"use strict";var n=i(0),r=i(97);n(n.P+n.F*!i(11)([].reduce,!0),"Array",{reduce:function(t){return r(this,t,arguments.length,arguments[1],!1)}})},function(t,e,i){"use strict";var n=i(0),r=i(22)(4);n(n.P+n.F*!i(11)([].every,!0),"Array",{every:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(0),r=i(22)(3);n(n.P+n.F*!i(11)([].some,!0),"Array",{some:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(0),r=i(22)(2);n(n.P+n.F*!i(11)([].filter,!0),"Array",{filter:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(0),r=i(22)(1);n(n.P+n.F*!i(11)([].map,!0),"Array",{map:function(t){return r(this,t,arguments[1])}})},function(t,e,i){var n=i(2),r=i(52),s=i(1)("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),n(e)&&null===(e=e[s])&&(e=void 0)),void 0===e?Array:e}},function(t,e,i){"use strict";var n=i(0),r=i(22)(0),s=i(11)([].forEach,!0);n(n.P+n.F*!s,"Array",{forEach:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(0),r=i(16),s=i(4),o=i(7),a=[].sort,l=[1,2,3];n(n.P+n.F*(o(function(){l.sort(void 0)})||!o(function(){l.sort(null)})||!i(11)(a)),"Array",{sort:function(t){return void 0===t?a.call(s(this)):a.call(s(this),r(t))}})},function(t,e,i){"use strict";var n=i(0),r=i(69),s=i(25),o=i(29),a=i(5),l=[].slice;n(n.P+n.F*i(7)(function(){r&&l.call(r)}),"Array",{slice:function(t,e){var i=a(this.length),n=s(this);if(e=void 0===e?i:e,"Array"==n)return l.call(this,t,e);for(var r=o(t,i),c=o(e,i),u=a(c-r),h=new Array(u),f=0;f<u;f++)h[f]="String"==n?this.charAt(r+f):this[r+f];return h}})},function(t,e,i){"use strict";var n=i(0),r=i(9),s=[].join;n(n.P+n.F*(i(41)!=Object||!i(11)(s)),"Array",{join:function(t){return s.call(r(this),void 0===t?",":t)}})},function(t,e,i){"use strict";var n=i(0),r=i(67);n(n.S+n.F*i(7)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,i=new("function"==typeof this?this:Array)(e);e>t;)r(i,t,arguments[t++]);return i.length=e,i}})},function(t,e,i){"use strict";var n=i(17),r=i(0),s=i(4),o=i(98),a=i(68),l=i(5),c=i(67),u=i(66);r(r.S+r.F*!i(65)(function(t){Array.from(t)}),"Array",{from:function(t){var e,i,r,h,f=s(t),_="function"==typeof this?this:Array,p=arguments.length,d=p>1?arguments[1]:void 0,m=void 0!==d,y=0,v=u(f);if(m&&(d=n(d,p>2?arguments[2]:void 0,2)),void 0==v||_==Array&&a(v))for(i=new _(e=l(f.length));e>y;y++)c(i,y,m?d(f[y],y):f[y]);else for(h=v.call(f),i=new _;!(r=h.next()).done;y++)c(i,y,m?o(h,d,[r.value,y],!0):r.value);return i.length=y,i}})},function(t,e,i){var n=i(0);n(n.S,"Array",{isArray:i(52)})},function(t,e,i){"use strict";var n=i(42),r=i(32),s=i(40),o={};i(14)(o,i(1)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(o,{next:r(1,i)}),s(t,e+" Iterator")}},function(t,e,i){var n=i(23),r=i(54);t.exports=function(t){return function(e,i){var s,o,a=String(r(e)),l=n(i),c=a.length;return l<0||l>=c?t?"":void 0:(s=a.charCodeAt(l))<55296||s>56319||l+1===c||(o=a.charCodeAt(l+1))<56320||o>57343?t?a.charAt(l):s:t?a.slice(l,l+2):o-56320+(s-55296<<10)+65536}}},function(t,e,i){i(103),i(228),i(227),i(226),i(225),i(224),i(223),i(222),i(220),i(219),i(218),i(217),i(216),i(215),i(214),i(213),i(212),i(211),i(210),i(209),i(208),i(62),i(206),i(205),i(204),t.exports=i(10).Array},,,function(t,e,i){},function(t,e,i){"use strict";i(234),i(231),i(203),i(169),i(161),i(149),i(144);var n=i(142),r=i(133).Terminal;r.applyAddon(i(106)),r.applyAddon(i(105)),r.applyAddon(i(104));var s={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 o(t){s.status.self.style.display="",s.choose.self.style.display="none",s.progress.self.style.display="",s.status.filesRemaining.textContent=t.files_remaining,s.status.bytesRemaining.textContent=u(t.bytes_remaining,2),s.progress.fileName.textContent=t.name}function a(){s.self.classList.remove("is-active")}function l(t){s.header.textContent=t,s.status.self.style.display="none",s.choose.self.style.display="none",s.progress.self.style.display="none",s.progress.bytesReceived.textContent="-",s.progress.percentReceived.textContent="-%",s.progress.progressBar.textContent="0%",s.progress.progressBar.value=0,s.progress.skip.style.display="none"}function c(t){var e=t.get_details().size,i=t.get_offset();s.progress.bytesReceived.textContent=u(i,2),s.progress.bytesFile.textContent=u(e,2);var n=(100*i/e).toFixed(2);s.progress.percentReceived.textContent=n+"%",s.progress.progressBar.textContent=n+"%",s.progress.progressBar.setAttribute("value",n)}function u(t,e){if(isNaN(parseFloat(t))||!isFinite(t))return"-";if(0===t)return 0;void 0===e&&(e=1);var i=Math.floor(Math.log(t)/Math.log(1024));return(t/Math.pow(1024,Math.floor(i))).toFixed(e)+" "+["bytes","KB","MB","GB","TB","PB"][i]}function h(t){return new Promise(function(e){var i;i=function(i){n.Browser.send_files(t,i,{on_progress:function(t,e){o(e.get_details()),c(e)},on_file_complete:function(t){}}).then(t.close.bind(t),console.error.bind(console)).then(function(){e()})},l("Sending files"),s.choose.self.style.display="",s.choose.files.disabled=!1,s.choose.files.value="",s.choose.filesNames.textContent="",s.choose.files.onchange=function(){this.disabled=!0;for(var t=this.files,e="",n=0;n<t.length;n++)0===n?e=t[n].name:e+=", "+t[n].name;s.choose.filesNames.textContent=e,i(t)},s.self.classList.add("is-active")})}function f(t){t.on("offer",function(t){!function(t){l("Receiving files"),o(t.get_details()),s.progress.skip.disabled=!1,s.progress.skip.onclick=function(){this.disabled=!0,t.skip()},s.progress.skip.style.display="",s.self.classList.add("is-active")}(t);var e=[];t.on("input",function(i){c(t),e.push(new Uint8Array(i))}),t.accept().then(function(){n.Browser.save_to_disk(e,t.get_details().name)},console.error.bind(console))});var e=new Promise(function(e){t.on("session_end",function(){e()})});return t.start(),e}var _,p,d,m,y=document.getElementById("terminal-container"),v=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname+(window.location.pathname.endsWith("/")?"":"/")+"ws",b=new TextDecoder,g=new TextEncoder,C="undefined"!=typeof tty_auth_token?tty_auth_token:null,w=-1,S=function t(){var e=new WebSocket(v,["tty"]),i=function(t){e.readyState===WebSocket.OPEN&&e.send(g.encode(t))},s=function(t){i("0"+t)},o=function(t){var e="Close terminal? this will also terminate the command.";return(t||window.event).returnValue=e,e},l=new n.Sentry({to_terminal:function(t){var e=new Uint8Array(t).buffer;p.write(b.decode(e))},sender:function(t){for(;t.length;){var i=t.splice(0,4095),n=new Uint8Array(i.length+1);n[0]="0".charCodeAt(0),n.set(i,1),e.send(n)}},on_retract:function(){},on_detect:function(t){p.setOption("disableStdin",!0);var e=t.confirm();("send"===e.type?h(e):f(e)).catch(console.error.bind(console)).then(function(){a(),p.setOption("disableStdin",!1)})}});e.binaryType="arraybuffer",e.onopen=function(t){for(console.log("Websocket connection opened"),m=!1,i(JSON.stringify({AuthToken:C})),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(t){e.readyState===WebSocket.OPEN&&i("1"+JSON.stringify({columns:t.cols,rows:t.rows})),setTimeout(function(){p.showOverlay(t.cols+"x"+t.rows)},500)}),p.on("title",function(t){t&&""!==t&&(document.title=t+" | "+d)}),p.on("data",s);y.firstChild;)y.removeChild(y.firstChild);window.addEventListener("resize",function(){clearTimeout(window.resizedFinished),window.resizedFinished=setTimeout(function(){p.fit()},250)}),window.addEventListener("beforeunload",o),p.open(y,!0),p.winptyCompatInit(),p.fit(),p.focus()},e.onmessage=function(i){var n=new Uint8Array(i.data),r=String.fromCharCode(n[0]),s=n.slice(1).buffer;switch(r){case"0":try{l.consume(s)}catch(i){console.error(i),a(),clearTimeout(_),e.readyState!==WebSocket.CLOSED&&e.close(),t()}break;case"1":d=b.decode(s),document.title=d;break;case"2":var o=JSON.parse(b.decode(s));Object.keys(o).forEach(function(t){console.log("Setting "+t+": "+o[t]),p.setOption(t,o[t])});break;case"3":w=JSON.parse(b.decode(s)),console.log("Enabling reconnect: "+w+" seconds");break;default:console.log("Unknown command: "+r)}},e.onclose=function(e){console.log("Websocket connection closed with code: "+e.code),p&&(p.off("data"),p.off("resize"),m||p.showOverlay("Connection Closed",null)),window.removeEventListener("beforeunload",o),1e3!==e.code&&w>0&&(_=setTimeout(t,1e3*w))}};"complete"===document.readyState||"loading"!==document.readyState?S():document.addEventListener("DOMContentLoaded",S)}]);</script></body></html>
\ No newline at end of file