/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;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:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#0004;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;inset: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.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}:root{--terminal-font-family: "Fira Code", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace;--terminal-font-size: 16px;--terminal-line-height: 1.2;color:#fff}html{height:100%;width:100%}body{display:flex;flex-direction:column;height:100%;margin:0;padding:0;font-family:var(--terminal-font-family)}.app{flex-direction:column;justify-content:flex-end;margin:10px}.parallax-background{position:relative;overflow:hidden;height:100px}.parallax-layer{position:absolute;height:100px;width:100%}.chord-navigation{img{display:block;width:40px;height:40px;margin:5px}&:after{content:"";display:table;clear:both}}.phrase-names{text-align:left}#root{flex:1}.phrase-name{display:inline-block;width:auto;margin:0 10px 10px 0}.key-container{float:left;flex-direction:column;align-items:left;text-align:left;margin-bottom:15px}.key-container label{line-height:.6em;vertical-align:text-top}.log-line{line-height:var(--terminal-line-height)}.log-line span{background-color:#0007}.log-time{color:gray;font-weight:100}.log-hour{color:#0ff;font-weight:100}.log-minute{color:#ff09;font-weight:700}.log-second{color:green;font-weight:100}.log-prefix{color:gray}#output-container .response{display:inline-block;background-color:#0007;padding-right:10px;line-height:var(--terminal-line-height)}.command-list{font-family:var(--terminal-font-family);white-space:pre;line-height:var(--terminal-line-height)}.command-list .cmd-name{color:#0ff;font-weight:700}.command-list .cmd-desc{color:#aaa}.repo-list-table{font-family:var(--terminal-font-family);line-height:var(--terminal-line-height);border-collapse:collapse}.repo-list-table td{padding:0}.repo-list-table .repo-name{color:green;font-weight:700;padding-right:1em;white-space:nowrap}.repo-list-table .repo-desc{color:#aaa}.terminal-nav{color:#fff;background-color:#000;font-weight:700;flex-shrink:1;padding:0 10px;line-height:2em}pre#next-chars{padding:0;margin:0;color:#90ee90;font-weight:700;font-size:var(--terminal-font-size);line-height:var(--terminal-line-height);white-space:pre-wrap;word-break:break-word;font-family:var(--terminal-font-family);flex:1}video#terminal-video{position:fixed;top:0;left:0;width:100vw;height:100vh;height:100dvh;object-fit:cover;margin:0;padding:0;z-index:-1;pointer-events:none}div.terminal{background-color:#0000;z-index:10}.chord-image-holder .char,#chord-image-holder .char{font-size:var(--terminal-font-size);font-family:var(--terminal-font-family)}#timer-root{color:#fff;display:inline-flex;align-items:center;flex-shrink:0}.wpm-table-row .number{color:#90ee90;text-align:right}.terminal{background-color:#0003;z-index:10;color:#fff;display:flex;height:100%;width:100%;padding:0;margin:0;flex-direction:column;.prompt{color:#20b2aa;.domain{color:#bdb76b}.user{color:#f0f}}}pre#prompt{margin:0;font-size:var(--terminal-font-size);font-family:var(--terminal-font-family);font-weight:600;color:#90ee90;clear:both;.user{color:#f0f}.domain{color:#ff0}.github{color:#0ff}}.hidden-canvas{visibility:hidden;position:absolute;left:-9999px}#output-container{padding:1opx 0 0;z-index:100;background-color:#0000;font-size:var(--terminal-font-size)}#terminal-game{background-color:#0007}.game-fail-badge{position:absolute;top:10px;right:16px;z-index:10;display:flex;align-items:center;gap:6px;padding:4px 10px;border-radius:6px;background-color:#000000b3;color:#ff6b6b;font-family:monospace;font-size:14px;font-weight:700;border:1px solid rgba(255,107,107,.4);box-shadow:0 2px 8px #00000080;user-select:none}.ta-active{color:#51cf66;font-weight:700}.ta-pending{color:#ffd43b;font-weight:700}.ta-pri{color:#22b8cf}.ta-date{color:#868e96}.ta-blocked{color:#ffd43b}.ta-tree{color:#22b8cf;opacity:.8}.ta-header{color:#adb5bd;font-weight:700}.ta-slug{color:inherit}.ta-task-list{font-family:monospace;white-space:pre-wrap;line-height:1.5}#next-chars{background-color:#0007;display:flex;align-items:flex-start;padding:2px 4px;#timer-root{margin-right:1ch}#next-chars-rate:empty,#wpm:empty{display:none}#next-chars-rate:not(:empty),#wpm:not(:empty){margin-right:1ch}pre#next-chars{background-color:transparent;padding:0;margin:0}}.next-chars-cursor,.next-char-highlight{display:inline-block;min-width:1ch;background-color:transparent;border:1.5px solid rgba(255,255,0,.75);box-shadow:0 0 3px #ff06;box-sizing:border-box;margin:-1.5px 0;color:inherit;font-weight:700;border-radius:2px;text-align:center;white-space:pre}@media (max-width: 600px){.next-chars-cursor,.next-char-highlight{background-color:#ff03;border:2px solid #ffff00;border-bottom:5px solid #ffff00;box-shadow:0 0 8px #ff0,0 3px 6px #ffff00d9;margin:-2px 0 -3px;border-radius:2px 2px 1px 1px}}#terminal-output div{z-index:1000}#footer{padding:0 0 15 0;div{float:left;padding:20px 0 0 30px;font-size:var(--terminal-font-size);line-height:var(--terminal-line-height);text-align:center;a{color:#0ff}}img{width:170px;float:right;padding:0 15px 15px 0}}.wpm{color:#ff0;font-weight:700;padding:0 5px}.wpm-label{color:#0ff}@media (max-width: 600px){body{padding-left:2px}.scrolling-text{animation:scrollText 1s linear infinite}#footer{div{font-size:var(--terminal-font-size)}img{width:120px}}}.terminal-line{display:flex;align-items:flex-start}.prompt-tail-container{margin-right:4px}.terminal-prompt.tail{align-self:top}.terminal-input{flex:1;background:none;border:none;color:#ff0;caret-color:#ffffe0;white-space:pre-wrap;overflow-y:hidden;padding:0;vertical-align:top}.terminal-input:focus{outline:none}.terminal-line:not(.first-line){display:flex;align-items:center}.terminal .domain{color:#bdb76b}.terminal-progress-bar{background-color:#00008b}@keyframes scrollText{0%{transform:translate(100%)}to{transform:translate(-100%)}}.scrolling-text{animation:scrollText 5s linear infinite;color:#90ee90;font:italic 60px Arial}.chord-display-container{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;flex-wrap:wrap}.tutorial-component pre{color:#ffa07a;font-size:var(--terminal-font-size)}.tutorial-component pre{white-space:pre-wrap;word-break:break-word;font-family:var(--terminal-font-family)}.CodeMirror div.CodeMirror-cursors{visibility:visible!important}.vim-status-bar{opacity:.9;background:transparent}.vim-status-bar span,.vim-status-bar input{background-color:#0007;display:inline-block;padding:1px 6px;border-radius:2px}div.cm-content{background-color:#0007}div.monaco-editor-container{background:#0000}div.monaco-editor-container>section{background:#0000}div.monaco-editor-container>section>div{background:#0000}div.monaco-editor-container>section>div>div{background:#0000}div.monaco-editor-container>section>div>div>div.overflow-guard{background:#0000}div.view-line{background:#0000}div.view-line>span{background:#0007;display:inline-block}.monaco-editor .line-numbers{background-color:#0007}.monaco-editor .cursors-layer{opacity:1!important}.monaco-editor .cursors-layer>.cursor{visibility:visible!important;opacity:1!important;display:block!important;background-color:#0ff!important;color:#000!important;border:1px solid #ffffff!important;box-shadow:0 0 10px #00ffffe6,0 0 3px #fff!important;border-radius:1px}.monaco-editor .current-line{background-color:#00ffff1f!important;border:1px solid rgba(0,255,255,.35)!important;border-left:3px solid #00ffff!important;box-sizing:border-box}div.monaco-editor-container>section>div>div>div.overflow-guard>div.margin{background:#0000}div.monaco-editor-container>section>div>div>div.overflow-guard>div.minimap.slider-mouseover>canvas.minimap-decorations-layer{background:#0000}pre#prompt-header{margin:0;padding:0;font-size:var(--terminal-font-size);line-height:var(--terminal-line-height);font-family:var(--terminal-font-family);background:transparent}pre#prompt-header span{background-color:#0007;display:inline-block;padding:0 4px;border-radius:2px}pre#prompt-header .timestamp{padding-right:10px;opacity:.5}.monaco-editor.hasFocus,.monaco-editor{outline:none!important;border:none!important;box-shadow:none!important}div.monaco-editor-container{padding:0!important;margin:0!important}@media (max-width: 600px){.app{margin:5px}}.vimtut-header-container,.vim-guide{font-family:var(--terminal-font-family);font-size:var(--terminal-font-size);line-height:var(--terminal-line-height);color:#f4f4f5;background-color:transparent;padding:4px 0 6px;border:none;margin-bottom:4px;display:flex;flex-direction:column;gap:4px;user-select:none}.vimtut-header-top,.vim-guide-header{display:flex;justify-content:space-between;align-items:center;font-family:inherit;font-size:inherit;line-height:inherit;flex-wrap:wrap;gap:8px}.vimtut-header-title-badge,.vim-guide-title-group{display:flex;align-items:baseline;gap:8px;font-family:inherit;font-size:inherit;line-height:inherit}.vimtut-badge,.vim-guide-step-tag{color:#38bdf8;font-weight:700;font-family:inherit;font-size:inherit;line-height:inherit}.vimtut-header-title,.vim-guide-title{font-size:inherit;font-weight:600;color:#ffd43bb3;margin:0;font-family:inherit;line-height:inherit}.vimtut-instruction-box,.vim-guide-instruction{color:#e4e4e7;font-family:inherit;font-size:inherit;line-height:inherit;padding:2px 0}.vimtut-controls,.vim-guide-commands{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-family:inherit;font-size:inherit;line-height:inherit;color:#9ca3af}.vimtut-btn,.vim-guide-cmd{background:none;border:none;border-radius:0;padding:0;margin:0;color:#38bdf8;font-family:inherit;font-size:inherit;line-height:inherit;font-weight:500;cursor:pointer;text-decoration:none;box-shadow:none;transition:color .15s ease}.vimtut-btn:hover,.vim-guide-cmd:hover{background:none;color:#7dd3fc;text-decoration:underline}.vimtut-btn:active,.vim-guide-cmd:active{color:#bae6fd}.vimtut-accomplishment-banner{display:flex;align-items:baseline;gap:8px;color:#4ade80;background-color:transparent;border:none;padding:2px 0;font-family:inherit;font-size:inherit;line-height:inherit}.vimtut-accomplishment-check,.vimtut-accomplishment-label{color:#22c55e;font-weight:700}.vimtut-accomplishment-title{color:#86efac;font-weight:600}.vimtut-accomplishment-msg{color:#bbf7d0}.vimtut-success-banner{display:flex;align-items:baseline;gap:8px;color:#4ade80;background-color:#22c55e1f;border-left:3px solid #22c55e;padding:4px 8px;border-radius:2px;font-size:inherit;font-family:inherit;margin:2px 0}.vimtut-success-check{color:#22c55e;font-weight:700}.vimtut-autoadvance-indicator{color:#86efac;font-style:italic;font-size:.9em}.vimtut-success-highlight-line{background-color:#22c55e38!important;border-left:3px solid #22c55e!important}.vimtut-success-highlight-text{color:#86efac!important;font-weight:700!important}.vimtut-accomplished-entry{font-family:var(--terminal-font-family);font-size:var(--terminal-font-size);line-height:var(--terminal-line-height);color:#4ade80;padding:2px 0}.vimtut-accomplished-entry .vimtut-check{color:#22c55e;font-weight:700}.vimtut-accomplished-entry .vimtut-step-id{color:#38bdf8;font-weight:600}.vimtut-accomplished-entry .vimtut-step-title{color:#86efac;font-weight:600}.vimtut-accomplished-entry .vimtut-step-msg{color:#bbf7d0;margin-left:16px}.intro-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;color:#fff;font-family:var(--terminal-font-family);font-size:var(--terminal-font-size);line-height:var(--terminal-line-height);z-index:10}.intro-text p{margin:calc(var(--terminal-line-height) * 1em) 0 0}.intro-title{font-weight:700}.browse-view{display:flex;flex-direction:column;height:100%;width:100%;outline:none;color:#fff;font-family:var(--terminal-font-family);font-size:var(--terminal-font-size);background:transparent}.browse-hint{flex:0 0 auto;padding:4px 8px;color:#aaa;font-family:inherit;font-size:inherit;background:transparent;border-bottom:1px solid rgba(255,255,255,.08)}.browse-hint span{background-color:#0007;display:inline-block;padding:1px 6px;border-radius:2px}.browse-blank-line{height:1.2em;flex:0 0 auto;background:transparent}.browse-columns{display:flex;flex:1 1 auto;min-height:0;background:transparent}.browse-col{flex:1 1 0;overflow-y:auto;border-right:1px solid rgba(255,255,255,.08);min-width:0;display:flex;flex-direction:column;background:transparent}.browse-col:last-child{border-right:none}.browse-col.current{max-height:175px}.browse-col-path{position:sticky;top:0;z-index:2;flex:0 0 auto;color:#0ff;font-weight:700;padding:3px 8px;background:transparent;border-bottom:1px solid rgba(255,255,255,.08);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:inherit;font-size:inherit}.browse-col-path span{background-color:#0007;display:inline-block;padding:2px 6px;border-radius:2px}.browse-row{display:flex;gap:8px;padding:2px 8px;cursor:default;white-space:nowrap;height:24px;box-sizing:border-box;align-items:center;background:transparent}.browse-row span{background-color:#0007;display:inline-block;padding:1px 4px;border-radius:2px}.browse-row.selected span{background-color:#2a4a6add}.browse-row.message{opacity:.85;font-style:italic}.browse-empty{padding:8px;opacity:.8;background:transparent}.browse-empty span{background-color:#0007;display:inline-block;padding:2px 6px;border-radius:2px}.browse-empty.browse-loading{opacity:.9;color:#88c0d0}.browse-spinner{display:inline-block;color:#88c0d0;font-weight:700}.browse-spinner-tag{color:#88c0d0;font-weight:700;margin-right:4px}.browse-preview-col{padding:8px 12px;overflow:auto;line-height:1.4;background:transparent;min-height:200px}.browse-preview-content{margin:0;font-family:inherit;font-size:inherit;white-space:pre-wrap;word-break:break-word;background-color:#0007;display:inline-block;min-width:0;max-width:100%;padding:6px 10px;border-radius:4px;box-sizing:border-box}.browse-preview-content mark{background:#ebcb8b;color:#000;padding:1px 2px;border-radius:2px}.browse-preview-content .token.comment,.browse-preview-content .token.prolog,.browse-preview-content .token.doctype,.browse-preview-content .token.cdata{color:#6272a4;font-style:italic}.browse-preview-content .token.punctuation{color:#f8f8f2}.browse-preview-content .token.property,.browse-preview-content .token.tag,.browse-preview-content .token.boolean,.browse-preview-content .token.number,.browse-preview-content .token.constant,.browse-preview-content .token.symbol{color:#bd93f9}.browse-preview-content .token.selector,.browse-preview-content .token.attr-name,.browse-preview-content .token.string,.browse-preview-content .token.char,.browse-preview-content .token.builtin{color:#50fa7b}.browse-preview-content .token.operator,.browse-preview-content .token.entity,.browse-preview-content .token.url{color:#f1fa8c}.browse-preview-content .token.atrule,.browse-preview-content .token.attr-value,.browse-preview-content .token.keyword{color:#ff79c6;font-weight:700}.browse-preview-content .token.function,.browse-preview-content .token.class-name{color:#8be9fd}.browse-preview-content .token.regex,.browse-preview-content .token.important,.browse-preview-content .token.variable{color:#ffb86c}.browse-preview-empty{color:#a0aec0;font-style:italic;padding:8px 0;background:transparent}.browse-preview-empty span{background-color:#0007;display:inline-block;padding:2px 6px;border-radius:2px}.browse-prompt-bar{display:flex;align-items:center;gap:8px;padding:4px 12px;background:transparent;border-top:1px solid rgba(255,255,255,.08)}.browse-prompt-label{color:#88c0d0;font-weight:700;background-color:#0007;display:inline-block;padding:2px 6px;border-radius:2px}.browse-prompt-input{background-color:#0007;border:1px solid #88c0d0;border-radius:2px;color:#fff;font-family:inherit;font-size:inherit;outline:none;padding:2px 6px;min-width:200px}@media (max-width: 600px){.browse-col.parent{display:none}.browse-columns{flex-direction:column}.browse-col.current{flex:0 0 auto;max-height:175px;border-right:none;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:.5em}.browse-col.child{flex:1 1 auto;min-height:200px;border-right:none;border-left:none}}
