/**
 * 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:#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.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.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}.terminal-wrapper[data-v-5d65aea2]{position:absolute;top:0;right:0;bottom:0;left:0;padding:8px;overflow:hidden}.terminal-wrapper[data-v-5d65aea2] .xterm{width:100%;height:100%}.terminal-wrapper[data-v-5d65aea2] .xterm-viewport{background-color:transparent!important}.terminal-wrapper[data-v-5d65aea2] .xterm-screen{width:100%!important}.fm[data-v-d24330ae]{display:flex;height:100%;background:#1a1a1a;color:#e0e0e0;font-size:13px;position:relative;overflow:hidden}.fm-tree[data-v-d24330ae]{width:38%;min-width:150px;max-width:240px;display:flex;flex-direction:column;border-right:1px solid #2a2a2a;flex-shrink:0;overflow:hidden}.fm-tree-header[data-v-d24330ae]{padding:5px 12px;font-size:11px;color:#666;text-transform:uppercase;letter-spacing:.5px;background:#1e1e1e;border-bottom:1px solid #2a2a2a;flex-shrink:0}.fm-tree-body[data-v-d24330ae]{flex:1;overflow-y:auto;padding:4px 0}.tree-item[data-v-d24330ae]{display:flex;align-items:center;gap:4px;padding:4px 8px;cursor:pointer;border-radius:4px;margin:1px 4px;transition:background .1s}.fm-tree[data-v-d24330ae]{width:42%;min-width:160px;max-width:260px;display:flex;flex-direction:column;border-right:1px solid #2a2a2a;flex-shrink:0;overflow:hidden}.fm-tree-header[data-v-d24330ae]{padding:5px 12px;font-size:11px;color:#555;text-transform:uppercase;letter-spacing:.5px;background:#1e1e1e;border-bottom:1px solid #2a2a2a;flex-shrink:0}.fm-tree-body[data-v-d24330ae]{flex:1;overflow-y:auto;padding:2px 0}.tree-node[data-v-d24330ae]{-webkit-user-select:none;user-select:none}.tree-item[data-v-d24330ae]{display:flex;align-items:center;height:24px;padding-right:8px;cursor:pointer;transition:background .1s}.tree-item[data-v-d24330ae]:hover{background:#252525}.tree-item.active[data-v-d24330ae]{background:#1e3a5f}.tree-item.active .tree-name[data-v-d24330ae]{color:#4a9eff}.tree-arrow[data-v-d24330ae]{width:20px;height:24px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:9px;color:#777}.tree-item.active .tree-arrow[data-v-d24330ae]{color:#4a9eff}.tree-icon[data-v-d24330ae]{font-size:14px;flex-shrink:0;margin-right:5px}.tree-name[data-v-d24330ae]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#ccc}.tree-spin[data-v-d24330ae]{width:9px;height:9px;border:1px solid #333;border-top-color:#4a9eff;border-radius:50%;animation:spin-d24330ae .7s linear infinite;flex-shrink:0;margin-left:4px}.tree-children[data-v-d24330ae]{padding-left:0}.fm-detail[data-v-d24330ae]{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;min-width:0}.fm-toolbar[data-v-d24330ae]{display:flex;align-items:center;gap:4px;padding:3px 8px;background:#1e1e1e;border-bottom:1px solid #2a2a2a;flex-shrink:0}.breadcrumb[data-v-d24330ae]{flex:1;display:flex;align-items:center;gap:2px;overflow:hidden;min-width:0}.crumb[data-v-d24330ae]{color:#4a9eff;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crumb[data-v-d24330ae]:hover{text-decoration:underline}.sep[data-v-d24330ae]{color:#444;flex-shrink:0}.icon-btn[data-v-d24330ae]{width:22px;height:22px;background:transparent;border:1px solid transparent;border-radius:3px;color:#777;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .15s}.icon-btn[data-v-d24330ae]:hover{color:#ccc;border-color:#444}.fm-list-header[data-v-d24330ae]{display:flex;align-items:center;padding:2px 8px;background:#1a1a1a;border-bottom:1px solid #222;color:#444;font-size:11px;flex-shrink:0}.fm-list-body[data-v-d24330ae]{flex:1;overflow-y:auto}.fm-item[data-v-d24330ae]{display:flex;align-items:center;padding:3px 8px;cursor:pointer;border-bottom:1px solid #1e1e1e;transition:background .1s}.fm-item[data-v-d24330ae]:hover{background:#222}.col-icon[data-v-d24330ae]{width:20px;flex-shrink:0;font-size:12px}.col-name[data-v-d24330ae]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.col-size[data-v-d24330ae]{width:64px;text-align:right;color:#777;flex-shrink:0}.col-time[data-v-d24330ae]{width:96px;text-align:right;color:#555;flex-shrink:0}.fm-tip[data-v-d24330ae]{padding:12px;text-align:center;color:#444;display:flex;align-items:center;justify-content:center}.fm-tip.error[data-v-d24330ae]{color:#f44336}.spinner[data-v-d24330ae]{width:18px;height:18px;border:2px solid #2a2a2a;border-top-color:#4a9eff;border-radius:50%;animation:spin-d24330ae .7s linear infinite}@keyframes spin-d24330ae{to{transform:rotate(360deg)}}.drag-over[data-v-d24330ae]{outline:2px dashed #4a9eff;outline-offset:-2px}.drag-mask[data-v-d24330ae]{position:absolute;top:0;right:0;bottom:0;left:0;background:#4a9eff14;display:flex;align-items:center;justify-content:center;font-size:13px;color:#4a9eff;pointer-events:none}.upload-progress[data-v-d24330ae]{border-top:1px solid #222;background:#1a1a1a;max-height:80px;overflow-y:auto;flex-shrink:0}.upload-item[data-v-d24330ae]{display:flex;align-items:center;gap:6px;padding:3px 8px}.upload-name[data-v-d24330ae]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.progress-bar[data-v-d24330ae]{width:60px;height:2px;background:#2a2a2a;border-radius:1px;flex-shrink:0}.progress-fill[data-v-d24330ae]{height:100%;background:#4a9eff;border-radius:1px;transition:width .2s}.upload-status[data-v-d24330ae]{width:30px;font-size:11px;color:#666;flex-shrink:0}.context-menu[data-v-d24330ae]{position:fixed;z-index:9999;background:#252525;border:1px solid #444;border-radius:5px;padding:3px 0;box-shadow:0 4px 12px #00000080;min-width:100px}.ctx-item[data-v-d24330ae]{padding:6px 14px;cursor:pointer;font-size:13px;transition:background .1s}.ctx-item[data-v-d24330ae]:hover{background:#333}.ctx-item.danger[data-v-d24330ae]{color:#f44336}*{box-sizing:border-box;margin:0;padding:0}#app{display:flex;flex-direction:column;height:100vh;background-color:#1a1a1a;color:#e0e0e0;font-family:Segoe UI,sans-serif}.header{background-color:#2a2a2a;padding:0 20px;border-bottom:1px solid #444;display:flex;align-items:center;gap:20px;height:50px;flex-shrink:0}.header h1{font-size:16px;font-weight:600;white-space:nowrap}.tabs{display:flex;gap:4px}.tab{padding:6px 16px;background:transparent;border:1px solid #555;border-radius:4px;color:#aaa;cursor:pointer;font-size:13px;transition:all .2s}.tab:hover{border-color:#888;color:#ddd}.tab.active{background:#4a9eff;border-color:#4a9eff;color:#fff}.connection-info{font-size:13px;color:#888;margin-left:auto}.settings-panel{flex:1;overflow-y:auto;display:flex;justify-content:center;padding:40px 20px}.settings-form{width:100%;max-width:520px}.settings-form h2{font-size:18px;font-weight:500;margin-bottom:24px;color:#ddd}.form-row{display:flex;gap:12px}.form-row .form-group{flex:1}.form-row .port-group{flex:0 0 100px}.form-group{display:flex;flex-direction:column;margin-bottom:16px}.form-group label{font-size:13px;color:#aaa;margin-bottom:6px}.form-group input,.form-group textarea{background:#2a2a2a;border:1px solid #444;border-radius:6px;color:#e0e0e0;padding:8px 12px;font-size:14px;outline:none;transition:border-color .2s;resize:vertical}.form-group input:focus,.form-group textarea:focus{border-color:#4a9eff}.auth-tabs{display:flex;gap:8px;margin-bottom:16px}.auth-tab{padding:6px 16px;background:#2a2a2a;border:1px solid #444;border-radius:4px;color:#aaa;cursor:pointer;font-size:13px;transition:all .2s}.auth-tab:hover{border-color:#888;color:#ddd}.auth-tab.active{background:#1e3a5f;border-color:#4a9eff;color:#4a9eff}.form-error{color:#f44336;font-size:13px;margin-bottom:12px}.connect-btn{width:100%;padding:10px;background:#4a9eff;border:none;border-radius:6px;color:#fff;font-size:15px;cursor:pointer;transition:background .2s}.connect-btn:hover{background:#3a8eef}.main-area{flex:1;display:flex;overflow:hidden}.split-pane{flex:1;display:flex;flex-direction:column;overflow:hidden}.terminal-container{flex:1;overflow:hidden;background-color:#000;position:relative;min-height:0}.file-panel-container{height:260px;flex-shrink:0;overflow:hidden;border-top:2px solid #3a3a3a}.sidebar{width:40px;background:#2a2a2a;border-left:1px solid #444;display:flex;flex-direction:column;align-items:center;padding-top:8px;flex-shrink:0}.sidebar-btn{width:32px;height:32px;background:transparent;border:1px solid transparent;border-radius:6px;color:#888;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.sidebar-btn:hover{color:#ddd;border-color:#555}.sidebar-btn.active{color:#4a9eff;border-color:#4a9eff;background:#1e3a5f}.status-bar{padding:0 16px;height:26px;font-size:12px;border-top:1px solid #333;background-color:#1e1e1e;flex-shrink:0;display:flex;align-items:center;gap:6px;color:#666}.status-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;background:currentColor}.status-text{flex:1}.status-bar.connected{color:#4caf50;border-top-color:#2a3a2a}.status-bar.connecting{color:#ff9800;border-top-color:#3a2e1a}.status-bar.disconnected{color:#555;border-top-color:#2a2a2a}.status-bar.error{color:#f44336;border-top-color:#3a1a1a}.reconnect-btn{display:flex;align-items:center;gap:4px;padding:2px 8px;height:18px;background:transparent;border:1px solid currentColor;border-radius:3px;color:inherit;opacity:.7;font-size:11px;cursor:pointer;transition:opacity .15s;flex-shrink:0}.reconnect-btn:hover{opacity:1}
