/**
 * 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:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;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{--ha-bg-base: #0f172a;--ha-bg-surface: #1e293b;--ha-bg-elevated: #334155;--ha-text-primary: #ffffff;--ha-text-body: #cbd5e1;--ha-text-muted: #94a3b8;--ha-text-disabled: #64748b;--ha-accent-blue: #3b82f6;--ha-accent-emerald: #34d399;--ha-accent-red: #ef4444;--ha-accent-amber: #f59e0b;--ha-danger: #ef4444;--ha-warn: #f59e0b;--ha-border: #334155}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;background-color:var(--ha-bg-base);color:var(--ha-text-body);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}a{color:var(--ha-accent-blue)}h1,h2,h3,h4{color:var(--ha-text-primary)}.btn-primary{background-color:var(--ha-accent-blue);color:var(--ha-text-primary);padding:.5rem 1.25rem;border-radius:.375rem;font-weight:500;border:none;cursor:pointer;display:inline-block;text-decoration:none;font-size:.9rem}.btn-primary:hover:not(:disabled){filter:brightness(1.1)}.btn-primary:disabled{opacity:.6;cursor:default}.btn-ghost{background:transparent;color:var(--ha-text-muted);padding:.5rem 1rem;border-radius:.375rem;border:1px solid var(--ha-border);cursor:pointer;display:inline-block;text-decoration:none;font-size:.9rem}.btn-ghost:hover:not(:disabled){border-color:var(--ha-text-muted);color:var(--ha-text-primary)}.btn-ghost:disabled{color:var(--ha-text-disabled);cursor:not-allowed}.btn-sm{padding:.15rem .5rem;font-size:.75rem}.btn-danger{color:var(--ha-accent-red);border-color:var(--ha-accent-red)}.card{background-color:var(--ha-bg-surface);border:1px solid var(--ha-border);border-radius:.5rem;padding:1.5rem}.form-input{background-color:var(--ha-bg-elevated);border:1px solid var(--ha-border);border-radius:.375rem;color:var(--ha-text-primary);padding:.5rem .75rem;width:100%;font-family:inherit;font-size:.9rem}.form-input:focus{outline:none;border-color:var(--ha-accent-blue);box-shadow:0 0 0 2px #3b82f640}textarea.form-input{resize:vertical}.form-label{display:block;font-size:.8rem;color:var(--ha-text-muted);margin-bottom:.25rem}.alert-error{background-color:#ef444426;border:1px solid var(--ha-danger);color:#fca5a5;border-radius:.375rem;padding:.75rem 1rem}.alert-warn{background-color:#f59e0b26;border:1px solid var(--ha-warn);color:#fcd34d;border-radius:.375rem;padding:.75rem 1rem}.alert-success{background-color:#34d39926;border:1px solid var(--ha-accent-emerald);color:#6ee7b7;border-radius:.375rem;padding:.75rem 1rem}.tab-btn{background:transparent;color:var(--ha-text-muted);padding:.5rem 1rem;border:none;border-bottom:2px solid transparent;cursor:pointer;font-size:.9rem;font-family:inherit}.tab-btn:hover:not(:disabled){color:var(--ha-text-primary)}.tab-btn-active{color:var(--ha-text-primary);border-bottom-color:var(--ha-accent-blue)}.tab-btn:disabled{color:var(--ha-text-disabled);cursor:not-allowed}.pill{display:inline-block;padding:.1rem .5rem;border-radius:9999px;font-size:.7rem;font-weight:600;letter-spacing:.03em;border:1px solid var(--ha-border);color:var(--ha-text-muted);text-decoration:none;white-space:nowrap}.pill-emerald{border-color:var(--ha-accent-emerald);color:var(--ha-accent-emerald)}.pill-red{border-color:var(--ha-accent-red);color:var(--ha-accent-red)}.pill-muted{border-color:var(--ha-border);color:var(--ha-text-muted)}table.data{width:100%;border-collapse:collapse;font-size:.8rem}table.data thead tr{color:var(--ha-text-muted);border-bottom:1px solid var(--ha-border)}table.data th{text-align:left;padding:.5rem .4rem;font-weight:600}table.data tbody tr{border-bottom:1px solid var(--ha-border)}table.data td{padding:.4rem;vertical-align:middle}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.muted{color:var(--ha-text-muted)}.scroll-x{overflow-x:auto}pre.output{background:var(--ha-bg-base);border:1px solid var(--ha-border);border-radius:.375rem;padding:.75rem;max-height:24rem;overflow:auto;font-size:.75rem;color:var(--ha-text-body);white-space:pre-wrap;word-break:break-word}
