/**
 * 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;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.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{font-family:monospace;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.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}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}:root{color-scheme:dark;--bg: #050505;--raised: #0d0d0d;--line: rgba(255, 255, 255, .1);--line-strong: rgba(255, 255, 255, .2);--text: #f0f0f0;--muted: rgba(240, 240, 240, .62);--faint: rgba(240, 240, 240, .42);--gold: oklch(.879 .169 91.6);--mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;font-family:Inter,Inter Tight,system-ui,sans-serif;font-weight:300;color:var(--text);background:var(--bg)}*{box-sizing:border-box}html,body{margin:0;background:var(--bg)}body{min-height:100dvh}em{font-family:Playfair Display,Georgia,serif;font-style:italic;font-weight:400}p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}a{color:var(--text)}code{font-family:var(--mono);font-size:.92em}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.app{display:flex;flex-direction:column;height:100dvh;min-height:560px}.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid var(--line);min-width:0}.bar-left,.bar-right{display:flex;align-items:center;gap:12px;min-width:0}.bar-right{flex:none;gap:8px}.brand{text-decoration:none;white-space:nowrap;font-size:15px;letter-spacing:-.01em}.mode{position:relative;flex:none}.mode:after{content:"\25be";position:absolute;right:11px;top:50%;transform:translateY(-52%);pointer-events:none;font-size:11px;color:var(--muted)}.mode select{appearance:none;background:#ffffff0a;color:var(--text);border:1px solid var(--line-strong);border-radius:8px;padding:7px 28px 7px 11px;font:500 12px/1.2 var(--mono);letter-spacing:.04em;text-transform:uppercase;cursor:pointer;min-height:34px}.mode select:hover{border-color:#ffffff59}.desc{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}button{font:inherit;color:inherit;cursor:pointer}.pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;background:#fff;color:#000;padding:8px 16px;min-height:36px;font:500 13px/1.2 Inter,system-ui,sans-serif;white-space:nowrap;transition:opacity .15s,transform .15s}.pill:hover{opacity:.88}.pill img{border-radius:50%;flex:none}.pill:disabled{opacity:.5;cursor:wait}.esc{display:none;align-items:center;gap:6px;border:1px solid var(--line-strong);border-radius:8px;background:transparent;color:var(--muted);padding:6px 9px;min-height:36px;font-size:16px;line-height:1}.esc:hover{color:var(--text);border-color:#ffffff59}.esc kbd{font:500 11px/1 var(--mono);letter-spacing:.04em}body.embed .esc{display:inline-flex}body.embed .brand,body.embed .note{display:none}.split{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)}.pane{min-width:0;min-height:0;display:flex;flex-direction:column}.left{border-right:1px solid var(--line)}.terminal-frame{flex:1;min-height:0;display:flex;flex-direction:column;background:#000}.terminal-frame[hidden],.search-form[hidden]{display:none}#terminal{flex:1;min-height:240px;min-width:0;padding:14px 12px}.terminal-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;padding:8px 14px;font-size:12px;color:var(--faint);flex-wrap:wrap}#examples{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px;border-top:1px solid var(--line)}#examples button{border:1px solid var(--line-strong);border-radius:999px;background:#ffffff0a;padding:7px 13px;min-height:36px;font:400 12px/1.3 Inter,system-ui,sans-serif;transition:background .15s,border-color .15s}#examples button:hover{background:#ffffff1a;border-color:#ffffff59}#examples button:disabled{opacity:.5;cursor:wait}.search-form{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:14px;padding:22px 18px}.search-form>*{width:100%;max-width:560px}.search-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted);letter-spacing:.02em;min-width:0}.search-form .row label{flex:1 1 140px}.search-form input,.search-form select{width:100%;background:#000;color:var(--text);border:1px solid var(--line-strong);border-radius:10px;padding:10px 12px;font:300 15px/1.3 Inter,system-ui,sans-serif;min-height:42px}.search-form input:focus,.search-form select:focus{border-color:#ffffff73;outline:none}.search-form .row{display:flex;gap:12px;flex-wrap:wrap}.form-actions{align-items:center}#form-status{font-size:12px;color:var(--faint)}.form-cmd{font-size:12px;color:var(--faint);overflow-wrap:anywhere}.form-cmd code{color:var(--text)}.results{background:var(--raised)}.results-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:14px 16px 12px;border-bottom:1px solid var(--line);flex-wrap:wrap}.results-head>div:first-child{min-width:0;flex:1 1 200px}#r-title{margin:0 0 4px;font-size:15px;font-weight:400;overflow-wrap:anywhere}#r-title .tool{font-family:var(--mono);font-size:13px;color:var(--gold)}#r-title .q{color:var(--text)}.meta{font-size:12px;color:var(--faint)}.tabs{display:inline-flex;border:1px solid var(--line-strong);border-radius:999px;padding:2px;flex:none}.tabs [role=tab]{border:0;background:transparent;color:var(--muted);border-radius:999px;padding:5px 13px;font-size:12px;min-height:30px}.tabs [role=tab][aria-selected=true]{background:#fff;color:#000}.results-body{flex:1;min-height:0;overflow:auto;padding:16px;margin:0}.results-body[hidden]{display:none}.results-body[aria-busy=true]{opacity:.55}.json{font:12px/1.55 var(--mono);color:#d8d8d8;white-space:pre-wrap;overflow-wrap:anywhere}.empty{color:var(--faint);font-size:13px}.error strong{display:block;font-family:var(--mono);font-weight:500;color:var(--text);margin-bottom:4px}.fine{font-size:12px;color:var(--faint);margin-top:12px}.section-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--faint);margin-bottom:10px}.stack{display:flex;flex-direction:column;gap:14px;align-items:flex-start}.stack>*{max-width:100%}.cards{display:grid;gap:10px}.card{display:flex;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#000;min-width:0}.card-media{flex:none;width:76px;height:76px;border-radius:8px;overflow:hidden;background:#111}.card-media img{width:100%;height:100%;object-fit:cover;display:block}.card-body{min-width:0;display:flex;flex-direction:column;gap:5px}.card-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.card-name{font-size:15px;font-weight:400;color:var(--text);text-decoration:none;overflow-wrap:anywhere}a.card-name:hover{text-decoration:underline;text-underline-offset:3px}.card-meta{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.badge{font-size:11px;border:1px solid color-mix(in oklch,var(--gold) 55%,transparent);color:var(--gold);border-radius:999px;padding:2px 8px;white-space:nowrap}.badge.muted{border-color:var(--line-strong);color:var(--muted)}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{font-size:11px;border:1px solid var(--line-strong);border-radius:999px;padding:2px 8px;color:var(--muted)}.numbered{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px;color:var(--faint)}.num{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border:1px solid var(--line-strong);border-radius:6px;font:11px var(--mono);text-decoration:none}.link{font-size:13px;text-underline-offset:3px}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}.gallery figure{margin:0;border-radius:10px;overflow:hidden;background:#000;border:1px solid var(--line)}.gallery img{width:100%;aspect-ratio:1;object-fit:cover;display:block}.gallery figcaption{font-size:11px;color:var(--faint);padding:6px 8px;overflow-wrap:anywhere}.tile{display:grid;place-items:center;aspect-ratio:1;border:1px solid var(--line-strong);border-radius:10px;font:12px var(--mono);color:var(--muted);text-decoration:none}.tile:hover{color:var(--text);border-color:#ffffff59}.routes{margin:0;padding:0;list-style:none;display:grid;gap:8px;width:100%;counter-reset:route}.routes li{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#000;counter-increment:route}.routes li:before{content:counter(route);font:11px var(--mono);color:var(--faint)}.route-kind{font-size:14px;text-transform:capitalize}.plain{margin:0;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.6}.status{display:flex;align-items:center;gap:8px;font-size:15px}.status strong{font-weight:400;text-transform:capitalize}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--gold)}.facts{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:0;font-size:12px}.facts dt{color:var(--faint)}.facts dd{margin:0;font-family:var(--mono);color:var(--muted);overflow-wrap:anywhere}.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.product{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#000;min-width:0}.product img,.product-ph{width:100%;aspect-ratio:1;object-fit:contain;border-radius:8px;background:#fff}.product-ph{background:#111}.product .card-name{font-size:13px}.note{font-size:12px;color:var(--faint);padding:10px 16px;border-top:1px solid var(--line)}dialog{border:0;padding:0;background:transparent;color:var(--text);max-width:calc(100vw - 32px)}dialog::backdrop{background:#000000a8;backdrop-filter:blur(4px)}dialog[open] .sheet{animation:rise .22s cubic-bezier(.2,.8,.2,1)}@keyframes rise{0%{opacity:0;transform:translateY(10px)}}.sheet{position:relative;width:400px;max-width:100%;background:#0b0b0b;border:1px solid var(--line-strong);border-radius:20px;padding:28px 22px 20px;text-align:center}.sheet-logo{border-radius:50%;display:block;margin:0 auto 14px}.sheet h2{margin:0 0 6px;font-size:22px;font-weight:300;letter-spacing:-.02em}.sheet-close{position:absolute;top:10px;right:10px;width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:20px}.sheet-close:hover{background:#ffffff14;color:var(--text)}.sheet-options{display:grid;gap:8px;margin:18px 0 4px;text-align:left}.sheet-option{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line-strong);border-radius:14px;text-decoration:none;transition:background .15s,border-color .15s}.sheet-option:first-child{background:#fff;color:#000;border-color:#fff}.sheet-option:first-child .sheet-option-detail{color:#0009}.sheet-option:not(:first-child):hover{background:#ffffff0f;border-color:#ffffff59}.sheet-option-label{font-size:15px;font-weight:400}.sheet-option-detail{grid-column:1;font-size:12px;color:var(--faint)}.sheet-option .arrow{grid-row:1 / 3;grid-column:2}@media(max-width:899px){.app{height:auto;min-height:100dvh}.split{grid-template-columns:minmax(0,1fr)}.left{border-right:0;border-bottom:1px solid var(--line)}#terminal{flex:none;height:min(52vh,440px)}.search-form{flex:none}.results-body{flex:none;max-height:none;overflow:visible}.json{overflow-x:auto}}@media(max-width:640px){.bar{display:grid;grid-template-columns:auto auto 1fr auto;column-gap:8px;row-gap:8px;padding:10px 12px}.bar-left{display:contents}.brand{grid-column:1;grid-row:1;font-size:14px}.mode{grid-column:2;grid-row:1}body.embed .mode{grid-column:1}.bar-right{grid-column:4;grid-row:1}.desc{grid-column:1 / -1;grid-row:2;white-space:normal;font-size:12px}.pill .long{display:none}#terminal{padding:10px 6px}.pill{padding:8px 12px}.results-head,.results-body{padding-left:12px;padding-right:12px}#examples{padding:10px 12px}#examples button{flex:1 1 145px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
